]> ruin.nu Git - ndwebbie.git/blobdiff - templates/raids.tmpl
show forum thread on intel
[ndwebbie.git] / templates / raids.tmpl
index cf6d1482469235c751b29e067b6c4980fd0ad143..0361f53d82ad9dc218ba02539b18938410ae7aad 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;xml=1&amp;raid=<TMPL_VAR NAME=Raid>')"/>
+                       onclick = "update('<TMPL_VAR NAME=PAGE>?xml=1;raid=<TMPL_VAR NAME=Raid>')"/>
                <input type="button" value="Update target list"
-                       onclick = "listTargets('index.pl?page=raids&amp;xml=1&amp;raid=<TMPL_VAR NAME=Raid>')"/>
+                       onclick = "listTargets('<TMPL_VAR NAME=PAGE>?xml=1;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>"/>
                </div>
        </TMPL_LOOP>
        <div class="clear"> &nbsp;</div>
-       <form action="index.pl" method="post">
+       <form action="<TMPL_VAR NAME=PAGE>" method="post">
        <p class="claimlinks">
        <span id="claim<TMPL_VAR NAME=Id>">
+       <TMPL_IF Ajax>
        <TMPL_LOOP Claims>
-       <a class="<TMPL_VAR NAME=Command>" href="/index.pl?page=raids&amp;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="/index.pl?page=raids&amp;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>
+     <input type="button" value="Claim wave <TMPL_VAR NAME=Wave>"
+        onclick = "claim('<TMPL_VAR NAME=PAGE>?xml=1;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('index.pl?page=raids&amp;xml=1&amp;raid=<TMPL_VAR NAME=Raid>');
+       update('<TMPL_VAR NAME=PAGE>?xml=1;raid=<TMPL_VAR NAME=Raid>');
        </script>
 </TMPL_IF>