Changeset 13013 for trunk/admin.php

Show
Ignore:
Timestamp:
02/02/12 00:03:35 (16 months ago)
Author:
plg
Message:

feature 2561: redesign on album administration screen.

* only one form on the screen and several tabs

* simpler URL pattern : page=album-123-properties / page=album-123-sort_order

/ page=album-123-permissions

* action to associate all photos of an album to another (new) virtual album

was removed. This can be easily done with the new Batch Manager

* notification by email on an album still has to be moved on a new dedicated tab

* action icons (jump to album, manage photos, manage sub-albums, delete album...)

replaced by plain text links

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/admin.php

    r12930 r13013  
    115115  $_GET['page'] = 'plugin'; 
    116116  $_GET['section'] = $matches[1].'/admin.php'; 
     117  if (isset($matches[2])) 
     118  { 
     119    $_GET['tab'] = $matches[2]; 
     120  } 
     121} 
     122 
     123// ?page=album-134-properties is an clean alias of 
     124// ?page=album&cat_id=134&tab=properties 
     125if (isset($_GET['page']) and preg_match('/^album-(\d+)(?:-(.*))?$/', $_GET['page'], $matches)) 
     126{ 
     127  $_GET['page'] = 'album'; 
     128  $_GET['cat_id'] = $matches[1]; 
    117129  if (isset($matches[2])) 
    118130  {