foreach($arr as $v)
{
if($_POST['ch'.$v->id]=='on' || $v->id==$_GET['id'])$ch="CHECKED";
else $ch="";
if($v->role!=9 && $ch!="")
{
$out.="<div id=user_".$v->id.">";
$out.= "<input $ch name=ch".$v->id." type=checkbox>";
$out.=a("admin.php?id=".$v->id,$v->get_fio());$out.=" ";
$out.="<br />";
$out.="<div id=u_div_".$v->id."_0>";
$out.="<input type=file name=up_".$v->id."_0 size=44 id=u_f_".$v->id."_0 onchange=Add_file('".$v->id."')> <b style='display: none;' class=span_link id=u_d_".$v->id."_0 onclick=delete_user_file('0','".$v->id."')>Delete</b>";
$out.="</div>";
$out.="<input type=hidden id=add_".$v->id.">";
//$out.="<br />";
// $out.="<br />";
$out.="</div>";
$ind++;
}
} |