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

📄 _system_department.php

📁 极限OA开源系统
💻 PHP
字号:


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="./templates/oa.css" type="text/css">

<script language="JavaScript" src="./scripts/bgColor.js"></script>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td valign="top" align="center"> 
      <table border="0" cellspacing="0" cellpadding="0" align="left" width="100%">
        <tr> 
          <td class="pageHeaderBG_System" valign="top">
            <table cellpadding="0" cellspacing="0" border="0">
                <td class="pageHeader"><img src="./images/arrow_yellow.gif" width="12" height="11" hspace="8">( 
                  部门管理 )</td>
            </table>
			</td>
          <td valign="top" align="left">&nbsp; </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<? if($sysaction != 'add') { ?>

<Script Language=javascript>
<!--
function DelDepartment()
{
	var Msg,blnDel
	blnDel = true	
	for (var i=0;i<MyForm.elements.length;i++)
    {
       var e = MyForm.elements[i];
       if (e.id == 'chkValueID' && e.checked == true)
         {blnDel = false;
          break;}
    }
	
	if (blnDel)
	{alert("请选择删除项后再进行删除操作!");}
	else
	{
		Msg = window.confirm("确信删除选中的信息吗?单击“确定”删除,否则“取消”!");
		if (Msg)
		{
			MyForm.action = "system.php?action=department&sysaction=del&Status=<?=$Status?>";
			MyForm.submit();
		}
	}
}
function ShowStatus()
{
	MyForm.action = "system.php?action=department&Status="+MyForm.sltShowStatus.value;
	MyForm.submit();
}

function applyFromDialog()
{
	location.href = strLocation;
}
//-->
</Script>
<div id="Layer1" style="position:absolute; left:0px; top:70px; z-index:1; width:100%"> 
  <table width="96%" 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">部 门 列 表 - Department 
                    List </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> 
                    <!-- 内容区开始 -->
					<form name=MyForm id=MyForm method=Post>
                      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
                        <tr>
                          <td valign="top" align="center"> 
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr> 
                                <td align="center" class="Command" width="15"><img src="./images/boxOff_1.gif" width="7" height="18"></td>
                                <td align="right" class="Command"> 
                                  <table border="0" cellspacing="0" cellpadding="0">
                                    <tr> 
							  
                                      <td class=imgButton onMouseDown='this.className="down"' onMouseOver='this.className=&quot;over&quot;' onMouseUp='this.className="over"' onMouseOut='this.className="imgButton"' onClick="window.document.URL='system.php?action=department&sysaction=add'" align="center" width="80"><img height=16 src="./images/iconAppend.gif" width=45 border=0></td>
                              
                                      <td class=imgButton onMouseDown='this.className="down"' onMouseOver='this.className="over"' onMouseUp='this.className="over"' onMouseOut='this.className="imgButton"' onClick="DelDepartment()" align="center" width="80"><img height=16 src="./images/iconDelete.gif" width=45 border=0></td>
                              
                                      <td width=20 align="right">&nbsp;</td>
                                    </tr>
                                  </table>
                                </td>
                              </tr>
                            </table>
                            <br>
							<table width="95%">
                              <tr class="table_row_title" colspan=6> 
								<td align="left">状 态: 
									<select name="sltShowStatus" onChange="ShowStatus()">
									<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>
								 </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="27%" nowrap class="headCenter">部 门 名 称</td>
                                <td width="20%" nowrap class="headCenter">负 责 人</td>
                                <td width="40%" nowrap class="headCenter">地 址</td>
                                <td width="10%" nowrap class="headCenter">状 态</td>
                              </tr>
                              </thead> 

							  
<? if(is_array($depart_list)) {
     foreach($depart_list as $key => $val) { ?>
<tr class='dark' onMouseOver="onColor(this);" onMouseOut="offColor(this);"> 
                                <td class="textCenter"align="center">
                                  <input type="checkbox" id="chkValueID" name="delete[]" value="<?=$val['id']?>" class="checkBox"></td>
                                <td class='textCenter'><a href="#" onclick="window.showModalDialog('system.php?action=department&sysaction=show&id=<?=$val['id']?>&Status=<?=$Status?>',window,'dialogWidth:550px;dialogHeight:430px;status:no;help:no;scroll:no;')"><?=$val['name']?></a></td>
                                <td class="textCenter"><?=$val['principal']?>&nbsp;</td>
                                <td class="textCenter"><?=$val['address']?>&nbsp;</td>
                                <td class="textCenter"><?=$val['fig']?>&nbsp;</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?></SPAN></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 CheckPages()
{
	if ( ThrowBlank(document.MyForm.name.value) == "") 
		{alert("部门名称不能为空!");
		 document.MyForm.name.value ="";
		 document.MyForm.name.focus();
		 return false;}
	return true;
}

function AddDept()
{
	if (CheckPages())
	{
		MyForm.action = "system.php?action=department&sysaction=add";
		MyForm.submit();
		document.MyForm.btAddDept.disabled = true;
	}
}
//-->
</SCRIPT>
<div id="Layer1" style="position:absolute; left:0px; top:80px; z-index:1; width:100%"> 
  <table width="80%" 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"> 添 加 部 门 - Department 
                    Add </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="20" border="1" cellspacing="0" height="100%" bordercolordark="#ffffff" class="edgingTable_2">
                <tr align="center"> 
                  <td>
                    <!-- 内容区开始 -->
                    <form name=MyForm id=MyForm method=post>
                      <table width="92%" cellspacing="0">
                        <tr> 
                          <td align="center"><fieldset style="width:92%"><legend class="LabelTitle">
<? if($id) { ?>

<img src="./images/icon_edit.gif" align="absmiddle" width="32" height="32"> 
								[修改部门]
<? } else { ?>
<img src="./images/icon_add.gif" align="absmiddle" width="32" height="32"> 
								[添加部门]
<? } ?>
</legend> <br>
                            <table width="90%" border="0" height="90%">
                              <tr> 
                                <td align="right" nowrap class="Shadow_white">部门名称:</td>
                                <td nowrap> 
                                  <input name="name" style="WIDTH: 130px" maxlength=10 value="<?=$depar_t['name']?>">
                                  &nbsp;<font color="red">*</font> </td>
                              </tr>
                              <tr> 
                                <td align="right" nowrap class="Shadow_white">负 责 人:</td>
                                <td> 
                                  <input type=text name=principal style="WIDTH: 130px" maxlength=20 value="<?=$depar_t['principal']?>">
                                </td>
                              </tr>
                              <tr> 
                                <td align="right" nowrap class="Shadow_white">地  址:</td>
                                <td> 
                                  <input name="address" style="WIDTH: 400px" maxlength=25 value="<?=$depar_t['address']?>">
                                </td>
                              </tr>
                              <tr> 
                                <td valign="top" align="right" nowrap class="Shadow_white">备  注:</td>
                                <td> 
                                  <textarea style="WIDTH: 400px; HEIGHT: 160px" name=des rows=5 cols=43><?=$depar_t['des']?></textarea>
                                </td>
                              </tr>
<? if($id) { ?>

<tr>
                                <td colspan=2 align="center">
								  <input type=checkbox class="checkBox" name="fig" value="0"
<? if($depar_t['fig']) { ?>
<? } else { ?>
checked
<? } ?>
>
                                  &nbsp;<strong>禁用</strong></td>
                              </tr>
								<input type=hidden name="id" value="<?=$id?>">
<? } ?>
<tr align="center"> 
                                <td height="60" colspan=2> 
                                  <input type="button" value=" 确 定 " class="button" name="btAddDept" onClick="AddDept()" onMouseOver="onButton(this);" onMouseOut="offButton(this);">
                                    
                                  <input type="reset" value=" 重 填 " class="button" name="retRewirte" onMouseOver="onButton(this);" onMouseOut="offButton(this);">
                                    
                                  <input type="button" value=" 返 回 " class="button" name="btReturn" onClick="window.document.URL='system.php?action=department'" onMouseOver="onButton(this);" onMouseOut="offButton(this);">
                                </td>
                              </tr>
                            </table>
                            </fieldset></td>
                      </tr>
                    </table>
					  <input type=hidden name="sysaction" value="add">
                      <!--操作标识-->
                    </form>
                    <!-- 内容区结束 -->
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
      <td class="shadowRight"></td>
    </tr>
    <tr> 
      <td colspan="2" class="shadowBottom"></td>
    </tr>
  </table>
  
</div>
<? } ?>
</body>
</html>

⌨️ 快捷键说明

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