Sonia
|
| Posted: 06/24/2002, 11:06 AM |
|
Hi,
I am trying to add a custom welcome message at the top of my page like
Welcome User: "LoginName", Your access level is "AccessGroupID". This page is accessable when a user is successfully login.
Fields "LoginName" and "AccessGroupID" are in User's table. I am using ASP 3 and CCS 1.0, Could somebody please tell me how and where to put the code to get the above result...
thnx! Sonia
|
|
|
 |
Sonia
|
| Posted: 06/24/2002, 11:14 AM |
|
Oh some more details, my table name is Users and I know that there are functions available like CCDLookup OR CCGetUserID, but I don't know how to use them.
|
|
|
 |
Sonia
|
| Posted: 06/24/2002, 1:07 PM |
|
Could somebody help me please...............
|
|
|
 |
Enrico
|
| Posted: 06/24/2002, 1:13 PM |
|
Try this
Create a Label p.e. NOME_UTENTE on BeforeShow Event of NOME_UTENTE put this code
$dbl = new clsDBAUTO();
global $NOME_UTENTE;
if (CCGetUserID())
{
$nomeutente = CCDLookUp("SALONE", "AUTO_SALONE", "IDSALONE = " . CCGetUserID(), $dbl);
$NOME_UTENTE->SetValue($nomeutente);
Where :
clsDBAUTO is my connection,
SALONE is Field Name to show,
AUTO_SALONE is the table name,
IDSALONE is the key field.
I hope that is usefull for you, bye
|
|
|
 |
Nicole
|
| Posted: 06/26/2002, 2:21 AM |
|
Sonia,
Drag Label field from ToolBox window-> Forms tab to the top of the page. To assign it Welcome message create Before Show file event like:
ASP
<field_name>.Value = "Welcome User " & CCGetUserLogin() & ", your access level is: " & CCGetGroupID()
|
|
|
 |
Nicole
|
| Posted: 06/26/2002, 2:21 AM |
|
Sonia,
Drag Label field from ToolBox window-> Forms tab to the top of the page. To assign it Welcome message create Before Show file event like:
ASP
<field_name>.Value = "Welcome User " & CCGetUserLogin() & ", your access level is: " & CCGetGroupID()
|
|
|
 |
|