Step 7 improvement issue 0000301:

o can attribute status <= current user
  o define mode adviser 
    => buttons disabled (gray on IE, not on FF)
    => truncated actions
    => display info mode adviser

git-svn-id: http://piwigo.org/svn/trunk@1085 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub 2006-03-16 22:58:16 +00:00
commit 9b521760af
34 changed files with 225 additions and 88 deletions

View file

@ -169,7 +169,7 @@ DELETE FROM '.FAVORITES_TABLE.'
}
case 'set_as_representative' :
{
if (is_admin() and isset($page['category']))
if (is_admin() and isset($page['category']) and !is_adviser())
{
$query = '
UPDATE '.CATEGORIES_TABLE.'
@ -189,7 +189,10 @@ UPDATE '.CATEGORIES_TABLE.'
}
case 'add_to_caddie' :
{
fill_caddie(array($page['image_id']));
if (!is_adviser())
{
fill_caddie(array($page['image_id']));
}
redirect($url_self);
break;
}