<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="templateEdit.aspx.cs" Inherits="Kcms.UI.admin.templateEdit" %>
<!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="skins/work-style.css" rel="stylesheet" type="text/css" />
    <script src="/inc/artDialog/artDialog.min.js" type="text/javascript"></script>
</head>
<body>
    <form id="form2" runat="server">
<div class="container">
 <div class="path clearfix"><div class="l"><h4><img src="skins/icon/accountmanagement_summ.gif" align="absmiddle" />网站模版设置</h4></div><div class="r"><asp:Literal ID="litAdv" runat="server"></asp:Literal></div></div>
 <div class="mbox clearfix">
  <div class="left">
   <a href="template.aspx">模版选择</a>
   <a href="#" class="on">模版编辑</a>
  </div>
  <div class="right">
<asp:PlaceHolder ID="plcList" runat="server" Visible="false">
<table class="rtable" width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
    <asp:Repeater ID="rptList" runat="server">
    <ItemTemplate>
<tr>
  <td><%#Eval("name") %></td>
  <td><%#Eval("size") %>KB</td>
  <td><a href="<%#Eval("link") %>">编辑</a></td>
</tr>    
    </ItemTemplate>
    <FooterTemplate>
<tr>
  <td><asp:Literal ID="Literal1" runat="server" Visible='<%#bool.Parse((rptList.Items.Count==0).ToString())%>'>无符合条件的文件</asp:Literal></td>
</tr>
    </FooterTemplate>
    </asp:Repeater>
</table>
</asp:PlaceHolder>


<asp:PlaceHolder ID="plcEdit" runat="server" Visible="false">
    <script src="skins/EditArea/edit_area_full.js" type="text/javascript"></script>
    <script language="Javascript" type="text/javascript">
        editAreaLoader.init({
            id: "txtBoxBody" // id of the textarea to transform       
                , start_highlight: true
                , allow_toggle: false
                , language: "zh"
                , syntax: "html"
                , toolbar: "search, go_to_line, |, undo, redo, |, select_font, |, change_smooth_selection, highlight, reset_highlight"
        });

    </script>
<table class="rtable" width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
  <td align="center">
      <asp:TextBox ID="txtBoxBody" Width="99%" Height="450px" runat="server" TextMode="MultiLine"></asp:TextBox>
    </td>
</tr>
<tr>
  <td><asp:Button ID="btnPost" runat="server" CssClass="btn0" Text="保存设置" onclick="btnPost_Click"/></td>
</tr>
</table>
</asp:PlaceHolder>
  </div>
 </div>
</div>
</form>
</body>
</html>