<!--#include file="conn.asp"-->
<!--#include file="sub.asp"-->
<!--#include file="admin/ubbcode.asp"-->
<!--#include file="char.asp"-->
<%
ClassName=trim(request.QueryString("ClassName"))
ClassID=cint(request.QueryString("ID"))
const MaxPerPage=10
if not isempty(request("page")) then
	currentPage=cint(request("page"))
else
	currentPage=1
end if
FileName="yuyue.asp?ClassName="&ClassName&"&ID="&ClassID
%>
<%
if Request("action")="add" then
if session("vote")<>"" then
response.write "<script>alert('您已经投过票了，请不要重复投票');history.back();</script>"
 response.end
end if
name1=Request("cname")
old1=Request("old")
tel1=Request("tel")
address1=Request("address")
Email1=Request("email")
beizhu1=Request("beizhu")
xinbei1=Request("xinbei")
if session(name1)=name1 then
response.write "<script>alert('请不要重复预约！谢谢！');history.back(1);</script>"
response.end
End if
if name1="" or old1="" or tel1="" or email1="" then
	  response.write "<script language=javascript>alert('错误提示:表格填写不完整！');window.history.back(1)</script>"
      response.end
End if
Set RS=Server.Createobject("ADODB.Recordset")
SQL="Select * from tblsouli"
RS.open sql,conn,1,3
RS.addnew
RS("name")=name1
RS("xinbei")=xinbei1
RS("old")=old1
RS("address")=address1
RS("tel")=tel1
RS("email")=email1
RS("beizhu")=beizhu1
RS.update
RS.close:Set RS=nothing
Conn.close:Set conn=nothing
session(name1)=name1
Response.write "<script language=javascript>alert('已成功预约！谢谢！');window.history.back(1)</script>"
Response.end
End if
%>
<HTML><HEAD><TITLE><%=RS5(1)%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
      <META 
      content=<%=keywords1%> 
      name=keywords>
      <META 
      content=<%=keywords1%> 
      name=description>
<STYLE type=text/css>BODY {
	BACKGROUND-COLOR: #333333
}
</STYLE>
<LINK href="images/common1.css" type=text/css rel=stylesheet>
<STYLE type=text/css>.style2 {
	FONT-WEIGHT: bold; COLOR: #000000
}
.style3 {
	COLOR: #000000
}
</STYLE>
<BODY leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<TABLE cellSpacing=0 cellPadding=0 align=center border=0>
  <TBODY>
  <TR>
    <TD><IMG height=110 alt="摄影 人体摄影 摄影工作室 人像摄影" 
      src="<%=RS5(3)%>" width=750 
  border=0></TD>
  </TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=750 align=center 
background=images/004.gif border=0>
  <TBODY>
  <TR>
    <TD bgColor=#cccccc>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" 
      background=images/004.gif border=0>
        <TBODY>
        <TR>
          <TD></TD>
          <TD vAlign=bottom align=right height=22><%
	set rs=conn.execute("select ID,ClassName,classtype,url from ClassName order by RootID")
	do while not rs.eof
	Select case rs(2)
	case "1"
	  url1="photo.asp"
	case "2"
	  url1="wen.asp"
	case "3"
	  url1="contents.asp"
	
	case "4"
	  url1=rs(3)
	case "5"
	  url1="photo.asp"
	End Select
		str=str&"■ <a href="&RS5(2)&url1&"?ClassName="&rs(1)&"&ID="&rs(0)&">"
		if CurrentID=rs(0) then
			str=str&"<font color=""#000000"">"&rs(1)&"</font></a> "
		else
			str=str&"<font color=""#000000"">"&rs(1)&"</font></a> "
		end if
		rs.movenext
	loop
	rs.close:Set RS=nothing
	response.Write(str)
%>            &nbsp;&nbsp;</TD>
        </TR>
        <TR>
          <TD bgColor=#333333 colSpan=2 height=2><IMG height=2 src="" 
          width=2></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=750 align=center border=0>
  <TBODY>
  <TR>
    <TD vAlign=top bgColor=#ffffff height=21>      <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
        <TBODY>
        <TR>
          <td width="728"><Center><table width="100%" height="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
	  <tr>
	    <td height="22" colspan="2" bgcolor="#F0F0F0">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr bgcolor="#FFFFFF"> 
                        <td height="3" bgcolor="#FFFFFF"><img src="IMAGES/kb.gif" width="9" height="3"></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td width="100%" height="30" background="images/menu_bg.gif" class="daohang"> 
                          <img src="images/type01.gif" width="12" height="12" align="absmiddle"> 
                          <%
    response.write "<span class='f1'><strong>位置：</strong></span><a href='index.asp'><span class='whitebold'>首页</span></a><span class='whitebold'>-</span><a href='wen.asp?ClassName="&ClassName&"&ID="&ClassID&"'><span class='redbold'>"&ClassName&"</span></a>"%>
                        </td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td bgcolor="#9b9b9b"><img name="" src="" width="1" height="1" alt=""></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td bgcolor="#9b9b9b"><img name="" src="" width="1" height="1" alt=""></td>
                      </tr>
                    </table>
                  </td>
	  </tr>
      <tr>
        <td height="33" colspan="2" valign="top"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td></td>
          </tr>
        </table>
          <img src="images/xuzhi.gif" width="250" height="50">
            <hr size="1">
                      <table width="97%" border="0" align="center">
                        <tr>
                          <td>&nbsp;&nbsp;&nbsp;&nbsp;<%=RS5(14)%></td>
                        </tr>
                      </table>
                  </td>
        </tr>
      <tr>
        <td colspan="2" valign="top">
                    <hr size="1">
                  </td>
      </tr>
      <tr>
        <td colspan="2" valign="top"><form name="form1" method="post" action="yuyue.asp?action=add">
          <table width="82%" height="329" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="329"><font color="#000000">姓名:</font><font color="#FFE7CE">                    
                <input name="cname" type="text" id="cname" size="10" style="font-family:宋体; font-size:9pt; color:#000000; width:220px; height:19px; border:1px solid #999999; background-color:#cccccc;">
                </font><br>
                <br>
                <font color="#000000">年龄:
                <input name="old" type="text" id="old" size="5" style="font-family:宋体; font-size:9pt; color:#000000; width:30px; height:19px; border:1px solid #999999; background-color:#cccccc;">
                性别:
                <select name="xinbei" id="xinbei" style="font-family:宋体; font-size:9pt; color:#000000; width:40px; height:19px; border:1px solid #999999; background-color:#cccccc;">
                    <option value="女" selected>女</option>
                    <option value="男">男</option>
                </select>
                <br>
                <br>
                电话:
                <input name="tel" type="text" id="tel" style="font-family:宋体; font-size:9pt; color:#000000; width:136px; height:19px; border:1px solid #999999; background-color:#cccccc;">
                住地:
                <select name="address" id="select2" style="font-family:宋体; font-size:9pt; color:#000000; width:70px; height:19px; border:1px solid #999999; background-color:#cccccc;">
                    <%diqu1=RS5(15)%><%str=split(diqu1,"|")%>
					<option value="<%=str(0)%>" selected><%=str(0)%>
					<%for i=1 to ubound(str)%>
                    <option value="<%=str(i)%>"><%=str(i)%>
					<%next%>
                  </select>
                <br>
                <br>
                邮箱:
                <input name="email" type="text" id="email" style="font-family:宋体; font-size:9pt; color:#000000; width:180px; height:19px; border:1px solid #999999; background-color:#cccccc;">
                <br>
                <br>
                备注:
                <textarea name="beizhu" id="beizhu" style="font-family:宋体; font-size:9pt; color:#000000; width:430px; height:165px; border:1px solid #999999; background-color:#cccccc;"></textarea>
                <br>
                </font><font color="#FFE7CE"><br>
                <center>
                  <input type=submit value=提交预约 name=Submit style="COLOR: #ffffff; BACKGROUND-COLOR: #411D03">
&nbsp;&nbsp;
          <input type=reset value=重置 name=Submit2 style="COLOR: #ffffff; BACKGROUND-COLOR: #411D03">
                </center>
              </font></td>
            </tr>
          </table>
          <br>
        </form></td>
      </tr>
</table>
          </Center>
      </TD>
    </TR></TBODY></TABLE></TD></TR></TBODY></TABLE><LINK 
href="images/css.css" type=text/css rel=stylesheet>
<STYLE type=text/css>.style1 {
	COLOR: #666666
}
.unnamed1 {
	FONT-SIZE: 10pt; COLOR: #333333
}
</STYLE>

      <META 
      content=<%=keywords1%> 
      name=keywords>
      <META 
      content=<%=keywords1%> 
      name=description>
<TABLE id=__01 cellSpacing=0 cellPadding=0 width=750 align=center border=0>
  <TBODY>
  <TR background="image/019.gif">
    <TD background="" colSpan=11><EM><IMG height=2 src="" width=2></EM></TD></TR>
  <TR background="image/019.gif">
    <TD noWrap background=images/019.gif colSpan=11 height=66>
      <DIV align=center><%CopyRight%></DIV></TD></TR></TBODY></TABLE></BODY></HTML>
