You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
3.0 KiB
82 lines
3.0 KiB
<?php
|
|
use \common\libs\MyLib;
|
|
?>
|
|
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script>
|
|
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script>
|
|
<script type="text/javascript" language="javascript" src="/js/func.js"></script>
|
|
<script type="text/javascript" language="javascript">
|
|
$(function(){
|
|
$('#add-btn').click(function(){
|
|
edit(0);
|
|
});
|
|
$("#search-btn").click(function(){
|
|
var params = $('#searchForm').serialize();
|
|
window.location.href = "/meet/list?" + params;
|
|
});
|
|
});
|
|
//编辑
|
|
function edit(id) {
|
|
window.location.href = '/meet/edit?id=' + id;
|
|
}
|
|
//删除
|
|
function del(id) {
|
|
if(confirm('是否确认删除?')) {
|
|
$.post('/meet/del',{id:id},function(obj){
|
|
alert(obj.msg);
|
|
if(obj.success) {
|
|
window.location.reload();
|
|
}
|
|
},'json');
|
|
}
|
|
}
|
|
</script>
|
|
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
|
|
<form id="searchForm">
|
|
<tr>
|
|
<td class="td_bg">
|
|
名称:<input name="name" type="text" value="<?= $name; ?>">
|
|
类别:
|
|
<select name="mtype">
|
|
<option value="0">--全部类型--</option>
|
|
<option <?=$mtype==1?'selected':''?> value="1">新保(续保)组</option>
|
|
<option <?=$mtype==2?'selected':''?> value="2">跟踪组</option>
|
|
</select>
|
|
<input type="button" class="act_btn" id="search-btn" name="search-btn" value="搜索">
|
|
<input type="button" class="act_btn" id="add-btn" name="add-btn" value="添加">
|
|
</td>
|
|
</tr>
|
|
</form>
|
|
</table>
|
|
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
|
|
<?php
|
|
if($info){
|
|
?>
|
|
<tr>
|
|
<td width="10%" align="center" align="center" class="bg_tr" nowrap>状态码</td>
|
|
<td width="30%" align="center" align="center" class="bg_tr">类型</td>
|
|
<td width="20%" align="center" align="center" class="bg_tr">名称</td>
|
|
<td width="40%" align="center" class="bg_tr">操作</td>
|
|
</tr>
|
|
<?php
|
|
foreach($info as $index => $item){
|
|
?>
|
|
<tr onMouseOver=overColor(this) onMouseOut=outColor(this)>
|
|
<td align="center" class="td_bg" nowrap ><?=$item->code?></td>
|
|
<td align="left" class="td_bg" nowrap ><?=$item->getShowType()?></td>
|
|
<td align="left" class="td_bg" nowrap ><?=$item->name?></td>
|
|
<td align="center" class="td_bg" nowrap>
|
|
[<a href="javascript:void(0);" onclick="edit(<?=$item->id?>)">修改</a>]
|
|
[<a href="javascript:void(0);" onclick="del(<?=$item->id?>)">删除</a>]
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<?php
|
|
}else{
|
|
?>
|
|
<tr>没有查到数据</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</table>
|
|
|