<%@ page language="C#" autoeventwireup="true" inherits="admin_stylel, 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="简体中文";
tbindex.style.display="";
tbnews.style.display="";
tbncontent.style.display="";
tbproduct.style.display="";
tbpcontent.style.display="";
tbdown.style.display="";
tbdcontent.style.display="";
tbjob.style.display="";
tbjcontent.style.display="";
tblylist.style.display="";
tbshare.style.display="";
tbcss.style.display="";
}
else
{
document.getElementById("ms").value="双语模式";
tbindex.style.display="none";
tbnews.style.display="none";
tbncontent.style.display="none";
tbproduct.style.display="none";
tbpcontent.style.display="none";
tbdown.style.display="none";
tbdcontent.style.display="none";
tbjob.style.display="none";
tbjcontent.style.display="none";
tblylist.style.display="none";
tbshare.style.display="none";
tbcss.style.display="none";
}
}
function acadd()
{
one.style.display="";
two.style.display="";
ae.style.display="none";
}
function mbac()
{
one.style.display="";
two.style.display="";
mbae.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="add" runat="server"  Width="100%" Visible="False">        
        <table class="adminmaintable" border="0" id="ae" cellpadding="3" cellspacing="1">
            <tr>
                <td class="bt" colspan="3" style="text-align: center; height: 38px;">
                    <asp:Label ID="actionbt" runat="server" Text=""></asp:Label></td>
            </tr>
           <tr>
                <td style="width: 76px">
                    模式选择：</td>
                <td>
                    <input id="ms" type="button" value="双语模式" onclick="sy()" /></td>
            </tr>
            <tr>
                <td>
                    模板预览图片地址：</td>
                <td colspan="2">
                    <asp:TextBox ID="mbyl" runat="server" CssClass="textput" Width="156px"></asp:TextBox></td>
            </tr>
            <tr>
                <td >
                    模板名称：</td>
                <td colspan="2">
                    <asp:TextBox ID="name" CssClass="textput" runat="server" Width="156px"></asp:TextBox>*</td>
            </tr>
            <tr>
                <td >
                    首页模板文件：</td>
                <td colspan="2" >
                    <asp:TextBox ID="index" CssClass="textput" runat="server" Width="245px"></asp:TextBox><asp:Button ID="editindex" runat="server" Text="在线编辑此模板" OnClick="editindex_Click" /></td>
            </tr>
            <tr class="en" id="tbindex" style="display:none;">
                <td>
                    首页模板文件：<br />
                    （英文）</td>
                <td colspan="2">
                    <asp:TextBox ID="enindex" runat="server" CssClass="entextput" Width="245px"></asp:TextBox><asp:Button ID="editenindex" runat="server" Text="在线编辑此模板" OnClick="editenindex_Click"  /></td>
            </tr>
            <tr>
                <td >
                    新闻列表模板文件：</td>
                <td colspan="2" >
                    <asp:TextBox ID="news" CssClass="textput" runat="server" Width="245px"></asp:TextBox><asp:Button ID="editnews" runat="server" Text="在线编辑此模板" OnClick="editnews_Click"/></td>
            </tr>
            <tr class="en" id="tbnews" style="display:none;">
                <td>
                    新闻列表模板文件：<br />
                    （英文）</td>
                <td colspan="2">
                    <asp:TextBox ID="ennews" runat="server" CssClass="entextput" Width="245px"></asp:TextBox><asp:Button ID="editennews" runat="server" Text="在线编辑此模板" OnClick="editennews_Click" /></td>
            </tr>
            <tr>
                <td >
                    新闻内容模板文件：</td>
                <td colspan="2" >
                    <asp:TextBox ID="ncontent" CssClass="textput" runat="server" Width="245px"></asp:TextBox><asp:Button ID="editncontent" runat="server" Text="在线编辑此模板" OnClick="editncontent_Click"  /></td>
            </tr>
            <tr class="en" id="tbncontent" style="display:none;">
                <td>
                    新闻内容模板文件<br />
                    （英文）</td>
                <td colspan="2">
                    <asp:TextBox ID="enncontent" runat="server" CssClass="entextput" Width="245px"></asp:TextBox><asp:Button ID="editenncontent" runat="server" Text="在线编辑此模板" OnClick="editenncontent_Click"  /></td>
            </tr>
            <tr>
                <td >
                    产品列表模板文件：</td>
                <td colspan="2" >
                    <asp:TextBox ID="product" CssClass="textput" runat="server" Width="245px"></asp:TextBox><asp:Button ID="editproduct" runat="server" Text="在线编辑此模板" OnClick="editproduct_Click"/>
                    </td>
            </tr>
            <tr class="en" id="tbproduct" style="display:none;">
                <td>
                    产品列表模板文件：<br />
                    （英文）</td>
                <td colspan="2">
                    <asp:TextBox ID="enproduct" runat="server" CssClass="entextput" Width="245px"></asp:TextBox><asp:Button ID="editenproduct" runat="server" Text="在线编辑此模板" OnClick="editenproduct_Click"  /></td>
            </tr>
            <tr>
                <td>
                    产品内容模板文件：</td>
                <td >
                    <asp:TextBox ID="pcontent" runat="server" CssClass="textput" Width="245px"></asp:TextBox><asp:Button ID="editpcontent" runat="server" Text="在线编辑此模板" OnClick="editpcontent_Click" />
                    </td>
                <td >
                </td>
            </tr>
            <tr class="en" id="tbpcontent" style="display:none;">
                <td>
                    产品内容模板文件：<br />
                    （英文）</td>
                <td>
                    <asp:TextBox ID="enpcontent" runat="server" CssClass="entextput" Width="245px"></asp:TextBox><asp:Button ID="editenpcontent" runat="server" Text="在线编辑此模板" OnClick="editenpcontent_Click" /></td>
                <td>
                </td>
            </tr>
            <tr >
                <td>
                    下载列表模板：</td>
                <td>
                    <asp:TextBox ID="down" runat="server" CssClass="textput" Width="245px"></asp:TextBox><asp:Button ID="editdown" runat="server" Text="在线编辑此模板" OnClick="editdown_Click"  /></td>
                <td>
                </td>
            </tr>
            <tr class="en" id="tbdown" style="display: none">
                <td>
                    下载列表模板：<br />
                    （英文）</td>
                <td>
                    <asp:TextBox ID="endown" runat="server" CssClass="entextput" Width="245px"></asp:TextBox><asp:Button ID="editendown" runat="server" Text="在线编辑此模板" OnClick="editendown_Click1"  /></td>
                <td>
                </td>
            </tr>
            <tr >
                <td>
                    下载内容模板：</td>
                <td>
                    <asp:TextBox ID="dcontent" runat="server" CssClass="textput" Width="245px"></asp:TextBox><asp:Button ID="editdcontent" runat="server" Text="在线编辑此模板" OnClick="editdcontent_Click"  /></td>
                <td>
                </td>
            </tr>
            <tr class="en" id="tbdcontent" style="display: none">
                <td>
                    下载内容模板：<br />
                    （英文）</td>
                <td>
                    <asp:TextBox ID="endcontent" runat="server" CssClass="entextput" Width="245px"></asp:TextBox><asp:Button ID="editendcontent" runat="server" Text="在线编辑此模板" OnClick="editendcontent_Click" /></td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    人才招聘列表模板：</td>
                <td>
                    <asp:TextBox ID="job" runat="server" CssClass="textput" Width="245px"></asp:TextBox><asp:Button ID="editjob" runat="server" Text="在线编辑此模板" OnClick="editjob_Click" /></td>
                <td>
                </td>
            </tr>
            <tr class="en" id="tbjob" style="display: none">
                <td>
                    人才招聘列表模板：<br />
                    （英文）</td>
                <td>
                    <asp:TextBox ID="enjob" runat="server" CssClass="entextput" Width="245px"></asp:TextBox><asp:Button ID="editenjob" runat="server" Text="在线编辑此模板" OnClick="editenjob_Click" /></td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    人才招聘内容模板：</td>
                <td>
                    <asp:TextBox ID="jcontent" runat="server" CssClass="textput" Width="245px"></asp:TextBox><asp:Button ID="editjcontent" runat="server" Text="在线编辑此模板" OnClick="editjcontent_Click"  /></td>
                <td>
                </td>
            </tr>
            <tr class="en" id="tbjcontent" style="display: none">
                <td>
                    人才招聘内容模板：<br />
                    （英文）</td>
                <td>
                    <asp:TextBox ID="enjcontent" runat="server" CssClass="entextput" Width="245px"></asp:TextBox><asp:Button ID="editenjcontent" runat="server" Text="在线编辑此模板" OnClick="editenjcontent_Click" /></td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    留言列表模板文件：</td>
                <td>
                    <asp:TextBox ID="lylist" runat="server" CssClass="textput" Width="245px"></asp:TextBox><asp:Button ID="editlylist" runat="server" Text="在线编辑此模板" OnClick="editlylist_Click"  /></td>
                <td>
                </td>
            </tr>
            <tr class="en" id="tblylist" style="display:none;">
                <td>
                    留言列表模板文件：<br />
                    （英文）</td>
                <td>
                    <asp:TextBox ID="enlylist" runat="server" CssClass="entextput" Width="245px"></asp:TextBox><asp:Button ID="editenlylist" runat="server" Text="在线编辑此模板" OnClick="editenlylist_Click" /></td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    扩展页模板文件：</td>
                <td>
                    <asp:TextBox ID="share" runat="server" CssClass="textput" Width="245px"></asp:TextBox><asp:Button ID="editshare" runat="server" Text="在线编辑此模板" OnClick="editshare_Click"/>用于扩展，企业招聘，企业简介等单独页面。</td>
                <td>
                </td>
            </tr>
            <tr class="en" id="tbshare" style="display:none;">
                <td>
                    扩展页模板文件：<br />
                    （英文）</td>
                <td>
                    <asp:TextBox ID="enshare" runat="server" CssClass="entextput" Width="245px"></asp:TextBox><asp:Button ID="editenshare" runat="server" Text="在线编辑此模板" OnClick="editenshare_Click" />用于扩展，企业招聘，企业简介等单独页面。</td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    CSS样式风格文件：</td>
                <td>
                    <asp:TextBox ID="css" runat="server" CssClass="textput" Width="245px"></asp:TextBox><asp:Button ID="editcss" runat="server" Text="在线编辑此风格" OnClick="editcss_Click"/></td>
                <td>
                </td>
            </tr>
            <tr class="en" id="tbcss" style="display:none;">
                <td>
                    CSS样式风格文件：<br />
                    （英文）</td>
                <td>
                    <asp:TextBox ID="encss" runat="server" CssClass="entextput" Width="245px"></asp:TextBox><asp:Button ID="editencss" runat="server" Text="在线编辑此模板" OnClick="editencss_Click" /></td>
                <td>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="text-align: center">
                    <asp:Button ID="addtemplet"  runat="server" Text="添 加" Width="94px" OnClientClick="acadd()" OnClick="addtemplet_Click"  />
                        <asp:Button ID="edittemplet"  runat="server" Text="修 改" Width="94px" OnClientClick="acadd()" OnClick="edittemplet_Click" /></td>
            </tr>
        </table>
        </asp:Panel>
     <asp:Panel ID="master" runat="server" Width="100%" >
         <asp:GridView OnPageIndexChanging="GridView1_PageIndexChanging" ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
             ForeColor="#333333" GridLines="None" HorizontalAlign="Center" AllowPaging="True" PageSize="5">
             <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
             <Columns>
                                  <asp:TemplateField HeaderText="模板预览">
                   <ItemTemplate>
                         <a href='templet.aspx?action=edit&id=<%#Eval("id") %>'><img border="0" width="190" height="160" src="<%#Eval("pic") %>" /></a>                             
                     </ItemTemplate>
                     </asp:TemplateField>
                 <asp:BoundField DataField="name" HeaderText="模板名称" />
                 <asp:BoundField DataField="state" HeaderText="状态" />
                 <asp:TemplateField HeaderText="设置">
                     <ItemTemplate>
                         <a href='templet.aspx?action=default&id=<%#Eval("id") %>'>设为默认</a>
                     </ItemTemplate>
                 </asp:TemplateField>
                 <asp:TemplateField HeaderText="编辑">
                     <ItemTemplate>
                         <a href='templet.aspx?action=edit&id=<%#Eval("id") %>'>编辑</a>
                     </ItemTemplate>
                 </asp:TemplateField>
                 <asp:TemplateField HeaderText="删除">
                     <ItemTemplate>
                         <a href='templet.aspx?action=del&id=<%#Eval("id") %>' onclick="return confirm('删除将不可恢复，您确认要删除吗?')">
                             删除</a>
                     </ItemTemplate>
                 </asp:TemplateField>
             </Columns>
             <RowStyle BackColor="#EFF3FB" />
             <EditRowStyle BackColor="#2461BF" />
             <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
             <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
             <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
             <AlternatingRowStyle BackColor="White" />
         </asp:GridView>
         <asp:Literal ID="tj" runat="server"></asp:Literal></asp:Panel>
        <asp:Panel ID="onlinetemplet" runat="server"  Width="100%" Visible="false">
            <table id="mbae" class="adminmaintable" border="0" cellpadding="3" cellspacing="1">
                <tr class="bt">
                    <td colspan="2" style="text-align: center; height: 58px;">
                        <asp:Literal ID="templetbt" runat="server"></asp:Literal>
                        <br />
                        <br />
                        <table border="0" cellpadding="1" cellspacing="1" >
                            <tr>
                            <td>
                            <a style=" color:#666666;" >标签：</a>
                            </td>
                                                            <td >
                                    <a style="font-weight:bold; color:#ff0000;" href="jtbq.html" target="_blank">
                                        系统静态标签</a></td>
                                <td >
                                    <a style="font-weight:normal; color:#999999;" href="data.aspx?action=news" target="_blank">
                                        新闻文章</a></td>
                                <td >
                                    <a style="font-weight:normal; color:#999999;" href="data.aspx?action=newspic" target="_blank">
                                        新闻图片</a></td>
                                <td >
                                    <a style="font-weight:normal; color:#999999;" href="data.aspx?action=newsflash" target="_blank">
                                        新闻幻灯片</a></td>
                                <td >
                                    <a style="font-weight:normal; color:#999999;" href="data.aspx?action=product" target="_blank">产品文章调用</a></td>
                                <td >
                                    <a style="font-weight:normal; color:#999999;" href="data.aspx?action=productpic" target="_blank">
                                        产品图片</a></td>
                                <td >
                                    <a style="font-weight:normal; color:#999999;" href="data.aspx?action=productflash" target="_blank">
                                        产品幻图片</a></td>
                            
                             <td >
                                    <a style="font-weight:normal; color:#999999;" href="data.aspx?action=news" target="_blank">
                                        下载文章</a></td>
                                <td >
                                    <a style="font-weight:normal; color:#999999;" href="data.aspx?action=downpic" target="_blank">
                                        下载图片</a></td>
                                <td >
                                    <a style="font-weight:normal; color:#999999;" href="data.aspx?action=downflash" target="_blank">
                                        下载幻图片</a></td>
                                <td >
                                    <a style="font-weight:normal; color:#999999;" href="data.aspx?action=product" target="_blank">
                                        招聘文章</a></td>
                                <td >
                                    <a style="font-weight:normal; color:#999999;" href="data.aspx?action=jobpic" target="_blank">
                                        招聘图片</a></td>
                                <td >
                                    <a style="font-weight:normal; color:#999999;" href="data.aspx?action=jobflash" target="_blank">
                                        招聘幻图片</a></td>                                        
                            </tr>
                        </table>                        
                    </td>
                </tr>
                <tr>
                    <td colspan="2" >
                        <FCKeditorV2:FCKeditor ID="content" runat="server" BasePath="~/FCKeditor/" EnableSourceXHTML="true"
                            EnableXHTML="true" Height="400px" >
                        </FCKeditorV2:FCKeditor>
                        <asp:TextBox ID="textcss" Visible="false" runat="server" TextMode="MultiLine" Width="100%" Height="500px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center">
                        <asp:Button ID="save" runat="server" Text="保存" Width="115px" OnClick="save_Click" OnClientClick="mbac()"/>
                        <asp:Button ID="black" runat="server" Text="返回" Width="115px" OnClick="black_Click" />
                        </td>
                </tr>
            </table>
        </asp:Panel>
      </div>
    </form>
</body>
</html>
