+<p><input type="button" value="Update target list"
+ onclick = "listTargets('raids?xml=1')"/>
+</p>
<TMPL_IF Targets>
- <table><tr><th>Target</th><th>Landing tick</th></tr>
+<table>
+ <tr><th>Target</th><th>Tick</th></tr>
<TMPL_LOOP Targets>
- <tr><td><a href="index.pl?page=check&coords=<TMPL_VAR NAME=Coords>"><TMPL_VAR NAME=Coords></a><TMPL_IF Launched>*</TMPL_IF></td><td><a href="raids.php?raid=<TMPL_VAR NAME=Raid>#target<TMPL_VAR NAME=Target>"><TMPL_VAR NAME=Tick></a></td></tr>
+ <tr>
+ <td><a href="check?coords=<TMPL_VAR NAME=Coords>"><TMPL_VAR NAME=Coords></a>
+ <TMPL_IF Launched>*</TMPL_IF></td>
+ <td><a href="raids?raid=<TMPL_VAR NAME=Raid>#target<TMPL_VAR NAME=Target>">
+ <TMPL_VAR NAME=Tick></a></td>
+ <td><TMPL_UNLESS AJAX><a href="raids?raid=<TMPL_VAR NAME=Raid>&cmd=Unclaim&target=<TMPL_VAR NAME=Target>&wave=<TMPL_VAR NAME=Wave>" >U</a>
+ <TMPL_ELSE>
+ <input type="button" value="U" class="small" onclick =
+ "claim('raids?xml=1&raid=<TMPL_VAR NAME=Raid>',<TMPL_VAR NAME=Target>,<TMPL_VAR NAME=Wave>,'Unclaim')"/>
+ <input type="button" class="small" value="<TMPL_VAR NAME=JoinName>" onclick =
+ "claim('raids?xml=1&raid=<TMPL_VAR NAME=Raid>',<TMPL_VAR NAME=Target>,<TMPL_VAR NAME=Wave>,'set&joinable=<TMPL_VAR NAME=Joinable>')"/>
+ </TMPL_UNLESS>
+ </td>
+ </tr>
</TMPL_LOOP>
- </table>
+</table>
</TMPL_IF>