</td> </tr> <tr> <td nowrap class="TableContent" width="15%"> 联系电话:</td> <td class="TableData"> <?php echo $blog['contact']; ?> </td> </tr> <tr> <td nowrap class="TableContent"> 应聘岗位:</td> <td class="TableData"><?php echo get_postname($blog['job']); ?> </td> </tr> <tr> <td nowrap class="TableContent"> 学历:</td> <td class="TableData"><?php echo get_typename($blog["education"]); ?> </td> </tr> <tr> <td nowrap class="TableContent"> 附件简历:</td> <td class="TableData">
?> "><?php echo get_job_name($row['jobpost']); ?> </a> </td> <td width="80"><?php echo $row['name']; ?> </td> <td width="60"><?php echo $row['sex']; ?> </td> <td width="100"><?php echo get_postname($row['job']); ?> </td> <td width="80"><?php echo get_realname($row['uid']); ?> </td> <td class="info"><?php echo $row['date']; ?> </td> <td class="action"> <?php get_urlkey("编辑", "admin.php?ac=job_talent_edit&fileurl=jobs&do=edit&id=" . $row['id'] . "", "" . $row['uid'] != $_USER->id); ?> </td>
<td class="TableData"><?php echo get_groupname($result['groupid']); ?> </td> </tr> <tr> <td nowrap class="TableContent" width="90">所属部门:</td> <td class="TableData"> <?php echo get_realdepaname($result['departmentid']); ?> </td> <td nowrap class="TableContent" width="90">所属岗位:</td> <td class="TableData"><?php echo get_postname($result['positionid']); ?> </td> </tr> <tr> <td nowrap class="TableContent" width="90">出生日期:</td> <td class="TableData"> <input type="text" class="BigInput" name="birthdate" style="width:180px;" value="<?php echo $result['birthdate']; ?> " size=30 readonly="readonly" onClick="WdatePicker();"> </td> <td nowrap class="TableContent" width="90">性别:</td> <td class="TableData"><input type="radio" name="sex" id="sex" value="男" <?php if ($result['sex'] == "男") { ?>
$wheresql .= " AND job='" . $job . "'"; } if ($education = getGP('education', 'P')) { $wheresql .= " AND education='" . $education . "'"; } $vuidtype = getGP('vuidtype', 'P'); if (!is_superadmin() && $vuidtype == '') { $wheresql .= " AND uid = {$_USER->id}"; } if ($vuidtype != '') { if ($vuidtype == '-1') { $wheresql .= get_subordinate($_USER->id, 'uid'); } else { $wheresql .= " and uid='" . $vuidtype . "'"; } } $sql = "SELECT * FROM " . DB_TABLEPRE . "job_talent WHERE 1 {$wheresql} ORDER BY id desc"; $result = $db->query($sql); while ($row = $db->fetch_array($result)) { $archive = array("" . $row[number] . "", "" . get_job_name($row[jobpost]) . "", "" . $row[name] . "", "" . $row[sex] . "", "" . $row[contact] . "", "" . get_postname($row[job]) . "", "" . get_typename($row[education]) . "", "" . $row[appendix] . "", "" . $row[content] . "", "" . get_realname($row['uid']) . "", "" . str_replace("-", ".", $row[date]) . ""); $content[] = $archive; } $excel = new ExcelWriter($outputFileName); if ($excel == false) { echo $excel->error; } foreach ($content as $v) { $excel->writeLine($v); } $excel->sendfile($outputFileName); }
} if ($department = getGP('department', 'P', 'int')) { $wheresql .= " AND a.departmentid = {$department}"; } if ($usergroup = getGP('usergroup', 'P', 'int')) { $wheresql .= " AND a.groupid = {$usergroup}"; } $sql = "SELECT * FROM " . DB_TABLEPRE . "user a," . DB_TABLEPRE . "user_view b WHERE a.id=b.uid {$wheresql} ORDER BY a.id ASC"; $result = $db->query($sql); while ($row = $db->fetch_array($result)) { if ($row['ischeck'] == '1') { $ischeck = '正常'; } else { $ischeck = '禁用'; } $archive = array("" . $row[username] . "", "" . get_groupname($row['groupid']) . "", "" . $row[name] . "", "" . get_postname($row['positionid']) . "", "" . $ischeck . "", "" . $row[loginip] . "", "" . get_realdepaname($row['departmentid']) . ""); $content[] = $archive; } $excel = new ExcelWriter($outputFileName); if ($excel == false) { echo $excel->error; } foreach ($content as $v) { $excel->writeLine($v); } $excel->sendfile($outputFileName); } elseif ($do == 'add') { if ($_POST['view'] != '') { $id = getGP('id', 'P', 'int'); if ($id != '') { $username = getGP('username', 'P');
</td> <td class="status"> <span class="amount-pay amount-pay-out"><?php if ($row['ischeck'] == '1') { echo '正常'; } else { echo '<font color=red>禁用</font>'; } ?> </span></td> <td class="info"><?php echo $row['loginip']; ?> </td> <td class="info"><?php echo get_postname($row['positionid']); ?> </td> <td class="info"><?php echo get_realdepaname($row['departmentid']); ?> </td> <td class="action" > <?php if ($row['flag'] != '1' || is_superadmin() != '') { ?> <a href="admin.php?ac=<?php echo $ac; ?> &fileurl=<?php echo $fileurl;
<td class="TableData" align="center" rowspan="6" colspan="1"> <div class="avatar"><img src="<?php echo get_human_db($blog['id'], "toa_1_56"); ?> " width=130></div> </td> </tr> <tr> <td nowrap align="left" width="120" class="TableContent">编号:</td> <td nowrap align="left" class="TableData" width="180"><?php echo $blog['number']; ?> </td> <td nowrap align="left" width="120" class="TableContent">岗位:</td> <td class="TableData" width="180" colspan="2"><?php echo get_postname(get_realusername($blog['userid'], 'positionid ')); ?> </td> </tr> <tr> <td nowrap align="left" width="120" class="TableContent">姓名:</td> <td class="TableData" width="180"><?php echo get_human_db($blog['id'], "toa_1_1"); ?> </td> <td nowrap align="left" width="120" class="TableContent">部门:</td> <td class="TableData" width="180" colspan="2"><?php echo get_realdepaname(get_realusername($blog['userid'], 'departmentid ')); ?> </td> </tr>
$wheresql .= " AND department='" . $department . "'"; } if ($jobpost = getGP('jobpost', 'P')) { $wheresql .= " AND jobpost='" . $jobpost . "'"; } $vuidtype = getGP('vuidtype', 'P'); if (!is_superadmin() && $vuidtype == '') { $wheresql .= " AND uid = {$_USER->id}"; } if ($vuidtype != '') { if ($vuidtype == '-1') { $wheresql .= get_subordinate($_USER->id, 'uid'); } else { $wheresql .= " and uid='" . $vuidtype . "'"; } } $sql = "SELECT * FROM " . DB_TABLEPRE . "job_hire WHERE 1 {$wheresql} ORDER BY id desc"; $result = $db->query($sql); while ($row = $db->fetch_array($result)) { $archive = array("" . get_talent_name($row['job_talent']) . "", "" . get_job_name($row['jobpost']) . "", "" . $row['user'] . "", "" . $row[department] . "", "" . str_replace("-", ".", $row[hiredate]) . "", "" . get_postname($row['job']) . "", "" . $row[content] . "", "" . get_realname($row['uid']) . "", "" . str_replace("-", ".", $row[date]) . ""); $content[] = $archive; } $excel = new ExcelWriter($outputFileName); if ($excel == false) { echo $excel->error; } foreach ($content as $v) { $excel->writeLine($v); } $excel->sendfile($outputFileName); }