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

📄 profileleft.asp

📁 1 除掉了 时间 限制 2 除掉了 人数 限制 改为 500人 原为5人 3 发现一点小缺陷 增加人员的时候没有判断 登陆名是否重复! 自己写吧~~~:) 4 又 是一点缺陷
💻 ASP
字号:
<!--#include file="../config.ini" -->
<!--#include file="../commfunction.inc" -->
<%
Dim objcheck
Set objcheck=Server.CreateObject("SmartSales.CheckFunction")
objcheck.CheckUserFunction "profile","read"
set objcheck=nothing
%>
<SCRIPT language=JavaScript>
function newhelp(openurl,title,windowform)
{
	var theWindow;
	theWindow = window.open(openurl,title,windowform);
	theWindow.opener = this;
}
function jumpMenu(targ,selObj,restore){
	var theWindow=selObj.options[selObj.selectedIndex].value;
	theWindow = window.open(selObj.options[selObj.selectedIndex].value,"new","toolbar=no,scrollbars=yes,location=no,status=no,menubar=no,width=520,height=320,top=150,left=160");
	theWindow.operner=this;
	 if (restore) selObj.selectedIndex=0;
}
</script>
<script language="JavaScript">
function showTr3(tag1){
	tag_plus = document.getElementById(tag1+"_plus");
	tag_minus = document.getElementById(tag1+"_minus");
	arrHid = document.form1.hid;
	if(tag_plus!=null)
	{ 
		if(tag_plus.style.display == "none")
		{//alert(arrHid.length);
			for(tempI=2;tempI<arrHid.length;tempI++)
			{
				if(arrHid[tempI].ATCUSF == tag1)
				{
					eval("tr_"+arrHid[tempI].trid+".style.display='none'");
				}
			}

			tag_plus.style.display="block";
			tag_minus.style.display="none";
		}
		else
		{//alert(arrHid.length);
			for(tempI=2;tempI<arrHid.length;tempI++)
			{
				if(arrHid[tempI].ATCUSF == tag1)
				{
					eval("tr_"+arrHid[tempI].trid+".style.display=''");
				}
			}
			tag_plus.style.display="none";
			tag_minus.style.display="block";
		}
	}
}
</SCRIPT>
<script language="JavaScript">
function mOvr(src,clrOver) { if (!src.contains(event.fromElement)) { src.style.cursor = 'hand'; src.bgColor = clrOver;}}
function mOut(src,clrIn) { if (!src.contains(event.toElement)) { src.style.cursor = 'default'; src.bgColor = clrIn;}}
</script>
<%
dim conn
set conn=server.CreateObject("adodb.connection")
conn.Open connstring
%>
<html>
<head>
<LINK href="../global.css" rel=STYLESHEET type=text/css>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ProFileList</title>
</head>
<body leftmargin="0" centermargin="0" topmargin="0" rightmargin="1" bgcolor="B8B2B8">
<form name="form1" method="post" action="ProFileLeft.asp">
<input type="hidden" name="hid" trid="x_y_y" ATCUSF="1">
<input type="hidden" name="hid" trid="x_y_z" ATCUSF="2">
<!--
<table align="center" border="2" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#decfa8" width="100%" bordercolorlight="#CCCCCC" bordercolordark="#808080'>
<tr><td width="100%" height="500" align="center" valign="top">
-->

<table width="179" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr><td align="left" bgcolor="FFFFFF"  valign="top">
	<table border=0 cellpadding=0 cellspacing=0 style="border-collapse: collapse" bgcolor="#FFFFFF" width="179">
	  <tr><td bgcolor="#ffffff" colspan="4" height="50" align="center"><img src="../images/smartsales5.gif"></td></tr>
          <%
  set rsall=server.CreateObject("adodb.recordset")
  rsall.Open "select * from ProFileList where ProFileListId="&Cint(request("ProFilelistid"))&" order by seq",conn,1,1
  i=1:do while not rsall.EOF
  set str0profilelistid=rsall("profilelistid")
  set str0subname=rsall("subname")
  %>
          <tr bgcolor='#FFFFFF' onMouseOver=mOvr(this,"#99CCFF") onMouseOut=mOut(this,"#FFFFFF")> 
            <td align="center" width="5%">&nbsp;</td>
            <td align="left" height="20" width="5%"><img src="ProFileListImg/bookclose.gif" onClick="showTr3('<%=str0profilelistid%>');" id="<%=str0profilelistid%>_plus" style="display:"><img src="ProFileListImg/bookopen.gif" onClick="showTr3('<%=str0profilelistid%>');" id="<%=str0profilelistid%>_minus" style="display:none"></td>
 		    <td align=left onClick="showTr3('<%=str0profilelistid%>');"><a href="ProFilebottom.asp?profilelistid=<%=str0profilelistid%>"  target="bottom">&nbsp;<%=str0subname%></a> 
              <a href="javascript:opensubwin3('newfile.asp?andId=<%=str0profilelistid%>','file','toolbar=no,scrollbars=no,location=no,status=no,menubar=no,width=600,height=400,top=150,left=160');">&nbsp;new</a> 
              <a href="javascript:opensubwin3('newfile.asp?ProFileListId=<%=str0profilelistid%>','file','toolbar=no,scrollbars=no,location=no,status=no,menubar=no,width=600,height=400,top=150,left=160');">edit 
              </a></td>
            <td align="center" width="10%">&nbsp;</td>
          </tr>
          <%
  set rs=server.CreateObject("adodb.recordset")
  rs.Open "select * from ProFileList where andId="&Cint(str0profilelistid)&" order by seq",conn,1,1
  j=1:do while not rs.EOF
  set str1profilelistid=rs("profilelistid")
  set str1subname=rs("subname")
  		if rs("FileText")<>"" then
  		%>
		<tr id="tr_<%=i%>_<%=j%>" style="display:none" ><td colspan=6>
		  <table border=0 cellpadding=0 cellspacing=0 width="100%">
		   <tr bgcolor="#FFFFFF" onMouseOver=mOvr(this,"#99CCFF") onMouseOut=mOut(this,"#FFFFFF")> 
            <td align="center" width="5%">&nbsp;</td>
            <td width="5%" align="center"><img src="ProFileListImg/book.gif"></td>
                  <td height="20" colspan="3" align=left><a href="ProFilebottom.asp?profilelistid=<%=str1profilelistid%>" target="bottom">&nbsp;<%=str1subname%></a> 
                    <a href="javascript:opensubwin3('newfile.asp?andId=<%=str1profilelistid%>','file','toolbar=no,scrollbars=no,location=no,status=no,menubar=no,width=600,height=400,top=150,left=160');">&nbsp;new</a> 
                    <a href="javascript:opensubwin3('newfile.asp?ProFileListId=<%=str1profilelistid%>','file','toolbar=no,scrollbars=no,location=no,status=no,menubar=no,width=600,height=400,top=150,left=160');">edit</a> 
                  </td>
            <td align="center" width="10%" valign="top"></td>
          </tr>
  		<%
  		else
  %>
		<tr id="tr_<%=i%>_<%=j%>" style="display:none" ><td colspan=6>
  	     <table border=0 cellpadding=0 cellspacing=0 width="100%">
                      <tr bgcolor="#FFFFFF" onMouseOver=mOvr(this,"#99CCFF") onMouseOut=mOut(this,"#FFFFFF")> 
                        <td align="center" width="5%">&nbsp;</td>
                        <td width="5%" align="center"><img src="ProFileListImg/bookplus.gif" onClick="showTr3('<%=str1profilelistid%>');" id="<%=str1profilelistid%>_plus" style="display:"><img src="ProFileListImg/bookminus.gif" onClick="showTr3('<%=str1profilelistid%>');" id="<%=str1profilelistid%>_minus" style="display:none"></td>
                        <td height="20" colspan="3" align=left onClick="showTr3('<%=str1profilelistid%>');"><a href="ProFilebottom.asp?profilelistid=<%=str1profilelistid%>"  target="bottom">&nbsp;<%=str1subname%></a>&nbsp;&nbsp;<a href="javascript:opensubwin3('newfile.asp?andId=<%=str1profilelistid%>','file','toolbar=no,scrollbars=no,location=no,status=no,menubar=no,width=600,height=400,top=150,left=160');">new</a> 
                          <a href="javascript:opensubwin3('newfile.asp?ProFileListId=<%=str1profilelistid%>','file','toolbar=no,scrollbars=no,location=no,status=no,menubar=no,width=600,height=400,top=150,left=160');">edit</a></td>
                        <td align="center" width="10%" valign="top"></td>
                      </tr>
                      <%
          end if
	  set rsq=server.CreateObject("adodb.recordset")
	  rsq.Open "select * from ProFileList where andId="&Cint(str1profilelistid)&" order by seq",conn,1,1
	  k=1:do while not rsq.EOF
		str2thprofilelistid=rsq("profilelistid")
		str2thsubname=rsq("subname")
		if rsq("FileText")<>"" then
		%>
                      <tr id="tr_<%=i%>_<%=j%>_<%=k%>" style="display:none" > 
                        <td colspan=6> <table border=0 cellpadding=0 cellspacing=0 width="100%">
                            <tr bgcolor="#FFFFFF" onMouseOver=mOvr(this,"#99CCFF") onMouseOut=mOut(this,"#FFFFFF")> 
                              <td align="center" width="5%">&nbsp;</td>
                              <td align="center" width="5%">&nbsp;</td>
                              <td width="5%" align="center"><img src="ProFileListImg/book.gif"></td>
                              <td height="20" colspan="2" align=left><a href="ProFilebottom.asp?profilelistid=<%=str2thprofilelistid%>" target="bottom">&nbsp;<%=str2thsubname%></a><a href="javascript:opensubwin3('newfile.asp?andId=<%=str2thprofilelistid%>','file','toolbar=no,scrollbars=no,location=no,status=no,menubar=no,width=600,height=400,top=150,left=160');">&nbsp;&nbsp;&nbsp;new</a> 
                                <a href="javascript:opensubwin3('newfile.asp?ProFileListId=<%=str2thprofilelistid%>','file','toolbar=no,scrollbars=no,location=no,status=no,menubar=no,width=600,height=400,top=150,left=160');">edit</a></td>
                              <td align="center" width="10%" valign="top"></td>
                            </tr>
                            <%
		else
	%>
                            <tr id="tr_<%=i%>_<%=j%>_<%=k%>" style="display:none" > 
                              <td colspan=6> <table border=0 cellpadding=0 cellspacing=0 width="100%">
                                  <tr bgcolor="#FFFFFF" onMouseOver=mOvr(this,"#99CCFF") onMouseOut=mOut(this,"#FFFFFF")> 
                                    <td align="center" width="5%">&nbsp;</td>
                                    <td align="center" width="5%">&nbsp;</td>
                                    <td width="5%" align="center"><img src="ProFileListImg/bookplus.gif" onClick="showTr3('<%=str2thprofilelistid%>');" id="<%=str2thprofilelistid%>_plus" style="display:"><img src="ProFileListImg/bookminus.gif" onClick="showTr3('<%=str2thprofilelistid%>');" id="<%=str2thprofilelistid%>_minus" style="display:none"></td>
                                    <td height="20" colspan="2" align=left onClick="showTr3('<%=str2thprofilelistid%>');"><a href="ProFilebottom.asp?profilelistid=<%=str2thprofilelistid%>"  target="bottom">&nbsp;<%=str2thsubname%></a>&nbsp;&nbsp;
									<a href="javascript:opensubwin3('newfile.asp?andId=<%=str2thprofilelistid%>','file','toolbar=no,scrollbars=no,location=no,status=no,menubar=no,width=600,height=400,top=150,left=160');">new</a> 
                                      <a href="javascript:opensubwin3('newfile.asp?ProFileListId=<%=str2thprofilelistid%>','file','toolbar=no,scrollbars=no,location=no,status=no,menubar=no,width=600,height=400,top=150,left=160');">edit</a></td>
                                    <td align="center" width="10%" valign="top"></td>
                                  </tr>
                                  <%
          end if
			set rsw=server.CreateObject("adodb.recordset")
		    rsw.Open "select * from ProFileList where andId="&Cint(str2thprofilelistid)&" order by seq",conn,1,1
			l=1:do while not rsw.EOF
			str3ndprofilelistid=rsw("profilelistid")
			str3ndsubname=rsw("subname")
			%>
                                  <tr id="tr_<%=i%>_<%=j%>_<%=k%>_<%=l%>" style="display:none" bgcolor="#FFFFFF" onMouseOver=mOvr(this,"#99CCFF") onMouseOut=mOut(this,"#FFFFFF")> 
                                    <td align="center" width="5%">&nbsp;</td>
                                    <td align="center" width="5%">&nbsp;</td>
                                    <td align="center" width="5%">&nbsp;</td>
                                    <td width="5%" align="center"><img src="ProFileListImg/book.gif"></td>
                                    <td height="20" align=left><a href="ProFilebottom.asp?profilelistid=<%=str3ndprofilelistid%>" target="bottom">&nbsp;<%=str3ndsubname%>&nbsp;&nbsp;</a><a href="javascript:opensubwin3('newfile.asp?andId=<%=str3ndprofilelistid%>','file','toolbar=no,scrollbars=no,location=no,status=no,menubar=no,width=600,height=400,top=150,left=160');">new</a> 
                                      <a href="javascript:opensubwin3('newfile.asp?ProFileListId=<%=str3ndprofilelistid%>','file','toolbar=no,scrollbars=no,location=no,status=no,menubar=no,width=600,height=400,top=150,left=160');">edit</a></td>
                                    <td align="center" width="10%" valign="top"><input type="hidden" name="hid" trid="<%=i%>_<%=j%>_<%=k%>_<%=l%>" ATCUSF="<%=str2thprofilelistid%>"></td>
                                  </tr>
                                  <%
		 l=l+1
  		 rsw.MoveNext
 		 loop
%>
                                </table>
                                <input type="hidden" name="hid" trid="<%=i%>_<%=j%>_<%=k%>" ATCUSF="<%=str1profilelistid%>"></td>
                            </tr>
                            <%
  k=k+1
  rsq.MoveNext
  loop
%>
                          </table>
                          <input type="hidden" name="hid" trid="<%=i%>_<%=j%>" ATCUSF="<%=str0profilelistid%>"></td>
                      </tr>
                      <%
 j=j+1
 rs.MoveNext
 loop
%>
                    </table></td></tr>
<%
i=i+1
rsall.MoveNext
loop
%>
<tr bgcolor="#FFFFFF">

                  <td colspan="6" valign="bottom"><img src="../images/smallprompt.jpg"><font color="#6699CC">技术支持:<br>
                    &nbsp;Mobile: 13916055018<br>
                    &nbsp;MSN: <a href="mailto:chuchunbiao@hotmail.com">chuchunbiao@hotmail.com</a><br>
                    <br>
                    </font></td>
</tr></table>
<%
  conn.Close 
  set conn=nothing
%>
 </td></tr></table>
</td></tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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