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

📄 _system_dict.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">
            <table width="100%">
              <tr>
                <td height="70" align="center">&nbsp;</td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<? if($sysaction != 'add') { ?>

<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function sltDictName_onchange() 
{
	MyForm.action = "system.php?action=dict";
	MyForm.submit()
}
function DelDictValue()
{
	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=dict&sysaction=del";
			MyForm.submit();
		}
	}
}
function AddDictValue()
{
	MyForm.action = "system.php?action=dict&sysaction=add";
	MyForm.submit();
}
//-->
</SCRIPT>
<div id="Layer1" style="position:absolute; left:0px; top:80px; 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"> 信 息 列 表 - Basic 
                    Information </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 valign="top"> 
                    <!-- 内容区开始 -->
                    <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="over"' onMouseUp='this.className="over"' onMouseOut='this.className="imgButton"' onClick="AddDictValue()" 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="DelDictValue()" 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>
                    <form name=MyForm id=MyForm method=Post>
                      <table width="95%">
                        <tr> 
                          <td>资料列表: 
                            <select name="cid" onChange="sltDictName_onchange()">
                              <option value="1"
<? if($cid==1) { ?>

selected
<? } ?>
>职 务</option>
                              <option value="2"
<? if($cid==2) { ?>

selected
<? } ?>
>政治面貌</option>
                              <option value="3"
<? if($cid==3) { ?>

selected
<? } ?>
>学 历</option>
                              <option value="4"
<? if($cid==4) { ?>

selected
<? } ?>
>民 族</option>
                              <option value="5"
<? if($cid==5) { ?>

selected
<? } ?>
>客户类型</option>
                              <option value="6"
<? if($cid==6) { ?>

selected
<? } ?>
>客户状态</option>
                            </select>
                          </td>
                        </tr>
                      </table>
                      <table width="95%" border="1" cellspacing="0" cellpadding="2" bgcolor="#888888" align="center" bordercolordark="#ffffff" bordercolor="#888888">
                        <tr bgcolor="#EEEEEE"> 
                          <td align="align" width="5%" class="headCenter">#</td>
                          <td align="center" width="30%" class="headCenter">编 
                            码</td>
                          <td align="center" class="headCenter">内 容</td>
                        </tr>
						
                        
<? if(is_array($dict_list)) {
     foreach($dict_list as $key => $val) { ?>
<tr class='light' onMouseOver="onColor(this);" onMouseOut="offColor(this);"> 
                          <td class="textCenter"> 
                            <input type="checkbox" id="chkValueID" name="delete[]" value="<?=$val['id']?>" class="checkBox">
                          </td>
                          <td class="textCenter"><b><?=$val['id']?></b></td>
                          <td class="textCenter"><a href="system.php?action=dict&sysaction=add&cid=<?=$cid?>&id=<?=$val['id']?>"><?=$val['name']?></a></td>
                        </tr>
<?   } 
    } ?>

                        <input type=hidden name=ccid value=<?=$cid?>>
                        
                      </table>
                      <br>
                      总 共 <font color=red><b><?=$num?></b></font> 项 
                      <input type=hidden name="OperType" value="Add">
                      <!--操作标识-->
                    </form>
					<p><br>
                    </p>
                    <!-- 内容区结束 -->
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
      <td class="shadowRight"></td>
    </tr>
    <tr> 
      <td colspan="2" class="shadowBottom"></td>
    </tr>
  </table>
  
</div>
<? } else { ?>
<script Language=JavaScript src="./scripts/ClientCheck.js"></script>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function btAddValue_onsub()
{
	if (ThrowBlank(document.MyForm.name.value) == "")
		{alert("内容不能为空!");
		 document.MyForm.name.value = "";
		 document.MyForm.name.focus();}
	else {
			MyForm.action = "system.php?action=dict&sysaction=add"
			MyForm.submit();
			document.MyForm.btAddValue.disabled = true;
		 }
}
//-->
</SCRIPT>
<div id="Layer1" style="position:absolute; left:0px; top:100px; z-index:1; width:100%"> 
  <table width="70%" 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"> 添 加 信 息 - Info 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 cellpadding="3">
                              <tr> 
                                <td align="right" height="30" class="Shadow_white" width="102">资料名称:</td>
                                <td height="30" width="182"><b> <font color="#0000CC"> 
                                  </font> <font color="#0000CC"><?=$thiscate?></font></b></td>
                              </tr>
<? if($id) { ?>

<tr> 
                                <td align="right" class="Shadow_white" width="102">编    码:</td>
                                <td width="182"><?=$dic_t['id']?><input type=hidden name=id value='<?=$dic_t['id']?>'></td>
                              </tr>
<? } ?>
<tr> 
                                <td align="right" class="Shadow_white" width="102">内  容:</td>
                                <td width="182"> 
                                  <input type="text" name="name" maxlength=10 value="<?=$dic_t['name']?>">
                                  <font color="#FF3300"> * </font></td>
                              </tr><input type=hidden name=cid value=<?=$cid?>>
                              <tr> 
                                <td align="center" height="50" colspan="2" nowrap> 
                                  <input type="button" value=" 确 定 " class="button" name="btAddValue" onclick="btAddValue_onsub()" 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=dict&cid=<?=$cid?>'" onMouseOver="onButton(this);" onMouseOut="offButton(this);">
                                </td>
                              </tr>
                            </table>
                            <br>
                            </fieldset></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>
  
</div>
<? } ?>
</body>
</html>

⌨️ 快捷键说明

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