diff options
author | wei <> | 2006-06-01 00:10:37 +0000 |
---|---|---|
committer | wei <> | 2006-06-01 00:10:37 +0000 |
commit | b01ee414775cc78aa47edb74263be9502168e472 (patch) | |
tree | 6fc3cb60cf6a4c26c594a685155cd92b98ac69ac /demos/quickstart/protected/comments/CommentList.tpl | |
parent | 5081873dda167cd224be2c4b42e57128f51c89da (diff) |
Add comments option to quickstart.
Diffstat (limited to 'demos/quickstart/protected/comments/CommentList.tpl')
-rw-r--r-- | demos/quickstart/protected/comments/CommentList.tpl | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/demos/quickstart/protected/comments/CommentList.tpl b/demos/quickstart/protected/comments/CommentList.tpl new file mode 100644 index 00000000..7ea7b870 --- /dev/null +++ b/demos/quickstart/protected/comments/CommentList.tpl @@ -0,0 +1,84 @@ +<div id="comments"> + +<com:TRepeater ID="comments"> + <prop:HeaderTemplate> + <h2 class="comment_header">Comments</h2> + </prop:HeaderTemplate> + <prop:ItemTemplate> + <div class="comment_item comment_item<%# $this->ItemIndex%2 %>"> + <span class="number" id="comment_<%# $this->ItemIndex+1 %>"><%# $this->ItemIndex+1 %></span> + <span class="email"> + <%# str_replace(array('@','.'),array(' at ',' dot '), strtoupper($this->DataItem['email'])) %> + </span> + <span class="date"> + <com:TDateFormat Value=<%# intval($this->DataItem['date_added']) %> /> + </span> + <div class="comment"> + <com:TSafeHtml> + <%# $this->DataItem['comment'] %> + </com:TSafeHtml> + </div> + </div> + </prop:ItemTemplate> +</com:TRepeater> + +<com:TMultiView ID="multiView1" ActiveViewIndex="0"> + <com:TView ID="view1"> + <div class="add_comments"> + <h3>Add your comment</h3> + <p>Add comments and notes that can solve or clarify a particular problem or task. + Please use the forum to ask questions. You may be HTML in your comment.</p> + <div class="comment_email"> + <com:TLabel ID="email_label" Text="Email:" ForControl="email"/> + <com:TTextBox ID="email" /> + <com:TRequiredFieldValidator + ControlToValidate="email" + Display="Dynamic" + ErrorMessage="An email address is required." /> + <com:TEmailAddressValidator + ControlToValidate="email" + CheckMXRecord="false" + Display="Dynamic" + ErrorMessage="Please provide your email address."/> + </div> + <div class="comment_content"> + <com:TLabel ID="content_label" Text="Comment:" ForControl="content"/> + <com:TTextBox ID="content" TextMode="MultiLine"/> + <div class="please_add"> + <com:TRequiredFieldValidator + ControlToValidate="content" + Display="Dynamic" + ErrorMessage="Please add your comment." /> + </div> + </div> + <com:TPlaceHolder Visible=<%= strlen($this->content->Text) %> > + <div class="comment_preview"> + <h3 style="margin:0">Preview comment</h3> + <div class="comment"> + <com:TSafeHtml> + <%= $this->content->Text %> + </com:TSafeHtml> + </div> + </div> + </com:TPlaceHolder> + <div class="add_comment"> + <com:TButton ID="previewComment" Text="Preview Comment" /> + <com:TButton ID="addComment" Text="Add Comment" OnClick="addComment_Clicked"/> + </div> + </div> + </com:TView> + <com:TView ID="view2"> + <div class="comment_added"> + <div class="thank">Thank you, your comment is quequed for moderation.</div> + <div class="comment_preview"> + <h3 style="margin:0">Preview comment</h3> + <div class="comment"> + <com:TSafeHtml> + <%= $this->content->Text %> + </com:TSafeHtml> + </div> + </div> + </div> + </com:TView> +</com:TMultiView> +</div>
\ No newline at end of file |