=7){
if($id){$q=mysql_query("select * from fman_players where id=$id;");
$a=mysql_fetch_array($q);
$p="id=".$id;}
if(!$_POST[submit]){
echo"
"; if(!$id)echo"Добавление"; else echo"Изменение"; echo" игрока
";}else{
$team_id=$_POST[team_id]; $name=$_POST[name]; $rait=$_POST[rait];
$pos=$_POST[pos];
if($team_id>=1 && $name && $rait>=1 && $pos>=1){
if($id)mysql_query("update fman_players set team_id=$team_id, name='$name', rait=$rait, pos=$pos, ampl=$pos, foto='$_POST[foto]', age='$_POST[age]', height='$_POST[height]', nationality='$_POST[nationality]' where id=$id"); else mysql_query("insert into fman_players set team_id=$team_id, name='$name', rait=$rait, travm=0, trans=0, cena=0, pos=$pos, ampl=$pos, foto='$_POST[foto]', age='$_POST[age]', height='$_POST[height]', nationality='$_POST[nationality]', forma=6, ust=6, nast=6, u=0, vyn=0, drib=0, pas=0, ig=0, otb=0, priem=0, f=0, toch=0, gk=0, ball=0");
if($_POST[del]==1)mysql_query("delete from fman_players where id=$id;");
echo"";}}
echo"";
} require_once("../incfiles/end.php"); ?>