]> ruin.nu Git - ndwebbie.git/blobdiff - templates/alliances.tmpl
Converted hostileAlliances
[ndwebbie.git] / templates / alliances.tmpl
index a7e67dd81e068aff2f4922668d6d7809c7ab68c8..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">
-<table>
+<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 class="stats">
        <tr>
-               <th><a href="<TMPL_VAR NAME=PAGE>?alliance=<TMPL_VAR NAME=Id>&amp;order=coords">Coords</a></th>
+               <th><a href="/<TMPL_VAR NAME=PAGE>?alliance=<TMPL_VAR NAME=Id>&amp;order=coords">Coords</a></th>
                <th>Nick</th>
-               <th><a href="<TMPL_VAR NAME=PAGE>?alliance=<TMPL_VAR NAME=Id>&amp;order=hit_us">Hit us</a></th>
+               <th><a href="/<TMPL_VAR NAME=PAGE>?alliance=<TMPL_VAR NAME=Id>&amp;order=hit_us">Hit us</a></th>
                <th>Planet</th>
-               <th><a href="<TMPL_VAR NAME=PAGE>?alliance=<TMPL_VAR NAME=Id>&amp;order=race">Race</a></th>
-               <th><a href="<TMPL_VAR NAME=PAGE>?alliance=<TMPL_VAR NAME=Id>&amp;order=size">Size (rank)</a></th>
-               <th><a href="<TMPL_VAR NAME=PAGE>?alliance=<TMPL_VAR NAME=Id>&amp;order=score">Score (rank)</a></th>
-               <th><a href="<TMPL_VAR NAME=PAGE>?alliance=<TMPL_VAR NAME=Id>&amp;order=value">Value (rank)</a></th>
-               <th><a href="<TMPL_VAR NAME=PAGE>?alliance=<TMPL_VAR NAME=Id>&amp;order=xp">XP (rank)</a></th>
+               <th><a href="/<TMPL_VAR NAME=PAGE>?alliance=<TMPL_VAR NAME=Id>&amp;order=race">Race</a></th>
+               <th><a href="/<TMPL_VAR NAME=PAGE>?alliance=<TMPL_VAR NAME=Id>&amp;order=size">Size (rank)</a></th>
+               <th><a href="/<TMPL_VAR NAME=PAGE>?alliance=<TMPL_VAR NAME=Id>&amp;order=score">Score (rank)</a></th>
+               <th><a href="/<TMPL_VAR NAME=PAGE>?alliance=<TMPL_VAR NAME=Id>&amp;order=value">Value (rank)</a></th>
+               <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>
@@ -50,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>
@@ -58,9 +68,9 @@
                <th>Ingal</th><th>Reported by</th>
        </tr>
        <TMPL_LOOP Intel>
-       <tr class="<TMPL_IF ODD>odd<TMPL_ELSE>even</TMPL_IF>">
-       <td><a href="intel?coords=<TMPL_VAR NAME=Origin>"><TMPL_VAR NAME=Origin></a></td>
+       <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>
        <td align="center"><TMPL_VAR NAME=landingtick></td>
        <td align="center"><TMPL_VAR NAME=ETA></td>
 </div>
 
 <TMPL_ELSE>
-<table>
+<table class="stats">
        <tr>
                <th>User</th>
                <th>Known members</th>
                <th>Total members</th>
-               <th><a href="<TMPL_VAR NAME=PAGE>?order=score">Score</a> (<a href="<TMPL_VAR NAME=PAGE>?order=kscore">known planets</a>)</th>
-               <th><a href="<TMPL_VAR NAME=PAGE>?order=scavg">Avg Score</a> (<a href="<TMPL_VAR NAME=PAGE>?order=kscavg">known planets</a>)</th>
-               <th><a href="<TMPL_VAR NAME=PAGE>?order=size">Size</a> (<a href="<TMPL_VAR NAME=PAGE>?order=ksize">known planets</a>)</th>
-               <th><a href="<TMPL_VAR NAME=PAGE>?order=siavg">Avg Size</a> (<a href="<TMPL_VAR NAME=PAGE>?order=ksiavg">known planets</a>)</th>
-               <th><a href="<TMPL_VAR NAME=PAGE>?order=kxp">XP</a> (<a href="<TMPL_VAR NAME=PAGE>?order=kxpavg">avg</a>)</th>
-               <th><a href="<TMPL_VAR NAME=PAGE>?order=kvalue">Value</a> (<a href="<TMPL_VAR NAME=PAGE>?order=kvalavg">avg</a>)</th>
+               <th><a href="/<TMPL_VAR NAME=PAGE>?order=score">Score</a> (<a href="/<TMPL_VAR NAME=PAGE>?order=kscore">known planets</a>)</th>
+               <th><a href="/<TMPL_VAR NAME=PAGE>?order=scavg">Avg Score</a> (<a href="/<TMPL_VAR NAME=PAGE>?order=kscavg">known planets</a>)</th>
+               <th><a href="/<TMPL_VAR NAME=PAGE>?order=size">Size</a> (<a href="/<TMPL_VAR NAME=PAGE>?order=ksize">known planets</a>)</th>
+               <th><a href="/<TMPL_VAR NAME=PAGE>?order=siavg">Avg Size</a> (<a href="/<TMPL_VAR NAME=PAGE>?order=ksiavg">known planets</a>)</th>
+               <th><a href="/<TMPL_VAR NAME=PAGE>?order=kxp">XP</a> (<a href="/<TMPL_VAR NAME=PAGE>?order=kxpavg">avg</a>)</th>
+               <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>">
-               <td><a href="<TMPL_VAR NAME=PAGE>?alliance=<TMPL_VAR NAME=Id>"><TMPL_VAR NAME=Name></a></td>
+       <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>
                <td><TMPL_VAR NAME=score> (<TMPL_VAR NAME=kscore>)</td>