<%@ page language="C#" autoeventwireup="true" inherits="manage_Flex_FlexItemManage, App_Web_rk4a05z0" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>


<!DOCTYPE HTML>

<html>
<head id="Head1" runat="server">
    <title>Flex管理系统</title>

    <link href="../../App_Themes/AdminDefaultTheme/Guide.css" type="text/css" rel="stylesheet" />
    <link href="../../App_Themes/AdminDefaultTheme/index.css" type="text/css" rel="stylesheet" />
    <link href="../../App_Themes/AdminDefaultTheme/main.css" type="text/css" rel="stylesheet" />
<style type="text/css">
    .style3
    {
        color: #1e860b;
        font-weight: bold;
        line-height: 10px;
        width: 9%;
        padding: 2px;
        background: #dbf9d9 url('../../App_Themes/AdminDefaultTheme/Images/title.gif') repeat-x 50% top;
    }
    .style5
    {
        color: #1e860b;
        font-weight: bold;
        line-height: 10px;
        width: 9%;
        padding: 2px;
        background: #dbf9d9 url('../../App_Themes/AdminDefaultTheme/Images/title.gif') repeat-x 50% top;
    }
    .style7
    {
        color: #1e860b;
        font-weight: bold;
        line-height: 22px;
        width: 9%;
        padding: 2px;
        background: #dbf9d9 url('../../App_Themes/AdminDefaultTheme/Images/title.gif') repeat-x 50% top;
    }
    .style10
    {
        color: #1e860b;
        font-weight: bold;
        line-height: 22px;
        width: 9%;
        padding: 2px;
        background: #dbf9d9 url('../../App_Themes/AdminDefaultTheme/Images/title.gif') repeat-x 50% top;
    }
    .style14
    {
        width: 327px;
    }
</style>
<script type="text/javascript">
var tID = 0;
var arrTabTitle = new Array("TabTitle0", "TabTitle1", "TabTitle2", "TabTitle3", "TabTitle4");
var arrTabs = new Array("Div0", "Div1", "Div2", "Div3", "Div4");

function ShowTabs(ID) {
    //location.href = 'ContentManage.aspx?NodeID=&id=' + ID + '&type=' + ID;
}

function pload() {
    var ID = '';
    if (ID != tID) {
        document.getElementById(arrTabTitle[tID].toString()).className = "tabtitle";
        document.getElementById(arrTabTitle[ID].toString()).className = "titlemouseover";
        tID = ID;
    }
    
}

function chechs() {

} 

function CheckAll(spanChk)//CheckBox全选
{
    var oItem = spanChk.children;
    var theBox = (spanChk.type == "checkbox") ? spanChk : spanChk.children.item[0];
    xState = theBox.checked;
    elm = theBox.form.elements;
    for (i = 0; i < elm.length; i++)
        if (elm[i].type == "checkbox" && elm[i].id != theBox.id) {
        if (elm[i].checked != xState)
            elm[i].click();
    }
}
function getinfo(id) {
    location.href = "AddItempage.aspx?menu=edit&editid="+id+"";
}
</script>


</head>
<body onload="pload()">

    <form id="form1" runat="server">
    <div style="text-align:center">
    <div class="r_navigation">
        
        <span>后台管理</span> &gt;&gt; <span>内容管理</span> &gt;&gt; <span>Flex管理</span> &gt;&gt; <span>礼品页面管理</span>  <a href="Addproduct.aspx">[添加页面]</a>
    </div>
    </div>
 <div class="clearbox"></div>  
    <table width="100%" border="0" cellpadding="2" cellspacing="1" class="border" style="margin: 0 auto;">
      <tr align="center">
        <td width="2%" class="title"><asp:CheckBox ID="Checkall" onclick="javascript:CheckAll(this);" runat="server" /></td>
        <td width="2%" class="title">ID</td>    
        <td class="style7">页面页码</td>
        <td class="style7">所属产品</td>       
        <td class="style10">所属分类</td>
        <td width="6%" class="title">操作</td>
      </tr>
        <asp:Repeater ID="Repeater1" runat="server" >       
        <ItemTemplate>
      <tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'" id='<%#Eval("U_PageID") %>' ondblclick="getinfo(this.id)">
        <td height="22" align="center"><input name="Item" type="checkbox" value='<%#Eval("U_PageID") %>'/></td>
        <td height="22" align="center"><%#Eval("U_PageID")%></td>      
        <td height="22" align="center"><%#Eval("U_Pagenum")%></td>
        <td height="22" align="center"><%#GetPClass(Eval("U_PClass"))%></td>
        <td height="22" align="center"><%#GetClass(Eval("U_Class"))%></td>
        <td height="22" align="center"><a href="AddItempage.aspx?menu=edit&editid=<%#Eval("U_PageID") %>" >修改</a>
       &nbsp;&nbsp;<a href="?menu=del&id=<%#Eval("U_PageID") %>" onclick="return confirm('不可恢复性删除数据,你确定将该数据删除吗？');">删除</a></td>
      </tr>
        </ItemTemplate>
        </asp:Repeater>
        <tr class="tdbg">
        <td height="22" colspan="6" align="center" class="tdbg">共
        <asp:Label ID="Allnum" runat="server" Text=""></asp:Label>
        个信息
        <asp:Label ID="Toppage" runat="server" Text="" />
        <asp:Label ID="Nextpage" runat="server" Text="" />
        <asp:Label ID="Downpage" runat="server" Text="" />
        <asp:Label ID="Endpage" runat="server" Text="" />
        页次：<asp:Label ID="Nowpage" runat="server" Text="" />/<asp:Label ID="PageSize" runat="server"
            Text="" />页
        <asp:Label ID="pagess" runat="server" Text="" />条信息/页 转到第<asp:DropDownList ID="DropDownList1"
            runat="server" AutoPostBack="True">
        </asp:DropDownList>
        页        
      </td >       
      </tr>
    </table>

    <div>
        <asp:Button ID="Button3" class="C_input"  style="width:110px;"  runat="server"  OnClientClick="return confirm('不可恢复性删除数据,你确定将该数据删除吗？');"
                        Text="批量删除" onclick="Button3_Click"  /></div>
    </form>
</body>
</html>
