</tr> </form> </table> <?php } else { echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" id=\"table_border\">"; $csql = new Dedesql(false); $csql->SetQuery("select * from #@__staff"); $csql->Execute(); $rowcount = $csql->GetTotalRow(); if ($rowcount == 0) { echo "<tr><td> 公司里还没有任何职员,请先<a href=system_worker.php?action=new>添加职工</a>。</td></tr>"; } else { echo "<tr class='row_color_head'><td>ID</td><td>姓名</td><td>联系地址</td><td>联系电话</td><td>部门</td><td>职务</td><td>用户类型</td><td>操作</td></tr>"; while ($row = $csql->GetArray()) { echo "<tr><td>ID号:" . $row['id'] . "</td><td> " . $row['s_name'] . "</td><td> " . $row['s_address'] . "</td><td> " . $row['s_phone'] . "</td><td> " . $row['s_part'] . "</td><td> " . $row['s_duty'] . "</td><td> " . getusertype($row['s_utype']) . "</td><td><a href=system_worker_edit.php?id=" . $row['id'] . ">修改</a> | <a href=system_worker_del.php?id=" . $row['id'] . ">删除</a></td></tr>"; } } echo "</table>"; $csql->close(); } ?> </td> </tr> </table> </td> <td> </td> </tr> <tr> <td id="table_style" class="l_b"> </td> <td> </td>
<input type="text" name="s_e" size="5" style="border:0px;background:transparent;" value="%" readonly> <?php } else { echo " <input type=\"text\" name=\"s_money\" size=\"5\" value=\"" . $row['s_money'] . "\">\r\n\t\t <input type=\"text\" name=\"s_e\" size=\"5\" style=\"border:0px;background:transparent;\" value=\"元/件\" readonly>"; } } else { echo " "; } ?> </td> </tr> <tr> <td id="row_style"> 员工类型(类型不同权限不同):</td> <td> <?php getusertype($row['s_utype'], 1); ?> </td> </tr> <tr> <td id="row_style"> </td> <td> <input type="submit" name="submit" value=" 修改员工资料 "></td> </tr> </form> </table> </td> </tr> </table> </td> <td> </td> </tr>
<tr height="17"> <td colspan="2"></td> </tr> <tr height="32"> <td style="background:url(images/left_menu_bg.gif) no-repeat center bottom;"><div id="menu_big">常用功能快速导航</div></td> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0" height="32"> <tr> <td width="10" style="background:url(images/bg_bottom.gif) repeat-x bottom;vertical-align:top"><img src="images/teble_top_left.gif"></td> <td style="background:url(images/bg_bottom.gif) repeat-x bottom"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="15"><img src="images/arrow.gif"></td> <td width="500"><div style="display:none;"></div></td> <td align="right"> <?php echo str_replace($cfg_cookie_encode, '', $_COOKIE["VioomaUserID"]) . "(" . getusertype(1, 0) . ")"; ?> </td> </tr> </table> </td> <td width="10" style="background:url(images/bg_bottom.gif) repeat-x bottom;vertical-align:top"><img src="images/teble_top_right.gif" align="right"></td> <td width="15"></td> </tr> </table> </td> </tr> </table> </body> </html>