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

📄 _client_client.php

📁 极限OA开源系统
💻 PHP
📖 第 1 页 / 共 2 页
字号:
                    <!-- 内容区结束 -->
                  </td>
                </tr>
                    </form>
              </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.corpname.value) == "")
		{
			alert('公司名不能为空');
			document.MyForm.corpname.focus();
			return false;
		}
	if (ThrowBlank(document.MyForm.contactor.value) == "")
		{
			alert('联系人不能为空');
			document.MyForm.contactor.focus();
			return false;
		}
	if (ThrowBlank(document.MyForm.tel.value) == "")
		{
			alert('联系电话不能为空');
			document.MyForm.tel.focus();
			return false;
		}
	if (ThrowBlank(document.MyForm.email.value) == "")
		{
			alert('联系邮件不能为空');
			document.MyForm.email.focus();
			return false;
		}
	if (ThrowBlank(document.MyForm.address.value) == "")
		{
			alert('联系地址不能为空');
			document.MyForm.address.focus();
			return false;
		}
	if (ThrowBlank(document.MyForm.des.value) == "")
		{alert("内容不能为空!");
		 document.MyForm.des.value = "";
		 document.MyForm.des.focus();}
	else {
			MyForm.action = "client.php?action=client&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 Client 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"> 
								[修改客户信息]<input type=hidden name=id value=<?=$id?>>
<? } else { ?>
<img src="./images/icon_add.gif" align="absmiddle" width="32" height="32"> 
								[添加客户信息]
<? } ?>
</legend> 
                            <br>
                            <table cellpadding="3">
                              <tr> 
                                <td align="right" class="Shadow_white" width="102">类  型:</td>
                                <td width="182"><select name="type">
									<option value=0>--选择类型--</option>
									
<? if(is_array($dict_list)) {
     foreach($dict_list as $key => $val) { ?>
<OPTION value='<?=$val['id']?>'<?=$val['sel']?>><?=$val['name']?></OPTION>
<?   } 
    } ?>

										</select></td>
                              </tr>
                              <tr> 
                                <td width="20%" align="right" nowrap class="Shadow_white" >公 司 名:</td>
                                <td nowrap> <input name="corpname" maxlength=20 value="<?=$cli_t['corpname']?>"><font color="red">&nbsp;*</font></td>
                              </tr>
                              <tr> 
                                <td width="20%" align="right" nowrap class="Shadow_white" >联 系 人:</td>
                                <td nowrap> <input name="contactor" maxlength=10 value="<?=$cli_t['contactor']?>"><font color="red">&nbsp;*</font></td>
                              </tr>
                              <tr> 
                                <td align="right" nowrap class="Shadow_white" >电  话:</td>
                                <td width="20%" nowrap> <input name="tel" maxlength=20 value="<?=$cli_t['tel']?>">
                                  &nbsp;<font color="red">*</font> </td>
                              </tr>
                              <tr> 
                                <td align="right" nowrap class="Shadow_white" >传  真:</td>
                                <td width="20%" nowrap> <input type=text name="fax" maxlength=20 value="<?=$cli_t['fax']?>"></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="<?=$cli_t['email']?>">
                                  <font color="red">&nbsp;*</font> </td>
                              </tr>
                              <tr>
                                <td width="20%" align="right" nowrap class="Shadow_white">地  区:</td>
                                <td width="20%" nowrap>省份: <input type="text" name="province2" size=12 value="<?=$cli_t['province']?>">&nbsp;&nbsp;
									区市: <input type="text" name="city2" size=12 value="<?=$cli_t['city']?>"> <select name="province" onChange = "select()"></select> <select name="city" onChange = "select()"></select>
                                  <font color="red">&nbsp;*</font> </td>
                              </tr>
                              <tr>
                                <td width="20%" align="right" nowrap class="Shadow_white">地  址:</td>
                                <td width="20%" nowrap> <input type="text" name="address" maxlength=50 value="<?=$cli_t['address']?>">
                                  <font color="red">&nbsp;*</font> </td>
                              </tr>
                              <tr>
                                <td width="20%" align="right" nowrap class="Shadow_white">网  址:</td>
                                <td width="20%" nowrap> <input type="text" name="url" maxlength=40 value="<?=$cli_t['url']?>">
                                  </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><?=$cli_t['des']?></textarea> 
                                </td>
                              </tr>
                              <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='client.php?action=client'" 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 + -