Forums

manager approval page

elyash7 29 Sep, 2011
how can i make a manager approval page?
when user submit data...
it will go to the manager page to be approve...
can i use cf or cc?
or any other extension?
or any suggestion..plz
GreyHead 30 Sep, 2011
Hi elyash7,

You can do it with ChronoForms and ChronoConnectivity.

In the form table include a 'status' column and set it to 'unapproved' when the form is first saved.

Use ChronoConnectivity to show managers a list of 'unapproved' posts and add a 'View Details' link to a form that shows the full details and had 'approve' and 'disapprove' submit buttons on it. When this form is saved update the status according to the Submit button used.

Bob
elyash7 30 Sep, 2011
hye bob,

thank you for the idea.
Just wanna ask when the manager view details it link to chronoconnectivity and view the unapproved request. but for the manager to submit approve or unapproved does it relate with {edit_record}.
can u brief more details on it?

Thank you for reply. Really appreciate it.😉
GreyHead 02 Oct, 2011
Hi elyash7,

I wouldn't use {edit_record} - I'd just build a link directly to an approval form but the idea is the same.

Bob
elyash7 03 Oct, 2011
hi bob,

when we use JFactory::getUser it will call the login user....
when i want to call data from other user in the manager page....
does i need to user session? it will pop out current login user in the name field...

example;
login into manager->view details->status for approval

in the status for approval...i want this to pop up..

Name : xxx(Requested user name will pop up not the login person) <-- for this i had use
<?php
$user = JFactory::getUser();
$Name = $user->name;
?>
and recall it by
<?php echo $Name ?>

Age : XXX
Status : Accept / Deny

how can i recall it...the name of requested person and other field to be 'trigger'.
GreyHead 03 Oct, 2011
Hi elyash7,

You can also use the code with a User ID e.g. $user_xx =& JFactory::getUser(99);

So if you know the User ID you can get all of their info with this method.

Bob
elyash7 03 Oct, 2011
Thank you bob.

But in the code u given
$user_xx =& JFactory::getUser(99);

how can i manage to recall another data?
GreyHead 03 Oct, 2011
Hi elyash7,

The '99' is the user id here - it could be any number. You presumably have got it from the Approval link in some way.

Usually you save the record data including the User ID and a unique random string identifier in a database table; add the unique identifer to the URL you show or send to the Manager; then use it to recover the saved record from the database.

Bob
elyash7 03 Oct, 2011
hye bob,

what u said before i get it until you mention about " add the unique identifer to the URL you show or send to the Manager......then use it to recover the saved record from the database."
it quiet seem i'm confuse here....

sory,your word might be complicated as im not quite good in english.

Thank you for your help.
GreyHead 03 Oct, 2011
Hi elyash7 ,

Please sit down with a pencil and paper and work out the flow of forms and links until you have it clear.

Bob
This topic is locked and no more replies can be posted.