<%@ Page Language="C#" ValidateRequest="false"  AutoEventWireup="true" CodeFile="WebNewsAdd.aspx.cs" Inherits="admin_WebNews_WebNewsAdd" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!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 runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>编辑行业资讯</title>
<link rel="stylesheet" href="../skin/style.css" type="text/css" />

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

</head>
<body>
    <form id="form1" runat="server">
        <div class="marie talbe_border">
            <table border="0" cellpadding="0" cellspacing="0" class="talbe_list">
                <th colspan="2" class="header tou">
                    添加网站公告+新闻+活动</th>
                <tr>
                    <td width="16%" class="left1">
                        信息标题：                    </td>
                    <td class="left2">
                        <asp:TextBox ID="txtTitle" runat="server" Width="300px"></asp:TextBox>
                  </td>
                </tr>
                <tr>
                    <td class="left1">
                        信息分类：                    </td>
                    <td class="left2">
                        <asp:DropDownList ID="dropType" runat="server" Visible="true">
                            <asp:ListItem Value="网站公告">网站公告</asp:ListItem>
                            <asp:ListItem Value="网站活动">网站活动</asp:ListItem>
                            <asp:ListItem Value="网站新闻">网站新闻</asp:ListItem>
                  </asp:DropDownList></td>
                </tr>
<%--                <tr>
                    <td class="left1">
                        上传图片：                    </td>
                    <td class="left2">
                        
                        <asp:HiddenField ID="ImgUrl1" runat="server" />
                        <input id="pic_on" name="pic_on" type="checkbox" onclick="showadv()" value="上传图片"
                            runat="server" /><font color="red"><span id="advance">上传图片</span></font>
                        <asp:Image ID="imgPicture" ImageUrl="~/Images/System/wutu.gif" runat="server" Width="100px"
                            Height="60px"></asp:Image>
                        <table id="adv" runat="server" style="display: none">
                            <tr>
                                <td>
                                    <uc1:Upfile ID="Upfile1" runat="server" />
                                </td>
                            </tr>
                        </table>
                  </td>
                </tr>--%>
				 <tr>
                    <td class="left1">
                        信息属性：                    </td>
                   <td class="left2"><asp:CheckBox ID="chkAttribute" runat="server" Text="推荐" /></td>
                </tr>
                <tr>
                    <td class="left1">
                        信息来源：                    </td>
                    <td class="left2">
                        <asp:TextBox ID="txtOrigin" runat="server" Width="200px"></asp:TextBox>
                  </td>
                </tr>
                <tr>
                    <td class="left1">
                        详细信息：                    </td>
                    <td>
                     <FCKeditorV2:FCKeditor ID="Detail" runat="server" BasePath="~/Control/fckeditor/" ToolbarSet="Custom" Height="400" Width="580">
</FCKeditorV2:FCKeditor>
                  </td>
                </tr>
                <tr>
                    <td colspan="2" bgcolor="#F0F7FD">
                        <asp:Button ID="btnSave" runat="server" Text="确定" OnClick="btnSave_Click" CssClass="i_button" /><asp:Button
                            ID="btnCancel" runat="server" Text="取消" CssClass="i_button" /></td>
                </tr>
          </table>
        </div>
    </form>
</body>
</html>
