⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _system_member.php

📁 极限OA开源系统
💻 PHP
📖 第 1 页 / 共 2 页
字号:
									<option value="-1"
<? if($Status==-1) { ?>

selected
<? } ?>
>所有状态</option>
									<option value="1"
<? if($Status==1) { ?>

selected
<? } ?>
>可&nbsp;用</option>
									<option value="0"
<? if($Status==0) { ?>

selected
<? } ?>
>禁&nbsp;用</option>
									
									</select>
									&nbsp;&nbsp;用户类型:
									<select name="userType" onChange="ShowType()">
									<option value="-1"
<? if($userType==-1) { ?>

selected
<? } ?>
>全 部</option>
									<option value="1"
<? if($userType==1) { ?>

selected
<? } ?>
>员 工</option>
									<option value="0"
<? if($userType==0) { ?>

selected
<? } ?>
>非员工</option>
									
									</select>
								 </td>
					          </tr>   
					         </table>   			<!--显示用户的详细信息-->
							<table width="95%" border="1" cellspacing="0" cellpadding="2" bgcolor="#888888" align="center" bordercolordark="#ffffff" bordercolor="#888888">
							  <thead> 
							  <tr> 
							    <td width="4%" nowrap class="headCenter">#</td>
							      <td width="10%" nowrap class="headCenter">登录名</td>
							    <td width="10%" nowrap class="headCenter">姓名</td>
							    <td width="25%" nowrap class="headCenter">E-mail</td>
							    <td width="10%" nowrap class="headCenter">用户类型</td>
							    <td width="10%" nowrap class="headCenter">状态</td>
							  </tr>
							  </thead> 
									<!--从数据库中调出用户信息-->
								
							  
<? if(is_array($member_list)) {
     foreach($member_list as $key => $val) { ?>
<tr class='light' onMouseOver="onColor(this);" onMouseOut="offColor(this);"> 
								<td class="textCenter"><input type="checkbox" id="chkUserIDs" name="delete[]" value="<?=$val['uid']?>" class="checkBox"></td>
							    <td class="textCenter"><?=$val['username']?></td>
								<td class='textCenter'><a href="system.php?action=member&sysaction=add&id=<?=$val['uid']?>"><?=$val['realname']?></a></td>
							    <td class="textCenter"><?=$val['email']?></td>
   							    <td class="textCenter"><?=$val['employ']?></td>
							    <td class="textCenter"><?=$val['fig']?></td>
							  </tr>
<?   } 
    } ?>

							  
							  
                            </table>
                          </td>
                        </tr>
                        <tr>
                          <td valign="bottom"> 
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td height="1" bgcolor="#FFFFFF"></td>
                              </tr>
                              <tr> 
                                <td height="20" bgcolor="#dfdfdf"> 
                                  <TABLE align=center  border=0 cellPadding=0 cellSpacing=0 width=100% height=19><TBODY><TR><TD noWrap vAlign=center><img src='./images/icon_multipage.gif' align='absmiddle'>&nbsp;<script language=javascript>
function triggerGoTo(PageNO){
MyForm.txtPageNO.value=PageNO
MyForm.submit()
}
function onSubmit(){
MyForm.submit();
}
</script>
<?=$multipage?></TD><TD noWrap vAlign=center><?=$pages2?></TD></TR></TBODY></TABLE>
                                </td>
                              </tr>
                            </table>
						  </td>
                        </tr>
                      </table>
                      </form>
                    <!-- 内容区结束 -->
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
      <td class="shadowRight"></td>
    </tr>
    <tr> 
      <td colspan="2" class="shadowBottom"></td>
    </tr>
  </table>
  
  <br>
</div>
<? } else { ?>
<script Language=JavaScript src="./scripts/ClientCheck.js"></script>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function CheckPage()
{
  if (ThrowBlank(document.ThisForm.username.value) == "")
   {alert("用户名称不能为空!");
    document.ThisForm.username.focus();
    return false;}

  if (ThrowBlank(document.ThisForm.email.value) == "")
	   {alert("E-Mail不能为空!");
	    document.ThisForm.email.focus();
	    return false;}

  if(document.ThisForm.email.value.indexOf("@")==-1)
		 {alert("E-mail中需包含 '@' 字符!");
		  document.ThisForm.email.focus();
		  return false;}

  if (ThrowBlank(document.ThisForm.loginname.value) == "")
			 {alert("帐号不能为空!");
			  document.ThisForm.loginname.focus();
		      return false;}
<? if(!$id) { ?>

if (ThrowBlank(document.ThisForm.loginpass.value) == "")
				{alert("密码不能为空!");
				 document.ThisForm.loginpass.focus();
				return false;}
<? } ?>
if(document.ThisForm.des.value.length > 120)
					{alert("描述最多为120个字!");
					 document.ThisForm.des.focus();
					 return false;}
	return true;


}

function btAddUser_onclick()
{	
	if (CheckPage())
	{
	 document.ThisForm.action="system.php?action=member&sysaction=add";
	 document.ThisForm.submit();
	 document.ThisForm.btAddUser.disabled = true;
	}
}
function selectemploy()
{
	window.open("system.php?action=member&sysaction=view","","statusbar=no,toolsbar=no,width=700,height=500,left=100,top=20");
}
//-->
</SCRIPT>
<div id="Layer1" style="position:absolute; left:0px; top:70px; z-index:1; width:100%"> 
  <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr> 
      <td> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td class="edgingTop"></td>
            <td width="22" class="edgingLabelBg"><img src="./images/edgingLable_left.gif"></td>
            <td class="edgingLabelBg"> 
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td class="edgingLabel" nowrap align="center"> 添 加 用 户 信 息</td>
                </tr>
              </table>
            </td>
            <td width="11" class="edgingLabelBg"><img src="./images/edgingLable_right.gif"></td>
          </tr>
        </table>
        <table width="100%" cellspacing="0" cellpadding="0" border="0" class="edgingTable_1">
          <tr> 
            <td class="edgingTd_1"> 
              <table width="100%" cellpadding="0" border="1" cellspacing="0" height="100%" bordercolordark="#ffffff" class="edgingTable_2">
                <tr align="center"> 
                  <td> <br>
                    <!-- 内容区开始 -->
					
		<form  method="post" name="ThisForm" >
                      <br>
                      <!--个人信息输入项-->
					  <table cellspacing="0" width="90%">
                        <tr> 
                          <td align="center"><fieldset style="width:90%">
                            <legend class="LabelTitle">
<? if($id) { ?>

<img src="./images/icon_edit.gif" align="absmiddle" width="32" height="32"> 
								[修改用户信息]<input type=hidden name=id value=<?=$id?>>
<? } else { ?>
<img src="./images/icon_add.gif" align="absmiddle" width="32" height="32"> 
								[添加用户信息]
<? } ?>
</legend>
                             <br>
                            <table width="80%" align="center" cellpadding="2">
                              <tr> 
                                <td width="20%" align="right" nowrap class="Shadow_white" >是否员工:</td>
                                <td nowrap> <input type='checkbox' name="employfig" class='checkbox'
<? if($mem_t['employ']) { ?>

checked
<? } ?>
></td>
                              </tr><input type=hidden name=employ value="<?=$mem_t['employ']?>">
                              <tr> 
                                <td width="20%" align="right" nowrap class="Shadow_white" >用户名称:</td>
                                <td nowrap> <input name="username" maxlength=10 value="<?=$mem_t['realname']?>">&nbsp;<a href="javascript:selectemploy()">选择员工</a> <font color="red">* </font></td>
                              </tr>
                              <tr> 
                                <td align="right" nowrap class="Shadow_white" >登 录 名:</td>
                                <td width="20%" nowrap> <input name="loginname" maxlength=10 value="<?=$mem_t['username']?>">
                                  &nbsp;<font color="red">*</font> </td>
                              </tr>
                              <tr> 
                                <td align="right" nowrap class="Shadow_white" >密  码:</td>
                                <td width="20%" nowrap> <input type=password name="loginpass" maxlength=10>
<? if($id) { ?>

留空则不更改
<? } else { ?>
<font color="red">&nbsp;*</font>
<? } ?>
</td>
                              </tr>
                              <tr>
                                <td width="20%" align="right" nowrap class="Shadow_white" style="letter-spacing:2px">E-mail:</td>
                                <td width="20%" nowrap> <input type="text" name="email" maxlength=30 value="<?=$mem_t['email']?>">
                                  <font color="red">&nbsp;*</font> </td>
                              </tr>
                              <tr>
                                <td width="20%" align="right" nowrap class="Shadow_white" style="letter-spacing:2px">选择角色:</td>
                                <td width="20%" nowrap> 
                                  <select name="s_part">
									
<? if(is_array($parts_list)) {
     foreach($parts_list as $key => $val) { ?>
<OPTION value='<?=$val['id']?>'<?=$val['sel']?>><?=$val['name']?></OPTION>
<?   } 
    } ?>


                                  </select>
                                  <font color="red">&nbsp;*</font> </td>
                              </tr>
                              <tr>
                                <td align="right" valign="top" nowrap class="Shadow_white">简  述:</td>
                                <td align="left">
								<textarea style="WIDTH: 400px; HEIGHT: 130px" name="des" rows=3 cols=57><?=$mem_t['des']?></textarea> 
                                </td>
                              </tr>
                              <tr> 
                                <td align="right" nowrap class="Shadow_white">&nbsp;</td>
                                <td align="left"><input type="checkbox" name="fig" value="0" class="checkBox"
<? if(!$mem_t['fig']) { ?>

checked
<? } ?>
>
                                  &nbsp;<strong>禁用</strong></td>
                              </tr>
                            </table>
                            <br>
                            </fieldset></td>
                        </tr>
                      </table>
                      <table width="85%">
                        <tr align="center"> 
					      <td height="40" colspan=2 valign="bottom">
					      <input type=hidden name="OperType" value="ADD">
					      <!--操作标识-->
					      <input type="button" name="btAddUser"  class="button" value=" 确 定 "  onclick="btAddUser_onclick();" onMouseOver="onButton(this);" onMouseOut="offButton(this);">
					        
					      <input type="reset" name="btRewrite" class="button" value=" 重 填 " onMouseOver="onButton(this);" onMouseOut="offButton(this);">
					        
					      <input type="button" name="btReturn" class="button" value=" 返 回 " onClick="window.document.URL='User_List.asp'" onMouseOver="onButton(this);" onMouseOut="offButton(this);">
					    </td>
					  </tr>
					</table>
                   </form>
                    <!-- 内容区结束 -->
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
      <td class="shadowRight"></td>
    </tr>
    <tr> 
      <td colspan="2" class="shadowBottom"></td>
    </tr>
  </table>

  <br>
</div>
<? } ?>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -