 <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
 <style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
 </style>
 <!--#include file="../head.asp"-->
 <!--#include file="../checkrole.asp"-->
<%
'*****************************************
'FileName: Audit.asp
'Action: 会员中心会员投搞
'Copyright(c)2004-2008 网胜科技公司技术开发部
'Writer: XYF
'Create Date: 2009-?-?
'*****************************************%>
<script LANGUAGE="JavaScript">
function aaa() 
{ 

var rowTest=document.getElementById("rowTest");

switch (document.form.checkbox.checked) 
{ 
case false: 
document.form.text.disabled=true;
 rowTest.style.display="block";
 document.form.text.value="";
 //window.parent.document.getElementById("eWebEditor1").contentWindow.location = node.Target; 
break; 
case true: 
document.form.text.disabled=false; 
rowTest.style.display="none";

document.form.text.value="";
break; 
} 
} 
function showadv(){
if (document.form.pic_on.checked == true) {
		adv.style.display = "";
		advance.innerText="取消上传标题图片"
		advpic.style.display = "";
	}else{
		adv.style.display = "none";
		advpic.style.display = "none";
		advance.innerText="上传标题图片"
	}
}		
</script>

<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" class="tableBorder"> 
  <tr> 
     <th height=25 colspan="2" align="center" valign="middle" class="tableHeaderText">会员投稿</th> 
  </tr> 
 <Tr><td colspan="2" height="1"  bgcolor="#CCCCCC"></td></Tr>
  <tr> 
  
</table> 

  <TABLE width="100%" border="0" align=center cellpadding="0" cellspacing="1" class="tableBorder"> 
   <form name="form" method="POST" action="AuditSave.asp"> 
   
<input type='hidden' name="picture" value = ""> <tr> 
   
    <TR ALIGN="center"> 
      <TD> <TABLE width="100%" border="0" cellpadding="5" cellspacing="2" bordercolorlight="#CEE7FF" bordercolordark="#CEE7FF" style="border-collapse: collapse"> 
          <TR> 
            <TD width="153" align="right" class="Forumrow"><b>信息标题：</b></TD> 
            <TD colspan="2" class="Forumrow"> <font color="#F4FAFF"> 
 
              <input name="title" id="title" type="text"  size="50" maxlength="30"> 
              </font> <font color='#FF0000'>*</font> 
            </TD> 
          </TR>
		            <TR> 
            <TD align="right" valign="middle" class="Forumrow"><b>信息分类：</b></td> 
            <TD colspan="2" class="Forumrow"> <font color="#F4FAFF"> 
              <select name="typeid" size="1" class="lh17">
			  <option selected>--+清选择所属类别+--</option>
          <%
set rs1=server.CreateObject("adodb.recordset")
sql1="select * from Websen_newsType"
rs1.open sql1,conn,1,1
if not rs1.eof then 
do while not rs1.eof
response.write "<option value='"&rs1("typeid")&"'>"&rs1("type")&" 类信息</option>"&chr(13)+chr(10)
rs1.movenext
loop
rs1.close
end if
%> 
              </select>
            </font>
            <input name="pic_on" type="checkbox" id="pic_on" value="1" onClick=showadv()>
<font color="red"><span id="advance">上传标题图片</span> </font></TD> 
<TD width="4"   class="Forumrow"  id=advpic style="display:none; "></TD>
          </TR>  		  		  		  		  <TR>
		  <td class="Forumrow"></td> 
<TD colspan="2" class="Forumrow">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id=adv style="DISPLAY: none">
  <tr>
    <td width="92%">
<!----------------------------------------------------文件上传----------------------------------------------->
  <iframe id="d_file" frameborder="0" src="../../inc/upload.asp?tMode=3&istwo=0&utype=kind" width="300" height="40" scrolling="no"></iframe>
  <!---------------------------------------------------------------------------------------------------------> 
	  </td>
  </tr>
</table></TD>
</TR>
 		  <TR> 
            <TD align="right" class="Forumrow"><b>信息来源：</b></td> 
            <TD colspan="2" valign="middle" class="Forumrow">
              <input name="nfrom" type="text" class="smallInput" size="50" maxlength="50"> 
            <br>  <font color='blue'><=【<font color='green' onclick="document.form.nfrom.value='<%=webname%>信息中心'" style="cursor:hand;"><%=webname%>信息中心</font>】</font></TD> 
          </TR> 
		 
          <TR id="rowTest" style="display:block"> 
            <TD align="right" class="Forumrow"><b>详细信息：</b></TD> 
            <TD colspan="2" class="Forumrow">
<textarea name="content" style="display:none"></textarea> 

<iframe id="Editor" name="Editor" src="../../HtmlEditor/index.html?ID=content" frameborder="0" marginheight="0"     marginwidth="0" scrolling="No" style="height:320px;width:100%"></iframe>
</TD> 
          </TR> 
          <TR height="40"> 
            <TD colspan="3" align="center" class="Forumrow" height="40">
              <input type="submit" name="Submit1" value=" 提　交 保 存" onClick="return  Submits()" >
			  &nbsp;&nbsp;&nbsp; 
            <input type="reset" name="Submit2" value=" 重　新 添 写" ></TR> 
      </TABLE></TD> 
    </TR> </FORM> 
  </TABLE> 
<script type="text/jscript">

 function Submits()
 {
   if($("title").value.replace(/\s/g,'')=="")
   {
     alert("信息标题不能为空!")
	$("title").focus()
	return false 
   }
   if ($("typeid").value=="" || $("typeid").value==null)
   {
    alert("信息分类不能为空!")
	$("typeid").focus()
	return false
   }
   if($("nfrom").value.replace(/\s/g,'')=="")
   {
    alert("信息来源不能为空!")
	$("nfrom").focus()
	return false
   }
 }
 function $(id){return document.getElementById(id)}
</script>
