]> ruin.nu Git - ndwebbie.git/blobdiff - templates/alliances.tmpl
global_vars and <TMPL_VAR NAME=PAGE> instead of hardcoded page values
[ndwebbie.git] / templates / alliances.tmpl
index b090cf07436d3fe8d73b08aa0efac8a2386fea6f..a7cd793f0620a2569bac13af8773d1f0c2f81e9c 100644 (file)
@@ -1,7 +1,7 @@
 <TMPL_VAR NAME=Error>
 <TMPL_IF Alliance>
 <form action="/index.pl" method="post"><fieldset> <legend>Alliances: </legend>
-       <input type="hidden" name="page" value="alliances"/>
+       <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">
 <div class="leftinfo">
 <table>
        <tr>
-               <th><a href="index.pl?page=alliances&amp;alliance=<TMPL_VAR NAME=Id>&amp;order=coords">Coords</a></th>
+               <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;alliance=<TMPL_VAR NAME=Id>&amp;order=coords">Coords</a></th>
                <th>Nick</th>
-               <th><a href="index.pl?page=alliances&amp;alliance=<TMPL_VAR NAME=Id>&amp;order=hit_us">Hit us</a></th>
+               <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;alliance=<TMPL_VAR NAME=Id>&amp;order=hit_us">Hit us</a></th>
                <th>Planet</th>
-               <th><a href="index.pl?page=alliances&amp;alliance=<TMPL_VAR NAME=Id>&amp;order=race">Race</a></th>
-               <th><a href="index.pl?page=alliances&amp;alliance=<TMPL_VAR NAME=Id>&amp;order=size">Size (rank)</a></th>
-               <th><a href="index.pl?page=alliances&amp;alliance=<TMPL_VAR NAME=Id>&amp;order=score">Score (rank)</a></th>
-               <th><a href="index.pl?page=alliances&amp;alliance=<TMPL_VAR NAME=Id>&amp;order=value">Value (rank)</a></th>
-               <th><a href="index.pl?page=alliances&amp;alliance=<TMPL_VAR NAME=Id>&amp;order=xp">XP (rank)</a></th>
+               <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;alliance=<TMPL_VAR NAME=Id>&amp;order=race">Race</a></th>
+               <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;alliance=<TMPL_VAR NAME=Id>&amp;order=size">Size (rank)</a></th>
+               <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;alliance=<TMPL_VAR NAME=Id>&amp;order=score">Score (rank)</a></th>
+               <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;alliance=<TMPL_VAR NAME=Id>&amp;order=value">Value (rank)</a></th>
+               <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;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>">
                <th>User</th>
                <th>Known members</th>
                <th>Total members</th>
-               <th><a href="index.pl?page=alliances&amp;order=score">Score</a> (<a href="index.pl?page=alliances&amp;order=kscore">known planets</a>)</th>
-               <th><a href="index.pl?page=alliances&amp;order=scavg">Avg Score</a> (<a href="index.pl?page=alliances&amp;order=kscavg">known planets</a>)</th>
-               <th><a href="index.pl?page=alliances&amp;order=size">Size</a> (<a href="index.pl?page=alliances&amp;order=ksize">known planets</a>)</th>
-               <th><a href="index.pl?page=alliances&amp;order=siavg">Avg Size</a> (<a href="index.pl?page=alliances&amp;order=ksiavg">known planets</a>)</th>
-               <th><a href="index.pl?page=alliances&amp;order=kxp">XP</a> (<a href="index.pl?page=alliances&amp;order=kxpavg">avg</a>)</th>
-               <th><a href="index.pl?page=alliances&amp;order=kvalue">Value</a> (<a href="index.pl?page=alliances&amp;order=kvalavg">avg</a>)</th>
+               <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;order=score">Score</a> (<a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;order=kscore">known planets</a>)</th>
+               <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;order=scavg">Avg Score</a> (<a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;order=kscavg">known planets</a>)</th>
+               <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;order=size">Size</a> (<a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;order=ksize">known planets</a>)</th>
+               <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;order=siavg">Avg Size</a> (<a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;order=ksiavg">known planets</a>)</th>
+               <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;order=kxp">XP</a> (<a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;order=kxpavg">avg</a>)</th>
+               <th><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;order=kvalue">Value</a> (<a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;order=kvalavg">avg</a>)</th>
        </tr>
 <TMPL_LOOP Alliances>
        <tr class="<TMPL_IF ODD>odd<TMPL_ELSE>even</TMPL_IF>">
-               <td><a href="index.pl?page=alliances&amp;alliance=<TMPL_VAR NAME=Id>"><TMPL_VAR NAME=Name></a></td>
+               <td><a href="index.pl?page=<TMPL_VAR NAME=PAGE>&amp;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>