root/trunk/website/blog/admin/login.cfm @ 43

Revision 5, 1.5 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\login.cfm
5        Author       : Raymond Camden
6        Created      : 04/13/06
7        Last Updated : 10/28/06
8        History      : Fix for timeout w/ enclosure (rkc 10/28/06)
9--->
10
11
12<cfmodule template="../tags/adminlayout.cfm" title="Logon">
13
14<cfset qs = cgi.query_string>
15<cfset qs = reReplace(qs, "logout=[^&]+", "")>
16
17<cfoutput>
18<form action="#cgi.script_name#?#qs#" method="post" enctype="multipart/form-data">
19<!--- copy additional fields --->
20<cfloop item="field" collection="#form#">
21        <!--- the isSimpleValue is probably a bit much.... --->
22        <cfif field is "enclosure" and len(trim(form.enclosure))>
23                <input type="hidden" name="enclosureerror" value="true">
24        <cfelseif not listFindNoCase("username,password", field) and isSimpleValue(form[field])>
25                <input type="hidden" name="#field#" value="#htmleditformat(form[field])#">
26        </cfif>
27</cfloop>
28<table>
29        <tr>
30                <td><b>#application.resourceBundle.getResource("username")#</b></td>
31                <td><input type="text" name="username"></td>
32        </tr>
33        <tr>
34                <td><b>#application.resourceBundle.getResource("password")#</b></td>
35                <td><input type="password" name="password"></td>
36        </tr>
37        <tr>
38                <td>&nbsp;</td>
39                <td><input type="submit" value="#application.resourceBundle.getResource("login")#"></td>
40        </tr>
41</table>
42</form>
43
44<script language="javaScript" TYPE="text/javascript">
45<!--
46document.forms[0].username.focus();
47//-->
48</script>
49</cfoutput>
50
51</cfmodule>
52
53<cfsetting enablecfoutputonly=false>
Note: See TracBrowser for help on using the browser.