<%@ Page Title="图片上传" Language="C#" MasterPageFile="~/BackStage/HelperMaster.Master" AutoEventWireup="true" CodeBehind="Frm_PtypeListImages.aspx.cs" Inherits="AndroidSevice.Web.WLTGL.Frm_PtypeListImages" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        function ShowDataHelp(_url, _title, _handler) {
            layer.open({
                type: 2,
                area: ['400px', '400px'],
                fix: false, //不固定
                maxmin: true,
                content: _url
            });
        }
        function sAlert(info) {
            var message = info;
            layer.alert(message, { closeBtn: 0
            }, function () {
                parent.location.reload(); //刷新父页面
            });
        }
       $().ready(function () {
       });
       function sAlertOut(info) {
           layer.alert(info, { closeBtn: 0
           }, function () {
               window.location.href = '../../default.aspx'; //刷新父页面
           });
       }
    </script>
    <script type="text/javascript" src="../Scripts/jquery-2.1.4.min.js"></script>
    <style type="text/css">
        .style1
        {
            height: 116px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-th-list"></i>
								</span>
								<h5>图片上传</h5>
							</div>
							<div class="widget-content">
                            <div class="btns">
                                            <div id="picker">选择上传文件</div>
                            </div>
                            <table id="wew" class="table table-bordered table-striped table-hover">
                                    <tbody>
                                    <tr>
                                     <td align="center" colspan="2" class="style1">
                                 <% if (dtlist != null && dtlist.Rows.Count != 0)
                                               {
                                                   for (int i = 0; i < dtlist.Rows.Count;i++)
                                                   {
                                                       %>
                                            <div style="text-align:center; float:left; margin-left:5px;"><img alt="" style=" width:100px; height:100px;"  src="../ReadImages.ashx?typeid=<%=dtlist.Rows[i]["ptypeid_"].ToString()%>&nubconunt=<%=i+1 %>&DbName=<%=Session["DbName"].ToString() %>&pagetype=ptypeimages" onclick="ShowDataHelp('../BBCX/Frm_ImageView.aspx?srcurl=../ReadImages.ashx?typeid=<%=dtlist.Rows[i]["ptypeid_"].ToString()%>*nubconunt=<%=i+1 %>*DbName=<%=Session["DbName"].ToString() %>*pagetype=ptypeimages','','')" /></div>
                                           <%}
                                             } %>
                                 </td>
                                    </tr>
                                    <tr>
                                            <td>
                                            <!--用来存放文件信息-->
                                            <div id="thelist"  style=" width:150px;" class="uploader-list">
                                            </div>
                                            </td>
                                            <td> 
                                            <button id="ctlBtn" name="ctlBtn" class="btn btn-default">开始上传</button>
                                            </td>
									</tr>
                                    </tbody>
							</table>
							</div>
						</div>
					</div>
				</div>
			</div>
</asp:Content>