<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Show_Slide" %>

<!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>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <script type="text/javascript" src="Script/Jquery.js"></script>
    <script type="text/javascript" src="Script/Common.js"></script>
    <script type="text/javascript" src="Script/Show_Slide.js"></script>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrapper-div">    
	<!-- 幻灯列表管理 -->
        <!-- 标 -->
            <div class="title-tab">
            <div class="title"><span class="title-ico titico7 F B">幻灯片管理</span></div>
            <ul class="menu">
                <li><a class="<%=naviid=="all"?"active":"" %>" href="<%=getFormUrl %>?naviid=all"><span>全部</span></a></li>
                <li><a class="<%=naviid=="0"?"active":"" %>" href="<%=getFormUrl %>?naviid=0"><span>首页</span></a></li>
                <%foreach (System.Data.DataRow dat in _navibarDat.Rows)%>
                <%{ %>
                    <li><a class="<%=naviid==dat["id"].ToString()?"active":"" %>" href="<%=getFormUrl %>?naviid=<%=dat["id"].ToString() %>"><span><%=dat["name"].ToString() %></span></a></li>
                <%} %>
            </ul>
            </div>
        <!-- end 标 -->
        
        <div class="clear-8"></div>
            <a href="Show_Slide_Control.aspx?com=add" class="bule-btn m_right6 W f_left text_centent">添加幻灯</a>
            <p class="PageBox">
                <%=getPagesInfo%>
            </p>
        <div class="clear-8"></div>
        
        <!-- 通用table -->
        <table class="table-1">
        	<thead>
            	<tr>
                	<th width="34%" class="text_left">幻灯信息 <span class="X NoB">[幻灯总数:<%=_pageCount %>]</span></th>
                    <th width="50%" class="text_left">图片路径/链接url</th>
                    <%if (naviid != "all") %>
                    <%{ %>
                    <th width="8%">排序</th>
                    <%} %>
                    <th width="8%">操作</th>
                </tr>
            </thead>
            <tbody>
            <%if (_slideListDat.Rows.Count > 0) %>
            <%{ %>
                <%for (int i = 0; i < _slideListDat.Rows.Count; i++) %>
                <%{ %>
            	    <tr>
                	    <td class="text_left">
                        <%if (_slideListDat.Rows[i]["picpath"].ToString() != "") %>
                        <%{ %>
                    	    <img class="small-images" src="/UpLoad/Slide/<%=_slideListDat.Rows[i]["picpath"].ToString() %>">
                        <%} %>
                            <a class="B H" href="Show_Slide_Control.aspx?com=alter&sid=<%=_slideListDat.Rows[i]["id"].ToString() %>"><%=_slideListDat.Rows[i]["title"].ToString() %></a>
                            <br />
                            <span class="V"><%=_slideListDat.Rows[i]["intro"].ToString()%></span>
                        </td>
                        <td class="text_left">
                            <span class="X">/UpLoad/Slide/<%=_slideListDat.Rows[i]["picpath"].ToString()%></span><br />
                            <span class="F"><%=_slideListDat.Rows[i]["url"].ToString()%></span>
                        </td>
                        <%if (naviid != "all") %>
                        <%{ %>
                        <td>
                            <a href="upward" naviid="<%=naviid%>" name="<%=_slideListDat.Rows[i]["id"].ToString()%>"  rel="shift" rev="<%=_slideListDat.Rows[i]["orderid"].ToString()%>" class="F">[上移]</a>
                            <br />
                            <a href="downward" naviid="<%=naviid%>" name="<%=_slideListDat.Rows[i]["id"].ToString()%>" rel="shift" rev="<%=_slideListDat.Rows[i]["orderid"].ToString()%>" class="F">[下移]</a>
                        </td>
                        <%} %>

                        <td>
                    	    <a href="Show_Slide_Control.aspx?com=alter&sid=<%=_slideListDat.Rows[i]["id"].ToString() %>" class="Q underline">[编辑]</a>
                            <br />
                            <a href="<%=_slideListDat.Rows[i]["id"].ToString()%>" rev="<%=_slideListDat.Rows[i]["picpath"].ToString()%>" title="<%=_slideListDat.Rows[i]["title"].ToString()%>" class="R underline" rel="del">[删除]</a>
                        </td>
                    </tr>
                <%} %>  
            <%} %>
            <%else %>
            <%{ %>
            <tr>
                <td  colspan="3" class="text_left"><span class="V">暂无数据</span> <a class="Q B underline" href="Show_Slide_Control.aspx?com=add">[马上添加]</a></td>
            </tr>
            <%} %>   
            </tbody>
        </table>
        <!-- end 通用table -->
        <div class="clear-8"></div>
        <a href="Show_Slide_Control.aspx?com=add" class="bule-btn W f_left text_centent">添加幻灯</a>
        <p class="PageBox">
            <%=getPagesInfo%>
        </p>
        <div class="clear-8"></div>

    <!-- end 幻灯列表管理 -->
</div>

</body>
</html>
