alert('该问卷不存在!'); location='http://www.huaji.com'; "; exit; } if($datas[0][11] == 2) { if(empty($username)) { echo ""; exit; } } $sql="select * from testuser where user='$username' and testid='$testid'"; $dt=getData($sql); if(!empty($dt)) { echo ""; exit; } $r=creatTest($testid); if(trim($r["test"][3])!='1'&&$test!="demo") { echo ""; echo $r["test"][3]; exit(0); } //8,9 $dt=date('Y-m-d H:i:s'); if(!($dt>$r["test"][8]&&$dt<$r["test"][9])&&$test!="demo") { echo ""; exit(0); } /* if(!$username&&$r['test']['10']==2) { echo ""; echo $username." ".$test; exit(0); }*/ /*else { echo "数据错误"; exit(0); }*/ //判断 时间 状态 问卷数量 做出判断 ?>