<%@ Page Title="" Language="C#" MasterPageFile="~/BackStage/HelperMaster.Master" AutoEventWireup="true" CodeBehind="Frm_ImagesDeta.aspx.cs" Inherits="AndroidSevice.Web.BBCX.Frm_ImagesDeta" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
    function ShowDataHelp(_url, _title, _handler) {
        layer.open({
            type: 2,
            area: ['40%', '90%'],
            fix: false, //不固定
            maxmin: true,
            content: _url
        });
    }
    function sAlert(info) {
        var message = info;
        layer.alert(message, 8); //风格一，layer弹出层特效
    }
    function SelectAll() {
        var checkboxs = document.getElementsByName("pricecheck");
        for (var i = 0; i < checkboxs.length; i++) {
            var e = checkboxs[i];
            e.checked = !e.checked;
        }
    }
    function sAlertOut(info) {
        layer.alert(info, { closeBtn: 0
        }, function () {
            window.location.href = '../default.aspx'; //刷新父页面
        });
    }
    </script>
</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">
                          <table id="Table1" class="table table-bordered table-striped table-hover">
                                    <tbody>
                                    <tr>
										<td>
										<div class="controls">
											<input type="radio" value="month" name="chootype" <%=_chootype=="month"?"checked":"" %>  id="month" />按月
                                            <input type="radio" value="today" name="chootype" <%=_chootype=="today"?"checked":"" %>  id="today" />按天
                                            <button type="submit" name="sub" value="sub" class="btn" >查询</button>
										</div>
                                        </td>
									</tr>
                                    </tbody>
							</table>
					       <table id="wew" class="table table-bordered table-striped table-hover">
                                    <tbody>
                                    <%
                                        if (dtlist != null && dtlist.Count != 0)
                                        {
                                            for (int i = 0; i < dtlist.Count; i++)
                                            {
                                    %>
                                    <tr>
                                            <td><%=dtlist[i].viewName%></td>
									</tr>
                                    <tr>
                                    <td>
                                    <%
                                                int ds = dtlist[i].Lupimage.Count;
                                                if (ds != 0)
                                                {
                                                    for (int j = 0; j < ds; j++)
                                                    {%>
                                                      <img style=" margin-left:5px;margin-top:1px; width:100px; height:100px;" alt="无法读取图片" 
                                                        src="../<%=dtlist[i].Lupimage[j].ImgIn.ToString() %>" 
                                                          onclick="ShowDataHelp('Frm_ImageView.aspx?page=imagelist&srcurl=<%=dtlist[i].Lupimage[j].ImgIn.ToString() %>&tname=<%=dtlist[i].Lupimage[j].typename.ToString()%>&lname=<%=dtlist[i].Lupimage[j].loginname.ToString() %>&time=<%=dtlist[i].Lupimage[j].times.ToString() %>&address=<%=dtlist[i].Lupimage[j].address.ToString()%>&pagetype=<%=_pagetype %>&orderid=<%=_orderid %>&datetype=<%=_chootype %>','','')" />
                                                    <%
                                                    }
                                                }
                                            }
                                        }
                                    %>
                                    </td>
                                    </tr>
                                    </tbody>
							</table>
                          <div class="pager">
                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页" PrevPageText="上一页" NextPageText="下一页" 
                            onpagechanging="AspNetPager1_PageChanging"
                            PageSize="20" AlwaysShow="True" />
                            </div>
                          </div>
						</div>
					</div>
				</div>
			</div>
</asp:Content>