<cfset attributes.ids = ValueList(GetAllAdmins.Author)>
<cfset attributes.perm = ValueList(GetAllAdmins.IsAdmin)>
<cfset adminQueryRaw = QueryNew("empid,lastname,firstname,status")>
<cfset badIDs = "">


<cfloop from="1" to="#ListLen(Attributes.ids)#" index="ThisPlace">
    
    <cfscript>
    thisemployeeid = listgetat(attributes.ids, thisplace);
    thisperm = listgetat(attributes.perm, thisplace);
    </cfscript>
    <cfmodule 
template="#Request.CFRoot#/authentication/act_UserInfoFromEmpNumber.cfm" 
employeeid="#ThisEmployeeID#">
    <cfscript>
    if (len(lastname) AND QueryAddRow(adminQueryRaw)) {
        QuerySetCell(adminQueryRaw, "empId", thisemployeeid);  
        QuerySetCell(adminQueryRaw, "lastname", LastName);
        QuerySetCell(adminQueryRaw, "firstname", FirstName);
        if (ThisPerm is 1)
            QuerySetCell(adminQueryRaw, "status", "Full Administrator");
        else                
            QuerySetCell(adminQueryRaw, "status", "Reporting Only");
    } else {
        badIDs = ListAppend(badIDs,"'#thisemployeeid#'");
    }
    </cfscript>             
    
</cfloop>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303948
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to