| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <%@ include file="../common/header.jsp" %>
- <script type="text/javascript" language="javascript">
- <!--
- function doCreateRole(){
- var x = window.confirm("<bean:message key="confirm.create"/>")
- if (x) {
- document.forms.role.action.value="create_ok";
- document.forms.role.post.value = "true";
- document.forms.role.submit();
- }
- }
- function doBack(){
- document.forms.role.action.value="list";
- document.forms.role.clear.value="true";
- document.forms.role.submit();
- }
- -->
- </script>
-
- <!-- CONTENT -->
- <form name="role" method="post" action="role.do">
- <input type="hidden" name="action">
- <input type="hidden" name="clear">
- <input type="hidden" name="sequence">
- <input type="hidden" name="post">
- <input type="hidden" name="redirect" value="create">
- <!--td width="80%" valign="top"-->
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td class="titleHeader" align="left"><bean:message key="project.role.key"/> CREATE</td>
- </tr>
- </table>
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td align="center">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td colspan="6"><html:errors/></td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="role.id.key"/><font color="#FF0000">*</font></b></td>
- <td width="10">:</td>
- <td width="30%">
- <select name="userNameList">
- <option value="">-- Pilih Salah Satu --</option>
- <logic:notEmpty name="groupList">
- <logic:iterate id="groupElement" name="groupList">
- <option value="<bean:write name="groupElement"/>"
- <logic:equal name="groupElement" value="${role.id}">
- SELECTED
- </logic:equal>
- >
- <bean:write name="groupElement"/></option>
- </logic:iterate>
- </logic:notEmpty>
- </select>
- <%/*<html:text name="role" property="id" size="30"/>*/%>
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="role.name.key"/><font color="#FF0000">*</font></b></td>
- <td width="10">:</td>
- <td width="30%">
- <html:text name="role" property="name" size="30"/>
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="role.type.key"/><font color="#FF0000">*</font></b></td>
- <td width="10">:</td>
- <td width="30%">
- <select name="type">
- <option value="">-- Pilih Salah Satu --</option>
- <logic:notEmpty name="typeList">
- <logic:iterate id="typeElement" name="typeList">
- <option value="<bean:write name="typeElement" property="name"/>"
- <logic:equal name="typeName" value="${typeElement.name}">
- selected
- </logic:equal>
- >
- <bean:write name="typeElement" property="name"/></option>
- </logic:iterate>
- </logic:notEmpty>
- </select>
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- <tr>
- <td valign="top"><b><bean:message key="role.privilege.key" /></b></td>
- <td valign="top">:</td>
- <td colspan=4 valign="top">
- <table border="0" cellspacing="0" cellpadding="4">
- <tr>
- <td valign="top">
- <div style="overflow:auto;height: 200px; width: 200px;;border:1px solid #336699;padding-left:5px">
- <table border="0" width="100%" align="center" cellpadding="2" cellspacing="1">
- <logic:notEmpty name="privilegesSetList">
- <logic:iterate id="privilege" name="privilegesSetList">
- <tr>
- <td width="1%" align="right">
- <input type="checkbox" name="<bean:write name="privilege" property="id"/>"
- <logic:notEmpty name="role" property="privileges"><logic:iterate id="element_privileges" name="role" property="privileges">
- <logic:equal name="privilege" property="id" value="${element_privileges.id}">
- CHECKED
- </logic:equal>
- </logic:iterate> </logic:notEmpty>>
- </td>
- <td><bean:write name="privilege" property="name"/></td>
- </tr>
- </logic:iterate>
- </logic:notEmpty>
- </table>
- </div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td width="15%"></td>
- <td width="10"></td>
- <td width="30%"><input type="button" value="<bean:message key="button.back"/>" onclick="doBack();">
- <input type="button" value="<bean:message key="button.submit"/>" onclick="doCreateRole();"></td>
- <td colspan="4"> </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td> </td>
- </tr>
- </table>
- </form>
- <!-- END CONTENT -->
- <%@ include file="../common/footer.jsp"%>
-
|