Ignore:
Timestamp:
Aug 2, 2012, 6:38:10 PM (12 years ago)
Author:
mistic100
Message:
  • many small improvements
  • protect "generic" functions
  • complete localization
Location:
extensions/pbase2piwigo/admin/template
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/pbase2piwigo/admin/template/import.config.tpl

    r17225 r17314  
     1{include file='include/colorbox.inc.tpl'}
     2{include file='include/add_album.inc.tpl'}
     3
    14{footer_script require='jquery.ui.resizable'}{literal}
    25jQuery(".categoryList").resizable({
     
    1013<form action="{$F_ACTION}" method="post">
    1114<fieldset>
    12   <legend>{'Choose albums to import'|@translate}</legend>
     15  <legend>{'Select albums to import'|@translate}</legend>
    1316 
    1417  <select name="categories[]" class="categoryList" multiple="multiple" size="20">
     
    1619  </select>
    1720 
     21  <b>{'Nb albums'|@translate}</b>: {$nb_categories}<br>
     22  <b>{'Nb photos'|@translate}</b>: {$nb_pictures}<br>
     23 
    1824  <br>
    19   <a href="{$RESET_LINK}" onClick="return confirm('{'Are you sure?'|@translate}');">Reset</a>
     25  <a href="{$RESET_LINK}" onClick="return confirm('{'Are you sure?'|@translate}');">{'Reset'|@translate}</a>
    2026</fieldset>
    2127
     
    2329  <legend>{'Configuration'|@translate}</legend>
    2430 
    25   <p><label><input type="checkbox" name="recursive" value="1" checked="checked"> <b>Recursive</b></label></p>
     31  <p><label><input type="checkbox" name="recursive" value="1" checked="checked"> <b>{'Recursive'|@translate}</b></label></p>
     32 
     33  <p id="albumSelectWrapper">
     34    <b>{'Import in this album'|@translate}:</b>
     35    <select style="width:400px" name="parent_category" id="albumSelect" size="1">
     36      <option value="0">------------</option>
     37      {html_options options=$associate_options}
     38    </select>
     39    {'... or '|@translate}<a href="#" class="addAlbumOpen" title="{'create a new album'|@translate}">{'create a new album'|@translate}</a>
     40  </p>
     41   
    2642  <p>
    2743    <b>{'Fill these fields from pBase datas'|@translate}:</b>
     
    3551
    3652  <p class="bottomButtons">
    37     <input type="submit" value="Begin Transfer">   
     53    <input type="submit" value="{'Begin transfer'|@translate}">   
    3854  </p>
    3955</form>
  • extensions/pbase2piwigo/admin/template/import.init_import.tpl

    r17225 r17314  
    123123
    124124{foreach from=$categories item=cat}
    125 add_cat_to_add_queue('{$cat}', 0, {$RECURSIVE}, '{$FILLS}');
     125add_cat_to_add_queue('{$cat}', {$PARENT_CATEGORY}, {$RECURSIVE}, '{$FILLS}');
    126126{/foreach}
    127127
     
    137137<div class="warnings" style="display:none;">
    138138  <ul>
    139     <li>hohiho</li>
     139    <li>null</li>
    140140  </ul>
    141141</div>
    142142
    143143<p>
    144   <b>Nb albums</b>: <span class="nb_categories">0</span>/{$nb_categories}<br>
    145   <b>Nb pictures</b>: <span class="nb_pictures">0</span>/{$nb_pictures}<br>
    146   <b>Errors</b>: <span class="nb_errors">0</span><br>
     144  <b>{'Nb albums'|@translate}</b>: <span class="nb_categories">0</span>/{$nb_categories}<br>
     145  <b>{'Nb photos'|@translate}</b>: <span class="nb_pictures">0</span>/{$nb_pictures}<br>
     146  <b>{'Errors'|@translate}</b>: <span class="nb_errors">0</span><br>
    147147  <br>
    148148  <img class="loading" src="{$PBASE_PATH}admin/template/loader-{$themeconf.name}.gif">
Note: See TracChangeset for help on using the changeset viewer.