Поиск
'последние комментарии' из трех таблиц
…id, modul, cid FROM ".$prefix."_comment GROUP BY modul, cid ORDER BY maxid DESC LIMIT $limit "); while (list($maxid, $modul, $cid) = $db->sql_fetchrow($result)) { $mmaxid[] = $max...
Модуль Flash Games
…P //вывод популярных игр if ($pop_game == 1){ echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" valign=\"top\" width=\"100%\"><tr>"; echo "<td bgcolor=\"#59595b\"><tab...
block-center
…; $result = mysql_query('SELECT lid, title FROM slaed_music ORDER BY lid DESC LIMIT 5') or die("Invalid query: " . mysql_error()); while(list($lid, $title, $performer) = $db->sql_...
Теги под новостью для pro
…scription FROM ".$prefix."_categories WHERE id='$scat'")); $order = "WHERE catid='$scat' AND time <= now() AND status!='0' ".$lang." ORDER BY time DESC"; $ordernum = "catid='$scat...
Помогите настроить TEMPLATE ошибка ERROR IN HEAD !!!
…class="dright" style="width: 851px; height: 86px"> <table border="1" width="100%" id="table1" style="border-width: 0px" height="59"> <tr> <td style="border-style: none; border-wid...
Выпадающие под Slaed 2.6
…idth:960px; margin: 0; margin-top:-55px; margin-left:24px; border: 0 none; padding: 0; list-style: none; height: 57px; } ul#cssmenu li { margin: 0; border: 0 none; padding: 0; flo...
Модуль игры на основе модуля файлов
…" title=\""._ADD."\"><img src=\"".img_find("all/plus")."\" border=\"0\" align=\"center\" alt=\""._ADD."\" title=\""._ADD."\"> "._SCREEN." - $a:</div><div class=\"center\"><input t...
Вывод категории
…select * from ".$prefix."_categories WHERE modul='teachers' ORDER BY id;"); echo "<hr>"; echo "<table width=\"100%\" border=\"0\" cellspacing=\"5\" cellpadding=\"0\">"; while (lis...
Новостная поисковая система на cms slaed
…CT id,hits,outs FROM ".$prefix."_sites where added <= now() order by added ASC "); while (list($id,$hits,$outs) = $db->sql_fetchrow($result2)) { $ctr = $hits/$outs; $ctr_open= rou...
Вывод данных с файла через js (информер)
…prefix."_categories AS c ON (s.catid=c.id) WHERE status='1' ORDER BY s.time DESC LIMIT $num"); $content .="<table border=0 align=\"center\" cellpadding=\"0\" cellspacing=\"0\">"; ...
Карта сайта моделя новостей для 4.3 и open
…OM ".$prefix."_stories WHERE time <= now() AND status !='0' ORDER BY title ASC"); while (list($sid, $catid, $title) = $db->sql_fetchrow($result)) $filesm[] = array($sid, $title, $...
Порядок заполнения
…."<td width=\"121\" height=\"120\" class=\"smilies\"><img border=\"0\" src=".$foto."></td>" ."<td width=\"80\" height=\"120\" class=\"bgcolor3\">111111</td>" ."</tr>" ."<tr>" ."<t...
Проблема с выводом rss
…= explode("<item>",$string); $out = "<table width=\"100%\" border=0 align=center>"; if ($kol_rows > sizeof($items)) $kol_rows = sizeof($items); for ($i=1;$i<=$kol_rows;$i++) { $li...
Уменьшаем нагрузку в Pages
…php кое что лишнее . После удаления сайт начал летать. PHP $order = "WHERE s.time <= now() AND s.status!='0' ".$cwhere." ORDER BY s.time DESC"; $ordernum = "time <= now() AND stat...
Цвет ссылки
…ую ссылку в файле "block-Menu.php" PHP $content .= "<table border=\"0\"><tr valign=\"middle\"><td><a href=\"index.php?name=xxx\" title=\"видео\"><img src=\"images/blocks/films.gif...