⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dict.jsp

📁 关于ssh的整合,希望对大家有帮助
💻 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%>&nbsp; 当前页:<%=p%>&nbsp;每页显示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 + -