<!-----
Name: manageUser.cfm
Author: Eric B, following Ben Forta code in ColdFusion 8 web application construction kit; gdemaria; _agx_
Description: NBPTS add and update users administration
Created: June - July 2010
ColdFusion Version 8
MS SQL Server 2005
----->
<!--- Set the datasource --->
<cfset ds="ebwebwork">
<!--- in this query, select columns from table tbl_NBPTS_Principals --->
<!--- we want columns for only the logged-in UserID --->
<cfquery datasource="#ds#" name="GetUserList">
SELECT UserID
, FirstName
, LastName
, UserEmail
, UserRoleID
, SSMA_TimeStamp
, DateRecordModified
, NameofSchool
, NameofDistrict
FROM tbl_NBPTS_Principals
WHERE UserID = <cfqueryparam cfsqltype="cf_sql_integer" value="#val(session.auth.UserID)#">
</cfquery>
<!--- page header HTML / CSS --->
<cfinclude template="/SiteHeader.cfm" />
<!-- begin row1 -->
<div id="row1">
<!-- begin row1content_left -->
<div class="row1content_left">
<img src="/img/row1_photo1.jpg" width="582" height="157" alt="NBPTS" class="border0" />
</div>
<!-- /row1content_left -->
<!-- begin row1content_right -->
<div class="row1content_right">
<cfinclude template="/login_menu_template.cfm">
</div>
<!-- /row1content_right -->
<!-- end row1 -->
</div>
<!-- begin row2 -->
<div id="row2">
<h1>NBPTS Principals Interface</h1>
<h2>Principals: Manage Your Profile</h2>
<p><img src="/img/bronzestar.gif" alt="Bronze Star" style="margin:0 4px 0 0;" width="14" height="13" /><a href="/principal/principal_registration.cfm?UserID=#session.auth.UserID#"><strong>Edit Your Profile</strong></a></p>
<table class="tablecontrolpanel">
<tr style="background-color:#ebebeb;"><td><strong>User ID</strong></td>
<td class="left"><strong>First Name</strong></td>
<td class="left"><strong>Last Name</strong></td>
<td class="left"><strong>Email</strong></td>
<td class="left"><strong>School</strong></td>
<td class="left"><strong>School District</strong></td>
<td><strong>Date Modified</strong></td>
</tr>
<!--- list Users --->
<cfoutput query="GetUserList" group="UserID">
<tr>
<!--- User ID --->
<td>#getUserList.UserID#</td>
<!--- User First name --->
<td class="left">#getUserList.FirstName#</td>
<!--- User Last name --->
<td class="left">#getUserList.LastName#</td>
<!--- UserEmail --->
<td class="left">#getUserList.UserEmail#</td>
<!--- NameofSchool --->
<td class="left">#getUserList.NameofSchool#</td>
<!--- NameofDistrict --->
<td class="left">#getUserList.NameofDistrict#</td>
<td>
#DateFormat(GetUserList.DateRecordModified, "mmmm d, yyyy")#
</td>
</tr>
</cfoutput>
</table>
<!-- end row2 -->
</div>
<!--- page footer HTML / CSS --->
<cfinclude template="/SiteFooter.cfm" />
|