Редакция 54 | Редакция 65 | К новейшей редакции | Только различия | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 54 | Редакция 55 | ||
---|---|---|---|
1 | <?php
|
1 | <?php
|
2 | require_once dirname(__FILE__)."/lib/init.php"; |
2 | require_once dirname(__FILE__)."/lib/init.php"; |
3 | include "./inc/header.htm"; |
3 | include "./inc/header.htm"; |
4 | 4 | ||
5 | $res = abs(intval($_GET["res"])); |
5 | $res = abs(intval($_GET["res"])); |
6 | 6 | ||
7 | $ress =& $db->query("SELECT * FROM resources JOIN members ON resources.member_id=members.id WHERE resources.id=".$res); |
7 | $ress =& $db->query("SELECT * FROM resources JOIN members ON resources.member_id=members.id WHERE resources.id=".$res); |
8 | while ($ress->fetchInto($info_ress, DB_FETCHMODE_ASSOC)) { |
8 | while ($ress->fetchInto($info_ress, DB_FETCHMODE_ASSOC)) { |
9 | echo "<a href='.'>niX-FILES</a>"; |
9 | echo "<a href='.'>niX-FILES</a>"; |
10 | echo " :: <a href='./details.php'>ресурсы</a>"; |
10 | echo " :: <a href='.".$_SERVER['PHP_SELF']."'>ресурсы</a>"; |
11 | echo " :: <a href='.".$_SERVER['PHP_SELF']."'>".$info_ress['resource']."</a>"; |
11 | echo " :: <a href='.".$_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']."'>".$info_ress['resource']."</a>"; |
12 | echo "<br>".$info_ress['description']."<br>"; |
12 | echo "<br>".$info_ress['description']."<br>"; |
13 | echo "<br>Куратор: <a href='./members.php?memb=".$info_ress['member_id']."'>".$info_ress['nick']."</a><br>"; |
13 | echo "<br>Куратор: <a href='./members.php?memb=".$info_ress['member_id']."'>".$info_ress['nick']."</a><br>"; |
14 | echo "Ссылка: <a href='".$info_ress['link_res']."'>".$info_ress['link_res']."</a><br>"; |
14 | echo "Ссылка: <a href='".$info_ress['link_res']."'>".$info_ress['link_res']."</a><br>"; |
15 | echo "Обсуждение: <a href='".$info_ress['link_talk']."'>".$info_ress['link_talk']."</a>"; |
15 | echo "Обсуждение: <a href='".$info_ress['link_talk']."'>".$info_ress['link_talk']."</a>"; |
16 | if ($info_ress['custom']!=null) { |
16 | if ($info_ress['custom']!=null) { |
17 | echo "<br><br>"; |
17 | echo "<br><br>"; |
18 | include "./custom/".$info_ress['custom']; |
18 | include "./custom/".$info_ress['custom']; |
19 | }
|
19 | }
|
20 | }
|
20 | }
|
21 | 21 | ||
22 | include "./inc/footer.htm"; |
22 | include "./inc/footer.htm"; |
23 | ?>
|
23 | ?>
|
24 | 24 |