]> ruin.nu Git - ndwebbie.git/blobdiff - templates/raids.tmpl
oops, guess I had forgotten about this file
[ndwebbie.git] / templates / raids.tmpl
index 9c48aa588e550c075fdee66cda64547287377eee..a32417ab3ead3e0f9274f55171995379e2d85bd3 100644 (file)
@@ -1,10 +1,10 @@
 <TMPL_LOOP Raids>
-       <p><a href="index.pl?page=raids&amp;raid=<TMPL_VAR NAME=Raid>"><TMPL_VAR NAME=Raid></a>
+       <p><a href="<TMPL_VAR NAME=PAGE>?raid=<TMPL_VAR NAME=Raid>"><TMPL_VAR NAME=Raid></a>
        <TMPL_IF isBC>
-               <a href="index.pl?page=editRaids&amp;raid=<TMPL_VAR NAME=Raid>">Edit</a>
-               <a href="index.pl?page=editRaids&amp;raid=<TMPL_VAR NAME=Raid>&amp;cmd=close">Close raid.</a>
+               <a href="editRaid?raid=<TMPL_VAR NAME=Raid>">Edit</a>
+               <a href="editRaid?raid=<TMPL_VAR NAME=Raid>&amp;cmd=Close">Close raid.</a>
                <TMPL_UNLESS ReleasedCoords>
-               <a href="index.pl?page=editRaids&amp;raid=<TMPL_VAR NAME=Raid>&amp;cmd=showcoords">Show coords.</a>
+               <a href="editRaid?raid=<TMPL_VAR NAME=Raid>&amp;cmd=showcoords">Show coords.</a>
                </TMPL_UNLESS>
        </TMPL_IF>
        </p>
 <p> Closed raids </p>
 <TMPL_LOOP ClosedRaids>
                <p>
-                       <a href="index.pl?page=editRaids&amp;raid=<TMPL_VAR NAME=Raid>">Edit raid <TMPL_VAR NAME=Raid></a>
+                       <a href="editRaid?raid=<TMPL_VAR NAME=Raid>">Edit raid <TMPL_VAR NAME=Raid></a>
                        
                        <TMPL_UNLESS Open>
-                       <a href="index.pl?page=editRaids&amp;raid=<TMPL_VAR NAME=Raid>&amp;cmd=open">Open raid.</a>
+                       <a href="editRaid?raid=<TMPL_VAR NAME=Raid>&amp;cmd=Open">Open raid.</a>
                        </TMPL_UNLESS>
                </p>
 </TMPL_LOOP>
        <p><TMPL_VAR NAME=Message></p>
 </fieldset>
 
-<form action="index.pl" method="post">
+<TMPL_IF Ajax>
+<form action="<TMPL_VAR NAME=PAGE>" method="post">
        <p>
                <input type="button" value="Update claims"
-                       onclick = "update('index.pl?page=raids&amp;raid=<TMPL_VAR NAME=Raid>')"/>
+                       onclick = "update('<TMPL_VAR NAME=PAGE>?xml=1&amp;raid=<TMPL_VAR NAME=Raid>')"/>
                <input type="button" value="Update target list"
-                       onclick = "listTargets('index.pl?page=raids&amp;raid=<TMPL_VAR NAME=Raid>')"/>
+                       onclick = "listTargets('<TMPL_VAR NAME=PAGE>?xml=1&amp;raid=<TMPL_VAR NAME=Raid>')"/>
        </p>
 </form>
+</TMPL_IF>
 <TMPL_LOOP Targets>
 <fieldset> <legend>Target: #<TMPL_VAR NAME=Id></legend>
 <a name="target<TMPL_VAR NAME=Id>"/>
                </TMPL_LOOP>
        </ul>
        <TMPL_IF Comment>
-       <fieldset> <legend>Comment</legend>
-               <p><TMPL_VAR NAME=Comment></p>
-       </fieldset>
+               <fieldset> <legend>Comment</legend>
+                       <p><TMPL_VAR NAME=Comment></p>
+               </fieldset>
        </TMPL_IF>
        <TMPL_VAR NAME=PlanetScan>
        </div>
        <TMPL_LOOP Scans>
-       <div class="leftinfo">
-       <TMPL_VAR NAME=Scan>
-       </div>
+               <div class="leftinfo">
+               <TMPL_VAR NAME=Scan>
+               </div>
+       </TMPL_LOOP>
+       <div class="clear"> &nbsp;</div>
+       <form action="<TMPL_VAR NAME=PAGE>" method="post">
+       <p class="claimlinks">
+       <span id="claim<TMPL_VAR NAME=Id>">
+       <TMPL_IF Ajax>
+       <TMPL_LOOP Claims>
+     <input type="button" value="Claim wave <TMPL_VAR NAME=Wave>"
+        onclick = "claim('<TMPL_VAR NAME=PAGE>?xml=1&amp;raid=<TMPL_VAR NAME=Raid>',<TMPL_VAR NAME=Target>,<TMPL_VAR NAME=Wave>,'Claim')"/>
+       </TMPL_LOOP>
+       <TMPL_ELSE>
+       <TMPL_LOOP Claims>
+       <a class="<TMPL_VAR NAME=Command>" href="<TMPL_VAR NAME=PAGE>?raid=<TMPL_VAR NAME=Raid>&amp;cmd=<TMPL_VAR NAME=Command>&amp;target=<TMPL_VAR NAME=Target>&amp;wave=<TMPL_VAR NAME=Wave>#<TMPL_VAR NAME=Target>"><TMPL_VAR NAME=Command> wave <TMPL_VAR NAME=Wave><TMPL_IF Claimers> (<TMPL_VAR NAME=Claimers>)</TMPL_IF></a>
+       <TMPL_IF Owner><a href="<TMPL_VAR NAME=PAGE>?raid=<TMPL_VAR NAME=Raid>&amp;target=<TMPL_VAR NAME=Target>&amp;cmd=set&amp;joinable=<TMPL_IF Joinable>FALSE<TMPL_ELSE>TRUE</TMPL_IF>&amp;wave=<TMPL_VAR NAME=Wave>#<TMPL_VAR NAME=Target>"><TMPL_IF Joinable>N<TMPL_ELSE>J</TMPL_IF></a></TMPL_IF>
        </TMPL_LOOP>
+       </TMPL_IF>
+       </span>
+       </p>
+       </form>
+       <p>Target coords: <span id="coords<TMPL_VAR NAME=Id>"><TMPL_VAR NAME=Coords></span></p>
 </fieldset>
 </TMPL_LOOP>
+<TMPL_IF Ajax>
+       <script type="text/javascript">
+       update('<TMPL_VAR NAME=PAGE>?xml=1&amp;raid=<TMPL_VAR NAME=Raid>');
+       </script>
+</TMPL_IF>
 
 </TMPL_IF>