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

📄 user_edit.asp

📁 soft.studa.com大家一起加油啊,好痛苦啊,呵呵
💻 ASP
字号:
<!--#include file="top.asp"-->
<%
if session("user_id")="" then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('非法操作!');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
else
%>
<SCRIPT language=JavaScript>
function CheckInput(){

	if( input.password1.value =="") {
                alert("密码不能为空!")
		input.password1.focus();
        return false;
    }
	if( input.password2.value =="") {
                alert("确认密码不能为空!")
		input.password2.focus();
        return false;
    }
	if( input.email.value =="") {
                alert("Email不能为空!")
		input.email.focus();
        return false;
    }


	if(input.shopname.value==''){
		alert("店铺名称不能为空!");
		input.shopname.focus();
		return false;
	}
	if(input.shopcontent.value==''){
		alert("店铺描述不能为空!");
		input.shopcontent.focus();
		return false;
	}
	if(input.shopaddress.value==''){
		alert("店铺地址不能为空!");
		input.shoaddress.focus();
		return false;
	}
	if(input.shopphone.value==''){
		alert("联系电话不能为空!");
		input.shopphone.focus();
		return false;
	}
	
	return true;
}
</SCRIPT>
<TABLE width=760 border=0 align=center cellpadding="4">
  <TBODY>
    <TR> 
      <TD vAlign=top  width=161><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
          <TBODY>
            <TR> 
              <TD><IMG height=10 src="images/kuai01.gif" width=161></TD>
            </TR>
            <TR> 
              <TD> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                  <TBODY>
                    <TR> 
                      <TD width=11 background=images/kuai04.gif>&nbsp;</TD>
                      <TD bgColor=#f8f8fa><table width="100%" border="0">
                          <tr> 
                            <td><IMG height=8 src="images/xm02.gif" width=4> <strong></strong>店铺管理中心</td>
                          </tr>
                          <tr> 
                            <td><a href="user_edit.asp">&nbsp; 基本资料管理</a></td>
                          </tr>
                          <tr> 
                            <td><a href="shop_img.asp">&nbsp; 店铺图片管理</a></td>
                          </tr>
                          <tr> 
                            <td><a href="goods.asp">&nbsp; 商品管理</a></td>
                          </tr>
                          <tr> 
                            <td>&nbsp; 店铺帮助</td>
                          </tr>
                          <tr> 
                            <td>&nbsp; <a href="user_logout.asp">店长退出</a></td>
                          </tr>
                          <tr> 
                            <td>&nbsp; 注销帐号</td>
                          </tr>
                        </table></TD>
                      <TD width=11 background=images/kuai05.gif>&nbsp;</TD>
                    </TR>
                  </TBODY>
                </TABLE></TD>
            </TR>
            <TR> 
              <TD><IMG height=15 src="images/kuai02.gif" width=161></TD>
            </TR>
            <TR> 
              <TD> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                  <TBODY>
                    <TR> 
                      <TD width=11 background=images/kuai04.gif>&nbsp;</TD>
                      <TD bgColor=#f8f8fa><table width="100%" border="0">
                          <tr> 
                            <td><IMG height=8 src="images/xm02.gif" width=4> <strong></strong>本站新闻</td>
                          </tr>
                          <tr> 
                            <td><table width="100%" border="0" style="border-collapse: collapse">
                                <% 
Set rs= conn.execute("select * from news order by news_id desc" ) 
do while not rs.eof
%>
                                <tr> 
                                  <td height=18 >·<a href="news_info.asp?news_id=<%=rs("news_id")%>" target="_blank"><%=rs("news_title")%></a></td>
                                  <% i=i+1 
if i>=6 then exit do 
rs.movenext 
loop 
rs.close 
set rs=nothing 
%>
                                </tr>
                              </table></td>
                          </tr>
                        </table></TD>
                      <TD width=11 background=images/kuai05.gif>&nbsp;</TD>
                    </TR>
                </TABLE></TD>
            </TR>
            <TR> 
              <TD bgColor=#dbdbdb><IMG height=10 src="images/kuai03.gif" width=161></TD>
            </TR>
            <TR> 
              <TD height=5 bgColor=#dbdbdb><IMG height=5 
            src="images/kuai14.gif" width=161></TD>
            </TR>
        </TABLE></TD>
      <TD align="center" vAlign=top>
<TABLE cellSpacing=0 cellPadding=0 width="550" border=0>
          <TBODY>
            <TR> 
              <TD width=11 height=11><IMG height=11 src="images/kuai06.gif" 
            width=11></TD>
              <TD background=images/kuai10.gif><IMG height=11 
            src="images/kuai10.gif" width=1></TD>
              <TD width=11 height=11><IMG height=11 src="images/kuai07.gif" 
      width=11></TD>
            </TR>
          </TBODY>
        </TABLE>
        <TABLE cellSpacing=0 cellPadding=0 width="550" border=0>
          <TBODY>
            <TR> 
              <TD width=8 background=images/kuai12.gif>&nbsp;</TD>
              <TD bgColor=#d3e1fd height=21> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                  <TBODY>
                    <TR> 
                      <TD align=middle width=25><IMG height=15 
                  src="images/xm04.gif" width=13></TD>
                      <TD>注册帐号</TD>
                      <TD width=90>&nbsp;</TD>
                    </TR>
                  </TBODY>
                </TABLE></TD>
              <TD width=8 background=images/kuai11.gif>&nbsp;</TD>
            </TR>
            <TR> 
              <TD width=8 background=images/kuai12.gif>&nbsp;</TD>
              <TD><form action="user_edit_save.asp" method="post" name="input" id="input" onsubmit=return(CheckInput())>
                  <table width="98%" border="0" align="center">
                    <tr> 
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr> 
                      <td align="right">帐号:</td>
                      <td><font color="#FF0000"><%=session("user_name")%></font>&nbsp;帐号不能修改</td>
                    </tr>
                    <tr> 
                      <td align="right">密码:</td>
                      <td><input name="password1" type="password" id="password13" value="<%=session("user_password")%>" size="20" maxlength="20"> 
                        <font color="#FF0000">*</font> 不超过20个字符</td>
                    </tr>
                    <tr> 
                      <td align="right">确认密码:</td>
                      <td><input name="password2" type="password" id="password23" value="<%=session("user_password")%>" size="20" maxlength="20"> 
                        <font color="#FF0000">*</font></td>
                    </tr>
                    <tr> 
                      <td align="right">Email:</td>
                      <td><input name="email" type="text" id="email3" value="<%=session("user_email")%>" size="20" maxlength="20"> 
                        <font color="#FF0000">*</font></td>
                    </tr>
                    <tr> 
                      <td align="right">密码问题:</td>
                      <td><input name="question" type="text" id="question3" value="<%=session("user_question")%>" size="20" maxlength="20"> 
                      </td>
                    </tr>
                    <tr> 
                      <td align="right">
<p>密码答案:</p></td>
                      <td><input name="answer" type="text" id="answer3" value="<%=session("user_answer")%>" size="20" maxlength="20"></td>
                    </tr>
                    <tr> 
                      <td align="right">QQ:</td>
                      <td><input name="qq" type="text" id="qq3" value="<%=session("user_qq")%>" size="11" maxlength="11"></td>
                    </tr>
                    <tr> 
                      <td align="right">&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr> 
                      <td align="right">真实姓名:</td>
                      <td><font color="#FF0000"><%=session("user_realname")%></font>&nbsp;真实姓名不能修改</td>
                    </tr>
                    <tr> 
                      <td align="right">性别:</td>
                      <td><font color="#FF0000"><%=session("user_sex")%>&nbsp;</font>性别不能修改</td>
                    </tr>
                    <tr> 
                      <td align="right">&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr> 
                      <td align="right">店铺名称:</td>
                      <td><input name="shopname" type="text" id="shopname3" value="<%=session("shop_name")%>" size="30" maxlength="30"> 
                        <font color="#FF0000">* </font>不超过30个字符</td>
                    </tr>
                    <tr> 
                      <td align="right">店铺描述:</td>
                      <td><textarea name="shopcontent" cols="45" rows="6" id="textarea2"><%=session("shop_content")%></textarea> 
                        <font color="#FF0000">*</font>不超过255个字符</td>
                    </tr>
                    <tr> 
                      <td align="right">店铺地址:</td>
                      <td><input name="shopaddress" type="text" id="shopaddress3" value="<%=session("shop_address")%>" size="30" maxlength="30"> 
                        <font color="#FF0000">*</font></td>
                    </tr>
                    <tr> 
                      <td align="right">联系电话:</td>
                      <td><input name="shopphone" type="text" id="shopphone3" value="<%=session("shop_phone")%>" size="20"> 
                        <font color="#FF0000">*</font>多个请用,分开</td>
                    </tr>
                    <tr> 
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr> 
                      <td colspan="2" align="center"> 
                        <input type="submit" name="Submit" value="提交"> 
                        <input type="reset" name="Submit2" value="重置"> <%
Randomize '初始代随机数种子
num1=rnd() '产生随机数num1
num1=int(26*num1)+65 '修改num1的范围以使其是A-Z范围的Ascii码,以防表单名出错
session("antry")="test"&chr(num1) '产生随机字符串
%> <input name="temp" type="hidden" id="temp3" value="<%=session("antry")%>">
                      </td>
                    </tr>
                  </table>
                </form></TD>
              <TD width=8 background=images/kuai11.gif>&nbsp;</TD>
            </TR>
          </TBODY>
        </TABLE>
        <TABLE cellSpacing=0 cellPadding=0 width="550" border=0>
          <TBODY>
            <TR> 
              <TD width=11 height=11><IMG height=11 src="images/kuai08.gif" 
            width=11></TD>
              <TD background=images/kuai13.gif><IMG height=11 
            src="images/kuai10.gif" width=1></TD>
              <TD width=11 height=11><IMG height=11 src="images/kuai09.gif" 
            width=11></TD>
            </TR>
          </TBODY>
        </TABLE>
      </TD>
    </TR>
  </TBODY>
</TABLE>
<%end if%>
<!--#include file="bottom.asp"-->

⌨️ 快捷键说明

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