<%@ Page Title="" Language="C#" MasterPageFile="~/BackStage/SiteMaster.Master" AutoEventWireup="true" CodeBehind="Frm_ListTime.aspx.cs" Inherits="AndroidSevice.Web.WLTGL.Frm_ListTime" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
    function ShowDataHelp(_url, _title, _handler) {
        layer.open({
            type: 2,
            area: ['700px', '500px'],
            fix: false, //不固定
            maxmin: true,
            content: _url,
            end: function () {
                location.reload();
            }
        });
    }

    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'; //刷新父页面
        });
    }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="content-header">
    <!--可做顶部导航-->
			</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>
							<div class="widget-content ">
                            <div class="container-fluid">
                              <button type="submit" name="sub" value="sub" class="btn"  style=" color:White; background:#00B7EE"  ><i class="icon-hdd"></i>保存</button>
                             <div class="row-fluid">
                         <div class="span6">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-arrow-right"></i>
								</span>
								<h5>签到人员信息</h5>
                                <div class="buttons">
									<button type="button" onclick=ShowDataHelp('Frm_ListTimeEdit.aspx?addsub=listuseradd','','') class="btn btn-mini" ><i class="icon-plus-sign"></i>添加签到人员</button>
								</div>
							</div>
							<div class="widget-content nopadding">
								<table class="table table-bordered table-striped table-hover">
									<thead>
										<tr>
											<th>编号</th>
											<th>姓名</th>
                                        <th>删除</th>
										</tr>
									</thead>
									<tbody>
                                     <%
                                         if(dtlist!=null||dtlist.Rows.Count!=0)
                                         {
                                             for (int i = 0; i < dtlist.Rows.Count;i++)
                                             {
                                          %>
										<tr>
											<td><a href="#"><%=dtlist.Rows[i]["Loginid"].ToString() %></a></td>
											<td><a href="#"><%=dtlist.Rows[i]["LoginName"].ToString() %></a></td>
                                            <td><a><button type="button"  onclick="javaScript:if(confirm('您确定要删除吗？')) window.location.href='Frm_ListTime.aspx?del=del&loginid=<%=dtlist.Rows[i]["Loginid"].ToString() %>&num=<%=dtlist.Rows[i]["num"].ToString() %>'" class="btn"><i class="icon-trash"></i>删除</button></a></td>
										</tr>
                                        <%     
                                             }
                                         }
                                         %>
									</tbody>
								</table>
							</div>
						</div>
                       
                        </div>
                        <div class="span6">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-arrow-right"></i>
								</span>
								<h5>签到设置</h5>
							</div>
							<div class="widget-content nopadding">
                            <table class="table table-bordered table-striped table-hover">
									<tbody>
										<tr>
											<td>
                                            <label>签到时间：</label>
                                            </td>
											<td>
                                            <input type="text" onFocus="WdatePicker({isShowClear:false,readOnly:true,dateFmt:'HH:mm'})" style=" width:90%;" name="strdatename" id="strdatename" value="<%=_strdatename %>"/>
                                            <input type="text" onFocus="WdatePicker({isShowClear:false,readOnly:true,dateFmt:'HH:mm'})" style=" width:90%;" name="enddatename" id="enddatename" value="<%=_enddatename %>"/>
                                            </td>
                                           
										</tr>
                                        <tr>
                                        <td>签到周期：</td>
                                        <td>
                                        <div class="controls">
                                        <input type="checkbox" <% if(_cbradios.Contains("周一")){%> checked<%} %> value="周一" name="cbradios" />周一
										<input type="checkbox" <% if(_cbradios.Contains("周二")){%> checked<%} %> value="周二" name="cbradios" />周二
										<input type="checkbox" <% if(_cbradios.Contains("周三")){%> checked<%} %> value="周三" name="cbradios" />周三
                                        <input type="checkbox" <% if(_cbradios.Contains("周四")){%> checked<%} %> value="周四" name="cbradios" />周四
										<input type="checkbox" <% if(_cbradios.Contains("周五")){%> checked<%} %> value="周五" name="cbradios" />周五
										<input type="checkbox" <% if(_cbradios.Contains("周六")){%> checked<%} %> value="周六" name="cbradios" />周六
                                        <input type="checkbox" <% if(_cbradios.Contains("周日")){%> checked<%} %> value="周日" name="cbradios" />周日
                                        </div>
                                        </td>
                                        </tr>
                                        <tr>
                                        <td>签到间隔：</td>
                                        <td>
                                            <div class="controls">
                                            <input type="radio" value="5" <%=_radios=="5"?"checked":"" %> name="radios" />5
											<input type="radio" value="10" <%=_radios=="10"?"checked":"" %> name="radios" />10
											<input type="radio" value="20" <%=_radios=="20"?"checked":"" %> name="radios" />20
                                            <input type="radio" value="30" <%=_radios=="30"?"checked":"" %> name="radios" />30
                                            <input type="radio" value="60" <%=_radios=="60"?"checked":"" %> name="radios" />60
                                            <input type="radio" value="" <%=_radios==""?"checked":"" %> name="radios" />不签到
                                            </div>
                                            </td>
                                        </tr>
									</tbody>
								</table>
                            </div>
						</div>
                        </div>
                             </div>
                            </div>
                            </div>
							</div>
					</div>
				</div>
</asp:Content>
