<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="pic.aspx.cs" Inherits="JuSNS.Web.system.movie.pic" %>

<!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 id="ptitle" runat="server">电影海报管理</title>
<link href="../images/css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>
<script language="javascript" type="text/javascript" src="../../js/public.js"></script>

</head>
<body>
<table width="99%" border="0" align="center" cellpadding="5" cellspacing="1">
  <tr>
    <td width="120" align="center" valign="top">
        <div class="menu">
            <ul>
        	<%=this.GetSystemMenu(sort)%>
        	</ul>
      </div>
    </td>
    <td valign="top">
   <div class="navip">
    <span class="Blue"><a href="index.aspx">电影管理</a> <a href="add.aspx">添加电影</a> <a href="class.aspx">分类管理</a> <a href="javascript:void(0);" onclick="javascript:alert('还没开放');">电影采集</a></span> 
   </div> 
   <div id="DivErr" runat="server"></div>
   <form id="form1" runat="server">
   <div id="mainbody">
            <div class="sortlist">
                <ul id="SortList" runat="server"></ul>
            </div>
            <asp:Literal ID="Lit_MovieName" runat="server"></asp:Literal>
            <asp:DataList runat="server" ID="Rpt_MoviePicList" Width="100%" RepeatColumns="4">
                <HeaderTemplate>
                    <table width="100%" border="0" cellpadding="3" cellspacing="1" class="maintable">
                        <tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <td align="center">
                        <table width="100%" border="0" cellpadding="3" cellspacing="1" class="maintable">
                            <tr class="maintablelist">
                                <td>
                                    <div>
                                        <a href="../../<%# DataBinder.Eval(Container.DataItem, "FileName")%>" target="_blank"><img style="border:0;" src="../../<%# DataBinder.Eval(Container.DataItem, "FileName")%>" height="120" width="100" /></a>
                                    </div>
                                    <div>
                                        <a href="javascript:setpic(<%# DataBinder.Eval(Container.DataItem, "ID")%>);">设为封面</a>
                                        | <a href="javascript:del(<%# DataBinder.Eval(Container.DataItem, "ID")%>);">删除</a>
                                       |<%# GetLock(DataBinder.Eval(Container.DataItem, "isLock"), DataBinder.Eval(Container.DataItem, "id"))%> 
                                       <div style="text-align:center;">上传者：<span id="UserNames" runat="server"><a href="../../user?r=<%# DataBinder.Eval(Container.DataItem, "UserID")%>"><%#GetUserNames(DataBinder.Eval(Container.DataItem, "UserID"))%></a></span></div> 
                                        </div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </ItemTemplate>
                <FooterTemplate>
                    </tr> </table>
                </FooterTemplate>
            </asp:DataList>
            <div class="pagination" runat="server" id="DivPage" align="center"></div>
            <table width="100%" border="0" cellpadding="3" cellspacing="1">
                <tr class="maintablepage">
                    <td>
                        
                        <asp:HiddenField ID="HidMID" runat="server" />
                    </td>
                </tr>
            </table>
            <table style="width:90%;">
            <tr>
            <td>
                上传海报：<asp:FileUpload  ID="supfile" runat="Server" /> 
                <asp:Button ID="Button1" runat="server" Text="上传" OnClick="Button1_Click" />(支持JPG、GIF 、JPEG,BMP和 PNG 格式的照片，每张最大 5M。)&nbsp;
            </td>
            </tr>
            </table>
        </div>
    </form>
    </td>
  </tr>
</table>
</body>
</html>
<script language="javascript" type="text/javascript">
function del(id)
{
    if(confirm('你确认删除此电影海报吗?'))
        self.location='?action=del&movieid=<% Response.Write(Request.QueryString["movieid"]); %>&id='+id;
}
function setpic(id)
{
    self.location='?action=setpic&id='+id+'&movieid=<% Response.Write(Request.QueryString["movieid"]); %>';
}
function lock(id,t)
{
    self.location='?action=lock&id='+id+'&type='+t+'&movieid=<% Response.Write(Request.QueryString["movieid"]); %>';
}
</script>

