<!--#include file="conn/conn_index.asp"-->
<!--#include file="inc/setup.asp"-->
<!--#include file="inc/money.asp"-->
<!--#include file="inc/char.asp"-->
<!--#include file="inc/md5.asp"-->
<!--#include file="school/uploadfile_inc.asp"-->
<!--#include file="school/function.asp"-->
<!--#include file="inc/sql.asp"-->
<%
	end if
	action=Trim(GetFormVal("action"))
	
	if action="save" then
		nn=""
		formsize = request.totalbytes
		formdata = request.binaryread(formsize)
		bcrlf = chrb(13) & chrb(10)
		divider = leftb(formdata, instrb(formdata, bcrlf) - 1)
		path = Server.MapPath("upimages\school")
		filename = SaveFile("attachment",path,500)
		if filename = "" then error ="图片大小不要超过500K！返回重新输入"
		if error <> "" then
			response.write "<script language=javascript>alert('"&error&"');location.href='javascript:history.back()';</script>"
			response.end
		end if
	
		If Session("getcode")<>int(Trim(GetFormVal("code"))) Then
			response.write"<SCRIPT language=JavaScript>alert('验证码输入错误');"                   
			response.write"javascript:history.go(-1)</SCRIPT>"                   
			response.end
		else
			sname=ReplaceBadChar(Trim(GetFormVal("sNickName")))
			pwd_old=ReplaceBadChar(Trim(GetFormVal("password1")))
			pwd=mistake(pwd_old)
			Email=ReplaceBadChar(Trim(GetFormVal("Email")))
			question=ReplaceBadChar(Trim(GetFormVal("CorporationWay")))
			if question="cus" then
				custom_question=ReplaceBadChar(Trim(GetFormVal("custom_question")))
				if custom_question="" then
					response.write"<SCRIPT language=JavaScript>alert('自定义问题不能为空，请重来');"                   
					response.write"javascript:history.go(-1)</SCRIPT>"                   
					response.end
				else
					question=custom_question
				end if
			end if
			answer=ReplaceBadChar(Trim(GetFormVal("CorporationKind")))
			school_name=ReplaceBadChar(Trim(GetFormVal("comName")))
			logo=nn
			aboutschool=ReplaceBadChar(Trim(GetFormVal("CorporationBrief")))
			address=ReplaceBadChar(Trim(GetFormVal("CorporationAddress")))
			code=ReplaceBadChar(Trim(GetFormVal("CorporationPostalcode")))
			lxperson=ReplaceBadChar(Trim(GetFormVal("CorporationLinkman")))
			phone=ReplaceBadChar(Trim(GetFormVal("CorporationTel")))
			open1=int(ReplaceBadChar(Trim(GetFormVal("janCorporationTelConceal"))))
			if open1="" then open1=0
			fax1=ReplaceBadChar(Trim(GetFormVal("CorporationFax")))
			if fax1="" then fax1="未填写"
			open2=int(ReplaceBadChar(Trim(GetFormVal("janCorporationFaxConceal"))))
			if open2="" then open2=0
			weburl=Trim(GetFormVal("CorporationURL"))
			if weburl="" then weburl="未填写"
			Set rs = Server.CreateObject("ADODB.Recordset")
			sql="select * from school where sname='"&sname&"'"
			rs.open sql,conn,2,3
			if rs.eof then
				rs.addnew
				rs("sname")=sname
				rs("pwd")=pwd
				rs("Email")=Email
				rs("question")=question
				rs("answer")=answer
				rs("school_name")=school_name
				rs("logo")=logo
				rs("aboutschool")=aboutschool
				rs("address")=address
				rs("code")=code
				rs("lxperson")=lxperson
				rs("phone")=phone
				rs("open1")=open1
				rs("fax")=fax1
				rs("open2")=open2
				rs("weburl")=weburl
				rs("setup")=now()
				rs("zhuangtai")=school_zhuangtai
				rs("grade")=0
				rs("dlnum")=0
				rs("lock")=0
				rs("hideuser")=0
				rs.update
				
				kk=conn.Execute("select id from school where sname='"&sname&"'")(0)
				
				Set rs = Server.CreateObject("ADODB.Recordset")
				sql="select * from smailbox"
				rs.open sql,conn,2,3
				rs.addnew
				rs("reid")=kk
				rs("senduid")="0"
				rs("title")=ssmailtitle
				rs("sendname")="系统管理员"
				rs("sdate")=date()
				rs("mailtext")=ssmailtext
				rs.update
				rs.close
				set rs=nothing

				response.write"<SCRIPT language=JavaScript>alert('"&sendmsg&"');"
				response.write"this.location.href='school/';</script>"
				response.end
			else
				response.write"<SCRIPT language=JavaScript>alert('用户名重复，请重新选择一个用户名！');"
				response.write"javascript:history.go(-1)</SCRIPT>"
				response.end
			end if
			rs.close
			set rs=nothing
			Conn.close
			Set Conn = Nothing
		end if
	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>
<link rel="Shortcut Icon" href="Images/favicon.ico">
<link rel="Bookmark" href="Images/favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<TITLE><%= homename %>--院校会员注册</TITLE>
<meta name="Keywords" content="<%= webmeta %>">
<meta name="Description" content="<%= webmeta1 %>">
<style type="text/css">
<!--
.STYLE6 {	color: #0099CC;
	font-size: 12pt;
	font-weight: bold;
	}
.STYLE2 {	color: #ffffff;
	font-size: 14pt;
	font-weight: bold;
}
.style193 {color: #FF6600}
.style193 {color: #FF6600}
body,td,th {
	font-size: 12px;
}
body {
	background-image: url(images/preg/indextopbackground.gif);
	background-repeat:repeat-x;
	margin-left: 0px;
	margin-top: 24px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<script language=JavaScript src="js/preg.js"></script>
<SCRIPT language=JavaScript src="js/sreg.js"></SCRIPT>
<script language="JavaScript" type="text/javascript" src="js/keyfilter.js"></script>
<link href="css/preg.css" rel="stylesheet" type="text/css">
<link href="css/sreg.css" rel="stylesheet"/>
<style type="text/css">
<!--
.STYLE7 {color: #FF0000}
-->
</style>
</HEAD>
<BODY topMargin=0 leftmargin="0" rightmargin="0">
<!--#include file="top_reg.asp"-->
<TABLE width=977 border=0 align="center" cellPadding=0 
cellSpacing=0 borderColor=#111111 bgcolor="#FFFFFF" id=AutoNumber34 style="BORDER-COLLAPSE: collapse">
<form name="userinfo" method="post" action="sreg2.asp" id="Form1" ENCTYPE="multipart/form-data">
      <TR>
        <TD align="center">
<%
	if sreg_open=1 then
%>
			<TABLE width=977 border=0 align="center" cellPadding=0 cellSpacing=1 bgColor=#83b629>
                <TR>
                  <TD vAlign=top bgColor=#ffffff><TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
                        <TR>
                          <TD vAlign=top width="100%"><TABLE height=24 cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
                                <TR>
                                  <TD bgColor=#83b629 height=21><P style="MARGIN-TOP: 2px; MARGIN-LEFT: 10px"><FONT style="FONT-SIZE: 13px" face=Verdana color=#ffffff><STRONG>公告</STRONG></FONT> 　</P></TD>
                                </TR>
                                <TR>
                                  <TD bgColor=#e2e2e2 height=2></TD>
                                </TR>
                            </TABLE>
                              <FONT size=2><BR>
                              <TABLE id=show cellSpacing=0 cellPadding=3 width=860 align=center border=0>
                                  <TR>
                                    <TD height="276" colspan="3" align=center>对不起，网站暂时停止院校用户注册，感谢您的支持，请稍后再试</TD>
                                  </TR>
                              </TABLE>
                            </FONT>
                            </DIV></TD>
                        </TR>
                        <TR>
                          <TD align=middle width="100%" height=15></TD>
                        </TR>
                  </TABLE></TD>
                </TR>
          </TABLE>
<% Else %>
            <TABLE cellSpacing=0 cellPadding=0 width=977 align=center border=0>
                <TR>
                  <TD colSpan=3><IMG height=54 src="images/sreg/wizard_head.gif" width=296><IMG height=54 src="images/sreg/reg1_2.gif"></TD>
                </TR>
                <TR>
                  <TD width=1 bgColor=#83b629></TD>
                  <TD><BR>
                      <TABLE cellSpacing=0 cellPadding=0 width="90%" align=center border=0>
                          <TR>
                            <TD align="left"><P><FONT color=#800080><FONT style="FONT-SIZE: 11px" face=Verdana color=#993300><STRONG>Welcome!</STRONG> </FONT><STRONG><FONT color=#993300>欢迎免费注册成为</FONT><FONT color=#800080><STRONG><FONT color=#993300><FONT style="FONT-SIZE: 11px" face=Verdana><%= homename %></FONT></FONT></STRONG></FONT><FONT color=#993300>企业会员 </FONT></STRONG></FONT></P>
                                <P style="LINE-HEIGHT: 20px"> 在成为<FONT style="FONT-SIZE: 11px" face=Verdana><%= homename %></FONT>院校会员后，贵校可以随时发布贵校的专业信息、有效提升贵校的知名度、为贵校的毕业生营造良好的就业环境，以及创造更多的就业机会，注册时请注意： <br>
                                  当贵校“提交”注册资料后，需要经过本站审核通过之后，才能获得本站服务（具体审核通知时间为<font face="Verdana" color="#ff7800"><strong>1</strong></font>天）,届时会有相关工作人员与您联系。<br>
                            <b>业务服务电话：<%= tel %></b> </P></TD>
                          </TR>
                      </TABLE>
                    <BR></TD>
                  <TD width=1 bgColor=#83b629></TD>
                </TR>
                <TR>
                  <TD colSpan=3 height=1 bgColor=#83b629></TD>
                </TR>
          </TABLE>
          <BR>
          <TABLE width=977 border=0 align="center" cellPadding=0 cellSpacing=1 bgColor=#83b629>
                <TR>
                  <TD vAlign=top bgColor=#ffffff>
				  <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
                        <TR>
                          <TD vAlign=top width="100%">
						  <TABLE height=24 cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
                                <TR>
                                  <TD bgColor=#83b629 height=21><P style="MARGIN-TOP: 2px; MARGIN-LEFT: 10px"><FONT style="FONT-SIZE: 13px" face=Verdana color=#ffffff><STRONG>帐号信息</STRONG></FONT> （请您根据以下要求，完整并正确填写贵公司资料，带<font color="#ff6600"> * </font>号为必填项） 　</P></TD>
                                </TR>
                                <TR>
                                  <TD bgColor=#e2e2e2 height=2></TD>
                                </TR>
                          </TABLE>
                            <FONT size=2><BR>
                                    <TABLE id=show cellSpacing=0 cellPadding=3 width=860 align=center border=0>
                                    <TR>
                                          <TD align=right><FONT color=#ff4e00>*</FONT>用户名：</TD>
                                          <TD align="left"><input name="sNickName" id="sNickName" min="4" maxlength="50" require="true" onFocus="showNotice(this)" type="text" size="30" datatype="LimitB" msg="昵称输入不正确(4-16个字节)" max="16" /></TD>
                                          <TD align="left"><DIV class=message id=sNickName_Msg>用户名长度为4位以上，不能有中文。</DIV></TD>
                                      </TR>
                                        <TR>
                                          <TD align=right><FONT color=#ff4e00>*</FONT>密&nbsp;&nbsp;&nbsp;码：</TD>
                                          <TD width=218 align="left"><input name="password1" id="password1" type="password" onBlur="chechUserPassword(this)" onFocus="showNotice(this)" maxlength="20" size="30" require="true" datatype="NameGB" /></TD>
                                          <TD width=521 align="left"><DIV class=message id=password1_Msg>密码长度为4-20位，只能由英文字母、数字组成，中间不能有空格。</DIV></TD>
                                      </TR>
                                        <TR>
                                          <TD class=line_dashed align=right><FONT color=#ff4e00>*</FONT>确认密码：</TD>
                                          <TD align="left" class=line_dashed><input name="password2" id="password2" type="password" onBlur="chechUserPassword2(this)" maxlength="20" onFocus="showNotice(this)" size="30" require="true" datatype="IdCardAuth" /></TD>
                                          <TD align="left" class=line_dashed ><DIV class=message id=password2_Msg>确认密码要与密码完全一致，注意英文字母大小写。</DIV></TD>
                                      </TR>
                                        <TR>
                                          <TD align=right><FONT color=#ff4e00>*</FONT>E-mail：</TD>
                                          <TD align="left"><input name="Email" id="Email" type="text" onBlur="chechUserEmail(this)" onFocus="showNotice(this)" maxlength="50" size="30" require="false" /></TD>
                                          <TD align="left"><DIV class=message id=Email_Msg>E-mail是你今后使用本网的重要工具，请务必填写正确</DIV></TD>
                                      </TR>
                                              <tr>
                                                <TD align=right><FONT color=#ff4e00>*</FONT>问&nbsp;&nbsp;&nbsp;&nbsp;题：</TD>
                                                <TD width=218 align="left"><select style="width:210px;" name="question" id="question" onchange="checkQuestion()">
						<option value="">[请选择您的密码提示问题] </option>
						<option value="cus">***自定义密码提示问题***</option>
						<option value="您的家乡是?">您的家乡是?</option>
						<option value="您初中的语文老师是?">您初中的语文老师是?</option>
						<option value="您最尊重的人是?">您最尊重的人是?</option>
						<option value="您最爱吃的菜是?">您最爱吃的菜是?</option>
						<option value="您最爱读的书是?">您最爱读的书是?</option>
						<option value="您最喜欢的一首歌是?">您最喜欢的一首歌是?</option>
						<option value="您最喜欢的运动是?">您最喜欢的运动是?</option>
						<option value="您最喜欢的电影是?">您最喜欢的电影是?</option>
						<option value="您最喜欢的节日是?">您最喜欢的节日是?</option>
						<option value="您最想去的地方是?">您最想去的地方是?</option>
						<option value="您最想做的事情是?">您最想做的事情是?</option>
						<option value="您最难忘的事情是?">您最难忘的事情是?</option>
					</select></TD>
                                                <TD width=521 align="left"><DIV class=message id=CorporationWay_Msg>倘若您忘记帐号的密码，可以以此信息找回密码</DIV></TD>
                                      </tr>
                                              <tr  id="cus_question" style="display:none">
                                                <TD align=right><FONT color=#ff4e00>*</FONT>问&nbsp;&nbsp;&nbsp;&nbsp;题：</TD>
                                                <TD width=218 align="left"><input type="text" style="width:205px;" class="minput" name="custom_question" id="custom_question" /></TD>
                                                <TD width=521 align="left"><DIV class=message id=CorporationWay_Msg>请输入您自定义的问题</DIV></TD>
                                      </tr>
                                            <tr>
                                                <TD align=right><FONT color=#ff4e00>*</FONT>答&nbsp;&nbsp;&nbsp;&nbsp;案：</TD>
                                              <TD width=218 align="left"><input name="CorporationKind" id="CorporationKind" class="form-select1" onFocus="showNotice(this)" onBlur="chechanswer(this)" type="text" size="28" /></TD>
                                              <TD width=521 align="left"><DIV class=message id=CorporationKind_Msg>请输入密码保护问题的答案</DIV></TD>
                                      </tr>
                                            <tr>
                                                <TD align=right width=103><FONT color=#ff4e00>*</FONT>重复答案：</TD>
                                              <TD width=218 align="left"><input name="CorporationBankroll" id="CorporationBankroll" class="form-select1" onFocus="showNotice(this)" onBlur="chechanswer2(this)" type="text" size="28" /></TD>
                                              <TD width=521 align="left"><DIV class=message id=CorporationBankroll_Msg>请再次输入密码保护问题的答案</DIV></TD>
                                      </tr>
                                            <tr>
                                                <TD align=right width=103><FONT color=#ff4e00>*</FONT>验证码：</TD>
                                              <TD width=218 align="left" valign="middle"><input name="code" id="code" class="form-select1" onFocus="showNotice(this)" onBlur="chechcode(this)" type="text" size="10" />&nbsp;&nbsp;&nbsp;<img src="GetCode.asp" vspace="2" align="absmiddle"></TD>
                                              <TD width=521 align="left"><DIV class=message id=code_Msg>请再次输入密码保护问题的答案</DIV></TD>
                                      </tr>
                            </TABLE>
                            </FONT></DIV></TD>
                        </TR>
                        <TR>
                          <TD align=middle width="100%" height=15></TD>
                        </TR>
                  </TABLE></TD>
                </TR>
          </TABLE>
          <TABLE cellSpacing=1 cellPadding=0 width=977 bgColor=#83b629 border=0>
              <TR>
                <TD vAlign=top bgColor=#ffffff>
			<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
                      <TR>
                        <TD vAlign=top width="100%" height="441">
						<TABLE height=24 cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
                            <TBODY>
                              <TR>
                                <TD bgColor=#83b629 height=21><P style="MARGIN-TOP: 2px; MARGIN-LEFT: 10px"><FONT style="FONT-SIZE: 13px" face=Verdana color=#ffffff><STRONG>学校资料</STRONG></FONT></P></TD>
                              </TR>
                              <TR>
                                <TD bgColor=#e2e2e2 height=2></TD>
                              </TR>
                        </TABLE>
                            <DIV align=center><FONT size=2><BR>
                                  <TABLE id=show cellSpacing=0 cellPadding=3 width=860 align=center border=0>
                                  <TR>
                                        <td><table width=100%>
                                          <tr>
                                              <TD align=right width="103"><FONT color=#ff4e00>*</FONT>学校名称：</TD>
                                            <TD width=355 align="left"><input name="comName" id="comName" type="text" onFocus="showNotice(this)" onBlur="chechUserComName(this)" 

maxlength="70" size="40" /></TD>
                                            <TD width=380 align="left"><DIV class=message id=comName_Msg>请填写全称。一旦注册成功，<font size="2">院校</font>名称不得修改，以方便迅速搜索到贵<font size="2">校</font>资料 </DIV></TD>
                                          </tr>
                                        </table>
                                          <table width=100%>
                                            <tr>
                                                <TD align=right width="103">展示图片：</TD>
                                              <TD width=262 align="left"><input name="CorporationEmployee" type="file"></TD>
                                              <TD width=473 align="left"></TD>
                                            </tr>
                                          </table>
                                          <table width=100%>
                                            <tr>
                                                <TD align=right valign=top width="103"><FONT color=#ff4e00>*</FONT>学校简介：</TD>
                                              <TD width=739 align="left"><textarea name="CorporationBrief" id="CorporationBrief" onFocus="showNotice1(this)" onBlur="chechUserBrief(this)" style="height:100px;width:400px;"></textarea>
                                                    <DIV class=message id=CorporationBrief_Msg>最大字符数4000,请尽可能详细填写资料，以确保贵校的资料顺利通过本站审核！ </DIV></TD>
                                            </tr>
                                          </table>
                                          <table width=100%>
                                            <tr>
                                                <TD align=right width="103"><FONT color=#ff4e00>*</FONT>通讯地址：</TD>
                                              <TD width=499 align="left"><input name="CorporationAddress" id="CorporationAddress" type="text" onFocus="showNotice(this)" onBlur="chechUserAddress(this)" maxlength="80" size="55" /></TD>
                                              <TD width=235 align="left"><DIV class=message id=CorporationAddress_Msg></DIV></TD>
                                            </tr>
                                          </table>
                                          <table width=100%>
                                            <tr>
                                                <TD align=right width="103"><FONT color=#ff4e00>*</FONT>邮政编码：</TD>
                                              <TD width=200 align="left"><input name="CorporationPostalcode" id="CorporationPostalcode" type="text" onBlur="chechUserPostalcode(this)" onFocus="showNotice(this)" maxlength="6" size="15" require="false" />                                              </TD>
                                              <TD width=535 align="left"><DIV class=message id=CorporationPostalcode_Msg> </DIV></TD>
                                            </tr>
                                          </table>
                                          <table width=100%>
                                            <tr>
                                                <TD align=right width="103"><FONT color=#ff4e00>*</FONT>联系人：</TD>
                                              <TD width=179 align="left"><input name="CorporationLinkman" id="CorporationLinkman" type="text" onBlur="chechUserLinkman(this)" onFocus="showNotice(this)" maxlength="50" size="15" require="false" />                                              </TD>
                                              <TD width=556 align="left"><DIV class=message id=CorporationLinkman_Msg> </DIV></TD>
                                            </tr>
                                          </table>
                                          <table width=100%>
                                            <tr>
                                                <TD align=right width="103"><FONT color=#ff4e00>*</FONT>联系电话：</TD>
                                              <TD width=322 align="left"><input name="CorporationTel" id="CorporationTel" type="text" onBlur="chechUserTel(this)" onFocus="showNotice(this)" maxlength="50" size="23" require="false" />
                                                &nbsp;<span style="color:#404040;">
                                                  <input id="janCorporationTelConceal" type="checkbox" name="janCorporationTelConceal" value="1"/>
                                                  <label for="janCorporationTelConceal">隐藏</label>
                                              </span> </TD>
                                              <TD width=413 align="left"><DIV class=message id=CorporationTel_Msg>选择隐藏我们将不公开您公司的电话,建议选择隐藏</DIV></TD>
                                            </tr>
                                          </table>
                                          <table width=100%>
                                            <tr>
                                                <TD width="103" align=right>传真号码：</TD>
                                              <TD width=406 align="left"><input name="CorporationFax" id="CorporationFax" type="text" maxlength="50" size="23" require="false" />
                                                &nbsp;<span style="color:#404040;">
                                                  <input id="janCorporationFaxConceal" type="checkbox" name="janCorporationFaxConceal" value="1"/>
                                                  <label for="janCorporationFaxConceal">隐藏</label>
                                              </span></TD>
                                              <TD width=329 align="left"></TD>
                                            </tr>
                                          </table>
                                          <table width=100%>
                                            <tr>
                                                <TD align=right width=103>学校主页：</TD>
                                              <TD width=290 align="left"><input name="CorporationURL" id="CorporationURL" type="text" maxlength="50" size="30" require="false" />                                                &nbsp; </TD>
                                              <TD width=445 align="left"></TD>
                                            </tr>
                                    </table></td>
                                      </tr>
                                  </TABLE>
                        </FONT></DIV></TD>
                      </TR>
                      <TR>
                        <TD align=center width="100%" height=50>      <input type="submit" name="Submit" value="  注    册  " id="Submit" onClick="return newYanzheng();" style="height:30px;width:100px;" />
                &nbsp;
                &nbsp;
       <input name="Reset" id="Reset" type="button" style="FONT-SIZE: 12px; FONT-FAMILY: 宋体; HEIGHT: 30px" value="  取   消  " /></TD>
                  </TR>
                </TABLE></TD>
              </TR>
          </TABLE>
<% End If %>
        </TD>
      </TR>
<input name="action" id="action" type="hidden" value="save" />
</form>
  </TABLE>
<!--#include file="end.asp"-->