chore: 添加多个图片和资源文件
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
This commit is contained in:
@@ -0,0 +1,190 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<title>二维码-e订通后台</title>
|
||||
<link rel="stylesheet" href="layuiadmin/layui/css/layui.css">
|
||||
<link rel="stylesheet" href="index.css">
|
||||
<script src="layuiadmin/layui/layui.js"></script>
|
||||
<script src="js/function.js"></script>
|
||||
<!-- 自动完成 -->
|
||||
<script src="js/autocomplete/jquery-1.4.4.min.js"></script>
|
||||
<script src="js/autocomplete/jquery.autocomplete.js"></script>
|
||||
<link rel="stylesheet" href="js/autocomplete/jquery.autocomplete.css">
|
||||
<!-- /自动完成 -->
|
||||
<script src="js/jquery.jqprint-0.3.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$('#s_path_t').autocomplete("./?_m=ajax_autocomplete&_a=paths", {
|
||||
dataType: "json",//数据格式
|
||||
max: 100, //列表里的条目数
|
||||
minChars: 0, //自动完成激活之前填入的最小字符
|
||||
width: 300, //提示的宽度,溢出隐藏
|
||||
scrollHeight: 300, //提示的高度,溢出显示滚动条
|
||||
matchContains: true, //包含匹配,就是data参数里的数据,是否只要包含文本框里的数据就显示
|
||||
autoFill: false, //自动填充
|
||||
parse: function (data) {
|
||||
if (!data || data == null || data == "") {
|
||||
alert("无数据");
|
||||
return {};
|
||||
}else{
|
||||
return $.map(data.data, function (row) {
|
||||
return {
|
||||
data:row,value:row.t,result:row.t
|
||||
};
|
||||
});
|
||||
}
|
||||
},
|
||||
formatItem: function(row,i,max) {
|
||||
//提示的显示内容及格式设置
|
||||
return row.t;
|
||||
},
|
||||
formatMatch: function(row, i, max) {
|
||||
return row.t;
|
||||
},
|
||||
formatResult: function(row) {
|
||||
return row.t;
|
||||
}
|
||||
}).result(function(event,row,formatted){
|
||||
$('#s_path_t').value=row.t;
|
||||
document.getElementById('s_path').value=row.p;
|
||||
});
|
||||
});
|
||||
function start_print_new(){
|
||||
var oWin=window.open("","_blank");
|
||||
var strPrint=$("#print").html();
|
||||
oWin.document.write(strPrint);
|
||||
oWin.document.close();
|
||||
}
|
||||
</script>
|
||||
<style type="text/css">
|
||||
.layui-table-cell {
|
||||
height: auto;
|
||||
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<blockquote class="layui-elem-quote" style="line-height:44px;padding:8px;">
|
||||
<form class="layui-form" id="form1_search" action="client_ewm.htm">
|
||||
<div class="layui-input-inline" style="width:150px;">
|
||||
<input type=text name="s_path_t" id="s_path_t" class="layui-input searchVal" onfocus="this.select()" value="">
|
||||
<input type="hidden" name="s_path" id="s_path" value="">
|
||||
</div>
|
||||
<div class="layui-input-inline">
|
||||
<input id="s_title" name="s_title" type="text" class="layui-input searchVal" placeholder="客户端名称" value="" />
|
||||
</div>
|
||||
<div class="layui-input-inline">
|
||||
<input id="s_username" name="s_username" type="text" class="layui-input searchVal" placeholder="登陆代码" value="" />
|
||||
</div>
|
||||
<div class="layui-input-inline" style="width:100px;" id="search_face"></div>
|
||||
<div class="layui-input-inline" style="width:100px;" id="search_ewmcc"></div>
|
||||
<button id="form1_submit" class="layui-btn layui-btn-normal" lay-submit lay-filter="form1_submit"> 搜 索 </button>
|
||||
<a class="layui-btn btn_showall">显示全部</a>
|
||||
<input id="btn_print" type="button" class="layui-btn layui-btn-normal" onclick="start_print_new()" value=" 打 印 ">
|
||||
|
||||
</form>
|
||||
</blockquote>
|
||||
<form class="layui-form">
|
||||
<div id="print">
|
||||
<table id="layui_table" style="width:100%;"></table>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<script>
|
||||
layui.use(['form','layer','table','laytpl'],function(){
|
||||
var form = layui.form,
|
||||
layer = layui.layer,
|
||||
$=layui.jquery;
|
||||
//初始化
|
||||
//取得url传递参数
|
||||
var query_str=location.search.substring(1);
|
||||
if(query_str)
|
||||
query_str="&"+query_str;
|
||||
var url="./?_m=client&_a=ewm"+query_str;
|
||||
|
||||
$.ajax(
|
||||
{
|
||||
url:url,
|
||||
contentType: "application/json",
|
||||
method: 'POST',
|
||||
success: function (res) {
|
||||
var json_data=$.parseJSON(res);
|
||||
//登入角色
|
||||
var html1="";
|
||||
html1+='<select name="s_face"><option value="">-'+json_data.select_face.title+'-</option>';
|
||||
var op=json_data.select_face.op;
|
||||
for(var j=0;j<op.length;j++){
|
||||
html1+='<option value="'+op[j].no+'"';
|
||||
if(op[j].no==json_data.select_face.value)
|
||||
html1+='selected';
|
||||
html1+='>'+op[j].title+'</option>';
|
||||
}
|
||||
html1+='</select>';
|
||||
$("#search_face").html(html1);
|
||||
|
||||
var html1="";
|
||||
html1+='<select name="size"><option value="">-'+json_data.select_ewmcc.title+'-</option>';
|
||||
var op=json_data.select_ewmcc.op;
|
||||
for(var j=0;j<op.length;j++){
|
||||
html1+='<option value="'+op[j].no+'"';
|
||||
if(op[j].no==json_data.select_ewmcc.value)
|
||||
html1+='selected';
|
||||
html1+='>'+op[j].title+'</option>';
|
||||
}
|
||||
html1+='</select>';
|
||||
$("#search_ewmcc").html(html1);
|
||||
|
||||
$("#s_path_t").val(json_data.s_path_t);
|
||||
$("#s_path").val(json_data.s_path);
|
||||
$("#s_title").val(json_data.s_title);
|
||||
$("#s_username").val(json_data.s_username);
|
||||
|
||||
var html1='';
|
||||
for(var i=0;i<Math.ceil(json_data.data.length/5);i++){
|
||||
var str11=str12=str13=str14=str15="";
|
||||
var da1=json_data.data[i*5];
|
||||
if(da1!="undefined" && da1!="" && da1!= null){
|
||||
str11='<img src="ewm.php?data='+da1.content1+'&size='+json_data.select_ewmcc.value+'"><br>'+da1.title;
|
||||
}
|
||||
var da2=json_data.data[i*5+1];
|
||||
if(da2!="undefined" && da2!="" && da2!= null){
|
||||
str12='<img src="ewm.php?data='+da2.content1+'&size='+json_data.select_ewmcc.value+'"><br>'+da2.title;
|
||||
}
|
||||
var da3=json_data.data[i*5+2];
|
||||
if(da3!="undefined" && da3!="" && da3!= null){
|
||||
str13='<img src="ewm.php?data='+da3.content1+'&size='+json_data.select_ewmcc.value+'"><br>'+da3.title;
|
||||
}
|
||||
var da4=json_data.data[i*5+3];
|
||||
if(da4!="undefined" && da4!="" && da4!= null){
|
||||
str14='<img src="ewm.php?data='+da4.content1+'&size='+json_data.select_ewmcc.value+'"><br>'+da4.title;
|
||||
}
|
||||
var da5=json_data.data[i*5+4];
|
||||
if(da5!="undefined" && da5!="" && da5!= null){
|
||||
str15='<img src="ewm.php?data='+da5.content1+'&size='+json_data.select_ewmcc.value+'"><br>'+da5.title;
|
||||
}
|
||||
|
||||
html1+='<tr><td align="center" width="20%" style="line-height:25px;">'+str11+'</td><td align="center" width="20%" style="line-height:25px;">'+str12+'</td><td align="center" width="20%" style="line-height:25px;">'+str13+'</td><td align="center" width="20%" style="line-height:25px;">'+str14+'</td><td align="center" width="20%" style="line-height:25px;">'+str15+'</td></tr>';
|
||||
}
|
||||
$("#layui_table").html(html1);
|
||||
|
||||
form.render();
|
||||
},
|
||||
error: function () {
|
||||
layui.layer.msg("与服务器通信失败!");
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
//显示全部
|
||||
$(".btn_showall").click(function(){
|
||||
location.href='client_ewm.htm';
|
||||
})
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user