<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>投诉"<%= Trim(Request.QueryString("cname")) %>"</title>
<!--#include file="conn/conn_index.asp"-->
<!--#include file="inc/setup.asp"-->
<!--#include file="inc/char.asp"-->
<!--#include file="inc/sql.asp"-->
<%
	end if
	Response.Buffer = True
	Response.Expires = -1
	Response.ExpiresAbsolute = Now() - 1
	Response.Expires = 0
	Response.CacheControl = "no-cache"
	action=ReplaceBadChar(Trim(Request.QueryString("action")))
	email=ReplaceBadChar(Trim(Request.Form("email")))
	message=ReplaceBadChar(Trim(Request.Form("message")))
	cname=ReplaceBadChar(Trim(Request.Form("cname")))
	cid=ReplaceBadChar(int(Trim(Request.Form("cid"))))
	
	if action="add" then
	
		set rs_company=server.createobject("adodb.recordset")
		company_sql="select * from toushu"
		rs_company.open company_sql,conn,2,3
		rs_company.addnew
		rs_company("cid")=cid
		rs_company("cname")=cname
		rs_company("email")=email
		rs_company("message")=message
		rs_company("stime")=now()
		rs_company("zhuangtai")=0
		rs_company.update
		rs_company.close
		set rs_company=nothing
	

			response.write"<SCRIPT language=JavaScript>alert('您的投诉我们已经受理，感谢您的支持');"
			response.write"javascript:window.close();</SCRIPT>"
			response.end

		rs.close
		set rs=nothing
		conn.close
		set conn=nothing
	end if
%>
<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">
<meta name="Keywords" content="<%= webmeta %>">
<meta name="Description" content="<%= webmeta1 %>">
<link href="css/stylecompanyjobs.css" rel="stylesheet" type="text/css" />
<link href="css/joball.css" rel="stylesheet" type="text/css" />
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkuserinfo()
{
   if(checkspace(document.userinfo.email.value)) {
	document.userinfo.email.focus();
    alert("对不起，请填写正确的email地址！");
	return false;
  }
   if(checkspace(document.userinfo.message.value)) {
	document.userinfo.message.focus();
    alert("对不起，请填写信件内容！");
	return false;
  }
}
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
//-->
</script>
</head>
<body bgcolor="#ffffff" text="#000000" oncontextmenu=self.event.returnValue=false bottommargin="0" topmargin="0" rightmargin="0" leftmargin="0">
<form name="userinfo" method="POST" action="?action=add" onSubmit="return checkuserinfo()">
<input name="cname" type="hidden" value="<%= Trim(Request.QueryString("cname")) %>">
<input name="cid" type="hidden" value="<%= Trim(Request.QueryString("cid")) %>">
 <table width="331" border="0" align="center" cellspacing="1" cellpadding="0">
    <tr> 
      <td width="283" height="30" class="tab_03">　<img src="images/pn_16.gif" width="19" height="13" align="absmiddle"><b>投诉"<%= Trim(Request.QueryString("cname")) %>"</b></td>
    </tr>
    <tr><td height="1"></td></tr>
  </table>
  <table width="331" border="0" align="center" cellspacing="1" cellpadding="5" bgcolor="E6E6E6">
    
    <tr bgcolor="#FFFFFF"> 
      <td width="80" height="25" bgcolor="#efefef"><b>您的邮件</b></td>
      <td width="228"><input type="text" name="email" size="20"></td>
    </tr>
    
    <tr bgcolor="#FFFFFF"> 
      <td valign="top" height="25" bgcolor="#efefef" ><b>投诉内容</b></td>
      <td>
      	<textarea name="message" cols="30" rows="3"></textarea></td>
    </tr>
    
    <tr bgcolor="#FFFFFF"> 
      <td valign="top" height="25">&nbsp;</td>
      <td>
      <input type="submit" class="button" name="SubmitSend" value=" 发送 " >
      <input type="button" class="button" name="" value=" 取消 "  onclick="window.close()">      </td>
    </tr>
  </table>
</form>
</body>
</html>