<%@ page language="C#" masterpagefile="~/SiteServer/MasterPage/PageTemplate.Master" autoeventwireup="true" inherits="SiteServer_Extension_Create_Othor_list, v5star.Web" enableviewstate="false" theme="Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="Server">
    <aspx:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server" HeadTitleTxt="生成管理-单页生成">
    </aspx:HeadMenuWebControls>
    <aspx:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
        <aspx:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="现有单页">       
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound"
                Width="100%">
                <Columns>
                    <asp:BoundField HeaderText="编号" />
                    <asp:BoundField DataField="PageName" HeaderText="单页名称" />
                    <asp:BoundField DataField="pagefile" HeaderText="文件名" />
                    <asp:BoundField DataField="pagetemplate" HeaderText="模板" />
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <a href="javascript:void(0)" onclick="vs_ajax('<%# Eval("pagefile") %>','<%# Eval("pagetemplate") %>','c')">
                                静态生成</a>&nbsp;&nbsp;<a href="javascript:void(1)" onclick="vs_ajax('<%# Eval("pagefile")%>','kao','d')">
                                    删除</a>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            
            <aspx:CutePager ID="CutePager1" runat="server" OnPageChanged="CutePager1_PageChanged" ShowCustomInfoSection="Left">
            </aspx:CutePager>           
            </aspx:TabOptionItem>
    </aspx:TabOptionWebControls>

    <script type="text/javascript">
    function vs_ajax(file,temp,type){
    $.ajax({
        async: false,
        cache: false,
         type: "GET",
          url: "ajax.aspx",
         data: "file="+file+"&type="+type+"&temp="+temp,
      success: function(msg) {alert("操作结果："+msg);}
    });
    }
    </script>

</asp:Content>
