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

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="signInOut.create" default="Create SignInOut" /></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="signInOut.list" default="SignInOut List" /></g:link></span>
  11.         </div>
  12.         <div class="body">
  13.             <h1><g:message code="signInOut.create" default="Create SignInOut" /></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="${signInOut}">
  18.             <div class="errors">
  19.                 <g:renderErrors bean="${signInOut}" 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="sigMan"><g:message code="signInOut.sigMan" default="Sig Man" />:</label>
  30.                                 </td>
  31.                                 <td valign="top" class="value ${hasErrors(bean:signInOut,field:'sigMan','errors')}">
  32.                                     <g:select optionKey="id" from="${Staff.list()}" name="sigMan.id" value="${signInOut?.sigMan?.id}" ></g:select>
  33.                                 </td>
  34.                             </tr> 
  35.                         
  36.                             <tr class="prop">
  37.                                 <td valign="top" class="name">
  38.                                     <label for="sigType"><g:message code="signInOut.sigType" default="Sig Type" />:</label>
  39.                                 </td>
  40.                                 <td valign="top" class="value ${hasErrors(bean:signInOut,field:'sigType','errors')}">
  41.                                     <g:select optionKey="id" from="${Code.findAllByCkind(Ckind.findByCkiFlag('SignType'))}" name="sigType.id" value="${signInOut?.sigType?.id}" ></g:select>
  42.                                 </td>
  43.                             </tr> 
  44.                         
  45.                             <tr class="prop">
  46.                                 <td valign="top" class="name">
  47.                                     <label for="sigCause"><g:message code="signInOut.sigCause" default="Sig Cause" />:</label>
  48.                                 </td>
  49.                                 <td valign="top" class="value ${hasErrors(bean:signInOut,field:'sigCause','errors')}">
  50.                                     <textarea rows="5" cols="40" name="sigCause">${signInOut?.sigCause?.encodeAsHTML()}</textarea>
  51.                                 </td>
  52.                             </tr> 
  53.                         
  54.                             <tr class="prop">
  55.                                 <td valign="top" class="name">
  56.                                     <label for="sigMemo"><g:message code="signInOut.sigMemo" default="Sig Memo" />:</label>
  57.                                 </td>
  58.                                 <td valign="top" class="value ${hasErrors(bean:signInOut,field:'sigMemo','errors')}">
  59.                                     <textarea rows="5" cols="40" name="sigMemo">${signInOut?.sigMemo?.encodeAsHTML()}</textarea>
  60.                                 </td>
  61.                             </tr> 
  62.                         
  63.                         </tbody>
  64.                     </table>
  65.                 </div>
  66.                 <div class="buttons">
  67.                     <input type="hidden" name="_sigMan" value="${params._sigMan}" />
  68.                     <input type="hidden" name="_sigType_id" value="${params._sigType_id}" />
  69.                     <input type="hidden" name="_rosLastchangefrom" value="${params._sigTimefrom}" />
  70.                     <input type="hidden" name="_rosLastchangeto" value="${params._sigTimeto}" />
  71.                     <input type="hidden" name="_rosDel" value="${params._sigDel}" />
  72.                     <input type="hidden" name="offset" value="${params.offset}" />
  73.                     <input type="hidden" name="sort" value="${params.sort}" />
  74.                     <input type="hidden" name="order" value="${params.order}" />
  75.                     <span class="button"><input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" /></span>
  76.                     <span class="button"><input  class="delete" type="button" onclick=" history.go(-1);" value="${message(code:'back', 'default':'Back')}"/> </span>
  77.                 </div>
  78.             </g:form>
  79.         </div>
  80.     </body>
  81. </html>