- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
$vl_c=fetch_array($rs_c);
$ch1=$vl_c[0]%4;$ch2=((int)$vl_c[0]/4)%4;$ch3=((int)$vl_c[0]/16)%4;
if($vl_c[16]==''||$vl_c[16]==0){$ch2=0;}if($vl_c[18]==''||$vl_c[18]==0){$ch3=0;}
$s1=$vl_c[19]%2; $s2=($vl_c[19]/2)%2; $s3=$vl_c[19]/4;
if(($vl_c[20]==0||$vl_c[20]==2&&$s1==1)&&($ch1>1||$ch1==0)){$chk_status1=check_sert(str_replace("\\'","'",$vl_c[1]),str_replace("\\'","'",$vl_c[2]),str_replace("\\'","'",$vl_c[3]),$vl_c[4],$vl_c[5],$vl_c[6],$vl_c[13],$vl_c[14]);} else{$chk_status1=$ch1;}
if(($vl_c[20]==0||$vl_c[20]==2&&$s2==1)&&($ch2>1||$ch2==0)&&($vl_c[16]!=''&&$vl_c[16]!=0)){$chk_status2=check_sert(str_replace("\\'","'",$vl_c[1]),str_replace("\\'","'",$vl_c[2]),str_replace("\\'","'",$vl_c[3]),$vl_c[7],$vl_c[8],$vl_c[9],$vl_c[15],$vl_c[16]);} else{$chk_status2=$ch2;}
if(($vl_c[20]==0||$vl_c[20]==2&&$s3==1)&&($ch3>1||$ch3==0)&&($vl_c[18]!=''&&$vl_c[18]!=0)){$chk_status3=check_sert(str_replace("\\'","'",$vl_c[1]),str_replace("\\'","'",$vl_c[2]),str_replace("\\'","'",$vl_c[3]),$vl_c[10],$vl_c[11],$vl_c[12],$vl_c[17],$vl_c[18]);} else{$chk_status3=$ch3;}
$chk=$chk_status1+$chk_status2*4+$chk_status3*16;