<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_InfoModel_CustomFormList, QianboCMS" EnableEventValidation="false" %>
<!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="../Css/layout.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="../../Js/jquery.js"></script>
    <script type="text/javascript" src="../../Js/lhgdialog/lhgdialog.min.js?self=true"></script>
    <script src="../../Js/Common.js" type="text/javascript"></script>
</head>

<body>
    <form id="form1" runat="server">
        <table cellspacing="1" cellpadding="0" class="wzdh" align="center">
            <tr>
                <td style="padding-left: 10px;">
                    <img src="../Images/Skin/Default/you.gif" align="absmiddle" />
                    您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt; 自定义表单管理
				</td>
            </tr>
        </table>
        <table cellpadding="0" cellspacing="1" class="border" align="center">
            <tr>
                <td class="wzlist"><a href="CustomForm.aspx">新增表单</a></td>
            </tr>
        </table>
        <table align="center" class="border" cellspacing="1" cellpadding="0">
            <asp:Repeater ID="RepCustomForm" runat="server" OnItemCommand="repCustomForm_Delete">
                <HeaderTemplate>
                    <tr class="title">
                        <td width="60px">表单编号</td>
                        <td width="180px">表单名称</td>
                        <td width="210px">表名</td>
                        <td>描述</td>
                        <td width="300px">操作</td>
                    </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <script type="text/javascript">
                        var jq = jQuery.noConflict();
                        jQuery(function () {
                            jQuery('#HtmlCode<%#Eval("CustomFormId")%>').click(function () {
								jQuery.dialog({
									id: 'txtHtmlCode<%#Eval("CustomFormId")%>',
									lock: true,
									title: 'Html调用代码',
									content: 'url:TransferCodeHtml.aspx?CustomFormId=<%#Eval("CustomFormId")%>',
									width: 650,
									height: 'auto'
								});
							});
							jQuery('#JsCode<%#Eval("CustomFormId")%>').click(function () {
								jQuery.dialog({
									id: 'txtJsCode<%#Eval("CustomFormId")%>',
									lock: true,
									title: 'Js调用代码',
									content: 'url:TransferCode.aspx?CustomFormId=<%#Eval("CustomFormId")%>',
									width: 650,
									height: 'auto'
								});
							});
						});
                    </script>
                    <tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
                        <td><%#Eval("CustomFormId") %></td>
                        <td align="left" style="padding-left: 5px;"><a href="CustomFormInfoList.aspx?CustomFormId=<%#Eval("CustomFormId")%>"><%#Eval("FormName")%></a></td>
                        <td><%#Eval("TableName") %></td>
                        <td><%#Eval("FormDesc")%></td>
                        <td><a id="HtmlCode<%#Eval("CustomFormId")%>" class="mouseStyle">Html调用</a> | <a id="JsCode<%#Eval("CustomFormId")%>" class="mouseStyle">Js调用</a> | <a href="CustomFormPreView.aspx?CustomFormId=<%#Eval("CustomFormId") %>">浏览</a> | <a href='CustomForm.aspx?CustomFormId=<%#Eval("CustomFormId") %>'>修改</a> | <a href='CustomFormFieldList.aspx?CustomFormId=<%#Eval("CustomFormId")%>'>字段列表</a> | <asp:LinkButton ID="lnkDelete" runat="server" Text="删除" CommandName="delete" CommandArgument='<%#Eval("CustomFormId") %>' OnClientClick="return confirm('是否确定删除该自定义表单？')"></asp:LinkButton></td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </form>
    <br />
</body>
</html>