|
Revision 5, 0.9 kB
(checked in by DanWilson, 17 years ago)
|
|
Initial Commit Of ModelGlue? Website (upgrade to blogcfc 511)
|
| Rev | Line | |
|---|
| [5] | 1 | <cfsetting enablecfoutputonly=true> |
|---|
| 2 | <!--- |
|---|
| 3 | Name : users.cfm |
|---|
| 4 | Author : Raymond Camden |
|---|
| 5 | Created : August 3, 2007 |
|---|
| 6 | Last Updated : |
|---|
| 7 | History : |
|---|
| 8 | Purpose : |
|---|
| 9 | ---> |
|---|
| 10 | <cfimport taglib="../tags/" prefix="tags"> |
|---|
| 11 | |
|---|
| 12 | <cfparam name="form.surveyidfk" default=""> |
|---|
| 13 | |
|---|
| 14 | <tags:layout templatename="admin" title="User Editor"> |
|---|
| 15 | |
|---|
| 16 | <!--- handle deletions ---> |
|---|
| 17 | <cfif isDefined("form.mark") and len(form.mark)> |
|---|
| 18 | <cfloop index="id" list="#form.mark#"> |
|---|
| 19 | <cfset application.user.deleteUser(id)> |
|---|
| 20 | </cfloop> |
|---|
| 21 | <cfoutput> |
|---|
| 22 | <p> |
|---|
| 23 | <b>Users(s) deleted.</b> |
|---|
| 24 | </p> |
|---|
| 25 | </cfoutput> |
|---|
| 26 | </cfif> |
|---|
| 27 | |
|---|
| 28 | <!--- get surveys ---> |
|---|
| 29 | <cfset users = application.user.getUsers()> |
|---|
| 30 | |
|---|
| 31 | <tags:datatable data="#users#" list="username" editlink="users_edit.cfm" linkcol="username" linkval="username" label="User"> |
|---|
| 32 | <tags:datacol colname="username" label="Username" /> |
|---|
| 33 | </tags:datatable> |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | </tags:layout> |
|---|
| 37 | |
|---|
| 38 | <cfsetting enablecfoutputonly=false> |
|---|