{eyou:sql sql="$sql" cachetime='3600' empty='' id="field"}
情况 {$i} |
字段 信息 |
实际 要求 |
填写 资料 |
匹配 结果 |
---|---|---|---|---|
1 | 学历 | 符合"; $num++; }else{ //echo "不符合"; } ?> | ||
2 | 年龄 | {$detail.nl}岁 | = (int)$field2['ega_0']){ //echo "符合"; $num++; }else{ //echo "不符合"; } ?> | |
3 | 毕业 专业 |
{eyou:if condition='((int)$field2.byzy === 0)'}
不限制
{eyou:else /}
$v){
if((int)$v > 0) {
$zhengshu2_str .= ',' . $v;
}
}
$sql3 = "select id,title from ey_zczy_position where id IN(".$zhengshu2_str.") and is_del=0 and status=1";
?>
{eyou:if condition='($zhengshu2_str != "0")'}
{eyou:sql sql="$sql3" cachetime='3600' empty='' id="field3"}
{/eyou:sql} {eyou:else /} 不限制 {/eyou:if} {/eyou:if} |
$v){
if ((int)$v > 0) {
$zhengshu_str .= ',' . $v;
}
}
$sql3 = "select id,title from ey_zczy_position where id IN(".$zhengshu_str.") and is_del=0 and status=1";
?>
{eyou:if condition='($zhengshu_str != "0")'}
{eyou:sql sql="$sql3" cachetime='3600' empty='' id="field3"}
{$field3.title} {/eyou:sql} {eyou:else /} 无 {/eyou:if} |
符合";
$num++;
}else{
if(empty($zhengshu)){
//echo "不符合";
}else{
$run = "不符合";
$ik = 1;
foreach ($zhengshu as $k => $v){
if(in_array($v,$zhengshu2)){
//$run = '符合 '.$ik.'项'; $run = '符合 '; $ik++; } } //echo $run; if($ik>1){ $num++; //符合+1 } } } ?> |
4 | 学校 类型 |
{eyou:if condition='((int)$field2.xxlx === 0)'} 不限制 {eyou:else /} {/eyou:if} | {eyou:if condition='((int)$detail.xxlx === 1)'} 全日制 {eyou:else /} 非全日制 {/eyou:if} | {eyou:if condition='((int)$field2.xxlx === 0)'} {eyou:else /} 符合"; $num++; }else{ //echo "不符合"; } ?> {/eyou:if} |
5 | 毕业 时间 |
{eyou:if condition='((int)$field2.bysj === 0)'} {eyou:else /} ={$field2.bysj_time}年**/ ?> {/eyou:if} | y . ' years'; if($interval->y > 0){ //echo '已毕业'.$interval->y . '年'; }else{ //echo '刚毕业不足1年'; } ?> | 符合"; $num++; }else{ if((int)$field2['bysj_time'] <= $interval->y){ //echo "符合"; $num++; }else{ //echo "不符合"; } } ?> |
6 | 前置 证书 |
{eyou:sql sql="$sql5" cachetime='3600' empty='不限制' id="field3"}
1){
//echo "或 "; } ?> $zhengshu3, 'b' => $sjnx ]; //var_dump($sjnx); $zhengshu3_str = '0'; foreach ($zhengshu3 as $k => $v){ if((int)$v > 0) { $zhengshu3_str .= ',' . $v; } } $sql3 = "select id,title from ey_zczs_position where id IN(".$zhengshu3_str.") and is_del=0 and status=1"; ?> {eyou:if condition='($zhengshu3_str != "0")'} {eyou:sql sql="$sql3" cachetime='3600' empty='' id="field4"} {/eyou:sql} {eyou:else /} {/eyou:if} {/eyou:sql} |
$v){
if((int)$v > 0){
$zhengshu_str .= ','.$v;
}
}
$sql3 = "select id,title from ey_zczs_position where id IN(".$zhengshu_str.") and is_del=0 and status=1";
?>
{eyou:if condition='($zhengshu_str != "0")'}
{eyou:sql sql="$sql3" cachetime='3600' empty='' id="field3"}
{/eyou:sql} {eyou:else /} 无 {/eyou:if} |
符合";
$num++;
}else{
if(empty($zhengshu)){
//用户没有证书
//echo "不符合";
}else{
//判断是否包含
//第一轮 循环 或
foreach ($zs_all as $k => $v){
if($k > 0){
////echo "或 "; } $ik = 1; $ik2 = 1; $ik3 = 1; //第二轮 循环 且 //var_dump($v['a']); $ik4 = 0; //真实有效数量 foreach ($v['a'] as $k2 => $v2){ //var_dump($v2); //var_dump($zhengshu); //第三轮 循环 每一项要求是否在 用户拥有的证书 里面 //必须完全满足 if((int)$v2 > 0) { if (in_array($v2, $zhengshu)) { //判断年限是否符合要求 $key_i = array_search($v2, $zhengshu); //var_dump($zsnx[$key_i]); if ((int)$zsnx[$key_i] >= (int)$v['b'][$k2]) { $run_1 = '符合 ' . $ik . '项'; $ik++; } else { $run_2 = '年限不符合 ' . $ik2 . '项'; $ik2++; } } else { $run_3 = '未拥有 ' . $ik3 . '项'; $ik3++; } $ik4++; } } //具体情况 循环且 ////echo $run_1; ////echo $run_2; ////echo $run_3; ////echo count($v['a']); //var_dump($ik); //var_dump(count($v['a'])); if(($ik-1) === $ik4){ ////echo "符合1"; $res = "符合"; $num++; //跳出循环 已经符合其中 一个 且了 break; }else{ ////echo "不符合2"; $res = "不符合"; } } //echo $res; } } ?> |
7 | 综合 评估 |
= 6){
//多次循环可能大于6
echo "完全符合要求!";
if(!empty($bname)){
$bname_str = '/'.$bname;
}
$result_map .= $aname.$bname_str.'地区 '; }else if($num === 0){ echo "完全不符合要求!"; }else{ echo "未完全符合要求!"; } $num = 0; ?> |