初始版本
This commit is contained in:
131
application/views/settings/Contract.php
Executable file
131
application/views/settings/Contract.php
Executable file
@@ -0,0 +1,131 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.container{position:relative;}
|
||||
#progress{position: absolute;top:0;left:0;width:100%}
|
||||
.uploading #progress{z-index:1001;}
|
||||
.content{padding: 10px;width: 730px;
|
||||
margin: 0 auto;}
|
||||
.content li{float: left;width: 20%;}
|
||||
.content li img{padding:2px;width: 97%;cursor: pointer;}
|
||||
.content .hover img{border:2px solid rgb(0, 235, 255);padding:0;}
|
||||
.bar {height:30px;background:#5EC29A;}
|
||||
.img-warp{
|
||||
height:444px;
|
||||
overflow-y:auto;
|
||||
}
|
||||
.fileinput-button{
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
background: #BBB;
|
||||
color: #ffffff;
|
||||
display: inline-block;
|
||||
padding: 4px 0;
|
||||
margin-bottom: 0;
|
||||
font-size: 14px;
|
||||
height: 22px;
|
||||
line-height: 22px;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
||||
width:100%;
|
||||
}
|
||||
.fileinput-button i{display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin: 4px;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
line-height: 14px;
|
||||
z-index: 999;
|
||||
position: relative;
|
||||
}
|
||||
.fileinput-button p{
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width:100%;
|
||||
z-index: 999;
|
||||
font-size: 16px;
|
||||
line-height:30px;
|
||||
}
|
||||
.fileinput-button.uploading p{z-index: 1002;}
|
||||
.fileinput-button input{cursor: pointer;
|
||||
direction: ltr;
|
||||
font-size: 1000px;
|
||||
margin: 0;
|
||||
opacity: 0;
|
||||
filter: alpha(opacity=0);
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
width: auto;
|
||||
vertical-align: middle;
|
||||
z-index: 1000;
|
||||
}
|
||||
.imgDiv{
|
||||
position: relative;
|
||||
}
|
||||
.imgDiv .imgControl{
|
||||
display:none;
|
||||
width: 100%;
|
||||
}
|
||||
.imgDiv.hover .imgControl{
|
||||
display:block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
}
|
||||
.imgDiv.hover .imgControl .del{background: rgb(0, 235, 255);
|
||||
font-size: 14px;
|
||||
padding: 0 6px;
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
color: #fff;
|
||||
right: 2px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.icon-plus{
|
||||
background: url(<?php echo base_url()?>statics/css/img/ui-icons.png) -210px -17px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
||||
<div class="img-warp">
|
||||
<ul class="content">
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="btn btn-success fileinput-button bar" id="fileinput-button">
|
||||
<div id="progress">
|
||||
<div class="bar" style="width: 100%;"></div>
|
||||
</div>
|
||||
<p><i class="icon-plus"></i><span>添加图片</span></p>
|
||||
<input id="upfile" type="file" name="files[]" multiple>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/common/plugins/fileupload/js/vendor/jquery.ui.widget.js?ver=20150320"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/plugins/fileupload/js/jquery.iframe-transport.js?ver=20150320"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/plugins/fileupload/js/jquery.fileupload.js?ver=20150320"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/Contract.js?5"></script>
|
||||
</body>
|
||||
</html>
|
||||
69
application/views/settings/addedServiceList.php
Executable file
69
application/views/settings/addedServiceList.php
Executable file
@@ -0,0 +1,69 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body { font:12px/1.5 \5b8b\4f53; color: #555;}
|
||||
|
||||
.mod_crumb{margin:18px 0;color:#555;font-size:12px;}
|
||||
.mod_crumb .cur{font-size:16px;font-weight:bold;position:relative;top:2px;}
|
||||
.mod_crumb span{margin:0 3px;vertical-align:base-line;color:#555;}
|
||||
|
||||
/* 普通按钮 */
|
||||
.added_service{background: #fff;border: 1px solid #d2d2d2;border-collapse:collapse;border-spacing:0;width
|
||||
: 100%;}
|
||||
.added_service td{border-bottom: 1px dashed #d2d2d2;padding: 15px 10px;}
|
||||
.added_service h3{font-size: 14px;margin-bottom: 5px;font-weight: bold;}
|
||||
.added_service .details{margin-left:10px;color: #4e8cbc;}
|
||||
.added_service .details:hover{text-decoration: underline;}
|
||||
.added_service .img{width: 100px;text-align: center;}
|
||||
.added_service .img i{display:inline-block;width:64px;height:64px;background: url("<?php echo base_url()?>statics/css/img/value-added-icon.png") no-repeat;}
|
||||
.added_service .price{font-size: 14px;font-weight: bold;width: 160px;text-align: right;}
|
||||
.added_service .price strong{font-size: 24px;color: #e67411;font-weight: bold;}
|
||||
.added_service .buy{width: 100px;}
|
||||
.w80 {width:80px;}
|
||||
.wrapper{padding:0 18px;max-width:1240px;}
|
||||
.dialog_wrapper{margin:0 auto;width:700px;}
|
||||
</style>
|
||||
<script src="<?php echo skin_url()?>/js/common/addedServiceData.js?ver=20150430"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper" id="wrapper">
|
||||
<div class="mod_crumb" id="serviceCrumb">
|
||||
<span class="cur">增值服务</span><span>付费客户可在此选择增值功能</span>
|
||||
</div>
|
||||
<div class="mod_inner">
|
||||
<table class="added_service" id="addedService">
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/addedServiceList.js?ver=20150430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
92
application/views/settings/addressmanage.php
Executable file
92
application/views/settings/addressmanage.php
Executable file
@@ -0,0 +1,92 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body{background: #fff;}
|
||||
.manage-wrap{top :0;left :0; margin: 20px auto 10px;width: 600px;}
|
||||
.manage-wrap .ui-input{width: 185px;font-size:12px;}
|
||||
.row-item{float:left ; width:50%;}
|
||||
#balance{text-align:right;}
|
||||
.mod-form-rows .label-wrap {font-size: 12px;}
|
||||
.p1 {width:100%;}
|
||||
#address{width:485px;}
|
||||
.mod-form-rows .ctn-wrap{position:relative ;height:32px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="manage-wrap" class="manage-wrap">
|
||||
<form id="manage-form" action="#">
|
||||
<ul class="mod-form-rows cf">
|
||||
<!-- <li class="row-item">
|
||||
<div class="label-wrap"><label for="phone">联系电话:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input phone-group" name="phone" id="phone"
|
||||
></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="mobile">手机号码:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input phone-group" name="mobile" id="mobile"
|
||||
></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="postalcode">邮政编码:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="postalcode" id="postalcode"
|
||||
></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="linkman">联系人:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="linkman" id="linkman"><
|
||||
/div>
|
||||
</li>
|
||||
<li class="row-item row-category">
|
||||
<div class="label-wrap"><label for="isDefault">默认地址:</label></div>
|
||||
<div class="ctn-wrap"><span id="isDefault"></span></div>
|
||||
</li> -->
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="province">省:</label></div>
|
||||
<div class="ctn-wrap"><span id="province"></span></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="city">市:</label></div>
|
||||
<div class="ctn-wrap"><span id="city"></span></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="area">区:</label></div>
|
||||
<div class="ctn-wrap"><span id="area"></span></div>
|
||||
</li>
|
||||
<li class="row-item p1">
|
||||
<div class="label-wrap"><label for="address">详细地址:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="address" id="address"></div>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/addressManage.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
56
application/views/settings/assistingProp-batch.php
Executable file
56
application/views/settings/assistingProp-batch.php
Executable file
@@ -0,0 +1,56 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#matchCon { width: 220px; }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container" style="margin:20px;">
|
||||
<div class="mod-search m0 cf">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph" value="输入规格、属性名称查询">
|
||||
</li>
|
||||
<li><a class="ui-btn" id="search">查询</a></li>
|
||||
<li><a class="ui-btn ui-btn-sp" id="add">新增</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/assistingPropBatch.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
43
application/views/settings/assistingPropGroupManage.php
Executable file
43
application/views/settings/assistingPropGroupManage.php
Executable file
@@ -0,0 +1,43 @@
|
||||
<?php $this->load->view('header');?>
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body{background: #fff;overflow-y: scroll;}
|
||||
.manage-wrap{margin: 20px auto 10px;width: 230px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="manage-wrap" class="manage-wrap">
|
||||
<form id="manage-form" action="#">
|
||||
<ul class="mod-form-rows cf" id="comboField">
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/assistingPropGroupManage.js?ver=20150427"></script>
|
||||
</body>
|
||||
</html>
|
||||
102
application/views/settings/assistingprop.php
Executable file
102
application/views/settings/assistingprop.php
Executable file
@@ -0,0 +1,102 @@
|
||||
<?php $this->load->view('header');?>
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = 'youshang.com';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.mod-crumb .cur {font-size: 16px;font-weight: bold;position: relative;top: 2px;}
|
||||
.mod-crumb a, .mod-crumb span {margin: 0 3px;vertical-align: base-line;color: #555;}
|
||||
.setting-wrap {width: 910px;}
|
||||
.mod-inner {padding: 0;}
|
||||
.wrapper-assisting{}
|
||||
.assisting-list-wrap{position:relative;zoom:1;overflow:hidden;border: 1px solid #ccc;zoom:1;}
|
||||
.assisting-list{position:relative;top:1px;margin:-1px -5px 0 0;background: #fff;overflow: hidden;}
|
||||
.assisting-list li{position:relative;float: left;width: 25%;*width:24.9%;height: 165px;}
|
||||
.assisting-list a.item{display: block;height: 164px;overflow:hidden;text-align:center;color: #3b87b1
|
||||
;background: #fff;border-bottom: 1px dashed #ccc;border-right: 1px dashed #ccc;}
|
||||
.assisting-list li i{display: block;width: 64px; height: 64px;margin:40px auto 0;background: url("<?php echo base_url()?>/statics/css/img/page_spr_icons.png") no-repeat;}
|
||||
.assisting-list li strong{display:block;padding:10px 0; font-weight: normal; font-size: 14px;}
|
||||
.assisting-list .on a.item,.assisting-list .add a.item{/*background: #f8f8f8;box-shadow:inset 0 0 4px
|
||||
rgba(0,0,0,.11);*/}
|
||||
.assisting-list .add a.item{line-height: 164px; font-size:14px;}
|
||||
.assisting-list .operation{display:none;position: absolute;right: 5px;top: 5px;}
|
||||
.assisting-list .operation a{margin-right: 8px}
|
||||
.assisting-list .on .operation{display: block;}
|
||||
|
||||
.assisting-list li dl{ color:#999; }
|
||||
.assisting-list li dt{ font-size:14px; margin-bottom:10px; }
|
||||
.assisting-list li dd{ margin-bottom:6px; }
|
||||
|
||||
/*列表图标*/
|
||||
.assisting-list .supplier i {background-position: -64px 0;}
|
||||
.assisting-list .customer i {background-position: -128px 0;}
|
||||
.assisting-list .project i {background-position: -194px 0;}
|
||||
.assisting-list .department i {background-position: -258px 0;}
|
||||
.assisting-list .staff i {background-position: -322px 0;}
|
||||
.assisting-list .custom i{background-position: -388px 0;}
|
||||
|
||||
|
||||
/*新增编辑页*/
|
||||
/*.assisting-manage{height: 80px;}*/
|
||||
|
||||
#assisting-category-select .ui-tab{margin-right: 5px;}
|
||||
|
||||
|
||||
.cur #custom-assisting .ui-combo-wrap{background: #eaeaea;border-color: #c1c1c1;}
|
||||
.cur #custom-assisting input{background: #eaeaea;font-weight: bold;}
|
||||
|
||||
.batch-fun{ margin:0 18px; border:1px solid #CCC; }
|
||||
.batch-fun span{ margin-right:20px; }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="setting-wrap">
|
||||
<div class="mod-toolbar-top">
|
||||
<div class="left mod-crumb"><span class="cur">辅助属性</span></div>
|
||||
</div>
|
||||
<div class="mod-inner">
|
||||
<div class="assisting-list-wrap">
|
||||
<ul id="assisting-list" class="assisting-list cf">
|
||||
<li class="add" id="add-custom-assisting">
|
||||
<a href="#" class="item">+ 新增分类</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/assistingProp.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
107
application/views/settings/authority-new.php
Executable file
107
application/views/settings/authority-new.php
Executable file
@@ -0,0 +1,107 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<link href="<?php echo base_url()?>/statics/css/authority.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper authority-wrap">
|
||||
<div class="mod-inner">
|
||||
|
||||
<div class="authority-ctn-wrap">
|
||||
|
||||
<div class="register-wrap">
|
||||
<h3>新建用户</h3>
|
||||
<form action="#" id="registerForm" class="register-form">
|
||||
<ul class="mod-form-rows">
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label for="userName">用户名</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="text" class="ui-input" id="userName" name="userName"/>
|
||||
<p class="msg">用户名由4-20个英文字母或数字组成(不支持中文,不区分大小写字母)。一旦创建成功,不可修改。</p>
|
||||
</div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label for="password">密码</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="password" class="ui-input" id="password" name="password" style="ime-mode
|
||||
:disabled;" onpaste="return false;"/>
|
||||
<div class="pswStrength" id="pswStrength" style="display:none;">
|
||||
<p>密码强度</p>
|
||||
<b></b>
|
||||
<b></b>
|
||||
<b></b>
|
||||
</div>
|
||||
<p class="msg">密码由6-20个英文字母(区分大小写)或数字或特殊符号组成。</p>
|
||||
</div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label for="pswConfirm">确认密码</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="password" class="ui-input" id="pswConfirm" name="pswConfirm" style="ime-mode
|
||||
:disabled;" onpaste="return false;"/>
|
||||
</div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label for="realName">真实姓名</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="text" class="ui-input" id="realName" name="realName"/>
|
||||
<p class="msg">真实姓名将应用在单据和账表打印中,请如实填写</p>
|
||||
</div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label for="">常用手机</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="text" class="ui-input" id="userMobile" name="userMobile"/>
|
||||
<p class="msg">手机将作为找回密码的重要依据</p>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btn-row">
|
||||
<a href="authority" class="ui-btn mrb">返回列表</a><a href="#" class="ui-btn ui-btn-sp" id="registerBtn">下一步</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/register.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
306
application/views/settings/authority-setting-data.php
Executable file
306
application/views/settings/authority-setting-data.php
Executable file
@@ -0,0 +1,306 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
#start{margin:0 20px 0 10px; }
|
||||
#start:hover{color:#fff;}
|
||||
#userName{font-weight:100;margin:0 20px 0 0;}
|
||||
#matchCon{width:160px;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-toolbar-top cf">
|
||||
<div class="fl">
|
||||
<p class="f14">
|
||||
<lable>授权对象:</lable><span id="userName"></span>
|
||||
<lable>数据类别:</lable><span id="type"></span><a class="ui-label ui-label-success dn" id="start"></a>
|
||||
<span id='searchField'>
|
||||
<input type="text" id="matchCon" class="ui-input matchCon ui-input-ph" value="按类别,编号名称搜索">
|
||||
<a class="ui-btn mrb" id="search">查询</a>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="fr"><a class="ui-btn ui-btn-sp mrb" id="save">确定</a><a class="ui-btn" href="authority">返回</a></div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
var thisPage = {},
|
||||
$typeCombo,
|
||||
$type = $('#type'),
|
||||
$start = $('#start'),
|
||||
$grid = $("#grid"),
|
||||
$matchCon = $('#matchCon'),
|
||||
$search = $('#search'),
|
||||
$searchField = $('#searchField'),
|
||||
urlParam = Public.urlParam(),
|
||||
userName = urlParam.userName,
|
||||
height = Public.setGrid().h,
|
||||
typeList = [],
|
||||
rightData = [],
|
||||
changeList = {},
|
||||
queryConditions = {
|
||||
userName: userName
|
||||
},
|
||||
startSwitch = true;//模块点击开关
|
||||
$('#userName').text(userName);
|
||||
Public.ajaxPost('../dataright/dt?action=dt&userName='+userName, {}, function(data){
|
||||
if(data.status === 200) {
|
||||
if(data.data&&data.data.items.length){
|
||||
typeList = data.data.items;
|
||||
//thisPage.init(data);
|
||||
thisPage.init(typeList);
|
||||
thisPage.eventHandle();
|
||||
thisPage.gridInit();
|
||||
$start.hide();
|
||||
$searchField.hide();
|
||||
}
|
||||
} else {
|
||||
//parent.Public.tips({type: 1, content : data.msg});
|
||||
}
|
||||
});
|
||||
thisPage = {
|
||||
init : function(data){
|
||||
$typeCombo = $type.combo({
|
||||
data: data,
|
||||
text: 'FNAME',
|
||||
value: 'FRIGHTID',
|
||||
width: 160,
|
||||
defaultSelected: 0,
|
||||
addOptions: {text:'(请选择数据模块)', value: -1},
|
||||
cache: false,
|
||||
editable: false,
|
||||
listWrapCls:'ui-droplist-wrap f14',
|
||||
callback: {
|
||||
onChange: function(){
|
||||
$grid.jqGrid('clearGridData');
|
||||
var _index = this.getSelectedIndex()-1;
|
||||
var _selectRow = typeList[_index];
|
||||
if(_selectRow){
|
||||
$start.show();
|
||||
if(_selectRow.FRIGHT != 0){
|
||||
$start.removeClass('ui-label-default').html('已启用').attr('title','点击关闭该类别权限');
|
||||
$searchField.show();
|
||||
$search.trigger('click');
|
||||
}else{
|
||||
$start.addClass('ui-label-default').html('未启用').attr('title','点击开启该类别权限');
|
||||
$searchField.hide();
|
||||
}
|
||||
}else{
|
||||
$start.hide();
|
||||
$searchField.hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
}).getCombo();
|
||||
},
|
||||
eventHandle : function(){
|
||||
$start.click(function(){
|
||||
if(!startSwitch)
|
||||
return;
|
||||
|
||||
startSwitch = false;//关闭开关,防止用户连续点击
|
||||
var _index = $typeCombo.getSelectedIndex()-1;
|
||||
if($start.hasClass('ui-label-default')){
|
||||
typeList[_index].FRIGHT = 1;
|
||||
}else{
|
||||
typeList[_index].FRIGHT = 0;
|
||||
}
|
||||
var rightids = [];
|
||||
for(var i = 0,len = typeList.length; i<len;i++){
|
||||
if(typeList[i].FRIGHT > 0 ){
|
||||
rightids.push(typeList[i].FRIGHTID);
|
||||
}
|
||||
}
|
||||
Public.ajaxPost('../dataright/ar?action=ar&userName=' + userName ,{rightid:'{"rightids":['+ rightids.join(',') + ']}'}, function(data){
|
||||
if(data.status === 200) {
|
||||
if($start.hasClass('ui-label-default')){
|
||||
$search.trigger('click');
|
||||
$start.removeClass('ui-label-default').html('已启用').attr('title','点击关闭该类别权限');
|
||||
$searchField.show();
|
||||
}else{
|
||||
$grid.jqGrid('clearGridData');
|
||||
$start.addClass('ui-label-default').html('未启用').attr('title','点击开启该类别权限');
|
||||
$searchField.hide();
|
||||
}
|
||||
} else {
|
||||
typeList[_index].FRIGHT = typeList[_index].FRIGHT ? 0 : 1;
|
||||
parent.Public.tips({type: 1, content : data.msg});
|
||||
}
|
||||
startSwitch = true;//重新开启开关
|
||||
});
|
||||
});
|
||||
$('#save').click(function(e){
|
||||
var type = $typeCombo.getValue();
|
||||
var strRights = [];
|
||||
//var ids = $("#grid").jqGrid('getDataIDs');
|
||||
for(var item in changeList){
|
||||
strRights.push('{"FITEMID":'+changeList[item].FITEMID+',"FRIGHT":'+changeList[item].FRIGHT+'}');
|
||||
}
|
||||
if(!strRights.length){
|
||||
parent.Public.tips({type:2,content : '没有改变!'});
|
||||
return;
|
||||
}
|
||||
/*for(var i = 0, len = ids.length; i < len; i++){
|
||||
var id = ids[i], itemData;
|
||||
var row = $("#grid").jqGrid('getRowData',id);
|
||||
var _right;
|
||||
if($('#'+id).hasClass('ui-state-highlight')) {
|
||||
_right = 1;
|
||||
} else {
|
||||
_right = 0;
|
||||
};
|
||||
strRights.push('{FITEMID:'+row.FITEMID+',FRIGHT:'+_right+'}');
|
||||
}*/
|
||||
Public.ajaxPost('../dataright/update?action=update&type='+ type +'&userName=' + userName , {rights:'['+ strRights.join() + ']'}, function(data){
|
||||
if(data.status === 200) {
|
||||
parent.Public.tips({content : '保存成功!'});
|
||||
changeList = {};//清空临时权限改变列表
|
||||
} else {
|
||||
parent.Public.tips({type: 1, content : data.msg});
|
||||
}
|
||||
});
|
||||
});
|
||||
$matchCon.placeholder();
|
||||
//查询
|
||||
$search.on('click', function(e){
|
||||
e.preventDefault();
|
||||
changeList = {};//清空临时权限改变列表,可以提醒用户是否保存变化
|
||||
queryConditions.skey = $matchCon.val() === '按类别,编号名称搜索' ? '' : $.trim($matchCon.val());
|
||||
queryConditions.type = $typeCombo.getValue();
|
||||
$grid.jqGrid('setGridParam',{page: 1, url:'../dataright/query?action=query', datatype: "json", postData: queryConditions}).trigger("reloadGrid");
|
||||
});
|
||||
$(window).resize(function(){
|
||||
Public.resizeGrid();
|
||||
});
|
||||
},
|
||||
gridInit:function(){
|
||||
queryConditions.type = $typeCombo.getValue();
|
||||
$grid.jqGrid({
|
||||
url: '../dataright/query?action=query',
|
||||
postData: queryConditions,
|
||||
datatype: "json",
|
||||
autowidth: true,//如果为ture时,则当表格在首次被创建时会根据父元素比例重新调整表格宽度。如果父元素宽度改变,为了使表格宽度能够自动调整则需要实现函数:setGridWidth
|
||||
height: Public.setGrid().h,
|
||||
altRows: true, //设置隔行显示
|
||||
colModel:[
|
||||
{name:'FITEMID', label:'ID',width:200,hidden:true},
|
||||
{name:'FNAME', label:'名称',width:200},
|
||||
{name:'FITEMNO', label:'编号', width:200},
|
||||
{name:'FRIGHT',lable:'权限',hidden:true}
|
||||
],
|
||||
multiselect : true,// 多选
|
||||
cmTemplate: {sortable: false, title: false},
|
||||
page: 1,
|
||||
pager: "#page",
|
||||
rowNum: 100,
|
||||
rowList: [100, 200, 500],
|
||||
//scroll: 1,
|
||||
gridview: true,
|
||||
//loadonce: true,
|
||||
viewrecords: true,
|
||||
shrinkToFit: false,
|
||||
forceFit: false,
|
||||
localReader: {
|
||||
root: "data.rows",
|
||||
records: "data.records",
|
||||
total: "data.total",
|
||||
repeatitems : false,
|
||||
id: 'FITEMID'
|
||||
},
|
||||
jsonReader: {
|
||||
root: "data.rows",
|
||||
records: "data.records",
|
||||
total: "data.total",
|
||||
repeatitems : false,
|
||||
id: 'FITEMID'
|
||||
},
|
||||
loadComplete:function(){
|
||||
},
|
||||
onSelectRow:function(rowid,status){
|
||||
var rowData = $("#grid").jqGrid('getRowData', rowid);
|
||||
rowData.FRIGHT = status ? '1' : '0';
|
||||
$("#grid").jqGrid('setRowData', rowid, rowData);
|
||||
if(changeList[rowid]){
|
||||
delete changeList[rowid];
|
||||
}else{
|
||||
changeList[rowid] = {FITEMID:rowid, FRIGHT:status ? "1" : "0"};
|
||||
}
|
||||
},
|
||||
gridComplete : function() {
|
||||
var _data = $grid.getRowData();
|
||||
for ( var i = 0, len = _data.length; i < len; i++) {
|
||||
if (_data[i].FRIGHT === "1") {
|
||||
$grid.jqGrid('setSelection' , _data[i].FITEMID ,false);
|
||||
}
|
||||
}
|
||||
for(var item in changeList){
|
||||
$grid.jqGrid('setSelection' , changeList[item].FITEMID ,false);
|
||||
var rowData = $("#grid").jqGrid('getRowData', changeList[item].FITEMID);
|
||||
if(rowData){
|
||||
rowData.FRIGHT = changeList[item].FRIGHT;
|
||||
$("#grid").jqGrid('setRowData', changeList[item].FITEMID, rowData);
|
||||
}
|
||||
}
|
||||
},
|
||||
onSelectAll:function(aRowids,status){
|
||||
var currentList = {};
|
||||
var _data = $grid.getRowData();
|
||||
for ( var i = 0, len = _data.length; i < len; i++) {
|
||||
currentList[_data[i].FITEMID] = {FITEMID:_data[i].FITEMID, FRIGHT:_data[i].FRIGHT};
|
||||
}
|
||||
var val = status ? '1' : '0';
|
||||
for ( var i = 0, len = _data.length; i < len; i++) {
|
||||
var id = _data[i].FITEMID;
|
||||
var rowData = $("#grid").jqGrid('getRowData', id);
|
||||
rowData.FRIGHT = val;
|
||||
$("#grid").jqGrid('setRowData', id, rowData);
|
||||
if(currentList[id].FRIGHT != val){
|
||||
if(changeList[id]){
|
||||
delete changeList[id];
|
||||
}else{
|
||||
changeList[id] = {FITEMID:id, FRIGHT:val};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
228
application/views/settings/authority-setting.php
Executable file
228
application/views/settings/authority-setting.php
Executable file
@@ -0,0 +1,228 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-toolbar-top cf">
|
||||
<div class="fl"><h3 class="f14">详细权限设置<span class="fwn">(请勾选为 <b id="userName"></b> 分配的权限)</span></h3></div>
|
||||
<div class="fr"><a class="ui-btn ui-btn-sp mrb" id="save">确定</a><a class="ui-btn" href="<?php echo site_url('settings/authority')?>">返回</a></div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var urlParam = Public.urlParam(), userName = urlParam.userName, curGroup;
|
||||
var height = Public.setGrid().h;
|
||||
var relation = {
|
||||
"购货单":[{name:'商品',rights:['查询']},{name:'仓库',rights:['查询']},{name:'供应商',rights:['查询']}],
|
||||
"销货单":[{name:'商品',rights:['查询']},{name:'仓库',rights:['查询']},{name:'客户',rights:['查询']}],
|
||||
"调拨单":[{name:'商品',rights:['查询']},{name:'仓库',rights:['查询']}]
|
||||
},
|
||||
$grid = $('#grid'),
|
||||
RelationalMapping = {};//Rowid与名字的映射
|
||||
$('#userName').text(userName);
|
||||
$("#grid").jqGrid({
|
||||
url:'../right/queryalluserright?userName=' + userName,
|
||||
datatype: "json",
|
||||
//caption: "科目余额表",
|
||||
autowidth: true,//如果为ture时,则当表格在首次被创建时会根据父元素比例重新调整表格宽度。如果父元素宽度改变,为了使表格宽度能够自动调整则需要实现函数:setGridWidth
|
||||
//width: width,
|
||||
height: height,
|
||||
altRows: true, //设置隔行显示
|
||||
//rownumbers: true,//如果为ture则会在表格左边新增一列,显示行顺序号,从1开始递增。此列名为'rn'
|
||||
//gridview: true,
|
||||
colNames:['<input type="checkbox" id="all" class="vm">', '功能列表', '操作', '<label for="all">授权</label>'],
|
||||
colModel:[
|
||||
{name:'fobjectid', width:40, align:"center", formatter:groupFmatter},
|
||||
{name:'fobject', width:200, formatter:moduleFmatter},
|
||||
{name:'faction', width:150, align:"center"},
|
||||
{name:'fright', width:100, align:"center", formatter:rightFmatter}
|
||||
],
|
||||
cmTemplate: {sortable: false, title: false},
|
||||
//idPrefix: 'ys',
|
||||
//loadui: 'block',
|
||||
//multiselect: true,
|
||||
//multiboxonly: true,
|
||||
page: 1,
|
||||
sortname: 'number',
|
||||
sortorder: "desc",
|
||||
pager: "#page",
|
||||
rowNum: 2000,
|
||||
rowList:[300,500,1000],
|
||||
scroll: 1, //创建一个动态滚动的表格,当为true时,翻页栏被禁用,使用垂直滚动条加载数据,且在首次访问服务器端时将加载所有数据到客户端。当此参数为数字时,表格只控制可见的几行,所有数据都在这几行中加载
|
||||
loadonce: true,
|
||||
viewrecords: true,
|
||||
shrinkToFit: false,
|
||||
forceFit: false,
|
||||
jsonReader: {
|
||||
root: "data.items",
|
||||
records: "data.totalsize",
|
||||
repeatitems : false,
|
||||
id: -1
|
||||
},
|
||||
afterInsertRow: function(rowid, rowdata, rowelem) {
|
||||
|
||||
},
|
||||
loadComplete: function(data) {
|
||||
$('.group').each(function(index, element) {
|
||||
var groupId = $(this).attr('id');
|
||||
var $_ckbox = $('.ckbox[data-for=' + groupId + ']');
|
||||
if($_ckbox.length === $_ckbox.filter(':checked').length) {
|
||||
this.checked = true;
|
||||
};
|
||||
});
|
||||
initRelation();
|
||||
},
|
||||
loadError: function(xhr,st,err) {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
function groupFmatter(val, opt, row){
|
||||
if(curGroup !== val){
|
||||
return '<input class="group" type="checkbox" id="' + val + '">';
|
||||
} else {
|
||||
return '';
|
||||
};
|
||||
};
|
||||
function moduleFmatter(val, opt, row){
|
||||
fillMap(val, opt ,row);//缓存映射关系
|
||||
if(curGroup !== row.fobjectid){
|
||||
curGroup = row.fobjectid;
|
||||
return val;
|
||||
} else {
|
||||
return '';
|
||||
};
|
||||
};
|
||||
|
||||
function rightFmatter(val, opt, row){
|
||||
var html_str = '<input type="checkbox" class="ckbox" data-for="' + row.fobjectid + '" data-id="' + row.frightid + '"';
|
||||
if(row.faction === '查询') {
|
||||
html_str = html_str + 'data-view="true"';
|
||||
};
|
||||
if(val > 0){
|
||||
return html_str + ' checked="checked">';
|
||||
} else {
|
||||
return html_str + '>';
|
||||
};
|
||||
};
|
||||
|
||||
$('#all').click(function(e){
|
||||
e.stopPropagation();
|
||||
if(this.checked) {
|
||||
$('.ckbox').each(function(){
|
||||
this.checked = true;
|
||||
});
|
||||
$('.group').each(function(){
|
||||
this.checked = true;
|
||||
});
|
||||
} else {
|
||||
$('.ckbox').removeAttr('checked');
|
||||
$('.group').removeAttr('checked');
|
||||
}
|
||||
});
|
||||
$('#save').click(function(e){
|
||||
var items = [];
|
||||
$('.ckbox').each(function(i){
|
||||
if(this.checked) {
|
||||
items.push($(this).data('id'));
|
||||
}
|
||||
});
|
||||
//Public.ajaxPost('../right/addRights2OutUser?userName=' + userName + '&rightid={rightids:['+ items.join(',') + ']}', {}, function(data){
|
||||
Public.ajaxPost('../right/addRights2OutUser?userName=' + userName + '&rightid='+ items.join(','), {}, function(data){
|
||||
if(data.status === 200) {
|
||||
parent.Public.tips({content : '保存成功!'});
|
||||
} else {
|
||||
parent.Public.tips({type: 1, content : data.msg});
|
||||
}
|
||||
});
|
||||
});
|
||||
$('.grid-wrap').on('click', '.group', function(){
|
||||
var groupId = $(this).attr('id');
|
||||
if(this.checked) {
|
||||
$('.ckbox[data-for=' + groupId + ']').each(function(){
|
||||
this.checked = true;
|
||||
});
|
||||
} else {
|
||||
$('.ckbox[data-for=' + groupId + ']').removeAttr('checked');
|
||||
};
|
||||
$(this).closest('tr').find('input').filter('[data-view=true]').trigger('checkChange');
|
||||
});
|
||||
$('.grid-wrap').on('click', '.ckbox', function(){
|
||||
var groupId = $(this).data('for');
|
||||
var $_group = $('.ckbox[data-for=' + groupId + ']'), $_view = $_group.filter('[data-view=true]'), $_others = $_group.not('[data-view=true]');
|
||||
if(!$(this).data('view')) {
|
||||
if(this.checked && $_view.length > 0) {
|
||||
$_view[0].checked = true;
|
||||
};
|
||||
} else {
|
||||
if($_others.length > 0 && $_others.filter(':checked').length > 0) {
|
||||
this.checked = true;
|
||||
};
|
||||
};
|
||||
$_view.trigger('checkChange');
|
||||
if($_group.length === $_group.filter(':checked').length) {
|
||||
$('#' + groupId)[0].checked = true;
|
||||
} else {
|
||||
$('#' + groupId).removeAttr('checked');
|
||||
};
|
||||
});
|
||||
/**
|
||||
* 关联权限处理
|
||||
*/
|
||||
function fillMap(val, opt ,row){
|
||||
RelationalMapping[val+"-"+row.faction] = opt.rowId;
|
||||
}
|
||||
function initRelation(){
|
||||
$grid.find('input').filter('[data-view=true]').each(function(){
|
||||
setRelativeRight($(this));
|
||||
});
|
||||
};
|
||||
function setRelativeRight(view){
|
||||
var _modelName = view.closest('tr').find('td:eq(1)').html();
|
||||
if(relation[_modelName]){
|
||||
view.on('checkChange',function(){
|
||||
var _arr = relation[_modelName];
|
||||
var _isChecked = this.checked;
|
||||
for(var i = 0,len = _arr.length; i < len; i++){
|
||||
var _name = _arr[i].name;
|
||||
var _rights = _arr[i].rights;
|
||||
for(var j=0,l = _rights.length; j<l; j++){
|
||||
var _proName = _arr[i].name+"-"+_rights[j];
|
||||
var _rid = RelationalMapping[_proName];
|
||||
if(!_arr[i].ckbox){
|
||||
_arr[i].ckbox = {};
|
||||
}
|
||||
if(!_arr[i].ckbox[_proName]){
|
||||
_arr[i].ckbox[_proName] = $('#'+_rid).find('.ckbox')[0];//缓存当前对象
|
||||
}
|
||||
if(_isChecked){
|
||||
//如果主权限获得,则做以下处理
|
||||
_arr[i].ckbox[_proName].checked = true;
|
||||
}
|
||||
else{
|
||||
//如果主权限取消,则做以下处理
|
||||
}
|
||||
}
|
||||
}
|
||||
this.checked = _isChecked;
|
||||
});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
227
application/views/settings/authority.php
Executable file
227
application/views/settings/authority.php
Executable file
@@ -0,0 +1,227 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
function validMaxForShare(){
|
||||
$.ajax({
|
||||
url: '../right/isMaxShareUser?action=isMaxShareUser',
|
||||
dataType: 'json',
|
||||
type: 'POST',
|
||||
success: function(data){
|
||||
if(data.status === 200){
|
||||
var json = data.data;
|
||||
if(json.shareTotal >= json.totalUserNum)
|
||||
{
|
||||
parent.Public.tips({type:2, content : '共享用户已经达到上限值:'+json.totalUserNum});
|
||||
return false;
|
||||
}else
|
||||
{
|
||||
window.location.href='../settings/authority_new';
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-toolbar-top">
|
||||
<a href="javascript:validMaxForShare();" class="ui-btn ui-btn-sp mrb">新增同事</a>
|
||||
<span class="tit" id="shareInfo" style="display:none;">该账套主服务最多支持<strong id="totalUser"></strong>用户共同管理,已共享<strong id="usedTotal"></strong>人,剩余<strong id="leftTotal"></strong>。</span>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
(function($){
|
||||
var totalUser, usedTotal, leftTotal;
|
||||
initGrid();
|
||||
|
||||
$('.grid-wrap').on('click', '.delete', function(e){
|
||||
var id = $(this).parents('tr').attr('id');
|
||||
var rowData = $('#grid').getRowData(id);
|
||||
var userName = rowData.userName;
|
||||
e.preventDefault();
|
||||
$.ajax({
|
||||
url: '../right/auth2UserCancel?action=auth2UserCancel&userName=' + userName,
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
success: function(data){
|
||||
if (data.status == 200) {
|
||||
parent.Public.tips({content: '取消用户授权成功!'});
|
||||
usedTotal--;
|
||||
leftTotal++;
|
||||
showShareCount();
|
||||
if (rowData.isCom) {
|
||||
rowData.share = false;
|
||||
$("#grid").jqGrid('setRowData', id, rowData);
|
||||
} else {
|
||||
$("#grid").jqGrid('delRowData',id);
|
||||
}
|
||||
|
||||
} else {
|
||||
parent.Public.tips({type: 1, content: '取消用户授权失败!' + data.msg});
|
||||
}
|
||||
},
|
||||
error: function(){
|
||||
parent.Public.tips({content:'取消用户授权失败!请重试。', type: 1});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('.grid-wrap').on('click', '.authorize', function(e){
|
||||
var id = $(this).parents('tr').attr('id');
|
||||
var rowData = $('#grid').getRowData(id);
|
||||
var userName = rowData.userName;
|
||||
e.preventDefault();
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
url: '../right/auth2User?action=auth2User&userName=' + userName,
|
||||
success: function(data){
|
||||
if (data.status == 200) {
|
||||
parent.Public.tips({content : '授权成功!'});
|
||||
rowData.share = true;
|
||||
$("#grid").jqGrid('setRowData', id, rowData);
|
||||
usedTotal++;
|
||||
leftTotal--;
|
||||
showShareCount();
|
||||
//window.location.href = 'authority-setting.jsp?userName=' + userName + '&right=0';
|
||||
} else {
|
||||
parent.Public.tips({type:1, content : data.msg});
|
||||
}
|
||||
},
|
||||
error: function(){
|
||||
parent.Public.tips({type:1, content : '用户授权失败!请重试。'});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
function initGrid(){
|
||||
$('#grid').jqGrid({
|
||||
url: '../right/queryAllUser?action=queryAllUser',
|
||||
datatype: 'json',
|
||||
height: Public.setGrid().h,
|
||||
colNames:['用户', '真实姓名', '公司','功能授权','数据授权','启用授权'],
|
||||
colModel:[
|
||||
{name:'userName',index:'userName', width:200},
|
||||
{name:'realName', index:'realName', width:200},
|
||||
{name:'isCom', index:'isCom', hidden: true},
|
||||
{name:'setting', index:'setting', width:100, align:"center", title:false, formatter: settingFormatter},
|
||||
//{name:'setting_data', index:'setting_data', width:100, align:"center", title:false, formatter: settingDataFormatter},
|
||||
{name:'setting_data', index:'setting_data', width:100, align:"center", title:false, formatter: settingDataFormatter},
|
||||
//{name:'setting_data', index:'setting_data', width:100, align:"center", title:false, formatter: settingDataFormatter, hidden:(parent.SYSTEM.siType == 1)},
|
||||
{name:'share', index:'share', width:100, align:"center", title:false, formatter: shareFormatter}
|
||||
|
||||
],
|
||||
altRows:true,
|
||||
gridview: true,
|
||||
page: 1,
|
||||
scroll: 1,
|
||||
autowidth: true,
|
||||
cmTemplate: {sortable:false},
|
||||
rowNum:150,
|
||||
shrinkToFit:false,
|
||||
forceFit:false,
|
||||
pager: '#page',
|
||||
viewrecords: true,
|
||||
jsonReader: {
|
||||
root: 'data.items',
|
||||
records: 'data.totalsize',
|
||||
repeatitems : false,
|
||||
id: 'userId'
|
||||
},
|
||||
loadComplete: function(data){
|
||||
if (data.status == 200) {
|
||||
data = data.data;
|
||||
totalUser = data.totalUserNum;
|
||||
usedTotal = data.shareTotal;
|
||||
leftTotal = totalUser - usedTotal;
|
||||
showShareCount();
|
||||
$('#shareInfo').show();
|
||||
} else {
|
||||
parent.Public.tips({type: 1, content: data.msg});
|
||||
}
|
||||
|
||||
},
|
||||
loadonce: true
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function showShareCount(){
|
||||
$('#totalUser').text(totalUser);
|
||||
$('#usedTotal').text(usedTotal);
|
||||
$('#leftTotal').text(leftTotal);
|
||||
}
|
||||
|
||||
|
||||
function shareFormatter(val, opt, row) {
|
||||
if (val || row.admin) {
|
||||
if (row.admin) {
|
||||
return '管理员';
|
||||
} else {
|
||||
return '<div class="operating" data-id="' + row.userId + '"><span class="delete ui-label ui-label-success">已启用</span></div>';
|
||||
}
|
||||
} else {
|
||||
return '<p class="operate-wrap"><span class="authorize ui-label ui-label-default">已停用</span></p>';
|
||||
}
|
||||
};
|
||||
function settingFormatter(val, opt, row) {
|
||||
if (row.admin || row.share === false) {
|
||||
return ' ';
|
||||
} else {
|
||||
return '<div class="operating" data-id="' + row.userId + '"><a class="ui-icon ui-icon-pencil" title="详细设置授权信息" href="../settings/authority_setting?userName=' + row.userName + '"></a></div>';
|
||||
}
|
||||
};
|
||||
function settingDataFormatter(val, opt, row) {
|
||||
if (row.admin || row.share === false) {
|
||||
return ' ';
|
||||
} else {
|
||||
return '<div class="operating" data-id="' + row.userId + '"><a class="ui-icon ui-icon-pencil" title="详细设置授权信息" href="../settings/authority_setting_data?userName=' + row.userName + '"></a></div>';
|
||||
}
|
||||
};
|
||||
|
||||
})(jQuery)
|
||||
|
||||
$(window).resize(function(){
|
||||
Public.resizeGrid();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
51
application/views/settings/backup.php
Executable file
51
application/views/settings/backup.php
Executable file
@@ -0,0 +1,51 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = 'youshang.com';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.backup-status{margin: 10px 0 20px;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper setting-wrap">
|
||||
<div class="mod-toolbar-top cf">
|
||||
<a class="ui-btn ui-btn-sp fl mrb" id="start-backup" herf="#">开始备份</a>
|
||||
<!--<a class="ui-btn fl" id="auto-backup" herf="#">自动备份</a>-->
|
||||
<a herf="#" class="ui-btn fl local-recover" id="localRecover">上传本地备份</a>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<div id="backup-status" class="backup-status"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/backup.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
83
application/views/settings/category-list.php
Executable file
83
application/views/settings/category-list.php
Executable file
@@ -0,0 +1,83 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.manage-wrap{margin: 0 auto;width: 300px;}
|
||||
.manage-wrap .ui-input{width: 200px;font-size:14px;}
|
||||
.manage-wrap .hideFeild{position: absolute;top: 30px;left:80px;width:210px;border:solid 1px #ccc;background-color
|
||||
:#fff;}
|
||||
.ztreeDefault{overflow-y:auto;max-height:240px;}
|
||||
.searchbox{float: left;font-size: 14px;}
|
||||
.searchbox li{float: left;margin-right: 10px;}
|
||||
#matchCon{width:140px;}
|
||||
.ui-input-ph {color: #aaa;}
|
||||
.cur #custom-assisting .ui-combo-wrap {background: #eaeaea;border-color: #c1c1c1;}
|
||||
.cur #custom-assisting input {background: #eaeaea;font-weight: bold;}
|
||||
.ui-droplist-wrap .selected {background-color: #d2d2d2;}
|
||||
.input-txt{font-size:14px;}
|
||||
.ui-droplist-wrap .list-item {font-size:14px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-toolbar-top cf">
|
||||
<div class="left">
|
||||
<!--<div class="mod-crumb fl"><span class="cur"></span></div>-->
|
||||
<div id="assisting-category-select" class="ui-tab-select">
|
||||
<strong class="tit">类别</strong>
|
||||
<ul class="ui-tab mrb">
|
||||
</ul>
|
||||
<span class="fl mrb dn">
|
||||
<span id="custom-assisting"></span>
|
||||
</span>
|
||||
<ul class="searchbox cf">
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph matchCon" value="输入类别名称查询">
|
||||
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="search">查询</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb" id="btn-add">新增</a><a class="ui-btn" id
|
||||
="btn-refresh">刷新</a></div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/categoryList.js?ver=20150522"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
38
application/views/settings/choose-account.php
Executable file
38
application/views/settings/choose-account.php
Executable file
@@ -0,0 +1,38 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#matchCon { width: 280px; }
|
||||
.ui-jqgrid-bdiv .ui-state-highlight { background: none; }
|
||||
.operating .ui-icon{ margin:0; }
|
||||
.ui-icon-plus { background-position:-80px 0; }
|
||||
.ui-icon-trash { background-position:-64px 0; }
|
||||
.has-audit{ width: 150px; height: 74px; background: url(img/audit.png) 0 0 no-repeat; position: absolute; right: 40px; top: 20px; }
|
||||
.line{ line-height:0; height:0; border:none; border-bottom:1px dashed #CCC; color:#CCC; font-size:0; margin:18px 0; }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container" style="margin:20px;">
|
||||
<div class="grid-wrap">
|
||||
<table id="accountGrid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
<div id="initCombo" class="dn">
|
||||
<input type="text" class="textbox accountAuto" name="account" autocomplete="off">
|
||||
<input type="text" class="textbox paymentAuto" name="payment" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/chooseAccount.js?2"></script>
|
||||
</body>
|
||||
</html>
|
||||
57
application/views/settings/cst-list.php
Executable file
57
application/views/settings/cst-list.php
Executable file
@@ -0,0 +1,57 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-toolbar-top cf">
|
||||
<div class="fl">
|
||||
<label>选择客户:</label>
|
||||
<span class="ui-combo-wrap" id="customer">
|
||||
<input type="text" name="" class="input-txt" autocomplete="off" value="" data-ref="date" style="width:300px;">
|
||||
<i class="ui-icon-ellipsis"></i></span></dd></div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb" id="btn-add">新增</a><!--<a class="ui-btn
|
||||
mrb" id="btn-disable">禁用</a><a class="ui-btn mrb" id="btn-enable">启用</a>--><!--<a class="ui-btn mrb"
|
||||
id="btn-print">打印</a>--><!--<a class="ui-btn mrb" id="btn-import">导入</a>--><!--<a class="ui-btn mrb"
|
||||
id="btn-export">导出</a>--><a class="ui-btn" id="btn-refresh">刷新</a></div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/cstList.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
68
application/views/settings/cst-manage.php
Executable file
68
application/views/settings/cst-manage.php
Executable file
@@ -0,0 +1,68 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body{background: #fff;}
|
||||
.manage-wrap{margin: 20px auto 10px;width: 300px;}
|
||||
.manage-wrap .ui-input{width: 200px;font-size:14px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="manage-wrap" class="manage-wrap">
|
||||
<form id="manage-form" action="#">
|
||||
<ul class="mod-form-rows">
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="number">客户账号:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="number" id="number"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="name">客户名称:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="name" id="name"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="passWord">客户密码:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="passWord" id="passWord"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="deptName">所属集团:</label></div>
|
||||
<div class="ui-combo-wrap" id="customer">
|
||||
<input type="text" name="deptName" class="input-txt" autocomplete="off" value="" style="width:200px;" readonly="readonly">
|
||||
<i class="ui-icon-ellipsis"></i>
|
||||
</div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="score">积分:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="score" id="score"></div>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/cstManage.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
57
application/views/settings/customer-batch.php
Executable file
57
application/views/settings/customer-batch.php
Executable file
@@ -0,0 +1,57 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#matchCon { width: 280px; }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container" style="margin:20px;">
|
||||
<div class="mod-search m0 cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph" value="请输入客户编号或名称或联系人">
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="search">查询</a><a class="ui-btn" id="refresh">刷新</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/customerBatch.js?ver=20150427"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
62
application/views/settings/customer-export.php
Executable file
62
application/views/settings/customer-export.php
Executable file
@@ -0,0 +1,62 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table class="table" width="1500" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="120" align="center"><span style="color:#FF0000">客户编号</span></th>
|
||||
<th width="150" ><span style="color:#FF0000">客户名称</span></th>
|
||||
<th width="100" align="center">客户类别</th>
|
||||
<th width="100" align="center">客户等级</th>
|
||||
<th width="100" align="center">余额日期</th>
|
||||
<th width="100" align="center">期初应收款</th>
|
||||
<th width="100" align="center">期初预收款</th>
|
||||
<th width="120" align="center">备注</th>
|
||||
<th width="120" align="center">联系人</th>
|
||||
<th width="100" align="center">手机</th>
|
||||
<th width="100" align="center">座机</th>
|
||||
<th width="100" align="center">QQ/MSN</th>
|
||||
<th width="350" align="center">送货地址</th>
|
||||
<th width="100" align="center">首要联系人</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i = 1;
|
||||
foreach($list as $arr=>$row) {
|
||||
?>
|
||||
<tr target="id">
|
||||
<td ><?php echo $row['number']?></td>
|
||||
<td ><?php echo $row['name']?></td>
|
||||
<td ><?php echo $row['cCategoryName']?></td>
|
||||
<td ><?php echo $row['cLevelName']?></td>
|
||||
<td ><?php echo $row['beginDate']?></td>
|
||||
<td ><?php echo $row['amount']?></td>
|
||||
<td ><?php echo $row['periodMoney']?></td>
|
||||
<td ><?php echo $row['remark']?></td>
|
||||
<?php
|
||||
if (strlen($row['linkMans'])>0) { //获取首个联系人
|
||||
$array = (array)json_decode($row['linkMans'],true);
|
||||
foreach ($array as $arr1=>$row1) {
|
||||
if ($row1['linkFirst']==1) {
|
||||
?>
|
||||
<td ><?php echo $row1['linkName']?></td>
|
||||
<td ><?php echo $row1['linkMobile']?></td>
|
||||
<td ><?php echo $row1['linkPhone']?></td>
|
||||
<td ><?php echo $row1['linkIm']?></td>
|
||||
<td ><?php echo $row1['province'].$row1['city'].$row1['county'].$row1['address']?></td>
|
||||
<td ><?php echo $row1['linkFirst']==1 ? '是' : '否'?></td>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
} else {?>
|
||||
<td > </td>
|
||||
<td > </td>
|
||||
<td > </td>
|
||||
<td > </td>
|
||||
<td > </td>
|
||||
<td > </td>
|
||||
<?php }?>
|
||||
</tr>
|
||||
<?php $i++;}?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
64
application/views/settings/customer-list.php
Executable file
64
application/views/settings/customer-list.php
Executable file
@@ -0,0 +1,64 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.matchCon{width:280px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-search cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<span id="catorage"></span>
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph matchCon" value="输入客户编号/ 名称/ 联系人/ 电话查询">
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="search">查询</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb" id="btn-add">新增</a><a class="ui-btn mrb"
|
||||
id="btn-disable">禁用</a><a class="ui-btn mrb" id="btn-enable">启用</a><!--<a href="#" class="ui-btn mrb"
|
||||
id="btn-print">打印</a>--><a href="#" class="ui-btn mrb" id="btn-import">导入</a><a href="#" class="ui-btn
|
||||
mrb" id="btn-export">导出</a><a href="#" class="ui-btn" id="btn-batchDel">删除</a></div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/customerList.js?ver=2017071101"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
114
application/views/settings/customer-manage.php
Executable file
114
application/views/settings/customer-manage.php
Executable file
@@ -0,0 +1,114 @@
|
||||
<?php $this->load->view('header');?>
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/js/common/plugins/validator/jquery.validator.css">
|
||||
<script type="text/javascript" src="<?php echo base_url()?>statics/js/common/plugins/validator/jquery.validator.js"></script>
|
||||
<script type="text/javascript" src="<?php echo base_url()?>statics/js/common/plugins/validator/local/zh_CN.js"></script>
|
||||
|
||||
<style>
|
||||
body{background: #fff;}
|
||||
.mod-form-rows .label-wrap{font-size:12px;}
|
||||
.mod-form-rows .row-item {padding-bottom: 15px;margin-bottom: 0;}/*兼容IE7 ,重写common的演示*/
|
||||
.manage-wrapper{margin:20px auto 10px;width:600px;}
|
||||
.manage-wrap .ui-input{width: 198px;}
|
||||
.base-form{*zoom: 1;}
|
||||
.base-form:after{content: '.';display: block;clear: both;height: 0;overflow: hidden;}
|
||||
.base-form li{float: left;width: 290px;}
|
||||
.base-form li.odd{padding-right:20px;}
|
||||
.manage-wrap textarea.ui-input{width: 588px;height: 60px;overflow:hidden;}
|
||||
#receiveFunds,#periodReceiveFunds{text-align: right;}
|
||||
|
||||
.contacters{margin-bottom: 10px;}
|
||||
.contacters h3{margin-bottom: 10px;font-weight: normal;}
|
||||
.mod-form-rows .pb0{padding-bottom:0;}
|
||||
.mod-form-rows .ctn-wrap{overflow: visible;}
|
||||
.ui-combo-wrap {position: static;}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="manage-wrapper">
|
||||
<div id="manage-wrap" class="manage-wrap">
|
||||
<form id="manage-form" action="">
|
||||
<ul class="mod-form-rows base-form" id="base-form">
|
||||
<li class="row-item odd">
|
||||
<div class="label-wrap"><label for="number">客户编号</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="number" id="number"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="name">客户名称</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="name" id="name"></div>
|
||||
</li>
|
||||
<li class="row-item odd row-category">
|
||||
<div class="label-wrap"><label for="category">客户类别</label></div>
|
||||
<div class="ctn-wrap"><span id="category"></span></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="customerLevel">客户等级</label></div>
|
||||
<div class="ctn-wrap"><span id="customerLevel"></span></div>
|
||||
</li>
|
||||
<li class="row-item odd">
|
||||
<div class="label-wrap"><label for="date">余额日期</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input ui-datepicker-input" name="date" id="date" /></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="receiveFunds">期初应收款</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="receiveFunds" id="receiveFunds"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="periodReceiveFunds">期初预收款</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="periodReceiveFunds" id="periodReceiveFunds"></div>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="contacters">
|
||||
<h3 class="dn">联系方式</h3>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="mod-form-rows">
|
||||
<li class="row-item pb0">
|
||||
<!-- <div class="label-wrap"><label for="note">备注</label></div> -->
|
||||
<div class="ctn-wrap"><textarea name="" id="note" class="ui-input ui-input-ph">添加备注信息</textarea></div>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
<div class="hideFile dn">
|
||||
<input type="text" class="textbox address" name="address" id="address" autocomplete="off" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/customerManage.js?ver=2017071301"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
131
application/views/settings/fileupload.php
Executable file
131
application/views/settings/fileupload.php
Executable file
@@ -0,0 +1,131 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.container{position:relative;}
|
||||
#progress{position: absolute;top:0;left:0;width:100%}
|
||||
.uploading #progress{z-index:1001;}
|
||||
.content{padding: 10px;width: 730px;
|
||||
margin: 0 auto;}
|
||||
.content li{float: left;width: 20%;}
|
||||
.content li img{padding:2px;width: 97%;cursor: pointer;}
|
||||
.content .hover img{border:2px solid rgb(0, 235, 255);padding:0;}
|
||||
.bar {height:30px;background:#5EC29A;}
|
||||
.img-warp{
|
||||
height:444px;
|
||||
overflow-y:auto;
|
||||
}
|
||||
.fileinput-button{
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
background: #BBB;
|
||||
color: #ffffff;
|
||||
display: inline-block;
|
||||
padding: 4px 0;
|
||||
margin-bottom: 0;
|
||||
font-size: 14px;
|
||||
height: 22px;
|
||||
line-height: 22px;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
||||
width:100%;
|
||||
}
|
||||
.fileinput-button i{display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin: 4px;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
line-height: 14px;
|
||||
z-index: 999;
|
||||
position: relative;
|
||||
}
|
||||
.fileinput-button p{
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width:100%;
|
||||
z-index: 999;
|
||||
font-size: 16px;
|
||||
line-height:30px;
|
||||
}
|
||||
.fileinput-button.uploading p{z-index: 1002;}
|
||||
.fileinput-button input{cursor: pointer;
|
||||
direction: ltr;
|
||||
font-size: 1000px;
|
||||
margin: 0;
|
||||
opacity: 0;
|
||||
filter: alpha(opacity=0);
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
width: auto;
|
||||
vertical-align: middle;
|
||||
z-index: 1000;
|
||||
}
|
||||
.imgDiv{
|
||||
position: relative;
|
||||
}
|
||||
.imgDiv .imgControl{
|
||||
display:none;
|
||||
width: 100%;
|
||||
}
|
||||
.imgDiv.hover .imgControl{
|
||||
display:block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
}
|
||||
.imgDiv.hover .imgControl .del{background: rgb(0, 235, 255);
|
||||
font-size: 14px;
|
||||
padding: 0 6px;
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
color: #fff;
|
||||
right: 2px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.icon-plus{
|
||||
background: url(<?php echo base_url()?>statics/css/img/ui-icons.png) -210px -17px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
||||
<div class="img-warp">
|
||||
<ul class="content">
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="btn btn-success fileinput-button bar" id="fileinput-button">
|
||||
<div id="progress">
|
||||
<div class="bar" style="width: 100%;"></div>
|
||||
</div>
|
||||
<p><i class="icon-plus"></i><span>添加图片</span></p>
|
||||
<input id="upfile" type="file" name="files[]" multiple>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/common/plugins/fileupload/js/vendor/jquery.ui.widget.js?ver=20150320"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/plugins/fileupload/js/jquery.iframe-transport.js?ver=20150320"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/plugins/fileupload/js/jquery.fileupload.js?ver=20150320"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/fileUpload.js?2"></script>
|
||||
</body>
|
||||
</html>
|
||||
859
application/views/settings/fileupload22.php
Executable file
859
application/views/settings/fileupload22.php
Executable file
@@ -0,0 +1,859 @@
|
||||
<?php $this->load->view('header');?>
|
||||
<!-- Set
|
||||
render engine for 360
|
||||
browser -->
|
||||
<meta name="renderer" content="webkit">
|
||||
<!-- No
|
||||
Baidu Siteapp-->
|
||||
<meta http-equiv="Cache- Control" content="no-siteapp"/>
|
||||
<!-- Add
|
||||
to homescreen for
|
||||
Chrome on Android -->
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<!-- Add
|
||||
to homescreen for
|
||||
Safari on iOS -->
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/lib/webuploader/css/webuploader.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>statics/lib/webuploader/css/style.css"/>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.container{position:relative;}
|
||||
#progress{position: absolute;top:0;left:0;width:100%}
|
||||
.uploading #progress{z-index:1001;}
|
||||
.content{padding: 10px;width: 730px;
|
||||
margin: 0 auto;}
|
||||
.content li{float: left;width: 20%;}
|
||||
.content li img{padding:2px;width: 97%;cursor: pointer;}
|
||||
.content .hover img{border:2px solid rgb(0, 235, 255);padding:0;}
|
||||
.bar {height:30px;background:#5EC29A;}
|
||||
.img-warp{
|
||||
height:444px;
|
||||
overflow-y:auto;
|
||||
}
|
||||
.fileinput-button{
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
background: #BBB;
|
||||
color: #ffffff;
|
||||
display: inline-block;
|
||||
padding: 4px 0;
|
||||
margin-bottom: 0;
|
||||
font-size: 14px;
|
||||
height: 22px;
|
||||
line-height: 22px;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
||||
width:100%;
|
||||
}
|
||||
.fileinput-button i{display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin: 4px;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
line-height: 14px;
|
||||
z-index: 999;
|
||||
position: relative;
|
||||
}
|
||||
.fileinput-button p{
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width:100%;
|
||||
z-index: 999;
|
||||
font-size: 16px;
|
||||
line-height:30px;
|
||||
}
|
||||
.fileinput-button.uploading p{z-index: 1002;}
|
||||
.fileinput-button input{cursor: pointer;
|
||||
direction: ltr;
|
||||
font-size: 1000px;
|
||||
margin: 0;
|
||||
opacity: 0;
|
||||
filter: alpha(opacity=0);
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
width: auto;
|
||||
vertical-align: middle;
|
||||
z-index: 1000;
|
||||
}
|
||||
.imgDiv{
|
||||
position: relative;
|
||||
}
|
||||
.imgDiv .imgControl{
|
||||
display:none;
|
||||
width: 100%;
|
||||
}
|
||||
.imgDiv.hover .imgControl{
|
||||
display:block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
}
|
||||
.imgDiv.hover .imgControl .del{background: rgb(0, 235, 255);
|
||||
font-size: 14px;
|
||||
padding: 0 6px;
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
color: #fff;
|
||||
right: 2px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.icon-plus{
|
||||
background: url(<?php echo base_url()?>statics/css/img/ui-icons.png) -210px -17px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!--<div id="wrapper">
|
||||
<div id="container">
|
||||
<div id="uploader">
|
||||
<div class="queueList" >
|
||||
<div id="dndArea" class="placeholder">
|
||||
<div id="filePicker">
|
||||
</div>
|
||||
<p>
|
||||
或将照片拖到这里,单次最多可选300张
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="statusBar" style="display:none;">
|
||||
<div class="progress">
|
||||
<span class="text">0%</span>
|
||||
<span class="percentage"></span>
|
||||
</div>
|
||||
<div class="info"></div>
|
||||
<div class="btns">
|
||||
<div id="filePicker2"></div>
|
||||
<div class="uploadBtn">
|
||||
开始上传
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="wrapper">
|
||||
<div id="container">
|
||||
<div id="uploader">
|
||||
<div class="queueList">
|
||||
<div id="dndArea" class="placeholder element-invisible">
|
||||
<div id="filePicker" class="webuploader-container">
|
||||
<div class="webuploader-pick">
|
||||
点击选择图片
|
||||
</div>
|
||||
<div id="rt_rt_19nlgvkeicf41srs13ql1n8r16sg1" style="position: absolute; top: 20px; left: 75px; width: 168px; height: 44px; overflow: hidden; bottom: auto; right: auto;">
|
||||
<input class="webuploader-element-invisible" type="file" name="file" accept="image/*">
|
||||
<label style="opacity: 0; width: 100%; height: 100%; display: block; cursor: pointer; background: rgb(255, 255, 255) none repeat scroll 0% 0%;"></label>
|
||||
</div>
|
||||
</div>
|
||||
<p>
|
||||
或将照片拖到这里,单次最多可选300张
|
||||
</p>
|
||||
</div>
|
||||
<ul class="filelist">
|
||||
<li id="WU_FILE_0">
|
||||
<p class="title"></p>
|
||||
<p class="imgWrap">
|
||||
<img src="<?php echo base_url()?>data/upfile/goods/7/201506131318121029.png">
|
||||
<p class="progress">
|
||||
<span></span>
|
||||
</p>
|
||||
<div class="file-panel" style="height: 0px;">
|
||||
<span class="cancel">删除</span>
|
||||
<span class="rotateRight">向右旋转</span>
|
||||
<span class="rotateLeft">向左旋转</span>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="statusBar" style="">
|
||||
<div class="progress" style="display: none;">
|
||||
<span class="text">100%</span>
|
||||
<span class="percentage" style="width: 100%;"></span>
|
||||
</div>
|
||||
<div class="info">
|
||||
共1张(40.87K),已上传1张
|
||||
</div>
|
||||
<div class="btns">
|
||||
<div id="filePicker2" class="webuploader-container">
|
||||
<div class="webuploader-pick">
|
||||
继续添加
|
||||
</div>
|
||||
<div id="rt_rt_19nlgvkjs1lpv13qh1fkd1ie53rc6" style="position: absolute; top: 0px; left: 10px; width: 94px; height: 42px; overflow: hidden; bottom: auto; right: auto;">
|
||||
<input class="webuploader-element-invisible" type="file" name="file" multiple="multiple" accept="image/*">
|
||||
<label style="opacity: 0; width: 100%; height: 100%; display: block; cursor: pointer; background: rgb(255, 255, 255) none repeat scroll 0% 0%;"></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uploadBtn state-finish">
|
||||
开始上传
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript" src="<?php echo base_url()?>statics/lib/webuploader/js/jquery.js?ver=20150320"></script>
|
||||
<script type="text/javascript" src="<?php echo base_url()?>statics/lib/webuploader/js/base.js?ver=20150320"></script>
|
||||
<!--<script type="text/javascript" src="<?php echo base_url()?>statics/lib/webuploader/js/upload.js?ver=20150320"></script>-->
|
||||
<script src="<?php echo base_url()?>statics/js/common/plugins/fileupload/js/vendor/jquery.ui.widget.js?ver=20150320"></script>
|
||||
<script src="<?php echo base_url()?>statics/js/common/plugins/fileupload/js/jquery.iframe-transport.js?ver=20150320"></script>
|
||||
<script>
|
||||
(function( $ ){
|
||||
|
||||
// 当domReady的时候开始初始化
|
||||
$(function() {
|
||||
var a = {
|
||||
fileList: {},
|
||||
api: frameElement.api,
|
||||
page: {
|
||||
$container: $(".container"),
|
||||
$upfile: $("#upfile"),
|
||||
$content: $(".content"),
|
||||
$progress: $("#progress"),
|
||||
$fileinputButton: $("#fileinput-button"),
|
||||
uploadLock: !1
|
||||
}};
|
||||
|
||||
|
||||
var $wrap = $('#uploader'),
|
||||
|
||||
// 图片容器
|
||||
$queue = $( '<ul class="filelist"></ul>' )
|
||||
.appendTo( $wrap.find( '.queueList' ) ),
|
||||
|
||||
// 状态栏,包括进度和控制按钮
|
||||
$statusBar = $wrap.find( '.statusBar' ),
|
||||
|
||||
// 文件总体选择信息。
|
||||
$info = $statusBar.find( '.info' ),
|
||||
|
||||
// 上传按钮
|
||||
$upload = $wrap.find( '.uploadBtn' ),
|
||||
|
||||
// 没选择文件之前的内容。
|
||||
$placeHolder = $wrap.find( '.placeholder' ),
|
||||
|
||||
$progress = $statusBar.find( '.progress' ).hide(),
|
||||
|
||||
// 添加的文件数量
|
||||
fileCount = 0,
|
||||
|
||||
// 添加的文件总大小
|
||||
fileSize = 0,
|
||||
|
||||
// 优化retina, 在retina下这个值是2
|
||||
ratio = window.devicePixelRatio || 1,
|
||||
|
||||
// 缩略图大小
|
||||
thumbnailWidth = 110 * ratio,
|
||||
thumbnailHeight = 110 * ratio,
|
||||
|
||||
// 可能有pedding, ready, uploading, confirm, done.
|
||||
state = 'pedding',
|
||||
|
||||
// 所有文件的进度信息,key为file id
|
||||
percentages = {},
|
||||
// 判断浏览器是否支持图片的base64
|
||||
isSupportBase64 = ( function() {
|
||||
var data = new Image();
|
||||
var support = true;
|
||||
data.onload = data.onerror = function() {
|
||||
if( this.width != 1 || this.height != 1 ) {
|
||||
support = false;
|
||||
}
|
||||
}
|
||||
data.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";
|
||||
return support;
|
||||
} )(),
|
||||
|
||||
// 检测是否已经安装flash,检测flash的版本
|
||||
flashVersion = ( function() {
|
||||
var version;
|
||||
|
||||
try {
|
||||
version = navigator.plugins[ 'Shockwave Flash' ];
|
||||
version = version.description;
|
||||
} catch ( ex ) {
|
||||
try {
|
||||
version = new ActiveXObject('ShockwaveFlash.ShockwaveFlash')
|
||||
.GetVariable('$version');
|
||||
} catch ( ex2 ) {
|
||||
version = '0.0';
|
||||
}
|
||||
}
|
||||
version = version.match( /\d+/g );
|
||||
return parseFloat( version[ 0 ] + '.' + version[ 1 ], 10 );
|
||||
} )(),
|
||||
|
||||
supportTransition = (function(){
|
||||
var s = document.createElement('p').style,
|
||||
r = 'transition' in s ||
|
||||
'WebkitTransition' in s ||
|
||||
'MozTransition' in s ||
|
||||
'msTransition' in s ||
|
||||
'OTransition' in s;
|
||||
s = null;
|
||||
return r;
|
||||
})(),
|
||||
|
||||
// 实例
|
||||
uploader;
|
||||
|
||||
if ( !WebUploader.Uploader.support('flash') && WebUploader.browser.ie ) {
|
||||
|
||||
// flash 安装了但是版本过低。
|
||||
if (flashVersion) {
|
||||
(function(container) {
|
||||
window['expressinstallcallback'] = function( state ) {
|
||||
switch(state) {
|
||||
case 'Download.Cancelled':
|
||||
alert('您取消了更新!')
|
||||
break;
|
||||
|
||||
case 'Download.Failed':
|
||||
alert('安装失败')
|
||||
break;
|
||||
|
||||
default:
|
||||
alert('安装已成功,请刷新!');
|
||||
break;
|
||||
}
|
||||
delete window['expressinstallcallback'];
|
||||
};
|
||||
|
||||
var swf = './expressInstall.swf';
|
||||
// insert flash object
|
||||
var html = '<object type="application/' +
|
||||
'x-shockwave-flash" data="' + swf + '" ';
|
||||
|
||||
if (WebUploader.browser.ie) {
|
||||
html += 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
|
||||
}
|
||||
|
||||
html += 'width="100%" height="100%" style="outline:0">' +
|
||||
'<param name="movie" value="' + swf + '" />' +
|
||||
'<param name="wmode" value="transparent" />' +
|
||||
'<param name="allowscriptaccess" value="always" />' +
|
||||
'</object>';
|
||||
|
||||
container.html(html);
|
||||
|
||||
})($wrap);
|
||||
|
||||
// 压根就没有安转。
|
||||
} else {
|
||||
$wrap.html('<a href="http://www.adobe.com/go/getflashplayer" target="_blank" border="0"><img alt="get flash player" src="http://www.adobe.com/macromedia/style_guide/images/160x41_Get_Flash_Player.jpg" /></a>');
|
||||
}
|
||||
|
||||
return;
|
||||
} else if (!WebUploader.Uploader.support()) {
|
||||
alert( '系统不支持您的浏览器!');
|
||||
return;
|
||||
}
|
||||
|
||||
// 实例化
|
||||
var b = a.api.data || {};
|
||||
uploader = WebUploader.create({
|
||||
pick: {
|
||||
id: '#filePicker',
|
||||
label: '点击选择图片',
|
||||
multiple:false
|
||||
},
|
||||
formData: {
|
||||
uid: 123
|
||||
},
|
||||
dnd: '#dndArea',
|
||||
paste: '#uploader',
|
||||
swf: './Uploader.swf',
|
||||
chunked: false,
|
||||
chunkSize: 512 * 1024,
|
||||
server: '../basedata/inventory/uploadimages?invid='+b.id,
|
||||
// runtimeOrder: 'flash',
|
||||
|
||||
accept: {
|
||||
title: 'Images',
|
||||
extensions: 'gif,jpg,jpeg,bmp,png',
|
||||
mimeTypes: 'image/*'
|
||||
},
|
||||
sendAsBinary:true,
|
||||
compress:false,
|
||||
// 禁掉全局的拖拽功能。这样不会出现图片拖进页面的时候,把图片打开。
|
||||
disableGlobalDnd: true,
|
||||
fileNumLimit: 300,
|
||||
fileSizeLimit: 200 * 1024 * 1024, // 200 M
|
||||
fileSingleSizeLimit: 50 * 1024 * 1024 // 50 M
|
||||
});
|
||||
|
||||
// 拖拽时不接受 js, txt 文件。
|
||||
uploader.on( 'dndAccept', function( items ) {
|
||||
var denied = false,
|
||||
len = items.length,
|
||||
i = 0,
|
||||
// 修改js类型
|
||||
unAllowed = 'text/plain;application/javascript ';
|
||||
|
||||
for ( ; i < len; i++ ) {
|
||||
// 如果在列表里面
|
||||
if ( ~unAllowed.indexOf( items[ i ].type ) ) {
|
||||
denied = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return !denied;
|
||||
});
|
||||
|
||||
uploader.on('dialogOpen', function() {
|
||||
console.log('here');
|
||||
});
|
||||
|
||||
// uploader.on('filesQueued', function() {
|
||||
// uploader.sort(function( a, b ) {
|
||||
// if ( a.name < b.name )
|
||||
// return -1;
|
||||
// if ( a.name > b.name )
|
||||
// return 1;
|
||||
// return 0;
|
||||
// });
|
||||
// });
|
||||
|
||||
// 添加“添加文件”的按钮,
|
||||
uploader.addButton({
|
||||
id: '#filePicker2',
|
||||
label: '继续添加'
|
||||
});
|
||||
|
||||
uploader.on('ready', function() {
|
||||
window.uploader = uploader;
|
||||
});
|
||||
|
||||
// 当有文件添加进来时执行,负责view的创建
|
||||
function addFile( file ) {
|
||||
var $li = $( '<li id="' + file.id + '">' +
|
||||
'<p class="title">' + file.name + '</p>' +
|
||||
'<p class="imgWrap"></p>'+
|
||||
'<p class="progress"><span></span></p>' +
|
||||
'</li>' ),
|
||||
|
||||
$btns = $('<div class="file-panel">' +
|
||||
'<span class="cancel">删除</span>' +
|
||||
'<span class="rotateRight">向右旋转</span>' +
|
||||
'<span class="rotateLeft">向左旋转</span></div>').appendTo( $li ),
|
||||
$prgress = $li.find('p.progress span'),
|
||||
$wrap = $li.find( 'p.imgWrap' ),
|
||||
$info = $('<p class="error"></p>'),
|
||||
|
||||
showError = function( code ) {
|
||||
switch( code ) {
|
||||
case 'exceed_size':
|
||||
text = '文件大小超出';
|
||||
break;
|
||||
|
||||
case 'interrupt':
|
||||
text = '上传暂停';
|
||||
break;
|
||||
|
||||
default:
|
||||
text = '上传失败,请重试';
|
||||
break;
|
||||
}
|
||||
|
||||
$info.text( text ).appendTo( $li );
|
||||
};
|
||||
|
||||
if ( file.getStatus() === 'invalid' ) {
|
||||
showError( file.statusText );
|
||||
} else {
|
||||
// @todo lazyload
|
||||
$wrap.text( '预览中' );
|
||||
uploader.makeThumb( file, function( error, src ) {
|
||||
var img;
|
||||
|
||||
if ( error ) {
|
||||
$wrap.text( '不能预览' );
|
||||
return;
|
||||
}
|
||||
|
||||
if( isSupportBase64 ) {
|
||||
img = $('<img src="'+src+'">');
|
||||
$wrap.empty().append( img );
|
||||
} else {
|
||||
$.ajax('./preview.php', {
|
||||
method: 'POST',
|
||||
data: src,
|
||||
dataType:'json'
|
||||
}).done(function( response ) {
|
||||
if (response.result) {
|
||||
img = $('<img src="'+response.result+'">');
|
||||
$wrap.empty().append( img );
|
||||
} else {
|
||||
$wrap.text("预览出错");
|
||||
}
|
||||
});
|
||||
}
|
||||
}, thumbnailWidth, thumbnailHeight );
|
||||
|
||||
percentages[ file.id ] = [ file.size, 0 ];
|
||||
file.rotation = 0;
|
||||
}
|
||||
|
||||
file.on('statuschange', function( cur, prev ) {
|
||||
if ( prev === 'progress' ) {
|
||||
$prgress.hide().width(0);
|
||||
} else if ( prev === 'queued' ) {
|
||||
$li.off( 'mouseenter mouseleave' );
|
||||
$btns.remove();
|
||||
}
|
||||
|
||||
// 成功
|
||||
if ( cur === 'error' || cur === 'invalid' ) {
|
||||
console.log( file.statusText );
|
||||
showError( file.statusText );
|
||||
percentages[ file.id ][ 1 ] = 1;
|
||||
} else if ( cur === 'interrupt' ) {
|
||||
showError( 'interrupt' );
|
||||
} else if ( cur === 'queued' ) {
|
||||
percentages[ file.id ][ 1 ] = 0;
|
||||
} else if ( cur === 'progress' ) {
|
||||
$info.remove();
|
||||
$prgress.css('display', 'block');
|
||||
} else if ( cur === 'complete' ) {
|
||||
$li.append( '<span class="success"></span>' );
|
||||
}
|
||||
|
||||
$li.removeClass( 'state-' + prev ).addClass( 'state-' + cur );
|
||||
});
|
||||
|
||||
$li.on( 'mouseenter', function() {
|
||||
$btns.stop().animate({height: 30});
|
||||
});
|
||||
|
||||
$li.on( 'mouseleave', function() {
|
||||
$btns.stop().animate({height: 0});
|
||||
});
|
||||
|
||||
$btns.on( 'click', 'span', function() {
|
||||
var index = $(this).index(),
|
||||
deg;
|
||||
|
||||
switch ( index ) {
|
||||
case 0:
|
||||
uploader.removeFile( file );
|
||||
return;
|
||||
|
||||
case 1:
|
||||
file.rotation += 90;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
file.rotation -= 90;
|
||||
break;
|
||||
}
|
||||
|
||||
if ( supportTransition ) {
|
||||
deg = 'rotate(' + file.rotation + 'deg)';
|
||||
$wrap.css({
|
||||
'-webkit-transform': deg,
|
||||
'-mos-transform': deg,
|
||||
'-o-transform': deg,
|
||||
'transform': deg
|
||||
});
|
||||
} else {
|
||||
$wrap.css( 'filter', 'progid:DXImageTransform.Microsoft.BasicImage(rotation='+ (~~((file.rotation/90)%4 + 4)%4) +')');
|
||||
// use jquery animate to rotation
|
||||
// $({
|
||||
// rotation: rotation
|
||||
// }).animate({
|
||||
// rotation: file.rotation
|
||||
// }, {
|
||||
// easing: 'linear',
|
||||
// step: function( now ) {
|
||||
// now = now * Math.PI / 180;
|
||||
|
||||
// var cos = Math.cos( now ),
|
||||
// sin = Math.sin( now );
|
||||
|
||||
// $wrap.css( 'filter', "progid:DXImageTransform.Microsoft.Matrix(M11=" + cos + ",M12=" + (-sin) + ",M21=" + sin + ",M22=" + cos + ",SizingMethod='auto expand')");
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
$li.appendTo( $queue );
|
||||
}
|
||||
|
||||
// 负责view的销毁
|
||||
function removeFile( file ) {
|
||||
var $li = $('#'+file.id);
|
||||
|
||||
delete percentages[ file.id ];
|
||||
updateTotalProgress();
|
||||
$li.off().find('.file-panel').off().end().remove();
|
||||
}
|
||||
|
||||
function updateTotalProgress() {
|
||||
var loaded = 0,
|
||||
total = 0,
|
||||
spans = $progress.children(),
|
||||
percent;
|
||||
|
||||
$.each( percentages, function( k, v ) {
|
||||
total += v[ 0 ];
|
||||
loaded += v[ 0 ] * v[ 1 ];
|
||||
} );
|
||||
|
||||
percent = total ? loaded / total : 0;
|
||||
|
||||
|
||||
spans.eq( 0 ).text( Math.round( percent * 100 ) + '%' );
|
||||
spans.eq( 1 ).css( 'width', Math.round( percent * 100 ) + '%' );
|
||||
updateStatus();
|
||||
}
|
||||
|
||||
function updateStatus() {
|
||||
var text = '', stats;
|
||||
|
||||
if ( state === 'ready' ) {
|
||||
text = '选中' + fileCount + '张图片,共' +
|
||||
WebUploader.formatSize( fileSize ) + '。';
|
||||
} else if ( state === 'confirm' ) {
|
||||
stats = uploader.getStats();
|
||||
if ( stats.uploadFailNum ) {
|
||||
text = '已成功上传' + stats.successNum+ '张照片至XX相册,'+
|
||||
stats.uploadFailNum + '张照片上传失败,<a class="retry" href="#">重新上传</a>失败图片或<a class="ignore" href="#">忽略</a>'
|
||||
}
|
||||
|
||||
} else {
|
||||
stats = uploader.getStats();
|
||||
text = '共' + fileCount + '张(' +
|
||||
WebUploader.formatSize( fileSize ) +
|
||||
'),已上传' + stats.successNum + '张';
|
||||
|
||||
if ( stats.uploadFailNum ) {
|
||||
text += ',失败' + stats.uploadFailNum + '张';
|
||||
}
|
||||
}
|
||||
|
||||
$info.html( text );
|
||||
}
|
||||
|
||||
function setState( val ) {
|
||||
var file, stats;
|
||||
|
||||
if ( val === state ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$upload.removeClass( 'state-' + state );
|
||||
$upload.addClass( 'state-' + val );
|
||||
state = val;
|
||||
|
||||
switch ( state ) {
|
||||
case 'pedding':
|
||||
$placeHolder.removeClass( 'element-invisible' );
|
||||
$queue.hide();
|
||||
$statusBar.addClass( 'element-invisible' );
|
||||
uploader.refresh();
|
||||
break;
|
||||
|
||||
case 'ready':
|
||||
$placeHolder.addClass( 'element-invisible' );
|
||||
$( '#filePicker2' ).removeClass( 'element-invisible');
|
||||
$queue.show();
|
||||
$statusBar.removeClass('element-invisible');
|
||||
uploader.refresh();
|
||||
break;
|
||||
|
||||
case 'uploading':
|
||||
$( '#filePicker2' ).addClass( 'element-invisible' );
|
||||
$progress.show();
|
||||
$upload.text( '暂停上传' );
|
||||
break;
|
||||
|
||||
case 'paused':
|
||||
$progress.show();
|
||||
$upload.text( '继续上传' );
|
||||
break;
|
||||
|
||||
case 'confirm':
|
||||
$progress.hide();
|
||||
$( '#filePicker2' ).removeClass( 'element-invisible' );
|
||||
$upload.text( '开始上传' );
|
||||
|
||||
stats = uploader.getStats();
|
||||
if ( stats.successNum && !stats.uploadFailNum ) {
|
||||
setState( 'finish' );
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case 'finish':
|
||||
stats = uploader.getStats();
|
||||
if ( stats.successNum ) {
|
||||
alert( '上传成功' );
|
||||
} else {
|
||||
// 没有成功的图片,重设
|
||||
state = 'done';
|
||||
location.reload();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
updateStatus();
|
||||
}
|
||||
|
||||
uploader.onUploadProgress = function( file, percentage ) {
|
||||
var $li = $('#'+file.id),
|
||||
$percent = $li.find('.progress span');
|
||||
|
||||
$percent.css( 'width', percentage * 100 + '%' );
|
||||
percentages[ file.id ][ 1 ] = percentage;
|
||||
updateTotalProgress();
|
||||
};
|
||||
|
||||
uploader.onFileQueued = function( file ) {
|
||||
fileCount++;
|
||||
fileSize += file.size;
|
||||
|
||||
if ( fileCount === 1 ) {
|
||||
$placeHolder.addClass( 'element-invisible' );
|
||||
$statusBar.show();
|
||||
}
|
||||
|
||||
addFile( file );
|
||||
setState( 'ready' );
|
||||
updateTotalProgress();
|
||||
};
|
||||
|
||||
uploader.onFileDequeued = function( file ) {
|
||||
fileCount--;
|
||||
fileSize -= file.size;
|
||||
|
||||
if ( !fileCount ) {
|
||||
setState( 'pedding' );
|
||||
}
|
||||
|
||||
removeFile( file );
|
||||
updateTotalProgress();
|
||||
|
||||
};
|
||||
|
||||
uploader.on( 'all', function( type ) {
|
||||
var stats;
|
||||
switch( type ) {
|
||||
case 'uploadFinished':
|
||||
setState( 'confirm' );
|
||||
break;
|
||||
|
||||
case 'startUpload':
|
||||
setState( 'uploading' );
|
||||
break;
|
||||
|
||||
case 'stopUpload':
|
||||
setState( 'paused' );
|
||||
break;
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
uploader.onError = function( code ) {
|
||||
alert( 'Eroor: ' + code );
|
||||
};
|
||||
|
||||
$upload.on('click', function() {
|
||||
if ( $(this).hasClass( 'disabled' ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( state === 'ready' ) {
|
||||
uploader.upload();
|
||||
} else if ( state === 'paused' ) {
|
||||
uploader.upload();
|
||||
} else if ( state === 'uploading' ) {
|
||||
uploader.stop();
|
||||
}
|
||||
});
|
||||
|
||||
$info.on( 'click', '.retry', function() {
|
||||
uploader.retry();
|
||||
} );
|
||||
|
||||
$info.on( 'click', '.ignore', function() {
|
||||
alert( 'todo' );
|
||||
} );
|
||||
|
||||
$upload.addClass( 'state-' + state );
|
||||
updateTotalProgress();
|
||||
|
||||
|
||||
|
||||
var b = a.api.data || {};
|
||||
b.id && Public.ajaxPost("../basedata/inventory/getImagesById", {
|
||||
id: b.id
|
||||
}, function(b) {
|
||||
200 == b.status ? a.addImgDiv(b.files) : parent.parent.Public.tips({
|
||||
type: 1,
|
||||
content: "获取商品图片失败!"
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
})( jQuery );
|
||||
</script>
|
||||
<!--<div class="container">
|
||||
|
||||
<div class="img-warp">
|
||||
<ul class="content">
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="btn btn-success fileinput-button bar" id="fileinput-button">
|
||||
<div id="progress">
|
||||
<div class="bar" style="width: 100%;"></div>
|
||||
</div>
|
||||
<p><i class="icon-plus"></i><span>添加图片</span></p>
|
||||
<input id="upfile" type="file" name="files[]" multiple>
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
<!--<script src="<?php echo base_url()?>statics/js/common/plugins/fileupload/js/jquery.fileupload.js?ver=20150320"></script>-->
|
||||
<!--<script src="<?php echo base_url()?>statics/js/dist/fileUpload.js?2"></script>-->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
40
application/views/settings/goods-batch.php
Executable file
40
application/views/settings/goods-batch.php
Executable file
@@ -0,0 +1,40 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#matchCon { width: 200px; }
|
||||
.grid-wrap{position:relative;}
|
||||
.ztreeDefault{position: absolute;right: 0;top: 0;background-color: #fff;border: 1px solid #D6D5D5;width: 140px;height: 406px;overflow-y: auto;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="bgwh">
|
||||
<div class="container fix p20">
|
||||
<div class="mod-search m0 cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph" value="请输入商品编号或名称或型号">
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="search">查询</a><!-- <a class="ui-btn" id="refresh">刷新</a> --></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/goodsBatch.js?2"></script>
|
||||
</body>
|
||||
</html>
|
||||
92
application/views/settings/goods-export.php
Executable file
92
application/views/settings/goods-export.php
Executable file
@@ -0,0 +1,92 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table class="table" width="1500" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="21" align="center"><h3>商品明细表</h3></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th width="80" >商品编号</th>
|
||||
<th width="100" >商品名称</th>
|
||||
<th width="100" >商品条码</th>
|
||||
<th width="80" >商品规格</th>
|
||||
<th width="80" >商品类别</th>
|
||||
<th width="80" >首选仓库</th>
|
||||
<th width="80" >当前库存</th>
|
||||
<th width="80" >最低库存</th>
|
||||
<th width="80" >最高库存</th>
|
||||
<th width="80" >计量单位</th>
|
||||
<th width="100" >预计采购价</th>
|
||||
<th width="60" >零售价</th>
|
||||
<th width="60" >批发价</th>
|
||||
<th width="60" >会员价</th>
|
||||
<th width="120" >折扣率一(%)</th>
|
||||
<th width="120" >折扣率二(%)</th>
|
||||
<th width="120" >备注</th>
|
||||
<th width="80" >仓库</th>
|
||||
<th width="70" align="center">初期数量</th>
|
||||
<th width="70" align="center">单位成本</th>
|
||||
<th width="70" align="center">初期总价</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i = 1;
|
||||
foreach($list as $arr=>$row) {
|
||||
?>
|
||||
<tr target="id">
|
||||
<td ><?php echo $row['number']?></td>
|
||||
<td ><?php echo $row['name']?></td>
|
||||
<td ><?php echo $row['barCode']?></td>
|
||||
<td ><?php echo $row['spec']?></td>
|
||||
<td ><?php echo $row['categoryName']?></td>
|
||||
<td ><?php echo $row['locationName']?></td>
|
||||
<td ><?php echo $row['totalqty']?></td>
|
||||
<td ><?php echo $row['lowQty']?></td>
|
||||
<td ><?php echo $row['highQty']?></td>
|
||||
<td ><?php echo $row['unitName']?></td>
|
||||
<td ><?php echo $row['purPrice']?></td>
|
||||
<td ><?php echo $row['salePrice']?></td>
|
||||
<td ><?php echo $row['wholesalePrice']?></td>
|
||||
<td ><?php echo $row['vipPrice']?></td>
|
||||
<td ><?php echo $row['discountRate1']?></td>
|
||||
<td ><?php echo $row['discountRate2']?></td>
|
||||
<td ><?php echo $row['remark']?></td>
|
||||
|
||||
<td ></td>
|
||||
<td ><?php echo $row['iniqty']?></td>
|
||||
<td ><?php echo $row['iniqty']>0 ? $row['iniamount']/$row['iniqty'] :''?></td>
|
||||
<td ><?php echo $row['iniamount']?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$propertys = (array)json_decode($row['propertys'],true);
|
||||
foreach ($propertys as $arr1=>$row1) {
|
||||
?>
|
||||
<tr target="id">
|
||||
<td ></td>
|
||||
<td ></td>
|
||||
<td ></td>
|
||||
<td ></td>
|
||||
<td ></td>
|
||||
<td ></td>
|
||||
<td ></td>
|
||||
<td ></td>
|
||||
<td ></td>
|
||||
<td ></td>
|
||||
<td ></td>
|
||||
<td ></td>
|
||||
<td ></td>
|
||||
<td ></td>
|
||||
<td ></td>
|
||||
<td ></td>
|
||||
<td ></td>
|
||||
<td ><?php echo $storage[$row1['locationId']]?></td>
|
||||
<td ><?php echo $row1['quantity']?></td>
|
||||
<td ><?php echo $row1['unitCost']?></td>
|
||||
<td ><?php echo $row1['amount']?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php $i++;}?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
78
application/views/settings/goods-list.php
Executable file
78
application/views/settings/goods-list.php
Executable file
@@ -0,0 +1,78 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body{overflow-y:hidden;}
|
||||
.matchCon{width:280px;}
|
||||
#tree{background-color: #fff;width: 225px;border: solid #ddd 1px;margin-left: 5px;height:100%;}
|
||||
h3{background: #EEEEEE;border: 1px solid #ddd;padding: 5px 10px;}
|
||||
.grid-wrap{position:relative;}
|
||||
.grid-wrap h3{border-bottom: none;}
|
||||
#tree h3{border-style:none;border-bottom:solid 1px #D8D8D8;}
|
||||
.quickSearchField{padding :10px; background-color: #f5f5f5;border-bottom:solid 1px #D8D8D8;}
|
||||
#searchCategory input{width:165px;}
|
||||
.innerTree{overflow-y:auto;}
|
||||
#hideTree{cursor: pointer;color:#fff;padding: 0 4px;background-color: #B9B9B9;border-radius: 3px;position: absolute;top: 5px;right: 5px;}
|
||||
#hideTree:hover{background-color: #AAAAAA;}
|
||||
#clear{display:none;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-search cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph matchCon" value="按商品编号,商品名称,规格型号等查询">
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="search">查询</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb" id="btn-add">新增</a><!--<a href="#" class="ui-btn mrb" id="btn-print">打印</a>--><a class="ui-btn mrb" id="btn-disable">禁用</a><a class="ui-btn mrb" id="btn-enable">启用</a><a href="#" class="ui-btn mrb" id="btn-import">导入</a><a href="#" class="ui-btn mrb" id="btn-export">导出</a><a href="#" class="ui-btn" id="btn-batchDel">删除</a></div>
|
||||
</div>
|
||||
<div class="cf">
|
||||
<div class="grid-wrap fl cf">
|
||||
<h3>当前分类:<span id='currentCategory'></span><a href="javascript:void(0);" id='hideTree'>>></a></h3>
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
<div class="fl cf" id='tree'>
|
||||
<h3>快速查询</h3>
|
||||
<div class="quickSearchField dn">
|
||||
<form class="ui-search" id="searchCategory">
|
||||
<input type="text" class="ui-input" /><button type="submit" title="点击搜索" >搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/goodsList.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
304
application/views/settings/goods-manage.php
Executable file
304
application/views/settings/goods-manage.php
Executable file
@@ -0,0 +1,304 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>statics/js/common/plugins/validator/jquery.validator.css">
|
||||
<script type="text/javascript" src="<?php echo base_url()?>statics/js/common/plugins/validator/jquery.validator.js"></script>
|
||||
<script type="text/javascript" src="<?php echo base_url()?>statics/js/common/plugins/validator/local/zh_CN.js"></script>
|
||||
<style>
|
||||
body{background: #fff;}
|
||||
.ui-combo-wrap{position:static;}
|
||||
.mod-form-rows .label-wrap{font-size:12px;}
|
||||
.manage-wrap .ui-input{width: 198px;}
|
||||
.base-form{*zoom: 1;margin:0 -10px;}
|
||||
.base-form:after{content: '.';display: block;clear: both;height: 0;overflow: hidden;}
|
||||
.base-form .row-item{float: left;width: 290px;height: 31px;margin: 0 10px;overflow: visible;padding-bottom:15px;}
|
||||
.manage-wrapper{margin:0 auto;width:722px;}
|
||||
.manage-wrap textarea.ui-input{width: 100%;height: 80px;*vertical-align:auto;overflow: hidden;box-sizing: border-box;}
|
||||
#manage-form{overflow: hidden;}
|
||||
#warning,#warningSku{margin-right: 20px;color: #FF5F5F;}
|
||||
#warning input ,#warningSku input{vertical-align: middle;}
|
||||
.contacters{margin-bottom: 10px;}
|
||||
.contacters h3{margin-bottom: 10px;font-weight: normal;}
|
||||
.ui-jqgrid-bdiv .ui-state-highlight { background: none; }
|
||||
.operating .ui-icon{ margin:0; }
|
||||
.ui-icon-plus { background-position:-80px 0; }
|
||||
.ui-icon-trash { background-position:-64px 0; }
|
||||
.mod-form-rows .ctn-wrap{overflow: visible;;}
|
||||
.mod-form-rows .pb0{margin-bottom:0;}
|
||||
.liGroup{display:block;position:relative;z-index:1;padding-top: 15px;margin-top: 40px; border-top: solid 1px #ccc;}
|
||||
.liGroup.dn{display:none;}
|
||||
.liGroup h3{position: absolute;top: -20px;background-color: #fff;padding: 0 10px;color: #4B4B4B;}
|
||||
.liGroup a{cursor: help;border-bottom:dotted #555 1px;}
|
||||
.base-form .row-item{width: 227px;padding-bottom:9px;}
|
||||
.manage-wrap .ui-input{width: 135px;}
|
||||
.ui-tab{border-left:none;border-bottom: 1px solid #EBEBEB; background-color: #fff; position: fixed; width: 100%; top: 0; left: 0; z-index: 999;}
|
||||
.ui-tab li {border-top:none;border-bottom:none;border-color:#EBEBEB;padding:0 20px;}
|
||||
.prop-wrap{line-height: 26px;margin-bottom: 20px;}
|
||||
.prop-wrap.on{background: #f4f4f4;}
|
||||
.qur-wrap{line-height: 42px;margin-bottom: 20px;}
|
||||
.qur-wrap.on{background: #f4f4f4;}
|
||||
.prop-wrap input{vertical-align: middle;margin-right: 3px;}
|
||||
|
||||
.prop-wrap label {margin-right: 8px;}
|
||||
.prop-wrap .content{padding: 5px 0 12px 15px;height: 35px;overflow-y: auto;}
|
||||
#createSku{color:#948D8D; font-size: 20px;border: dotted 2px #948D8D;padding: 0 15px;cursor: pointer;line-height: 15px;display: inline-block;vertical-align: middle;}
|
||||
#createSku:hover{color:#1680F3;border-color:#1680F3;}
|
||||
.serField{padding: 10px 0;}
|
||||
#isSerNum{vertical-align: middle;margin-left: 17px;}
|
||||
#isWarranty{vertical-align: middle;margin-left: 17px;}
|
||||
.isWarrantyData{float: left; margin-left: 17px;}
|
||||
.fl{float: left;}
|
||||
.cle{clear: both;}
|
||||
#patchInputBox{ padding: 10px; border: 1px solid #ccc; background-color: #fff;}
|
||||
.shadow{ -moz-box-shadow: 1px 1px 3px rgba(0,0,0,.4); -webkit-box-shadow: 1px 1px 3px rgba(0,0,0,.4); box-shadow: 1px 1px 3px rgba(0,0,0,.4);}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="hd cf">
|
||||
<ul class="ui-tab" id="tab">
|
||||
<li class="cur tabItem">基础资料</li>
|
||||
<li class="tabItem">库存预警</li>
|
||||
<li class="tabItem">高级</li>
|
||||
<li class="tabItem">期初设置</li>
|
||||
<li class="tabItem">套餐</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="tabContent">
|
||||
<div id="base" style='width:100%;height:45px;'></div>
|
||||
<div class="manage-wrapper">
|
||||
<div id="manage-wrap" class="manage-wrap">
|
||||
<form id="manage-form" action="">
|
||||
<ul class="mod-form-rows base-form cf" id="base-form">
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="number">商品编号</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="number" id="number"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="name">商品名称</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="name" id="name"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="barCode">商品条码</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="barCode" id="barCode"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="specs">规格型号</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="specs" id="specs" /></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="category">商品类别</label></div>
|
||||
<div class="ctn-wrap"><span id="category"></span></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="storage">首选仓库</label></div>
|
||||
<div class="ctn-wrap"><span id="storage"></span></div>
|
||||
</li>
|
||||
|
||||
<li class="row-item row-category">
|
||||
<div class="label-wrap"><label for="unit">计量单位</label></div>
|
||||
<div class="ctn-wrap"><span id="unit"></span></div>
|
||||
</li>
|
||||
|
||||
<li class="row-item dn">
|
||||
<div class="label-wrap"><label for="guarantDate">保质期天数</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input rate" name="guarantDate" id="guarantDate"></div>
|
||||
</li>
|
||||
<li class="row-item dn">
|
||||
<div class="label-wrap"><label for="warnDate">报警天数</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input rate" name="warnDate" id="warnDate"></div>
|
||||
</li>
|
||||
</ul>
|
||||
<div id="jdInfo" class="liGroup cf dn">
|
||||
<h3>维护京东仓储信息</h3>
|
||||
<ul class="mod-form-rows base-form cf">
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="jianxing">商品件型</label></div>
|
||||
<div class="ctn-wrap"><span id="jianxing"></span></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="length">长(mm)</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="length" id="length"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="width">宽(mm)</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="width" id="width"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="height">高(mm)</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="height" id="height"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="weight">重量(kg)</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="weight" id="weight"></div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="liGroup cf">
|
||||
<h3>价格策略</h3>
|
||||
<ul class="mod-form-rows base-form cf">
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="salePrice">零售价</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input money" name="salePrice" id="salePrice"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="wholesalePrice">批发价</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input money" name="wholesalePrice" id="wholesalePrice"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="vipPrice">VIP会员价</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input money" name="vipPrice" id="vipPrice"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="discountRate1">折扣率一(%)</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input rate" name="discountRate1" id="discountRate1"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="discountRate2">折扣率二(%)</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input rate" name="discountRate2" id="discountRate2"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="purchasePrice">预计采购价</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input money" name="purchasePrice" id="purchasePrice" /></div>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="mod-form-rows">
|
||||
<li class="row-item pb0">
|
||||
<div class="ctn-wrap" style="line-height: normal;"><textarea name="" id="note" class="ui-input ui-input-ph">添加备注信息</textarea></div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="initCombo" class="dn">
|
||||
<input type="text" class="textbox storageAuto" name="storage" autocomplete="off">
|
||||
<input type="text" class="textbox dateAuto" name="date" autocomplete="off">
|
||||
<input type="text" class="textbox storageAuto_warning" name="storage_warning" autocomplete="off">
|
||||
<input type="text" class="textbox skuAuto" name="sku" autocomplete="off">
|
||||
<input type="text" class="textbox skuPropAuto" name="skuProp" autocomplete="off">
|
||||
<input type="text" class="textbox goodsAuto" name="goods" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
<div class="manage-wrapper dn">
|
||||
<div id="manage-wrap" class="manage-wrap">
|
||||
<div class="cf">
|
||||
<!-- <h3>库存预警</h3> --><label id='warning'><input type="checkbox">启用分仓预警</label><label id='warningSku' class="dn"><input type="checkbox">根据属性设置</label>
|
||||
<ul class="mod-form-rows base-form cf">
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="minInventory">最低库存</label></div>
|
||||
<div class="ctn-wrap"><input type="text" class="ui-input" name="minInventory" id="minInventory"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="maxInventory">最高库存</label></div>
|
||||
<div class="ctn-wrap"><input type="text" class="ui-input" name="maxInventory" id="maxInventory"></div>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="grid-wrap">
|
||||
<table id="gridWarning">
|
||||
</table>
|
||||
<div id="pageWarning"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="manage-wrapper dn">
|
||||
<div id="manage-wrap" class="manage-wrap">
|
||||
<div class="cf">
|
||||
<!-- <h3>高级设置</h3> -->
|
||||
<div class="row-item prop-wrap on dn">
|
||||
<span class="check-wrap adjust-item">
|
||||
<!-- <input type="checkbox" name="isItem" id="isItem"> -->
|
||||
<label for="isItem">辅助属性分类</label>
|
||||
</span>
|
||||
<div class="content" id="itemList">
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="gridSku">
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row-item qur-wrap on dn">
|
||||
<label for="isWarranty">启用批次保质期管理</label>
|
||||
<input type="checkbox" id="isWarranty"/>
|
||||
<span class = "isWarrantyIn dn">
|
||||
<label for="safeDays">保质期天数</label>
|
||||
<input type="text" value="" class="ui-input rate" name="safeDays" id="safeDays">
|
||||
<label for="advanceDay">报警天数</label>
|
||||
<input type="text" value="" class="ui-input rate" name="advanceDay" id="advanceDay">
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row-item serField dn">
|
||||
<label for="isSerNum">启用序列号</label>
|
||||
<input type="checkbox" id="isSerNum"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="manage-wrapper dn">
|
||||
<div id="manage-wrap" class="manage-wrap">
|
||||
<div class="cf">
|
||||
<!-- <h3>期初设置</h3> -->
|
||||
<div class="contacters">
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="manage-wrapper dn">
|
||||
<div id="manage-wrap" class="manage-wrap">
|
||||
<div class="cf">
|
||||
<!-- <h3>组合商品</h3> -->
|
||||
<div class="contacters">
|
||||
<div class="grid-wrap">
|
||||
<table id="gridCombination">
|
||||
</table>
|
||||
<div id="pageCombination"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="patchInputBox" class="shadow target_box dn">
|
||||
<script src="<?php echo base_url()?>statics/js/dist/goodsManage.js?ver=201508191130"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
167
application/views/settings/import.php
Executable file
167
application/views/settings/import.php
Executable file
@@ -0,0 +1,167 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script src="<?php echo base_url()?>statics/js/common/libs/swfupload/swfupload.js?v=2015616"></script>
|
||||
<style>
|
||||
.wrapper {padding: 15px 0 0 18px;min-width: 0;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-inner" style="width:480px; ">
|
||||
<h3>批量导入客户、供应商、商品信息及初始余额</h3>
|
||||
<ul class="mod-steps" id="import-steps">
|
||||
<li><span class="current">1.下载模版</span>></li>
|
||||
<li><span>2.导入Excel</span>></li>
|
||||
<li><span>3.导入完毕</span></li>
|
||||
</ul>
|
||||
<div id="import-wrap" class="cf">
|
||||
<div id="import-step1" class="step-item">
|
||||
<div class="ctn">
|
||||
<h3 class="tit">温馨提示:</h3>
|
||||
<p>导入模板的格式不能修改,录入方法请参考演示模板。</p>
|
||||
</div>
|
||||
<p><a href="../index.php/basedata/import/downloadtemplate1" class="link">下载导入客户模版</a></p>
|
||||
<p><a href="../index.php/basedata/import/downloadtemplate2" class="link">下载导入供应商模版</a></p>
|
||||
<p><a href="../index.php/basedata/import/downloadtemplate3" class="link">下载导入商品模版</a></p>
|
||||
<div class="step-btns">
|
||||
<a href="#" class="ui-btn ui-btn-sp" rel="step2">下一步</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="import-step2" class="step-item" style="display:none;">
|
||||
<div class="ctn file-import-ctn">
|
||||
<form action="uploadExcel" enctype="multipart/form-data" id="fileUploadForm">
|
||||
<input type="file" accept=".xls" name="docFile" id="docFile" style="display: none;" onchange="document.getElementById('filePath').value=this.value"/>
|
||||
</form>
|
||||
<span class="tit">请选择要导入文件:</span>
|
||||
<input type="text" name="filePath" id="filePath" class="ui-input" readonly autocomplete="false" style="width:200px;" />
|
||||
<!-- <span id="import-btn-wrap"><span id="import-btn"></span></span> -->
|
||||
<input type="button" value="" style="background:url('<?php echo base_url()?>statics/js/common/libs/swfupload/import-btn.png') no-repeat;border: none;vertical-align:middle;display:inline-block;*display:inline;zoom:1;width:60px;height:32px;" onclick="document.getElementById('docFile').click()"/><br>
|
||||
</div>
|
||||
<div class="step-btns">
|
||||
<a href="#" class="ui-btn mrb" rel="step1">上一步</a><a href="#" class="ui-btn ui-btn-sp"
|
||||
id="btn-import">导入</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="import-step3" class="step-item" style="display:none;">
|
||||
<div class="ctn file-import-ctn" id="import-result"></div>
|
||||
|
||||
<div class="step-btns">
|
||||
<a href="#" class="ui-btn mrb" id="a_step3">上一步</a><a href="#" class="ui-btn ui-btn-sp" id
|
||||
="btn-complete">完成</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function getTabWindow() { var curTabWin = null; var curTab = parent.$('#page-tab').tabs('getSelected'); if (curTab && curTab.find('iframe').length > 0) { curTabWin = curTab.find('iframe')[0].contentWindow; } return curTabWin; }
|
||||
(function($){
|
||||
$('#import-wrap .step-btns a[rel]').bind('click',function(e){
|
||||
var step = $(this).attr('rel').substr(4,1)-1;
|
||||
if(step < 2){
|
||||
$('#import-wrap .step-item').eq(step).show().siblings().hide();
|
||||
$('#import-steps >li >span').removeClass('current');
|
||||
$('#import-steps >li >span').eq(step).addClass('current');
|
||||
} else {
|
||||
|
||||
}
|
||||
e.preventDefault();
|
||||
});
|
||||
$('#a_step3').bind('click',function(e){
|
||||
$('#import-wrap .step-item').eq(1).show().siblings().hide();
|
||||
$('#import-steps >li >span').eq(2).removeClass('current');
|
||||
$('#import-steps >li >span').eq(1).addClass('current');
|
||||
e.preventDefault();
|
||||
});
|
||||
$('#btn-complete').on('click',function(e){
|
||||
|
||||
var callback = frameElement.api.data.callback;
|
||||
if($.isFunction(callback)){
|
||||
callback();
|
||||
}
|
||||
frameElement.api.close();
|
||||
//var tab = parent.$('#page-tab').ligerGetTabManager();
|
||||
//tab.getTabItem();
|
||||
//parent.$("#search",pwin.document).html('222');
|
||||
//$("#search",window.parent.document).click();
|
||||
});
|
||||
$('#btn-import').on('click',function(e){
|
||||
$('#import-result').empty();
|
||||
var obj = document.getElementById("docFile");
|
||||
if(obj.value=="")
|
||||
{
|
||||
parent.Public.tips({content : '请选择要上传的文件!', type : 2});
|
||||
return;
|
||||
}
|
||||
var formData = new FormData();
|
||||
var name = $("filePath").val();
|
||||
formData.append("file",$("#docFile")[0].files[0]);
|
||||
formData.append("name",name);
|
||||
$.ajax({
|
||||
url : '../index.php/basedata/import/uploadExcel',
|
||||
type : 'POST',
|
||||
data : formData,
|
||||
// 告诉jQuery不要去处理发送的数据
|
||||
processData : false,
|
||||
// 告诉jQuery不要去设置Content-Type请求头
|
||||
contentType : false,
|
||||
dataType:'json',
|
||||
beforeSend:function(){
|
||||
console.log("正在进行,请稍候");
|
||||
},
|
||||
success : function(data) {
|
||||
$('#import-wrap .step-item').eq(2).show().siblings().hide();
|
||||
$('#import-steps >li >span').eq(1).removeClass('current');
|
||||
$('#import-steps >li >span').eq(2).addClass('current');
|
||||
var html='<font color="red">'+data.msg+'</font>';
|
||||
$('#import-result').append(html);
|
||||
if(data.status===200){
|
||||
|
||||
}else{
|
||||
|
||||
}
|
||||
},
|
||||
error : function(data) {
|
||||
$('#import-result').append('上传文件过程中失败,请重试!');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
42
application/views/settings/inventory-warning-exporter.php
Executable file
42
application/views/settings/inventory-warning-exporter.php
Executable file
@@ -0,0 +1,42 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table class="table" width="1500" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="10" align="center"><h3>库存预警商品</h3></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th width="80" >商品编号</th>
|
||||
<th width="100" >商品名称</th>
|
||||
<th width="80" >商品类别</th>
|
||||
<th width="80" >规格型号</th>
|
||||
<th width="80" >单位</th>
|
||||
<th width="80" >仓库</th>
|
||||
<th width="80" >最低库存</th>
|
||||
<th width="80" >最高库存</th>
|
||||
<th width="80" >结存数量</th>
|
||||
<th width="80" >超限数量</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i = 1;
|
||||
foreach($list as $arr=>$row) {
|
||||
?>
|
||||
<tr target="id">
|
||||
<td ><?php echo $row['invNumber']?></td>
|
||||
<td ><?php echo $row['invName']?></td>
|
||||
<td ><?php echo $row['categoryName']?></td>
|
||||
<td ><?php echo $row['invSpec']?></td>
|
||||
<td ><?php echo $row['unitName']?></td>
|
||||
<td ><?php echo $row['locationName']?></td>
|
||||
<td ><?php echo $row['lowQty']?></td>
|
||||
<td ><?php echo $row['highQty']?></td>
|
||||
<td ><?php echo $row['qty']?></td>
|
||||
<td ><?php echo $row['qty1'] > 0 ? $row['qty1'] : $row['qty2']; ?></td>
|
||||
</tr>
|
||||
<?php $i++;}?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
366
application/views/settings/inventory-warning.php
Executable file
366
application/views/settings/inventory-warning.php
Executable file
@@ -0,0 +1,366 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#matchCon { width: 165px; }
|
||||
#tab{margin-bottom: 20px;}
|
||||
.ui-tab{border-left:none;border-bottom: 1px solid #EBEBEB; position: absolute; background-color: #fff; top: 0; left: 0; width: 100%;}
|
||||
.ui-tab li {border-top:none;border-bottom:none;border-color:#EBEBEB;}
|
||||
.container{margin:0 auto; width:760px;padding-top: 50px;}
|
||||
.mod-search .ui-icon-ellipsis{right: 3px;}
|
||||
.ul-inline .mod-choose-input{position: relative;}
|
||||
.grid-wrap{position:relative;}
|
||||
.ztreeDefault{position: absolute;right: 0;top: 0;background-color: #fff;border: 1px solid #D6D5D5;width: 140px;height: 292px;overflow-y: auto;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="background: #FFF;">
|
||||
<ul class="ui-tab" id="tab">
|
||||
<li class="cur">商品库存预警</li>
|
||||
<!--<li>保质期预警</li>-->
|
||||
</ul>
|
||||
<div class="container">
|
||||
<ul>
|
||||
<li class="tabItem">
|
||||
<div class="mod-search cf">
|
||||
<div class="l">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<label>仓库:</label>
|
||||
<span class="mod-choose-input" id="filter-storage"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label>预警类型:</label>
|
||||
<span class="mod-choose-input" id="filter-warnType"></span>
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph matchCon" value="请输入商品编号/名称/规格/属性">
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="search">查询</a><a href="#" class="ui-btn mrb" id="export">导出</a><a href="#" class="ui-btn" id="toPur">生成购货单</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="tabItem dn">
|
||||
<div class="grid-wrap">
|
||||
<table id="grid_batch">
|
||||
</table>
|
||||
<div id="page_batch"></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
var queryConditions = {},SYSTEM = system = parent.parent.SYSTEM;
|
||||
var THISPAGE = {
|
||||
init:function(){
|
||||
this.initDom();
|
||||
this.initEvent();
|
||||
},
|
||||
initCombo:function(){
|
||||
Business.storageCombo($('#filter-storage'),{
|
||||
trigger: true,
|
||||
addOptions : {
|
||||
text : '(全部)',
|
||||
value : 0
|
||||
},
|
||||
width:80,
|
||||
defaultFlag: false,
|
||||
callback: {
|
||||
onChange: function(data){
|
||||
if(data){
|
||||
queryConditions.locationId = data.id;
|
||||
THISPAGE.reloadGrid();
|
||||
}else{
|
||||
queryConditions.locationId = 0;
|
||||
THISPAGE.reloadGrid();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
$('#filter-warnType').combo({
|
||||
data:[
|
||||
{id:0,name:'(全部)'},
|
||||
{id:1,name:'低库存预警'},
|
||||
{id:2,name:'高库存预警'}
|
||||
],
|
||||
text: 'name',
|
||||
value: 'id',
|
||||
width:80,
|
||||
defaultSelected: 0,
|
||||
cache: false,
|
||||
trigger: true,
|
||||
defaultFlag: false,
|
||||
callback: {
|
||||
onChange: function(data){
|
||||
if(data){
|
||||
queryConditions.warnType = data.id;
|
||||
THISPAGE.reloadGrid();
|
||||
}
|
||||
}
|
||||
}
|
||||
}).getCombo();
|
||||
},
|
||||
initDom:function(){
|
||||
this.initCombo();
|
||||
this.initGrid();
|
||||
//生成树
|
||||
zTree = Public.zTree.init($('.grid-wrap:eq(0)'), {defaultClass:'ztreeDefault',showRoot:true}, {callback:{
|
||||
beforeClick: function(treeId, treeNode) {
|
||||
//alert(treeNode.id+'_'+treeNode.name);
|
||||
queryConditions.assistId = treeNode.id;
|
||||
$('#search').trigger('click');
|
||||
}
|
||||
}});
|
||||
//搜索框效果
|
||||
$('#matchCon').placeholder();
|
||||
},
|
||||
initEvent:function(){
|
||||
//页签切换
|
||||
$('#tab').find('li').each(function(i){
|
||||
var $this = $(this);
|
||||
var wrapperList = $('.container').find('.tabItem');
|
||||
$this.click(function(e){
|
||||
$this.addClass('cur').siblings().removeClass('cur');
|
||||
$(wrapperList[i]).show().siblings().hide();
|
||||
});
|
||||
});
|
||||
//查询
|
||||
$('#search').click(function(){
|
||||
queryConditions.skey = $('#matchCon').val() === '请输入商品编号/名称/规格/属性' ? '' : $('#matchCon').val();
|
||||
THISPAGE.reloadGrid();
|
||||
});
|
||||
//导出
|
||||
$('#export').on('click',function(e){
|
||||
if (!Business.verifyRight('InvBalanceReport_EXPORT')) {
|
||||
e.preventDefault();
|
||||
return ;
|
||||
};
|
||||
var arr_ids = $('#grid').jqGrid('getGridParam','selarrrow')
|
||||
var ids = arr_ids.join();
|
||||
var params = ids ? '&id='+ ids : '';
|
||||
for(var item in queryConditions){
|
||||
if(queryConditions[item]){
|
||||
params += '&' + item +'='+ queryConditions[item];
|
||||
}
|
||||
}
|
||||
var url = '../basedata/inventory/warningExporter?action=warningExporter&isDelete=2'+params;
|
||||
$(this).attr('href', url);
|
||||
});
|
||||
//生成采购单
|
||||
$('#toPur').on('click',function(e){
|
||||
if (!Business.verifyRight('PU_ADD')) {
|
||||
e.preventDefault();
|
||||
return ;
|
||||
};
|
||||
var arr_ids = $('#grid').jqGrid('getGridParam','selarrrow')
|
||||
var rowList = [];
|
||||
for (var i = 0; i < arr_ids.length; i++) {
|
||||
var rowid = arr_ids[i];
|
||||
if(!rowid) continue;
|
||||
row = $('#grid').jqGrid('getRowData',rowid);
|
||||
if(row.warning > 0){
|
||||
parent.parent.Public.tips({type:2, content:'商品【'+row.name+'】未低于最低库存!'});
|
||||
return;
|
||||
}
|
||||
if(row){
|
||||
var jsonData = {
|
||||
id: row.id,
|
||||
qty: -row.warning,
|
||||
skuId: row.skuId,
|
||||
skuName : row.skuName,
|
||||
locationName: row.locationName,
|
||||
locationId: row.locationId
|
||||
}
|
||||
}
|
||||
rowList.push(jsonData);
|
||||
};
|
||||
if(rowList.length){
|
||||
var title = '购货单';
|
||||
var tabid = 'purchase-purchase';
|
||||
var transType = '150501';
|
||||
parent.parent.tab.addTabItem({tabid: tabid, text: title, url: '../scm/invPu?action=initPur&id=-1&goodsIds=' + JSON.stringify(rowList) + '&flag=list&turnBygoodList&transType='+ transType});
|
||||
parent.parent.tab.reload(tabid);
|
||||
}else{
|
||||
parent.parent.Public.tips({type:2, content:'请先选择商品!'});
|
||||
}
|
||||
});
|
||||
},
|
||||
reloadGrid:function(){
|
||||
$("#grid").jqGrid('setGridParam',{postData:queryConditions, page:1}).trigger('reloadGrid');
|
||||
},
|
||||
initGrid:function(){
|
||||
$("#grid").jqGrid({
|
||||
url:'../basedata/inventory/listInventoryQtyWarning?action=listInventoryQtyWarning',
|
||||
datatype: "json",
|
||||
width: 600,
|
||||
height: 240,
|
||||
gridview: true,
|
||||
colModel:[
|
||||
{name: 'id', label: '商品ID',hidden: true},
|
||||
{name: 'number', label: '商品编码', width: 60, title: false},
|
||||
{name: 'name', label: '商品名称', width: 160, classes: 'ui-ellipsis'},
|
||||
{name: 'categoryName', label: '商品类别', width: 60, classes: 'ui-ellipsis'},
|
||||
{name: 'spec', label: '规格型号', width: 60, classes: 'ui-ellipsis'},
|
||||
{name: 'skuId', label: '属性Id', width: 60, classes: 'ui-ellipsis',hidden:true},
|
||||
{name: 'skuName', label: '属性', width: 60, classes: 'ui-ellipsis',hidden:!SYSTEM.enableAssistingProp},
|
||||
{name: 'unitName', label: '单位', width: 40, align: 'center', title: false},
|
||||
{name: 'locationId', label: '仓库ID',hidden: true},
|
||||
{name: 'locationName', label: '仓库', width: 60, classes: 'ui-ellipsis'},
|
||||
{name: 'lowQty', label: '最低库存', width: 60, align: 'center', title: false},
|
||||
{name: 'highQty', label: '最高库存', width: 60, align: 'center', title: false},
|
||||
{name: 'qty', label: '结存数量', width: 60, align: 'center', title: false},
|
||||
{name: 'warning', label: '超限数量', width: 60, align: 'center', title: false}
|
||||
],
|
||||
cmTemplate: {sortable: false},
|
||||
page: 1,
|
||||
sortname: 'number',
|
||||
sortorder: "desc",
|
||||
pager: "#page",
|
||||
rowNum: 20,
|
||||
rowList:[20,50,100],
|
||||
multiselect: true,
|
||||
//scroll: 1,
|
||||
//loadonce: true,
|
||||
viewrecords: true,
|
||||
shrinkToFit: false,
|
||||
forceFit: true,
|
||||
jsonReader: {
|
||||
root: "data.rows",
|
||||
records: "data.records",
|
||||
total: "data.total",
|
||||
repeatitems : false,
|
||||
id: ''
|
||||
}
|
||||
});
|
||||
$("#grid_batch").jqGrid({
|
||||
url:'../basedata/warranty/getAdvancedList?action=getAdvancedList',
|
||||
datatype: "json",
|
||||
width: 758,
|
||||
height: 280,
|
||||
gridview: true,
|
||||
colModel:[
|
||||
{
|
||||
name: 'number',
|
||||
label: '商品编码',
|
||||
width: 60,
|
||||
title: false
|
||||
}, {
|
||||
name: 'name',
|
||||
label: '商品名称',
|
||||
width: 160,
|
||||
classes: 'ui-ellipsis'
|
||||
}, {
|
||||
name: 'spec',
|
||||
label: '规格型号',
|
||||
width: 60,
|
||||
classes: 'ui-ellipsis'
|
||||
}, {
|
||||
name: 'unitName',
|
||||
label: '单位',
|
||||
width: 40,
|
||||
align: 'center',
|
||||
title: false
|
||||
}, {
|
||||
name: 'locationName',
|
||||
label: '仓库',
|
||||
width: 80,
|
||||
align: 'center',
|
||||
title: false,
|
||||
classes: 'ui-ellipsis'
|
||||
}, {
|
||||
name: 'qty',
|
||||
label: '数量',
|
||||
width: 40,
|
||||
align: 'center',
|
||||
title: false
|
||||
}, {
|
||||
name: "batch",
|
||||
label: "批次",
|
||||
width: 100,
|
||||
classes: "ui-ellipsis",
|
||||
title: true
|
||||
}, {
|
||||
name: "prodDate",
|
||||
label: "生产日期",
|
||||
width: 80,
|
||||
fixed: true,
|
||||
align: "center"
|
||||
}, {
|
||||
name: "safeDays",
|
||||
label: "保质期天数",
|
||||
width: 70,
|
||||
fixed: true,
|
||||
align: "center"
|
||||
}, {
|
||||
name: "validDate",
|
||||
label: "有效期至",
|
||||
width: 80
|
||||
}, {
|
||||
name: "surplusDays",
|
||||
label: "剩余天数",
|
||||
width: 60
|
||||
}],
|
||||
cmTemplate: {sortable: false},
|
||||
page: 1,
|
||||
sortname: 'number',
|
||||
sortorder: "desc",
|
||||
pager: "#page_batch",
|
||||
rowNum: 2000,
|
||||
rowList:[300,500,1000],
|
||||
scroll: 1,
|
||||
loadonce: true,
|
||||
viewrecords: true,
|
||||
shrinkToFit: false,
|
||||
forceFit: true,
|
||||
jsonReader: {
|
||||
root: "data.rows",
|
||||
records: "data.records",
|
||||
total: "data.total",
|
||||
repeatitems : false,
|
||||
id: 0
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
THISPAGE.init();
|
||||
})
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
90
application/views/settings/log-initloglist.php
Executable file
90
application/views/settings/log-initloglist.php
Executable file
@@ -0,0 +1,90 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-search cf">
|
||||
<div class="s-inner cf">
|
||||
<div class="fl"> <strong class="tit mrb fl">查询条件</strong>
|
||||
<div class="ui-btn-menu fl" id="filter-menu"> <span class="ui-btn menu-btn"> <span id="selected-date"
|
||||
>请选择查询条件</span><b></b> </span>
|
||||
<div class="con">
|
||||
<ul class="filter-list">
|
||||
<li>
|
||||
<label class="tit">日期:</label>
|
||||
<input type="text" value="2015-04-20" class="ui-input ui-datepicker-input" readonly name
|
||||
="beginDate" id="beginDate" />
|
||||
<span>至</span>
|
||||
<input type="text" value="2015-04-26" class="ui-input ui-datepicker-input" readonly name
|
||||
="endDate" id="endDate" />
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="filter-list" id="more-conditions">
|
||||
<li>
|
||||
<label class="tit" for="filter-user">用户:</label>
|
||||
<span class="ui-combo-wrap" id="user">
|
||||
<input type="text" name="filter-user" id="filter-user" class="input-txt" autocomplete
|
||||
="off" />
|
||||
<span class="trigger"></span>
|
||||
</span>
|
||||
</li>
|
||||
<!--<li>
|
||||
<label class="tit" for="filter-type">类型:</label>
|
||||
<span class="ui-combo-wrap" id="type">
|
||||
<input type="text" name="filter-type" id="filter-type" class="input-txt" autocomplete
|
||||
="off" />
|
||||
<span class="trigger"></span>
|
||||
</span>
|
||||
</li>-->
|
||||
</ul>
|
||||
<div class="btns"> <a href="#" id="conditions-trigger" class="conditions-trigger" tabindex
|
||||
="-1">更多条件<b></b></a> <a class="ui-btn ui-btn-sp" id="filter-submit" href="#">确定</a> <a class="ui-btn"
|
||||
id="filter-reset" href="#" tabindex="-1">重置</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="refresh" class="ui-btn ui-btn-refresh fl mrb"><b></b></a> <span class="txt fl" id="cur-search-tip"
|
||||
></span> </div>
|
||||
<!-- <div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb fl" id="btn-print">打印</a><a href="
|
||||
#" class="ui-btn fl" id="btn-export">导出</a></div> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/operationLog.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
110
application/views/settings/print-templates-manage.php
Executable file
110
application/views/settings/print-templates-manage.php
Executable file
@@ -0,0 +1,110 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<script charset="utf-8" src="<?php echo base_url()?>/statics/js/common/libs/kind/kindeditor-min.js"></script>
|
||||
<script charset="utf-8" src="<?php echo base_url()?>/statics/js/common/libs/kind/lang/zh_CN.js"></script>
|
||||
<script type="text/javascript">
|
||||
var upload_json="<?=site_url('upload/do_upload')?>";
|
||||
var file_manager_json="<?=site_url('upload/manage')?>";
|
||||
KindEditor.ready(function(K) {
|
||||
var editor = K.create('textarea[id="info"]', {
|
||||
urlType : 'domain',
|
||||
allowFileManager : true
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
<link href="<?php echo base_url()?>/statics/css/authority.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper authority-wrap">
|
||||
<div class="mod-inner">
|
||||
|
||||
<div class="authority-ctn-wrap">
|
||||
|
||||
<div class="register-wrap">
|
||||
<h3>新建模板</h3>
|
||||
<form action="../noteprinttemp/add" id="registerForm" method="post" class="register-form">
|
||||
<ul class="mod-form-rows">
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label for="userName">模板名称</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="text" class="ui-input" id="name" name="name"/>
|
||||
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label for="userName">模板类别</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input name="type" type="radio" value="10101">采购单 <input name="type" type="radio" value="10201"> 销售单 <input name="type" type="radio" value="10601">收款单 <input name="type" type="radio" value="10602">付款单
|
||||
|
||||
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label for="realName">模板设计</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<textarea class="ckeditor" name="info" id="info" style="width:98%; height:250px;" ></textarea>
|
||||
<p class="msg">真实姓名将应用在单据和账表打印中,请如实填写</p>
|
||||
</div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label for="">默认模板</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input name="isDefault" type="radio" value="1">是 <input name="isDefault" type="radio" value="0">否
|
||||
<p class="msg">是否作为打印时候的默认模板</p>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btn-row">
|
||||
<!-- <a href="../settings/print_templates" class="ui-btn mrb">返回列表</a>-->
|
||||
<input name="" type="submit" value="提交">
|
||||
<!--<a href="#" class="ui-btn ui-btn-sp" id="registerBtn">下一步</a>-->
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/print-templates-manage.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
230
application/views/settings/print-templates.php
Executable file
230
application/views/settings/print-templates.php
Executable file
@@ -0,0 +1,230 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
function validMaxForShare(){
|
||||
window.location.href='../noteprinttemp/add';
|
||||
//$.ajax({
|
||||
// url: '../right/isMaxShareUser?action=isMaxShareUser',
|
||||
// dataType: 'json',
|
||||
// type: 'POST',
|
||||
// success: function(data){
|
||||
// if(data.status === 200){
|
||||
// var json = data.data;
|
||||
// if(json.shareTotal >= json.totalUserNum)
|
||||
// {
|
||||
// parent.Public.tips({type:2, content : '共享用户已经达到上限值:'+json.totalUserNum});
|
||||
// return false;
|
||||
// }else
|
||||
// {
|
||||
// window.location.href='../noteprinttemp/add';
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-toolbar-top">
|
||||
<a href="javascript:validMaxForShare();" class="ui-btn ui-btn-sp mrb">新增模板</a>
|
||||
<span class="tit" id="shareInfo" style="display:none;"></span>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
(function($){
|
||||
var totalUser, usedTotal, leftTotal;
|
||||
initGrid();
|
||||
|
||||
$('.grid-wrap').on('click', '.delete', function(e){
|
||||
var id = $(this).parents('tr').attr('id');
|
||||
var rowData = $('#grid').getRowData(id);
|
||||
var userName = rowData.userName;
|
||||
e.preventDefault();
|
||||
$.ajax({
|
||||
url: '../right/auth2UserCancel?action=auth2UserCancel&userName=' + userName,
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
success: function(data){
|
||||
if (data.status == 200) {
|
||||
parent.Public.tips({content: '取消用户授权成功!'});
|
||||
usedTotal--;
|
||||
leftTotal++;
|
||||
showShareCount();
|
||||
if (rowData.isCom) {
|
||||
rowData.share = false;
|
||||
$("#grid").jqGrid('setRowData', id, rowData);
|
||||
} else {
|
||||
$("#grid").jqGrid('delRowData',id);
|
||||
}
|
||||
|
||||
} else {
|
||||
parent.Public.tips({type: 1, content: '取消用户授权失败!' + data.msg});
|
||||
}
|
||||
},
|
||||
error: function(){
|
||||
parent.Public.tips({content:'取消用户授权失败!请重试。', type: 1});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('.grid-wrap').on('click', '.authorize', function(e){
|
||||
var id = $(this).parents('tr').attr('id');
|
||||
var rowData = $('#grid').getRowData(id);
|
||||
var userName = rowData.userName;
|
||||
e.preventDefault();
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
url: '../right/auth2User?action=auth2User&userName=' + userName,
|
||||
success: function(data){
|
||||
if (data.status == 200) {
|
||||
parent.Public.tips({content : '授权成功!'});
|
||||
rowData.share = true;
|
||||
$("#grid").jqGrid('setRowData', id, rowData);
|
||||
usedTotal++;
|
||||
leftTotal--;
|
||||
showShareCount();
|
||||
//window.location.href = 'authority-setting.jsp?userName=' + userName + '&right=0';
|
||||
} else {
|
||||
parent.Public.tips({type:1, content : data.msg});
|
||||
}
|
||||
},
|
||||
error: function(){
|
||||
parent.Public.tips({type:1, content : '用户授权失败!请重试。'});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
function initGrid(){
|
||||
$('#grid').jqGrid({
|
||||
url: '../noteprinttemp/findNotePrintTemp?action=queryAllUser',
|
||||
datatype: 'json',
|
||||
height: Public.setGrid().h,
|
||||
colNames:['操作','名称', '类别', '模板类型','是否默认'],
|
||||
colModel:[
|
||||
{name:'id', index:'id', width:100, align:"center", title:false, formatter: edit},
|
||||
{name:'name',index:'name', width:200},
|
||||
{name:'type', index:'type', width:200},
|
||||
{name:'level', index:'level'},
|
||||
{name:'isDefault', index:'isDefault', width:100},
|
||||
//{name:'setting_data', index:'setting_data', width:100, align:"center", title:false, formatter: settingDataFormatter},
|
||||
//{name:'setting_data', index:'setting_data', width:100, align:"center", title:false, formatter: settingDataFormatter, hidden:(parent.SYSTEM.siType == 1)},
|
||||
//{name:'share', index:'share', width:100, align:"center", title:false, formatter: shareFormatter}
|
||||
|
||||
],
|
||||
altRows:true,
|
||||
gridview: true,
|
||||
page: 1,
|
||||
scroll: 1,
|
||||
autowidth: true,
|
||||
cmTemplate: {sortable:false},
|
||||
rowNum:150,
|
||||
shrinkToFit:false,
|
||||
forceFit:false,
|
||||
pager: '#page',
|
||||
viewrecords: true,
|
||||
jsonReader: {
|
||||
root: 'data.items',
|
||||
records: 'data.totalsize',
|
||||
repeatitems : false,
|
||||
id: 'userId'
|
||||
},
|
||||
loadComplete: function(data){
|
||||
if (data.status == 200) {
|
||||
data = data.data;
|
||||
totalUser = data.totalUserNum;
|
||||
usedTotal = data.shareTotal;
|
||||
leftTotal = totalUser - usedTotal;
|
||||
showShareCount();
|
||||
$('#shareInfo').show();
|
||||
} else {
|
||||
parent.Public.tips({type: 1, content: data.msg});
|
||||
}
|
||||
|
||||
},
|
||||
loadonce: true
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function showShareCount(){
|
||||
$('#totalUser').text(totalUser);
|
||||
$('#usedTotal').text(usedTotal);
|
||||
$('#leftTotal').text(leftTotal);
|
||||
}
|
||||
|
||||
|
||||
function shareFormatter(val, opt, row) {
|
||||
if (val || row.admin) {
|
||||
if (row.admin) {
|
||||
return '管理员';
|
||||
} else {
|
||||
return '<div class="operating" data-id="' + row.userId + '"><span class="delete ui-label ui-label-success">已启用</span></div>';
|
||||
}
|
||||
} else {
|
||||
return '<p class="operate-wrap"><span class="authorize ui-label ui-label-default">已停用</span></p>';
|
||||
}
|
||||
};
|
||||
function settingFormatter(val, opt, row) {
|
||||
if (row.admin || row.share === false) {
|
||||
return ' ';
|
||||
} else {
|
||||
return '<div class="operating" data-id="' + row.userId + '"><a class="ui-icon ui-icon-pencil" title="详细设置授权信息" href="../settings/authority_setting?userName=' + row.userName + '"></a></div>';
|
||||
}
|
||||
};
|
||||
function edit(val, opt, row) {
|
||||
if (row.admin || row.share === false) {
|
||||
return ' ';
|
||||
} else {
|
||||
var d = '<div class="operating" data-id="' + row.id + '"><a class="ui-icon ui-icon-pencil" href="../Noteprinttemp/edit?id=' + row.id + '" title="修改"></a><a class="ui-icon ui-icon-trash" title="删除" href="../Noteprinttemp/del?id=' + row.id + '"></a></div>';
|
||||
return d
|
||||
//return '<a class="ui-icon ui-icon-pencil" title="详细设置授权信息" href="../settings/Noteprinttemp/edit?id=' + row.id + '"></a> <a class="ui-icon ui-icon-trash" title="删除"></a>';
|
||||
}
|
||||
};
|
||||
|
||||
})(jQuery)
|
||||
|
||||
$(window).resize(function(){
|
||||
Public.resizeGrid();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
83
application/views/settings/prop-list.php
Executable file
83
application/views/settings/prop-list.php
Executable file
@@ -0,0 +1,83 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.manage-wrap{margin: 0 auto;width: 300px;}
|
||||
.manage-wrap .ui-input{width: 200px;font-size:14px;}
|
||||
.manage-wrap .hideFeild{position: absolute;top: 30px;left:80px;width:210px;border:solid 1px #ccc;background-color:#fff;}
|
||||
.ztreeDefault{overflow-y:auto;max-height:240px;}
|
||||
.searchbox{float: left;font-size: 14px;}
|
||||
.searchbox li{float: left;margin-right: 10px;}
|
||||
#matchCon{width:140px;}
|
||||
.ui-input-ph {color: #aaa;}
|
||||
.cur #custom-assisting .ui-combo-wrap {background: #eaeaea;border-color: #c1c1c1;}
|
||||
.cur #custom-assisting input {background: #eaeaea;font-weight: bold;}
|
||||
.ui-droplist-wrap .selected {background-color: #d2d2d2;}
|
||||
.input-txt{font-size:14px;}
|
||||
.ui-droplist-wrap .list-item {font-size:14px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-toolbar-top cf">
|
||||
<div class="left">
|
||||
<!--<div class="mod-crumb fl"><span class="cur"></span></div>-->
|
||||
<div id="assisting-category-select" class="ui-tab-select">
|
||||
<strong class="tit">类别</strong>
|
||||
<ul class="ui-tab mrb">
|
||||
</ul>
|
||||
<span class="fl mrb dn">
|
||||
<span id="custom-assisting"></span>
|
||||
</span>
|
||||
<ul class="searchbox cf">
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph matchCon" value="输入类别名称查询">
|
||||
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="search">查询</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb" id="btn-add">新增</a><a class="ui-btn" id
|
||||
="btn-refresh">刷新</a></div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/propList.js?ver=20140430"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
51
application/views/settings/propmanage.php
Executable file
51
application/views/settings/propmanage.php
Executable file
@@ -0,0 +1,51 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body{background: #fff;}
|
||||
.manage-wrap{margin: 20px auto 10px;width: 260px;}
|
||||
.manage-wrap .ui-input{width: 160px;font-size:14px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="manage-wrap" class="manage-wrap">
|
||||
<form id="manage-form" action="">
|
||||
<ul class="mod-form-rows">
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="name">名称:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="name" id="name"></div>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/propManage.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
123
application/views/settings/resultInfo.php
Executable file
123
application/views/settings/resultInfo.php
Executable file
@@ -0,0 +1,123 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script src="<?php echo base_url()?>/statics/js/common/libs/swfupload/swfupload.js"></script>
|
||||
<style>
|
||||
body {min-width: 0;}
|
||||
.link{color: #3A86B0;text-decoration: underline}
|
||||
.state{color:red}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<a id="refresh" class="link" style="padding:10px;">刷新状态</a>
|
||||
<div id="info" style="padding:10px;"></div>
|
||||
<script>
|
||||
Public.pageTab();
|
||||
//获取公告
|
||||
function getResult(opt) {
|
||||
$.ajax({
|
||||
url: '../basedata/import/findDataImporter?action=findDataImporter',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
success: function(data){
|
||||
if(data.status == 200){
|
||||
if(data.data.items.length == 0) {
|
||||
$("#info").append("无导入记录!");
|
||||
}
|
||||
var uploadName = data.data.items[0].uploadName;
|
||||
var returnInfo = data.data.items[0].resultInfo;
|
||||
var status = data.data.items[0].status;
|
||||
var resultPath = data.data.items[0].resultPath;
|
||||
var state = '';
|
||||
if(status == 0) {
|
||||
state = '导入被取消!';
|
||||
} else if(status == 1) {
|
||||
state = '导入中。。。';
|
||||
} else if(status == 2) {
|
||||
state = '导入完成!';
|
||||
} else if(status == 3) {
|
||||
state = '导入完成!';
|
||||
} else {
|
||||
state = '导入失败!';
|
||||
}
|
||||
$("#info").append("状态:");
|
||||
$("#info").append("<fron class='state'>" + state + "</fron><br/>");
|
||||
$("#info").append("时间:" + data.data.items[0].date + "<br/>");
|
||||
$("#info").append("文件名称:" + uploadName + "<br/>");
|
||||
if(status != 1) {
|
||||
$("#info").append("详细信息:<br/>" + returnInfo);
|
||||
if(status != 0) {
|
||||
$("#info").append("<a href='/basedata/import.do?action=download&relativePath=" + encodeURIComponent(encodeURIComponent(resultPath)) + "' class='link'>下载错误数据文件</a>");
|
||||
}
|
||||
} else {
|
||||
var dateStr = data.data.items[0].date;
|
||||
dateStr = dateStr.replace(/-/g,"/");
|
||||
var date = new Date(dateStr);
|
||||
var now = new Date();
|
||||
if(now.getTime() - date.getTime() > (1*60*60*1000)) {
|
||||
$("#info").append("<a class='link'>取消操作</a>").click(function(){
|
||||
$.ajax({
|
||||
url: '/basedata/import.do?action=deleteByStatus',
|
||||
type: 'post',
|
||||
success:function(data){
|
||||
if(opt && typeof opt.callback === 'function'){
|
||||
opt.callback();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Public.tips({ type:1,content : data.msg});
|
||||
}
|
||||
},
|
||||
error: function(){
|
||||
Public.tips({ type:1,content : '系统繁忙,请稍后重试!'});
|
||||
}
|
||||
});
|
||||
}
|
||||
(function(){
|
||||
var api = frameElement.api;
|
||||
var data = api.data || {};
|
||||
getResult(data);
|
||||
$('#refresh').click(function(){
|
||||
$("#info").html('');
|
||||
getResult(data);
|
||||
});
|
||||
})();
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
58
application/views/settings/saler-batch.php
Executable file
58
application/views/settings/saler-batch.php
Executable file
@@ -0,0 +1,58 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body{ background:#FFF; }
|
||||
#matchCon { width: 190px; }
|
||||
.mod-search{padding-right: 0;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container" style="margin:20px;">
|
||||
<div class="mod-search m0 cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph" value="请输入职员编号或名称">
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="search">查询</a><a class="ui-btn" id="refresh">刷新</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/salerBatch.js?ver=20150427"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
62
application/views/settings/select-customer.php
Executable file
62
application/views/settings/select-customer.php
Executable file
@@ -0,0 +1,62 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#matchCon { width: 200px; }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="bgwh">
|
||||
<div class="container fix p20">
|
||||
<div class="mod-search m0 cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<span id="catorage"></span>
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph" value="输入编号 / 名称 / 联系人 / 电话查询">
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="search">查询</a><!-- <a class="ui-btn" id="refresh">刷新</a> --></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-wrap" style="width: 735px; ">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/selectCustomer.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
62
application/views/settings/select-customer2.php
Executable file
62
application/views/settings/select-customer2.php
Executable file
@@ -0,0 +1,62 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#matchCon { width: 200px; }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body class="bgwh">
|
||||
<div class="container fix p20">
|
||||
<div class="mod-search m0 cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<span id="catorage"></span>
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph" value="输入编号 / 名称 / 联系人 / 电话查询">
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="search">查询</a><!-- <a class="ui-btn" id="refresh">刷新</a> --></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-wrap" style="width: 735px; ">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/selectCustomer2.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
169
application/views/settings/set_password.php
Executable file
169
application/views/settings/set_password.php
Executable file
@@ -0,0 +1,169 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>设置独立密码</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="http://images.youshang.com/resources/v7/css/phone_validate.css" />
|
||||
<script src="http://images.youshang.com/resources/v7/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="http://images.youshang.com/resources/v7/js/checkPassword.js"></script>
|
||||
<script src="http://images.youshang.com/resources/v7/js/phone_validate.js?ver=201403201104"></script>
|
||||
<style>
|
||||
.tips{color: #eba434;border-color: #f5d193;box-shadow: 0 0 5px rgba(248,171,58,0.35);padding: 5px 30px 5px 10px;font-size: 12px;border: 1px solid #F5D4A0;border-radius: 2px;}
|
||||
.tips a{margin: 0 5px;color: #eba434;font-weight: bolder;text-decoration: none;}
|
||||
.mod-form{margin-top:10px;}
|
||||
.mod-form li label{margin-bottom:5px;float:left; width:80px;height:32px; line-height:32px;}
|
||||
.mod-form li span{display:inline-block;height:32px; line-height:32px;}
|
||||
.mod-form li p{padding-left:80px;}
|
||||
.wrapper{margin:0 auto;padding: 5px;width:420px;font-size:14px;}
|
||||
.set-password .steps,.set-password .warning{padding:5px 0;}
|
||||
.set-password .steps em{color:#eba434;font-weight: bold;}
|
||||
.set-password .warning{margin-bottom: 10px;font-weight: bold;}
|
||||
#btn-wrap .ui-btn{bottom: 5px;position: absolute;right: 10px;margin-left:5px;}
|
||||
.tip{font-size: 12px;}
|
||||
#success .tit{color:#689800;}
|
||||
#success p{line-height:24px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="set-password">
|
||||
<p class="steps"></p>
|
||||
<p class="warning"></p>
|
||||
<p class="set-result hide"></p>
|
||||
<form action="" id="set-password-form">
|
||||
<ul class="mod-form">
|
||||
<li>
|
||||
<label>用户名:</label>
|
||||
<span id="user-name"><?php echo $username?></span>
|
||||
</li>
|
||||
<li>
|
||||
<label for="real-name">真实姓名:</label>
|
||||
<input type="text" class="ui-input" placeholder="请输入真实姓名" id="real-name" ></input>
|
||||
</li>
|
||||
<li>
|
||||
<label for="phone">手机号码:</label>
|
||||
<input type="text" class="ui-input" id="phone" value="<?php echo $mobile?>"></input>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label for="password">密码:</label>
|
||||
<input type="password" class="ui-input" placeholder="设置登录密码" id="password"/>
|
||||
<p class="tip">长度8~20位,同时包含数字、字母(区分大小写),可使用特殊符号</p>
|
||||
</li>
|
||||
<li>
|
||||
<label>确认密码:</label>
|
||||
<input type="password" class="ui-input" placeholder="请再次输入密码" id="confirm-password" />
|
||||
</li>
|
||||
<li id="btn-wrap">
|
||||
<button class="ui-btn" id = "cancel">取消</button>
|
||||
<button class="ui-btn ui-btn-blue" type="submit">确定</button>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
<div class="success hide" id="success">
|
||||
<h3 class="tit">恭喜您,帐号信息修改成功!</h3>
|
||||
<p>您现在可以通过用户名(<span class="userName"></span>)或手机号(<span class="phone"></span>)登录使用!</p>
|
||||
</div>
|
||||
<iframe src="" frameborder="0" class="hide" id="update-iframe"></iframe>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var PARAMS = getUrlParams();
|
||||
var USERID = <?php echo $uid?>;
|
||||
var realname = '<?php echo $name?>';
|
||||
$(function(){
|
||||
$('#real-name').val(realname);
|
||||
initField();
|
||||
initEvent();
|
||||
});
|
||||
|
||||
function initField(){
|
||||
PARAMS.warning ? $('.set-password .warning').html(PARAMS.warning) : $('.set-password .warning').remove();
|
||||
PARAMS.loginPage && $('#success .login-page').html(PARAMS.loginPage);
|
||||
}
|
||||
|
||||
function initEvent(){
|
||||
$('#get-code').click(function(e){
|
||||
e.preventDefault();
|
||||
if($(this).data('sending') || $(this).hasClass('ui-btn-dis') || !checkPhone()){
|
||||
return;
|
||||
}
|
||||
getActiveCode($(this));
|
||||
countDown();
|
||||
});
|
||||
|
||||
$('#real-name').blur(function(){
|
||||
checkRealName();
|
||||
});
|
||||
|
||||
$('#phone').blur(function(){
|
||||
checkPhone();
|
||||
});
|
||||
|
||||
//$('#active-code').blur(function(){
|
||||
// checkActiveCode();
|
||||
// });
|
||||
|
||||
$('#password').blur(function(){
|
||||
checkPwd();
|
||||
});
|
||||
|
||||
$('#confirm-password').blur(function(){
|
||||
checkConfirmPwd();
|
||||
});
|
||||
|
||||
$('#set-password-form').submit(function(){
|
||||
var btn = $('#btn-wrap button'),
|
||||
phone = $.trim($("#phone").val()),
|
||||
userName = $.trim($("#user-name").html()),
|
||||
realName = $.trim($('#real-name').val());
|
||||
$('.set-result').hide().html('');
|
||||
if(btn.data('sending') || !checkRealName() || !checkPhone() || !checkPwd() || !checkConfirmPwd()){
|
||||
return false;
|
||||
}
|
||||
btn.html('处理中……');
|
||||
btn.data('sending',true);
|
||||
$.post('http://service.youshang.com/commonservice/ajaxChecking.do?action=updateBuyerNameForRenew',{
|
||||
buyerId: USERID,
|
||||
userType: 2,
|
||||
buyerMobile: phone,
|
||||
buyerName: encodeURIComponent(realName)
|
||||
},function(data){
|
||||
if(data && data.toLowerCase() == 'ok'){
|
||||
$.post('http://service.youshang.com/user/modifyPassword.do',{
|
||||
action: 'modifyPassword.do',
|
||||
act: 'update',
|
||||
writeBack: true,
|
||||
newPassword: $('#password').val()
|
||||
},function(data){
|
||||
btn.html('确定');
|
||||
btn.data('sending',false);
|
||||
if(data && data.toLowerCase() == 'ok'){
|
||||
$('.set-password').hide();
|
||||
$('#success .phone').html(phone);
|
||||
$('#success .userName').html(userName);
|
||||
$('#success').show();
|
||||
if(PARAMS.updateUrl){
|
||||
var url = PARAMS.updateUrl;
|
||||
url += (url.search(/\?/) != -1 ? '&' : '?') + 'phone=' + phone + '&realName=' + encodeURIComponent(realName);
|
||||
$('#update-iframe').attr('src',url);
|
||||
}
|
||||
}else{
|
||||
$('.set-result').html('设置密码失败,请稍候重试!').show();
|
||||
}
|
||||
});
|
||||
}else{
|
||||
btn.html('确定');
|
||||
btn.data('sending',false);
|
||||
$('.set-result').html('设置独立密码失败,请稍候重试!').show();
|
||||
}
|
||||
});
|
||||
return false;
|
||||
});
|
||||
$('#cancel').hide();
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
48
application/views/settings/settlement-account.php
Executable file
48
application/views/settings/settlement-account.php
Executable file
@@ -0,0 +1,48 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-toolbar-top cf">
|
||||
<div class="fl"><strong class="tit">结算账户</strong></div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb" id="btn-add">新增</a><!--<a class="ui-btn mrb" id="btn-disable">禁用</a><a class="ui-btn mrb" id="btn-enable">启用</a>--><!--<a class="ui-btn mrb" id="btn-print">打印</a>--><!--<a class="ui-btn mrb" id="btn-import">导入</a>--><!--<a class="ui-btn mrb" id="btn-export">导出</a>--><a class="ui-btn" id="btn-refresh">刷新</a></div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/settlementAccount.js?ver=20150522"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
49
application/views/settings/settlement-category-list.php
Executable file
49
application/views/settings/settlement-category-list.php
Executable file
@@ -0,0 +1,49 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "blue";
|
||||
try{
|
||||
document.domain = 'youshang.com';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-toolbar-top cf">
|
||||
<div class="fl"><strong class="tit">结算方式</strong></div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb" id="btn-add">新增</a><a class="ui-btn" id
|
||||
="btn-refresh">刷新</a></div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/settlementCategory.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
52
application/views/settings/settlement-category-manage.php
Executable file
52
application/views/settings/settlement-category-manage.php
Executable file
@@ -0,0 +1,52 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo sys_skin()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body{background: #fff;}
|
||||
.manage-wrap{margin: 20px auto 10px;width: 300px;}
|
||||
.manage-wrap .ui-input{width: 200px;font-size:14px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="manage-wrap" class="manage-wrap">
|
||||
<form id="manage-form" action="">
|
||||
<ul class="mod-form-rows">
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="name">名称:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="name" id="name"></div>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/settlementCategoryManager.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
59
application/views/settings/settlementAccount-batch.php
Executable file
59
application/views/settings/settlementAccount-batch.php
Executable file
@@ -0,0 +1,59 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#matchCon { width: 250px; }
|
||||
.mod-search{padding-right: 0;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container" style="margin:20px;">
|
||||
<div class="mod-search m0 cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph" value="请输入账户编号或名称">
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="search">查询</a><a class="ui-btn" id="refresh">刷新</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/settlementAccountBatch.js?ver=20150427"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
74
application/views/settings/settlementaccount-manager.php
Executable file
74
application/views/settings/settlementaccount-manager.php
Executable file
@@ -0,0 +1,74 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body{background: #fff;}
|
||||
.manage-wrap{margin: 20px auto 10px;width: 600px;}
|
||||
.manage-wrap .ui-input{width: 185px;font-size:12px;}
|
||||
.row-item{float:left ; width:50%;}
|
||||
#balance{text-align:right;}
|
||||
.mod-form-rows .label-wrap {font-size: 12px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="manage-wrap" class="manage-wrap">
|
||||
<form id="manage-form" action="#">
|
||||
<ul class="mod-form-rows cf">
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="number">账户编号</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="number" id="number"></div
|
||||
>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="name">账户名称</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="name" id="name"></div>
|
||||
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="name">余额日期</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input ui-datepicker-input" name="name"
|
||||
id="date"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="name">账户余额</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="name" id="balance"></div
|
||||
>
|
||||
</li>
|
||||
<li class="row-item row-category">
|
||||
<div class="label-wrap"><label for="category">账户类别</label></div>
|
||||
<div class="ctn-wrap"><span id="category"></span></div>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/settlementAccountManager.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
49
application/views/settings/shippingaddress.php
Executable file
49
application/views/settings/shippingaddress.php
Executable file
@@ -0,0 +1,49 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-toolbar-top cf">
|
||||
<div class="fl"><strong class="tit">发货地址</strong></div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb" id="btn-add">新增</a><a class="ui-btn" id
|
||||
="btn-refresh">刷新</a></div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/shippingAddress.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
96
application/views/settings/shippingaddressmanage.php
Executable file
96
application/views/settings/shippingaddressmanage.php
Executable file
@@ -0,0 +1,96 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body{background: #fff;}
|
||||
.manage-wrap{top :0;left :0; margin: 20px auto 10px;width: 600px;}
|
||||
.manage-wrap .ui-input{width: 185px;font-size:12px;}
|
||||
.row-item{float:left ; width:50%;}
|
||||
#balance{text-align:right;}
|
||||
.mod-form-rows .label-wrap {font-size: 12px;}
|
||||
.p1 {width:100%;}
|
||||
#address{width:485px;}
|
||||
.mod-form-rows .ctn-wrap{position:relative ;height:32px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="manage-wrap" class="manage-wrap">
|
||||
<form id="manage-form" action="#">
|
||||
<ul class="mod-form-rows cf">
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="shortName">地址简称:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="shortName" id="shortName"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="phone">联系电话:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input phone-group" name="phone" id="phone"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="mobile">手机号码:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input phone-group" name="mobile" id="mobile"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="postalcode">邮政编码:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="postalcode" id="postalcode"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="linkman">联系人:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="linkman" id="linkman"></div>
|
||||
</li>
|
||||
<li class="row-item row-category">
|
||||
<div class="label-wrap"><label for="isDefault">默认地址:</label></div>
|
||||
<div class="ctn-wrap"><span id="isDefault"></span></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="province">省:</label></div>
|
||||
<div class="ctn-wrap"><span id="province"></span></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="city">市:</label></div>
|
||||
<div class="ctn-wrap"><span id="city"></span></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="area">区:</label></div>
|
||||
<div class="ctn-wrap"><span id="area"></span></div>
|
||||
</li>
|
||||
<li class="row-item p1">
|
||||
<div class="label-wrap"><label for="address">详细地址:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="address" id="address"></div>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/shippingAddressManage.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
53
application/views/settings/staff-list.php
Executable file
53
application/views/settings/staff-list.php
Executable file
@@ -0,0 +1,53 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-toolbar-top cf">
|
||||
<div class="fl"><strong class="tit">职员</strong></div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb" id="btn-add">新增</a><!--<a class="ui-btn
|
||||
mrb" id="btn-disable">禁用</a><a class="ui-btn mrb" id="btn-enable">启用</a>--><!--<a class="ui-btn mrb"
|
||||
id="btn-print">打印</a>--><!--<a class="ui-btn mrb" id="btn-import">导入</a>--><!--<a class="ui-btn mrb"
|
||||
id="btn-export">导出</a>--><a class="ui-btn" id="btn-refresh">刷新</a></div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/staffList.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
57
application/views/settings/staff-manage.php
Executable file
57
application/views/settings/staff-manage.php
Executable file
@@ -0,0 +1,57 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body{background: #fff;}
|
||||
.manage-wrap{margin: 20px auto 10px;width: 300px;}
|
||||
.manage-wrap .ui-input{width: 200px;font-size:14px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="manage-wrap" class="manage-wrap">
|
||||
<form id="manage-form" action="#">
|
||||
<ul class="mod-form-rows">
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="number">职员编号:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="number" id="number"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="name">职员名称:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="name" id="name"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="score">积分:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="score" id="score"></div>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/staffManage.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
60
application/views/settings/storage-batch.php
Executable file
60
application/views/settings/storage-batch.php
Executable file
@@ -0,0 +1,60 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body{ background:#FFF; }
|
||||
#matchCon { width: 265px; }
|
||||
.mod-search{padding-right: 0;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container" style="margin:20px;">
|
||||
<div class="mod-search m0 cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph" value="请输入仓库编号或名称">
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="search">查询</a><a class="ui-btn" id="refresh">刷新</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/storageBatch.js?ver=20150427"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
51
application/views/settings/storage-list.php
Executable file
51
application/views/settings/storage-list.php
Executable file
@@ -0,0 +1,51 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-toolbar-top cf">
|
||||
<div class="fl"><strong class="tit">仓库</strong></div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb" id="btn-add">新增</a><!--<a class="ui-btn
|
||||
mrb" id="btn-disable">禁用</a><a class="ui-btn mrb" id="btn-enable">启用</a>--><!--<a class="ui-btn mrb"
|
||||
id="btn-print">打印</a>--><!--<a class="ui-btn mrb" id="btn-import">导入</a>--><!--<a class="ui-btn mrb"
|
||||
id="btn-export">导出</a>--><a class="ui-btn" id="btn-refresh">刷新</a></div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/storageList.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
56
application/views/settings/storage-manage.php
Executable file
56
application/views/settings/storage-manage.php
Executable file
@@ -0,0 +1,56 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body{background: #fff;}
|
||||
.manage-wrap{margin: 20px auto 10px;width: 300px;}
|
||||
.manage-wrap .ui-input{width: 200px;font-size:14px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="manage-wrap" class="manage-wrap">
|
||||
<form id="manage-form" action="#">
|
||||
<ul class="mod-form-rows">
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="number">仓库编号:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="number" id="number"></div
|
||||
>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="name">仓库名称:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="name" id="name"></div>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/storageManage.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
57
application/views/settings/supplier-batch.php
Executable file
57
application/views/settings/supplier-batch.php
Executable file
@@ -0,0 +1,57 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#matchCon { width: 280px; }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container" style="margin:20px;">
|
||||
<div class="mod-search m0 cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph" value="请输入供应商编号或名称或联系人">
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="search">查询</a><a class="ui-btn" id="refresh">刷新</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/supplierBatch.js?ver=20150427"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
172
application/views/settings/system-parameter.php
Executable file
172
application/views/settings/system-parameter.php
Executable file
@@ -0,0 +1,172 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script src="<?php echo skin_url()?>/js/common/plugins/jquery.spinbox.js">
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#para-wrapper{font-size:14px; }
|
||||
#para-wrapper .para-item{margin-bottom:30px;}
|
||||
#para-wrapper .para-item h3{font-size:14px;font-weight:bold;margin-bottom:10px;}
|
||||
|
||||
.mod-form-rows .label-wrap { width:140px; }
|
||||
.para-item .ui-input{width:220px;font-size:14px;}
|
||||
|
||||
.subject-para .ui-input{width:40px;}
|
||||
|
||||
.code-length .ui-spinbox-wrap{margin-right:0;}
|
||||
|
||||
.books-para input{margin-top:-3px;}
|
||||
|
||||
#currency{width: 68px;}
|
||||
.ui-droplist-wrap .list-item {font-size:14px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div id="para-wrapper">
|
||||
<div class="para-item">
|
||||
<h3>基础参数</h3>
|
||||
<ul class="mod-form-rows" id="establish-form">
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label for="companyName">公司名称:</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="text" name="companyName" class="ui-input" id="companyName" />
|
||||
</div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label for="companyAddress">公司地址:</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="text" name="companyAddress" class="ui-input" id="companyAddress" />
|
||||
</div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label for="companyTel">公司电话:</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="text" name="companyTel" class="ui-input" id="companyTel" />
|
||||
</div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label for="companyFax">公司传真:</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="text" name="companyFax" class="ui-input" id="companyFax" />
|
||||
</div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label for="postcode">公司邮编:</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="text" name="postcode" class="ui-input" id="postcode" />
|
||||
</div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label for="startDate">启用时间:</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="text" name="startDate" class="ui-input ui-input-dis" id="startDate" disabled
|
||||
="disabled" />
|
||||
</div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label for="currency">本位币:</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="text" class="ui-input ui-input-dis" id="currency" disabled="disabled"/>
|
||||
<!--<select id="currency-sel" name="currency-sel">
|
||||
<option value="RMB">RMB</option>
|
||||
</select>-->
|
||||
</div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label>数量小数位:</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="text" name="qtyPlaces" id="qtyPlaces" class="ui-input" />
|
||||
</div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label>单价小数位:</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="text" name="pricePlaces" id="pricePlaces" class="ui-input" />
|
||||
</div>
|
||||
</li>
|
||||
<!-- <li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label>金额小数位:</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="text" name="amountPlaces" id="amountPlaces" class="ui-input" />
|
||||
</div>
|
||||
</li>-->
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label for="valMethods">存货计价方法:</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<span id="valMethods"></span>
|
||||
</div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap">
|
||||
<label for="requiredCheckStore">是否检查负库存:</label>
|
||||
</div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="checkbox" id="requiredCheckStore">
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="para-item dn">
|
||||
<h3>功能参数</h3>
|
||||
<ul class="mod-form-rows" id="establish-form2">
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="btn-wrap"> <a id="save" class="ui-btn ui-btn-sp">保存</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/parameter.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
78
application/views/settings/unit-list.php
Executable file
78
application/views/settings/unit-list.php
Executable file
@@ -0,0 +1,78 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body{overflow-y:hidden;}
|
||||
.grid-wrap p{margin:5px 0;}
|
||||
#tree{background-color: #fff;width: 225px;border: solid #ddd 1px;margin-left: 5px;height:100%;}
|
||||
h3{background: #EEEEEE;border: 1px solid #ddd;padding: 5px 10px;}
|
||||
.grid-wrap{position:relative;}
|
||||
.grid-wrap h3{border-bottom: none;}
|
||||
#tree h3{border-style:none;border-bottom:solid 1px #D8D8D8;}
|
||||
.quickSearchField{padding :10px; background-color: #f5f5f5;border-bottom:solid 1px #D8D8D8;}
|
||||
#searchCategory input{width:165px;}
|
||||
.innerTree{overflow-y:auto;}
|
||||
#hideTree{cursor: pointer;color:#fff;padding: 0 4px;background-color: #B9B9B9;border-radius: 3px;position
|
||||
: absolute;top: 5px;right: 5px;}
|
||||
#hideTree:hover{background-color: #AAAAAA;}
|
||||
#clear{display:none;}
|
||||
.ztree li span.button.add {margin-left: 2px;margin-right: -1px;background-position: -144px 0;vertical-align
|
||||
: top;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-toolbar-top cf">
|
||||
<div class="fl">
|
||||
<strong class="tit">计量单位</strong>
|
||||
</div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb" id="btn-add">新增</a><a class="ui-btn" id
|
||||
="btn-refresh">刷新</a></div>
|
||||
</div>
|
||||
<div class="cf">
|
||||
<div class="grid-wrap fl cf">
|
||||
<h3>当前组:<span id='group'></span><a href="javascript:void(0);" id='hideTree'>>></a></h3>
|
||||
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
<div class="fl cf" id='tree'>
|
||||
<h3>快速查询</h3>
|
||||
<div class="quickSearchField dn">
|
||||
<form class="ui-search" id="searchGroup">
|
||||
<input type="text" class="ui-input" /><button type="submit" title="点击搜索" >搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/unitList.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
63
application/views/settings/unit-manage.php
Executable file
63
application/views/settings/unit-manage.php
Executable file
@@ -0,0 +1,63 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script src="<?php echo skin_url()?>/js/common/plugins/jquery.spinbox.js">
|
||||
</script>
|
||||
<style>
|
||||
body{background: #fff;}
|
||||
.manage-wrap{margin: 20px auto 10px;width: 300px;}
|
||||
.manage-wrap .ui-input{width: 200px;font-size:14px;}
|
||||
.mod-form-rows .tips {color:#555;font-size:14px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="manage-wrap" class="manage-wrap">
|
||||
<form id="manage-form" action="">
|
||||
<ul class="mod-form-rows">
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="name">名称:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="name" id="name"></div>
|
||||
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="group">所属组:</label></div>
|
||||
<div class="ctn-wrap"><span id="group"></span></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><a class="tips" title="(基本单位:个)" >换算关系:</a></div>
|
||||
<div class="ctn-wrap">
|
||||
<input type="text" name="rate" id="rate" class="ui-input ui-input-dis" disabled/>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/unitManage.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
53
application/views/settings/unitgroup-manage.php
Executable file
53
application/views/settings/unitgroup-manage.php
Executable file
@@ -0,0 +1,53 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script src="<?php echo skin_url()?>/js/common/plugins/jquery.spinbox.js">
|
||||
</script>
|
||||
<style>
|
||||
body{background: #fff;}
|
||||
.manage-wrap{margin: 20px auto 10px;width: 300px;}
|
||||
.manage-wrap .ui-input{width: 200px;font-size:14px;}
|
||||
.mod-form-rows .tips {color:#555;font-size:14px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="manage-wrap" class="manage-wrap">
|
||||
<form id="manage-form" action="">
|
||||
<ul class="mod-form-rows">
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="name">名称:</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="name" id="name"></div>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/unitGroupManage.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
61
application/views/settings/vendor-export.php
Executable file
61
application/views/settings/vendor-export.php
Executable file
@@ -0,0 +1,61 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
|
||||
<table class="table" width="1500" border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="120" align="center"><span style="color:#FF0000">供应商编号</span></th>
|
||||
<th width="180" ><span style="color:#FF0000">供应商名称</span></th>
|
||||
<th width="100" align="center">供应商类别</th>
|
||||
<th width="100" align="center">余额日期</th>
|
||||
<th width="100" align="center">期初应付款</th>
|
||||
<th width="100" align="center">期初预付款</th>
|
||||
<th width="120" align="center">备注</th>
|
||||
<th width="100" align="center">联系人</th>
|
||||
<th width="100" align="center">手机</th>
|
||||
<th width="100" align="center">座机</th>
|
||||
<th width="100" align="center">QQ/MSN</th>
|
||||
<th width="100" align="center">送货地址</th>
|
||||
<th width="100" align="center">首要联系人</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i = 1;
|
||||
foreach($list as $arr=>$row) {
|
||||
?>
|
||||
<tr target="id">
|
||||
<td ><?php echo strval($row['number'])?></td>
|
||||
<td ><?php echo $row['name']?></td>
|
||||
<td ><?php echo $row['cCategoryName']?></td>
|
||||
|
||||
<td ><?php echo $row['beginDate']?></td>
|
||||
<td ><?php echo $row['amount']?></td>
|
||||
<td ><?php echo $row['periodMoney']?></td>
|
||||
<td ><?php echo $row['remark']?></td>
|
||||
<?php
|
||||
if (strlen($row['linkMans'])>0) { //获取首个联系人
|
||||
$array = (array)json_decode($row['linkMans'],true);
|
||||
foreach ($array as $arr1=>$row1) {
|
||||
if ($row1['linkFirst']==1) {
|
||||
?>
|
||||
<td ><?php echo $row1['linkName']?></td>
|
||||
<td ><?php echo $row1['linkMobile']?></td>
|
||||
<td ><?php echo $row1['linkPhone']?></td>
|
||||
<td ><?php echo $row1['linkIm']?></td>
|
||||
<td ><?php echo $row1['province'].$row1['city'].$row1['county'].$row1['address']?></td>
|
||||
<td ><?php echo $row1['linkFirst']==1 ? '是' : '否'?></td>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
} else {?>
|
||||
<td > </td>
|
||||
<td > </td>
|
||||
<td > </td>
|
||||
<td > </td>
|
||||
<td > </td>
|
||||
<td > </td>
|
||||
<?php }?>
|
||||
</tr>
|
||||
<?php $i++;}?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
65
application/views/settings/vendor-list.php
Executable file
65
application/views/settings/vendor-list.php
Executable file
@@ -0,0 +1,65 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
html{ overflow:hidden; }
|
||||
.matchCon{width:280px;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<div class="mod-search cf">
|
||||
<div class="fl">
|
||||
<ul class="ul-inline">
|
||||
<li>
|
||||
<span id="catorage"></span>
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" id="matchCon" class="ui-input ui-input-ph matchCon" value="按供应商编号,供应商名称,联系人,电话等查询">
|
||||
</li>
|
||||
<li><a class="ui-btn mrb" id="search">查询</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fr"><a href="#" class="ui-btn ui-btn-sp mrb" id="btn-add">新增</a><a class="ui-btn mrb"
|
||||
id="btn-disable">禁用</a><a class="ui-btn mrb" id="btn-enable">启用</a><!--<a href="#" class="ui-btn mrb"
|
||||
id="btn-print">打印</a>--><a href="#" class="ui-btn mrb" id="btn-import">导入</a><a href="#" class="ui-btn
|
||||
mrb" id="btn-export">导出</a><a href="#" class="ui-btn" id="btn-batchDel">删除</a></div>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/vendorList.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
112
application/views/settings/vendor-manage.php
Executable file
112
application/views/settings/vendor-manage.php
Executable file
@@ -0,0 +1,112 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = '<?php echo base_url()?>';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url()?>/statics/js/common/plugins/validator/jquery.validator.css">
|
||||
<script type="text/javascript" src="<?php echo base_url()?>/statics/js/common/plugins/validator/jquery.validator.js"></script>
|
||||
<script type="text/javascript" src="<?php echo base_url()?>/statics/js/common/plugins/validator/local/zh_CN.js"></script>
|
||||
<style>
|
||||
body{background: #fff;}
|
||||
.mod-form-rows .label-wrap{font-size:12px;}
|
||||
.mod-form-rows .row-item {padding-bottom: 15px;margin-bottom: 0;}/*兼容IE7 ,重写common的演示*/
|
||||
.manage-wrapper{margin:20px auto 10px;width:600px;}
|
||||
.manage-wrap .ui-input{width: 198px;}
|
||||
.base-form{*zoom: 1;}
|
||||
.base-form:after{content: '.';display: block;clear: both;height: 0;overflow: hidden;}
|
||||
.base-form li{float: left;width: 290px;}
|
||||
.base-form li.odd{padding-right:20px;}
|
||||
.base-form li.last{width:350px}
|
||||
.manage-wrap textarea.ui-input{width: 588px;height: 32px;overflow:hidden;}
|
||||
#receiveFunds,#periodReceiveFunds,#taxRate{text-align: right;}
|
||||
.contacters{margin-bottom: 10px;}
|
||||
.contacters h3{margin-bottom: 10px;font-weight: normal;}
|
||||
.remark .row-item{padding-bottom:0;}
|
||||
.mod-form-rows .ctn-wrap{overflow: visible;}
|
||||
.ui-combo-wrap {position: static;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="manage-wrapper">
|
||||
<div id="manage-wrap" class="manage-wrap">
|
||||
<form id="manage-form" action="">
|
||||
<ul class="mod-form-rows base-form cf" id="base-form">
|
||||
<li class="row-item odd">
|
||||
<div class="label-wrap"><label for="number">供应商编号</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="number" id="number"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="name">供应商名称</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="name" id="name"></div>
|
||||
</li>
|
||||
<li class="row-item odd row-category">
|
||||
<div class="label-wrap"><label for="category">供应商类别</label></div>
|
||||
<div class="ctn-wrap"><span id="category"></span></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="date">余额日期</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input ui-datepicker-input" name="date" id="date" /></div>
|
||||
</li>
|
||||
<li class="row-item odd">
|
||||
<div class="label-wrap"><label for="receiveFunds">期初应付款</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="receiveFunds" id="receiveFunds"></div>
|
||||
</li>
|
||||
<li class="row-item">
|
||||
<div class="label-wrap"><label for="periodReceiveFunds">期初预付款</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="periodReceiveFunds" id="periodReceiveFunds"></div>
|
||||
</li>
|
||||
<li class="row-item last">
|
||||
<div class="label-wrap"><label for="taxRate">增值税税率</label></div>
|
||||
<div class="ctn-wrap"><input type="text" value="" class="ui-input" name="taxRate" id="taxRate"><span>%</span></div>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="contacters">
|
||||
<h3 class="dn">联系方式</h3>
|
||||
<div class="grid-wrap">
|
||||
<table id="grid">
|
||||
</table>
|
||||
<div id="page"></div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="mod-form-rows remark">
|
||||
<li class="row-item">
|
||||
<!-- <div class="label-wrap"><label for="note">备注</label></div> -->
|
||||
<div class="ctn-wrap"><textarea name="" id="note" class="ui-input ui-input-ph">添加备注信息</textarea></div>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
<div class="hideFile dn">
|
||||
<input type="text" class="textbox address" name="address" id="address" autocomplete="off" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>/statics/js/dist/vendorManage.js?ver=201510141132"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user