?? dict.jsp
字號:
<%@ page language="java" pageEncoding="utf-8"%>
<%@ page import="crm.web.action.other.*" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%!int p=1;%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Integer sum=(Integer)session.getAttribute("sum");
String p1= request.getParameter("p");
String p2= request.getParameter("p2");
if((p1==null || "".equals(p1))&&(p2==null || "".equals(p2)))
{
p1="1";
}
else if(p2!=null)
{
p1=p2;
}
int p = Integer.parseInt(p1);
//總頁數
int s =(sum+5-1)/5;
%>
<html>
<html:base/>
<head>
<title>jb-aptech畢業設計項目</title>
<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css">
<script src="<%=path%>/script/common.js"></script>
</head>
<body>
<form action="<%=path %>/dict.do" method="post">
<input type="hidden" name="flag" value="search"/>
<div class="page_title">數據字典管理</div>
<div class="button_bar">
<button class="common_button" onclick="help('');">幫助</button>
<button class="common_button" onclick="to('zhuxiong/dict_add.jsp');">新建</button>
<button class="common_button" type="submit">查詢</button>
</div>
<table class="query_form_table">
<tr>
<th>類別</th>
<td><input name="dict.dictType"/></td>
<th>條目</th>
<td><input name="dict.dictItem"/></td>
<th>值</th>
<td><input name="dict.dictValue"/></td>
</tr>
</table>
</form>
<br />
<table class="data_list_table">
<tr>
<th>編號</th>
<th>類別</th>
<th>條目</th>
<th>值</th>
<th>是否可編輯</th>
<th>操作</th>
</tr>
<logic:iterate id="base" name="list" scope="request">
<tr>
<td class="list_data_number"><bean:write name="base" property="dictId"/></td>
<td class="list_data_ltext"><bean:write name="base" property="dictType"/></td>
<td class="list_data_text"><bean:write name="base" property="dictItem"/></td>
<td class="list_data_text"><bean:write name="base" property="dictValue"/></td>
<td class="list_data_text" >
<logic:equal name="base" property="dictIsEditable" value="1">
是
<td class="list_data_op">
<a href='<%=path%>/dict.do?flag=preEdit&dictId=<bean:write name="base" property="dictId"/>'><img onclick="to('dict_edit.html');" title="編輯" src="<%=path%>/images/bt_edit.gif" class="op_button" /></a>
<a href='<%=path%>/dict.do?flag=del&dictId=<bean:write name="base" property="dictId"/>'><img onclick="del('“服務類型:咨詢”');" title="刪除" src="<%=path%>/images/bt_del.gif" class="op_button" /></a>
</td>
</logic:equal>
<logic:notEqual name="base" property="dictIsEditable" value="1">
否
</logic:notEqual>
</td>
<td class="list_data_op"> </td>
</tr>
</logic:iterate>
<tr>
<th colspan="6" class="pager">
<div class="pager">
總頁數:<%=s%> 當前頁:<%=p%> 每頁顯示5條;
<%if(p!=1){ %>
<a href="<%=path %>/dict.do?flag=list&p=<%=1%>">首頁</a>
<a href="<%=path %>/dict.do?flag=list&p=<%=p-1%>">上一頁</a>
<% } %>
<%if(p!=s&&p<s){ %>
<a href="<%=path %>/dict.do?flag=list&p=<%=p+1%>">下一頁</a>
<a href="<%=path %>/dict.do?flag=list&p=<%=s%>">尾頁</a>
<% } %>
</div>
</th>
</tr>
</table>
</body>
</html>
<script>
function to(url){
window.location.href=url;
}
</script>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -