Changeset 252
- Timestamp:
- Oct 2, 2009, 7:53:41 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/aktuality/index.php
r236 r252 38 38 if($Row['Name'] == '') $Author = $Row['Author']; 39 39 else $Author = $Row['Name']; 40 $Output .= '<div style="border: thin dotted #97ADFF; background: #F6F7FF; margin-top: 5px; padding: 0px 5px 5px 5px;"><div style="padding-bottom: 1px; border-bottom-width: 1; border-bottom-style: solid; border-bottom-color: silver;"><strong>'.$Row['Title'].' ('.HumanDate($Row['Date']).', '.$Author.')</strong>';40 $Output .= '<div class="Panel"><div class="Title">'.$Row['Title'].' ('.HumanDate($Row['Date']).', '.$Author.')'; 41 41 if($this->System->Modules['User']->User['Id'] == $Row['User']) 42 42 { 43 $Output .= '<div class="Action">'; 43 44 $Output .= ' <a href="index.php?action=del&category='.$Category.'&id='.$Row['Id'].'">Smazat</a>'; 44 45 $Output .= ' <a href="index.php?action=edit&category='.$Category.'&id='.$Row['Id'].'">Editovat</a>'; 45 } 46 $Output .= '</div>'.$News->ModifyContent($Row['Content']).'<br />'; 46 $Output .= '</div>'; 47 } 48 $Output .= '</div><div class="Content">'.$News->ModifyContent($Row['Content']).'<br />'; 47 49 if($Row['Enclosure'] != '') 48 50 { … … 54 56 } 55 57 } 56 $Output .= '</div> ';58 $Output .= '</div></div>'; 57 59 } else $Output .= 'Položka nenalezena.'; 58 60 } … … 181 183 if($Row['Name'] == '') $Author = $Row['Author']; 182 184 else $Author = $Row['Name']; 183 $Output .= '<div style="border: thin dotted #97ADFF; background: #F6F7FF; margin-top: 5px; padding: 0px 5px 5px 5px;"><div style="padding-bottom: 1px; border-bottom-width: 1; border-bottom-style: solid; border-bottom-color: silver;"><strong><a href="?action=view&id='.$Row['Id'].'">'.$Row['Title'].'</a> ('.HumanDate($Row['Date']).', '.$Author.')</strong>';185 $Output .= '<div class="Panel"><div class="Title"><a href="?action=view&id='.$Row['Id'].'">'.$Row['Title'].'</a> ('.HumanDate($Row['Date']).', '.$Author.')'; 184 186 if($this->System->Modules['User']->User['Id'] == $Row['User']) 185 187 { 188 $Output .= '<div class="Action">'; 186 189 $Output .= ' <a href="index.php?action=del&category='.$Category.'&id='.$Row['Id'].'">Smazat</a>'; 187 190 $Output .= ' <a href="index.php?action=edit&category='.$Category.'&id='.$Row['Id'].'">Editovat</a>'; 188 } 189 $Output .= '</div>'.$News->ModifyContent($Row['Content']).'<br />'; 191 $Output .= '</div>'; 192 } 193 $Output .= '</div><div class="Content">'.$News->ModifyContent($Row['Content']).'<br />'; 190 194 if($Row['Enclosure'] != '') 191 195 { … … 197 201 } 198 202 } 199 $Output .= '</div> ';203 $Output .= '</div></div>'; 200 204 } 201 205 $Output .= PagesList('?category='.$Category.'&page=', $Page, $PageMax, $PerPage); -
trunk/aktuality/news.php
r251 r252 49 49 $DbResult = $Database->select('NewsCategory', '*', 'Id='.$Category); 50 50 $Row = $DbResult->fetch_array(); 51 $Output = '<table class="NewsBaseTable"><tr>'; 52 $Output .= '<td>'.$Row['Caption'].'</td><td align="right">'; 53 $Output .= '<a href="aktuality/index.php?category='.$Category.'">Zobrazit všechny aktuality</a> '; 51 $Output = '<div class="NewsPanel"><div class="Title">'.$Row['Caption']; 52 $Output .= '<div class="Action"><a href="aktuality/index.php?category='.$Category.'">Zobrazit</a>'; 54 53 if($this->System->Modules['User']->CheckPermission('News', 'Insert', 'Group', $Category)) 55 $Output .= ' <a href="aktuality/index.php?action=add&category='.$Category.'">Přidat aktualitu</a> ';56 $Output .= '</ td></tr><tr><td colspan="2">';54 $Output .= ' <a href="aktuality/index.php?action=add&category='.$Category.'">Přidat</a>'; 55 $Output .= '</div></div><div class="Content">'; 57 56 $DbResult = $Database->query('SELECT `News`.*, `User`.`Name` FROM `News` LEFT JOIN `User` ON `User`.`Id`=`News`.`User` WHERE (`News`.`Category`='.$Category.') AND (DATE_SUB(NOW(), INTERVAL '.$DaysAgo.' DAY) < `News`.`Date`) ORDER BY `News`.`Date` DESC LIMIT 0,'.$ItemCount); 58 57 //echo($Database->error.'<br />'); … … 86 85 $Output .= '</table>'; 87 86 } 88 $Output .= '</ td></tr></table>';87 $Output .= '</div></div>'; 89 88 return($Output); 90 89 } … … 157 156 $I++; 158 157 } 159 $Output .= '</table><input type="hidden" name="NewsCategoryCount" value="'.count($this->NewsSetting).'" /><input type="submit" value="Uložit" /></form></td></tr></table> ';158 $Output .= '</table><input type="hidden" name="NewsCategoryCount" value="'.count($this->NewsSetting).'" /><input type="submit" value="Uložit" /></form></td></tr></table><br>'; 160 159 return($Output); 161 160 } -
trunk/index.php
r251 r252 225 225 if(count($Menu) > 0) 226 226 foreach($Menu as $Item) 227 $Title .= '<div class="dbTopMenu"><div class="active">'.$Item.'</div></div>'; 228 return('<div class="disignBoxFirst"><div class="boxFirstHeader">'.$Title.'</div><div class="boxContent">'.$Content.'</div></div>'); 229 //return('<div class="Panel"><div><div><div><h3>'.$Title.'</h3>'.$Content.'</div></div></div></div>'); 227 $Title .= '<div class="Action">'.$Item.'</div>'; 228 return('<div class="Panel"><div class="Title">'.$Title.'</div><div class="Content">'.$Content.'</div></div>'); 230 229 } 231 230 -
trunk/style/new/style.css
r251 r252 13 13 { 14 14 padding: 0px 2px 0px 2px; 15 }16 17 #MainTable td .Panel18 {19 margin: 0 0 5px;20 padding: 0;21 width: 100%; /*need for ie 6 */22 background: url(images/box-br.gif) no-repeat bottom right;23 }24 25 #MainTable td .Panel h326 {27 margin: 0 -15px 10px;28 padding: 3px 15px;29 white-space: nowrap;30 font-size: 85%;31 border-bottom: 1px solid #E6E6E6;32 color: #333333;33 }34 35 #MainTable td .Panel div36 {37 padding: 0;38 background: url(images/box-bl.gif) no-repeat bottom left;39 }40 41 #MainTable td .Panel div div42 {43 padding: 0;44 background: url(images/box-tr.gif) no-repeat top right;45 }46 47 #MainTable td .Panel div div div48 {49 padding: 0 15px 15px;50 background: url(images/box-tl.gif) no-repeat top left;51 }52 53 #MainTable td .Panel div div div div54 {55 padding: 4px 4px 4px 4px;56 background: none;57 }58 59 #MainTable td .PanelTitle60 {61 border-width: 0px 0px 2px 0px;62 border-style: solid;63 border-color: #a0a0ff;64 font-weight: bold;65 margin: 0px 0px 3px 0px;66 }67 68 #MainTable td .PanelTitleRight69 {70 border-width: 0px 0px 2px 0px;71 border-style: solid;72 border-color: #6060ff;73 margin: 0px 0px 3px 0px;74 text-align: right;75 15 } 76 16 … … 146 86 border-style: solid; 147 87 border-color: red; 148 border-width: 1px;88 border-width: 0px; 149 89 background-color: #FFF0F0; 150 90 width: 100%; … … 211 151 border-width: 0px; 212 152 } 153 213 154 div.HalfWidth 214 155 { … … 361 302 } 362 303 363 /*******/ 364 365 .disignBoxFirst 304 .Panel 366 305 { 367 306 position: relative; 368 307 border: 1px solid #CCC; 369 margin-bottom: 10px; 308 margin-top: 5px; 309 margin-bottom: 5px; 370 310 background-image: url('images/head_cutting.gif'); 371 311 background-repeat: repeat-x; … … 373 313 } 374 314 375 . boxFirstHeader315 .Panel .Title 376 316 { 377 317 height: 17px; … … 385 325 } 386 326 387 . boxContent327 .Panel .Content 388 328 { 389 329 /* position: relative; */ 390 330 overflow: hidden; 391 font-size: 13px;331 /*font-size: 13px;*/ 392 332 /*color: #000000;*/ 393 padding: 10px; 394 } 395 396 .disignBoxFirst .boxFirstHeader .dbTopMenu, 397 .disignBoxFirst .boxFirstHeader .caption_item 333 padding: 7px; 334 } 335 336 .Panel .Title .Action 398 337 { 399 338 position: absolute; … … 407 346 /*margin-right:5px;*/ 408 347 } 409 410 .disignBoxFirst .boxFirstHeader .caption_item 411 { 412 padding-top: 3px; 413 padding-right: 5px; 414 } 415 348 349 .NewsPanel 350 { 351 position: relative; 352 border: 1px solid #d99; 353 margin-bottom: 6px; 354 background-image: url('images/head_cutting_red.gif'); 355 background-repeat: repeat-x; 356 background-color: #FFF; 357 } 358 359 .NewsPanel .Title 360 { 361 height: 17px; 362 padding: 3px 0px 0px 8px ; 363 font-size: 12px; 364 font-weight: bold; 365 color: #a44; 366 text-align: left; 367 text-transform: uppercase; 368 border-bottom: 1px solid #d99; 369 } 370 371 .NewsPanel .Content 372 { 373 /* position: relative; */ 374 overflow: hidden; 375 font-size: 13px; 376 /*color: #000000;*/ 377 padding: 0px; 378 } 379 380 .NewsPanel .Title .Action 381 { 382 position: absolute; 383 top: 3px; 384 right: 3px; 385 white-space: nowrap; 386 color: #000; 387 font-size: 11px; 388 /*text-transform: capitalize;*/ 389 font-weight: bold; 390 /*margin-right:5px;*/ 391 } 392 393
Note:
See TracChangeset
for help on using the changeset viewer.