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

PlugIns编程

开发平台:

Java

  1.   
  2. <html>
  3.   <head>
  4.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5.     <meta name="layout" content="main" />
  6.     <title>User Profile</title>
  7.   </head>
  8.   <body>
  9.     <div class="nav">
  10.       <span class="menuButton"><a href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
  11.     </div>
  12.     
  13.     <div class="body">
  14.       <h1><g:message code="register.userProfile" default="User Profile" /></h1>
  15.       <g:if test="${flash.message}">
  16.         <div class="message">${flash.message}</div>
  17.       </g:if>
  18.       <div class="dialog">
  19.         <table>
  20.           <tbody>
  21.             <tr class="prop">
  22.               <td valign="top" class="name"><g:message code="register.loginname" default="Login Name:" /></td>
  23.               <td valign="top" class="value">
  24.                ${person.username?.encodeAsHTML()}
  25.               </td>
  26.             </tr>
  27.                    
  28.             <tr class="prop">
  29.               <td valign="top" class="name"><g:message code="register.fullname" default="Full Name:" /></td>
  30.               <td valign="top" class="value">
  31.                 ${person.userRealName?.encodeAsHTML()}
  32.               </td>
  33.             </tr>
  34.                    
  35.             <tr class="prop">
  36.               <td valign="top" class="name"><g:message code="register.enabled" default="Enabled:" /></td>
  37.               <td valign="top" class="value">
  38.                 ${person.enabled?.encodeAsHTML()}
  39.               </td>
  40.             </tr>
  41.             <tr class="prop">
  42.               <td valign="top" class="name"><g:message code="register.email" default="Email:" /></td>
  43.               <td valign="top" class="value">
  44.                 ${person.email?.encodeAsHTML()}
  45.               </td>
  46.             </tr>
  47.                    
  48.             <tr class="prop">
  49.               <td valign="top" class="name"><g:message code="register.showEmail" default="Show Email:" /></td>
  50.               <td valign="top" class="value">
  51.                 ${person.email_show?.encodeAsHTML()}
  52.               </td>
  53.             </tr>
  54.                    
  55.             <tr class="prop">
  56.               <td valign="top" class="name"><g:message code="" default="Roles:" /></td>
  57.               <td valign="top" class="value">
  58.                 <ul>
  59.                 <g:collect in="${person.authorities}" expr="${it.authority}">
  60.                   <li>${it?.substring(5)?.toLowerCase()}</li>
  61.                 </g:collect>
  62.                 </ul>
  63.               </td>
  64.             </tr>
  65.                    
  66.           </tbody>
  67.         </table>
  68.       </div>
  69.       
  70.       <div class="buttons">
  71.         <g:form controller="register">
  72.           <input type="hidden" name="id" value="${person?.id}" />
  73.           <span class="button"><g:actionSubmit class="edit" action="Edit" value="${message(code:'edit', 'default':'Edit')}" /></span>
  74.         </g:form>
  75.       </div>
  76.       
  77.     </div>
  78.   </body>
  79. </html>