日期:2014-05-16 浏览次数:20356 次
<div class="table-s-2 m-t5 no-border-r no-border-l no-border-t"
style="overflow-y: auto; height: 265px;">
<table id="noteTable" class="table table-striped table-hover"
style="border: none;">
<thead>
<tr>
<th>编辑内容</th>
<th>时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr>
<td style="display:none">[noteId]</td>
<td>[content]</td>
<td>[createDate]</td>
<td>
<shiro:hasPermission name="portal:contacts:note:view"><a name="showLink" href="#">查看</a></shiro:hasPermission>
<shiro:hasPermission name="portal:contacts:note:edit"><a name="editLink" href="#">修改</a></shiro:hasPermission>
<shiro:hasPermission name="portal:contacts:note:delete"><a name="delLink" href="#">删除</a></shiro:hasPermission>
</td>
</tr>
</tbody>
</table>
</div>
<!--
<div id="flexgrid" data-options="region:'center'" class="content">
<table id="flexTable"></table>
</div>
--><!-- 底部:操作按钮-->
<div class="buttons" data-options="region:'south'"><shiro:hasPermission
name="portal:contacts:note:view">
<input type="button" class="button" id="showBtn" value="查 看" />
</shiro:hasPermission> <shiro:hasPermission name="portal:contacts:note:add">
<input type="button" class="button" id="addBtn" value="增 加" />
</shiro:hasPermission> <shiro:hasPermission name="portal:contacts:note:edit">
<input type="button" class="button" id="editBtn" value="修 改" />
</shiro:hasPermission> <shiro:hasPermission name="portal:contacts:note:delete">
<input type="button" class="button" id="delBtn" value="注 销" />
</shiro:hasPermission>
</div>
<script type="text/javascript">
//<![CDATA[
var str2;
var tr2;
$(function () {
onloadNote();
});
function onloadNote(){
$.ajax({ url: '${ctx}/portal/contacts/note.json?search=true',
dataType:"json",
type:"post",
success: function(list){
tr2 = $("#noteTable tbody").html();
$("#noteTable tbody").html("");
getContent(list);
}
});
}
function onclickQry(){
var content = $("#content").val();
$.ajax({ url: '${ctx}/portal/contacts/note.json?search=true',
data:{content:content},
dataType:"json",
type:"post",