|
Revision 5, 1.3 kB
(checked in by DanWilson, 17 years ago)
|
|
Initial Commit Of ModelGlue? Website (upgrade to blogcfc 511)
|
| Line | |
|---|
| 1 | <cfsetting enablecfoutputonly=true> |
|---|
| 2 | <cfprocessingdirective pageencoding="utf-8"> |
|---|
| 3 | <!--- |
|---|
| 4 | Name : C:\projects\blogcfc5\client\admin\pages.cfm |
|---|
| 5 | Author : Raymond Camden |
|---|
| 6 | Created : 07/07/06 |
|---|
| 7 | Last Updated : |
|---|
| 8 | History : |
|---|
| 9 | ---> |
|---|
| 10 | |
|---|
| 11 | <!--- handle deletes ---> |
|---|
| 12 | <cfif structKeyExists(form, "mark")> |
|---|
| 13 | <cfloop index="u" list="#form.mark#"> |
|---|
| 14 | <cfset application.page.deletePage(u)> |
|---|
| 15 | </cfloop> |
|---|
| 16 | </cfif> |
|---|
| 17 | |
|---|
| 18 | <cfset pages = application.page.getPages()> |
|---|
| 19 | |
|---|
| 20 | <!--- Kind of a hack, but lets add a new col for our url ---> |
|---|
| 21 | <cfset queryAddColumn(pages, "url", arrayNew(1))> |
|---|
| 22 | <cfloop query="pages"> |
|---|
| 23 | <cfset querySetCell(pages, "url", "#application.rootURL#/page.cfm/#alias#", currentRow)> |
|---|
| 24 | </cfloop> |
|---|
| 25 | |
|---|
| 26 | <cfmodule template="../tags/adminlayout.cfm" title="Pages"> |
|---|
| 27 | |
|---|
| 28 | <cfoutput> |
|---|
| 29 | <p> |
|---|
| 30 | Your blog currently has |
|---|
| 31 | <cfif pages.recordCount gt 1> |
|---|
| 32 | #pages.recordcount# pages |
|---|
| 33 | <cfelseif pages.recordCount is 1> |
|---|
| 34 | 1 page |
|---|
| 35 | <cfelse> |
|---|
| 36 | 0 pages |
|---|
| 37 | </cfif>. |
|---|
| 38 | </p> |
|---|
| 39 | </cfoutput> |
|---|
| 40 | |
|---|
| 41 | <cfmodule template="../tags/datatable.cfm" data="#pages#" editlink="page.cfm" label="Pages" |
|---|
| 42 | linkcol="title" defaultsort="title" defaultdir="asc"> |
|---|
| 43 | <cfmodule template="../tags/datacol.cfm" colname="title" label="Title" /> |
|---|
| 44 | <cfmodule template="../tags/datacol.cfm" colname="url" label="URL" format="url" /> |
|---|
| 45 | </cfmodule> |
|---|
| 46 | |
|---|
| 47 | </cfmodule> |
|---|
| 48 | |
|---|
| 49 | <cfsetting enablecfoutputonly=false> |
|---|