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

📄 user_xxedit.asp

📁 该软件是用asp编写的
💻 ASP
字号:
<!--#include file="top.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="config.asp"-->
<%
if session("username")="" then
  call mb("对不起,您还没有登陆!","login.asp",1)
end if

if request("action")="save" then
 dim gk,kc,dq,yq,bc 

 gk=request.form("gk")
 kc=request.form("kc")
 dq=request.form("dq")
 yq=request.form("yq")
 bc=request.form("bc")
 
 
 '保存数据
 set rs=server.createobject("adodb.recordset")
 sql="select * from author where username='"&session("username")&"'"
 rs.open sql,conn,1,3
 
 if not(rs.bof and rs.eof) then
   rs("gk")=gk
   rs("kc")=kc
   rs("dq")=dq
   rs("yq")=yq
   rs("bc")=bc
   rs.update
 else
   call mb("对不起,找不到您的帐号!","",0)
 end if
 rs.close
 set rs=nothing 
%><head>
<TABLE width=760 border=0 align="center" cellPadding=0 cellSpacing=0 bgColor=#ffffff>
  <TBODY>
  <TR>
    <TD bgColor=#ffa200 class=bodyleft width=7><IMG height=1 
      src="img/blank.gif" width=7></TD>
      <TD 
    width=743 valign="top" 
    style="BORDER-BOTTOM: #000000 1px solid; BORDER-TOP: #000000 1px solid"><table width="743" border="0" align="center" cellpadding="0" cellspacing="0" class="borders">
          <tr> 
            <td width="190" valign="top" bgcolor="#F7F7F7"> 
              <!--#include file="user_menu.asp" -->
            </td>
            <td width="1" valign="top"> </td>
            <td valign="top" bgcolor="#FFFFFF">  
              <table align="center" background="images/line01.gif" border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr> 
                  <td height="24" width="55%">&nbsp; 当前位置:-&gt; 修改信息</td>
                  <td height="21" width="45%">&nbsp;</td>
                </tr>
              </table>
              <br> <table align="center" border="0" bordercolor="#000000" cellpadding="0" cellspacing="0" width="100%">
                <tr> 
                  <td background="" width="18%">&nbsp;</td>
                  <td width="79%"><strong>教 师 资 料</strong> - 修改信息</td>
                  <td width="4%">&nbsp;</td>
                </tr>
              </table>
              <table width="91%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
                <tr> 
                  <td height="116" align="center" bgcolor="#FFFFFF"><font color="#FF0000">恭 
                    喜 您 , 修改个人资料成功!</font></td>
                </tr>
              </table></td>
          </tr>
        </table></TD>
    <TD bgColor=#ffa200 class=bodyright width=6><IMG height=1 
      src="img/blank.gif" width=6></TD></TR></TBODY></TABLE>
<%else
set rs=conn.execute("select * from author where username='"&session("username")&"'")
if rs.bof and rs.eof then
  call mb("对不起,找不到您的个人资料信息!","",0)
else
%>
<TABLE width=760 border=0 align="center" cellPadding=0 cellSpacing=0 bgColor=#ffffff>
  <TBODY>
  <TR>
    <TD bgColor=#ffa200 class=bodyleft width=7><IMG height=1 
      src="img/blank.gif" width=7></TD>
      <TD 
    width=743 valign="top" 
    style="BORDER-BOTTOM: #000000 1px solid; BORDER-TOP: #000000 1px solid"><table width="743" border="0" align="center" cellpadding="0" cellspacing="0" class="borders">
          <tr> 
            <td width="190" valign="top" bgcolor="#F7F7F7"> 
              <!--#include file="user_menu.asp" -->
            </td>
            <td width="1" valign="top"> </td>
            <td valign="top" bgcolor="#FFFFFF"> <table align="center" background="images/line01.gif" border="0" cellpadding="0" cellspacing="0" height="24" width="100%">
                <tr> 
                  <td height="21" width="55%">&nbsp; 当前位置: -&gt; 信息修改</td>
                  <td height="21" width="45%">&nbsp;</td>
                </tr>
              </table>
              <form action="?action=save" method="post" name="reg" id="reg">
                <table align="center" border="0" bordercolor="#000000" cellpadding="0" cellspacing="0" width="100%">
                  <tr> 
                    <td background="" width="18%">&nbsp;</td>
                    <td background="" width="79%"><strong>教 师 资 料</strong> - 信息修改</td>
                    <td width="4%">&nbsp;</td>
                  </tr>
                </table>
                <table width="93%" border="0" align="center" cellpadding="3">
                  <tr bgcolor="#FFFFFF"> 
                    <td width="493" height="25" colspan="2" align="center"><table width="100%" align="center" border=1 borderColor=#888888 
                  borderColorDark=#ffffff class=borders>
                        <tr> 
                          <td valign="top"><div align="center">帐 号:</div></td>
                          <td><font color="red"><b><%=session("username")%></b></font></td>
                        </tr>
                        <tr> 
                          <td width="27%" valign="top"><div align="center">教学情况</div></td>
                          <td width="73%"><textarea name="gk" cols="40" rows="5" class="input" wrap="VIRTUAL" id="gk"><%=rs("gk")%></textarea></td>
                        </tr>
                        <tr> 
                          <td valign="top"><div align="center">辅导课程</div></td>
                          <td><textarea name="kc" cols="40" rows="3" wrap="VIRTUAL" id="kc" class="input"><%=rs("kc")%></textarea></td>
                        </tr>
                        <tr> 
                          <td valign="top"><div align="center">选择地区</div></td>
                          <td><select name="dq" class=log id="dq" value="<%=rs("dq")%>">
                              <option value="朝阳区" <%if rs("dq")="朝阳区" then response.write " selected"%>>朝阳区</option>
                              <option value="宽诚区" <%if rs("dq")="宽诚区" then response.write " selected"%>>宽诚区</option>
                              <option value="二道区" <%if rs("dq")="二道区" then response.write " selected"%>>二道区</option>
                              <option value="绿圆区" <%if rs("dq")="绿圆区" then response.write " selected"%>>绿圆区</option>
                              <option value="新开区" <%if rs("dq")="新开区" then response.write " selected"%>>新开区</option>
                              <option value="全市区" <%if rs("dq")="全市区" then response.write " selected"%>>全市区</option>
                            </select> <font color="#FF0000"> *为了你信息准确务必选择!</font></td>
                        </tr>
                        <tr> 
                          <td valign="top"><div align="center">家教要求</div></td>
                          <td><textarea name="yq" cols="40" rows="3" class="input" wrap="VIRTUAL" id="yq"><%=rs("yq")%></textarea></td>
                        </tr>
                        <tr> 
                          <td height="84" valign="top"><div align="center">要求报酬<br>
                              <font color="#FF0000">(元/小时) </font></div></td>
                          <td><p> 
                              <label> 
                              <input name="bc" type="radio" value="20" <%if rs("bc")="20" then response.write " checked"%>>
                              20</label>
                              <br>
                              <label> 
                              <input type="radio" name="bc" value="25" <%if rs("bc")="25" then response.write " checked"%>>
                              25</label>
                              <br>
                              <label> 
                              <input type="radio" name="bc" value="30" <%if rs("bc")="30" then response.write " checked"%>>
                              30</label>
                              <br>
                              <label> 
                              <input type="radio" name="bc" value="议" <%if rs("bc")="议" then response.write " checked"%>>
                              议 </label>
                              <br>
                              <br>
                              <label> </label>
                              <br>
                            </p></td>
                        </tr>
                      </table></td>
                  </tr>
                  <tr bgcolor="#FFFFFF"> 
                    <td height="25" colspan="2" align="center"><input name="Submit" type="submit" class="button" value=" 修 改 ">
                        
                      <input name="Submit2" type="reset"
class="button" value=" 清 除 "></td>
                  </tr>
                </table>
              </form></td>
          </tr>
        </table></TD>
    <TD bgColor=#ffa200 class=bodyright width=6><IMG height=1 
      src="img/blank.gif" width=6></TD></TR></TBODY></TABLE>
<%
 end if
 rs.close
 set rs=nothing
end if
%>
<!--#include file="up.asp"-->

⌨️ 快捷键说明

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