You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
90
hyhproject/admin/view/cashdraws/cashdraws.js
Executable file
90
hyhproject/admin/view/cashdraws/cashdraws.js
Executable file
@ -0,0 +1,90 @@
|
||||
var mmg;
|
||||
function initGrid(){
|
||||
var h = WST.pageHeight();
|
||||
var cols = [
|
||||
{title:'提现单号', name:'cashNo', width: 100,sortable: true},
|
||||
{title:'会员类型', name:'targetType' ,width:60,sortable: true, renderer:function(val,item,rowIndex){
|
||||
return (item['targetType']==1)?"【商家】":"【会员】";
|
||||
}},
|
||||
{title:'会员名称', name:'loginName' ,width:100, renderer:function(val,item,rowIndex){
|
||||
if(item['targetType']==1){
|
||||
return WST.blank(item['userName'])+"("+item['loginName']+")";
|
||||
}else{
|
||||
return WST.blank(item['userName'])+"("+item['loginName']+")";
|
||||
}
|
||||
}},
|
||||
{title:'提现银行', name:'accTargetName' ,width:60,sortable: true},
|
||||
{title:'银行卡号', name:'accNo' ,width:40,sortable: true},
|
||||
{title:'持卡人', name:'accUser' ,width:40,sortable: true},
|
||||
{title:'提现金额', name:'money' ,width:40,sortable: true, renderer:function(val,item,rowIndex){
|
||||
return '¥'+val;
|
||||
}},
|
||||
{title:'提现时间', name:'createTime',sortable: true ,width:60},
|
||||
{title:'状态', name:'cashSatus' ,width:60,sortable: true, renderer:function(val,item,rowIndex){
|
||||
return (val==1)?"<span class='statu-yes'><i class='fa fa-check-circle'></i> 提现成功</span>":((val==-1)?"<span class='statu-no'><i class='fa fa-ban'></i> 提现失败 </span>":"<span class='statu-wait'><i class='fa fa-clock-o'></i> 待处理 </span>");
|
||||
}},
|
||||
{title:'操作', name:'' ,width:120, align:'center', renderer: function(val,item,rowIndex){
|
||||
var h = "";
|
||||
h += "<a class='btn btn-blue' href='javascript:toView(" + item['cashId'] + ")'><i class='fa fa-search'></i>查看</a> ";
|
||||
if(item['cashSatus']==0 && WST.GRANT.TXSQ_04)h += "<a class='btn btn-green' href='javascript:toEdit(" + item['cashId'] + ")'><i class='fa fa-pencil'></i>处理</a> ";
|
||||
return h;
|
||||
}}
|
||||
];
|
||||
|
||||
mmg = $('.mmg').mmGrid({height: h-173,indexCol: true,indexColWidth:50, cols: cols,method:'POST',nowrap:true,
|
||||
url: WST.U('admin/cashdraws/pageQuery'), fullWidthRows: true, autoLoad: true,remoteSort: true,sortName:'createTime',sortStatus:'desc',
|
||||
remoteSort:true ,
|
||||
sortName: 'cashNo',
|
||||
sortStatus: 'desc',
|
||||
plugins: [
|
||||
$('#pg').mmPaginator({})
|
||||
]
|
||||
});
|
||||
$('#headTip').WSTTips({width:90,height:35,callback:function(v){
|
||||
var diff = v?173:128;
|
||||
mmg.resize({height:h-diff})
|
||||
}});
|
||||
}
|
||||
|
||||
function toEdit(id){
|
||||
location.href=WST.U('admin/cashdraws/toHandle','id='+id);
|
||||
}
|
||||
function toView(id){
|
||||
location.href=WST.U('admin/cashdraws/toView','id='+id);
|
||||
}
|
||||
function loadGrid(){
|
||||
mmg.load({page:1,cashNo:$('#cashNo').val(),cashSatus:$('#cashSatus').val(),targetType:$('#targetType').val()});
|
||||
}
|
||||
|
||||
function save(){
|
||||
var params = WST.getParams('.ipt');
|
||||
if(typeof(params.cashSatus)=='undefined'){
|
||||
WST.msg('请选择提现结果',{icon:2});
|
||||
return;
|
||||
}
|
||||
if(params.cashSatus==-1 && $.trim(params.cashRemarks)==''){
|
||||
WST.msg('输入提现失败原因',{icon:2});
|
||||
return;
|
||||
}
|
||||
if(WST.confirm({content:'您确定该提现申请'+((params.cashSatus==1)?'成功':'失败')+'吗?',yes:function(){
|
||||
var loading = WST.msg('正在提交数据,请稍后...', {icon: 16,time:60000});
|
||||
$.post(WST.U('admin/cashdraws/handle'),params,function(data,textStatus){
|
||||
layer.close(loading);
|
||||
var json = WST.toAdminJson(data);
|
||||
if(json.status=='1'){
|
||||
WST.msg("操作成功",{icon:1});
|
||||
location.href=WST.U('admin/cashdraws/index');
|
||||
}else{
|
||||
WST.msg(json.msg,{icon:2});
|
||||
}
|
||||
});
|
||||
}}));
|
||||
}
|
||||
function toExport(){
|
||||
var params = {};
|
||||
params = WST.getParams('.j-ipt');
|
||||
var box = WST.confirm({content:"您确定要导出提现申请记录吗?",yes:function(){
|
||||
layer.close(box);
|
||||
location.href=WST.U('admin/cashdraws/toExport',params);
|
||||
}});
|
||||
}
|
85
hyhproject/admin/view/cashdraws/edit.html
Executable file
85
hyhproject/admin/view/cashdraws/edit.html
Executable file
@ -0,0 +1,85 @@
|
||||
{extend name="base" /}
|
||||
{block name="js"}
|
||||
<script src="__ADMIN__/cashdraws/cashdraws.js?v={$v}" type="text/javascript"></script>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<style>
|
||||
th{height:25px;}
|
||||
</style>
|
||||
<form autocomplete='off' id='editFrom'>
|
||||
<input type='hidden' id='cashId' class='ipt' value="{$object['cashId']}"/>
|
||||
<table class='wst-form wst-box-top'>
|
||||
<tr>
|
||||
<th width='150'>会员类型:</th>
|
||||
<td>
|
||||
{if $object['targetType']==1}商家{else}普通会员{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width='150'>会员名称:</th>
|
||||
<td>
|
||||
{$object['userName']}({$object['loginName']})
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width='150'>提现单号:</th>
|
||||
<td>
|
||||
{$object['cashNo']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>提现金额:</th>
|
||||
<td>¥{$object['money']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>提现银行:</th>
|
||||
<td>{$object['accTargetName']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>开卡地区:</th>
|
||||
<td>
|
||||
{$object['accAreaName']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>卡号:</th>
|
||||
<td>
|
||||
{$object['accNo']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>持卡人:</th>
|
||||
<td>
|
||||
{$object['accUser']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>申请时间:</th>
|
||||
<td>{$object['createTime']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>提现结果:</th>
|
||||
<td class='layui-form'>
|
||||
<label>
|
||||
<input type='radio' name='cashSatus' class='ipt' value='1' title='提现成功'/>
|
||||
</label>
|
||||
<label>
|
||||
<input type='radio' name='cashSatus' class='ipt' value='-1' title='提现失败'/>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr >
|
||||
<th valign='top'>提现备注:<br/>(用户可见) </th>
|
||||
<td>
|
||||
<textarea id='cashRemarks' class='ipt' style='width:70%;height:80px;'></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' align='center'>
|
||||
<button type="button" class="btn btn-primary btn-mright" onclick='javascript:save()'><i class="fa fa-check"></i>提交</button>
|
||||
<button type="button" class="btn" onclick="javascript:history.go(-1)"><i class="fa fa-angle-double-left"></i>返回</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/block}
|
42
hyhproject/admin/view/cashdraws/list.html
Executable file
42
hyhproject/admin/view/cashdraws/list.html
Executable file
@ -0,0 +1,42 @@
|
||||
{extend name="base" /}
|
||||
{block name="css"}
|
||||
<link rel="stylesheet" type="text/css" href="__ADMIN__/js/mmgrid/mmGrid.css?v={$v}" />
|
||||
{/block}
|
||||
{block name="js"}
|
||||
<script src="__ADMIN__/js/mmgrid/mmGrid.js?v={$v}" type="text/javascript"></script>
|
||||
<script src="__ADMIN__/cashdraws/cashdraws.js?v={$v}" type="text/javascript"></script>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div id='alertTips' class='alert alert-success alert-tips fade in'>
|
||||
<div id='headTip' class='head'><i class='fa fa-lightbulb-o'></i>操作说明</div>
|
||||
<ul class='body'>
|
||||
<li>本功能主要用于处理来自于会员(商家)的提现请求。提现通过后系统会扣除会员(商家)的钱包金额。</li>
|
||||
<li>本功能只扣除本系统的会员(商家)钱包金额,实际上的资金转账需平台线下操作。</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="wst-toolbar">
|
||||
<select id='targetType' class='j-ipt'>
|
||||
<option value='-1'>会员类型</option>
|
||||
<option value='0'>会员</option>
|
||||
<option value='1'>商家</option>
|
||||
</select>
|
||||
<select id='cashSatus' class='j-ipt'>
|
||||
<option value='-1'>提现状态</option>
|
||||
<option value='0'>待处理</option>
|
||||
<option value='1'>已通过</option>
|
||||
</select>
|
||||
<input type="text" name="cashNo" placeholder='提现单号' id="cashNo" class='j-ipt'/>
|
||||
<button class="btn btn-primary" onclick='javascript:loadGrid(0)'><i class="fa fa-search"></i>查询</button>
|
||||
<button class="btn btn-primary f-right btn-fixtop" onclick='javascript:toExport(0)'><i class="fa fa-sign-in"></i>导出</button>
|
||||
<div style='clear:both'></div>
|
||||
</div>
|
||||
<div class='wst-grid'>
|
||||
<div id="mmg" class="mmg"></div>
|
||||
<div id="pg" style="text-align: right;"></div>
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
initGrid();
|
||||
})
|
||||
</script>
|
||||
{/block}
|
70
hyhproject/admin/view/cashdraws/view.html
Executable file
70
hyhproject/admin/view/cashdraws/view.html
Executable file
@ -0,0 +1,70 @@
|
||||
{extend name="base" /}
|
||||
{block name="js"}
|
||||
<script src="__ADMIN__/cashdraws/cashdraws.js?v={$v}" type="text/javascript"></script>
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<form autocomplete='off'>
|
||||
<input type='hidden' id='cashId' class='ipt' value="{$object['cashId']}"/>
|
||||
<table class='wst-form wst-box-top'>
|
||||
<tr>
|
||||
<th width='150'>会员类型:</th>
|
||||
<td>
|
||||
{if $object['targetType']==1}商家{else}普通会员{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width='150'>会员名称:</th>
|
||||
<td>
|
||||
{$object['userName']}({$object['loginName']})
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width='150'>提现单号:</th>
|
||||
<td>
|
||||
{$object['cashNo']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>提现金额:</th>
|
||||
<td>¥{$object['money']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>提现银行:</th>
|
||||
<td>{$object['accTargetName']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>开卡地区:</th>
|
||||
<td>
|
||||
{$object['accAreaName']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>卡号:</th>
|
||||
<td>
|
||||
{$object['accNo']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>持卡人:</th>
|
||||
<td>
|
||||
{$object['accUser']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>申请时间:</th>
|
||||
<td>{$object['createTime']}</td>
|
||||
</tr>
|
||||
<tr >
|
||||
<th valign='top'>提现备注:<br/>(用户可见) </th>
|
||||
<td>
|
||||
{$object['cashRemarks']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' align='center'>
|
||||
<button type="button" class="btn" onclick='javascript:history.go(-1)'><i class="fa fa-angle-double-left"></i>返回</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/block}
|
267
hyhproject/admin/view/cashdraws/view_report.html
Executable file
267
hyhproject/admin/view/cashdraws/view_report.html
Executable file
@ -0,0 +1,267 @@
|
||||
{extend name="base" /}
|
||||
|
||||
{block name="css"}
|
||||
<style type="text/css">
|
||||
@page
|
||||
{
|
||||
size: auto; /* auto is the initial value */
|
||||
margin: 0mm; /* this affects the margin in the printer settings */
|
||||
}
|
||||
.table_title{
|
||||
font-size:18px;font-weight: bold;text-align: center;margin:10px;
|
||||
}
|
||||
.right{
|
||||
float: right;
|
||||
}
|
||||
.center{
|
||||
text-align: center;
|
||||
}
|
||||
.layui-form{
|
||||
width:95%;
|
||||
margin:50px auto;
|
||||
}
|
||||
.red{
|
||||
color:red;
|
||||
}
|
||||
|
||||
</style>
|
||||
{/block}
|
||||
|
||||
{block name="js"}
|
||||
|
||||
<script src="__ADMIN__/cashdraws/cashdraws.js?v={$v}" type="text/javascript"></script>
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
<div class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block" style="float: right;">
|
||||
<button class="layui-btn layui-btn-warm print">打印</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-collapse" lay-filter="test">
|
||||
<div class="layui-colla-item">
|
||||
<h2 class="layui-colla-title">点击查询/充值/扣除操作</h2>
|
||||
<div class="layui-colla-content">
|
||||
<fieldset class="layui-elem-field">
|
||||
<legend>查询</legend>
|
||||
<div class="layui-field-box">
|
||||
<form action="" method="get">
|
||||
<div class="wst-toolbar">
|
||||
<label class="layui-form-label">查询日期</label>
|
||||
<input type="text" id="searchDate" name="searchDate" class="layui-input" maxlength="20" value="{$searchDate}" placeholder="查询日期">
|
||||
<button class="btn btn-primary search" ><i class="fa fa-search"></i>查询</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="layui-elem-field">
|
||||
<legend>充值/扣除操作</legend>
|
||||
<div class="layui-field-box">
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label" style="width: auto;">日期选择:</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="reDate" name="reDate" class="layui-input ipt" maxlength="20" value="{$searchDate}" placeholder="日期">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label" style="width: auto;">充值/扣除:</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" class="ipt" name="reType" value="1" title="充值" checked="">
|
||||
<input type="radio" class="ipt" name="reType" value="2" title="扣除">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label" style="width: auto;">变动数额:</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="money" name="money" class="layui-input ipt" maxlength="20" value="" placeholder="请输入变动数额">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label" style="width: auto;"> 验证码:</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="mobileCode" name="mobileCode" class="layui-input" maxlength="20" value="" placeholder="请输入验证码">
|
||||
|
||||
</div>
|
||||
<div class="layui-word-aux""><button class="layui-btn layui-btn-normal layui-btn-sm getCode">获取验证码</button> </div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<button class="layui-btn setReport" >确定提交</button>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!--start-->
|
||||
<table class="layui-table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th colspan="12"> <p class="table_title">交易明细备查表-{$searchDate}</p></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="12"> <p class="right">单位:元</p></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>上日余额¥ {$orders['yesterdayMoney']}</td>
|
||||
<td>今日余额¥ {$orders['todayMoney']}</td>
|
||||
<td>今日交易¥{$orders['allPaySum']}</td>
|
||||
<td>今日代收¥ {$orders['collectionGatheringSum']}</td>
|
||||
<td>今日代付¥ {$orders['coupousEarningsSum']+$orders['hasVouchersEearningsSum']+$orders['taxFeeSum']+$orders['collectionPaySum']}</td>
|
||||
<td class="red">今日收益¥ {$orders['coupousEarningsSum']+$orders['hasVouchersEearningsSum']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="1" >今日明细</td>
|
||||
<td colspan="1" >代付款</td>
|
||||
<td colspan="3" class="center">公司手续费收益</td>
|
||||
<td>商品交易</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>合计</td>
|
||||
<td>¥{$orders['taxFeeSum']}</td>
|
||||
<td>¥{$orders['hasVouchersEearningsSum']}</td>
|
||||
<td>合计</td>
|
||||
<td>¥{$orders['coupousEarningsSum']}</td>
|
||||
<td>¥{$orders['allPaySum']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>购户ID</td>
|
||||
<td>今日缴税</td>
|
||||
<td>已获券收益</td>
|
||||
<td>商户ID</td>
|
||||
<td>优惠款收益</td>
|
||||
<td>销售额</td>
|
||||
</tr>
|
||||
{foreach name="orders['list']" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo['loginName']} </td>
|
||||
<td>{$vo['taxFee']}</td>
|
||||
<td>{$vo['hasVouchersEearnings']}</td>
|
||||
<td>{$vo['shopLoginName']}</td>
|
||||
<td>{$vo['coupousEarnings']} </td>
|
||||
<td>{$vo['realTotalMoney']}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="layui-table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th colspan="3"> <p class="table_title">交易明细备查表-{$searchDate}</p></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="red">今日汇总:¥{$orders['collectionGatheringSum']-$orders['collectionPaySum']}</th>
|
||||
<th>代收款</th>
|
||||
<th>代付款</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>合计</th>
|
||||
<th>¥{$orders['collectionGatheringSum']}</th>
|
||||
<th>¥{$orders['collectionPaySum']}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>商户ID</th>
|
||||
<th>优惠款</th>
|
||||
<th>提现金额</th>
|
||||
</tr>
|
||||
|
||||
{foreach name="orders['collection']" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo['shopLoginName']}</td>
|
||||
<td>{$vo['gathering']}</td>
|
||||
<td>{$vo['pay']}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<!--end-->
|
||||
</div>
|
||||
<script>
|
||||
|
||||
$(function(){
|
||||
var laydate = layui.laydate;
|
||||
laydate.render({
|
||||
elem: '#searchDate'
|
||||
});
|
||||
laydate.render({
|
||||
elem: '#reDate'
|
||||
});
|
||||
isSend = false;
|
||||
$('body').on('click','.getCode',function(){
|
||||
var params = WST.getParams('.ipt');
|
||||
if(params.money<=0){
|
||||
WST.msg('请输入变动金额','warn');
|
||||
$('#money').focus();
|
||||
return;
|
||||
}
|
||||
var that = $(this);
|
||||
if(isSend) return;
|
||||
isSend = true;
|
||||
$('.ipt').removeAttr('disabled');
|
||||
$.post(WST.U('admin/Cashdraws/getMobileCode'), params, function(data) {
|
||||
var json = WST.toAdminJson(data);
|
||||
if(json.status == 1) {
|
||||
$('.ipt').attr('disabled','disabled');
|
||||
WST.msg(json.msg, 'success');
|
||||
time = 120;
|
||||
that.attr('disabled', 'disabled').html('120秒获取');
|
||||
$('#mobileCode').focus();
|
||||
var task = setInterval(function() {
|
||||
time--;
|
||||
that.html('' + time + "秒获取");
|
||||
if(time == 0) {
|
||||
isSend = false;
|
||||
clearInterval(task);
|
||||
that.removeAttr('disabled').html("重新发送");
|
||||
}
|
||||
}, 1000);
|
||||
} else {
|
||||
WST.msg(json.msg, 'warn');
|
||||
isSend = false;
|
||||
}
|
||||
data = json = null;
|
||||
});
|
||||
});
|
||||
//修改凭证
|
||||
$('body').on('click','.setReport',function(){
|
||||
var params = {};
|
||||
params.mobileCode = $('#mobileCode').val();
|
||||
if(params.mobileCode.length<4){
|
||||
WST.msg('请输入验证码','warn');
|
||||
return;
|
||||
}
|
||||
var that = $(this);
|
||||
that.attr('disabled','disabled');
|
||||
$.post(WST.U('admin/Cashdraws/setReport'), params, function(data) {
|
||||
var json = WST.toAdminJson(data);
|
||||
if(json.status == 1) {
|
||||
WST.msg(json.msg, 'success');
|
||||
$('.ipt').removeAttr('disabled');
|
||||
} else {
|
||||
WST.msg(json.msg, 'warn');
|
||||
}
|
||||
that.removeAttr('disabled');
|
||||
data = json = null;
|
||||
});
|
||||
});
|
||||
//打印
|
||||
$('body').on('click','.print',function(){
|
||||
bdhtml = window.document.body.innerHTML;
|
||||
sprnstr = "<!--start-->";
|
||||
eprnstr = "<!--end-->";
|
||||
prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr));
|
||||
prnhtml = prnhtml.substring(0,prnhtml.indexOf(eprnstr));
|
||||
window.document.body.innerHTML = prnhtml;
|
||||
window.print();
|
||||
location.reload();
|
||||
});
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
{/block}
|
Reference in New Issue
Block a user