Compare commits
17 Commits
chengliang
...
master
Author | SHA1 | Date |
---|---|---|
陈秀川 | 8340ec1aaf | 1 year ago |
陈秀川 | b390e17968 | 1 year ago |
陈秀川 | 0403f28529 | 1 year ago |
陈秀川 | 1773d2257a | 1 year ago |
陈秀川 | 1ad23c10b0 | 1 year ago |
陈秀川 | 73a7b471b4 | 1 year ago |
陈秀川 | c42e49ba7c | 1 year ago |
陈秀川 | cf27dc387b | 1 year ago |
陈秀川 | 9a7bfa8583 | 1 year ago |
陈秀川 | 9d1257a5de | 1 year ago |
陈秀川 | 0cfc10603a | 1 year ago |
pa9pff53x | 9bac728076 | 1 year ago |
pa9pff53x | 608f652538 | 1 year ago |
pa9pff53x | 2bf6191947 | 1 year ago |
陈庆豪 | 0e6a734e1d | 1 year ago |
pa9pff53x | ee445a618a | 1 year ago |
pa9pff53x | 8bd52f7ea2 | 1 year ago |
@ -1,155 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
|
|
||||||
<link rel="stylesheet" href="css/style.css"/>
|
|
||||||
<link href="assets/css/codemirror.css" rel="stylesheet">
|
|
||||||
<link rel="stylesheet" href="assets/css/ace.min.css" />
|
|
||||||
<link rel="stylesheet" href="Widget/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
|
|
||||||
<link rel="stylesheet" href="assets/css/font-awesome.min.css" />
|
|
||||||
|
|
||||||
<!--[if IE 7]>
|
|
||||||
<link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
|
|
||||||
<![endif]-->
|
|
||||||
<!--[if lte IE 8]>
|
|
||||||
<link rel="stylesheet" href="assets/css/ace-ie.min.css" />
|
|
||||||
<![endif]-->
|
|
||||||
<script src="assets/js/jquery.min.js"></script>
|
|
||||||
<!-- <![endif]-->
|
|
||||||
<!--[if IE]>
|
|
||||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
|
||||||
<![endif]-->
|
|
||||||
<!--[if !IE]> -->
|
|
||||||
<script type="text/javascript">
|
|
||||||
window.jQuery || document.write("<script src='assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
|
|
||||||
</script>
|
|
||||||
<!-- <![endif]-->
|
|
||||||
<!--[if IE]>
|
|
||||||
<script type="text/javascript">
|
|
||||||
window.jQuery || document.write("<script src='assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
|
|
||||||
</script>
|
|
||||||
<![endif]-->
|
|
||||||
<script src="assets/js/ace-elements.min.js"></script>
|
|
||||||
<script src="assets/js/ace.min.js"></script>
|
|
||||||
<script src="assets/js/bootstrap.min.js"></script>
|
|
||||||
<script src="assets/js/typeahead-bs2.min.js"></script>
|
|
||||||
<script type="text/javascript" src="Widget/zTree/js/jquery.ztree.all-3.5.min.js"></script>
|
|
||||||
<script src="js/lrtk.js" type="text/javascript" ></script>
|
|
||||||
<title>分类管理</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div class=" clearfix">
|
|
||||||
<div id="category">
|
|
||||||
<div id="scrollsidebar" class="left_Treeview">
|
|
||||||
<div class="show_btn" id="rightArrow"><span></span></div>
|
|
||||||
<div class="widget-box side_content" >
|
|
||||||
<div class="side_title"><a title="隐藏" class="close_btn"><span></span></a></div>
|
|
||||||
<div class="side_list">
|
|
||||||
<div class="widget-header header-color-green2">
|
|
||||||
<h4 class="lighter smaller">产品类型列表</h4>
|
|
||||||
</div>
|
|
||||||
<div class="widget-body">
|
|
||||||
<div class="widget-main padding-8">
|
|
||||||
<div id="treeDemo" class="ztree"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!---->
|
|
||||||
<iframe ID="testIframe" Name="testIframe" FRAMEBORDER=0 SCROLLING=AUTO SRC="product-category-add.html" class="page_right_style"></iframe>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(function() {
|
|
||||||
$("#category").fix({
|
|
||||||
float : 'left',
|
|
||||||
//minStatue : true,
|
|
||||||
skin : 'green',
|
|
||||||
durationTime :false
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
//初始化宽度、高度
|
|
||||||
$(".widget-box").height($(window).height());
|
|
||||||
$(".page_right_style").width($(window).width()-220);
|
|
||||||
//当文档窗口发生改变时 触发
|
|
||||||
$(window).resize(function(){
|
|
||||||
$(".widget-box").height($(window).height());
|
|
||||||
$(".page_right_style").width($(window).width()-220);
|
|
||||||
})
|
|
||||||
|
|
||||||
/**************/
|
|
||||||
var setting = {
|
|
||||||
view: {
|
|
||||||
dblClickExpand: false,
|
|
||||||
showLine: false,
|
|
||||||
selectedMulti: false
|
|
||||||
},
|
|
||||||
data: {
|
|
||||||
simpleData: {
|
|
||||||
enable:true,
|
|
||||||
idKey: "id",
|
|
||||||
pIdKey: "pId",
|
|
||||||
rootPId: ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
callback: {
|
|
||||||
beforeClick: function(treeId, treeNode) {
|
|
||||||
var zTree = $.fn.zTree.getZTreeObj("tree");
|
|
||||||
if (treeNode.isParent) {
|
|
||||||
zTree.expandNode(treeNode);
|
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
demoIframe.attr("src",treeNode.file + ".html");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
var zNodes =[
|
|
||||||
{ id:1, pId:0, name:"商城分类列表", open:true},
|
|
||||||
{ id:11, pId:1, name:"男装"},
|
|
||||||
{ id:111, pId:11, name:"上装"},
|
|
||||||
{ id:112, pId:11, name:"下装"},
|
|
||||||
{ id:113, pId:11, name:"套装"},
|
|
||||||
{ id:12, pId:1, name:"女装"},
|
|
||||||
{ id:121, pId:12, name:"下装"},
|
|
||||||
{ id:122, pId:12, name:"上装"},
|
|
||||||
{ id:123, pId:12, name:"裙装"},
|
|
||||||
{ id:123, pId:12, name:"内衣"},
|
|
||||||
{ id:13, pId:1, name:"包包"},
|
|
||||||
{ id:131, pId:13, name:"女士包包"},
|
|
||||||
{ id:132, pId:13, name:"男士包包"},
|
|
||||||
{ id:14, pId:1, name:"童装"},
|
|
||||||
{ id:141, pId:14, name:"男童装"},
|
|
||||||
{ id:42, pId:14, name:"女童装"},
|
|
||||||
{ id:42, pId:14, name:"男女童鞋"},
|
|
||||||
{ id:15, pId:1, name:"鞋靴"},
|
|
||||||
{ id:151, pId:15, name:"男鞋"},
|
|
||||||
{ id:152, pId:15, name:"女鞋"},
|
|
||||||
];
|
|
||||||
|
|
||||||
var code;
|
|
||||||
|
|
||||||
function showCode(str) {
|
|
||||||
if (!code) code = $("#code");
|
|
||||||
code.empty();
|
|
||||||
code.append("<li>"+str+"</li>");
|
|
||||||
}
|
|
||||||
|
|
||||||
$(document).ready(function(){
|
|
||||||
var t = $("#treeDemo");
|
|
||||||
t = $.fn.zTree.init(t, setting, zNodes);
|
|
||||||
demoIframe = $("#testIframe");
|
|
||||||
demoIframe.bind("load", loadReady);
|
|
||||||
var zTree = $.fn.zTree.getZTreeObj("tree");
|
|
||||||
zTree.selectNode(zTree.getNodeByParam("id",'11'));
|
|
||||||
});
|
|
||||||
</script>
|
|
@ -1,249 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="renderer" content="webkit|ie-comp|ie-stand">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
||||||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
|
||||||
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
|
|
||||||
<link rel="stylesheet" href="css/style.css"/>
|
|
||||||
<link href="assets/css/codemirror.css" rel="stylesheet">
|
|
||||||
<link rel="stylesheet" href="assets/css/ace.min.css" />
|
|
||||||
<link rel="stylesheet" href="font/css/font-awesome.min.css" />
|
|
||||||
<!--[if lte IE 8]>
|
|
||||||
<link rel="stylesheet" href="assets/css/ace-ie.min.css" />
|
|
||||||
<![endif]-->
|
|
||||||
<script src="js/jquery-1.9.1.min.js"></script>
|
|
||||||
<script src="assets/js/bootstrap.min.js"></script>
|
|
||||||
<script src="assets/js/typeahead-bs2.min.js"></script>
|
|
||||||
<script src="assets/js/jquery.dataTables.min.js"></script>
|
|
||||||
<script src="assets/js/jquery.dataTables.bootstrap.js"></script>
|
|
||||||
<script src="assets/layer/layer.js" type="text/javascript" ></script>
|
|
||||||
<script src="assets/laydate/laydate.js" type="text/javascript"></script>
|
|
||||||
<script src="js/lrtk.js" type="text/javascript" ></script>
|
|
||||||
<title>订单处理</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div class="clearfix">
|
|
||||||
<div class="handling_style" id="order_hand">
|
|
||||||
<div id="scrollsidebar" class="left_Treeview">
|
|
||||||
<div class="show_btn" id="rightArrow"><span></span></div>
|
|
||||||
<div class="widget-box side_content" >
|
|
||||||
<div class="side_title"><a title="隐藏" class="close_btn"><span></span></a></div>
|
|
||||||
<div class="side_list"><div class="widget-header header-color-green2"><h4 class="lighter smaller">订单操作</h4></div>
|
|
||||||
<div class="widget-body">
|
|
||||||
<ul class="b_P_Sort_list">
|
|
||||||
<li><i class="orange fa fa-reorder"></i><a href="#">全部订单(235)</a></li>
|
|
||||||
<li><i class="fa fa-sticky-note pink "></i> <a href="#">已完成(235)</a></li>
|
|
||||||
<li><i class="fa fa-sticky-note pink "></i> <a href="#">代付款(15)</a> </li>
|
|
||||||
<li><i class="fa fa-sticky-note pink "></i> <a href="#">代发货(56)</a></li>
|
|
||||||
<li><i class="fa fa-sticky-note pink "></i> <a href="#">代收货(32)</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="order_list_style" id="order_list_style">
|
|
||||||
<div class="search_style">
|
|
||||||
|
|
||||||
<ul class="search_content clearfix">
|
|
||||||
<li><label class="l_f">订单编号</label><input name="" type="text" class="text_add" placeholder="输入订单编号" style=" width:250px"/></li>
|
|
||||||
<li><label class="l_f">交易时间</label><input class="inline laydate-icon" id="start" style=" margin-left:10px;"></li>
|
|
||||||
<li style="width:90px;"><button type="button" class="btn_search"><i class="fa fa-search"></i>查询</button></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<!--交易订单列表-->
|
|
||||||
<div class="Orderform_list">
|
|
||||||
<table class="table table-striped table-bordered table-hover" id="sample-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th width="25px"><label><input type="checkbox" class="ace"><span class="lbl"></span></label></th>
|
|
||||||
<th width="120px">订单编号</th>
|
|
||||||
<th width="250px">产品名称</th>
|
|
||||||
<th width="100px">交易金额</th>
|
|
||||||
<th width="100px">交易时间</th>
|
|
||||||
<th width="180px">所属分类</th>
|
|
||||||
<th width="80px">数量</th>
|
|
||||||
<th width="70px">状态</th>
|
|
||||||
<th width="100px">说明</th>
|
|
||||||
<th width="200px">操作</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
|
|
||||||
<td>20160705445622</td>
|
|
||||||
<td class="order_product_name">
|
|
||||||
<a href="#" class="product_Display"><img src="products/p_1.jpg" title="产品名称"/></a>
|
|
||||||
<i class="fa fa-plus"></i>
|
|
||||||
<a href="#" class="product_Display"><img src="products/p_2.jpg" title="产品名称"/></a>
|
|
||||||
</td>
|
|
||||||
<td>456.5</td>
|
|
||||||
|
|
||||||
<td>2016-7-5</td>
|
|
||||||
<td>食品</td>
|
|
||||||
<td>2</td>
|
|
||||||
<td class="td-status"><span class="label label-success radius">代发货</span></td>
|
|
||||||
<td></td>
|
|
||||||
<td>
|
|
||||||
<a onClick="Delivery_stop(this,'10001')" href="javascript:;" title="发货" class="btn btn-xs btn-success"><i class="fa fa-cubes bigger-120"></i></a>
|
|
||||||
<a title="订单详细" href="order_detailed.html" class="btn btn-xs btn-info order_detailed" ><i class="fa fa-list bigger-120"></i></a>
|
|
||||||
<a title="删除" href="javascript:;" onclick="Order_form_del(this,'1')" class="btn btn-xs btn-warning" ><i class="fa fa-trash bigger-120"></i></a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
|
|
||||||
<td>20160705445622</td>
|
|
||||||
<td class="order_product_name">
|
|
||||||
<a href="#" class="product_Display">
|
|
||||||
<img src="products/p_1.jpg" title="产品名称"/>
|
|
||||||
</a>
|
|
||||||
<i class="fa fa-plus"></i>
|
|
||||||
<a href="#" class="product_Display">
|
|
||||||
<img src="products/p_2.jpg" title="产品名称"/>
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
<td>456.5</td>
|
|
||||||
<td>2016-7-5</td>
|
|
||||||
<td>食品</td>
|
|
||||||
<td>2</td>
|
|
||||||
<td class="td-status"><span class="label label-success radius">已发货</span></td>
|
|
||||||
<td></td>
|
|
||||||
<td>
|
|
||||||
<a title="订单详细" href="order_detailed.html" class="btn btn-xs btn-info order_detailed" ><i class="fa fa-list bigger-120"></i></a>
|
|
||||||
<a title="删除" href="javascript:;" onclick="Order_form_del(this,'1')" class="btn btn-xs btn-warning" ><i class="fa fa-trash bigger-120"></i></a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
|
|
||||||
<td>20160705445622</td>
|
|
||||||
<td class="order_product_name">
|
|
||||||
<a href="#" class="product_Display"><img src="products/p_1.jpg" title="产品名称"/>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
<td>456.5</td>
|
|
||||||
<td>2016-7-5</td>
|
|
||||||
<td>食品</td>
|
|
||||||
<td>2</td>
|
|
||||||
<td class="td-status"><span class="label label-success radius">失败</span></td>
|
|
||||||
<td>支付失败</td>
|
|
||||||
<td>
|
|
||||||
<a title="订单详细" href="order_detailed.html" class="btn btn-xs btn-info order_detailed" ><i class="fa fa-list bigger-120"></i></a>
|
|
||||||
<a title="删除" href="javascript:;" onclick="Order_form_del(this,'1')" class="btn btn-xs btn-warning" ><i class="fa fa-trash bigger-120"></i></a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!--发货-->
|
|
||||||
<div id="Delivery_stop" style=" display:none">
|
|
||||||
<div class="">
|
|
||||||
<div class="content_style">
|
|
||||||
<div class="form-group"><label class="col-sm-2 control-label no-padding-right" for="form-field-1">快递公司 </label>
|
|
||||||
<div class="col-sm-9"><select class="form-control" id="form-field-select-1">
|
|
||||||
<option value="">--选择快递--</option>
|
|
||||||
<option value="1">天天快递</option>
|
|
||||||
<option value="2">圆通快递</option>
|
|
||||||
<option value="3">中通快递</option>
|
|
||||||
<option value="4">顺丰快递</option>
|
|
||||||
<option value="5">申通快递</option>
|
|
||||||
<option value="6">邮政EMS</option>
|
|
||||||
<option value="7">邮政小包</option>
|
|
||||||
<option value="8">韵达快递</option>
|
|
||||||
</select></div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group"><label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 快递号 </label>
|
|
||||||
<div class="col-sm-9"><input type="text" id="form-field-1" placeholder="快递号" class="col-xs-10 col-sm-5" style="margin-left:0px;"></div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group"><label class="col-sm-2 control-label no-padding-right" for="form-field-1">货到付款 </label>
|
|
||||||
<div class="col-sm-9"><label><input name="checkbox" type="checkbox" class="ace" id="checkbox"><span class="lbl"></span></label></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<script>
|
|
||||||
$(function() {
|
|
||||||
$("#order_hand").fix({
|
|
||||||
float : 'left',
|
|
||||||
//minStatue : true,
|
|
||||||
skin : 'green',
|
|
||||||
durationTime :false,
|
|
||||||
spacingw:30,//设置隐藏时的距离
|
|
||||||
spacingh:250,//设置显示时间距
|
|
||||||
table_menu:'.order_list_style',
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
//时间
|
|
||||||
laydate({
|
|
||||||
elem: '#start',
|
|
||||||
event: 'focus'
|
|
||||||
});
|
|
||||||
//初始化宽度、高度
|
|
||||||
$(".widget-box").height($(window).height());
|
|
||||||
$(".order_list_style").width($(window).width()-220);
|
|
||||||
$(".order_list_style").height($(window).height()-30);
|
|
||||||
//当文档窗口发生改变时 触发
|
|
||||||
$(window).resize(function(){
|
|
||||||
$(".widget-box").height($(window).height());
|
|
||||||
$(".order_list_style").width($(window).width()-234);
|
|
||||||
$(".order_list_style").height($(window).height()-30);
|
|
||||||
});
|
|
||||||
/**发货**/
|
|
||||||
function Delivery_stop(obj,id){
|
|
||||||
layer.open({
|
|
||||||
type: 1,
|
|
||||||
title: '发货',
|
|
||||||
maxmin: true,
|
|
||||||
shadeClose:false,
|
|
||||||
area : ['500px' , ''],
|
|
||||||
content:$('#Delivery_stop'),
|
|
||||||
btn:['确定','取消'],
|
|
||||||
yes: function(index, layero){
|
|
||||||
if($('#form-field-1').val()==""){
|
|
||||||
layer.alert('快递号不能为空!',{
|
|
||||||
title: '提示框',
|
|
||||||
icon:0,
|
|
||||||
})
|
|
||||||
|
|
||||||
}else{
|
|
||||||
layer.confirm('提交成功!',function(index){
|
|
||||||
$(obj).parents("tr").find(".td-manage").prepend('<a style=" display:none" class="btn btn-xs btn-success" onClick="member_stop(this,id)" href="javascript:;" title="已发货"><i class="fa fa-cubes bigger-120"></i></a>');
|
|
||||||
$(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">已发货</span>');
|
|
||||||
$(obj).remove();
|
|
||||||
layer.msg('已发货!',{icon: 6,time:1000});
|
|
||||||
});
|
|
||||||
layer.close(index);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
||||||
};
|
|
||||||
//订单列表
|
|
||||||
jQuery(function($) {
|
|
||||||
var oTable1 = $('#sample-table').dataTable( {
|
|
||||||
"aaSorting": [[ 1, "desc" ]],//默认第几个排序
|
|
||||||
"bStateSave": true,//状态保存
|
|
||||||
"aoColumnDefs": [
|
|
||||||
//{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
|
|
||||||
{"orderable":false,"aTargets":[0,2,3,4,5,6,8,9]}// 制定列不参与排序
|
|
||||||
] } );
|
|
||||||
//全选操作
|
|
||||||
$('table th input:checkbox').on('click' , function(){
|
|
||||||
var that = this;
|
|
||||||
$(this).closest('table').find('tr > td:first-child input:checkbox')
|
|
||||||
.each(function(){
|
|
||||||
this.checked = that.checked;
|
|
||||||
$(this).closest('tr').toggleClass('selected');
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
@ -1,391 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="renderer" content="webkit|ie-comp|ie-stand">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
||||||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
|
||||||
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
|
|
||||||
<link rel="stylesheet" href="css/style.css"/>
|
|
||||||
<link href="assets/css/codemirror.css" rel="stylesheet">
|
|
||||||
<link rel="stylesheet" href="assets/css/ace.min.css" />
|
|
||||||
<link rel="stylesheet" href="font/css/font-awesome.min.css" />
|
|
||||||
<!--[if lte IE 8]>
|
|
||||||
<link rel="stylesheet" href="assets/css/ace-ie.min.css" />
|
|
||||||
<![endif]-->
|
|
||||||
<script src="js/jquery-1.9.1.min.js"></script>
|
|
||||||
<script src="assets/js/bootstrap.min.js"></script>
|
|
||||||
<script type="text/javascript" src="js/H-ui.js"></script>
|
|
||||||
<script src="assets/js/typeahead-bs2.min.js"></script>
|
|
||||||
<script src="assets/js/jquery.dataTables.min.js"></script>
|
|
||||||
<script src="assets/js/jquery.dataTables.bootstrap.js"></script>
|
|
||||||
<script src="assets/layer/layer.js" type="text/javascript" ></script>
|
|
||||||
<script src="assets/laydate/laydate.js" type="text/javascript"></script>
|
|
||||||
<script src="assets/js/jquery.easy-pie-chart.min.js"></script>
|
|
||||||
<script src="js/lrtk.js" type="text/javascript" ></script>
|
|
||||||
<title>订单管理</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div class="margin clearfix">
|
|
||||||
<div class="cover_style" id="cover_style">
|
|
||||||
<!--内容-->
|
|
||||||
<div class="centent_style" id="centent_style">
|
|
||||||
<div id="covar_list" class="order_list">
|
|
||||||
<div id="scrollsidebar" class="left_Treeview">
|
|
||||||
<div class="show_btn" id="rightArrow"><span></span></div>
|
|
||||||
<div class="widget-box side_content" >
|
|
||||||
<div class="side_title"><a title="隐藏" class="close_btn"><span></span></a></div>
|
|
||||||
<div class="side_list"><div class="widget-header header-color-green2"><h4 class="lighter smaller">订单类型分类</h4></div>
|
|
||||||
<div class="widget-body">
|
|
||||||
<ul class="b_P_Sort_list">
|
|
||||||
<li><i class="orange fa fa-reorder"></i><a href="#">全部订单</a></li>
|
|
||||||
<li><i class="fa fa-sticky-note pink "></i> <a href="#">男装</a></li>
|
|
||||||
<li><i class="fa fa-sticky-note pink "></i> <a href="#">女装</a> </li>
|
|
||||||
<li><i class="fa fa-sticky-note pink "></i> <a href="#">童装</a></li>
|
|
||||||
<li><i class="fa fa-sticky-note pink "></i> <a href="#">鞋靴</a></li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!--左侧样式-->
|
|
||||||
<div class="list_right_style">
|
|
||||||
<div class="search_style">
|
|
||||||
|
|
||||||
<ul class="search_content clearfix">
|
|
||||||
<li><label class="l_f">订单编号</label><input name="" type="text" class="text_add" placeholder="订单订单编号" style=" width:250px"></li>
|
|
||||||
<li><label class="l_f">时间</label><input class="inline laydate-icon" id="start" style=" margin-left:10px;"></li>
|
|
||||||
<li style="width:90px;"><button type="button" class="btn_search"><i class="fa fa-search"></i>查询</button></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<!--订单列表展示-->
|
|
||||||
<table class="table table-striped table-bordered table-hover" id="sample-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th width="25px"><label><input type="checkbox" class="ace"><span class="lbl"></span></label></th>
|
|
||||||
<th width="120px">订单编号</th>
|
|
||||||
<th width="250px">产品名称</th>
|
|
||||||
<th width="100px">总价</th>
|
|
||||||
<th width="100px">优惠</th>
|
|
||||||
<th width="100px">订单时间</th>
|
|
||||||
<th width="180px">所属类型</th>
|
|
||||||
<th width="80px">数量</th>
|
|
||||||
<th width="70px">状态</th>
|
|
||||||
<th width="200px">操作</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
|
|
||||||
<td>20160705445622</td>
|
|
||||||
<td class="order_product_name">
|
|
||||||
<a href="#"><img src="products/p_1.jpg" title="产品名称"/></a>
|
|
||||||
<i class="fa fa-plus"></i>
|
|
||||||
<a href="#"><img src="products/p_2.jpg" title="产品名称"/></a>
|
|
||||||
</td>
|
|
||||||
<td>456.5</td>
|
|
||||||
<td>14</td>
|
|
||||||
<td>2016-7-5</td>
|
|
||||||
<td>食品</td>
|
|
||||||
<td>2</td>
|
|
||||||
<td class="td-status"><span class="label label-success radius">代发货</span></td>
|
|
||||||
<td>
|
|
||||||
<a onClick="Delivery_stop(this,'10001')" href="javascript:;" title="发货" class="btn btn-xs btn-success"><i class="fa fa-cubes bigger-120"></i></a>
|
|
||||||
<a title="订单详细" href="order_detailed.html" class="btn btn-xs btn-info order_detailed" ><i class="fa fa-list bigger-120"></i></a>
|
|
||||||
<a title="删除" href="javascript:;" onclick="Order_form_del(this,'1')" class="btn btn-xs btn-warning" ><i class="fa fa-trash bigger-120"></i></a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
|
|
||||||
<td>20160705445622</td>
|
|
||||||
<td class="order_product_name">
|
|
||||||
<a href="#"><img src="products/p_1.jpg" title="产品名称"/></a>
|
|
||||||
<i class="fa fa-plus"></i>
|
|
||||||
<a href="#"><img src="products/p_2.jpg" title="产品名称"/></a>
|
|
||||||
</td>
|
|
||||||
<td>456.5</td>
|
|
||||||
<td>14</td>
|
|
||||||
<td>2016-7-5</td>
|
|
||||||
<td>食品</td>
|
|
||||||
<td>2</td>
|
|
||||||
<td class="td-status"><span class="label label-success radius">代发货</span></td>
|
|
||||||
<td>
|
|
||||||
<a onClick="Delivery_stop(this,'10003')" href="javascript:;" title="发货" class="btn btn-xs btn-success"><i class="fa fa-cubes bigger-120"></i></a>
|
|
||||||
<a title="订单详细" href="order_detailed.html" class="btn btn-xs btn-info order_detailed" ><i class="fa fa-list bigger-120"></i></a>
|
|
||||||
<a title="删除" href="javascript:;" onclick="Order_form_del(this,'1')" class="btn btn-xs btn-warning" ><i class="fa fa-trash bigger-120"></i></a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
|
|
||||||
<td>20160705445622</td>
|
|
||||||
<td class="order_product_name">
|
|
||||||
<a href="#"><img src="products/p_1.jpg" title="产品名称"/></a>
|
|
||||||
<i class="fa fa-plus"></i>
|
|
||||||
<a href="#"><img src="products/p_2.jpg" title="产品名称"/></a>
|
|
||||||
</td>
|
|
||||||
<td>456.5</td>
|
|
||||||
<td>14</td>
|
|
||||||
<td>2016-7-5</td>
|
|
||||||
<td>食品</td>
|
|
||||||
<td>2</td>
|
|
||||||
<td class="td-status"><span class="label label-success radius">代发货</span></td>
|
|
||||||
<td>
|
|
||||||
<a onClick="Delivery_stop(this,'10005')" href="javascript:;" title="发货" class="btn btn-xs btn-success"><i class="fa fa-cubes bigger-120"></i></a>
|
|
||||||
<a title="订单详细" href="order_detailed.html" class="btn btn-xs btn-info order_detailed" ><i class="fa fa-list bigger-120"></i></a>
|
|
||||||
<a title="删除" href="javascript:;" onclick="Order_form_del(this,'1')" class="btn btn-xs btn-warning" ><i class="fa fa-trash bigger-120"></i></a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
|
|
||||||
<td>20160705445622</td>
|
|
||||||
<td class="order_product_name">
|
|
||||||
<a href="#"><img src="products/p_1.jpg" title="产品名称"/></a>
|
|
||||||
<i class="fa fa-plus"></i>
|
|
||||||
<a href="#"><img src="products/p_2.jpg" title="产品名称"/></a>
|
|
||||||
</td>
|
|
||||||
<td>456.5</td>
|
|
||||||
<td>14</td>
|
|
||||||
<td>2016-7-5</td>
|
|
||||||
<td>食品</td>
|
|
||||||
<td>2</td>
|
|
||||||
<td class="td-status"><span class="label label-success radius">代发货</span></td>
|
|
||||||
<td>
|
|
||||||
<a onClick="Delivery_stop(this,'10034')" href="javascript:;" title="发货" class="btn btn-xs btn-success"><i class="fa fa-cubes bigger-120"></i></a>
|
|
||||||
<a title="订单详细" href="order_detailed.html" class="btn btn-xs btn-info order_detailed" ><i class="fa fa-list bigger-120"></i></a>
|
|
||||||
<a title="删除" href="javascript:;" onclick="Order_form_del(this,'1')" class="btn btn-xs btn-warning" ><i class="fa fa-trash bigger-120"></i></a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
|
|
||||||
<td>20160705445622</td>
|
|
||||||
<td class="order_product_name">
|
|
||||||
<a href="#"><img src="products/p_5.jpg" title="产品名称"/></a>
|
|
||||||
<i class="fa fa-plus"></i>
|
|
||||||
<a href="#"><img src="products/p_4.jpg" title="产品名称"/></a>
|
|
||||||
</td>
|
|
||||||
<td>456.5</td>
|
|
||||||
<td>14</td>
|
|
||||||
<td>2016-7-5</td>
|
|
||||||
<td>食品</td>
|
|
||||||
<td>2</td>
|
|
||||||
<td class="td-status"><span class="label label-success radius">代发货</span></td>
|
|
||||||
<td>
|
|
||||||
<a onClick="Delivery_stop(this,'10012')" href="javascript:;" title="发货" class="btn btn-xs btn-success"><i class="fa fa-cubes bigger-120"></i></a>
|
|
||||||
<a title="订单详细" href="order_detailed.html" class="btn btn-xs btn-info order_detailed" ><i class="fa fa-list bigger-120"></i></a>
|
|
||||||
<a title="删除" href="javascript:;" onclick="Order_form_del(this,'1')" class="btn btn-xs btn-warning" ><i class="fa fa-trash bigger-120"></i></a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
|
|
||||||
<td>20160705445622</td>
|
|
||||||
<td class="order_product_name">
|
|
||||||
<a href="#"><img src="products/p_3.jpg" title="产品名称"/></a>
|
|
||||||
<i class="fa fa-plus"></i>
|
|
||||||
<a href="#"><img src="products/p_7.jpg" title="产品名称"/></a>
|
|
||||||
</td>
|
|
||||||
<td>456.5</td>
|
|
||||||
<td>14</td>
|
|
||||||
<td>2016-7-5</td>
|
|
||||||
<td>食品</td>
|
|
||||||
<td>2</td>
|
|
||||||
<td class="td-status"><span class="label label-success radius">代发货</span></td>
|
|
||||||
<td>
|
|
||||||
<a onClick="Delivery_stop(this,'10061')" href="javascript:;" title="发货" class="btn btn-xs btn-success"><i class="fa fa-cubes bigger-120"></i></a>
|
|
||||||
<a title="订单详细" href="order_detailed.html" class="btn btn-xs btn-info order_detailed" ><i class="fa fa-list bigger-120"></i></a>
|
|
||||||
<a title="删除" href="javascript:;" onclick="Order_form_del(this,'1')" class="btn btn-xs btn-warning" ><i class="fa fa-trash bigger-120"></i></a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!--发货-->
|
|
||||||
<div id="Delivery_stop" style=" display:none">
|
|
||||||
<div class="">
|
|
||||||
<div class="content_style">
|
|
||||||
<div class="form-group"><label class="col-sm-2 control-label no-padding-right" for="form-field-1">快递公司 </label>
|
|
||||||
<div class="col-sm-9"><select class="form-control" id="form-field-select-1">
|
|
||||||
<option value="">--选择快递--</option>
|
|
||||||
<option value="1">天天快递</option>
|
|
||||||
<option value="2">圆通快递</option>
|
|
||||||
<option value="3">中通快递</option>
|
|
||||||
<option value="4">顺丰快递</option>
|
|
||||||
<option value="5">申通快递</option>
|
|
||||||
<option value="6">邮政EMS</option>
|
|
||||||
<option value="7">邮政小包</option>
|
|
||||||
<option value="8">韵达快递</option>
|
|
||||||
</select></div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group"><label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 快递号 </label>
|
|
||||||
<div class="col-sm-9"><input type="text" id="form-field-1" placeholder="快递号" class="col-xs-10 col-sm-5" style="margin-left:0px;"></div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group"><label class="col-sm-2 control-label no-padding-right" for="form-field-1">货到付款 </label>
|
|
||||||
<div class="col-sm-9"><label><input name="checkbox" type="checkbox" class="ace" id="checkbox"><span class="lbl"></span></label></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<script>
|
|
||||||
$(function() {
|
|
||||||
$("#cover_style").fix({
|
|
||||||
float : 'top',
|
|
||||||
minStatue : false,
|
|
||||||
skin : 'green',
|
|
||||||
durationTime :false,
|
|
||||||
window_height:30,//设置浏览器与div的高度值差
|
|
||||||
spacingw:0,//
|
|
||||||
spacingh:0,//
|
|
||||||
close_btn:'.yingchan_btn',
|
|
||||||
show_btn:'.xianshi_btn',
|
|
||||||
side_list:'.hide_style',
|
|
||||||
widgetbox:'.top_style',
|
|
||||||
close_btn_width:60,
|
|
||||||
da_height:'#centent_style,.left_Treeview,.list_right_style',
|
|
||||||
side_title:'.b_n_btn',
|
|
||||||
content:null,
|
|
||||||
left_css:'.left_Treeview,.list_right_style'
|
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
});
|
|
||||||
//左侧显示隐藏
|
|
||||||
$(function() {
|
|
||||||
$("#covar_list").fix({
|
|
||||||
float : 'left',
|
|
||||||
minStatue : false,
|
|
||||||
skin:false,
|
|
||||||
//durationTime :false,
|
|
||||||
spacingw:50,//设置隐藏时的距离
|
|
||||||
spacingh:270,//设置显示时间距
|
|
||||||
stylewidth:'220',
|
|
||||||
close_btn:'.close_btn',
|
|
||||||
show_btn:'.show_btn',
|
|
||||||
side_list:'.side_list',
|
|
||||||
content:'.side_content',
|
|
||||||
widgetbox:'.widget-box',
|
|
||||||
da_height:null,
|
|
||||||
table_menu:'.list_right_style'
|
|
||||||
});
|
|
||||||
});
|
|
||||||
//时间选择
|
|
||||||
laydate({
|
|
||||||
elem: '#start',
|
|
||||||
event: 'focus'
|
|
||||||
});
|
|
||||||
/*订单-删除*/
|
|
||||||
function Order_form_del(obj,id){
|
|
||||||
layer.confirm('确认要删除吗?',function(index){
|
|
||||||
$(obj).parents("tr").remove();
|
|
||||||
layer.msg('已删除!',{icon:1,time:1000});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
/**发货**/
|
|
||||||
function Delivery_stop(obj,id){
|
|
||||||
layer.open({
|
|
||||||
type: 1,
|
|
||||||
title: '发货',
|
|
||||||
maxmin: true,
|
|
||||||
shadeClose:false,
|
|
||||||
area : ['500px' , ''],
|
|
||||||
content:$('#Delivery_stop'),
|
|
||||||
btn:['确定','取消'],
|
|
||||||
yes: function(index, layero){
|
|
||||||
if($('#form-field-1').val()==""){
|
|
||||||
layer.alert('快递号不能为空!',{
|
|
||||||
title: '提示框',
|
|
||||||
icon:0,
|
|
||||||
})
|
|
||||||
|
|
||||||
}else{
|
|
||||||
layer.confirm('提交成功!',function(index){
|
|
||||||
$(obj).parents("tr").find(".td-manage").prepend('<a style=" display:none" class="btn btn-xs btn-success" onClick="member_stop(this,id)" href="javascript:;" title="已发货"><i class="fa fa-cubes bigger-120"></i></a>');
|
|
||||||
$(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">已发货</span>');
|
|
||||||
$(obj).remove();
|
|
||||||
layer.msg('已发货!',{icon: 6,time:1000});
|
|
||||||
});
|
|
||||||
layer.close(index);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
||||||
};
|
|
||||||
//面包屑返回值
|
|
||||||
var index = parent.layer.getFrameIndex(window.name);
|
|
||||||
parent.layer.iframeAuto(index);
|
|
||||||
$('.Order_form,.order_detailed').on('click', function(){
|
|
||||||
var cname = $(this).attr("title");
|
|
||||||
var chref = $(this).attr("href");
|
|
||||||
var cnames = parent.$('.Current_page').html();
|
|
||||||
var herf = parent.$("#iframe").attr("src");
|
|
||||||
parent.$('#parentIframe').html(cname);
|
|
||||||
parent.$('#iframe').attr("src",chref).ready();;
|
|
||||||
parent.$('#parentIframe').css("display","inline-block");
|
|
||||||
parent.$('.Current_page').attr({"name":herf,"href":"javascript:void(0)"}).css({"color":"#4c8fbd","cursor":"pointer"});
|
|
||||||
//parent.$('.Current_page').html("<a href='javascript:void(0)' name="+herf+" class='iframeurl'>" + cnames + "</a>");
|
|
||||||
parent.layer.close(index);
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
//初始化宽度、高度
|
|
||||||
var heights=$(".top_style").outerHeight()+47;
|
|
||||||
$(".centent_style").height($(window).height()-heights);
|
|
||||||
$(".page_right_style").width($(window).width()-220);
|
|
||||||
$(".left_Treeview,.list_right_style").height($(window).height()-heights-2);
|
|
||||||
$(".list_right_style").width($(window).width()-250);
|
|
||||||
//当文档窗口发生改变时 触发
|
|
||||||
$(window).resize(function(){
|
|
||||||
$(".centent_style").height($(window).height()-heights);
|
|
||||||
$(".page_right_style").width($(window).width()-220);
|
|
||||||
$(".left_Treeview,.list_right_style").height($(window).height()-heights-2);
|
|
||||||
$(".list_right_style").width($(window).width()-250);
|
|
||||||
})
|
|
||||||
//比例
|
|
||||||
var oldie = /msie\s*(8|7|6)/.test(navigator.userAgent.toLowerCase());
|
|
||||||
$('.easy-pie-chart.percentage').each(function(){
|
|
||||||
$(this).easyPieChart({
|
|
||||||
barColor: $(this).data('color'),
|
|
||||||
trackColor: '#EEEEEE',
|
|
||||||
scaleColor: false,
|
|
||||||
lineCap: 'butt',
|
|
||||||
lineWidth: 10,
|
|
||||||
animate: oldie ? false : 1000,
|
|
||||||
size:103
|
|
||||||
}).css('color', $(this).data('color'));
|
|
||||||
});
|
|
||||||
|
|
||||||
$('[data-rel=tooltip]').tooltip();
|
|
||||||
$('[data-rel=popover]').popover({html:true});
|
|
||||||
</script>
|
|
||||||
<script>
|
|
||||||
//订单列表
|
|
||||||
jQuery(function($) {
|
|
||||||
var oTable1 = $('#sample-table').dataTable( {
|
|
||||||
"aaSorting": [[ 1, "desc" ]],//默认第几个排序
|
|
||||||
"bStateSave": true,//状态保存
|
|
||||||
"aoColumnDefs": [
|
|
||||||
//{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
|
|
||||||
{"orderable":false,"aTargets":[0,1,2,3,4,5,6,7,8,9]}// 制定列不参与排序
|
|
||||||
] } );
|
|
||||||
|
|
||||||
|
|
||||||
$('table th input:checkbox').on('click' , function(){
|
|
||||||
var that = this;
|
|
||||||
$(this).closest('table').find('tr > td:first-child input:checkbox')
|
|
||||||
.each(function(){
|
|
||||||
this.checked = that.checked;
|
|
||||||
$(this).closest('tr').toggleClass('selected');
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
</script>
|
|
@ -1,342 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="renderer" content="webkit|ie-comp|ie-stand">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
|
|
||||||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
|
||||||
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
|
|
||||||
<link rel="stylesheet" href="css/style.css"/>
|
|
||||||
<link href="assets/css/codemirror.css" rel="stylesheet">
|
|
||||||
<link rel="stylesheet" href="assets/css/ace.min.css" />
|
|
||||||
<link rel="stylesheet" href="font/css/font-awesome.min.css" />
|
|
||||||
<!--[if lte IE 8]>
|
|
||||||
<link rel="stylesheet" href="assets/css/ace-ie.min.css" />
|
|
||||||
<![endif]-->
|
|
||||||
<script src="js/jquery-1.9.1.min.js"></script>
|
|
||||||
<script src="assets/js/typeahead-bs2.min.js"></script>
|
|
||||||
<script src="js/lrtk.js" type="text/javascript" ></script>
|
|
||||||
<script src="assets/js/jquery.dataTables.min.js"></script>
|
|
||||||
<script src="assets/js/jquery.dataTables.bootstrap.js"></script>
|
|
||||||
<script src="assets/layer/layer.js" type="text/javascript" ></script>
|
|
||||||
<script type="text/javascript" src="Widget/swfupload/swfupload.js"></script>
|
|
||||||
<script type="text/javascript" src="Widget/swfupload/swfupload.queue.js"></script>
|
|
||||||
<script type="text/javascript" src="Widget/swfupload/swfupload.speed.js"></script>
|
|
||||||
<script type="text/javascript" src="Widget/swfupload/handlers.js"></script>
|
|
||||||
<title>广告管理</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div class=" clearfix" id="advertising">
|
|
||||||
<div id="scrollsidebar" class="left_Treeview">
|
|
||||||
<div class="show_btn" id="rightArrow"><span></span></div>
|
|
||||||
<div class="widget-box side_content" >
|
|
||||||
<div class="side_title"><a title="隐藏" class="close_btn"><span></span></a></div>
|
|
||||||
<div class="side_list">
|
|
||||||
<div class="widget-header header-color-green2">
|
|
||||||
<h4 class="lighter smaller">广告图分类</h4>
|
|
||||||
</div>
|
|
||||||
<div class="widget-body">
|
|
||||||
<ul class="b_P_Sort_list">
|
|
||||||
<li><i class="orange fa fa-user-secret"></i><a href="#">全部</a></li>
|
|
||||||
<li><i class="fa fa-image pink "></i> <a href="#">首页轮播广告</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div><div class="Ads_list">
|
|
||||||
<div class="border clearfix">
|
|
||||||
<span class="l_f">
|
|
||||||
<a href="javascript:ovid()" id="ads_add" class="btn btn-warning"><i class="fa fa-plus"></i> 添加广告</a>
|
|
||||||
<a href="javascript:ovid()" class="btn btn-danger"><i class="fa fa-trash"></i> 批量删除</a>
|
|
||||||
</span>
|
|
||||||
<span class="r_f">共:<b>45</b>条广告</span>
|
|
||||||
</div>
|
|
||||||
<div class="Ads_lists">
|
|
||||||
<table class="table table-striped table-bordered table-hover" id="sample-table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th width="25"><label><input type="checkbox" class="ace"><span class="lbl"></span></label></th>
|
|
||||||
<th width="80">ID</th>
|
|
||||||
<th>排序</th>
|
|
||||||
<th width="100">分类</th>
|
|
||||||
<th width="220px">图片</th>
|
|
||||||
<th width="150px">尺寸(大小)</th>
|
|
||||||
<th width="250px">链接地址</th>
|
|
||||||
<th width="180px">加入时间</th>
|
|
||||||
<th width="70px">状态</th>
|
|
||||||
<th width="250px">操作</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<!-- 广告管理 -->
|
|
||||||
<tr>
|
|
||||||
<td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
|
|
||||||
<td>1</td>
|
|
||||||
<td><input name="" type="text" style=" width:50px" placeholder="1"/></td>
|
|
||||||
<td>图片</td>
|
|
||||||
<td><span class="ad_img"><img src="./images/32047824_0_final.png" width="100%" height="100%"/></span></td>
|
|
||||||
<td>1890x1080</td>
|
|
||||||
<td><a href="#" target="_blank"></a>北21公寓626</td>
|
|
||||||
<td>2016-6-29 12:34</td>
|
|
||||||
<td class="td-status"><span class="label label-success radius">显示</span></td>
|
|
||||||
<td class="td-manage">
|
|
||||||
<a onClick="member_stop(this,'10001')" href="javascript:;" title="停用" class="btn btn-xs btn-success"><i class="fa fa-check bigger-120"></i></a>
|
|
||||||
<a title="编辑" onclick="member_edit('编辑','member-add.html','4','','510')" href="javascript:;" class="btn btn-xs btn-info" ><i class="fa fa-edit bigger-120"></i></a>
|
|
||||||
<a title="删除" href="javascript:;" onclick="member_del(this,'1')" class="btn btn-xs btn-warning" ><i class="fa fa-trash bigger-120"></i></a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!--添加广告样式-->
|
|
||||||
<div id="add_ads_style" style="display:none">
|
|
||||||
<div class="add_adverts">
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<label class="label_name">所属分类</label>
|
|
||||||
<span class="cont_style">
|
|
||||||
<select class="form-control" id="form-field-select-1">
|
|
||||||
<option value="">选择分类</option>
|
|
||||||
<option value="AL">首页大幻灯片</option>
|
|
||||||
</select></span>
|
|
||||||
</li>
|
|
||||||
<li><label class="label_name">图片尺寸</label><span class="cont_style">
|
|
||||||
<input name="长" type="text" id="form-field-1" placeholder="0" class="col-xs-10 col-sm-5" style="width:80px">
|
|
||||||
<span class="l_f" style="margin-left:10px;">x</span><input name="宽" type="text" id="form-field-1" placeholder="0" class="col-xs-10 col-sm-5" style="width:80px"></span></li>
|
|
||||||
<li><label class="label_name">显示排序</label><span class="cont_style"><input name="排序" type="text" id="form-field-1" placeholder="0" class="col-xs-10 col-sm-5" style="width:50px"></span></li>
|
|
||||||
<li><label class="label_name">链接地址</label><span class="cont_style"><input name="地址" type="text" id="form-field-1" placeholder="地址" class="col-xs-10 col-sm-5" style="width:450px"></span></li>
|
|
||||||
<li><label class="label_name">状 态:</label>
|
|
||||||
<span class="cont_style">
|
|
||||||
<label><input name="form-field-radio1" type="radio" checked="checked" class="ace"><span class="lbl">显示</span></label>
|
|
||||||
<label><input name="form-field-radio1" type="radio" class="ace"><span class="lbl">隐藏</span></label></span><div class="prompt r_f"></div>
|
|
||||||
</li>
|
|
||||||
<li><label class="label_name">图片</label><span class="cont_style">
|
|
||||||
<div class="demo">
|
|
||||||
<div class="logobox"><div class="resizebox"><img src="images/image.png" width="100px" alt="" height="100px"/></div></div>
|
|
||||||
<div class="logoupload">
|
|
||||||
<div class="btnbox"><a id="uploadBtnHolder" class="uploadbtn" href="javascript:;">上传替换</a></div>
|
|
||||||
<div style="clear:both;height:0;overflow:hidden;"></div>
|
|
||||||
<div class="progress-box" style="display:none;">
|
|
||||||
<div class="progress-num">上传进度:<b>0%</b></div>
|
|
||||||
<div class="progress-bar"><div style="width:0%;" class="bar-line"></div></div>
|
|
||||||
</div> <div class="prompt"><p>图片大小小于5MB,支持.jpg;.gif;.png;.jpeg格式的图片</p></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<script>
|
|
||||||
//初始化宽度、高度
|
|
||||||
$(".widget-box").height($(window).height());
|
|
||||||
$(".Ads_list").width($(window).width()-220);
|
|
||||||
//当文档窗口发生改变时 触发
|
|
||||||
$(window).resize(function(){
|
|
||||||
$(".widget-box").height($(window).height());
|
|
||||||
$(".Ads_list").width($(window).width()-220);
|
|
||||||
});
|
|
||||||
$(function() {
|
|
||||||
$("#advertising").fix({
|
|
||||||
float : 'left',
|
|
||||||
//minStatue : true,
|
|
||||||
skin : 'green',
|
|
||||||
durationTime :false,
|
|
||||||
stylewidth:'220',
|
|
||||||
spacingw:30,//设置隐藏时的距离
|
|
||||||
spacingh:250,//设置显示时间距
|
|
||||||
set_scrollsidebar:'.Ads_style',
|
|
||||||
table_menu:'.Ads_list'
|
|
||||||
});
|
|
||||||
});
|
|
||||||
/*广告图片-停用*/
|
|
||||||
function member_stop(obj,id){
|
|
||||||
layer.confirm('确认要关闭吗?',{icon:0,},function(index){
|
|
||||||
$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" class="btn btn-xs " onClick="member_start(this,id)" href="javascript:;" title="显示"><i class="fa fa-close bigger-120"></i></a>');
|
|
||||||
$(obj).parents("tr").find(".td-status").html('<span class="label label-defaunt radius">已关闭</span>');
|
|
||||||
$(obj).remove();
|
|
||||||
layer.msg('关闭!',{icon: 5,time:1000});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
/*广告图片-启用*/
|
|
||||||
function member_start(obj,id){
|
|
||||||
layer.confirm('确认要显示吗?',{icon:0,},function(index){
|
|
||||||
$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" class="btn btn-xs btn-success" onClick="member_stop(this,id)" href="javascript:;" title="关闭"><i class="fa fa-check bigger-120"></i></a>');
|
|
||||||
$(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">显示</span>');
|
|
||||||
$(obj).remove();
|
|
||||||
layer.msg('显示!',{icon: 6,time:1000});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
/*广告图片-删除*/
|
|
||||||
function member_del(obj,id){
|
|
||||||
layer.confirm('确认要删除吗?',{icon:0,},function(index){
|
|
||||||
$(obj).parents("tr").remove();
|
|
||||||
layer.msg('已删除!',{icon:1,time:1000});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
/*******添加广告*********/
|
|
||||||
$('#ads_add').on('click', function(){
|
|
||||||
layer.open({
|
|
||||||
type: 1,
|
|
||||||
title: '添加广告',
|
|
||||||
maxmin: true,
|
|
||||||
shadeClose: false, //点击遮罩关闭层
|
|
||||||
area : ['800px' , ''],
|
|
||||||
content:$('#add_ads_style'),
|
|
||||||
btn:['提交','取消'],
|
|
||||||
yes:function(index,layero){
|
|
||||||
var num=0;
|
|
||||||
var str="";
|
|
||||||
$(".add_adverts input[type$='text']").each(function(n){
|
|
||||||
if($(this).val()=="")
|
|
||||||
{
|
|
||||||
|
|
||||||
layer.alert(str+=""+$(this).attr("name")+"不能为空!\r\n",{
|
|
||||||
title: '提示框',
|
|
||||||
icon:0,
|
|
||||||
});
|
|
||||||
num++;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
if(num>0){ return false;}
|
|
||||||
else{
|
|
||||||
layer.alert('添加成功!',{
|
|
||||||
title: '提示框',
|
|
||||||
icon:1,
|
|
||||||
});
|
|
||||||
layer.close(index);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
function updateProgress(file) {
|
|
||||||
$('.progress-box .progress-bar > div').css('width', parseInt(file.percentUploaded) + '%');
|
|
||||||
$('.progress-box .progress-num > b').html(SWFUpload.speed.formatPercent(file.percentUploaded));
|
|
||||||
if(parseInt(file.percentUploaded) == 100) {
|
|
||||||
// 如果上传完成了
|
|
||||||
$('.progress-box').hide();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function initProgress() {
|
|
||||||
$('.progress-box').show();
|
|
||||||
$('.progress-box .progress-bar > div').css('width', '0%');
|
|
||||||
$('.progress-box .progress-num > b').html('0%');
|
|
||||||
}
|
|
||||||
|
|
||||||
function successAction(fileInfo) {
|
|
||||||
var up_path = fileInfo.path;
|
|
||||||
var up_width = fileInfo.width;
|
|
||||||
var up_height = fileInfo.height;
|
|
||||||
var _up_width,_up_height;
|
|
||||||
if(up_width > 120) {
|
|
||||||
_up_width = 120;
|
|
||||||
_up_height = _up_width*up_height/up_width;
|
|
||||||
}
|
|
||||||
$(".logobox .resizebox").css({width: _up_width, height: _up_height});
|
|
||||||
$(".logobox .resizebox > img").attr('src', up_path);
|
|
||||||
$(".logobox .resizebox > img").attr('width', _up_width);
|
|
||||||
$(".logobox .resizebox > img").attr('height', _up_height);
|
|
||||||
}
|
|
||||||
|
|
||||||
var swfImageUpload;
|
|
||||||
$(document).ready(function() {
|
|
||||||
var settings = {
|
|
||||||
flash_url : "Widget/swfupload/swfupload.swf",
|
|
||||||
flash9_url : "Widget/swfupload/swfupload_fp9.swf",
|
|
||||||
upload_url: "upload.php",// 接受上传的地址
|
|
||||||
file_size_limit : "5MB",// 文件大小限制
|
|
||||||
file_types : "*.jpg;*.gif;*.png;*.jpeg;",// 限制文件类型
|
|
||||||
file_types_description : "图片",// 说明,自己定义
|
|
||||||
file_upload_limit : 100,
|
|
||||||
file_queue_limit : 0,
|
|
||||||
custom_settings : {},
|
|
||||||
debug: false,
|
|
||||||
// Button settings
|
|
||||||
button_image_url: "Widget/swfupload/upload-btn.png",
|
|
||||||
button_width: "95",
|
|
||||||
button_height: "30 ",
|
|
||||||
button_placeholder_id: 'uploadBtnHolder',
|
|
||||||
button_window_mode : SWFUpload.WINDOW_MODE.TRANSPARENT,
|
|
||||||
button_cursor : SWFUpload.CURSOR.HAND,
|
|
||||||
button_action: SWFUpload.BUTTON_ACTION.SELECT_FILE,
|
|
||||||
|
|
||||||
moving_average_history_size: 40,
|
|
||||||
|
|
||||||
// The event handler functions are defined in handlers.js
|
|
||||||
swfupload_preload_handler : preLoad,
|
|
||||||
swfupload_load_failed_handler : loadFailed,
|
|
||||||
file_queued_handler : fileQueued,
|
|
||||||
file_dialog_complete_handler: fileDialogComplete,
|
|
||||||
upload_start_handler : function (file) {
|
|
||||||
initProgress();
|
|
||||||
updateProgress(file);
|
|
||||||
},
|
|
||||||
upload_progress_handler : function(file, bytesComplete, bytesTotal) {
|
|
||||||
updateProgress(file);
|
|
||||||
},
|
|
||||||
upload_success_handler : function(file, data, response) {
|
|
||||||
// 上传成功后处理函数
|
|
||||||
var fileInfo = eval("(" + data + ")");
|
|
||||||
successAction(fileInfo);
|
|
||||||
},
|
|
||||||
upload_error_handler : function(file, errorCode, message) {
|
|
||||||
alert('上传发生了错误!');
|
|
||||||
},
|
|
||||||
file_queue_error_handler : function(file, errorCode, message) {
|
|
||||||
if(errorCode == -110) {
|
|
||||||
alert('您选择的文件太大了。');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
swfImageUpload = new SWFUpload(settings);
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
<script>
|
|
||||||
jQuery(function($) {
|
|
||||||
var oTable1 = $('#sample-table').dataTable( {
|
|
||||||
"aaSorting": [[ 1, "desc" ]],//默认第几个排序
|
|
||||||
"bStateSave": true,//状态保存
|
|
||||||
"aoColumnDefs": [
|
|
||||||
//{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
|
|
||||||
{"orderable":false,"aTargets":[0,2,3,4,5,7,8,]}// 制定列不参与排序
|
|
||||||
] } );
|
|
||||||
|
|
||||||
|
|
||||||
$('table th input:checkbox').on('click' , function(){
|
|
||||||
var that = this;
|
|
||||||
$(this).closest('table').find('tr > td:first-child input:checkbox')
|
|
||||||
.each(function(){
|
|
||||||
this.checked = that.checked;
|
|
||||||
$(this).closest('tr').toggleClass('selected');
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
|
|
||||||
function tooltip_placement(context, source) {
|
|
||||||
var $source = $(source);
|
|
||||||
var $parent = $source.closest('table')
|
|
||||||
var off1 = $parent.offset();
|
|
||||||
var w1 = $parent.width();
|
|
||||||
|
|
||||||
var off2 = $source.offset();
|
|
||||||
var w2 = $source.width();
|
|
||||||
|
|
||||||
if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
|
|
||||||
return 'left';
|
|
||||||
}
|
|
||||||
})
|
|
||||||
</script>
|
|
@ -1,119 +0,0 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
|
|
||||||
<link rel="stylesheet" href="css/style.css"/>
|
|
||||||
<link rel="stylesheet" href="assets/css/ace.min.css" />
|
|
||||||
<link rel="stylesheet" href="assets/css/font-awesome.min.css" />
|
|
||||||
<link href="assets/css/codemirror.css" rel="stylesheet">
|
|
||||||
<!--[if IE 7]>
|
|
||||||
<link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
|
|
||||||
<![endif]-->
|
|
||||||
<!--[if lte IE 8]>
|
|
||||||
<link rel="stylesheet" href="assets/css/ace-ie.min.css" />
|
|
||||||
<![endif]-->
|
|
||||||
<script src="assets/js/ace-extra.min.js"></script>
|
|
||||||
<!--[if lt IE 9]>
|
|
||||||
<script src="assets/js/html5shiv.js"></script>
|
|
||||||
<script src="assets/js/respond.min.js"></script>
|
|
||||||
<![endif]-->
|
|
||||||
<!--[if !IE]> -->
|
|
||||||
<script src="assets/js/jquery.min.js"></script>
|
|
||||||
<!-- <![endif]-->
|
|
||||||
<script src="assets/dist/echarts.js"></script>
|
|
||||||
<script src="assets/js/bootstrap.min.js"></script>
|
|
||||||
<title></title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="page-content clearfix">
|
|
||||||
<div class="alert alert-block alert-success">
|
|
||||||
<button type="button" class="close" data-dismiss="alert"><i class="icon-remove"></i></button>
|
|
||||||
<i class="icon-ok green"></i>欢迎使用<strong class="green">后台管理系统
|
|
||||||
</div>
|
|
||||||
<div class="state-overview clearfix">
|
|
||||||
<div class="col-lg-3 col-sm-6">
|
|
||||||
<section class="panel">
|
|
||||||
<a href="#" title="商城会员">
|
|
||||||
<div class="symbol terques">
|
|
||||||
<i class="icon-user"></i>
|
|
||||||
</div>
|
|
||||||
<div class="value">
|
|
||||||
<h1>xxx</h1>
|
|
||||||
<p>用户</p>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
<div class="col-lg-3 col-sm-6">
|
|
||||||
<section class="panel">
|
|
||||||
<div class="symbol yellow">
|
|
||||||
<i class="icon-shopping-cart"></i>
|
|
||||||
</div>
|
|
||||||
<div class="value">
|
|
||||||
<h1>xxx</h1>
|
|
||||||
<p>xxx</p>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!--记录-->
|
|
||||||
<div class="clearfix">
|
|
||||||
<div class="home_btn">
|
|
||||||
<div>
|
|
||||||
<a href="picture-add.html" title="添加商品" class="btn btn-info btn-sm no-radius">
|
|
||||||
<i class="bigger-200"><img src="images/icon-addp.png" /></i>
|
|
||||||
<h5 class="margin-top">添加商品</h5>
|
|
||||||
</a>
|
|
||||||
<a href="Category_Manage.html" title="产品分类" class="btn btn-primary btn-sm no-radius">
|
|
||||||
<i class="bigger-200"><img src="images/icon-cpgl.png" /></i>
|
|
||||||
<h5 class="margin-top">产品分类</h5>
|
|
||||||
</a>
|
|
||||||
<a href="admin_info.html" title="个人信息" class="btn btn-success btn-sm no-radius">
|
|
||||||
<i class="bigger-200"><img src="images/icon-grxx.png" /></i>
|
|
||||||
<h5 class="margin-top">个人信息</h5>
|
|
||||||
</a>
|
|
||||||
<a href="Order_handling.html" title="商品订单" class="btn btn-purple btn-sm no-radius">
|
|
||||||
<i class="bigger-200"><img src="images/icon-gwcc.png" /></i>
|
|
||||||
<h5 class="margin-top">商品订单</h5>
|
|
||||||
</a>
|
|
||||||
<a href="picture-add.html" title="添加广告" class="btn btn-pink btn-sm no-radius">
|
|
||||||
<i class="bigger-200"><img src="images/icon-ad.png" /></i>
|
|
||||||
<h5 class="margin-top">添加广告</h5>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<script type="text/javascript">
|
|
||||||
//面包屑返回值
|
|
||||||
var index = parent.layer.getFrameIndex(window.name);
|
|
||||||
parent.layer.iframeAuto(index);
|
|
||||||
$('.no-radius').on('click', function(){
|
|
||||||
var cname = $(this).attr("title");
|
|
||||||
var chref = $(this).attr("href");
|
|
||||||
var cnames = parent.$('.Current_page').html();
|
|
||||||
var herf = parent.$("#iframe").attr("src");
|
|
||||||
parent.$('#parentIframe').html(cname);
|
|
||||||
parent.$('#iframe').attr("src",chref).ready();;
|
|
||||||
parent.$('#parentIframe').css("display","inline-block");
|
|
||||||
parent.$('.Current_page').attr({"name":herf,"href":"javascript:void(0)"}).css({"color":"#4c8fbd","cursor":"pointer"});
|
|
||||||
//parent.$('.Current_page').html("<a href='javascript:void(0)' name="+herf+" class='iframeurl'>" + cnames + "</a>");
|
|
||||||
parent.layer.close(index);
|
|
||||||
|
|
||||||
});
|
|
||||||
$(document).ready(function(){
|
|
||||||
|
|
||||||
$(".t_Record").width($(window).width()-640);
|
|
||||||
//当文档窗口发生改变时 触发
|
|
||||||
$(window).resize(function(){
|
|
||||||
$(".t_Record").width($(window).width()-640);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
|
@ -1,87 +0,0 @@
|
|||||||
<!DOCTYPE HTML>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="renderer" content="webkit|ie-comp|ie-stand">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
|
|
||||||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
|
||||||
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
|
|
||||||
<link rel="stylesheet" href="css/style.css"/>
|
|
||||||
<link rel="stylesheet" href="assets/css/ace.min.css" />
|
|
||||||
<link rel="stylesheet" href="assets/css/font-awesome.min.css" />
|
|
||||||
<link href="Widget/icheck/icheck.css" rel="stylesheet" type="text/css" />
|
|
||||||
<!--[if IE 7]>
|
|
||||||
<link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
|
|
||||||
<![endif]-->
|
|
||||||
<!--[if lte IE 8]>
|
|
||||||
<link rel="stylesheet" href="assets/css/ace-ie.min.css" />
|
|
||||||
<![endif]-->
|
|
||||||
<script src="js/jquery-1.9.1.min.js"></script>
|
|
||||||
<script src="assets/js/bootstrap.min.js"></script>
|
|
||||||
<title>添加产品分类</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="type_style">
|
|
||||||
<div class="type_title">产品类型信息</div>
|
|
||||||
<div class="type_content">
|
|
||||||
<div class="Operate_btn">
|
|
||||||
<a href="javascript:ovid()" class="btn btn-warning"><i class="icon-edit align-top bigger-125"></i>新增子类型</a>
|
|
||||||
<a href="javascript:ovid()" class="btn btn-success"><i class="icon-ok align-top bigger-125"></i>禁用该类型</a>
|
|
||||||
<a href="javascript:ovid()" class="btn btn-danger"><i class="icon-trash align-top bigger-125"></i>删除该类型</a>
|
|
||||||
</div>
|
|
||||||
<form action="" method="post" class="form form-horizontal" id="form-user-add">
|
|
||||||
<div class="Operate_cont clearfix">
|
|
||||||
<label class="form-label"><span class="c-red">*</span>分类名称:</label>
|
|
||||||
<div class="formControls ">
|
|
||||||
<input type="text" class="input-text" value="" placeholder="" id="user-name" name="product-category-name">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="Operate_cont clearfix">
|
|
||||||
<label class="form-label"><span class="c-red">*</span>排序:</label>
|
|
||||||
<div class="formControls ">
|
|
||||||
<input type="text" class="input-text" value="" placeholder="" id="user-name" name="product-category-name">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="Operate_cont clearfix">
|
|
||||||
<label class="form-label">备注:</label>
|
|
||||||
<div class="formControls">
|
|
||||||
<textarea name="" rows="" class="textarea" placeholder="说点什么...最少输入10个字符" datatype="*10-100" dragonfly="true" nullmsg="备注不能为空!" onKeyUp="textarealength(this,100)"></textarea>
|
|
||||||
<p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="">
|
|
||||||
<div class="" style=" text-align:center">
|
|
||||||
<input class="btn btn-primary radius" type="submit" value="提交">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<script type="text/javascript" src="Widget/icheck/jquery.icheck.min.js"></script>
|
|
||||||
<script type="text/javascript" src="Widget/Validform/5.3.2/Validform.min.js"></script>
|
|
||||||
<script type="text/javascript" src="assets/layer/layer.js"></script>
|
|
||||||
<script type="text/javascript" src="js/H-ui.js"></script>
|
|
||||||
<script type="text/javascript" src="js/H-ui.admin.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(function(){
|
|
||||||
$('.skin-minimal input').iCheck({
|
|
||||||
checkboxClass: 'icheckbox-blue',
|
|
||||||
radioClass: 'iradio-blue',
|
|
||||||
increaseArea: '20%'
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#form-user-add").Validform({
|
|
||||||
tiptype:2,
|
|
||||||
callback:function(form){
|
|
||||||
form[0].submit();
|
|
||||||
var index = parent.layer.getFrameIndex(window.name);
|
|
||||||
parent.$('.btn-refresh').click();
|
|
||||||
parent.layer.close(index);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Before Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 118 KiB |
Before Width: | Height: | Size: 179 KiB |
Before Width: | Height: | Size: 94 KiB |
Before Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 8.1 KiB |
Before Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 475 KiB |
Before Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 16 KiB |