<!--#include file="conn/conn.asp"-->
<!--#include file="conn/nosql.asp"-->
<%
if request("action")="add" then
if session("user")="" then
response.write "<script language='javascript'>"
response.write "alert('您没还有登录，请登录后再访问本页！');"
response.write"window.close()</SCRIPT>"
response.end
end if
if session("id")="" then 
response.write "<script language='javascript'>"
response.write "alert('您没还有登录，请登录后再访问本页！');"
response.write"window.close()</SCRIPT>"
response.end
end if

showname=nosql(request("showname"))
shownr=nosql(request("shownr"))
if showname="" or shownr="" then
response.write "<script language='javascript'>"
response.write "alert('对不起，主题和内容不能为空！');"
response.write"window.close()</SCRIPT>"
response.end
end if
conn.execute("insert into snsn_loveshow_class (showname,shownr)VALUES('"&showname&"','"&shownr&"')")  
response.write "<script language=javascript>alert('欢迎你给我们推荐主题！');window.close();window.opener.location.reload();</script>"
response.end
else
%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="../css.css" REL="stylesheet" TYPE="text/css">
<style type="text/css">
<!--
body {
	margin-left: 8px;
	margin-top: 8px;
	margin-right: 8px;
	margin-bottom: 8px;
}
.style1 {color: #999999}
-->
</style></head>

<body><form name="myform" method="post" action="?action=add">
<table width="400" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
  <tr>
    <td height="10" bgcolor="efefef"><strong>我要推荐好的主题：</strong></td>
  </tr>
  <tr>
    <td height="11" bgcolor="#FFFFFF">推荐主题：
      <input name="showname" type="text" id="showname3" size="50" maxlength="50" class="wenbenkuang"></td>
  </tr>
  <tr>
    <td height="22" bgcolor="#FFFFFF">主题说明：
      <textarea name="shownr" cols="48" rows="10" class="wenbenkuang" id="shownr"></textarea></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF">            <input type="submit" name="Submit" value="推荐" class="go-wenbenkuang"> 
    <input type="reset" name="Submit2" value="重设" class="go-wenbenkuang">
      </td>
  </tr>
</table>
</form>
</body>
</html>
<%end if%>