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

📄 editcontact.asp

📁 客户管理crm xitong ,希望能给你带来帮助
💻 ASP
📖 第 1 页 / 共 2 页
字号:
    <tr> 
      <td width="9%" height="22" nowrap> 
        <div align="right">客户:</div>
      </td>
      <td colspan="3" height="22"> 
        <select name="client_ID" style="width:200">
        <%
        		ID=objrs.fields("client_ID")
        		strsql="select client_name,client_id from clients"
        		Set objRs = Server.CreateObject("adodb.recordset")
	    		objRs.Open strsql,objConn,1,1
	    		if not objrs.eof then
	    			do while not objrs.eof
	    				if ID&"" = objrs.fields("client_id")&"" then
	    					response.write "<option value=" & objrs.fields("client_id") & " selected>" & objrs.fields("client_name") & "</option>"
	    				else
	    					response.write "<option value=" & objrs.fields("client_id") & ">" & objrs.fields("client_name") & "</option>"
	    				end if
	    			objrs.movenext
	    			loop
	    		end if
        %>
        </select>
      </td>
      <td width="16%" height="22" nowrap> 
        <div align="right">移动电话:</div>
      </td>
      <td width="37%" height="22"> 
        <input type="text" name="Mobile_Phone" maxlength="30" size="20" class="input" value="<%=Mobile_Phone%>">
      </td>
    </tr>
	<tr> 
      <td width="9%" height="22" nowrap>
        <div align="right">部门:</div>
      </td>
      <td width="12%" height="22">
        <%getSelected "Department_ID","select * from Dict_Department ","Department","Department_ID",Department_ID%>
      </td>
      <td width="8%" height="22" nowrap>
        <div align="right">职务:</div>
      </td>
      <td width="18%" height="22">
        <%getSelected "Title_ID","select * from Dict_Title ","Title","Title_ID",Title_ID%>
      </td>
      <td width="16%" height="22" nowrap>
        <div align="right">家庭电话:</div>
      </td>
      <td width="37%" height="22">
        <input type="text" name="Home_Phone" maxlength="30" size="20" class="input"  value="<%=Home_Phone%>">
      </td>
    </tr>
    <tr> 
      <td width="9%" height="22" nowrap> 
        <div align="right">国家/地区:</div>
      </td>
      <td width="12%" height="22"> 
       <select name="Country_ID" style="width:70" onchange="fnDo('Dict_Provinces','Country_ID','Province_ID',this.value,'Province');fnDo2('Dict_Countries','Country_ID',this.value,'Country_Code','document.form1.Country_Code');">
      <%
      strsql="select * from Dict_Countries"
      Set objRs1 = Server.CreateObject("adodb.recordset")
	  objRs1.Open strsql,objConn,1,1
	  if not objrs1.eof then
	  	do while not objrs1.eof
	  	if objrs1.fields("Country_ID") & "" = City_ID & "" then
			%>
			<option value="<%=objrs1.fields("Country_ID")%>" selected><%=objrs1.fields("Country")%></option>
			<%
	  	else
	  		%>
			<option value="<%=objrs1.fields("Country_ID")%>"><%=objrs1.fields("Country")%></option>
			<%
	  	end if
	  	
	  	objrs1.movenext
	  	loop
	  end if
      set objRs1=nothing
      %>
      </select><input type=button value='...' class='button' onclick=Openwin("Country.asp");>
      </td>
      <td width="8%" height="22" nowrap> 
        <div align="right">国际区号:</div>
      </td>
      <td width="18%" height="22"> 
        <input type="text" name="Country_Code" size="10" value="<%=Country_Code%>" maxlength="8" class="input" readonly >
      </td>
      <td width="16%" height="22" nowrap> 
        <div align="right">传真:</div>
      </td>
      <td width="37%" height="22"> 
        <input type="text" name="FAX1" maxlength="30" size="20" class="input" value="<%=FAX1%>">
      </td>
    </tr>
    
    <tr> 
      <td width="9%" height="22" nowrap> 
        <div align="right">省份:</div>
      </td>
      <td width="12%" height="22"> 
       <select name="Province_ID" onchange="fnDo1('Dict_Cities','Province_ID','City_ID',this.value,'City');fnDo2('Dict_Cities','Province_ID',this.value,'Area_Code','document.form1.Area_Code');" style="width:70">
      	<option value="">==选择==</option>
      </select><input type=button value='...' class='button' onclick=Openwin("Province.asp");>
      </td>
      <td width="8%" height="22" nowrap> 
        <div align="right">区号:</div>
      </td>
      <td width="18%" height="22"> 
        <input type="text" name="Area_Code" size="10" maxlength="8" value="<%=Area_Code%>" class="input" readonly >
      </td>
      <td width="16%" height="22" nowrap> 
        <div align="right">电子邮箱:</div>
      </td>
      <td width="37%" height="22">
        <input type="text" name="Email1" maxlength="50" size="20" class="input" value="<%=Email1%>">
      </td>
    </tr>
    <tr> 
      <td width="9%" height="22" nowrap> 
        <div align="right">城市:</div>
      </td>
      <td width="12%" height="22"> 
         <select name="City_ID" style="width:70"  onchange="fnDo2('Dict_Cities','Province_ID',this.value,'ZIP','document.form1.ZIP');">
      		<option value="">==选择==</option>
       </select><input type=button value='...' class='button' onclick=Openwin("City.asp");>
      </td>
      <td width="8%" height="22" nowrap> 
        <div align="right">邮编:</div>
      </td>
      <td width="18%" height="22"> 
        <input type="text" name="ZIP" size="10" maxlength="8" class="input" value="<%=ZIP%>" readonly >
      </td>
      <td width="16%" height="22" nowrap> 
        <div align="right">业余爱好:</div>
      </td>
      <td width="37%" height="22">
        <input type="text" name="Hobbies" maxlength="50" size="20" class="input" onKeyUp='this.value=this.value.replace(/\D/gi,"")' value="<%=Hobbies%>">
      </td>
    </tr>
    <tr> 
      <td width="9%" height="22" nowrap> 
        <div align="right">详细地址:</div>
      </td>
      <td colspan="3" height="22"> 
        <div align="left"> 
          <input type="text" name="Address" size="37" maxlength="100" class="input" value="<%=Address%>">
        </div>
      </td>
      <td width="16%" height="22" nowrap> 
        <div align="right">特别纪念日:</div>
      </td>
      <td width="37%" height="22">
        <input type="text" name="Special_Day" maxlength="30" size="20" class="input" value="<%=Special_Day%>">
      </td>
    </tr>
    <tr> 
      <td colspan="6" height="22"> 
        <input type="checkbox" name="IsPublic" value="1" <%if IsPublic & ""="1" then%>checked<%end if%>>公开此条纪录
      </td>
    </tr>
    <tr> 
      <td colspan="6" height="22"> 
        <div align="center"> 
          <input type="submit" value="  提 交  " class="button">
          <input type="reset" value="  重 设  " class="button">
          <input type="button" value="  关 闭  " class="button" onclick="top.close();">
        </div>
      </td>
    </tr>
  </form>
</table>
</body>
</html>
<script>
	function Openwin(str)
	{
		window.open(str,"","left=100,top=100,Width=500,Height=400,scrolling=yes");
	}
	function init(){
		if(document.form1.Country_ID.options[document.form1.Country_ID.selectedIndex].value!=""){
			fnDo('Dict_Provinces','Country_ID','Province_ID',document.form1.Country_ID.options[document.form1.Country_ID.selectedIndex].value,'Province');
		}
		
		if(document.form1.City_ID.options[document.form1.City_ID.selectedIndex].value!=""){
			fnDo1('Dict_Cities','Province_ID','City_ID',document.form1.City_ID.options[document.form1.City_ID.selectedIndex].value,'City');
		}
		//checkProvince(<%=Province_ID%>);
		//checkCity(<%=City_ID%>);
	}
	function checkProvince(strp)
	{
		for(i=0;i<document.form1.Province_ID.length;i++){
			var va=document.form1.Province_ID.options[i].value ;
			var b1= va == strp;
			//alert(b1);
			if(b1)
			{
				document.form1.Province_ID.options[i].selected=true;
			}
		}
	}
	function checkCity(strc)
	{
		for(i=0;i<document.form1.City_ID.length;i++){
			if(document.form1.City_ID.options[i].value ==strc){
				document.form1.City_ID.options[i].selected=true;
			}
		}
	}
	init();
</script>

⌨️ 快捷键说明

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