]> ruin.nu Git - ndwebbie.git/blobdiff - templates/alliances.tmpl
Converted hostileAlliances
[ndwebbie.git] / templates / alliances.tmpl
index 4f27a2c4c22c17fa05d9737a9294a7c70c2f1979..e009fcfd976e8a4120974612c5fdb3f4e1b3a389 100644 (file)
@@ -1,10 +1,9 @@
-<TMPL_VAR NAME=Error>
 <TMPL_IF Alliance>
-<form action="<TMPL_VAR NAME=PAGE>" method="post"><fieldset> <legend>Alliances: </legend>
+<fieldset> <legend>Alliances: </legend><form action="<TMPL_VAR NAME=PAGE>" method="post">
+<div class="leftinfo">
        <input type="hidden" name="page" value="<TMPL_VAR NAME=PAGE>"/>
        <input type="hidden" name="cmd" value="change"/>
        <input type="hidden" name="alliance" value="<TMPL_VAR NAME=Id>"/>
-<div class="leftinfo">
        <p>Alliance: <TMPL_VAR NAME=Alliance></p>
        <p>Relationship: <select name="relationship">
                <TMPL_LOOP Relationships>
                </TMPL_LOOP>
                </select>
                <input type="checkbox" name="crelationship"/></p>
-</div>
 
-<div class="leftinfo">
        <p>Paste a list of coords that you want to add to this alliance</p>
        <textarea rows="10" cols="40" name="coords"></textarea>
-</div>
-<div class="clear">&nbsp;</div>
        <p class="claimlinks"><input type="submit" value="Submit"/></p>
+</div>
+</form>
+<div class="leftinfo">
+<form action="<TMPL_VAR NAME=PAGE>" method="post"><fieldset> <legend></legend>
+       <input type="hidden" name="page" value="<TMPL_VAR NAME=PAGE>"/>
+       <input type="hidden" name="cmd" value="remove_all"/>
+       <input type="hidden" name="alliance" value="<TMPL_VAR NAME=Id>"/>
+       <p>Yes, remove all planets <input type="checkbox" name="crelationship"/></p>
+       <input type="submit" value="Remove All Planets"/>
 </fieldset></form>
+</div>
+</fieldset>
 <div class="leftinfo">
 <img class="graph" src="/graph/alliance/<TMPL_VAR NAME=Id>" alt="Alliance size and score vs members" height="300" width="500"/>
 <img class="graph" src="/graph/allianceavg/<TMPL_VAR NAME=Id>" alt="Avg alliance size and score vs members" height="300" width="500"/>
 </div>
 <div class="leftinfo">
-<table>
+<table class="stats">
        <tr>
                <th><a href="/<TMPL_VAR NAME=PAGE>?alliance=<TMPL_VAR NAME=Id>&amp;order=coords">Coords</a></th>
                <th>Nick</th>
@@ -39,7 +45,7 @@
                <th><a href="/<TMPL_VAR NAME=PAGE>?alliance=<TMPL_VAR NAME=Id>&amp;order=xp">XP (rank)</a></th>
        </tr>
        <TMPL_LOOP Members>
-       <tr class="<TMPL_IF ODD>odd<TMPL_ELSE>even</TMPL_IF>">
+       <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>"><a href="intel?coords=<TMPL_VAR NAME=Coords>"><TMPL_VAR NAME=Nick>(<TMPL_VAR NAME=Planet_status>)</a></td>
                <td><TMPL_VAR NAME=hit_us></td>
@@ -54,7 +60,7 @@
 </table>
 </div>
 <div class="leftinfo">
-<table>
+<table class="stats">
        <tr>
                <th>Alliance</th><th>Sender</th>
                <th>Mission</th><th>Landing tick</th><th>ETA</th><th>Amount</th>
@@ -62,7 +68,7 @@
                <th>Ingal</th><th>Reported by</th>
        </tr>
        <TMPL_LOOP Intel>
-       <tr class="<TMPL_IF ODD>odd<TMPL_ELSE>even</TMPL_IF>">
+       <tr class="<TMPL_IF __odd__>odd<TMPL_ELSE>even</TMPL_IF>">
        <td><TMPL_VAR NAME=OAlliance></td>
        <td><a href="intel?coords=<TMPL_VAR NAME=Origin>"><TMPL_VAR NAME=Origin></a></td>
        <td class="<TMPL_VAR NAME=MissionClass>"><TMPL_VAR NAME=Mission></td>
@@ -79,7 +85,7 @@
 </div>
 
 <TMPL_ELSE>
-<table>
+<table class="stats">
        <tr>
                <th>User</th>
                <th>Known members</th>
@@ -92,7 +98,7 @@
                <th><a href="/<TMPL_VAR NAME=PAGE>?order=kvalue">Value</a> (<a href="/<TMPL_VAR NAME=PAGE>?order=kvalavg">avg</a>)</th>
        </tr>
 <TMPL_LOOP Alliances>
-       <tr class="<TMPL_IF ODD>odd<TMPL_ELSE>even</TMPL_IF>">
+       <tr class="<TMPL_IF __odd__>odd<TMPL_ELSE>even</TMPL_IF>">
                <td><a href="/<TMPL_VAR NAME=PAGE>?alliance=<TMPL_VAR NAME=Id>"><TMPL_VAR NAME=Name></a></td>
                <td><TMPL_VAR NAME=kmem></td>
                <td><TMPL_VAR NAME=members></td>