MAC
|
| Posted: 07/12/2002, 2:56 PM |
|
Does anyone know a way to display for example a username on the header?
Thanks.
MAC
|
|
|
 |
Nicole
|
| Posted: 07/13/2002, 1:48 AM |
|
Mac,
add Label type field to the header and assign it a value in field before show event.
To lookup user login use CCgetuserLogin() function, to get "id" of logged in user use GetUserID() function. To Lookup user name use CCDLookUP function. E.g.:
CCDLookUp("user_name", "table_name", "user_id=" & CCGetUserID(), DB<connection_name>)
|
|
|
 |
jjtoubia
|
| Posted: 07/13/2002, 11:43 PM |
|
In PHP do this:
Add a before show event, custom code. In that code type:
global $Tpl;
$Tpl->SetVar("UserName", CCGetUserLogin());
In the HTML place {UserName} wherever you want the username to appear.
|
|
|
 |
|