In der PHP muss es auch geändert werden
Schau nochmal oben in den Post, habe es geändert...
MfG OloX
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
blaa{EXPLODE}bluu{EXPLODE}bliiii{EXPLODE}wakawaka
<p> </p> <p> </p> <table width="900" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="29"> </td> <td width="288"><img src="include/designs/dab_007/Bilder/topdl_header_01.png" width="288" height="47" /></td> <td width="345"> </td> <td width="287"><img src="include/designs/dab_007/Bilder/newdl_header_01.png" width="287" height="47" /></td> <td width="31"> </td> </tr> <tr> <td> </td> <td background="include/designs/dab_007/Bilder/topdl_mitte_01.png"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td valign="top"> {EXPLODE} <table width="94%" height="13" align="center" cellpadding="0" cellspacing="0"> <tr><td>{tnummer}. <a href="index.php?downloads-show-{tid}">{tname} </a></td><td align="right"> ({tdowns})</td> </tr> </table> {EXPLODE} </td> </tr> </table></td> <td> </td> <td background="include/designs/dab_007/Bilder/newdl_mitte_01.png"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td valign="top"> {EXPLODE} <table width="94%" height="13" align="center" cellpadding="0" cellspacing="0"> <tr><td width="74%"> {nnummer}. <a href="?downloads-show-{nid}"> {nname}</a></td> <td width="26%" align="right"> {ndatum}</td> </tr> </table> {EXPLODE} </td> </tr> </table></td> <td> </td> </tr> <tr> <td> </td> <td><img src="include/designs/dab_007/Bilder/topdl_footer_01.png" width="288" height="28" /></td> <td align="center" valign="top"> </td> <td><img src="include/designs/dab_007/Bilder/newdl_footer_01.png" width="287" height="28" /></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td align="center" valign="top"> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td><div align="center">SHOUTBOX</div></td> <td align="center" valign="top"> </td> <td><div align="center">UMFRAGE</div></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td align="center" valign="top"> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td><div align="center"></div></td> <td align="center" valign="top"> </td> <td><div align="center"></div></td> <td> </td> </tr> </table>
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); $title = $allgAr['title'].' :: Startseite'; $hmenu = 'Startseite'; $design = new design ( $title , $hmenu ); $design->header(); $tpl = new tpl('start'); $tpl->out(0); $a = 0; $erg = db_query("SELECT a.cat,a.downs,a.name,a.id,DATE_FORMAT(time,'%d.%m.%Y') as datum FROM `prefix_downloads` AS a LEFT JOIN `prefix_downcats` AS b ON b.id = a.cat WHERE ((".$_SESSION['authright']." <= b.recht) OR (a.cat = 0)) ORDER BY a.downs DESC LIMIT 0,5"); while ($row = db_fetch_object($erg)) { $a++; $umbruch = 20; if (strlen($row->name)>$umbruch) $row->name = substr($row->name,0,($umbruch-3))."..."; $ar = array( 'tnummer' => $a, 'tid' => $row->id, 'tname' => $row->name, 'tdowns' => $row->downs ); $tpl->set_ar_out($ar, 1); } unset($ar); $tpl->out(2); $erg = db_query("SELECT a.cat,a.name,a.id,DATE_FORMAT(time,'%d.%m.%Y') as datum FROM `prefix_downloads` AS a LEFT JOIN `prefix_downcats` AS b ON b.id = a.cat WHERE ((".$_SESSION['authright']." <= b.recht) OR (a.cat = 0)) ORDER BY a.id DESC LIMIT 0,8"); $i = 0; while ($row = db_fetch_object($erg)) { $i++; $ar = array( 'nnummer' => $i, 'nid' => $row->id, 'nname' => $row->name, 'ndatum' => $row->datum ); $tpl->set_ar_out($ar, 3); } unset($ar); $tpl->out(4); $design->footer(); ?>
Geschlossen | ||
Zurück zu HTML, PHP, SQL,... |