name=request("cname")
if name="" then
%>
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i }
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i for(i=0;!x&&d.layers&&i if(!x && document.getElementById) x=document.getElementById(n); return x;
}
//-->
function OpenWindows(url,widthx,heighx)
{
var
newwin=window.open(url,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=20,left=60,width=600,height=500");
return false;
}
新增个人名片
新增个人名片
姓名:
单位:
通讯地址:
邮编:
职务:
电话:
传真:
手机:
信箱:
备注:
function ChkCard()
{
if (document.AddCard.cname.value=="" )
{
alert("注意!姓名不能为空哦!");
return false;
}
}
else
set rs=server.createobject("ADODB.recordset")
rs.Open "SELECT * FROM card Where ID is null",conn,1,3
rs.addnew
rs("cname")=request("name")
rs("company")=request("company")
rs("comaddress")=request("comaddress")
rs("postcode")=request("postcode")
rs("duty")=request("duty")
rs("phone")=request("phone")
rs("fax")=request("fax")
rs("handset")=request("handset")
rs("email")=request("email")
rs("remark")=request("remark")
rs("userid")=session("Uid")
rs.update
id=rs("id")
rs.close
set rs=nothing
%>
opener.location=opener.location;
function OpenWindows(url,widthx,heighx)
{
var
newwin=window.open(url,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=20,left=60,width=600,height=500");
return false;
}
修改个人名片
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i }
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i for(i=0;!x&&d.layers&&i if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
个人名片成功添加
姓名:
单位:
通讯地址:
邮编:
职务:
电话:
传真:
手机:
信箱:
备注:
function DelChk(cardid)
{
if(confirm("确认删除吗?"))
document.location="delcard.asp?flag=0&cardid="+cardid ;
}
function ChkCard()
{
if (document.AddCard.cname.value=="" )
{
alert("注意!姓名不能为空哦!");
return false;
}
}