get_realdepalist(0, $user['departmentid']); ?> </select> </td> </tr> <tr> <td nowrap class="TableContent">岗位:<?php get_helps(); ?> </td> <td class="TableData"> <select class="SelectStyle" name="positionid"> <option value="0" ></option> <?php get_postlist(0, $user['positionid']); ?> </select> </td> <td nowrap class="TableContent">姓名:<?php get_helps(); ?> </td> <td nowrap class="TableData"> <input type="text" class="BigInput" name="name" value="<?php echo $user['name']; ?> " size=20> </td> </tr>
?> </td> <td class="TableData"> <input type="text" name="contact" value="" class="BigInput" size="30"></td> </tr> <tr> <td nowrap class="TableContent"> 应聘岗位:<?php get_helps(); ?> </td> <td class="TableData"> <select class="BigStatic" name="job"> <option value="0" ></option> <?php get_postlist(0, 0); ?> </select> </td> </tr> <tr> <td nowrap class="TableContent"> 学历:<?php get_helps(); ?> </td> <td class="TableData"><select name="education" class="BigStatic"> <option value="0" selected="selected">请选择学历</option> <?php echo get_typelist(0, 10); ?> </select>
<label class="ui-form-label" for="J-start">计划:</label> <div class="ui-form-content"> <select name="jobpost" class="BigStatic"> <option value="0" selected="selected">请选择计划</option> <?php echo get_job_option($jobpost); ?> </select> </div> <label class="ui-form-label" for="J-start">岗位:</label> <div class="ui-form-content"> <select class="BigStatic" name="job"> <option value="0" ></option> <?php get_postlist(0, $job); ?> </select> </div> <label class="ui-form-label" for="J-start">学历:</label> <div class="ui-form-content"> <select name="education" class="BigStatic"> <option value="0" selected="selected">请选择学历</option> <?php echo get_typelist($education, 10); ?> </select> </div> <div class="submit-time-container "> <div class="submit-time ui-button ui-button-sorange">
function get_postlist($fatherid = 0, $selid = 0, $layer = 0) { $str = ""; global $db; $query = $db->query("SELECT * FROM " . DB_TABLEPRE . "position where father='{$fatherid}' ORDER BY id Asc "); if (count($query) > 0) { for ($i = 0; $i < $layer; $i++) { $str .= "├"; } while ($row = $db->fetch_array($query)) { $selstr = $row['id'] == $selid ? 'selected="selected"' : ''; $htmlstr = '<option value="' . $row['id'] . '" ' . $selstr . '>' . $str . $row['name'] . '</option>'; echo $htmlstr; get_postlist($row['id'], $selid, $layer + 1); } } return; }
<input type="text" name="hiredate" class="BigInput" style="width:168px;" size="20" value="<?php echo $blog['hiredate']; ?> " onClick="WdatePicker();" /></td> </tr> <tr> <td nowrap class="TableContent"> 录用岗位:<?php get_helps(); ?> </td> <td class="TableData"> <select class="BigStatic" name="job"> <option value="0" ></option> <?php get_postlist(0, $blog['job']); ?> </select> </td> </tr> <tr> <td nowrap class="TableContent"> 备注:</td> <td class="TableData"> <input type="text" name="content" class="BigInput" size="60" value="<?php echo $blog['content']; ?> " /> </td> </tr>