]> ruin.nu Git - ndwebbie.git/blobdiff - templates/calls.tmpl
show forum thread on intel
[ndwebbie.git] / templates / calls.tmpl
index b08723d340f521f8cd4a437a5af36699d2e68acc..892ee1051ac5bce5521d76b8e54e8377ea08b1b3 100644 (file)
@@ -1,11 +1,81 @@
+<TMPL_VAR NAME=Error>
 <TMPL_IF Call>
+<form action="<TMPL_VAR NAME=PAGE>" method="post"><fieldset> <legend>Call details, call# <TMPL_VAR NAME=Call></legend>
+       <input type="hidden" name="page" value="<TMPL_VAR NAME=PAGE>"/>
+       <input type="hidden" name="call" value="<TMPL_VAR NAME=Call>"/>
+       <p>Current DC: <TMPL_VAR NAME=DC></p>
+       <p>Member: <a href="check?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 class="<TMPL_IF ODD>odd<TMPL_ELSE>even</TMPL_IF>">
+                                       <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="<TMPL_VAR NAME=PAGE>" method="post">
+       <input type="hidden" name="page" value="<TMPL_VAR NAME=PAGE>"/>
+       <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 class="<TMPL_IF ODD>odd<TMPL_ELSE>even</TMPL_IF>">
+               <td><a href="check?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>
 <TMPL_LOOP Calls>
        <tr align="center" class="<TMPL_IF ODD>odd<TMPL_ELSE>even</TMPL_IF>">
-               <td><a href="index.pl?page=calls&amp;call=<TMPL_VAR NAME=Id>"><TMPL_VAR NAME=Id></a></td>
-               <td><TMPL_VAR NAME=Coords> (<TMPL_VAR NAME=Defense_points>)</td>
+               <td class="<TMPL_VAR NAME=DC>"><a href="<TMPL_VAR NAME=PAGE>?call=<TMPL_VAR NAME=Id>"><TMPL_VAR NAME=Id></a></td>
+               <td class='<TMPL_VAR NAME=DefPrio>'><TMPL_VAR NAME=Coords> <TMPL_IF Id>(<TMPL_VAR NAME=Defense_points>)<TMPL_ELSE>-New Day-</TMPL_IF></td>
                <td><TMPL_VAR NAME=Landing_tick></td>
                <td><TMPL_VAR NAME=Race></td>
                <td><TMPL_VAR NAME=Amount></td>