/admin/pf_class_modify.asp
https://github.com/hare1987/kaidun180 · ASP · 105 lines · 102 code · 3 blank · 0 comment · 0 complexity · f2da58f665046fe69fe00232f38a720c MD5 · raw file
- <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
- <!--#include file="pf_conn.asp"-->
- <!--#include file="pf_function.asp"-->
- <!--#include file="pf_session.asp"-->
- <%
- Call iderror
- If request.Form("submit") = "È·ÈÏÐÞ¸Ä" Then
- If request.Form("class_name") = "" Then
- Call infoback("¿ª°àÃû³Æ²»ÄÜΪ¿Õ£¡")
- End If
- If request.Form("class_date") = "" Then
- Call infoback("ÉÏ¿ÎÈÕÆÚ²»ÄÜΪ¿Õ£¡")
- End If
- If request.Form("class_time") = "" Then
- Call infoback("ÉÏ¿Îʱ¼ä²»ÄÜΪ¿Õ£¡")
- End If
- If request.Form("class_address") = "" Then
- Call infoback("ÉϿεص㲻ÄÜΪ¿Õ£¡")
- End If
- Set rs = server.CreateObject("adodb.recordset")
- sql = "select * from class where ID= "&request.QueryString("ID")&""
- rs.Open sql, conn, 1, 3
- rs("class_name") = request.Form("class_name")
- rs("class_time") = request.Form("class_time")
- rs("class_date") = request.Form("class_date")
- rs("class_address") = request.Form("class_address")
- rs.update
- Call close_conn
- Call infohref("Ð޸ijɹ¦£¡", "pf_class.asp")
- End If
- %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <title>¿¶Ù¶ùͯÃÀÓïѧУ»¶ÓÄú!</title>
- <link href="pf_style.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <!--#include file="pf_top.asp"-->
- <div id="content">
- <!--#include file="pf_left.asp"-->
- <div id="right">
- <div class="right_title">
- <h1>Ð޸Ŀª°àÐÅÏ¢</h1>
-
- </div>
- <div class="right_body">
- <table>
- <%
- Set rs = server.CreateObject("adodb.recordset")
- sql = "select * from class where ID= "&request.QueryString("ID")&""
- rs.Open sql, conn, 1, 1
- If rs.EOF Then
- Call infoback("²»´æÔÚ´ËÊý¾Ý")
- End If
- %>
- <form name="pcfinal" method="post">
- <tr>
- <td width="9%" align="center">¿ª°àÃû³Æ£º</td>
- <td width="91%"><input type="text" name="class_name" size="60" value="<%=rs("class_name")%>" />
- <span class="red">±ØÌî</span> </td>
- </tr>
- <tr>
- <td width="9%" align="center">¿ª°àʱ¼ä£º</td>
- <td width="91%"><input type="text" name="class_time" size="60" value="<%=rs("class_time")%>"/>
- </td>
- </tr>
- <tr>
- <td width="9%" align="center">¿ª°àÈÕÆÚ£º</td>
- <td width="91%"><input type="text" name="class_date" size="60" value="<%=rs("class_date")%>"/>
- </td>
- </tr>
- <tr>
- <td align="center">¿ª°àµØµã£º</td>
- <td><select name="class_address" id="class_address">
- <option value="<%=rs("class_address")%>">²»ÐÞ¸Ä</option>
- <option>Ðì»ãÌïÁÖУ</option>
- <option>»ÆÆÖÊé³ÇУ</option>
- <option>ÆÖ¶«½ðÇÅУ</option>
- <option>ãÉÐÐݷׯУ</option>
- <option>ºç¿Ú¶«±¦Ð£</option>
- <option>³¤ÄþºçÇÅУ</option>
- <option>Ëɽ¾ÅͤУ</option>
- <option>±¦É½´ó»ªÐ£</option> </select>
- <tr>
- <td colspan="2" align="center">
- <input type="submit" name="submit" class="submit_button" value="È·ÈÏÐÞ¸Ä">
- </td>
- </tr>
-
- </form>
-
- <%
- Call close_rs
- Call close_conn
- %>
- </table>
- </div>
- </div>
- <div class="clear"></div>
- </div>
- <!--#include file="pf_bottom.asp"-->
- </body>
- </html>