| 1 | <cfsetting enablecfoutputonly=true> |
|---|
| 2 | <cfprocessingdirective pageencoding="utf-8"> |
|---|
| 3 | <!--- |
|---|
| 4 | Name : /client/admin/comments.cfm |
|---|
| 5 | Author : Raymond Camden |
|---|
| 6 | Created : 04/06/06 |
|---|
| 7 | Last Updated : 7/13/06 |
|---|
| 8 | History : Support entrytitle (rkc 7/7/06) |
|---|
| 9 | : Show link (rkc 7/13/06) |
|---|
| 10 | ---> |
|---|
| 11 | |
|---|
| 12 | <cfparam name="form.search" default=""> |
|---|
| 13 | |
|---|
| 14 | <!--- handle deletes ---> |
|---|
| 15 | <cfif structKeyExists(form, "mark")> |
|---|
| 16 | <cfloop index="u" list="#form.mark#"> |
|---|
| 17 | <cfset application.blog.deleteComment(u)> |
|---|
| 18 | </cfloop> |
|---|
| 19 | </cfif> |
|---|
| 20 | |
|---|
| 21 | <cfif len(trim(form.search))> |
|---|
| 22 | <cfset comments = application.blog.getComments(sortdir="desc",search=form.search)> |
|---|
| 23 | <cfelse> |
|---|
| 24 | <cfset comments = application.blog.getComments(sortdir="desc")> |
|---|
| 25 | </cfif> |
|---|
| 26 | |
|---|
| 27 | <cfmodule template="../tags/adminlayout.cfm" title="Comments"> |
|---|
| 28 | |
|---|
| 29 | <cfoutput> |
|---|
| 30 | <p> |
|---|
| 31 | Your blog currently has |
|---|
| 32 | <cfif comments.recordCount gt 1> |
|---|
| 33 | #comments.recordcount# comments |
|---|
| 34 | <cfelseif comments.recordCount is 1> |
|---|
| 35 | 1 comment. |
|---|
| 36 | <cfelse> |
|---|
| 37 | 0 comments. |
|---|
| 38 | </cfif> |
|---|
| 39 | </p> |
|---|
| 40 | |
|---|
| 41 | <p> |
|---|
| 42 | <form action="comments.cfm" method="post"> |
|---|
| 43 | <input type="text" name="search" value="#form.search#"> <input type="submit" value="Filter by Keyword"> |
|---|
| 44 | </form> |
|---|
| 45 | </p> |
|---|
| 46 | </cfoutput> |
|---|
| 47 | |
|---|
| 48 | <cfmodule template="../tags/datatable.cfm" data="#comments#" editlink="comment.cfm" label="Comments" |
|---|
| 49 | linkcol="comment" defaultsort="posted" defaultdir="desc" showAdd="false"> |
|---|
| 50 | <cfmodule template="../tags/datacol.cfm" colname="name" label="Name" width="150" /> |
|---|
| 51 | <cfmodule template="../tags/datacol.cfm" colname="entrytitle" label="Entry" width="300" left="100" /> |
|---|
| 52 | <cfmodule template="../tags/datacol.cfm" colname="posted" label="Posted" format="datetime" width="150" /> |
|---|
| 53 | <cfmodule template="../tags/datacol.cfm" colname="comment" label="Comment" left="100"/> |
|---|
| 54 | <cfmodule template="../tags/datacol.cfm" label="View" data="<a href=""#application.rooturl#/index.cfm?mode=entry&entry=$entryidfk$##c$id$"">View</a>" sort="false"/> |
|---|
| 55 | </cfmodule> |
|---|
| 56 | |
|---|
| 57 | </cfmodule> |
|---|
| 58 | |
|---|
| 59 | <cfsetting enablecfoutputonly=false> |
|---|