[ 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/Posts/ -> ListPost.page (source)

   1  <com:TContent ID="Main">
   2  
   3  <com:TPanel ID="CategoryPanel" Visible="false" CssClass="category">
   4  <div class="category-name">
   5  <%= $this->Category->Name %>
   6  <com:THyperLink
   7      Text="[#]"
   8      Tooltip="Edit this category"
   9      Visible=<%= $this->User->IsAdmin %>
  10      NavigateUrl=<%= $this->Service->constructUrl('Posts.EditCategory',array('id'=>$this->Category->ID)) %>
  11      />
  12  <com:TLinkButton
  13      Text="[-]"
  14      Tooltip="Delete this category"
  15      Visible=<%= $this->User->IsAdmin %>
  16      Attributes.onclick="if(!confirm('Are you sure to delete this category? Posts in this category will NOT be removed.')) return false;"
  17      OnClick="deleteButtonClicked" />
  18  </div>
  19  <div class="category-description">
  20  <%= $this->Category->Description %>
  21  </div>
  22  </com:TPanel>
  23  
  24  <com:TRepeater ID="PostList" EnableViewState="false">
  25      <prop:ItemTemplate>
  26  <div class="post">
  27  <div class="post-title">
  28  <%# htmlentities($this->DataItem->Title,ENT_QUOTES,'UTF-8') %>
  29  </div>
  30  <div class="post-time">
  31  <%# date('l, F j, Y \a\t h:i:s a',$this->DataItem->CreateTime) %>
  32  </div>
  33  <div class="post-content">
  34  <%# $this->DataItem->Content %>
  35  </div>
  36  <div class="post-footer">
  37  posted by
  38  <%# '<a href="' . $this->Service->constructUrl('Users.ViewUser',array('id'=>$this->DataItem->AuthorID)) . '">' . $this->DataItem->AuthorName . '</a>' %>
  39  |
  40  <%# '<a href="' . $this->Service->constructUrl('Posts.ViewPost',array('id'=>$this->DataItem->ID)) . '">PermaLink</a>' %>
  41  |
  42  <%# '<a href="' . $this->Service->constructUrl('Posts.ViewPost',array('id'=>$this->DataItem->ID)) . '#comments">Comments (' . $this->DataItem->CommentCount . ')</a>' %>
  43  </div>
  44  </div>
  45      </prop:ItemTemplate>
  46  </com:TRepeater>
  47  
  48  <div class="postlist-pager">
  49  <com:THyperLink
  50      ID="PrevPage"
  51      Visible="false"
  52      Text="&lt; Previous Page"
  53      />
  54  <com:THyperLink
  55      ID="NextPage"
  56      Visible="false"
  57      Text="Next Page &gt;"
  58      />
  59  </div>
  60  
  61  </com:TContent>


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