<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="templatevariable.aspx.cs" Inherits="Focus.Admin.templatevariable" %>
<%@ Register TagPrefix="cc1" Namespace="Focus.Control" Assembly="Focus.Control" %>
<%@ Register TagPrefix="cc2" Namespace="Focus.Control" Assembly="Focus.Control" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
  <head>
    <title>模板变量</title>
    <link href="styles/datagrid.css" type="text/css" rel="stylesheet" />
    <link href="styles/fntmanager.css" type="text/css" rel="stylesheet" />     
    <script type="text/javascript" src="js/common.js"></script>
</head>
<body>
  <br />
    <form id="Form1" method="post" runat="server">
        <b>当前模板: <%=Request.Params["templatename"]%></b>    
    	<cc1:datagrid id="DataGrid1" runat="server"  OnCancelCommand="DataGrid_Cancel" OnEditCommand="DataGrid_Edit"
			OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" OnUpdateCommand="DataGrid_Update"
			OnDeleteCommand="DataGrid_Delete">
			<Columns>
				<asp:BoundColumn DataField="id" SortExpression="id" HeaderText="ID [递增]" Visible="false" ></asp:BoundColumn>
				<asp:BoundColumn DataField="variablename"  SortExpression="variablename" HeaderText="变量名称"></asp:BoundColumn>
				<asp:BoundColumn DataField="variablevalue" SortExpression="variablevalue" HeaderText="变量值"></asp:BoundColumn>					
			</Columns>
		</cc1:datagrid>
		<table>
			<tr>
				<td>
				<button type="button" class="ManagerButton" onclick="javascript:window.location.href='templatetree.aspx?templateid=<%=Request.Params["templageid"]%>&path=<%=Request.Params["path"]%>&templatename=<%=Request.Params["templatename"]%>';"><img src="images/arrow_undo.gif" /> 返 回 </button>
				 </td>
			</tr>
		</table>
        <div class="ManagerForm">
		    <fieldset>
	        <legend style="background:url(../images/icons/legendimg.jpg) no-repeat 6px 50%;">添加变量</legend>	    
	        <table cellspacing="0" cellPadding="4" class="tabledatagrid" align="center">
			    <tr>
				    <td class="td1" width="20%">变量名称:</td>
				    <td class="td1" width="30%"><cc2:TextBox id="variablename" runat="server" RequiredFieldType="暂无校验" width="200"></cc2:TextBox></td>
				    <td class="td2" width="20%">变量值:</td>
				    <td class="td2" width="30%"><cc2:TextBox id="variablevalue" runat="server" RequiredFieldType="暂无校验" width="200"></cc2:TextBox></td>
			    </tr>
			    <tr><td colspan="4" align="center"><cc1:Button id="AddNewRec" runat="server" Text=" 提 交 "></cc1:Button></td></tr>
		    </table>
		    </fieldset>
		</div>
     </form>
  </body>
</html>
