##### 员工列表 添加员工

| 序号 | 姓名 | 性别 | 年龄 | 婚姻 | 学历 | 手机 | 部门 | 工龄 | 照片 | 附件 | 状态 | 操作
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
| <{$val_staffLists.stNum}> | <{$val_staffLists.stName}> | 男 | 女 $nowTime=time(); $stBirthdate=strtotime($val_staffLists["stBirthdate"]); $stAge=floor((($nowTime-$stBirthdate)/86400)/365); | <{$stAge}> 岁 $hunyinInfo=""; $hunyinId=$val_staffLists["stMarital"]; $variables=M("variables"); $rs_variables=$variables->where("vId=4")->find(); $hunyin=explode("|",$rs_variables["vVariablesVal"]); foreach($hunyin as $key=>$valhunyin){ if($key==$hunyinId){ $hunyinInfo=$valhunyin; } } | <{$hunyinInfo}> $xueliInfo=""; $xueliId=$val_staffLists["stDegrees"]; $variables=M("variables"); $rs_variables=$variables->where("vId=1")->find(); $xueli=explode("|",$rs_variables["vVariablesVal"]); foreach($xueli as $key=>$valxueli){ if($key==$xueliId){ $xueliInfo=$valxueli; } } | <{$xueliInfo}> | <{$val_staffLists.stTel}> $departmentInfo=M("department"); $rs_departmentInfo=$departmentInfo->field("dId,dPid,dPsid,dName")->where("dId={$val_staffLists['stDid']}")->find(); | <{$rs_departmentInfo["dName"]}> $dPid=$rs_departmentInfo["dPid"]; $department=M("department"); $rsp=$department->where("dId={$dPid}")->find(); | <{$rsp.dName}> -> <{$rs_departmentInfo["dName"]}> $dPsid=$rs_departmentInfo["dPsid"]; $department=M("department"); $rsps=$department->where("dId={$dPsid}")->find(); $rsPsPid=$rsps["dPid"]; $rsPspe=$department->where("dId={$rsPsPid}")->find(); | <{$rsPspe.dName}> -> <{$rsps.dName}> -> <{$rs_departmentInfo["dName"]}> $nowTime=time(); $stEntryDate=strtotime($val_staffLists["stEntryDate"]); $quiteYear=strtotime($val_staffLists["stDepartureDate"]); if($quiteYear!=0){ $nowWorkingYear=round(((($quiteYear-$stEntryDate)/86400)/365),1); }else{ $nowWorkingYear=round(((($nowTime-$stEntryDate)/86400)/365),1); } | <{$nowWorkingYear}> 年 $stPhoto=strlen($val_staffLists["stPhoto"]); |  | $resname=""; if(strlen($val_staffLists["stEnclosure"])>5){ $stEnclosure=(explode(".",$val_staffLists["stEnclosure"])); if($stEnclosure[1]=="jpg" || $stEnclosure[1]=="png" || $stEnclosure[1]=="gif" || $stEnclosure[1]=="jpeg"){ $resname="1"; }else{ $resname="2"; } }else{ $resname="0"; } | 暂无 | 查看 | 下载 | 在职 | 离职 |

全 选