View file index.php

File size: 852B
<HTML>
<HEAD>
<title>Minipoll (author:alik)</title>
<link rel="StyleSheet" type="text/css" href="style.css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</HEAD>
<BODY>
<table width="207" cellspacing=0 cellpadding=0>
<form action='res.php' method=get target='_blank'>
<tr><td class='zag' align=center>Голосование</td></tr>
<tr><td>
<?php
$vopros = file("poll.inc");
echo "&nbsp;&nbsp;&nbsp;<b>$vopros[0]</b>";
for ($i=1;$i<count($vopros);$i++){
if ($i==1) $checked="checked";
else $checked="";
echo "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <input name='v1' type='radio' value='$i' $checked id='$i'><label for='$i'>$vopros[$i]</label>";
} ?>
<br><br><center><input type="submit" value="Голосовать"></center></td></tr></form></table>
<br><br><a href="admin/">Администрирование</a>
</BODY></HTML>