64789608 by yangjianbin

init

1 parent 47614843
<?php $this->load->view('common/header'); ?>
<body>
<div class="page-container">
<div class="page-container">
<form class="search">
<div class="date mb-20">
<input type="text" onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'logmax\')||\'%y-%M-%d\'}' })" id="logmin" class="input-text Wdate"> -
<input type="text" onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'logmin\')}',maxDate:'%y-%M-%d' })" id="logmax" class="input-text Wdate">
<input type="text" onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'logmax\')||\'%y-%M-%d\'}' })" id="logmin"
class="input-text Wdate"> -
<input type="text" onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'logmin\')}',maxDate:'%y-%M-%d' })"
id="logmax" class="input-text Wdate">
</div>
<div class="row cl mb-20">
<div class="col-xs-2">
......@@ -91,9 +93,9 @@
</table>
</div>
</div>
<?php $this->load->view('common/footer'); ?>
<script>
</div>
<?php $this->load->view('common/footer'); ?>
<script>
var table = $('#table').dataTable({
aaSorting: [[1, "desc"]],
serverSide: true,
......@@ -108,7 +110,7 @@
var ret = {}, json = jQuery.parseJSON(json);
ret.data = json.data || [];
var draw = getUrlParam('draw');
if(draw) {
if (draw) {
ret.draw = draw;
}
ret.recordsTotal = 0;
......@@ -128,10 +130,11 @@
columns: [
{
data: "id", render: function (data, type, full) {
var url = "<?=site_url('/work/record')?>";
return '<span class="dropDown dropDown_hover">\
<button class="btn radius size-M">请选择 <i class="Hui-iconfont">&#xe6d5;</i></button>\
<ul class="dropDown-menu menu radius box-shadow">\
<li><a href="javascript:;" onclick="layer_show(\'资料补录\', \'/work/record\')"">资料补录</a></li>\
<li><a href="javascript:;" onclick="layer_show(' + url + ')"">资料补录</a></li>\
<li><a href="javascript:cancel(1);">客户取消</a></li>\
</ul>\
</span>';
......@@ -186,18 +189,18 @@
function resetHandler() {
$('#table').DataTable().columns().search("").draw();
}
</script>
</script>
<script>
<script>
function cancel(id) {
layer.confirm('取消之后, 将立即进入【已取消】列表', {
btn: ['确认','取消'],
btn: ['确认', '取消'],
title: '客户取消',
icon: 2
}, function(){
}, function () {
layer.msg('取消');
});
}
</script>
</script>
</body>
<html>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!