<%@ page language="C#" autoeventwireup="true" inherits="admin_news, aoshuosoft" %>
<%@ 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">
    <title>新闻管理</title>
    <link href="admin.css" rel="stylesheet" type="text/css" />
</head>
<script language="javascript">
function sy()
{
if(document.getElementById("ms").value=="双语模式")
{
document.getElementById("ms").value="简体中文";
tbtitlel.style.display="";
tbkeywords.style.display="";
tbdescription.style.display="";
tbcontent.style.display="";
}
else
{
document.getElementById("ms").value="双语模式";
tbtitlel.style.display="none";
tbkeywords.style.display="none";;
tbdescription.style.display="none";
tbcontent.style.display="none";
}
}
function acadd()
{
one.style.display="";
two.style.display="";
ae.style.display="none";
}
</script>
<body>
    <form id="form1" runat="server">
    <div>
    <table border='0' width='100%' id='one' style="display:none;" >
      <tr height='150'>
      <td>      
      </td>
      </tr>
      </table>
      <table id='two' style="display:none;" align='center' cellspacing='1' border='0' bgcolor='#CCFF66'><tr bgcolor='#FFFF99'><td>
      <table  class='actionadd' border='0' height='30' bgcolor='#FFFF99' style="width: 365px">
         <tr style='font-size:12px;'><td style="text-align: right">
             <asp:Image ID="Image1" runat="server" ImageUrl="~/image/ac.gif" /></td><td>
             &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 请稍后，正在保存数据...</td></tr>
         </table></td></tr>
      </table>
       <asp:Panel ID="addedit" runat="server"  Width="100%" Visible="False">       
           <table class="adminmaintable" id="ae" border="0" cellpadding="3" cellspacing="1">
               <tr>
                   <td class="bt" colspan="3" style="text-align: center; height: 35px;">
                       <asp:Label ID="actionbt" runat="server" Text="" Width="185px"></asp:Label></td>
               </tr>
               <tr>
                <td style="width: 76px">
                    模式选择：</td>
                <td>
                    <input id="ms" type="button" value="双语模式" onclick="sy()" /></td>
            </tr>
               <tr>
                   <td style="width: 76px">
                       新闻属性：</td>
                   <td colspan="2">
                       <asp:CheckBox ID="hot" runat="server" Text="热门" /><asp:CheckBox ID="commend" runat="server" Text="推荐" /></td>
               </tr>
               <tr>
                   <td style="width: 76px" >
                       所属分类：</td>
                   <td colspan="2">
                       <asp:DropDownList ID="sort" CssClass="downlist" runat="server">
                       </asp:DropDownList>&nbsp;
                       <asp:Literal ID="sortts" runat="server"></asp:Literal></td>
               </tr>
               <tr>
                   <td style="width: 76px" >
                       新闻标题：</td>
                   <td colspan="2" >
                       <asp:TextBox ID="titlel" CssClass="textput" runat="server" Width="392px"></asp:TextBox>
                       &nbsp; &nbsp;
                       <asp:DropDownList ID="color" CssClass="downlist" runat="server">
                           <asp:ListItem Value="">颜色</asp:ListItem>
                           <asp:ListItem Value="">默认</asp:ListItem>
                           <asp:ListItem Value="#000000" Text="" style='background-color:#000000' ></asp:ListItem>
                           <asp:ListItem value="#FFFFFF" Text="" style='background-color:#FFFFFF' ></asp:ListItem>
                           <asp:ListItem Value="#008000" Text="" style='background-color:#008000' ></asp:ListItem>
                           <asp:ListItem Value="#800000" Text="" style='background-color:#800000' ></asp:ListItem>
                           <asp:ListItem Value="#808000" Text="" style='background-color:#808000' ></asp:ListItem>
                           <asp:ListItem Value="#000080" Text="" style='background-color:#000080' ></asp:ListItem>
                           <asp:ListItem Value="#800080" Text="" style='background-color:#800080' ></asp:ListItem>
                           <asp:ListItem Value="#808080" Text="" style='background-color:#808080' ></asp:ListItem>
                           <asp:ListItem Value="#FFFF00" Text="" style='background-color:#FFFF00' ></asp:ListItem>
                           <asp:ListItem Value="#00FF00" Text="" style='background-color:#00FF00' ></asp:ListItem>
                           <asp:ListItem Value="#00FFFF" Text="" style='background-color:#00FFFF' ></asp:ListItem>
                           <asp:ListItem Value="#FF00FF" Text="" style='background-color:#FF00FF' ></asp:ListItem>
                           <asp:ListItem Value="#FF0000" Text="" style='background-color:#FF0000' ></asp:ListItem>
                           <asp:ListItem Value="#0000FF" Text="" style='background-color:#0000FF' ></asp:ListItem>
                           <asp:ListItem Value="#008080" Text="" style='background-color:#008080' ></asp:ListItem>
                       </asp:DropDownList>
                       &nbsp;
                       <asp:DropDownList ID="font" CssClass="downlist" runat="server">
                       <asp:ListItem Value="">字体</asp:ListItem>
                       <asp:ListItem Value="">默认</asp:ListItem>
                       <asp:ListItem Value="bold" Text="粗体"></asp:ListItem>
                       <asp:ListItem Value="italic" Text="斜体"></asp:ListItem>
                       </asp:DropDownList>
                       </td>
               </tr>
               <tr class="en" id="tbtitlel" style="display:none;">
                   <td style="width: 76px">
                       新闻标题：<br />
                       （英文）</td>
                   <td colspan="2">
                       <asp:TextBox ID="entitlel" runat="server" CssClass="textput" Width="392px"></asp:TextBox></td>
               </tr>
               <tr>
                   <td style="width: 76px">
                       新闻关键词：</td>
                   <td colspan="2">
                       <asp:TextBox ID="keywords" runat="server" CssClass="textput" Height="40px" TextMode="MultiLine"
                           Width="521px"></asp:TextBox></td>
               </tr>
               <tr class="en" id="tbkeywords" style="display:none;">
                   <td style="width: 76px">
                       新闻关键词：<br />
                       （英文）</td>
                   <td colspan="2">
                       <asp:TextBox ID="enkeywords" runat="server" CssClass="textput" Height="40px"
                           TextMode="MultiLine" Width="521px"></asp:TextBox></td>
               </tr>
               <tr>
                   <td style="width: 76px">
                       新闻描述：</td>
                   <td colspan="2">
                       <asp:TextBox ID="description" runat="server" CssClass="textput" Height="40px" TextMode="MultiLine"
                           Width="521px"></asp:TextBox></td>
               </tr>
               <tr class="en" id="tbdescription" style="display:none;">
                   <td style="width: 76px">
                       新闻描述：<br />
                       （英文）</td>
                   <td colspan="2">
                       <asp:TextBox ID="endescription" runat="server" CssClass="entextput" Height="40px" TextMode="MultiLine"
                           Width="521px"></asp:TextBox></td>
               </tr>
               <tr>
                   <td style="width: 76px">
                       新闻内容：</td>
                    <td><fckeditorv2:fckeditor id="content" runat="server"  EnableXHTML="true" EnableSourceXHTML="true" basepath="~/FCKeditor/" height="400px">
                    </FCKeditorV2:FCKeditor>
                    </td>
               </tr>
               <tr class="en" id="tbcontent" style="display:none;">
                   <td style="width: 76px">
                       新闻内容：<br />
                       （英文）</td>
                   <td>
                       <fckeditorv2:fckeditor id="encontent" runat="server"  EnableXHTML="true" EnableSourceXHTML="true" basepath="~/FCKeditor/" height="400px">
                       </FCKeditorV2:FCKeditor>
                   </td>
               </tr>
               <tr >
                   <td style="width: 76px">
                       首页图片：</td>
                   <td>
                       <asp:FileUpload ID="filepic" runat="server" Width="356px" />（只能上传.gif,.jpg格式图片）用于在首页的图片文章处显示
                   </td>
               </tr>
               <tr>
                   <td colspan="2">
                                       <asp:CheckBox ID="makewater" Checked="true" runat="server" Text="给文章内容里的图片加水印(在系统设置中开启水印功能才有效)" ForeColor="Blue" /></td>
               </tr>
               <tr>
                   <td style="width: 76px">
                       静态生成：</td>
                   <td>
                       <asp:CheckBox ID="html" Text="自动生成静态（当系统开启静态生成功能才有效）" runat="server" /></td>
               </tr>
               <tr>
                   <td style="width: 76px">
                       优先级别：</td>
                   <td>
                       <asp:TextBox ID="yxpx" runat="server" Width="57px" Text="0"></asp:TextBox>&nbsp;
                       数字越大排序越靠前（只有在<a href="list.aspx?action=news" target="adminmain">新闻参数配置</a>中启用了优先排序才有效）</td>
               </tr>
               <tr>
                   <td style="width: 76px">
                       模板选择：</td>
                   <td>
                       <asp:DropDownList ID="kzmb" runat="server">
                       </asp:DropDownList>
                       <a href="kztemplet.aspx?action=add">点击这里添加扩展模板</a></td>
               </tr>
               <tr>
                   <td colspan="3" style="text-align: center">
                      <asp:Button ID="addnews" runat="server" Text="添 加" Width="80px" OnClick="addnews_Click" OnClientClick="acadd()"/>
                      <asp:Button ID="editnews" runat="server" Text="修 改" Width="80px" OnClick="editnews_Click" OnClientClick="acadd()" />
                      </td>
               </tr>
           </table>
           <asp:Literal ID="javaaction" runat="server"></asp:Literal></asp:Panel>
           <asp:Panel ID="news" runat="server"  Width="100%" Visible="False" >
            <table class="adminhtmltable" border="0" cellpadding="1" cellspacing="1" >
                   <tr>
                       <td style="height: 24px; background-color: #0099FF;color:#FFFFFF;font-weight:bold;">
                           新闻分类</td>
                       <td  style="height: 24px;background-color: #0099FF;color:#FFFFFF;font-weight:bold;">
                           新闻列表</td>
                   </tr>
                   <tr>
                       <td style="background-color:#ffffff;" valign="top">
                           <asp:TreeView ID="sorttree" runat="server" ShowLines="True">
                           </asp:TreeView>
                       </td>
                       <td style="background-color:#ffffff;" valign="top">
                           <asp:Literal ID="newstable" runat="server"></asp:Literal></td>
                   </tr>
                <tr>
                    <td class="bt" colspan="2" style=" height: 25px;">
                        <asp:Button ID="zk" runat="server" Text="全部展开" OnClick="zk_Click" />
                        <asp:Button ID="ss" runat="server" Text="全部收缩" OnClick="ss_Click" /></td>
                </tr>
               </table>
               </asp:Panel>
        </div>
    </form>
</body>
</html>
