Changeset 16697 for extensions
- Timestamp:
- Jul 13, 2012, 8:42:34 PM (12 years ago)
- Location:
- extensions/BatchDownloader
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/BatchDownloader/admin/sets.php
r16689 r16697 17 17 $BatchDownloader->deleteLastArchive(); 18 18 $BatchDownloader->clearImages(); 19 } 20 if (isset($_POST['delete_done'])) 21 { 22 $query = ' 23 DELETE s, i 24 FROM '.BATCH_DOWNLOAD_TSETS.' AS s 25 LEFT JOIN '.BATCH_DOWNLOAD_TIMAGES.' AS i 26 ON i.set_id = s.id 27 WHERE 28 status = "done" AND 29 date_creation < DATE_SUB(NOW(), INTERVAL 1 HOUR) 30 ;'; 31 pwg_query($query); 19 32 } 20 33 … … 62 75 { 63 76 $set = new BatchDownloader($set_id); 77 64 78 $template->append('sets', array_merge( 65 79 $set->getSetInfo(), -
extensions/BatchDownloader/admin/template/config.tpl
r16689 r16697 90 90 <label> 91 91 <span class="property">{'Maximum number of photos per download set'|@translate}</span> 92 <div id="max_elements" "></div>92 <div id="max_elements"></div> 93 93 <input type="text" name="max_elements" value="{$batch_download.max_elements}" size="5"> 94 94 </label> -
extensions/BatchDownloader/admin/template/sets.tpl
r16400 r16697 64 64 <td>{$set.NB_ARCHIVES}</td> 65 65 <td> 66 {$set.STATUS }67 {if $set.STATUS == 'download'} ({$set.LAST_ZIP}/{$set.NB_ARCHIVES}){/if}66 {$set.STATUS|@translate} 67 {if $set.STATUS == 'download'}<i style="font-size:0.8em;">({$set.LAST_ZIP}/{$set.NB_ARCHIVES})</i>{/if} 68 68 </td> 69 69 <td style="padding-left:25px;"> … … 80 80 {/if} 81 81 </table> 82 83 <form action="{$F_FILTER_ACTION}" method="post"> 84 <p><label><input type="checkbox" name="delete_done" value="1"> {'Remove all finished downloads'|@translate}</label> 85 <input type="submit" value="{'Submit'|@translate}"></p> 86 </form> -
extensions/BatchDownloader/admin/template/style.css
r16626 r16697 44 44 } 45 45 .table2 .status { 46 width: 80px;46 width:120px; 47 47 } 48 48 -
extensions/BatchDownloader/include/BatchDownloader.class.php
r16695 r16697 607 607 try 608 608 { 609 if (!class_exists('UserCollection')) throw new Exception(); 609 610 $UserCollection = new UserCollection($this->data['type_id']); 610 611 $set['NAME'] = l10n('Collection').': <a href="'.USER_COLLEC_PUBLIC.'view/'.$UserCollection->getParam('id').'">'.$UserCollection->getParam('name').'</a>'; -
extensions/BatchDownloader/include/events.inc.php
r16689 r16697 106 106 107 107 // toolbar button 108 $button = '<li><a href="'. $url .'&action=advdown_set" title="'.l10n('Download all pictures of this selection').'" class="pwg-state-default pwg-button" rel="nofollow" 109 onClick="return confirm(\''.sprintf(l10n('Confirm the download of %d pictures?'), count($page['items'])).'\');"> 108 $button = '<script type="text/javascript">var batchdown_count = '.count($page['items']).'; var batchdown_string = "'.l10n('Confirm the download of %d pictures?').'";</script> 109 <li><a href="'. $url .'&action=advdown_set" title="'.l10n('Download all pictures of this selection').'" class="pwg-state-default pwg-button" rel="nofollow" 110 onClick="return confirm(batchdown_string.replace(\'%d\', batchdown_count));"> 110 111 <span class="pwg-icon batch-downloader-icon" style="background:url(\'' . BATCH_DOWNLOAD_PATH . 'template/zip.png\') center center no-repeat;"> </span><span class="pwg-button-text">'.l10n('Batch Downloader').'</span> 111 112 </a></li>'; -
extensions/BatchDownloader/language/en_UK/plugin.lang.php
r16689 r16697 43 43 $lang['Remove from download set'] = 'Remove from download set'; 44 44 $lang['Confirm the download of %d pictures?'] = 'Confirm the download of %d pictures?'; 45 $lang['Remove all finished downloads'] = 'Remove all finished downloads'; 46 $lang['hours'] = 'hours'; 45 47 46 48 ?> -
extensions/BatchDownloader/language/fr_FR/plugin.lang.php
r16689 r16697 23 23 $lang['Archives'] = 'Archives'; 24 24 $lang['Maximum photo size'] = 'Taille maximale des photo'; 25 $lang['Delete unterminateddownloads after'] = 'Supprimer les téléchargements après';25 $lang['Delete downloads after'] = 'Supprimer les téléchargements après'; 26 26 $lang['Maximum number of photos per download set'] = 'Nombre maximal de photos par lot'; 27 27 $lang['Maximum size of each archive (in Megabytes)'] = 'Taille maximale de chaque archive (en Megaoctets)'; … … 43 43 $lang['Remove from download set'] = 'Supprimer du lot'; 44 44 $lang['Confirm the download of %d pictures?'] = 'Confirmer le téléchargementde %d photos ?'; 45 $lang['Remove all finished downloads'] = 'Supprimer tous les téléchargements terminés'; 46 $lang['hours'] = 'heures'; 45 47 46 48 ?>
Note: See TracChangeset
for help on using the changeset viewer.