| 1 | {if $web->getView() eq 'public'} |
|---|
| 2 | {assign var='hashes' value=$web->getPublicHashes()} |
|---|
| 3 | {else} |
|---|
| 4 | {assign var='hashes' value=$web->getPrivateHashes()} |
|---|
| 5 | {/if} |
|---|
| 6 | |
|---|
| 7 | {foreach key=clau item=hash from=$hashes name="listT"} |
|---|
| 8 | {if $smarty.foreach.listT.first} |
|---|
| 9 | {include file="list/tableHead.tpl.php"} |
|---|
| 10 | {/if} |
|---|
| 11 | {include file="list/cell.tpl.php" hash=$hash clau=$clau} |
|---|
| 12 | {if $smarty.foreach.listT.last} |
|---|
| 13 | <div style="clear: both; height: 25px; text-align: left; margin-left: 43px; margin-top: 3px;"><img src="{$DIR_IMG}arrow_ltr.png" alt="arrow" /> |
|---|
| 14 | <select id="actions"> |
|---|
| 15 | <option value="0">{$str.stop}</option> |
|---|
| 16 | <option value="4">{$str.closet}</option> |
|---|
| 17 | <option value="1">{$str.start}</option> |
|---|
| 18 | <option value="2">{$str.erase}</option> |
|---|
| 19 | <option value="3">{$str.chash}</option> |
|---|
| 20 | </select> |
|---|
| 21 | <div class="but_bottom" onclick="command('batch','');"> {$str.action} </div> |
|---|
| 22 | <div class="but_bottom" onclick="checkAllByClass('torrent');"> {$str.check_all} </div> |
|---|
| 23 | <div class="but_bottom" onclick="uncheckAllByClass('torrent');"> {$str.uncheck_all} </div> |
|---|
| 24 | <div class="but_bottom" onclick="invertAllByClass('torrent');"> {$str.invert_all} </div> |
|---|
| 25 | </div> |
|---|
| 26 | {/if} |
|---|
| 27 | {foreachelse} |
|---|
| 28 | <div class="noTorrents">{$str.no_torrents}</div> |
|---|
| 29 | {/foreach} |
|---|
| 30 | {foreach item=hash from=$hashes} |
|---|
| 31 | {include file="listT/tooltip/tip.tpl.php"} |
|---|
| 32 | {/foreach} |
|---|
| 33 | {literal} |
|---|
| 34 | <script language="javascript" type="text/javascript"> |
|---|
| 35 | function postAjax() { |
|---|
| 36 | /* Render the lateral torrents tabs */ |
|---|
| 37 | var tabsL = document.getElementsByClassName('tabsLeft'); |
|---|
| 38 | for (var i=0; i < tabsL.length; i++) { |
|---|
| 39 | var tabs = tabsL[i].getElementsByTagName('li'); |
|---|
| 40 | for(var j = 0; j < tabs.length; j++) |
|---|
| 41 | tabL.render(tabs[j]); |
|---|
| 42 | } |
|---|
| 43 | /* Render the tips */ |
|---|
| 44 | var tips = $$('.torrent'); |
|---|
| 45 | for(var i = 0; i < tips.length; i++) |
|---|
| 46 | { |
|---|
| 47 | torrentTip(tips[i].id); |
|---|
| 48 | } |
|---|
| 49 | } |
|---|
| 50 | postAjax(); |
|---|
| 51 | </script> |
|---|
| 52 | {/literal} |
|---|