<?
include("inc/db_connect.php");
$stat = mysql_fetch_array(mysql_query("SELECT * FROM players WHERE user='".addslashes($user)."' AND pass='".addslashes($pass)."' LIMIT 1"));
mysql_query("SET CHARSET cp1251");
if ($stat['admin']!=1) echo"<script>top.location='index.php?action=logout'</script>";
echo "<FIELDSET width=100%><LEGEND align=center width=100%> Клановые заявки </LEGEND>";
echo "<table width=100% border=1>";
echo "
<tr>
<td align=center height=30 valign=center>Название</td>
<td align=center height=30 valign=center>Короткое название</td>
<td align=center height=30 valign=center>История</td>
<td align=center height=30 valign=center>Сайт</td>
<td align=center height=30 valign=center>Советник</td>
<td align=center height=30 valign=center>Советник2</td>
</tr>
";
$otchet=mysql_query("SELECT name, name_short, site, znak, history, glava, glava_fio, sovet1, sovet1_fio, sovet2, sovet2_fio, date, confirm FROM clan_zayavka");
for ($i=0; $i<mysql_num_rows($otchet); $i++) {
$otchets=mysql_fetch_array($otchet);
$name=$otchets["name"];
$namee=$otchets["name_short"];
$site=$otchets["site"];
$history=$otchets["history"];
$sovet=$otchets["sovet1"];
$sovett=$otchets["sovet2"];
print "
<tr>
<td valign=center class=und nowrap>
$name
";
print "
</td>
<td valign=center class=und nowrap>
$namee
</td>
<td valign=center class=und nowrap>
$history
</td>
<td valign=center class=und>
$site
</td>
<td valign=center class=und>
$sovet
</td>
<td valign=center class=und>
$sovett
</td>
</tr>
";
}
?>
include("inc/db_connect.php");
$stat = mysql_fetch_array(mysql_query("SELECT * FROM players WHERE user='".addslashes($user)."' AND pass='".addslashes($pass)."' LIMIT 1"));
mysql_query("SET CHARSET cp1251");
if ($stat['admin']!=1) echo"<script>top.location='index.php?action=logout'</script>";
echo "<FIELDSET width=100%><LEGEND align=center width=100%> Клановые заявки </LEGEND>";
echo "<table width=100% border=1>";
echo "
<tr>
<td align=center height=30 valign=center>Название</td>
<td align=center height=30 valign=center>Короткое название</td>
<td align=center height=30 valign=center>История</td>
<td align=center height=30 valign=center>Сайт</td>
<td align=center height=30 valign=center>Советник</td>
<td align=center height=30 valign=center>Советник2</td>
</tr>
";
$otchet=mysql_query("SELECT name, name_short, site, znak, history, glava, glava_fio, sovet1, sovet1_fio, sovet2, sovet2_fio, date, confirm FROM clan_zayavka");
for ($i=0; $i<mysql_num_rows($otchet); $i++) {
$otchets=mysql_fetch_array($otchet);
$name=$otchets["name"];
$namee=$otchets["name_short"];
$site=$otchets["site"];
$history=$otchets["history"];
$sovet=$otchets["sovet1"];
$sovett=$otchets["sovet2"];
print "
<tr>
<td valign=center class=und nowrap>
$name
";
print "
</td>
<td valign=center class=und nowrap>
$namee
</td>
<td valign=center class=und nowrap>
$history
</td>
<td valign=center class=und>
$site
</td>
<td valign=center class=und>
$sovet
</td>
<td valign=center class=und>
$sovett
</td>
</tr>
";
}
?>