Changeset 25


Ignore:
Timestamp:
Jul 21, 2003, 9:38:38 PM (21 years ago)
Author:
z0rglub
Message:

* empty log message *

Location:
trunk/template/default
Files:
37 added
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/default/about.vtp

    r19 r25  
    33    {#style}
    44    <title>{#about_page_title}</title>
     5    <meta http-equiv="Content-Type" content="text/html; {#charset}">
    56  </head>
    67  <body>
  • trunk/template/default/admin/admin.vtp

    r2 r25  
    11<html>
    22  <head>
    3     <title>{#page_title}</title>
     3    <title>{#title_default}</title>
    44    <style>
    55      a {
     
    5656        background-color:#E6E4E4;
    5757      }
    58       td.row2 {
     58      td.row2,td.throw2 {
    5959        background-color:#E8E8E8;
     60      }
     61      td.throw2 {
     62        text-align:center;
     63        font-weight:bold;
    6064      }
    6165      td.row3 {
     
    9599        text-align:center;
    96100      }
     101      div.key {
     102        margin-left : 10px;
     103      }
     104      td.choice {
     105        text-align : center;
     106      }
    97107    </style>
    98108    <script language="javascript">
     
    125135      }
    126136    </script>
     137    <meta http-equiv="Content-Type" content="text/html; {#charset}">
    127138  </head>
    128139  <body>
  • trunk/template/default/admin/infos_image.vtp

    r15 r25  
    4343    <!--VTP_picture-->
    4444    <tr>
    45       <td style="text-align:center;"><a name="{#link}"><img src="{#thumbnail_url}" alt="" class="miniature" title="{#filename}" /></td>
     45      <td style="text-align:center;"><a name="{#link}" href="{#url}"><img src="{#thumbnail_url}" alt="" class="miniature" title="{#filename}" /></td>
    4646      <td style="text-align:center;">{#default_name}<br /><input type="text" name="name-{#id}" value="{#name}" maxlength="255"/></td>
    4747      <td style="text-align:center;"><input type="text" name="author-{#id}" value="{#author}" maxlength="255"/></td>
  • trunk/template/default/category.vtp

    r9 r25  
    11<html>
    22  <head>
     3    <meta http-equiv="Content-Type" content="text/html; charset={#charset}" />
    34    {#style}
    45    <title>{#title}</title>
     
    1213            <div class="titreMenu">{#categories}</div>
    1314            <div class="menu">
    14               <!--VTP_category-->{#indent}<!--VTP_bullet_w_link--><a href="{#bullet_link}"><img src="{#bullet_url}" style="border:none;" alt="{#bullet_alt}" /></a><!--/VTP_bullet_w_link--><!--VTP_bullet_wo_link--><img src="{#bullet_url}" style="border:none;" alt="{#bullet_alt}" /><!--/VTP_bullet_wo_link-->&nbsp;<a href="{#link_url}"><span title="{#hint_category}" style="{#name_style}">{#link_name}</span>&nbsp;<span class="menuInfoCat">[&nbsp;<!--VTP_subcat--><span title="{#nb_subcats} {#sub-cat}">{#nb_subcats}</span>&nbsp;-&nbsp;<!--/VTP_subcat--><span title="{#total_cat} {#images_available}">{#total_cat}</span>&nbsp;]</span></a>{#cat_icon}<br />
     15              <!--VTP_category-->{#indent}<!--VTP_bullet_w_link--><a href="{#bullet_link}"><img src="{#bullet_url}" style="border:none;" alt="&gt;" /></a><!--/VTP_bullet_w_link--><!--VTP_bullet_wo_link--><img src="{#bullet_url}" style="border:none;" alt="&gt;" /><!--/VTP_bullet_wo_link-->&nbsp;<a href="{#link_url}"><span title="{#hint_category}" style="{#name_style}">{#link_name}</span>&nbsp;<span class="menuInfoCat">[&nbsp;<!--VTP_subcat--><span title="{#nb_subcats} {#sub-cat}">{#nb_subcats}</span>&nbsp;-&nbsp;<!--/VTP_subcat--><span title="{#total_cat} {#images_available}">{#total_cat}</span>&nbsp;]</span></a>{#cat_icon}<br />
    1516              <!--/VTP_category-->
    1617              <div class="totalImages">[&nbsp;{#nb_total_pictures}&nbsp;{#total}&nbsp;]</div>
     
    7879                  {#nb_image_category} "{#cat_name}" : {#cat_nb_images}
    7980                  <!--VTP_upload-->
    80                   <br /><a href="{#url}" class="back">{#upload_name}</a>
     81                  <br /><a href="{#url}" class="back">{#upload_picture}</a>
    8182                  <!--/VTP_upload-->
    8283                  </div>
  • trunk/template/default/htmlfunctions.inc.php

    r14 r25  
    11<?php
    22/***************************************************************************
    3  *            htmlfunctions.inc.php is a part of PhpWebGallery             *
     3 *                           htmlfunctions.inc.php                         *
    44 *                            -------------------                          *
    5  *   last update          : Wednesday, 25 December 2002                    *
    6  *   email                : pierrick@z0rglub.com                           *
     5 *   application          : PhpWebGallery 1.3                              *
     6 *   author               : Pierrick LE GALL <pierrick@z0rglub.com>        *
    77 *                                                                         *
    88 ***************************************************************************
     
    1616 ***************************************************************************/
    1717
     18include( PREFIX_INCLUDE.'./template/'.$user['template'].'/theme/conf.php' );
     19$user['lien_expanded']='./template/'.$user['template'].'/theme/expanded.gif';
     20$user['lien_collapsed']='./template/'.$user['template'].'/theme/collapsed.gif';
     21include_once( PREFIX_INCLUDE.'./template/'.$user['template'].'/style.inc.php');
     22
    1823function get_icon( $date_comparaison )
    1924{
     
    2429  if ( $difference < $user['long_period'] * $jours )
    2530  {
    26     $icon_url = './theme/'.$user['theme'].'/';
     31    $icon_url = './template/'.$user['template'].'/theme/';
    2732    if ( $difference < $user['short_period'] * $jours )
    2833    {
     
    98103  return '<table style="width:';
    99104}
    100 
     105/*
    101106function get_frame_begin()
    102107{
     
    113118          </table>';
    114119}
    115 /*
     120*/
     121
    116122function get_frame_begin()
    117123{
    118124  global $user;
    119   $path = './theme/'.$user['theme'].'/';
     125  $path = './template/'.$user['template'].'/theme/';
    120126  $size_01 = getimagesize( $path.'01.gif' );
    121127  $size_02 = getimagesize( $path.'02.gif' );
     
    135141{
    136142  global $user;
    137   $path = './theme/'.$user['theme'].'/';
     143  $path = './template/'.$user['template'].'/theme/';
    138144  $size_08 = getimagesize( $path.'08.gif' );
    139145  return '
     
    148154          </table>';
    149155}
    150 */
     156
    151157function initialize_template()
    152158{
    153   global $vtp, $handle, $user;
    154 
     159  global $vtp, $handle, $user, $lang;
     160
     161  $vtp->setGlobalVar( $handle, 'charset', $lang['charset'] );
    155162  $vtp->setGlobalVar( $handle, 'style', $user['style'] );
    156163  $vtp->setGlobalVar( $handle, 'frame_start', get_frame_start() );
     
    162169                 './template/'.$user['template'].'/footer.htm' );
    163170}
     171
     172function display_category( $category, $indent, $handle )
     173{
     174  global $user,$lang,$vtp;
     175
     176  $vtp->addSession( $handle, 'category' );
     177  $vtp->setVar( $handle, 'category.indent', $indent );
     178
     179  if ( $user['expand'] or count( $category['subcats'] ) == 0 )
     180  {
     181    $vtp->addSession( $handle, 'bullet_wo_link' );
     182    $vtp->setVar( $handle, 'bullet_wo_link.bullet_url',
     183                  $user['lien_collapsed'] );
     184    $vtp->closeSession( $handle, 'bullet_wo_link' );
     185  }
     186  else
     187  {
     188    $vtp->addSession( $handle, 'bullet_w_link' );
     189    $url = './category.php?cat='.$page['cat'];
     190    $url.= '&amp;expand='.$category['expand_string'];
     191    if ( $page['cat'] == 'search' )
     192    {
     193      $url.= '&amp;search='.$_GET['search'].'&amp;mode='.$_GET['mode'];
     194    }
     195    $vtp->setVar( $handle, 'bullet_w_link.bullet_link', add_session_id($url) );
     196    if ( $category['expanded'] )
     197    {
     198      $vtp->setVar( $handle, 'bullet_w_link.bullet_url',
     199                    $user['lien_expanded'] );
     200    }
     201    else
     202    {
     203      $vtp->setVar( $handle, 'bullet_w_link.bullet_url',
     204                    $user['lien_collapsed'] );
     205    }
     206    $vtp->closeSession( $handle, 'bullet_w_link' );
     207  }
     208
     209  $url = './category.php?cat='.$category['id'];
     210  $url.= '&amp;expand='.$category['expand_string'];
     211  $vtp->setVar( $handle, 'category.link_url', add_session_id( $url ) );
     212
     213  $name = $category['name'];
     214  if ( $name == '' ) $name = str_replace( '_', ' ', $category['dir'] );
     215  $vtp->setVar( $handle, 'category.link_name', $name );
     216
     217  if ( $category['id_uppercat'] == '' )
     218  {
     219    $vtp->setVar( $handle, 'category.name_style', 'font-weight:bold;' );
     220  }
     221  if ( count( $category['subcats'] ) > 0 )
     222  {
     223    $vtp->addSession( $handle, 'subcat' );
     224    $vtp->setVar( $handle, 'subcat.nb_subcats', count($category['subcats']) );
     225    $vtp->closeSession( $handle, 'subcat' );
     226  }
     227  $vtp->setVar( $handle, 'category.total_cat', $category['nb_images'] );
     228  $vtp->setVar( $handle, 'category.cat_icon',get_icon($category['date_last']));
     229  $vtp->closeSession( $handle, 'category' );
     230
     231  // recursive call
     232  if ( $category['expanded'] )
     233  {
     234    foreach ( $category['subcats'] as $subcat ) {
     235      display_category( $subcat, $indent.str_repeat( '&nbsp', 2 ), $handle );
     236    }
     237  }
     238}
    164239?>
  • trunk/template/default/identification.vtp

    r2 r25  
    11<html>
    22  <head>
    3     {#page_style}
     3    {#style}
    44    <title>{#ident_page_title}</title>
     5    <meta http-equiv="Content-Type" content="text/html; charset={#charset}" />
    56  </head>
    67  <body>
     8    {#header}
    79    <table style="width:100%;height:100%">
    810      <tr align="center" valign="middle">
     
    6062                    <div  style="margin-top:10px;text-align:left;">
    6163                      <!--VTP_register-->
    62                         <a href="register.php"><img src="./theme/{#user_theme}/register.gif" style="border:0;" alt="{#ident_register}"/>&nbsp;{#ident_register}</a><br />
     64                        <a href="register.php"><img src="./template/{#user_template}/theme/register.gif" style="border:0;" alt="{#ident_register}"/>&nbsp;{#ident_register}</a><br />
    6365                      <!--/VTP_register-->
    64                       <a href="mailto:{#mail_webmaster}?subject=[PhpWebGallery] {#ident_forgotten_password}"><img src="./theme/{#user_theme}/lost.gif" style="border:0;" alt=""/>&nbsp;{#ident_forgotten_password}</a>
     66                      <a href="mailto:{#mail_webmaster}?subject=[PhpWebGallery] {#ident_forgotten_password}"><img src="./template/{#user_template}/theme/lost.gif" style="border:0;" alt=""/>&nbsp;{#ident_forgotten_password}</a>
    6567                    </div>
    6668                  </td>
     
    7274      </tr>
    7375    </table>
     76    {#footer}
    7477  </body>
    7578</html>
  • trunk/template/default/picture.vtp

    r21 r25  
    11<html>
    22  <head>
     3    <!--VTP_refresh-->
     4    <meta http-equiv="refresh" content="{#time};url={#url}">
     5    <!--/VTP_refresh-->
     6    <meta http-equiv="Content-Type" content="text/html;charset={#charset}">
    37    {#style}
    48    <!-- Specific style to picture.php-->
     
    4246      }
    4347    </style>
    44     <title>{#page_title}</title>       
     48    <title>{#page_title}</title>
    4549  </head>
    4650  <body>
    4751    {#header}
     52    <!--VTP_information-->
     53    <div class="information">{#content}</div>
     54    <!--/VTP_information-->
     55    <!--VTP_start_slideshow-->
     56    <div style="text-align:center;margin-bottom:5px;">
     57      [ {#slideshow} :
     58      <!--VTP_second-->
     59      <a href="{#url}" class="back" style="font-weight:bold;">{#option}</a>
     60      <!--/VTP_second-->
     61      {#period_seconds} ]
     62    </div>
     63    <!--/VTP_start_slideshow-->
     64    <!--VTP_stop_slideshow-->
     65    <div style="text-align:center;margin-bottom:5px;">
     66      [ <a href="{#url}" class="back" style="font-weight:bold;">{#slideshow_stop}</a> ]
     67    </div>
     68    <!--/VTP_stop_slideshow-->
    4869    <table style="width:100%;height:100%;">
    4970      <tr align="center" valign="middle">
     
    127148                      <td align="right" class="cellInfo">
    128149                        <div class="commentsInfos">
    129                           {#date}<!--VTP_delete--><a href="{#link}" title="{#comments_del}"><img src="./theme/{#user_theme}/delete.gif" style="border:none;margin-left:5px;" alt="[{#delete}]"/></a><!--/VTP_delete-->
     150                          {#date}<!--VTP_delete--><a href="{#link}" title="{#comments_del}"><img src="./template/{#user_template}/theme/delete.gif" style="border:none;margin-left:5px;" alt="[{#delete}]"/></a><!--/VTP_delete-->
    130151                        </div>
    131152                      </td>
  • trunk/template/default/profile.vtp

    r14 r25  
    33    {#style}
    44    <title>{#customize_page_title}</title>
     5    <meta http-equiv="Content-Type" content="text/html; {#charset}">
    56  </head>
    67  <body>
  • trunk/template/default/register.vtp

    r2 r25  
    11<html>
    22  <head>
    3     {#page_style}
     3    {#style}
    44    <title>{#register_page_title}</title>
    5     </head>
     5    <meta http-equiv="Content-Type" content="text/html; {#charset}">
     6  </head>
    67  <body>
    78    <table style="width:100%;height:100%">
  • trunk/template/default/search.vtp

    r19 r25  
    33    {#style}
    44    <title>{#search_title}</title>
     5    <meta http-equiv="Content-Type" content="text/html; {#charset}">
    56  </head>
    67  <body>
  • trunk/template/default/style.inc.php

    r2 r25  
    138138        color:white;
    139139      }
     140      div.information {
     141        text-align:center;
     142        border:2px solid '.$user['couleur_text_fond'].';
     143        margin:10px;padding:5px;
     144      }
    140145    </style>';
  • trunk/template/default/upload.vtp

    r13 r25  
    55  </head>
    66  <body>
     7    {#header}
    78    <table style="width:100%;height:100%">
    89      <tr align="center" valign="middle">
     
    4546                </tr>
    4647                <!--VTP_fields-->
     48                <!-- username -->
    4749                <tr>
    48                   <td class="menu">{#upload_username}</td>
     50                  <td class="menu">{#upload_username} <span style="color:red;">*</span></td>
    4951                  <td align="center" style="padding:10px;">
    50                     <input name="username" type="text" value="{#user_login}" />
     52                    <input name="username" type="text" value="{#username}" />
    5153                  </td>
    5254                </tr>
     55                <!-- mail address -->
    5356                <tr>
    54                   <td class="menu">{#mail_address}</td>
     57                  <td class="menu">{#mail_address} <span style="color:red;">*</span></td>
    5558                  <td align="center" style="padding:10px;">
    5659                    <input name="mail_address" type="text" value="{#user_mail_address}" />
     60                  </td>
     61                </tr>
     62                <!-- name of the picture -->
     63                <tr>
     64                  <td class="menu">{#upload_name}</td>
     65                  <td align="center" style="padding:10px;">
     66                    <input name="name" type="text" value="{#name}" />
     67                  </td>
     68                </tr>
     69                <!-- author -->
     70                <tr>
     71                  <td class="menu">{#upload_author}</td>
     72                  <td align="center" style="padding:10px;">
     73                    <input name="author" type="text" value="{#author}" />
     74                  </td>
     75                </tr>
     76                <!-- date of creation -->
     77                <tr>
     78                  <td class="menu">{#upload_creation_date}</td>
     79                  <td align="center" style="padding:10px;">
     80                    <input name="date_creation" type="text" value="{#date_creation}" />
     81                  </td>
     82                </tr>
     83                <!-- comment -->
     84                <tr>
     85                  <td class="menu">{#upload_comment}</td>
     86                  <td align="center" style="padding:10px;">
     87                   <textarea name="comment" rows="3" cols="40" style="overflow:auto">{#comment}</textarea>
    5788                  </td>
    5889                </tr>
     
    72103              <a href="{#return_url}">[ {#search_return_main_page} ]</a>
    73104            </div>
     105            <!--VTP_note-->
     106            <div style="text-align:left;"><span style="color:red;">*</span> : {#mandatory}</div>
     107            <!--/VTP_note-->
    74108          {#frame_end}
    75109        </td>
    76110      </tr>
    77111    </table>
     112    {#footer}
    78113  </body>
    79114</html>
Note: See TracChangeset for help on using the changeset viewer.