SSH之jsp頁面

勿在浮沙築高臺LS發表於2016-12-10
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
  <head>

    <title>My JSP 'index.jsp' starting page</title>
  </head>

  <body>
   <s:form action="role_add">
   <s:textfield name="name"></s:textfield>
   <s:textarea name="description"></s:textarea>
   <s:submit name="提交"></s:submit>
   </s:form>
  </body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>sss
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
  <head>

    <title>My JSP 'index.jsp' starting page</title>
  </head>

  <body>
   <s:form action="role_editUI">
   <s:hidden name="id"></s:hidden>
   <s:textfield name="name"></s:textfield>
   <s:textarea name="description"></s:textarea>
   <s:submit name="提交"></s:submit>
   </s:form>
  </body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title>崗位列表</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script language="javascript" src="${pageContext.request.contextPath}/script/jquery.js"></script>
    <script language="javascript" src="${pageContext.request.contextPath}/script/pageCommon.js" charset="utf-8"></script>
    <script language="javascript" src="${pageContext.request.contextPath}/script/PageUtils.js" charset="utf-8"></script>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/style/blue/pageCommon.css" />
    <script type="text/javascript">
    </script>
</head>
<body>

<div id="Title_bar">
    <div id="Title_bar_Head">
        <div id="Title_Head"></div>
        <div id="Title"><!--頁面標題-->
            <img border="0" width="13" height="13" src="${pageContext.request.contextPath}/style/images/title_arrow.gif"/> 崗位管理
        </div>
        <div id="Title_End"></div>
    </div>
</div>

<div id="MainArea">
    <table cellspacing="0" cellpadding="0" class="TableStyle">

        <!-- 表頭-->
        <thead>
            <tr align="CENTER" valign="MIDDLE" id="TableTitle">
                <td width="200px">崗位名稱</td>
                <td width="300px">崗位說明</td>
                <td>相關操作</td>
            </tr>
        </thead>

        <!--顯示資料列表-->
        <tbody id="TableData" class="dataContainer" datakey="roleList">

        <s:iterator value="#roleList">
            <tr class="TableDetail1 template">
                <td>${name}&nbsp;</td>
                <td>${description}&nbsp;</td>
                <td>
                    <s:a action="role_delete?id=%{id}" onclick="return confirm('確定要刪除嗎?')">刪除</s:a>
                    <s:a action="role_editUI?id=%{id}">修改</s:a>
                    <a href="setPrivilegeUI.html">設定許可權</a>
                </td>
            </tr>
        </s:iterator>

        </tbody>
    </table>

    <!-- 其他功能超連結 -->
    <div id="TableTail">
        <div id="TableTail_inside">
            <s:a action="role_addUI"><img src="${pageContext.request.contextPath}/style/images/createNew.png" /></s:a>
        </div>
    </div>
</div>
</body>
</html>

相關文章