<%@ page language="C#" autoeventwireup="true" inherits="admin_addinfo, cndian_tao_qun" %>
<!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>
    <title></title>
        <link href="images/skin.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
	font-size:12px;
}
-->
</style>  

    <script src="date.js" type="text/javascript"></script>
  <script src="../ckeditor/ckeditor.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">

function addinfo()
{
var f = document.forms[0];
if (f.infotitle.value == "")
{
alert("请输入文章主题!");
f.infotitle.focus();
return false;
}

else if (f.classid.value == "0")
{
alert("请选择文章分类!");
f.classid.focus();
return false;
}
else
{
return true;
}
}
</script>

</head>
<body>
    <form id="form1" runat="server" enctype="multipart/form-data" >

  <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">添加文章</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">    <div class="divtext">
<table cellspacing="0" cellpadding="0" width="100%" class="tablexian" border="0">
<tr><td   align="right" style="width: 80px">
    主题：</td><td align="left">
<input id="infotitle" runat="server" maxlength="35" type="text" class="hui" size="50" />
        <span style="color: #ff0000">
            预发布：</span><input id="infotime" runat="server" maxlength="20"
            onclick="javascript:calendar.setHook(this)" readonly="readonly" size="10" type="text" /></td></tr>
   
     <tr>
         <td align="right" style="width: 80px">
             分类：</td>
         <td align="left">
             <asp:DropDownList ID="classid" runat="server">
             </asp:DropDownList></td>
     </tr>
       
    <tr>
        <td align="right"  style="width: 80px">
            关键字：</td>
        <td align="left"><input id="infokeywords" runat="server" maxlength="50" type="text" size="40" class="hui" /></td>
    </tr>
    <tr>
        <td align="right"  style="width: 80px">
            简要说明：</td>
        <td align="left">
            <textarea id="infodescription" cols="60" rows="3" runat="server" class="hui"></textarea></td>
    </tr>
     <tr>
         <td align="right" style="width: 80px">
             内容：</td>
         <td align="left">
            <asp:TextBox id="infotext" CssClass="ckeditor" TextMode="MultiLine"  runat="server"></asp:TextBox>
             </td>
     </tr>
<tr>
<td align="right"  style="width: 80px">
</td>
<td align="left">
<input id="Submit1" runat="server" class="t1" type="submit" value="发布文章" onclick="return addinfo()" onserverclick="Submit1_ServerClick" />
 </td>
</tr>
</table>
     </div>
     </td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
     <asp:Label ID="message" runat="server"></asp:Label>    
    </form>
</body>
</html>