|
Php-nuke web_links order by DATE, TIME?
|
|
01-14-2010, 01:50 PM
Postitus: #1
|
|||
|
|||
|
Php-nuke web_links order by DATE, TIME?
Sooviks siis abi Web_Links mooduli timmimisel, et linkide kategooriat avades tuleksid lingid lisamise järjekorras mitte nime järge. Saab küll klikkida et sorteeri kuupäeva jne järgi kuid sooviks et see tuleks automaatselt.
leidsin koodijupi web-Links index.php failist kust ilmselt tuleb mingi muudatus teha kuid ei ole siiani hakkama veel saanud. Ehk oskab keegi aidata ![]() function index() { global $prefix, $db, $tabelcolor1, $tabelcolor2, $ThemeSel, $module_name; include("header.php"); $mainlink = 0; menu($mainlink); echo "<br>"; OpenTable(); echo "<center><font class=\"title\"><b>"._LINKSMAINCAT."</b></font></center><br>"; echo "<table width=\"100%\" border=\"0\" cellspacing=\"15\" cellpadding=\"0\" align=\"center\"><tr >"; $result = $db->sql_query("select cid, title, cdescription from ".$prefix."_links_categories where parentid=0 order by title"); $count = 0; while ($row = $db->sql_fetchrow($result)) { $cid = intval($row['cid']); $title = stripslashes($row['title']); $cdescription = stripslashes($row['cdescription']); echo "<td width=\"50%\" align=\"center\" valign=\"top\" bgcolor=\"$tabelcolor2\"> <table width=\"100%\" height=\"100%\" border=\"0\" bordercolor=\"$tabelcolor1\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td bgcolor=\"$tabelcolor1\" valign=\"top\"><IMG SRC=\"modules/$module_name/images/dir.gif\" width=\"16\" height=\"13\"> <font class=\"option\"><a href=\"modules.php?name=$module_name&l_op=viewlink&cid=$cid\"><left><b>$title</b></a></font> </td></tr></table>"; |
|||
|
06-03-2011, 11:29 AM
Postitus: #2
|
|||
|
|||
|
RE: Php-nuke web_links order by DATE, TIME?
Proovi "order by title" asemele panna "order by date".
PHP kood: $result = $db->sql_query("select cid, title, cdescription from ".$prefix."_links_categories where parentid=0 order by date"); |
|||
|
« Järgmine vanem | Järgmine uuem »
|







