Luxbum.net - Script de galerie photo

Changeset 235

Show
Ignore:
Timestamp:
07/26/07 19:24:50 (1 year ago)
Author:
nicolas
Message:

first pass to use jtpl.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/templates/manager/gallery.html

    r184 r235  
    1 <?php include ('header.php');?> 
     1{include 'header.html'} 
    22<script type="text/javascript"> 
    33function toggleBigImage(id, largepath) { 
     
    2121 
    2222<div class="rapid_switch"> 
    23   <fieldset><legend><?php ___('Jump to gallery');?> : </legend> 
     23  <fieldset><legend>{i18n 'Jump to gallery'} : </legend> 
    2424    <form mXattribut="action:action_rapid_switch" method="get"> 
    2525      <input type="hidden" id="p" name="p" value="galerie" /> 
    2626      <mx:select id="rapid_switch"/> 
    2727      <input type="hidden" id="page" name="page" value="0" /> 
    28       <input type="submit" value="<?php ___('Go');?>" id="go_rapid_switch" class="submit" /> 
     28      <input type="submit" value="{i18n 'Go'}" id="go_rapid_switch" class="submit" /> 
    2929    </form> 
    3030  </fieldset> 
     
    3232 
    3333 
    34 <h1 id="h1_admin"><?php ___('Gallery management');?> : <?php lbm::galleryNiceName(false); ?></h1> 
     34<h1 id="h1_admin">{i18n 'Gallery management'} : <?php lbm::galleryNiceName(false); ?></h1> 
    3535 
    3636<p class="message"><?php lbm::headerMessage(); ?></p> 
     
    3838<script  type="text/javascript" src="_javascript/add_upload.js"></script> 
    3939 
    40 <h2><?php ___('Add a photo');?></h2> 
     40<h2>{i18n 'Add a photo'}</h2> 
    4141<form enctype="multipart/form-data" mXattribut="action:action_ajout_photo" method="post" name="upload_form" id="upload_form"> 
    4242  <input type="hidden" name="MAX_FILE_SIZE" mXattribut="value:max_file_size" /> 
    43   <fieldset><legend><?php ___('Add a photo to the current gallery');?> </legend> 
     43  <fieldset><legend>{i18n 'Add a photo to the current gallery'} </legend> 
    4444    <p> 
    4545      <div id="positionFile"></div> 
     
    5151        <input type="file" name="userfile[]" /><br /> 
    5252      </noscript> 
    53       <input type="button" value="<?php ___('Add an other picture');?>" id="etrombi" onclick="addPosition('positionFile');" /> 
     53      <input type="button" value="{i18n 'Add an other picture'}" id="etrombi" onclick="addPosition('positionFile');" /> 
    5454    </p> 
    55     <p><input class="submit" type="submit" value="<?php ___('Send the photos');?>" /></p> 
     55    <p><input class="submit" type="submit" value="{i18n 'Send the photos'}" /></p> 
    5656  </fieldset> 
    5757</form> 
    5858 
    5959 
    60 <h2><?php ___('Gallery cache');?></h2> 
     60<h2>{i18n 'Gallery cache'}</h2> 
    6161<ul> 
    62   <li><a mXattribut="url:action_vider_cache"><?php ___('Delete the cache for this gallery');?></a></li> 
    63   <li><a mXattribut="url:action_generer_cache"><?php ___('Generate the cache for this gallery');?></a></li> 
     62  <li><a mXattribut="url:action_vider_cache">{i18n 'Delete the cache for this gallery'}</a></li> 
     63  <li><a mXattribut="url:action_generer_cache">{i18n 'Generate the cache for this gallery'}</a></li> 
    6464</ul> 
    6565 
    6666 
    67 <h2><?php ___('Set a date for all photos');?></h2> 
     67<h2>{i18n 'Set a date for all photos'}</h2> 
    6868<form mXattribut="action:action_meme_date" method="post"> 
    69   <fieldset><legend><?php ___('Set a date for all photos');?> </legend> 
     69  <fieldset><legend>{i18n 'Set a date for all photos'} </legend> 
    7070    <p> 
    71       <?php ___('Choose a date (jj/mm/aaaa)');?> 
     71      {i18n 'Choose a date (jj/mm/aaaa)'} 
    7272      <mx:select id="jour"/><mx:select id="mois"/> 
    7373      <input type="text" name="meme_date" id="meme_date" mXattribut="value:val_meme_date" style="width:80px;" /> 
     
    7575    </p> 
    7676    <p> 
    77       <input class="submit" type="submit" value="<?php ___('Submit the date');?>" /> 
     77      <input class="submit" type="submit" value="{i18n 'Submit the date'}" /> 
    7878    </p> 
    7979  </fieldset> 
    8080</form> 
    8181 
    82 <h2><?php ___('Photo sort');?></h2> 
    83 <p><strong><?php ___('Manual sort');?></strong> : <a mXattribut="href:triUrl"><?php ___('Sort manually the gallery');?></a></p> 
     82<h2>{i18n 'Photo sort'}</h2> 
     83<p><strong>{i18n 'Manual sort'}</strong> : <a mXattribut="href:triUrl">{i18n 'Sort manually the gallery'}</a></p> 
    8484<form mXattribut="action:action_tri" method="post"> 
    85   <fieldset><legend><?php ___('Choose a sort criteria');?></legend> 
     85  <fieldset><legend>{i18n 'Choose a sort criteria'}</legend> 
    8686    <mx:select id="tri"/> 
    87     <p><input class="submit" type="submit" value="<?php ___('Submit the sort criteria');?>" /></p> 
     87    <p><input class="submit" type="submit" value="{i18n 'Submit the sort criteria'}" /></p> 
    8888  </fieldset> 
    8989</form> 
    9090 
    9191 
    92 <h2><?php ___('Photo list');?></h2> 
     92<h2>{i18n 'Photo list'}</h2> 
    9393 
    9494<?php if ($res->EOP()): ?> 
    95 <?php ___('There is no photo to consult.');?> 
     95{i18n 'There is no photo to consult.'} 
    9696<?php else: ?> 
    9797 
    98 <p><?php ___('Clic on the photo to enlarge');?></p> 
     98<p>{i18n 'Clic on the photo to enlarge'}</p> 
    9999<div id="liste_photo_div"> 
    100100  <form mXattribut="action:action_date_desc" method="post"> 
    101     <table id="liste_photo" summary="<?php ___('Gallery photo list');?>"> 
     101    <table id="liste_photo" summary="{i18n 'Gallery photo list'}"> 
    102102      <tr> 
    103         <th><?php ___('Photo');?></th> 
    104         <th><?php ___('Date / Description');?></th> 
    105         <th><?php ___('Default');?></th> 
    106         <th><?php ___('Delete');?></th> 
     103        <th>{i18n 'Photo'}</th> 
     104        <th>{i18n 'Date / Description'}</th> 
     105        <th>{i18n 'Default'}</th> 
     106        <th>{i18n 'Delete'}</th> 
    107107      </tr> 
    108108      <?php while (!$res->EOP()):?> 
     
    113113 
    114114          <p> 
    115             <label for="description" class="float"><strong><?php ___('Description');?> : </strong></label> 
     115            <label for="description" class="float"><strong>{i18n 'Description'} : </strong></label> 
    116116            <input type="text" name="description" id="description" mXattribut="value:val_description" style="width:340px;"/> 
    117117            <span class="erreur"><mx:text id="err_description"/></span> 
    118118          </p> 
    119119          <p> 
    120             <label for="date" class="float"><strong><?php ___('Date');?> : </strong></label> 
     120            <label for="date" class="float"><strong>{i18n 'Date'} : </strong></label> 
    121121            <mx:select id="jour"/><mx:select id="mois"/> 
    122122            <input type="text" name="date" id="date" mXattribut="value:val_date" style="width:80px;" /> 
     
    126126        </td> 
    127127        <td class="liste_photo_td"> 
    128           <p><em><?php ___('Default');?>:</em><strong><mx:text id="defaut_oui_non"/></strong></p> 
    129           <p><a mXattribut="href:defaut"><?php ___('Index image');?></a> <img src="_images/manager/ico_set_as_home.png" alt="defaut" /></p> 
     128          <p><em>{i18n 'Default'}:</em><strong><mx:text id="defaut_oui_non"/></strong></p> 
     129          <p><a mXattribut="href:defaut">{i18n 'Index image'}</a> <img src="_images/manager/ico_set_as_home.png" alt="defaut" /></p> 
    130130        </td> 
    131131        <td class="liste_photo_td"> 
    132           <p><a mXattribut="href:del"><img src="<?php lbm::imgSrc('delete.png');?>" alt="<?php ___('Delete');?>" /></a></p> 
     132          <p><a mXattribut="href:del"><img src="<?php lbm::imgSrc('delete.png');?>" alt="{i18n 'Delete'}" /></a></p> 
    133133        </td> 
    134134      </tr> 
     
    138138 
    139139    <p> 
    140       <input class="submit" type="submit" value="<?php ___('Submit');?>" /> 
    141       <input class="submit" type="reset" value="<?php ___('Clear');?>" /> 
     140      <input class="submit" type="submit" value="{i18n 'Submit'}" /> 
     141      <input class="submit" type="reset" value="{i18n 'Clear'}" /> 
    142142    <p> 
    143143  </form> 
     
    146146 
    147147<form method="post" mXattribut="action:actionLimitPage"> 
    148   <label for="limitPage" class="float"><strong><?php ___('Number of photos on the page');?></strong></label> 
     148  <label for="limitPage" class="float"><strong>{i18n 'Number of photos on the page'}</strong></label> 
    149149  <input id="limitPage" name="limitPage" type="text" maxlength="3" style="width:40px;" mXattribut="value:limitPage"/> 
    150   <input class="submit" type="submit" value="<?php ___(' OK ');?>"/> 
     150  <input class="submit" type="submit" value="{i18n ' OK '}"/> 
    151151</fieldset> 
    152152</form> 
     
    156156    <tr> 
    157157      <td class="affpage"> 
    158         <?php ___('Page'); ?> 
     158        {i18n 'Page'); ?> 
    159159        <?php lb::paginatorCurrentPage(); ?> 
    160         <?php ___('on');?> 
     160        {i18n 'on'} 
    161161        <?php lb::paginatorTotalPages(); ?> 
    162162      </td> 
     
    171171</div> 
    172172<?php endif;?> 
    173 <?php include ('footer.php');?> 
     173{include 'footer.html'} 
  • trunk/templates/manager/header.html

    r184 r235  
    1414    <div id="header"> 
    1515      <ul> 
    16         <li mXattribut="class:class_galeries" id="menuGaleries"><a href="manager/galleries/"><?php ___('Galleries');?></a></li> 
    17         <li mXattribut="class:class_commentaires" id="menuCommentaires"><a href="manager/comments/"><?php ___('Comments');?></a></li> 
     16        <li mXattribut="class:class_galeries" id="menuGaleries"><a href="manager/galleries/">{i18n 'Galleries'}</a></li> 
     17        <li mXattribut="class:class_commentaires" id="menuCommentaires"><a href="manager/comments/">{i18n 'Comments'}</a></li> 
    1818        <mx:bloc id="isadmin"> 
    19           <li mXattribut="class:class_parametres" id="menuParametres"><a href="manager/parameters/"><?php ___('Parameters');?></a></li> 
     19          <li mXattribut="class:class_parametres" id="menuParametres"><a href="manager/parameters/">{i18n 'Parameters'}</a></li> 
    2020        </mx:bloc id="isadmin"> 
    21         <li mXattribut="class:class_outils" id="menuOutils"><a href="manager/tools/"><?php ___('Tools');?></a></li> 
    22         <li class="last" id="menuDeconnection"><a href="manager/logout/"><?php ___('Logout');?></a></li> 
     21        <li mXattribut="class:class_outils" id="menuOutils"><a href="manager/tools/">{i18n 'Tools'}</a></li> 
     22        <li class="last" id="menuDeconnection"><a href="manager/logout/">{i18n 'Logout'}</a></li> 
    2323      </ul> 
    2424    </div> 
  • trunk/templates/manager/index.html

    r184 r235  
    1 <?php include ('header.php');?> 
     1{include 'header.html'} 
    22 
    3 <h1 id="h1_admin"><?php ___('Gallery management'); ?></h1> 
     3<h1 id="h1_admin">{i18n 'Gallery management'); ?></h1> 
    44 
    55 
    66<p class="message"><?php lbm::headerMessage(); ?></p> 
    77 
    8 <h2><?php ___('Add a gallery');?></h2> 
     8<h2>{i18n 'Add a gallery'}</h2> 
    99<form action="<?php lbm::linkActionIndexAddGallery();?>" method="post"> 
    10   <fieldset><legend><?php ___('Add a new gallery');?> </legend> 
    11     <p><label for="ajout_galerie" class="float"><?php ___('Choose a name : ');?> </label> 
     10  <fieldset><legend>{i18n 'Add a new gallery'} </legend> 
     11    <p><label for="ajout_galerie" class="float">{i18n 'Choose a name : '} </label> 
    1212      <input type="text" name="ajout_galerie" id="ajout_galerie" mXattribut="value:val_ajout_galerie" /> 
    1313      <span class="erreur"><mx:text id="err_ajout_galerie"/></span> 
    1414    </p> 
    1515    <p> 
    16       <input class="submit" type="submit" value="<?php ___('Create the gallery');?>"/> 
     16      <input class="submit" type="submit" value="{i18n 'Create the gallery'}"/> 
    1717    </p> 
    1818  </fieldset> 
     
    2020 
    2121 
    22 <h2><?php ___('Gallery cache');?></h2> 
     22<h2>{i18n 'Gallery cache'}</h2> 
    2323<ul> 
    24   <li><a href="<?php lbm::linkActionIndexPurgecache();?>"><?php ___('Delete the cache for all galleries');?></a></li> 
    25   <li><a href="<?php lbm::linkActionIndexGencache();?>"><?php ___('Generate the cache for all galleries');?></a></li> 
     24  <li><a href="<?php lbm::linkActionIndexPurgecache();?>">{i18n 'Delete the cache for all galleries'}</a></li> 
     25  <li><a href="<?php lbm::linkActionIndexGencache();?>">{i18n 'Generate the cache for all galleries'}</a></li> 
    2626</ul> 
    2727 
    28 <h2><?php ___('Gallery sort');?></h2> 
    29 <p><strong><?php ___('Manual sort');?></strong> : <a mXattribut="href:triUrl"><?php ___('Sort manually the galleries.');?></a></p> 
     28<h2>{i18n 'Gallery sort'}</h2> 
     29<p><strong>{i18n 'Manual sort'}</strong> : <a mXattribut="href:triUrl">{i18n 'Sort manually the galleries.'}</a></p> 
    3030<form action="<?php lbm::linkActionIndexSort(); ?>" method="post"> 
    31   <fieldset><legend><?php ___('Choose a sort criteria :');?></legend> 
     31  <fieldset><legend>{i18n 'Choose a sort criteria :'}</legend> 
    3232    <?php lbm::indexSortSelect(); ?> 
    33     <p><input class="submit" type="submit" value="<?php ___('Submit the sort criteria');?>" /></p> 
     33    <p><input class="submit" type="submit" value="{i18n 'Submit the sort criteria'}" /></p> 
    3434  </fieldset> 
    3535</form> 
    3636 
    37 <h2><?php ___('Gallery list');?></h2> 
     37<h2>{i18n 'Gallery list'}</h2> 
    3838 
    3939 
    4040 
    4141<?php if ($res->EOF()):?> 
    42 <?php ___('There is no gallery to consult.');?> 
     42{i18n 'There is no gallery to consult.'} 
    4343 
    4444<?php else: ?> 
    4545<div id="liste_photo_div"> 
    46   <table id="liste_photo" summary="<?php ___('Gallery list');?>"> 
     46  <table id="liste_photo" summary="{i18n 'Gallery list'}"> 
    4747    <tr> 
    48       <th><?php ___('Gallery');?></th> 
    49       <th><?php ___('Manage');?></th> 
    50       <th><?php ___('Rename');?></th> 
    51       <th><?php ___('Private');?></th> 
    52       <th><?php ___('Delete');?></th> 
     48      <th>{i18n 'Gallery'}</th> 
     49      <th>{i18n 'Manage'}</th> 
     50      <th>{i18n 'Rename'}</th> 
     51      <th>{i18n 'Private'}</th> 
     52      <th>{i18n 'Delete'}</th> 
    5353    </tr> 
    5454 
     
    6565          <span class="infos"> 
    6666            <?php lbm::galleryNbPhotos();?> 
    67             <?php ___(' pictures - ');?> 
     67            {i18n ' pictures - '} 
    6868            <?php lbm::galleryNiceSize();?>. 
    6969          </span>  
     
    8383        <form action="<?php lbm::linkActionIndexGalleryRename();?>" method="post"> 
    8484          <p> 
    85             <label mXattribut="for:for_id" class="float"><strong><?php ___('New name');?> : </strong></label> 
     85            <label mXattribut="for:for_id" class="float"><strong>{i18n 'New name'} : </strong></label> 
    8686            <input type="text" name="modifier_galerie" mXattribut="value:val_modifier_galerie;id:id_id" /> 
    8787            <span class="erreur"><mx:text id="err_modifier_galerie"/></span> 
    8888          </p> 
    8989          <p> 
    90             <input class="submit" type="submit" value="<?php ___('Rename');?>" /> 
     90            <input class="submit" type="submit" value="{i18n 'Rename'}" /> 
    9191          </p> 
    9292        </form> 
    9393      </td> 
    9494      <td class="liste_photo_td"> 
    95         <p><strong><?php ___('Private');?> : </strong> 
     95        <p><strong>{i18n 'Private'} : </strong> 
    9696          <?php if(lbm::isPrivate()):?> 
    97              <?php ___('yes');?><br /> 
     97             {i18n 'yes'}<br /> 
    9898             <?php if(lbm::isPrivateExact()):?> 
    99                         <a href=""><?php ___('set as public');?></a> 
     99                        <a href="">{i18n 'set as public'}</a> 
    100100             <?php endif;?> 
    101101          <?php else:?> 
    102              <?php ___('no');?><br /> 
    103                 <a href=""><?php ___('set as private');?></a> 
     102             {i18n 'no'}<br /> 
     103                <a href="">{i18n 'set as private'}</a> 
    104104          <?php endif;?> 
    105105          </p> 
    106106      </td> 
    107107      <td class="liste_photo_td"> 
    108         <p><a href="<?php lbm::linkActionIndexGalleryDelete();?>"><img src="<?php lbm::imgSrc('delete.png');?>" alt="<?php ___('Delete');?>" /></a></p> 
     108        <p><a href="<?php lbm::linkActionIndexGalleryDelete();?>"><img src="<?php lbm::imgSrc('delete.png');?>" alt="{i18n 'Delete'}" /></a></p> 
    109109      </td> 
    110110    </tr> 
     
    120120 
    121121 
    122 <?php include ('footer.php');?> 
     122{include 'footer.html'}