]> ruin.nu Git - ndwebbie.git/blob - templates/calls.tmpl
color for defense priority
[ndwebbie.git] / templates / calls.tmpl
1 <TMPL_VAR NAME=Error>
2 <TMPL_IF Call>
3 <form action="/index.pl" method="post"><fieldset> <legend>Call details, call# <TMPL_VAR NAME=Call></legend>
4         <input type="hidden" name="page" value="calls"/>
5         <input type="hidden" name="call" value="<TMPL_VAR NAME=Call>"/>
6         <p>Current DC: <TMPL_VAR NAME=DC></p>
7         <p>Member: <a href="index.pl?page=check&amp;coords=<TMPL_VAR NAME=Coords>"><TMPL_VAR NAME=Coords></a></p>
8         <p>Defense points: <TMPL_VAR NAME=DefensePoints></p>
9         <p>Landing at tick: <input type="text" name="tick" value="<TMPL_VAR NAME=LandingTick>"/>
10                 <input type="checkbox" name="ctick"/></p>
11         <p>ETA: <TMPL_VAR NAME=ETA></p>
12         <fieldset><legend>Member fleet</legend>
13         <TMPL_LOOP Fleets><TMPL_IF NAME=Id></TMPL_IF>
14         <div class="leftinfo">
15                 <TMPL_IF Fleetcatch><p><b>FLEETCATCH</b></p></TMPL_IF>
16                 <p>Fleet mission: <TMPL_VAR NAME=Mission>, Landing tick: <TMPL_VAR NAME=Landing_Tick>, Initial eta: <TMPL_VAR NAME=ETA>, Back: <TMPL_VAR NAME=Back></p>
17                 <table>
18                         <tr><th>Ship</th><th>Amount</th></tr>
19                         <TMPL_LOOP Ships>
20                                 <tr><td><TMPL_VAR NAME=Ship></td><td><TMPL_VAR NAME=Amount></td></tr>
21                         </TMPL_LOOP>
22                 </table>
23         </div>
24         </TMPL_LOOP Fleets>
25         </fieldset>
26         <p>Userful information. Change?<input type="checkbox" name="cinfo"/></p>
27         <textarea rows="15" cols="80" name="info"><TMPL_VAR NAME=Info></textarea>
28         <p>
29                 <input type="submit" name="cmd" value="Submit"/>
30                 <input type="submit" name="cmd" value="Take call"/>
31                 <input type="submit" name="cmd" value="<TMPL_VAR NAME=Cover> call"/>
32                 <input type="submit" name="cmd" value="<TMPL_VAR NAME=Ignore> call"/>
33         </p>
34 </fieldset></form>
35 <p>Attackers:</p>
36 <form action="index.pl" method="post">
37         <input type="hidden" name="page" value="calls"/>
38         <input type="hidden" name="call" value="<TMPL_VAR NAME=Call>"/>
39         <table>
40         <tr>
41         <th>Coords</th>
42         <th>Planet status</th>
43         <th>Alliance</th>
44         <th>Race</th>
45         <th>Initial ETA</th>
46         <th>Amount</th>
47         <th>Shiptypes</th>
48         <th>Fleet</th>
49         <th>Change/remove?</th>
50         </tr>
51         <TMPL_LOOP Attackers>
52         <tr>
53                 <td><a href="index.pl?page=check&amp;coords=<TMPL_VAR NAME=Coords>"><TMPL_VAR NAME=Coords></a></td>
54                 <td class="<TMPL_VAR NAME=Planet_status>"><TMPL_VAR NAME=Planet_status></td>
55                 <td class="<TMPL_VAR NAME=Relationship>"><TMPL_VAR NAME=Alliance> (<TMPL_VAR NAME=Relationship>)</td>
56                 <td><TMPL_VAR NAME=Race></td>
57                 <td><TMPL_VAR NAME=ETA></td>
58                 <td><TMPL_VAR NAME=Amount></td>
59                 <td><input class="coord" type="text" name="shiptype:<TMPL_VAR NAME=Id>" value="<TMPL_VAR NAME=Shiptype>"/></td>
60                 <td><TMPL_VAR NAME=Fleet></td>
61                 <td><input type="checkbox" name="change:<TMPL_VAR NAME=Id>"/></td>
62         </tr>
63         </TMPL_LOOP>
64         </table>
65         <p>
66         <input type="submit" name="cmd" value="Change"/>
67         <input type="submit" name="cmd" value="Remove"/>
68         </p>
69         </form>
70 <TMPL_ELSE>
71 <table>
72         <tr><th>Call</th><th>Member (def points)</th><th>Landing tick</th><th>Races</th><th>Amount</th><th>Shiptypes</th><th>Current eta</th><th>Inital eta</th><th>Alliance</th><th>Attackers</th></tr>
73 <TMPL_LOOP Calls>
74         <tr align="center" class="<TMPL_IF ODD>odd<TMPL_ELSE>even</TMPL_IF>">
75                 <td><a href="index.pl?page=calls&amp;call=<TMPL_VAR NAME=Id>"><TMPL_VAR NAME=Id></a></td>
76                 <td class='<TMPL_VAR NAME=DefPrio>'><TMPL_VAR NAME=Coords> (<TMPL_VAR NAME=Defense_points>)</td>
77                 <td><TMPL_VAR NAME=Landing_tick></td>
78                 <td><TMPL_VAR NAME=Race></td>
79                 <td><TMPL_VAR NAME=Amount></td>
80                 <td><TMPL_VAR NAME=Shiptype></td>
81                 <td><TMPL_VAR NAME=Curreta></td>
82                 <td><TMPL_VAR NAME=Eta></td>
83                 <td><TMPL_VAR NAME=Alliance></td>
84                 <td><TMPL_VAR NAME=Attackers></td>
85         </tr>
86 </TMPL_LOOP>
87 </table>
88 </TMPL_IF>