]> ruin.nu Git - ndwebbie.git/blobdiff - templates/calls.tmpl
member intel, shows all incoming and outgoing fleets for member planets
[ndwebbie.git] / templates / calls.tmpl
index b08723d340f521f8cd4a437a5af36699d2e68acc..da9420cd3b2bd32840a38cd1a24826446e09c3d8 100644 (file)
@@ -1,4 +1,72 @@
+<TMPL_VAR NAME=Error>
 <TMPL_IF Call>
+<form action="/index.pl" method="post"><fieldset> <legend>Call details, call# <TMPL_VAR NAME=Call></legend>
+       <input type="hidden" name="page" value="calls"/>
+       <input type="hidden" name="call" value="<TMPL_VAR NAME=Call>"/>
+       <p>Current DC: <TMPL_VAR NAME=DC></p>
+       <p>Member: <a href="index.pl?page=check&amp;coords=<TMPL_VAR NAME=Coords>"><TMPL_VAR NAME=Coords></a></p>
+       <p>Defense points: <TMPL_VAR NAME=DefensePoints></p>
+       <p>Landing at tick: <input type="text" name="tick" value="<TMPL_VAR NAME=LandingTick>"/>
+               <input type="checkbox" name="ctick"/></p>
+       <p>ETA: <TMPL_VAR NAME=ETA></p>
+       <fieldset><legend>Member fleet</legend>
+       <TMPL_LOOP Fleets><TMPL_IF NAME=Id></TMPL_IF>
+       <div class="leftinfo">
+               <TMPL_IF Fleetcatch><p><b>FLEETCATCH</b></p></TMPL_IF>
+               <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>
+               <table>
+                       <tr><th>Ship</th><th>Amount</th></tr>
+                       <TMPL_LOOP Ships>
+                               <tr><td><TMPL_VAR NAME=Ship></td><td><TMPL_VAR NAME=Amount></td></tr>
+                       </TMPL_LOOP>
+               </table>
+       </div>
+       </TMPL_LOOP Fleets>
+       </fieldset>
+       <p>Userful information. Change?<input type="checkbox" name="cinfo"/></p>
+       <textarea rows="15" cols="80" name="info"><TMPL_VAR NAME=Info></textarea>
+       <p>
+               <input type="submit" name="cmd" value="Submit"/>
+               <input type="submit" name="cmd" value="Take call"/>
+               <input type="submit" name="cmd" value="<TMPL_VAR NAME=Cover> call"/>
+               <input type="submit" name="cmd" value="<TMPL_VAR NAME=Ignore> call"/>
+       </p>
+</fieldset></form>
+<p>Attackers:</p>
+<form action="index.pl" method="post">
+       <input type="hidden" name="page" value="calls"/>
+       <input type="hidden" name="call" value="<TMPL_VAR NAME=Call>"/>
+       <table>
+       <tr>
+       <th>Coords</th>
+       <th>Planet status</th>
+       <th>Alliance</th>
+       <th>Race</th>
+       <th>Initial ETA</th>
+       <th>Amount</th>
+       <th>Shiptypes</th>
+       <th>Fleet</th>
+       <th>Change/remove?</th>
+       </tr>
+       <TMPL_LOOP Attackers>
+       <tr>
+               <td><a href="index.pl?page=check&amp;coords=<TMPL_VAR NAME=Coords>"><TMPL_VAR NAME=Coords></a></td>
+               <td class="<TMPL_VAR NAME=Planet_status>"><TMPL_VAR NAME=Planet_status></td>
+               <td class="<TMPL_VAR NAME=Relationship>"><TMPL_VAR NAME=Alliance> (<TMPL_VAR NAME=Relationship>)</td>
+               <td><TMPL_VAR NAME=Race></td>
+               <td><TMPL_VAR NAME=ETA></td>
+               <td><TMPL_VAR NAME=Amount></td>
+               <td><input class="coord" type="text" name="shiptype:<TMPL_VAR NAME=Id>" value="<TMPL_VAR NAME=Shiptype>"/></td>
+               <td><TMPL_VAR NAME=Fleet></td>
+               <td><input type="checkbox" name="change:<TMPL_VAR NAME=Id>"/></td>
+       </tr>
+       </TMPL_LOOP>
+       </table>
+       <p>
+       <input type="submit" name="cmd" value="Change"/>
+       <input type="submit" name="cmd" value="Remove"/>
+       </p>
+       </form>
 <TMPL_ELSE>
 <table>
        <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>