Changeset 21607


Ignore:
Timestamp:
Mar 16, 2013, 8:16:38 PM (7 years ago)
Author:
mistic100
Message:

clean code and missing translation

Location:
extensions/BatchDownloader
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/BatchDownloader/admin/sets.php

    r18373 r21607  
    122122  );
    123123
    124 $template->assign('status_options', $page['status_items']);
    125 $template->assign('status_selected',
    126     isset($_POST['status']) ? $_POST['status'] : '');
     124$template->assign(array(
     125  'status_options' => $page['status_items'],
     126  'status_selected' => isset($_POST['status']) ? $_POST['status'] : '',
     127  'type_options' => $page['type_items'],
     128  'type_selected' => isset($_POST['type']) ? $_POST['type'] : '',
     129  'order_options' => $page['order_by_items'],
     130  'order_selected' => isset($_POST['order_by']) ? $_POST['order_by'] : '',
     131  'direction_options' => $page['direction_items'],
     132  'direction_selected' => isset($_POST['direction']) ? $_POST['direction'] : '',
    127133
    128 $template->assign('type_options', $page['type_items']);
    129 $template->assign('type_selected',
    130     isset($_POST['type']) ? $_POST['type'] : '');
    131 
    132 $template->assign('order_options', $page['order_by_items']);
    133 $template->assign('order_selected',
    134     isset($_POST['order_by']) ? $_POST['order_by'] : '');
    135 
    136 $template->assign('direction_options', $page['direction_items']);
    137 $template->assign('direction_selected',
    138     isset($_POST['direction']) ? $_POST['direction'] : '');
    139 
    140 
    141 $template->assign(array(
    142134  'F_USERNAME' => @htmlentities($_POST['username'], ENT_COMPAT, 'UTF-8'),
    143135  'F_FILTER_ACTION' => BATCH_DOWNLOAD_ADMIN . '-sets',
  • extensions/BatchDownloader/admin/template/sets.tpl

    r20138 r21607  
    88<fieldset>
    99  <legend>{'Filter'|@translate}</legend>
    10   <input type="hidden" name="page" value="user_list">
    11 
    12   <label>{'Username'|@translate} <input type="text" name="username" value="{$F_USERNAME}"></label>
    1310
    1411  <label>
    15   {'Set type'|@translate}
    16   {html_options name=type options=$type_options selected=$type_selected}
     12    {'Username'|@translate}
     13    <input type="text" name="username" value="{$F_USERNAME}">
     14  </label>
     15
     16  <label>
     17    {'Set type'|@translate}
     18    {html_options name=type options=$type_options selected=$type_selected}
    1719  </label>
    1820 
    1921  <label>
    20   {'Status'|@translate}
    21   {html_options name=status options=$status_options selected=$status_selected}
     22    {'Status'|@translate}
     23    {html_options name=status options=$status_options selected=$status_selected}
    2224  </label>
    2325
    2426  <label>
    25   {'Sort by'|@translate}
    26   {html_options name=order_by options=$order_options selected=$order_selected}
     27    {'Sort by'|@translate}
     28    {html_options name=order_by options=$order_options selected=$order_selected}
    2729  </label>
    2830
    2931  <label>
    30   {'Sort order'|@translate}
    31   {html_options name=direction options=$direction_options selected=$direction_selected}
     32    {'Sort order'|@translate}
     33    {html_options name=direction options=$direction_options selected=$direction_selected}
    3234  </label>
    3335
    3436  <label>
    35   &nbsp;
    36   <span><input class="submit" type="submit" name="filter" value="{'Submit'|@translate}"> <a href="{$F_FILTER_ACTION}">{'Reset'|@translate}</a></span>
     37    &nbsp;
     38    <span><input class="submit" type="submit" name="filter" value="{'Submit'|@translate}"> <a href="{$F_FILTER_ACTION}">{'Reset'|@translate}</a></span>
    3739  </label>
    3840
  • extensions/BatchDownloader/language/en_UK/plugin.lang.php

    r21422 r21607  
    4848$lang['Warning: Only registered users can use Batch Downloader.'] = 'Warning: Only registered users can use Batch Downloader.';
    4949$lang['What can be downloaded?'] = 'What can be downloaded?';
     50$lang['No result'] = 'No result';
    5051
    5152?>
  • extensions/BatchDownloader/language/fr_FR/plugin.lang.php

    r21422 r21607  
    4848$lang['Warning: Only registered users can use Batch Downloader.'] = 'Attention: seuls les utilisateurs enregistrés peuvent utiliser Batch Downloader.';
    4949$lang['What can be downloaded?'] = 'Qu\'est-ce qui peut être téléchargé ?';
     50$lang['No result'] = 'Aucun résultat';
    5051
    5152?>
Note: See TracChangeset for help on using the changeset viewer.