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

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.create" default="Create 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.         </div>
  12.         <div class="body">
  13.             <h1><g:message code="salary.create" default="Create Salary" /></h1>
  14.             <g:if test="${flash.message}">
  15.             <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
  16.             </g:if>
  17.             <g:hasErrors bean="${salary}">
  18.             <div class="errors">
  19.                 <g:renderErrors bean="${salary}" as="list" />
  20.             </div>
  21.             </g:hasErrors>
  22.             <g:form action="save" method="post" >
  23.                 <div class="dialog">
  24.                     <table>
  25.                         <tbody>
  26.                         
  27.                             <tr class="prop">
  28.                                 <td valign="top" class="name">
  29.                                     <label for="salMan"><g:message code="salary.salMan" default="Sal Man" />:</label>
  30.                                 </td>
  31.                                 <td valign="top" class="value ${hasErrors(bean:salary,field:'salMan','errors')}">
  32.                                     <g:select optionKey="id" from="${Staff.list()}" name="salMan.id" value="${salary?.salMan?.id}" ></g:select>
  33.                                 </td>
  34.                             </tr> 
  35.                         
  36.                             <tr class="prop">
  37.                                 <td valign="top" class="name">
  38.                                     <label for="salBase"><g:message code="salary.salBase" default="Sal Base" />:</label>
  39.                                 </td>
  40.                                 <td valign="top" class="value ${hasErrors(bean:salary,field:'salBase','errors')}">
  41.                                     <input type="text" id="salBase" name="salBase" value="${fieldValue(bean:salary,field:'salBase')}" />
  42.                                 </td>
  43.                             </tr> 
  44.                         
  45.                             <tr class="prop">
  46.                                 <td valign="top" class="name">
  47.                                     <label for="salPrize"><g:message code="salary.salPrize" default="Sal Prize" />:</label>
  48.                                 </td>
  49.                                 <td valign="top" class="value ${hasErrors(bean:salary,field:'salPrize','errors')}">
  50.                                     <input type="text" id="salPrize" name="salPrize" value="${fieldValue(bean:salary,field:'salPrize')}" />
  51.                                 </td>
  52.                             </tr> 
  53.                         
  54.                             <tr class="prop">
  55.                                 <td valign="top" class="name">
  56.                                     <label for="salBonus"><g:message code="salary.salBonus" default="Sal Bonus" />:</label>
  57.                                 </td>
  58.                                 <td valign="top" class="value ${hasErrors(bean:salary,field:'salBonus','errors')}">
  59.                                     <input type="text" id="salBonus" name="salBonus" value="${fieldValue(bean:salary,field:'salBonus')}" />
  60.                                 </td>
  61.                             </tr> 
  62.                         
  63.                             <tr class="prop">
  64.                                 <td valign="top" class="name">
  65.                                     <label for="withhold"><g:message code="salary.withhold" default="Withhold" />:</label>
  66.                                 </td>
  67.                                 <td valign="top" class="value ${hasErrors(bean:salary,field:'withhold','errors')}">
  68.                                     <input type="text" id="withhold" name="withhold" value="${fieldValue(bean:salary,field:'withhold')}" />
  69.                                 </td>
  70.                             </tr> 
  71.                         
  72.                             <tr class="prop">
  73.                                 <td valign="top" class="name">
  74.                                     <label for="community"><g:message code="salary.community" default="Community" />:</label>
  75.                                 </td>
  76.                                 <td valign="top" class="value ${hasErrors(bean:salary,field:'community','errors')}">
  77.                                     <input type="text" id="community" name="community" value="${fieldValue(bean:salary,field:'community')}" />
  78.                                 </td>
  79.                             </tr> 
  80.                         
  81.                             <tr class="prop">
  82.                                 <td valign="top" class="name">
  83.                                     <label for="salHard"><g:message code="salary.salHard" default="Sal Hard" />:</label>
  84.                                 </td>
  85.                                 <td valign="top" class="value ${hasErrors(bean:salary,field:'salHard','errors')}">
  86.                                     <input type="text" id="salHard" name="salHard" value="${fieldValue(bean:salary,field:'salHard')}" />
  87.                                 </td>
  88.                             </tr> 
  89.                         
  90.                             <tr class="prop">
  91.                                 <td valign="top" class="name">
  92.                                     <label for="salMemo"><g:message code="salary.salMemo" default="Sal Memo" />:</label>
  93.                                 </td>
  94.                                 <td valign="top" class="value ${hasErrors(bean:salary,field:'salMemo','errors')}">
  95.                                     <input type="text" maxlength="200" id="salMemo" name="salMemo" value="${fieldValue(bean:salary,field:'salMemo')}"/>
  96.                                 </td>
  97.                             </tr> 
  98.                   
  99.                         
  100.                             <tr class="prop">
  101.                                 <td valign="top" class="name">
  102.                                     <label for="salPass"><g:message code="salary.salPass" default="Sal Pass" />:</label>
  103.                                 </td>
  104.                                 <td valign="top" class="value ${hasErrors(bean:salary,field:'salPass','errors')}">
  105.                                     <input type="text" id="salPass" name="salPass" value="${fieldValue(bean:salary,field:'salPass')}"/>
  106.                                 </td>
  107.                             </tr> 
  108.                         
  109.                         </tbody>
  110.                     </table>
  111.                 </div>
  112.                 <div class="buttons">
  113.                     <input type="hidden" name="_salMan" value="${params._salMan}" />
  114.                     <input type="hidden" name="_salBase" value="${params._salBase}" />
  115.                     <input type="hidden" name="_salType_id" value="${params._salType_id}" />
  116.                     <input type="hidden" name="_salLastchangefrom" value="${params._salLastchangefrom}" />
  117.                     <input type="hidden" name="_salLastchangeto" value="${params._salLastchangeto}" />
  118.                     <input type="hidden" name="_salDel" value="${params._salDel}" />
  119.                     <input type="hidden" name="offset" value="${params.offset}" />
  120.                     <input type="hidden" name="sort" value="${params.sort}" />
  121.                     <input type="hidden" name="order" value="${params.order}" />                   
  122.                     <span class="button"><input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" /></span>
  123.                     <span class="button"><input  class="delete" type="button" onclick=" history.go(-1);" value="${message(code:'back', 'default':'Back')}"/> </span>
  124.                 </div>
  125.             </g:form>
  126.         </div>
  127.     </body>
  128. </html>