File size: 1.37Kb
<?php
//Ї®бл« Ґ¬ § Ј®«®ўЄЁ
include "./header.php";
//ўЄ«оз Ґ¬ Є®дЁЈга жЁ®л© д ©«
include "./ini.php";
// ўв®аЁ§ жЁп
$login = autorize();
//Їа®¤®«¦ Ґ¬ ўлў®¤ ў Ўа 㧥а
print '<card title="'.$lang['meets'].'">'.
'<p>';
if($login) {//Ї®«м§®ў вҐ«м ўв®аЁ§Ёа®ў
switch($mod) {
//Їа®б¬®ва ўбваҐзЁ
case 'view':
//§ Їа®б ЇҐаҐ¤ го ўбваҐзг
$q = @mysql_query("select * from `".$px.$meettable."` where id='$meetid' order by id desc;");
//ў ¬ ббЁў
$arr = @mysql_fetch_array($q);
//ўлў®¤ ¤ ле ® ўбваҐзЁ
print "<u>".$lang['title'].":</u> ".$arr['title'];
print "<br/><u>".$lang['content'].":</u> ".$arr['content'];
print "<br/><u>".$lang['organizators'].":</u> ".$arr['organizatory'];
print "<br/><u>".$lang['who_add'].":</u> ".$arr['login'];
break;
//Ї® 㬮«з Ёо
default:
//§ Їа®б ўбваҐзЁ
$q = @mysql_query("select * from `".$px.$meettable."` order by id desc;");
//ўлў®¤Ё¬ ббл«ЄЁ ўбваҐзЁ
while($arr = @mysql_fetch_array($q)) {
print "<a href=\"meets.php?id=$id&pass=$pass&meetid=".$arr['id']."&mod=view\">".$arr['title']."</a><br/>"; }
break;
}
if($mod)
print "<br/><a href=\"meets.php?id=$id&pass=$pass\">".$lang['letters']."</a>";
print "<br/><a href=\"./enter.php?id=$id&pass=$pass\">".$lang['holl']."</a><br/>";
} else { print $lang['not_loged']; }
mysql_close();
ob_end_flush();
?>
</p>
</card>
</wml>