edit.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:9k
源码类别:

PlugIns编程

开发平台:

Java

  1. <html>
  2.     <head>
  3.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  4.         <meta name="layout" content="main" />
  5.         <title><g:message code="salary.edit" default="Edit Salary" /></title>
  6.     </head>
  7.     <body>
  8.         <div class="nav">
  9.             <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
  10.             <span class="menuButton"><g:link class="list" action="list"><g:message code="salary.list" default="Salary List" /></g:link></span>
  11.             <span class="menuButton"><g:link class="create" action="create" params="${[_salMan:params._salMan,_salBase:params._salBase,_salType_id:params._salType_id,_salLastchangefrom:params._salLastchangefrom,_salLastchangeto:params._salLastchangeto,_salDel:params._salDel,max:params.max,offset:params.offset,order:params.order]}"><g:message code="salary.new" default="New Salary" /></g:link></span>
  12.         </div>
  13.         <div class="body">
  14.             <h1><g:message code="salary.edit" default="Edit Salary" /></h1>
  15.             <g:if test="${flash.message}">
  16.             <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
  17.             </g:if>
  18.             <g:hasErrors bean="${salary}">
  19.             <div class="errors">
  20.                 <g:renderErrors bean="${salary}" as="list" />
  21.             </div>
  22.             </g:hasErrors>
  23.             <g:form method="post" >
  24.                 <input type="hidden" name="id" value="${salary?.id}" />
  25.                 <div class="dialog">
  26.                     <table>
  27.                         <tbody>
  28.                         
  29.                             <tr class="prop">
  30.                                 <td valign="top" class="name">
  31.                                     <label for="salMan"><g:message code="salary.salMan" default="Sal Man" />:</label>
  32.                                 </td>
  33.                                 <td valign="top" class="value ${hasErrors(bean:salary,field:'salMan','errors')}">
  34.                                     <g:select optionKey="id" from="${Staff.list()}" name="salMan.id" value="${salary?.salMan?.id}" ></g:select>
  35.                                 </td>
  36.                             </tr> 
  37.                         
  38.                             <tr class="prop">
  39.                                 <td valign="top" class="name">
  40.                                     <label for="salBase"><g:message code="salary.salBase" default="Sal Base" />:</label>
  41.                                 </td>
  42.                                 <td valign="top" class="value ${hasErrors(bean:salary,field:'salBase','errors')}">
  43.                                     <input type="text" id="salBase" name="salBase" value="${fieldValue(bean:salary,field:'salBase')}" />
  44.                                 </td>
  45.                             </tr> 
  46.                         
  47.                             <tr class="prop">
  48.                                 <td valign="top" class="name">
  49.                                     <label for="salPrize"><g:message code="salary.salPrize" default="Sal Prize" />:</label>
  50.                                 </td>
  51.                                 <td valign="top" class="value ${hasErrors(bean:salary,field:'salPrize','errors')}">
  52.                                     <input type="text" id="salPrize" name="salPrize" value="${fieldValue(bean:salary,field:'salPrize')}" />
  53.                                 </td>
  54.                             </tr> 
  55.                         
  56.                             <tr class="prop">
  57.                                 <td valign="top" class="name">
  58.                                     <label for="salBonus"><g:message code="salary.salBonus" default="Sal Bonus" />:</label>
  59.                                 </td>
  60.                                 <td valign="top" class="value ${hasErrors(bean:salary,field:'salBonus','errors')}">
  61.                                     <input type="text" id="salBonus" name="salBonus" value="${fieldValue(bean:salary,field:'salBonus')}" />
  62.                                 </td>
  63.                             </tr> 
  64.                         
  65.                             <tr class="prop">
  66.                                 <td valign="top" class="name">
  67.                                     <label for="withhold"><g:message code="salary.withhold" default="Withhold" />:</label>
  68.                                 </td>
  69.                                 <td valign="top" class="value ${hasErrors(bean:salary,field:'withhold','errors')}">
  70.                                     <input type="text" id="withhold" name="withhold" value="${fieldValue(bean:salary,field:'withhold')}" />
  71.                                 </td>
  72.                             </tr> 
  73.                         
  74.                             <tr class="prop">
  75.                                 <td valign="top" class="name">
  76.                                     <label for="community"><g:message code="salary.community" default="Community" />:</label>
  77.                                 </td>
  78.                                 <td valign="top" class="value ${hasErrors(bean:salary,field:'community','errors')}">
  79.                                     <input type="text" id="community" name="community" value="${fieldValue(bean:salary,field:'community')}" />
  80.                                 </td>
  81.                             </tr> 
  82.                         
  83.                             <tr class="prop">
  84.                                 <td valign="top" class="name">
  85.                                     <label for="salHard"><g:message code="salary.salHard" default="Sal Hard" />:</label>
  86.                                 </td>
  87.                                 <td valign="top" class="value ${hasErrors(bean:salary,field:'salHard','errors')}">
  88.                                     <input type="text" id="salHard" name="salHard" value="${fieldValue(bean:salary,field:'salHard')}" />
  89.                                 </td>
  90.                             </tr>
  91.                             
  92.                             <tr class="prop">
  93.                                 <td valign="top" class="name">
  94.                                     <label for="salMemo"><g:message code="salary.salMemo" default="Sal Memo" />:</label>
  95.                                 </td>
  96.                                 <td valign="top" class="value ${hasErrors(bean:salary,field:'salMemo','errors')}">
  97.                                     <input type="text" maxlength="200" id="salMemo" name="salMemo" value="${fieldValue(bean:salary,field:'salMemo')}"/>
  98.                                 </td>
  99.                             </tr> 
  100.                         
  101.                             <tr class="prop">
  102.                                 <td valign="top" class="name">
  103.                                     <label for="salPass"><g:message code="salary.salPass" default="Sal Pass" />:</label>
  104.                                 </td>
  105.                                 <td valign="top" class="value ${hasErrors(bean:salary,field:'salPass','errors')}">
  106.                                     <input type="text" id="salPass" name="salPass" value="${fieldValue(bean:salary,field:'salPass')}"/>
  107.                                 </td>
  108.                             </tr> 
  109.                         
  110.                         </tbody>
  111.                     </table>
  112.                 </div>
  113.                 <div class="buttons">
  114.                     <input type="hidden" name="_salMan" value="${params._salMan}" />
  115.                     <input type="hidden" name="_salBase" value="${params._salBase}" />
  116.                     <input type="hidden" name="_salType_id" value="${params._salType_id}" />
  117.                     <input type="hidden" name="_salLastchangefrom" value="${params._salLastchangefrom}" />
  118.                     <input type="hidden" name="_salLastchangeto" value="${params._salLastchangeto}" />
  119.                     <input type="hidden" name="_salDel" value="${params._salDel}" />
  120.                     <input type="hidden" name="offset" value="${params.offset}" />
  121.                     <input type="hidden" name="sort" value="${params.sort}" />
  122.                     <input type="hidden" name="order" value="${params.order}" />                       
  123.                     <span class="button"><g:actionSubmit class="save" action="Update" value="${message(code:'update', 'default':'Update')}" /></span>
  124.                     <span class="button"><g:actionSubmit class="delete" onclick="return confirm('${message(code:'delete.confirm', 'default':'Are you sure?')}');" action="Delete" value="${message(code:'delete', 'default':'Delete')}" /></span>
  125.                 </div>
  126.             </g:form>
  127.         </div>
  128.     </body>
  129. </html>