|
Revision 5, 1.2 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 : 7/16/06 |
|---|
| 8 | History : Typo, wrong title (rkc 7/16/06) |
|---|
| 9 | ---> |
|---|
| 10 | |
|---|
| 11 | <!--- handle deletes ---> |
|---|
| 12 | <cfif structKeyExists(form, "mark")> |
|---|
| 13 | <cfloop index="u" list="#form.mark#"> |
|---|
| 14 | <cfset application.textblock.deleteTextblock(u)> |
|---|
| 15 | </cfloop> |
|---|
| 16 | </cfif> |
|---|
| 17 | |
|---|
| 18 | <cfset tbs = application.textblock.getTextblocks()> |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | <cfmodule template="../tags/adminlayout.cfm" title="Textblocks"> |
|---|
| 22 | |
|---|
| 23 | <cfoutput> |
|---|
| 24 | <p> |
|---|
| 25 | Your blog currently has |
|---|
| 26 | <cfif tbs.recordCount gt 1> |
|---|
| 27 | #tbs.recordcount# textblocks. |
|---|
| 28 | <cfelseif tbs.recordCount is 1> |
|---|
| 29 | 1 textblock. |
|---|
| 30 | <cfelse> |
|---|
| 31 | 0 textblocks. |
|---|
| 32 | </cfif> |
|---|
| 33 | </p> |
|---|
| 34 | </cfoutput> |
|---|
| 35 | |
|---|
| 36 | <cfmodule template="../tags/datatable.cfm" data="#tbs#" editlink="textblock.cfm" label="Textblocks" |
|---|
| 37 | linkcol="label" defaultsort="label" defaultdir="asc"> |
|---|
| 38 | <cfmodule template="../tags/datacol.cfm" colname="label" label="Label" /> |
|---|
| 39 | <cfmodule template="../tags/datacol.cfm" colname="body" label="Body" left="50" /> |
|---|
| 40 | </cfmodule> |
|---|
| 41 | |
|---|
| 42 | </cfmodule> |
|---|
| 43 | |
|---|
| 44 | <cfsetting enablecfoutputonly=false> |
|---|