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

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>User Registration</title>         
  6.   </head>
  7.   <body>
  8.     <div class="nav">
  9.       <span class="menuButton"><a href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
  10.     </div>
  11.     <div class="body">
  12.       <h1><g:message code="" default="User Registration" /></h1>
  13.       <g:if test="${flash.message}">
  14.         <div class="message">${flash.message}</div>
  15.       </g:if>
  16.       <g:hasErrors bean="${person}">
  17.         <div class="errors">
  18.           <g:renderErrors bean="${person}" as="list" />
  19.         </div>
  20.       </g:hasErrors>
  21.       <g:form action="save" method="post" >
  22.         <div class="dialog">
  23.           <table>
  24.             <tbody>
  25.               <tr class='prop'>
  26.                 <td valign='top' class='name'>
  27.                   <label for='username'><g:message code="register.loginname" default="Login Name:" /></label>
  28.                 </td>
  29.                 <td valign='top' 
  30.                  class='value ${hasErrors(bean:person,field:'username','errors')}'>
  31.                   <input type="text" name='username' 
  32.                     value="${person?.username?.encodeAsHTML()}"/>
  33.                 </td>
  34.               </tr>
  35.                        
  36.               <tr class='prop'>
  37.                 <td valign='top' class='name'>
  38.                   <label for='userRealName'><g:message code="register.fullname" default="Full Name:" /></label>
  39.                 </td>
  40.                 <td valign='top' 
  41.                     class='value ${hasErrors(bean:person,field:'userRealName','errors')}'>
  42.                   <input type="text" name='userRealName' 
  43.                     value="${person?.userRealName?.encodeAsHTML()}"/>
  44.                 </td>
  45.               </tr>
  46.                        
  47.               <tr class='prop'>
  48.                 <td valign='top' class='name'>
  49.                   <label for='passwd'><g:message code="register.password" default="Password:" /></label>
  50.                 </td>
  51.                 <td valign='top' 
  52.                     class='value ${hasErrors(bean:person,field:'passwd','errors')}'>
  53.                   <input type="password" name='passwd' 
  54.                          value="${person?.passwd?.encodeAsHTML()}"/>
  55.                 </td>
  56.               </tr>
  57.                        
  58.               <tr class='prop'>
  59.                 <td valign='top' class='name'>
  60.                   <label for='enabled'><g:message code="register.confirmpassword" default="Confirm Password:" /></label>
  61.                 </td>
  62.                 <td valign='top' 
  63.                  class='value ${hasErrors(bean:person,field:'passwd','errors')}'>
  64.                   <input type="password" name='repasswd' 
  65.                          value="${person?.passwd?.encodeAsHTML()}"/>
  66.                 </td>
  67.               </tr>
  68.                        
  69.               <tr class='prop'>
  70.                 <td valign='top' class='name'>
  71.                   <label for='email'><g:message code="register.email" default="Email:" /></label>
  72.                 </td>
  73.                 <td valign='top' 
  74.                     class='value ${hasErrors(bean:person,field:'email','errors')}'>
  75.                   <input type="text" name='email' 
  76.                          value="${person?.email?.encodeAsHTML()}"/>
  77.                 </td>
  78.               </tr>
  79.               <tr class='prop'>
  80.                 <td valign='bottom' class='name'>
  81.                   <label for='code'><g:message code="register.entercode" default="Enter Code:" /> </label>
  82.                 </td>
  83.                 <td valign='top' class='name'>
  84.                   <input type="text" name="captcha" size="8"/>
  85.                   <img src="${createLink(controller:'captcha', action:'index')}" align="absmiddle"/>
  86.                 </td>
  87.               </tr>
  88.             </tbody>
  89.           </table>
  90.         </div>
  91.         
  92.         <div class="buttons">
  93.           <span class="formButton">
  94.             <input type="submit" value="Create"></input>
  95.           </span>
  96.         </div>
  97.             
  98.       </g:form>
  99.     </div>
  100.   </body>
  101. </html>