<?xml version="1.0" encoding="UTF-8"?>
|
<!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"
|
xmlns:c="http://java.sun.com/jsp/jstl/core"
|
xmlns:h="http://java.sun.com/jsf/html"
|
xmlns:f="http://java.sun.com/jsf/core"
|
xmlns:ui="http://java.sun.com/jsf/facelets">
|
<ui:composition template="/template/nit/tmp_brief.xhtml">
|
<ui:define name="acss">
|
<style>
|
#searchBtn {
|
height: 34px;
|
}
|
p.error {
|
color: #D9534F
|
}
|
input.error {
|
border: 1px solid #D9534F;
|
}
|
#simple-table th,#simple-table td{
|
text-align: center;
|
padding: 2px 8px;
|
}
|
.bigger-95{
|
font-size: 95% !important;
|
}
|
.btn-xs, .btn-group-xs > .btn{
|
padding-top: 0px;
|
padding-bottom: 0px;
|
}
|
.twitter-typeahead {
|
width: 100%
|
}
|
#form .control-label {
|
margin-right: -14px
|
}
|
.t-error{
|
color: red;
|
position: relative;
|
right: 2px;
|
top: 3px;
|
}
|
</style>
|
</ui:define>
|
<ui:define name="acontent">
|
<div class="row">
|
<div class="col-xs-2">
|
<select name="" id="" class="form-control" data-bind="value: type, options: tList, optionsText: 'key', optionsValue: 'value'"></select>
|
</div>
|
<div class="col-xs-5" style="margin-left: -31px">
|
<div class="input-group">
|
<input class="form-control input-mask-date" type="text" id="keyword" placeholder="输入关键字搜索" data-bind="value: keyword, valueUpdate: 'afterkeydown'" />
|
<span class="input-group-btn">
|
<button class="btn btn-sm btn-default" type="button" id="searchBtn">
|
<i class="ace-icon fa fa-search bigger-110"></i>
|
搜索
|
</button>
|
</span>
|
</div>
|
</div>
|
<div class="col-xs-5" style="text-align: right;">
|
<button class="btn btn-xs btn-info" id="addBtn">
|
<i class="ace-icon fa fa-plus bigger-120">门岗用卡</i>
|
</button>
|
</div>
|
<div class="col-xs-12 table-responsive" style="margin-top: 8px">
|
<table id="simple-table" class="table table-bordered table-hover">
|
<thead>
|
<tr>
|
<th class="detail-col" style="min-width: 48px">序号</th>
|
<th style="min-width: 100px">卡号</th>
|
<th style="min-width: 100px">卡类型</th>
|
<th style="min-width: 60px">姓名</th>
|
<th style="min-width: 60px">卡状态</th>
|
<th style="min-width: 130px">发放时间</th>
|
<th style="min-width: 75px">证件类型</th>
|
<th style="min-width: 150px">证件号</th>
|
<th style="min-width: 100px">联系方式</th>
|
<th style="min-width: 250px">有效期</th>
|
<th style="min-width: 180px">操作</th>
|
</tr>
|
</thead>
|
|
<tbody data-bind="foreach: list">
|
<tr>
|
<td class="center">
|
<span data-bind="text: $index() + 1"></span>
|
</td>
|
|
<td data-bind="text: cardno"></td>
|
<td data-bind="text: type"></td>
|
<td data-bind="text: name"></td>
|
<td data-bind="text: lost()?'挂失':'启用'"></td>
|
<td data-bind="text: stime"></td>
|
<td data-bind="text: ptype"></td>
|
<td data-bind="text: paperNo"></td>
|
<td data-bind="text: phone"></td>
|
<td data-bind="text: sdate + '--' + edate"></td>
|
|
<td>
|
<div class="btn-group">
|
<button class="btn btn-xs btn-warning" title="挂失" data-bind="click: $parent.lossRegister">
|
<!--<i class="ace-icon fa fa-chain-broken bigger-95"></i>-->
|
挂失
|
</button>
|
<button class="btn btn-xs btn-info" title="换卡" data-bind="click: $parent.changeCard">
|
<!--<i class="ace-icon fa fa-exchange bigger-95"></i>-->
|
换卡
|
</button>
|
<button class="btn btn-xs btn-info" title="回收" data-bind="click: $parent.recycle">
|
<!--<i class="ace-icon fa fa-recycle bigger-95"></i>-->
|
回收
|
</button>
|
<button class="btn btn-xs btn-info" title="启用" data-bind="click: $parent.useCard">
|
<!--<i class="ace-icon fa fa-play-circle bigger-95"></i>-->
|
启用
|
</button>
|
</div>
|
</td>
|
</tr>
|
</tbody>
|
</table>
|
<div id="pagdiv"></div>
|
</div>
|
</div>
|
<div class="modal fade" id="modal">
|
<div class="modal-dialog">
|
<div class="modal-content">
|
<div class="modal-header">
|
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
<h4 class="modal-title">为卡号【<span data-bind="text: oldCardno"></span>】换卡</h4>
|
</div>
|
<div class="modal-body">
|
<form class="form-horizontal" id="form">
|
<div class="form-body">
|
<div class="form-group">
|
<label class="col-md-3 control-label">新卡号</label>
|
<div class="col-md-6">
|
<input type="text" class="form-control" name="name" placeholder="" data-bind="value: newCardno"/>
|
</div>
|
<div class="col-md-3">
|
<p class="form-control-static text-error"></p>
|
</div>
|
</div>
|
</div>
|
</form>
|
</div>
|
<div class="modal-footer">
|
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
|
<button type="button" class="btn btn-primary" id="save">保存</button>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="modal fade" id="goveCardModal">
|
<div class="modal-dialog">
|
<div class="modal-content">
|
<div class="modal-header">
|
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
<h4 class="modal-title">门岗发卡</h4>
|
</div>
|
<div class="modal-body">
|
<form class="form-horizontal" id="form">
|
<div class="form-body">
|
<div class="form-group">
|
<label class="col-md-3 control-label"><span class="t-error">*</span>持卡人</label>
|
<div class="col-md-6">
|
<input type="text" id="cname" class="form-control" placeholder="" />
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-md-3 control-label">性别</label>
|
<div class="col-md-6">
|
<span class="form-control" data-bind="text: o().sex"></span>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-md-3 control-label">工号</label>
|
<div class="col-md-6">
|
<span class="form-control" data-bind="text: o().gonghao"></span>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-md-3 control-label">部门</label>
|
<div class="col-md-6">
|
<span class="form-control" data-bind="text: o().dname"></span>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-md-3 control-label"><span class="t-error">*</span>起始日期</label>
|
<div class="col-md-6">
|
<input type="text" class="form-control" id="sdate" name="sdate" placeholder="" data-bind="value: o().sdate" onclick="WdatePicker()"/>
|
</div>
|
<div class="col-md-3">
|
<p class="form-control-static text-error"></p>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-md-3 control-label"><span class="t-error">*</span>截止日期</label>
|
<div class="col-md-6">
|
<input type="text" class="form-control" id="edate" name="edate" placeholder="" data-bind="value: o().edate" onclick="WdatePicker()"/>
|
</div>
|
<div class="col-md-3">
|
<p class="form-control-static text-error"></p>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-md-3 control-label">联系电话</label>
|
<div class="col-md-6">
|
<span class="form-control" data-bind="text: o().phone"></span>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-md-3 control-label"><span class="t-error">*</span>卡号</label>
|
<div class="col-md-6">
|
<input type="text" class="form-control" name="name" placeholder="" data-bind="value: giveCardno"/>
|
</div>
|
<div class="col-md-3">
|
<p class="form-control-static text-error"></p>
|
</div>
|
</div>
|
</div>
|
</form>
|
</div>
|
<div class="modal-footer">
|
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
|
<button type="button" class="btn btn-primary" id="giveCardBtn">保存</button>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div id="dialog-confirm" class="hide">
|
<div class="alert alert-info bigger-110" id="modalContent">
|
</div>
|
</div>
|
</ui:define>
|
<ui:define name="myscript">
|
<script type="text/javascript" src="#{request.contextPath}/template/nit/cdn/js/getdate/WdatePicker.js"></script>
|
<script src="#{request.contextPath}/visitor/js/typeahead.bundle.js"></script>
|
<script src="js/doorkeeper.js"></script>
|
</ui:define>
|
</ui:composition>
|
</html>
|