Ignore:
Timestamp:
Feb 28, 2008, 3:41:48 AM (16 years ago)
Author:
rvelices
Message:
  • migrate many templates to smarty
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_options.php

    r2201 r2223  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     5// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    77// | file          : $Id$
     
    150150  );
    151151
    152 $page['section'] = isset($_GET['section']) ? $_GET['section'] : 'upload';
     152$page['section'] = isset($_GET['section']) ? $_GET['section'] : 'status';
    153153$base_url = PHPWG_ROOT_PATH.'admin.php?page=cat_options&section=';
    154154
    155 $template->assign_vars(
     155$template->assign(
    156156  array(
    157     'L_SUBMIT'=>l10n('submit'),
    158     'L_RESET'=>l10n('reset'),
    159 
    160157    'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=cat_options',
    161    
    162158    'F_ACTION'=>$base_url.$page['section']
    163159   )
     
    166162// TabSheet initialization
    167163$opt_link = $link_start.'cat_options&section=';
    168 $page['tabsheet'] = array
     164$tabsheet = array
    169165(
     166  'status' => array
     167   (
     168    'caption' => l10n('cat_security'),
     169    'url' => $opt_link.'status'
     170   ),
     171  'visible' => array
     172   (
     173    'caption' => l10n('lock'),
     174    'url' => $opt_link.'visible'
     175   ),
    170176  'upload' => array
    171177   (
     
    178184    'url' => $opt_link.'comments'
    179185   ),
    180   'visible' => array
    181    (
    182     'caption' => l10n('lock'),
    183     'url' => $opt_link.'visible'
    184    ),
    185   'status' => array
    186    (
    187     'caption' => l10n('cat_security'),
    188     'url' => $opt_link.'status'
    189    )
    190186);
    191187
    192188if ($conf['allow_random_representative'])
    193189{
    194   $page['tabsheet']['representative'] =
     190  $tabsheet['representative'] =
    195191    array
    196192    (
     
    199195    );
    200196}
    201 $page['tabsheet'][$page['section']]['selected'] = true;
     197$tabsheet[$page['section']]['selected'] = true;
    202198
    203199// Assign tabsheet to template
    204 template_assign_tabsheet();
     200$template->assign(
     201    array(
     202      'tabsheet' => $tabsheet,
     203      'TABSHEET_TITLE' => $tabsheet[$page['section']]['caption']
     204    )
     205  );
    205206
    206207// +-----------------------------------------------------------------------+
     
    237238    AND site_id = 1
    238239;';
    239     $template->assign_vars(
     240    $template->assign(
    240241      array(
    241242        'L_SECTION' => l10n('cat_upload_title'),
     
    258259  WHERE commentable = \'false\'
    259260;';
    260     $template->assign_vars(
     261    $template->assign(
    261262      array(
    262263        'L_SECTION' => l10n('cat_comments_title'),
     
    279280  WHERE visible = \'false\'
    280281;';
    281     $template->assign_vars(
     282    $template->assign(
    282283      array(
    283284        'L_SECTION' => l10n('cat_lock_title'),
     
    300301  WHERE status = \'private\'
    301302;';
    302     $template->assign_vars(
     303    $template->assign(
    303304      array(
    304305        'L_SECTION' => l10n('cat_status_title'),
     
    322323    AND representative_picture_id IS NULL
    323324;';
    324     $template->assign_vars(
     325    $template->assign(
    325326      array(
    326327        'L_SECTION' => l10n('Representative'),
Note: See TracChangeset for help on using the changeset viewer.