Changeset 252 for trunk/aktuality
- Timestamp:
- Oct 2, 2009, 7:53:41 AM (15 years ago)
- Location:
- trunk/aktuality
- Files:
-
- 2 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 }
Note:
See TracChangeset
for help on using the changeset viewer.