Changeset 13077 for trunk/admin.php

Show
Ignore:
Timestamp:
02/10/12 11:52:07 (16 months ago)
Author:
plg
Message:

feature 2564: redesign on photo administration screen.

* one screen with several tabs (for now: properties + coi)

* double select boxes for album associations and representation have been

converted to simple multiple select boxes with jQuery Chosen

* more details about the photo in an introduction text

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/admin.php

    r13025 r13077  
    127127  $_GET['page'] = 'album'; 
    128128  $_GET['cat_id'] = $matches[1]; 
     129  if (isset($matches[2])) 
     130  { 
     131    $_GET['tab'] = $matches[2]; 
     132  } 
     133} 
     134 
     135// ?page=photo-1234-properties is an clean alias of 
     136// ?page=photo&image_id=1234&tab=properties 
     137if (isset($_GET['page']) and preg_match('/^photo-(\d+)(?:-(.*))?$/', $_GET['page'], $matches)) 
     138{ 
     139  $_GET['page'] = 'photo'; 
     140  $_GET['image_id'] = $matches[1]; 
    129141  if (isset($matches[2])) 
    130142  { 
     
    237249        'cat_move',     // ?only POST 
    238250        'cat_options',  // ?only POST; public/private; lock/unlock 
     251        'photo', 
    239252        'picture_modify', // ?only POST; associate/dissociate 
    240253        'user_perm',