[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/demos/blog/protected/Pages/Users/ -> ViewUser.page (source)

   1  <%@ Title="View User Profile" %>
   2  
   3  <com:TContent ID="Main">
   4  
   5  <h2>User Profile</h2>
   6  
   7  <table class="profile-table">
   8  <tr>
   9    <td class="profile-table-label">Username</td>
  10    <td class="profile-table-value"><%= $this->Profile->Name %></td>
  11  </tr>
  12  <tr>
  13    <td class="profile-table-label">Full name</td>
  14    <td class="profile-table-value"><%= htmlentities($this->Profile->FullName,ENT_QUOTES,'UTF-8') %></td>
  15  </tr>
  16  <tr>
  17    <td class="profile-table-label">Email</td>
  18    <td class="profile-table-value"><%= $this->Profile->Email %></td>
  19  </tr>
  20  <tr>
  21    <td class="profile-table-label">Role</td>
  22    <td class="profile-table-value"><%= $this->Profile->Role===0? 'Normal user':'Administrator' %></td>
  23  </tr>
  24  <tr>
  25    <td class="profile-table-label">Website</td>
  26    <td class="profile-table-value"><%= htmlentities($this->Profile->Website,ENT_QUOTES,'UTF-8') %></td>
  27  </tr>
  28  <tr>
  29    <td class="profile-table-label">Member since</td>
  30    <td class="profile-table-value"><%= date('l, F j, Y',$this->Profile->CreateTime) %></td>
  31  </tr>
  32  </table>
  33  <br/>
  34  <com:THyperLink
  35      Text="Update"
  36      NavigateUrl=<%= $this->Service->constructUrl('Users.EditUser',array('id'=>$this->Profile->ID)) %>
  37      Visible=<%= $this->User->IsAdmin || $this->Profile->ID===$this->User->ID %>
  38      CssClass="link-button" />
  39  
  40  </com:TContent>


Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7