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

📄 addfriend_new.asp

📁 实现一个用JSP、Servlet技术实现的小型物流网站系统。实现功能如下:管理员通过登录该系统
💻 ASP
字号:
<!--#include file="../head.asp"-->
  <!--#include file="../checkrole.asp"-->
 <%
      call checkuser("sh")
	    Response.Buffer = true
  Response.ExpiresAbsolute=now()-1
  Response.Expires=0
  Response.CacheControl="no-cache"

if Not ChkPost then 
		response.write "<script language='javascript'>"
		response.write"parent.location.href='"&HOPE_InstallDir&"login/login1.asp';</SCRIPT>"
		response.end
end if
%>

<TABLE width=778 border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
  <TR>
    <TD  style="BACKGROUND-POSITION: right 50%; BACKGROUND-IMAGE: url(i../mages/bg1.gif); BACKGROUND-REPEAT: repeat-y; BACKGROUND-COLOR: #ffffff" 
    vAlign=top align=middle>
      <BR>
      <TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
        <TBODY>
        <TR>
              <TD width="5%"><IMG height=32 src="../images/myfriend.gif" 
            border=0></TD>
              <TD width="95%" background="../images/info_bg.gif">&nbsp;</TD>
        </TR></TBODY></TABLE>

<TABLE class=content_border cellSpacing=0 cellPadding=0 width=100% 
border=0>
        <TBODY>
        <TR>
          <TD align=middle><BR>

		  <BR>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD class=tbg1>一、对方已经是会员了</TD>
              </TR></TBODY></TABLE><IMG height=8 
            src="../images/shim(1).gif" width=1><BR>
            <TABLE class=bdr1 cellSpacing=0 cellPadding=0 width="100%" 
              border=0>
              <TBODY>
              <TR>
                <TD>
                  <TABLE class=bdr2 cellSpacing=0 cellPadding=0 width="100%" 
                  border=0>
                    <TBODY>
                    <TR>
                      <TD class=lh15><SPAN 
                        class=M>·我还不知道对方的“会员登录名”</SPAN><BR>
                                从公司库:<A 
					href="../../corporation/index.html" 
                        target=_blank>搜索我要增加的商业伙伴</A> </TD>
                </TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
            <TABLE class=bdr1 cellSpacing=0 cellPadding=0 width="100%" 
              border=0>
              <TBODY>
              <TR>
                <TD>
                  <TABLE class=bdr2 cellSpacing=0 cellPadding=0 width="100%" 
                  border=0>
                    <TBODY>
                    <TR>
                      <TD class=lh15>
<script Language="JavaScript">
function check()
{
  if (trim(form1.user.value)=="") {
		alert("对方会员登陆名不能为空!");
		form1.user.focus();		
		    return (false);
  }
  if (trim(form1.relation.value)=="") {
		alert("请选择要添加到的组!");
		form1.relation.focus();		
		    return (false);
  }
else
	document.form1.submit();
}
//-->
function trim(inputString) {
	   
              if (typeof inputString != "string") { return inputString; }
              var retValue = inputString;
              var ch = retValue.substring(0, 1);
              while (ch == " ") { 
	          //检查字符串开始部分的空格
                  retValue = retValue.substring(1, retValue.length);
                  ch = retValue.substring(0, 1);
              }
              ch = retValue.substring(retValue.length-1, retValue.length);
              while (ch == " ") {
                 //检查字符串结束部分的空格
                 retValue = retValue.substring(0, retValue.length-1);
                 ch = retValue.substring(retValue.length-1, retValue.length);
              }
              while (retValue.indexOf("  ") != -1) { 
	         //将文字中间多个相连的空格变为一个空格
                 retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); 
              }
              return retValue;
           } 

//--> 
</script>
                       <FORM name=form1 action="save_addfriend_new.asp" method=post>
                        <TABLE cellSpacing=0 cellPadding=0 width="95%" 
                          border=0><TBODY>
                          <TR>
                            <TD colspan="2" class=M>·我知道对方的“会员登录名”</TD></TR>
                          <TR>
                            <TD width="45%" height="30" align="right">输入对方的&quot;<B>会员登录名</B>&quot;:                           </TD>
                            <TD width="55%">   <INPUT maxLength=20         size=12 name="user"> </TD>
                          </TR>
                          <TR>
                            <TD height="30"   align="right">我要将对方添加到: </TD>
                            <td>
                              <SELECT size=1 name="relation"> <OPTION value="" selected></OPTION>
<OPTION value=0>我的供应商</OPTION> <OPTION value=1>我的采购商</OPTION><OPTION value=-1>黑名单</OPTION></SELECT></TD>
                          </TR>
                          <TR>
                            <TD height="30" colspan="2" align="center"><INPUT type=button value=提交 name=eventSubmit_doAddByLoginId onClick="check()"></TD>
                          </TR></TBODY></TABLE>
				</form></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
<BR>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD class=tbg1> </TD>
              </TR></TBODY></TABLE><IMG height=8 
            src="../images/shim(1).gif" width=1><BR>
            <TABLE class=bdr1 cellSpacing=0 cellPadding=0 width="100%" 
              border=0>
              <TBODY>
              <TR>
                <TD>
                  <TABLE class=bdr2 cellSpacing=0 cellPadding=0 width="100%" 
                  border=0>
                    <TBODY>
                    <TR>
                      <TD class=lh15>  </TD>
      </TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR><BR><BR><BR></TD></TR></TBODY></TABLE>

</TABLE>

⌨️ 快捷键说明

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