Changeset 375 for trunk


Ignore:
Timestamp:
Feb 26, 2004, 7:33:45 PM (20 years ago)
Author:
gweltas
Message:

New default template - User side

Location:
trunk
Files:
4 added
19 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin.php

    r364 r375  
    3636$tpl = array( 'title_default','charset','install_warning' );
    3737templatize_array( $tpl, 'lang', $handle );
     38$vtp->setGlobalVar( $handle, 'style', './template/'.$user['template'].'/'.$user['template'].'-admin.css');
    3839//-------------------------------------------------- install.php still exists ?
    3940if ( is_file( './install.php' ) )
  • trunk/category.php

    r369 r375  
    4949  check_restrictions( $page['cat'] );
    5050}
     51
    5152//-------------------------------------------------------------- initialization
     53function display_category( $category, $indent )
     54{
     55  global $user,$lang,$template, $handle;
     56 
     57  $style='';
     58  $url = './category.php?cat='.$category['id'];
     59  $url.= '&expand='.$category['expand_string'];
     60  $name = $category['name'];
     61  if ( $name == '' ) $name = str_replace( '_', ' ', $category['dir'] );
     62  if ( $category['id_uppercat'] == '' )
     63  {
     64    $style = 'font-weight:bold;';
     65  }
     66 
     67  $template->assign_block_vars('category', array(
     68    'LINK_NAME' => $name,
     69        'INDENT' => $indent,
     70        'NB_SUBCATS'=>$category['nb_sub_categories'],
     71        'TOTAL_CAT'=>$category['nb_images'],
     72        'CAT_ICON'=>get_icon($category['date_last']),
     73       
     74        'T_NAME'=>$style,
     75    'U_LINK' => add_session_id($url)));
     76
     77  if ( $user['expand'] or $category['nb_sub_categories'] == 0 )
     78  {
     79        $template->assign_block_vars('category.bulletnolink', array('BULLET_IMAGE' =>  $user['lien_collapsed']));
     80  }
     81  else
     82  {
     83        $url = './category.php';
     84        if (isset($page['cat']))
     85        {
     86          $url .='?cat='.$page['cat'];
     87      $url.= '&expand='.$category['expand_string'];
     88        }
     89        else if ($category['expand_string']<>'')
     90        {
     91          $url.= '?expand='.$category['expand_string'];
     92        }
     93       
     94        if ( $category['expanded'] )
     95    {
     96      $img=$user['lien_expanded'];
     97    }
     98    else
     99    {
     100      $img=$user['lien_collapsed'];
     101    }
     102       
     103    $template->assign_block_vars('category.bulletlink', array(
     104      'BULLET_IMAGE' =>  $img,
     105          'U_BULLET_LINK'=>  add_session_id($url)               
     106        ));
     107  }
     108
     109  // recursive call
     110  if ( $category['expanded'] )
     111  {
     112    foreach ( $category['subcats'] as $subcat ) {
     113          $template->assign_block_vars('category.subcat', array());
     114      display_category( $subcat, $indent.str_repeat( '&nbsp', 2 ));
     115    }
     116  }
     117}
     118
    52119// detection of the start picture to display
    53120if ( !isset( $_GET['start'] )
     
    119186
    120187$template->set_filenames( array('category'=>'category.tpl') );
    121 initialize_template();
    122188
    123189//-------------------------------------------------------------- category title
     
    127193  if ( is_numeric( $page['cat'] ) )
    128194  {
    129     $cat_title = get_cat_display_name( $page['cat_name'], '<br />',
     195    $cat_title = get_cat_display_name( $page['cat_name'], ' &gt; ',
    130196                                    'font-style:italic;' );
    131197  }
     
    145211  'TITLE' => $cat_title,
    146212  'USERNAME' => $user['username'],
    147  
    148   'S_TOP'=>$conf['top_number'],
    149   'S_SHORT_PERIOD'=>$user['short_period'],
    150   'S_LONG_PERIOD'=>$user['long_period'],
    151   'S_WEBMASTER'=>$conf['webmaster'],
    152   'S_MAIL'=>$conf['mail_webmaster'],
     213  'TOP_VISITED'=>$conf['top_number'],
    153214
    154215  'L_CATEGORIES' => $lang['categories'],
     
    168229  'L_COMMENT' => $lang['comments'],
    169230  'L_NB_IMG' => $lang['nb_image_category'],
    170   'L_USER' => $lang['connected_user'],
    171   'L_RECENT_IMAGE' => $lang['recent_image'],
    172   'L_DAYS' => $lang['days'],
    173   'L_SEND_MAIL' => $lang['send_mail'],
    174   'L_TITLE_MAIL' => $lang['title_send_mail'],
     231  'L_IDENTIFY' => $lang['ident_title'],
     232  'L_SUBMIT' => $lang['menu_login'],
     233  'L_USERNAME' => $lang['login'],
     234  'L_PASSWORD' => $lang['password'],
     235  'L_HELLO' => $lang['hello'],
     236  'L_LOGOUT' => $lang['logout'],
     237  'L_ADMIN' => $lang['admin'],
     238  'L_ADMIN_HINT' => $lang['hint_admin'],
     239  'L_PROFILE' => $lang['customize'],
     240  'L_PROFILE_HINT' => $lang['hint_customize'],
     241 
     242  'F_IDENTIFY' => add_session_id( PHPWG_ROOT_PATH.'identification.php' ),
    175243 
    176244  'T_COLLAPSED' => $user['lien_collapsed'],
     
    178246  'T_LONG'=>get_icon( time() - ( $user['short_period'] * 24 * 60 * 60 + 1 ) ),
    179247
    180   'U_HOME' => add_session_id( 'category.php' ),
    181   'U_FAVORITE' => add_session_id( './category.php?cat=fav&amp;expand='.$page['expand'] ),
    182   'U_MOST_VISITED'=>add_session_id( './category.php?cat=most_visited&amp;expand='.$page['expand'] ),
    183   'U_RECENT'=>add_session_id( './category.php?cat=recent&amp;expand='.$page['expand'] )
     248  'U_HOME' => add_session_id( PHPWG_ROOT_PATH.'category.php' ),
     249  'U_FAVORITE' => add_session_id( PHPWG_ROOT_PATH.'category.php?cat=fav&amp;expand='.$page['expand'] ),
     250  'U_MOST_VISITED'=>add_session_id( PHPWG_ROOT_PATH.'category.php?cat=most_visited&amp;expand='.$page['expand'] ),
     251  'U_RECENT'=>add_session_id( PHPWG_ROOT_PATH.'category.php?cat=recent&amp;expand='.$page['expand'] ),
     252  'U_LOGOUT' => add_session_id( PHPWG_ROOT_PATH.'category.php?act=logout' ),
     253  'U_ADMIN'=>add_session_id( PHPWG_ROOT_PATH.'admin.php' ),
     254  'U_PROFILE'=>add_session_id(PHPWG_ROOT_PATH.'profile.php?'.str_replace( '&', '&amp;', $_SERVER['QUERY_STRING'] ))
    184255  )
    185256);
     
    202273}
    203274//--------------------------------------------------------------------- summary
    204 $sum_title = '';
    205 $sum_name='';
    206 $sum_url = '';
     275
    207276if ( !$user['is_the_guest'] )
    208277{
    209   $sum_name=replace_space($lang['logout']);
    210   $sum_url = 'category.php?act=logout';
     278  $template->assign_block_vars('logout',array());
     279  // administration link
     280  if ( $user['status'] == 'admin' )
     281  {
     282    $template->assign_block_vars('logout.admin', array());
     283  }
    211284}
    212285else
    213286{
    214   $sum_title =  $lang['hint_login'];
    215   $sum_name=replace_space( $lang['menu_login']);
    216   $sum_url = 'identification.php';
    217 }
    218 $template->assign_block_vars('summary', array(
    219   'TITLE'=>$sum_title,
    220   'NAME'=>$sum_name,
    221   'U_SUMMARY'=>add_session_id( $sum_url ),
    222   )
    223 );
    224 
    225 // customization link
    226 if ( !$user['is_the_guest'] )
    227 {
    228   $template->assign_block_vars('summary', array(
    229   'TITLE'=>$lang['hint_customize'],
    230   'NAME'=>$lang['customize'],
    231   'U_SUMMARY'=>add_session_id('profile.php?'.str_replace( '&', '&amp;', $_SERVER['QUERY_STRING'] )),
    232   ));
     287  $template->assign_block_vars('login',array());
    233288}
    234289
     
    253308'U_SUMMARY'=>add_session_id( 'about.php?'.str_replace( '&', '&amp;', $_SERVER['QUERY_STRING'] ) )
    254309));
    255 
    256 // administration link
    257 if ( $user['status'] == 'admin' )
    258 {
    259   $template->assign_block_vars('summary', array(
    260     'TITLE'=>$lang['hint_admin'],
    261     'NAME'=>$lang['admin'],
    262     'U_SUMMARY'=>add_session_id( 'admin.php' )
    263     ));
    264 }
    265310
    266311//------------------------------------------------------------------ thumbnails
  • trunk/identification.php

    r369 r375  
    3939  $query.= " WHERE username = '".$_POST['username']."';";
    4040  $row = mysql_fetch_array( mysql_query( $query ) );
    41   if( $row['password'] == md5( $_POST['pass'] ) )
     41  if( $row['password'] == md5( $_POST['password'] ) )
    4242  {
    4343    $session_id = session_create( $_POST['username'] );
  • trunk/include/common.inc.php

    r370 r375  
    120120}
    121121
    122 
     122define( 'PREFIX_INCLUDE', '' );// en attendant la migration complète
    123123include(PHPWG_ROOT_PATH . 'include/constants.php');
    124124include(PHPWG_ROOT_PATH . 'include/config.inc.php');
  • trunk/include/constants.php

    r362 r375  
    2626// +-----------------------------------------------------------------------+
    2727
    28 define( 'PREFIX_INCLUDE', '' );
    29  
    3028// Debug Level
    3129define('DEBUG', 1); // Debugging on
     
    3836define('CRITICAL_ERROR', 204);
    3937
    40 // xml tags
    41 define( 'ATT_REG', '\w+' );
    42 define( 'VAL_REG', '[^"]*' );
    43  
    4438// Table names
    4539define('CATEGORIES_TABLE', $table_prefix.'categories');
  • trunk/include/functions.inc.php

    r364 r375  
    2525// | USA.                                                                  |
    2626// +-----------------------------------------------------------------------+
    27 include( PREFIX_INCLUDE.'./include/functions_user.inc.php' );
    28 include( PREFIX_INCLUDE.'./include/functions_session.inc.php' );
    29 include( PREFIX_INCLUDE.'./include/functions_category.inc.php' );
    30 include( PREFIX_INCLUDE.'./include/functions_xml.inc.php' );
    31 include( PREFIX_INCLUDE.'./include/functions_group.inc.php' );
     27include( PHPWG_ROOT_PATH .'include/functions_user.inc.php' );
     28include( PHPWG_ROOT_PATH .'include/functions_session.inc.php' );
     29include( PHPWG_ROOT_PATH .'include/functions_category.inc.php' );
     30include( PHPWG_ROOT_PATH .'include/functions_xml.inc.php' );
     31include( PHPWG_ROOT_PATH .'include/functions_group.inc.php' );
    3232
    3333//----------------------------------------------------------- generic functions
  • trunk/include/functions_xml.inc.php

    r362 r375  
    2525// | USA.                                                                  |
    2626// +-----------------------------------------------------------------------+
     27// xml tags
     28define( 'ATT_REG', '\w+' );
     29define( 'VAL_REG', '[^"]*' );
     30
    2731//------------------------------------------------------------------- functions
    2832// getContent returns the content of a tag
  • trunk/include/page_tail.php

    r362 r375  
    3232
    3333$template->assign_vars(array(
    34         'L_GEN_TIME' => $lang['generation_time'],
    35         'S_TIME' =>  $time,
    36         'S_VERSION' => $conf['version'],
    37         'U_SITE' => add_session_id( $conf['site_url'] )
    38         )
    39         );
     34  'TIME' =>  $time,
     35  'VERSION' => $conf['version'],
     36  'WEBMASTER'=>$conf['webmaster'],
     37  'MAIL'=>$conf['mail_webmaster'],
     38 
     39  'L_GEN_TIME' => $lang['generation_time'],
     40  'L_SEND_MAIL' => $lang['send_mail'],
     41  'L_TITLE_MAIL' => $lang['title_send_mail'],
     42       
     43  'U_SITE' => add_session_id( $conf['site_url'] )
     44  ));
    4045       
    4146if (DEBUG)
  • trunk/include/user.inc.php

    r367 r375  
    130130$user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page'];
    131131init_userprefs($user);
    132 $user['lien_expanded']='./template/'.$user['template'].'/theme/expanded..gif';
     132$user['lien_expanded']='./template/'.$user['template'].'/theme/expanded.gif';
    133133$user['lien_collapsed']='./template/'.$user['template'].'/theme/collapsed.gif';
    134134?>
  • trunk/language/en_UK.iso-8859-1/common.lang.php

    r369 r375  
    4646$lang['login'] = 'login';
    4747$lang['hint_login'] = 'identification enables site\'s appareance customization';
    48 $lang['logout'] = 'logout';
     48$lang['logout'] = 'Logout';
    4949$lang['customize'] = 'customize';
    5050$lang['hint_customize'] = 'customize the appareance of the gallery';
     
    5555$lang['about'] = 'about';
    5656$lang['hint_about'] = 'more informations on PhpWebGallery...';
    57 $lang['admin'] = 'admin';
     57$lang['admin'] = 'Administration';
    5858$lang['hint_admin'] = 'available for administrators only';
    59 $lang['no_category'] = 'No category selected<br />please select it in the menu';
     59$lang['no_category'] = 'Home';
    6060$lang['page_number'] = 'page number';
    6161$lang['previous_page'] = 'Previous';
    6262$lang['next_page'] = 'Next';
    6363$lang['nb_image_category'] = 'number of images in this category';
    64 $lang['recent_image'] = 'image within the';
     64$lang['recent_image'] = 'Image within the';
    6565$lang['days'] = 'days';
    66 $lang['send_mail'] = 'Any comment? Send me an e-mail';
     66$lang['send_mail'] = 'Contact the webmaster';
    6767$lang['title_send_mail'] = 'A comment on your site';
    6868$lang['sub-cat'] = 'subcategories';
     
    234234$lang['menu_login'] = 'login';
    235235$lang['update_wrong_dirname'] = 'The name of directories and files must be composed of letters, figures, "-", "_" or "."';
    236 
     236$lang['hello'] = 'Hello';
    237237?>
  • trunk/picture.php

    r369 r375  
    204204
    205205$title_img = $picture['current']['name'];
     206$title_nb = '';
    206207if (is_numeric( $page['cat'] ))
    207208{
    208   $title_img = get_cat_display_name( $page['cat_name'], " - ","font-style:italic;" );
     209  $title_img = replace_space(get_cat_display_name( $page['cat_name'], " &gt; ","font-style:italic;" ));
    209210  $n = $page['num'] + 1;
    210   $title_img = replace_space( $title_img." - " ).$n.'/';
    211   $title_img.= $page['cat_nb_images']."<br />";
    212   $title_img.= $picture['current']['name'];
     211  $title_nb = "Photo".' '.$n.'/';
     212  $title_nb.= $page['cat_nb_images'];
     213  //$title_img.= $picture['current']['name'];
    213214}
    214215else if ( $page['cat'] == 'search' )
     
    238239
    239240$template->assign_vars(array(
    240   'TITLE' => $title_img,
     241  'CATEGORY' => $title_img,
     242  'PHOTO' => $title_nb,
     243  'TITLE' => $picture['current']['name'],
    241244  'PREV_TITLE_IMG' => $picture['prev']['name'],
    242245  'NEXT_TITLE_IMG' => $picture['next']['name'],
  • trunk/template/default/admin.vtp

    r223 r375  
    1 <html>
    2   <head>
     1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
     3<head>
     4<meta http-equiv="Content-Type" content="text/html; charset={#charset}" />
     5<meta http-equiv="Content-Style-Type" content="text/css" />
    36    <title>{#title_default}</title>
    4     <style>
    5       a {
    6         text-decoration:none;
    7         color:#006699;
    8       }
    9       a:hover {
    10         text-decoration:underline;
    11       }
    12       body,table,input,form,select,textarea {
    13         font-family:arial,verdana,sans-serif;
    14         font-size:12px;
    15       }
    16       .miniature {
    17         border:solid 1px black;
    18       }
    19       body {
    20         background-color:#E5E5E5;
    21       }
    22       .titretable1 {
    23         color:black;
    24         background-color:#D3DCE3;
    25         text-align:center;
    26         border:2px solid #006699;
    27         font-weight:bold;
    28         border-bottom:0px;
    29       }
    30       .grostitre {
    31         text-align:center;
    32         margin:10px 50px 10px 50px;
    33         font-size:20px;
    34         width:300px;
    35       }
    36       .plan {
    37         margin:10px 10px 10px 2px;
    38         white-space:nowrap;
    39       }
    40       .table1 {
    41         border-collapse:collapse;
    42         background-color:#FFFFFF;
    43       }
    44       .contenucellule {
    45         background-color:#EEEEEE;
    46         border:2px solid #006699;
    47       }
    48       .style1 {
    49         margin-top:20px;
    50       }
    51       th {
    52         font-weight:bold;
    53         background-color:#D3DCE3;
    54       }
    55       td.row1 {
    56         background-color:#E6E4E4;
    57       }
    58       td.row2,td.throw2 {
    59         background-color:#E8E8E8;
    60       }
    61       td.throw2 {
    62         text-align:center;
    63         font-weight:bold;
    64       }
    65       td.row3 {
    66         background-color:#eeeeee;
    67       }
    68       td.row4 {
    69         background-color:#cccccc;
    70       }
    71       .summary {
    72         text-align:center;
    73         font-weight:bold;
    74       }
    75       .retrait {
    76         margin:10px;
    77         margin-left:30px;
    78         margin-top:2px;
    79       }
    80       input,textarea {
    81         border-width:1;
    82         border-color:#000000;
    83         background:#ffffff;
    84         color: #000000;
    85       }
    86       .erreur {
    87         color:red;
    88         text-align:center;
    89       }
    90       .errors {
    91         text-align:left;
    92         margin:25px;
    93         background-color:#ffe1e1;
    94         border:1px solid red;
    95         color:black;
    96       }
    97       .errors_title {
    98         margin:5px;
    99         font-weight:bold;
    100         font-size:120%;
    101         text-align:center;
    102         color:red;
    103       }
    104       .info {
    105         color:darkblue;
    106         text-align:center;
    107       }
    108       div.key {
    109         margin-left : 10px;
    110       }
    111       td.choice {
    112         text-align : center;
    113       }
    114       div.install_warning {
    115         text-align:center;
    116         color:red;
    117         margin:20px;
    118         font-weight:bold;
    119       }
    120 <!-- comments CSS style -->
    121       .commentsAuthor,.commentsTitle,.commentsInfos,.commentsContent,.commentsNavigationBar {
    122         color:black;
    123         font-family:arial,sans-Serif;
    124         font-size:12px;
    125       }
    126       .commentsTitle,.commentsAuthor {
    127         text-align:center;
    128         font-weight:bold;
    129       }
    130       .commentsInfos {
    131         text-align:right;
    132         margin:3px 3px 3px 10px;
    133         font-size:11px;
    134       }
    135       .commentsContent {
    136         margin:10px;
    137       }
    138       .commentsTitle {
    139         margin-top:15px;
    140       }
    141       .commentsAuthor {
    142         margin:5px;
    143       }
    144       .commentsNavigationBar {
    145         margin:10px;
    146       }
    147       .tableComment {
    148         width:100%;
    149         border:2px solid #006699;
    150         margin:10px;
    151       }
    152       .cellAuthor {
    153         border-right:1px solid #006699;
    154         width:100px;
    155       }
    156       .cellInfo {
    157         border-bottom:1px solid #006699;
    158       }
    159       .imgLink {
    160         border:1px solid black;
    161       }
    162     </style>
     7        <link rel="stylesheet" href="{#style}" type="text/css" />
    1638    <script language="javascript">
    1649      function SelectAll( formulaire )
     
    19035      }
    19136    </script>
    192     <meta http-equiv="Content-Type" content="text/html; charset={#charset}">
     37
    19338  </head>
    19439  <body>
  • trunk/template/default/category.tpl

    r364 r375  
     1<div align="center" style="padding:10px;"><img src="template/default/images/logo.jpg" width="360" height="100">
     2</div>
    13<table style="width:100%;">
    24  <tr>
    3         <td valign="top" style="width:1%;padding:10px;">
    4           {T_START}100%{T_BEGIN}
     5        <td valign="top" style="padding:10px;width:1%;">
     6        <div class="table1">
    57                <div class="titreMenu">
    68                  <a href="{U_HOME}">{L_CATEGORIES}</a>
     
    1517                                <img src="{category.bulletnolink.BULLET_IMAGE}" style="border:none;" alt="" />
    1618                        <!-- END bulletnolink -->
    17                         &nbsp;<a href="{category.U_LINK}"><span title='{L_HINT_CATEGORY}' style="{category.T_NAME}">{category.LINK_NAME}</span>
     19                        &nbsp;<a href="{category.U_LINK}"><span title='{L_HINT_CATEGORY}' style="{category.T_NAME}">{category.LINK_NAME}</span></a>
    1820                        &nbsp;<span class="menuInfoCat">[
    1921                        <!-- BEGIN subcat -->
    2022                        <span title="{category.NB_SUBCATS} {L_SUBCAT}">{category.NB_SUBCATS}</span>&nbsp;-
    2123                        <!-- END subcat -->
    22                         <span title="{category.TOTAL_CAT} {L_IMG_AVAILABLE}">{category.TOTAL_CAT}</span>&nbsp;]</span></a>{category.CAT_ICON}<br />
     24                        <span title="{category.TOTAL_CAT} {L_IMG_AVAILABLE}">{category.TOTAL_CAT}</span>&nbsp;]</span>{category.CAT_ICON}<br />
    2325                  <!-- END category -->
    2426
     
    2830                  <!-- END favorites -->
    2931                  <br />&nbsp;<img src="{T_COLLAPSED}" alt='' />&nbsp;<span style="font-weight:bold;">{L_STATS}</span>
    30                   <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="{T_COLLAPSED}" alt='' />&nbsp;<a href="{U_MOST_VISITED}"><span title="{L_MOST_VISITED_HINT}" style="font-weight:bold;">{S_TOP}&nbsp;{L_MOST_VISITED}</span></a>
     32                  <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="{T_COLLAPSED}" alt='' />&nbsp;<a href="{U_MOST_VISITED}"><span title="{L_MOST_VISITED_HINT}" style="font-weight:bold;">{TOP_VISITED}&nbsp;{L_MOST_VISITED}</span></a>
    3133                  <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="{T_COLLAPSED}" alt='' />&nbsp;<a href="{U_RECENT}"><span title="{L_RECENT_HINT}" style="font-weight:bold;">{L_RECENT}</span></a> {T_SHORT}
    3234                </div>
    33           {T_END}
    34           <div style="margin-bottom:5px;">&nbsp;</div>
    35           {T_START}100%{T_BEGIN}
    3635                <div class="titreMenu">{L_SUMMARY}</div>
    3736                <div class="menu">
     
    4342                  <!-- END upload -->
    4443                </div>
    45           {T_END}
     44                <div class="titreMenu">{L_IDENTIFY}</div>
     45                 <div class="menu">
     46                 <!-- BEGIN login -->
     47                <form method="post" action="{F_IDENTIFY}">
     48                <input type="hidden" name="redirect" value="{U_REDIRECT}">
     49                {L_USERNAME}<br />
     50                <input type="text" name="username" size="15" value="" /><br />
     51                {L_PASSWORD}<br />
     52                <input type="password" name="password" size="15"><br /><br />
     53                <input type="submit" name="login" value="{L_SUBMIT}" class="bouton" />
     54                </form>
     55                <!-- END login -->
     56                <!-- BEGIN logout -->
     57                <p>{L_HELLO}&nbsp;{USERNAME}&nbsp;!</p>
     58                &nbsp;<img src="{T_COLLAPSED}" alt=""/>&nbsp;<a href="{U_LOGOUT}">{L_LOGOUT}</a><br />
     59                &nbsp;<img src="{T_COLLAPSED}" alt=''/>&nbsp;<a href="{U_PROFILE}" title="{L_PROFILE_HINT}">{L_PROFILE}</a><br />
     60                <!-- BEGIN admin -->
     61            &nbsp;<img src="{T_COLLAPSED}" alt=''/>&nbsp;<a href="{U_ADMIN}" title="{L_ADMIN_HINT}">{L_ADMIN}</a><br />
     62                <!-- END admin -->
     63                <!-- END logout -->
     64                </div>
     65      </div>
    4666        </td>
    47         <td style="padding:5px;width:99%;" valign="top">
    48           <table style="width:100%;">
    49                 <tr>
    50                   <td align="center">
    51                         {T_START}1%{T_BEGIN}
    52                           <div class="titrePage">{TITLE}</div>
    53                         {T_END}
    54                         <div style="margin-bottom:5px;">&nbsp;</div>
     67        <td style="padding:10px;width:99%;" valign="top">
     68          <div class="home">
     69                        <div class="titrePage">{TITLE}</div>
    5570                        <!-- BEGIN thumbnails -->
    56                         <table class="thumbnail">
     71                        <table valign="top" align="center" class="thumbnail">
    5772                          <!-- BEGIN line -->
    5873                          <tr>
    5974                                <!-- BEGIN thumbnail -->
    60                                 <td valign="bottom" class="thumbnail">
     75                                <td class="thumbnail">
    6176                                  <a href="{thumbnails.line.thumbnail.U_IMG_LINK}" class="back">
    6277                                  <img src="{thumbnails.line.thumbnail.IMAGE}"
     
    7691                        </table>
    7792                        <!-- END thumbnails -->
    78                   </td>
    79                 </tr>
    80                 <tr>
    81                   <td align="left">
     93                <br />
    8294                        <!-- BEGIN cat_infos -->
    8395                          <!-- BEGIN navigation -->
     
    91103                          </div>
    92104                        <!-- END cat_infos -->
    93                   </td>
    94                 </tr>
    95                 <tr>
    96                   <td align="right">
    97                         {T_START}1%{T_BEGIN}
    98                           <div class="info">
    99                                 <!-- BEGIN username -->
    100                                 {L_USER}&nbsp;{USERNAME}<br />
    101                                 <!-- END username -->
    102                                 {L_RECENT_IMAGE}&nbsp;{S_SHORT_PERIOD}&nbsp;{L_DAYS}
    103                                   {T_SHORT}<br />
    104                                 {L_RECENT_IMAGE}&nbsp;{S_LONG_PERIOD}&nbsp;{L_DAYS}
    105                                   {T_LONG}<br />
    106                                 {L_SEND_MAIL}&nbsp;<a href="mailto:{S_MAIL}?subject={L_TITLE_MAIL}"><span style="font-weight:bold;">{S_WEBMASTER}</span></a>
    107                           </div>
    108                         {T_END}
    109                   </td>
    110                 </tr>
    111           </table>
     105      </div>
    112106        </td>
    113107  </tr>
  • trunk/template/default/default.css

    r345 r375  
     1/* Main styles */
     2
     3body {
     4  font-family: Verdana, Arial, Helvetica, sans-serif;
     5  font-size:10px;
     6  background-color:#000000;
     7  color:#E0E0E0;
     8  margin:5px;
     9}
     10
    111a {
    212  text-decoration:none;
    3   color:#E0E0E0;
     13  color:#FFFFFF;
    414}
    515a:hover {
    616  text-decoration:underline;
    7   color:#E0E0E0;
    8 }
    9 
    10 a.back,body {
    11   color:#E0E0E0;
    12 }
    13 body {
    14   font-family:arial, sans-serif;
     17  color:#FFFFAA;
     18}
     19
     20/* Navigation styles */
     21
     22.titreMenu,.titrePage
     23{
     24  padding-right: 10px;
     25  padding-left: 10px;
     26  border-bottom: 1px solid #000000;
     27  border-right: 1px solid #000000;
     28  height: 25px;
     29  line-height: 25px;
    1530  font-size:12px;
    16   background-color:#444444;
    17   margin:5px;
    18 }
    19 table, input {
    20   font-family:arial, sans-serif;
    21   font-size:12px;
    22 }
     31  color:#E0E0E0;
     32  background-image: url(theme/tableh1_bg.gif);
     33  font-weight:600;
     34  text-align:center;
     35}
     36
     37.titrePage
     38{
     39  text-align:left;
     40  font-size:16px;
     41  margin-bottom:5px;
     42}
     43
     44.titreImg{
     45  text-align:center;
     46  font-size:16px;
     47  color:#FFF48E;
     48  font-weight:600;
     49}
     50
     51.menu
     52{
     53  margin:10px 5px 10px 5px;
     54  white-space:nowrap;
     55  font-size:11px;
     56}
     57
     58 /* Image related styles */
     59 
    2360.imgLink {
    24   border:1px solid #E0E0E0;
    25 }
     61        border-style: solid;
     62        border-width:2px;
     63        border-color: #A0A0A0;
     64        margin: 2px;
     65}
     66
    2667.imgLink:hover {
    2768  text-decoration:none;
    2869}
    29 .titrePage,.titreMenu,.menu,.info,.commentsAuthor,.commentsTitle,.commentsInfos,.commentsContent,.commentsNavigationBar {
    30   color:lightgray;
    31 }
    32 .titreMenu, .menu, .info {
     70
     71.image {
     72        border: 1px solid #000000;
     73        background-color: #FFFFFF;
     74        text-align:center;
     75        margin-top: 10px;
     76        margin-bottom: 20px;
     77        white-space: nowrap;
     78        padding: 0px;
     79        display: table;
     80}
     81
     82.commentImage {
     83  font-weight:bold;
     84  text-align:center;
     85  font-size:17px;
     86  color:#F0F0F0;
     87  margin-bottom: 10px;
     88}
     89
     90/* Table styles */
     91
     92.main {
     93        background-color:#444444;
     94        border: 1px solid #E0E0E0;
     95        width:100%;
     96        padding-bottom:30px;
     97}
     98
     99.table1, .home
     100{
     101  border: 1px solid #000000;
     102  background-color:#555555;
     103}
     104
     105.home
     106{
     107  text-align:center;
     108  width:100%;
     109}
     110 
     111.table2 {
     112        background: #797979;
     113        border: 1px solid #000000;
     114        margin: 0px 10px 10px 10px;
     115}
     116
     117td{
     118  padding:0px;
     119}
     120
     121/* Thumbnails styles */
     122
     123.thumbnail {
     124        font-size:11px;
     125        text-align:center;
     126        display:inline-table;
     127        vertical-align: baseline;
     128}
     129
     130table.thumbnail {
     131  border-collapse:separate;
     132}
     133
     134/* Other styles */
     135a.back {
     136  color:#E0E0E0;
     137}
     138
     139input {
     140  font-family: Verdana, Arial, Helvetica, sans-serif;
     141  font-size:11px;
     142}
     143
     144.info,.commentsAuthor,.commentsTitle,.commentsInfos,.commentsContent,.commentsNavigationBar {
     145  color:#E0E0E0;
     146  background-color:#444444;
     147}
     148.info {
    33149  margin-bottom:5px;
    34150  white-space:nowrap;
    35 }
    36 .menu, .titrePage, .info {
    37   margin-left:2px;
    38   margin-right:2px;
     151  margin-left:5px;
     152  margin-right:5px;
     153  text-align:right;
    39154}
    40155.menuInfoCat {
     
    48163  font-size:11px;
    49164}
    50 .titreMenu {
    51   font-weight:600;
    52   text-align:center;
    53 }
    54 .info {
    55   text-align:right;
    56 }
    57 .titrePage {
    58   white-space:nowrap;
    59   font-weight:500;
    60   font-size:18px;
    61   text-align:center;
    62 }
     165
    63166.comments, .infoCat, .navigationBar {
    64167  margin-top:10px;
     
    75178  text-align:left;
    76179}
    77 .thumbnail {
    78   font-size:11px;
    79   text-align:center;
    80 }
     180
    81181.copyright {
    82   font-size:11px;
    83   text-align:center;
    84   font-family:sans-serif;
    85   letter-spacing:0.3mm;
    86 }
    87 .commentImage {
    88   font-weight:bold;
    89   text-align:center;
    90   font-size:17px;
    91 }
     182  font-size:10px;
     183  text-align:center;
     184  letter-spacing:-1px;
     185}
     186
    92187.bouton {
    93   background:lightgray;
     188  background:#E0E0E0;
    94189}
    95190textarea,input {
    96191  color:black;
    97192}
    98 table {
    99   border-collapse:collapse;
    100 }
    101 table.thumbnail {
    102   border-collapse:separate;
    103 }
    104 td {
    105   font-family:sans-serif;
    106   padding:0px;
    107 }
     193
     194
     195
    108196.errors {
    109197  text-align:left;
     
    115203  color:white;
    116204}
     205
    117206div.information {
    118207  text-align:center;
     
    207296        color:red;
    208297      }
     298         
  • trunk/template/default/footer.tpl

    r351 r375  
    11<!-- BEGIN debug -->
    2     <div class="copyright">{L_GEN_TIME} {S_TIME}</div>
     2    <div class="copyright">{L_GEN_TIME} {TIME}</div>
    33<!-- END debug -->
    44    <!-- Please, do not remove this copyright. If you really want to,
    55         contact me pierrick@z0rglub.com to find a solution on how
    66         to show the origin of the script...-->
    7     <div class="copyright">Powered by <a href="{U_SITE}" class="back">PhpWebGallery</a> {S_VERSION}</div>
     7    <div class="copyright">Powered by <a href="{U_SITE}" class="back">PhpWebGallery</a> {VERSION}</div>
     8        <div class="copyright">{L_SEND_MAIL}&nbsp;:&nbsp;<a href="mailto:{MAIL}?subject={L_TITLE_MAIL}"><span style="font-weight:bold;">{WEBMASTER}</span></a></div>
     9  </td></tr>
     10  </table>
    811  </body>
    912</html>
  • trunk/template/default/header.tpl

    r351 r375  
    1111</head>
    1212<body>
     13<table class="main">
     14<tr><td>
  • trunk/template/default/htmlfunctions.inc.php

    r370 r375  
    2828function get_icon( $date_comparaison )
    2929{
    30   global $user, $conf;
     30  global $user, $conf, $lang;
    3131  $difference = time() - $date_comparaison;
    3232  $jours = 24*60*60;
    3333  $output = '';
     34  $title = $lang['recent_image'].'&nbsp;';
    3435  if ( $difference < $user['long_period'] * $jours )
    3536  {
     
    3839    {
    3940      $icon_url.= 'new_short.gif';
     41          $title .= $user['short_period'];
    4042    }
    4143    else
    4244    {
    4345      $icon_url.= 'new_long.gif';
     46          $title .= $user['long_period'];
    4447    }
     48        $title .=  '&nbsp;'.$lang['days'];
    4549    $size = getimagesize( $icon_url );
    46     $output = '<img src="'.$icon_url.'" style="border:0;';
     50    $output = '<img title="'.$title.'" src="'.$icon_url.'" style="border:0;';
    4751    $output.= 'height:'.$size[1].'px;width:'.$size[0].'px" alt="" />';
    4852  }
     
    106110function get_frame_start()
    107111{
    108   return '<table style="width:';
     112  return '<table style="padding:0px;border-collapse:collapse; width:';
    109113}
    110114
     
    118122  return ';">
    119123            <tr>
    120               <td><img src="'.$path.'01.gif" style="width:'.$size_01[0].'px;display:box;" alt="" /></td>
    121               <td><img src="'.$path.'02.gif" style="display:box;width:100%;height:'.$size_02[1].'px;" alt="" /></td>
    122               <td><img src="'.$path.'03.gif" style="display:box;width:'.$size_03[0].'px;" alt="" /></td>
     124              <td><img src="'.$path.'01.gif" style="margin:auto;width:'.$size_01[0].'px;display:box;" alt="" /></td>
     125              <td><img src="'.$path.'02.gif" style="margin:auto;display:box;width:100%;height:'.$size_02[1].'px;" alt="" /></td>
     126              <td><img src="'.$path.'03.gif" style="margin:auto;display:box;width:'.$size_03[0].'px;" alt="" /></td>
    123127            </tr>
    124128            <tr>
    125               <td style="background:url('.$path.'04.gif);"></td>
    126               <td style="background:url('.$path.'05.gif);width:100%;">';
     129              <td style="margin:autox;background:url('.$path.'04.gif);"></td>
     130              <td style="margin:auto;background:url('.$path.'05.gif);width:100%;">';
    127131}
    128132       
     
    134138  return '
    135139              </td>
    136               <td style="background:url('.$path.'06.gif);"></td>
     140              <td style="margin:auto;background:url('.$path.'06.gif);"></td>
    137141            </tr>
    138             <tr>
    139               <td><img src="'.$path.'07.gif" alt="" /></td>
    140               <td><img src="'.$path.'08.gif" style="width:100%;height:'.$size_08[1].'px;" alt="" /></td>
    141               <td><img src="'.$path.'09.gif" alt="" /></td>
     142            <tr >
     143              <td><img src="'.$path.'07.gif" style="margin:auto;" alt="" /></td>
     144              <td><img src="'.$path.'08.gif" style="margin:auto;width:100%;height:'.$size_08[1].'px;" alt="" /></td>
     145              <td><img src="'.$path.'09.gif" style="margin:auto;" alt="" /></td>
    142146            </tr>   
    143147          </table>';
     
    154158        )
    155159        );
    156 
    157 
    158   global $vtp, $handle;
    159   if (isset($handle))
    160   {
    161   $vtp->setGlobalVar( $handle, 'frame_start', get_frame_start() );
    162   $vtp->setGlobalVar( $handle, 'frame_begin', get_frame_begin() );
    163   $vtp->setGlobalVar( $handle, 'frame_end',   get_frame_end() );
    164   }
    165 }
    166 
    167 function display_category( $category, $indent )
    168 {
    169   global $user,$lang,$template, $vtp, $handle;
    170  
    171   $style='';
    172   $url = './category.php?cat='.$category['id'];
    173   $url.= '&amp;expand='.$category['expand_string'];
    174   $name = $category['name'];
    175   if ( $name == '' ) $name = str_replace( '_', ' ', $category['dir'] );
    176   if ( $category['id_uppercat'] == '' )
    177   {
    178     $style = 'font-weight:bold;';
    179   }
    180  
    181   $template->assign_block_vars('category', array(
    182     'LINK_NAME' => $name,
    183         'INDENT' => $indent,
    184         'NB_SUBCATS'=>$category['nb_sub_categories'],
    185         'TOTAL_CAT'=>$category['nb_images'],
    186         'CAT_ICON'=>get_icon($category['date_last']),
    187        
    188         'T_NAME'=>$style,
    189     'U_LINK' => add_session_id($url)));
    190 
    191   if ( $user['expand'] or $category['nb_sub_categories'] == 0 )
    192   {
    193         $template->assign_block_vars('category.bulletnolink', array('BULLET_IMAGE' =>  $user['lien_collapsed']));
    194   }
    195   else
    196   {
    197         $url = './category.php';
    198         if (isset($page['cat']))
    199         {
    200           $url .='?cat='.$page['cat'];
    201       $url.= '&amp;expand='.$category['expand_string'];
    202         }
    203         else if ($category['expand_string']<>'')
    204         {
    205           $url.= '?expand='.$category['expand_string'];
    206         }
    207        
    208         if ( $category['expanded'] )
    209     {
    210       $img=$user['lien_expanded'];
    211     }
    212     else
    213     {
    214       $img=$user['lien_collapsed'];
    215     }
    216        
    217     $template->assign_block_vars('category.bulletlink', array(
    218       'BULLET_IMAGE' =>  $img,
    219           'U_BULLET_LINK'=>  add_session_id($url)               
    220         ));
    221   }
    222 
    223   // recursive call
    224   if ( $category['expanded'] )
    225   {
    226     foreach ( $category['subcats'] as $subcat ) {
    227           $template->assign_block_vars('category.subcat', array());
    228       display_category( $subcat, $indent.str_repeat( '&nbsp', 2 ));
    229     }
    230   }
    231160}
    232161
  • trunk/template/default/identification.tpl

    r365 r375  
    3535                        <td align="right"><span class="gentbl">{L_PASSWORD}:</span></td>
    3636                        <td>
    37                           <input class="login" type="password" name="pass" size="25" maxlength="25" />
     37                          <input class="login" type="password" name="password" size="25" maxlength="25" />
    3838                        </td>
    3939                  </tr>
  • trunk/template/default/picture.tpl

    r368 r375  
    1818    <table style="width:100%;height:100%;">
    1919      <tr align="center" valign="middle">
    20         <td style="width:30%;">
    21                 <!-- BEGIN previous -->
    22                   <a href="{U_PREV_IMG}" title="{L_PREV_IMG}{PREV_TITLE_IMG}"><img src="{PREV_IMG}" class="imgLink" style="margin-right:10px;margin-left:5px;" alt="{PREV_TITLE_IMG}"/></a></td>
    23                 <!-- END previous -->
    24         <td style="width:40%;">{T_START}1%{T_BEGIN}
    25         <div class="titrePage">{TITLE}</div>
    26         {T_END} </td>
    27         <td style="width:30%;">
    28                 <!-- BEGIN next -->
    29                   <a href="{U_NEXT_IMG}" title="{L_NEXT_IMG}{NEXT_TITLE_IMG}"><img src="{NEXT_IMG}" class="imgLink" style="margin-right:10px;margin-left:5px;" alt="{NEXT_TITLE_IMG}"/></a></td>
    30                 <!-- END next -->
    31             </td>
    32       </tr>
    33       <tr align="center" valign="middle">
    3420        <td colspan="3" style="width:100%;">
    35           {T_START}1%{T_BEGIN}
     21                <div class="table2">
     22                <div class="titrePage">{CATEGORY}</div>
     23                <div class="titreImg">{PHOTO}</div>
     24                  <div class="image">
    3625          <a href="{U_HOME}">
    37             <img class="imgLink" style="margin:10px;width:{WIDTH_IMG}px;height:{HEIGHT_IMG}px;border:1px solid" src="{SRC_IMG}" alt="{ALT_IMG}"/>
     26            <img class="imgLink" src="{SRC_IMG}" style="width:{WIDTH_IMG}px;height:{HEIGHT_IMG}px;" alt="{ALT_IMG}"/>
    3827          </a>
     28                  </div>
     29                  <div class="commentImage">{TITLE}</div>
    3930          <div class="commentImage">{COMMENT_IMG}</div>
     31                  </div>
    4032          <table style="width:100%;">   
    41             <tr>
    42               <td align="center">
    43                 <table style="margin:auto;margin-top:5px;margin-bottom:5px;">
     33            <tr align="center" valign="middle">
     34                          <td style="width:30%;">
     35                                <!-- BEGIN previous -->
     36                                <a href="{U_PREV_IMG}" title="{L_PREV_IMG}{PREV_TITLE_IMG}">
     37                                <img style="border:none;" class="imgLink" width="30" height="100" src="template/default/theme/left-arrow.jpg" alt="" />
     38                                  <img src="{PREV_IMG}" class="imgLink" style="margin-right:10px;margin-left:5px;" alt="{PREV_TITLE_IMG}"/></a>
     39                                <!-- END previous -->
     40                          </td>
     41                          <td style="width:40%;">
     42                          <table style="margin:auto;margin-top:5px;margin-bottom:5px;">
    4443                  <!-- BEGIN info_line -->
    4544                  <tr>
     
    4948                  <!-- END info_line -->
    5049                </table>
    51               </td>
    52             </tr>
     50                          </td>
     51                          <td style="width:30%;">
     52                                <!-- BEGIN next -->
     53                                  <a href="{U_NEXT_IMG}" title="{L_NEXT_IMG}{NEXT_TITLE_IMG}"><img src="{NEXT_IMG}" class="imgLink" style="margin-right:10px;margin-left:5px;" alt="{NEXT_TITLE_IMG}"/>
     54                                  <img style="border:none;" class="imgLink" width="30" height="100" src="template/default/theme/right-arrow.jpg" alt="" /></a>
     55                                <!-- END next -->
     56                          </td>
     57                        </tr>
    5358          </table>
    5459          <!-- BEGIN favorite -->
     
    6469          </div>
    6570          <!-- END modification -->
    66           {T_END}
    6771          <div style="text-align:center;">{L_BACK}</div>
    6872        </td>
Note: See TracChangeset for help on using the changeset viewer.