Changeset 16697 for extensions/BatchDownloader/admin
- Timestamp:
- Jul 13, 2012, 8:42:34 PM (12 years ago)
- Location:
- extensions/BatchDownloader/admin
- Files:
-
- 4 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
Note: See TracChangeset
for help on using the changeset viewer.