<%@ Page Title="" Language="C#" MasterPageFile="~/BackStage/SiteMaster.Master" AutoEventWireup="true" CodeBehind="Frm_ImagesList.aspx.cs" Inherits="AndroidSevice.Web.BBCX.Frm_ImagesList" %>
<%@ 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: ['70%', '90%'],

             fix: false, //不固定
             maxmin: true,
             content: _url
         });
     }
     function sAlert(info) {
         var message = info;
         layer.alert(message, 8); //风格一，layer弹出层特效
     }
     function sAlertOut(info) {
         layer.alert(info, { closeBtn: 0
         }, function () {
             window.location.href = '../../default.aspx'; //刷新父页面
         });
     }
     $(document).ready(function () {
         if ('<%=_btntype %>' == 'imagetime') {
             $("#tdate").show();
             $("#enddate").show();
             $("#ddl").hide();
             $("#cusbtn").hide();
             $("#userbtn").hide();
         } else if ('<%=_btntype %>' == 'ptypetype') {
             $("#ddl").show();
             $("#userbtn").hide();
             $("#tdate").hide();
             $("#enddate").hide();
             $("#cusbtn").hide();
             
         } else if ('<%=_btntype %>' == 'emporename') {
             $("#ddl").show();
             $("#tdate").hide();
             $("#enddate").hide();
             $("#cusbtn").hide();
             $("#userbtn").show();
         } else if ('<%=_btntype %>' == 'btypename') {
             $("#ddl").show();
             $("#cusbtn").show();
             $("#tdate").hide();
             $("#enddate").hide();
             $("#userbtn").hide();
         }

     });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="content-header">
				<div class="btn-group">
				</div>
			</div>
	  <div id="breadcrumb">
				<a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>数据查询</a>
        <a href="#" class="current">照片汇总</a>
	  </div>
	<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 class="buttons">
                                <a href="Frm_ImagesList.aspx?btntype=imagetime"><button type="button" onclick="window.location.href = 'Frm_ImagesList.aspx?btntype=imagetime'" class="btn btn-mini" ><i class="icon-search"></i>时  间</button></a>
                                </div>
                                <div class="buttons">
                                <a href="Frm_ImagesList.aspx?btntype=ptypetype"><button type="button" onclick="window.location.href = 'Frm_ImagesList.aspx?btntype=ptypetype'"  class="btn btn-mini" ><i class="icon-search"></i>类  型</button></a>
                                </div>
                                <div class="buttons">
                                <a href="Frm_ImagesList.aspx?btntype=emporename"><button type="button" onclick="window.location.href = 'Frm_ImagesList.aspx?btntype=emporename'"  class="btn btn-mini" ><i class="icon-search"></i>业务员</button></a>
                                </div>
                                <div class="buttons">
                                <a href="Frm_ImagesList.aspx?btntype=btypename"><button type="button" onclick="window.location.href = 'Frm_ImagesList.aspx?btntype=btypename'"  class="btn btn-mini" ><i class="icon-search"></i>客户名称</button></a>
                                </div>
							</div>
							<div class="widget-content">
                            <table id="Table1" class="table table-bordered table-striped table-hover">
                                    <tbody>
                                    <tr>
                                        <td>
                                        <span>
                                         <select class="selectstyle inputwidth" name="ddl" id="ddl" >
                                            <%--<option  value=""></option>--%>
                                            <% if (dtddlist != null && dtddlist.Rows.Count != 0)
                                               {
                                                   for (int i = 0; i < dtddlist.Rows.Count; i++)
                                                   {
                                                  %>
                                                 <option <%=dtddlist.Rows[i]["TypeID_"].ToString()==ddl?"selected":"" %> value="<%=dtddlist.Rows[i]["TypeID_"].ToString()%>"><%=dtddlist.Rows[i]["FullName"].ToString()%></option>
                                            <% }
                                               } %>
                                            </select>
                                        <button type="button" name="cusbtn" id="cusbtn" onclick="ShowDataHelp('Frm_CustomerData.aspx?','','')" class="btn btn-mini" ><i class="icon-plus-sign"></i></button>
                                        <button type="button" name="userbtn" id="userbtn" onclick="ShowDataHelp('Frm_ZDRUserEdit.aspx?','','')" class="btn btn-mini" ><i class="icon-plus-sign"></i></button>
                                        <input type="text" name="tdate" id="tdate" class="inputwidth" onFocus="WdatePicker({dateFmt: 'yyyy-MM-dd', isShowToday: false, isShowClear: false})" value="<%=tdate %>"/>
                                        <input type="text" name="enddate" id="enddate" class="inputwidth" onFocus="WdatePicker({dateFmt: 'yyyy-MM-dd', isShowToday: false, isShowClear: false})" value="<%=enddate %>"/>
                                        </span>
                                        </td>
                                        <td> <span>
                                        <button type="submit" name="sub" value="sub" class="btn" ><i class="icon-search"></i>查询</button>
                                        </span></td>
									</tr>
                                    </tbody>
							</table>
                            <div class="gallery-masonry">
                             <% if(dtlist!=null&&dtlist.Rows.Count!=0)
                                       {
                                           for (int i = 0; i < dtlist.Rows.Count;i++)
                                           { 
                                        %>
                                    <div class="item">
										<a href="#" class="thumbnail" >
											<img onclick="ShowDataHelp('Frm_ImagesDeta.aspx?pagetype=<%=_btntype %>&orderid=<%=dtlist.Rows[i]["orderid"].ToString() %>','','')" src="../BootStrap/img/demo/imagetip.png" alt=""/>
										</a>
                                        <span style=" text-align:center;"><%=dtlist.Rows[i]["cusname"].ToString()%></span>
								    </div>
                                     <%   }
                                       } %>
                                </div>
                             <table id="wew" class="table table-bordered table-striped table-hover">
                                    <thead>
										<tr>
											<th></th>
										</tr>
									</thead>
							</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>
