source: trunk/wtorrent/home/tpl/list/cell.tpl.php @ 53

Revision 53, 4.4 KB checked in by royger, 2 years ago (diff)
  • New Interface.
  • wTorrent no longer uses shadedborder javascript library, since it made the rendering slow. Now it's all done with transparent pngs.
  • This should fix #57.
Line 
1<div class="tbBulk" id="itab{$hash}">
2        <div id="tbColTab"></div>
3    {if $web->isHashChecking($hash) eq true}
4        {assign var='bg_cell' value=$DIR_IMG|cat:'chash_bg.png'}
5    {elseif $web->getTstate($hash) eq 'message'}
6        {assign var='bg_cell' value=$DIR_IMG|cat:'error_bg.png'}
7    {/if}
8        <div id="tbCell" style="cursor: pointer; background-color: #e5edf4; border-top: 0px solid #d4d4d4;{if isset($bg_cell)} background-image: url({$bg_cell});{/if}" onmouseover="style.backgroundColor='#d5e991';" onmouseout="style.backgroundColor='#e5edf4'">   
9                <div id="tbContentCell" style="width: 96px; padding-left: 0px; padding-top: 6px; height: 24px; text-align: left;">
10                        <input type="checkbox" id="{$hash}" class="torrent" style="margin: 0 0 5px 3px;" />
11                        {if $web->getState($hash) eq 0 || $web->getOpen($hash) eq 0}
12                <div style="cursor: pointer; display: inline;">
13                    <img src="{$DIR_IMG}bullet_go.png" onclick="command('start', '{$hash}');" alt="{$str.start}" title="{$str.start}" />
14                </div>
15            {else}
16                <div style="cursor: pointer; display: inline;">
17                    <img src="{$DIR_IMG}cross.png"  onclick="command('stop', '{$hash}');" alt="{$str.stop}" title="{$str.stop}" />
18                </div>
19            {/if}
20            {if $web->getOpen($hash) neq 0}
21                <div style="cursor: pointer; display: inline;">
22                    <img src="{$DIR_IMG}lock_delete.png" onclick="command('close', '{$hash}');" alt="{$str.close}" title="{$str.close}" />
23                </div>
24            {/if}
25                <div style="cursor: pointer; display: inline;">
26                    <img src="{$DIR_IMG}delete.png" onclick="command('erase', '{$hash}');" alt="{$str.erase}" title="{$str.erase}" />
27                </div>
28            {if $web->isHashChecking($hash) neq true}
29                <div style="cursor: pointer; display: inline;">
30                    <img src="{$DIR_IMG}c_hash.png" onclick="command('chash', '{$hash}');" alt="{$str.chash}" title="{$str.chash}" />
31                </div>
32            {/if}
33                </div>
34        <div class="tbContentCell" id="tip{$hash}" style="padding-top: 0px;">
35        <div id="tbContentCell" style="width: 365px; text-align: left; padding-left: 10px;" onclick="resizeInnerTab('{$hash}');">
36                        {if $web->getState($hash) eq 1 && $web->getPercent($hash) neq 100}
37                                {assign var="color" value="green"}
38                        {/if}
39                        {if $web->getState($hash) eq 1 && $web->getPercent($hash) eq 100}
40                                {assign var="color" value="blue"}
41                        {/if}
42                        {if $web->getState($hash) eq 0 || $web->getOpen($hash) eq 0}
43                                {assign var="color" value="black"}
44                        {/if}
45                        <span style="color: {$color};">
46                {$web->getName($hash)|truncate:76:". . ."}
47                {if $web->isHashChecking($hash) eq true}
48                    [CHECKING HASH]
49                {/if}
50            </span>
51                </div>
52                <div id="tbContentCell" style="width: 55px;" onclick="resizeInnerTab('{$hash}');">
53                        {$web->getTotalSeeds($hash)} ({$web->getConnSeeds($hash)})
54                </div>
55                <div id="tbContentCell" style="width: 55px;" onclick="resizeInnerTab('{$hash}');">
56                        {$web->getTotalPeers($hash)} ({$web->getConnPeers($hash)})
57                </div>
58                <div id="tbContentCell" style="width: 45px;" onclick="resizeInnerTab('{$hash}');">
59                        {$web->getDownRate($hash)}
60                </div>
61                <div id="tbContentCell" style="width: 45px;" onclick="resizeInnerTab('{$hash}');">
62                        {$web->getUpRate($hash)}
63                </div>
64                <div id="tbContentCell" style="width: 45px;" onclick="resizeInnerTab('{$hash}');">
65                        {$web->getDone($hash)}
66                </div>
67                <div id="tbContentCell" style="width: 55px;" onclick="resizeInnerTab('{$hash}');">
68                        {$web->getSize($hash)}
69                </div>
70                <div id="tbContentCell" style="width: 45px;" onclick="resizeInnerTab('{$hash}');">
71                        {$web->getPercent($hash)}%
72                </div>
73                        {if $web->getRatio($hash) < 1}
74                                {assign var=ratio value="red"}
75                        {else}
76                                {assign var=ratio value="green"}
77                        {/if}
78                <div id="tbContentCell" style="color: {$ratio}; width: 35px;" onclick="resizeInnerTab('{$hash}');">
79                        {$web->getRatio($hash)}
80                </div>
81                <div id="tbContentCell" style="width: 60px;" onclick="resizeInnerTab('{$hash}');">
82                        {$web->getETA($hash)}
83                </div>
84        </div>
85        </div>
86</div>
87<div class="tbBulk" id="ttab{$hash}" style="display: none; height: auto;">
88        <div id="tbColTab">{include file="tabsL.tpl.php" id=$clau hash=$hash}</div>
89    <div id="tab{$hash}" style="border: 1px solid #d4d4d4; border-top-width: 0px; width: 912px; float: left; display: block;"></div>
90</div>
Note: See TracBrowser for help on using the repository browser.