Changeset 393 for trunk/profile.php


Ignore:
Timestamp:
03/20/04 01:52:37 (15 years ago)
Author:
gweltas
Message:
  • Template migration
  • Admin Control Panel migration
  • Language migration
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/profile.php

    r369 r393  
    128128} 
    129129//----------------------------------------------------- template initialization 
    130 // 
    131 // Start output of page 
    132 // 
     130$expand = ($user['expand']=='true')?'EXPAND_TREE_YES':'EXPAND_TREE_NO'; 
     131$nb_comments = ($user['show_nb_comments']=='true')?'NB_COMMENTS_YES':'NB_COMMENTS_NO'; 
     132 
    133133$title = $lang['customize_page_title']; 
    134134include(PHPWG_ROOT_PATH.'include/page_header.php'); 
    135135 
    136136$template->set_filenames(array('profile'=>'profile.tpl')); 
    137 initialize_template(); 
    138137 
    139138$template->assign_vars(array( 
    140   'L_TITLE' => $lang['customize_title'], 
     139  'LANG_SELECT'=>language_select($user['language'], 'language'), 
     140  'NB_IMAGE_LINE'=>$user['nb_image_line'], 
     141  'NB_ROW_PAGE'=>$user['nb_line_page'], 
     142  'STYLE_SELECT'=>style_select($user['template'], 'template'), 
     143  'SHORT_PERIOD'=>$user['short_period'], 
     144  'LONG_PERIOD'=>$user['long_period'], 
     145   
     146  $expand=>'checked="checked"', 
     147  $nb_comments=>'checked="checked"', 
     148   
     149   'L_TITLE' => $lang['customize_title'], 
    141150  'L_PASSWORD' => $lang['password'], 
    142151  'L_NEW' =>  $lang['new'],  
    143152  'L_CONFIRM' =>  $lang['reg_confirm'],  
    144   'L_SUBMIT' =>  $lang['submit'],  
    145153  'L_COOKIE' =>  $lang['create_cookie'], 
    146          
    147   'F_ACTION' => add_session_id( './profile.php' ), 
    148  
    149   'U_RETURN' => add_session_id('./category.php?'.$_SERVER['QUERY_STRING']) 
     154  'L_CONFIRM'=>$lang['conf_confirmation'], 
     155  'L_LANG_SELECT'=>$lang['customize_language'], 
     156  'L_NB_IMAGE_LINE'=>$lang['customize_nb_image_per_row'], 
     157  'L_NB_ROW_PAGE'=>$lang['customize_nb_row_per_page'], 
     158  'L_STYLE_SELECT'=>$lang['customize_theme'], 
     159  'L_SHORT_PERIOD'=>$lang['customize_short_period'], 
     160  'L_LONG_PERIOD'=>$lang['customize_long_period'], 
     161  'L_EXPAND_TREE'=>$lang['customize_expand'], 
     162  'L_NB_COMMENTS'=>$lang['customize_show_nb_comments'], 
     163  'L_YES'=>$lang['yes'], 
     164  'L_NO'=>$lang['no'], 
     165  'L_SUBMIT'=>$lang['submit'], 
     166   
     167  'F_ACTION'=>add_session_id(PHPWG_ROOT_PATH.'profile.php'), 
     168   
     169  'U_RETURN' => add_session_id(PHPWG_ROOT_PATH.'category.php?'.$_SERVER['QUERY_STRING']) 
    150170  )); 
    151171         
     
    160180} 
    161181 
    162 $template->assign_block_vars('select',array( 
    163   'F_LABEL'=>$lang['customize_nb_image_per_row'], 
    164   'F_NAME'=>'nb_image_line', 
    165   'F_OPTIONS'=>make_jumpbox($conf['nb_image_row'], $user['nb_image_line']) 
    166   )); 
    167  
    168 $template->assign_block_vars('select',array( 
    169   'F_LABEL'=>$lang['customize_nb_row_per_page'], 
    170   'F_NAME'=>'nb_line_page', 
    171   'F_OPTIONS'=>make_jumpbox($conf['nb_row_page'], $user['nb_line_page']) 
    172   )); 
    173  
    174 $template->assign_block_vars('select',array( 
    175   'F_LABEL'=>$lang['customize_template'], 
    176   'F_NAME'=>'template', 
    177   'F_OPTIONS'=>make_jumpbox(get_dirs( './template' ), $user['template']) 
    178   )); 
    179  
    180 $template->assign_block_vars('select',array( 
    181   'F_LABEL'=>$lang['customize_language'], 
    182   'F_NAME'=>'language', 
    183   'F_OPTIONS'=>make_jumpbox($lang['lang'], $user['language'], true) 
    184   )); 
    185  
    186 $template->assign_block_vars('text',array( 
    187   'F_LABEL'=>$lang['customize_short_period'], 
    188   'F_NAME'=>'short_period', 
    189   'F_VALUE'=>$user['short_period'] 
    190   )); 
    191  
    192 $template->assign_block_vars('text',array( 
    193   'F_LABEL'=>$lang['customize_long_period'], 
    194   'F_NAME'=>'long_period', 
    195   'F_VALUE'=>$user['long_period'] 
    196   )); 
    197  
    198182$template->assign_block_vars('text',array( 
    199183  'F_LABEL'=>$lang['maxwidth'], 
     
    214198  )); 
    215199 
    216 $template->assign_block_vars('radio',array( 
    217   'F_LABEL'=>$lang['customize_expand'], 
    218   'F_OPTIONS'=>make_radio('expand', array(true=>$lang['yes'], false=>$lang['no']), $user['expand'], true) 
    219   )); 
    220  
    221 $template->assign_block_vars('radio',array( 
    222   'F_LABEL'=>$lang['customize_show_nb_comments'], 
    223   'F_OPTIONS'=>make_radio('show_nb_comments', array(true=>$lang['yes'], false=>$lang['no']), $user['show_nb_comments'], true) 
    224   )); 
    225  
    226200//----------------------------------------------------------- html code display 
    227201$template->pparse('profile'); 
Note: See TracChangeset for help on using the changeset viewer.