Files
xinhu/webmain/system/sms/rock_sms_record.php
2022-08-14 16:47:40 +08:00

51 lines
1.2 KiB
PHP

<?php defined('HOST') or die('not access');?>
<script >
$(document).ready(function(){
var a = $('#view_{rand}').bootstable({
tablename:'chargems',url:js.getajaxurl('getrecord','{mode}','{dir}'),checked:true,
columns:[{
text:'短信内容',dataIndex:'cont',align:'left',
},{
text:'发给手机号',dataIndex:'tomobile',align:'left',renderstyle:function(v,d){
return 'word-wrap:break-word;word-break:break-all;white-space:normal;';
}
},{
text:'发送条数',dataIndex:'count'
},{
text:'发送时间',dataIndex:'adddt'
}]
});
var c={
reloads:function(){
a.reload();
},
del:function(){
a.del({url:js.getajaxurl('delrecord','{mode}','{dir}'),checked:true});
}
};
js.initbtn(c);
});
</script>
<div>
<table width="100%"><tr>
<td nowrap>
<button class="btn btn-default" click="reloads" type="button"><i class="icon-refresh"></i> 刷新</button>
</td>
<td align="right">
<button class="btn btn-danger" click="del" type="button"><i class="icon-trash"></i> 删除</button>
</td>
</tr>
</table>
</div>
<div class="blank10"></div>
<div id="view_{rand}"></div>
<div class="tishi">默认值显示最近50条记录。</div>