From: <bel...@us...> - 2003-02-27 00:44:43
|
Update of /cvsroot/btplusplus/BT++/src/WebTemplates In directory sc8-pr-cvs1:/tmp/cvs-serv25717/src/WebTemplates Added Files: log.tmpl torrent.tmpl Log Message: HTML Templates for Torrent view and Log, ETA for Loaders --- NEW FILE: log.tmpl --- <html> <head> <title>WebTorrent++ Log</title> </head> <body bgcolor=#AA6666> <h1>WebTorrent++ Log</h1> <table border=1 cellpadding=4> <TMPL_LOOP Logs> <TMPL_IF LogLevelTrivial> <tr bgcolor=#FFFF66> <TMPL_ELSE> <TMPL_IF LogLevelInfo> <tr bgcolor=#66DD66> <TMPL_ELSE> <tr bgcolor=#FF6666> </TMPL_IF> </TMPL_IF> <td nowrap><TMPL_VAR TimeCode></td> <td width=100%><TMPL_VAR Entry></td> </tr> </TMPL_LOOP> </table> </body> </html> --- NEW FILE: torrent.tmpl --- <html> <head> <title>WebTorrent++ Download Status</title> <META HTTP-EQUIV="Refresh" CONTENT="<TMPL_VAR refresh>"> </head> <body bgcolor=#CCCC00> <TMPL_UNLESS Loaders> <p> No Torrents <TMPL_ELSE> <table border=1 width=100% cellpadding=3> <tr bgcolor=#DDDDDD> <th colspan=2>Incomplete</th> <th align=left>File</th> <th>Status</th> <th>Downloaded</th> <th>Size</th> <th>Speed</th> <th>ETA</th> </tr> <TMPL_LOOP Loaders> <form method=POST action="torrents"> <input type=hidden name=nr value=<TMPL_VAR __PASS__>> <TMPL_IF Auto> <tr bgcolor=#CCFFCC> <TMPL_ELSE> <tr bgcolor=#BFD8BC> </TMPL_IF> <td><button type=submit name=command value=<TMPL_VAR Command>><TMPL_VAR Command></button></td> <td> <table> <tr> <td><button type=submit name=command <TMPL_IF __FIRST__>disabled</TMPL_IF> value=MoveUp style="font-size:xx-small; font-weight:bold">↑</button></td> </tr> <tr> <td><button type=submit name=command <TMPL_IF __LAST__>disabled</TMPL_IF> value=MoveDown style="font-size:xx-small; font-weight:bold">↓</button></td> </tr> </table> </td> <td align=left nowrap> <table width=100%> <tr> <td><TMPL_VAR FileName></td> </tr> <tr> <td> <table width=100% bordercolor=#0000BB border=1 cellspacing=0 cellpadding=0><tr><td> <table width=100% height=100%> <tr> <TMPL_IF Preparing> <td bgcolor=#6666CC width=100% style="font-size:2px"> </td> <TMPL_ELSE> <TMPL_IF Hashing> <td bgcolor=#CC6666 width=<TMPL_VAR PercentDone>% style="font-size:2px"> </td> <td bgcolor=#6666CC width=<TMPL_VAR PercentLeft>% style="font-size:2px"> </td> <TMPL_ELSE> <td bgcolor=#66CC66 width=<TMPL_VAR PercentDone>% style="font-size:2px"> </td> <td bgcolor=#CC6666 width=<TMPL_VAR PercentLeft>% style="font-size:2px"> </td> </TMPL_IF> </TMPL_IF> </tr> </table> </tr></td></table> </td> </tr> </table> </td> <td align=center><TMPL_VAR Status></td> <td align=center nowrap><TMPL_VAR FileSizeDone> [<TMPL_VAR PercentDonePrec>%]</td> <td align=center nowrap><TMPL_VAR FileSize></td> <td align=center nowrap><TMPL_VAR SpeedDown> <b>down</b><br> <TMPL_VAR SpeedUp> <b>up</b></td> <td align=center nowrap><TMPL_VAR ETA></td> </tr> </form> </TMPL_LOOP> </table> </TMPL_UNLESS> </body> </html> |