123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
- <%@ taglib prefix="s" uri="http://www.connsec.com/tags" %>
- <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <script type="text/javascript">
- <!--
- $(function(){
- $("#algorithm").change(function(){
- $.post("<s:Base/>/apps/generate/secret/"+$(this).val(), {_method:"post",currTime:(new Date()).getTime()}, function(data) {
- $("#algorithmKey").val(data+"");
- $("#algorithmKey_text").html(data+"");
- $("#secret").val(data+"");
- $("#secret_text").html(data+"");
- });
- });
-
- $("#generateSecret").on("click",function(){
- $.post("<s:Base/>/apps/generate/secret/"+$("#algorithm").val(), {_method:"post",currTime:(new Date()).getTime()}, function(data) {
- $("#algorithmKey").val(data+"");
- $("#algorithmKey_text").html(data+"");
- $("#secret").val(data+"");
- $("#secret_text").html(data+"");
- });
- });
- });
- //-->
- </script>
- <form id="actionForm_app" method="post" type="label" autoclose="true"
- action="<s:Base/>/apps/ltpa/update"
- forward="<s:Base/>/apps/list"
- enctype="multipart/form-data">
- <!-- content -->
- <!--table-->
- <table width="960" class="datatable" >
- <tbody>
- <tr>
- <td ><jsp:include page="../appUpdateCommon.jsp"/></td>
- </tr>
- <tr>
- <td>
- <table width="960" class="datatable" >
- <tbody>
-
- <tr>
- <td colspan=4><s:Locale code="apps.ltpa.info" /></td>
- </tr>
- <tr>
- <th><s:Locale code="apps.ltpa.redirectUri" />:</th>
- <td colspan=3>
- <input type="text" id="redirectUri" name="redirectUri" title="" value="${model.redirectUri}"/>
- <b class="orange">*</b><label for="redirectUri"></label>
- </td>
- </tr>
- <tr>
- <th><s:Locale code="apps.ltpa.cookieName" />:</th>
- <td colspan=3>
- <input type="text" id="redirectUri" name="cookieName" title="" value="${model.cookieName}"/>
- <b class="orange">*</b><label for="cookieName"></label>
- </td>
- </tr>
- <tr>
- <th style="width:15%;"><s:Locale code="apps.ltpa.algorithm" />:</th>
- <td style="width:35%;">
- <select id="algorithm" name="algorithm" >
- <option value="DES" <c:if test="${'DES'==model.algorithm}">selected</c:if> >DES</option>
- <option value="DESede" <c:if test="${'DESede'==model.algorithm}">selected</c:if>>DESede</option>
- <option value="Blowfish" <c:if test="${'Blowfish'==model.algorithm}">selected</c:if>>Blowfish</option>
- <option value="AES" <c:if test="${'AES'==model.algorithm}">selected</c:if>>AES</option>
- </select>
- <b class="orange">*</b><label for="algorithm"></label>
- </td>
- <th style="width:15%;"><s:Locale code="apps.ltpa.algorithmKey" />:</th>
- <td style="width:35%;">
- <span id="algorithmKey_text">${model.algorithmKey}</span>
- <input type="hidden" id="algorithmKey" name="algorithmKey" title="" value="${model.algorithmKey}"/>
- </td>
- </tr>
- <tr>
- <th><s:Locale code="apps.ltpa.token.content" />:</th>
- <td colspan=3>
- <table class="hidetable" style="width:100%;">
- <tr>
- <td><s:Locale code="userinfo.id" /><input type="checkbox" id="uid" name="uid" value="1" <c:if test="${1==model.uid}">checked</c:if> /></td>
- <td><s:Locale code="userinfo.username" /><input type="checkbox" id="username" name="username" value="1" <c:if test="${1==model.username}">checked</c:if>/></td>
- <td><s:Locale code="userinfo.email" /><input type="checkbox" id="email" name="email" value="1" <c:if test="${1==model.email}">checked</c:if>/></td>
- <td><s:Locale code="userinfo.windowsAccount" /><input type="checkbox" id="windowsAccount" name="windowsAccount" value="1" <c:if test="${1==model.windowsAccount}">checked</c:if>/></td>
- <td><s:Locale code="userinfo.employeeNumber" /><input type="checkbox" id="employeeNumber" name="employeeNumber" value="1" <c:if test="${1==model.employeeNumber}">checked</c:if>/></td>
- <td><s:Locale code="userinfo.departmentId" /><input type="checkbox" id="departmentId" name="departmentId" value="1" <c:if test="${1==model.departmentId}">checked</c:if>/></td>
- <td><s:Locale code="userinfo.department" /><input type="checkbox" id="department" name="department" value="1" <c:if test="${1==model.department}">checked</c:if>/></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <th><s:Locale code="apps.ltpa.expires" />:</th>
- <td >
- <input type="text" id="expires" name="expires" title="" value="${model.expires}"/>
- </td>
- <th><s:Locale code="apps.isAdapter" />:</th>
- <td>
- <select id="isAdapter" name="isAdapter" >
- <option value="0" <c:if test="${0==model.isAdapter}">selected</c:if> >
- <s:Locale code="apps.isAdapter.no" />
- <option value="1" <c:if test="${1==model.isAdapter}">selected</c:if> >
- <s:Locale code="apps.isAdapter.yes" />
- </select>
- </td>
- </tr>
- <tr>
- <th><s:Locale code="apps.adapter" />:</th>
- <td colspan =3>
- <input type="text" id="adapter" name="adapter" title="" value="${model.adapter}"/>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
-
-
- <input class="button" id="submitBtn" type="submit" value="<s:Locale code="button.text.save" />"/>
- <input class="button" id="backBtn" type="button" value="<s:Locale code="button.text.cancel" />"/>
- </form>
|