Changeset 29


Ignore:
Timestamp:
Jul 21, 2003, 10:51:47 PM (17 years ago)
Author:
z0rglub
Message:

template as user_template for displaying pictures in the template

Location:
trunk/admin
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/admin.php

    r26 r29  
    2424$tpl = array( 'menu_title', 'title_default', 'charset' );
    2525templatize_array( $tpl, 'lang', $handle );
     26$vtp->setGlobalVar( $handle, 'user_template', $user['template'] );
    2627//--------------------------------------- validating page and creation of title
    2728$page_valide = false;
  • trunk/admin/cat_list.php

    r21 r29  
    2626$vtp->setGlobalVar( $sub, 'cat_permission',  $lang['cat_permission'] );
    2727$vtp->setGlobalVar( $sub, 'cat_update',      $lang['cat_update'] );
     28$vtp->setGlobalVar( $sub, 'user_template',   $user['template'] );
    2829//---------------------------------------------------------------  rank updates
    2930if ( isset( $_GET['up'] ) && is_numeric( $_GET['up'] ) )
  • trunk/admin/cat_perm.php

    r21 r29  
    2222              'submit','menu_users','permuser_parent_forbidden' );
    2323templatize_array( $tpl, 'lang', $sub );
     24$vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
    2425//-------------------------------------------------------------- category infos
    2526if ( isset( $_GET['cat_id'] ) )
  • trunk/admin/comments.php

    r22 r29  
    140140$tpl = array( 'stats_last_days','delete','close','submit','open' );
    141141templatize_array( $tpl, 'lang', $sub );
     142$vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
    142143//--------------------------------------------------- number of days to display
    143144if ( isset( $_GET['last_days'] ) ) define( MAX_DAYS, $_GET['last_days'] );
  • trunk/admin/group_list.php

    r21 r29  
    2121              'group_confirm','yes','no','group_list_title' );
    2222templatize_array( $tpl, 'lang', $sub );
     23$vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
    2324//-------------------------------------------------------------- delete a group
    2425$error = array();
  • trunk/admin/group_perm.php

    r21 r29  
    2323              'adduser_info_back' );
    2424templatize_array( $tpl, 'lang', $sub );
     25$vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
    2526//--------------------------------------------------------------------- updates
    2627if ( isset( $_POST['submit'] ) )
  • trunk/admin/stats.php

    r24 r29  
    3939              'stats_visitors_graph_title');
    4040templatize_array( $tpl, 'lang', $sub );
     41$vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
    4142//--------------------------------------------------- number of days to display
    4243if ( isset( $_GET['last_days'] ) )
  • trunk/admin/thumbnail.php

    r26 r29  
    268268  'tn_stats_max','tn_stats_min','tn_stats_mean' );
    269269templatize_array( $tpl, 'lang', $sub );
     270$vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
    270271//----------------------------------------------------- miniaturization results
    271272if ( isset( $_GET['dir'] ) )
  • trunk/admin/update.php

    r26 r29  
    2020function insert_local_category( $cat_id )
    2121{
    22   global $conf, $page;
     22  global $conf, $page, $user;
    2323               
    2424  $site_id = 1;
     
    3232    $cat_directory.= '/'.$result['local_dir'];
    3333    // 1. display the category name to update
    34     $output = '<img src="./images/puce.gif" alt="&gt;" />';
     34    $src = '../template/'.$user['template'].'/admin/images/puce.gif';
     35    $output = '<img src="'.$src.'" alt="&gt;" />';
    3536    $output.= '<span style="font-weight:bold;">'.$result['name'][0].'</span>';
    3637    $output.= ' [ '.$result['last_dir'].' ]';
     
    371372function insert_remote_category( $xml_dir, $site_id, $id_uppercat, $level )
    372373{
    373   global $conf;
     374  global $conf,$user;
    374375
    375376  $output = '';
     
    383384    $categories[$i] = $name;
    384385
    385     $output.= '<img src="./images/puce.gif">';
     386    $src = '../template/'.$user['template'].'/admin/images/puce.gif';
     387    $output.= '<img src="'.$src.'" alt="&gt;" />';
    386388    $output.= '<span style="font-weight:bold;">'.$name.'</span>';
    387389    $output.= '<div class="retrait">';
     
    553555              'remote_site', 'update_part_research' );
    554556templatize_array( $tpl, 'lang', $sub );
     557$vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
    555558//-------------------------------------------- introduction : choices of update
    556559// Display choice if "update" var is not specified
  • trunk/admin/user_perm.php

    r21 r29  
    2323              'adduser_info_back' );
    2424templatize_array( $tpl, 'lang', $sub );
     25$vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
    2526//--------------------------------------------------------------------- updates
    2627if ( isset( $_POST['submit'] ) )
Note: See TracChangeset for help on using the changeset viewer.