]> ruin.nu Git - ndwebbie.git/blobdiff - templates/main.tmpl
back field for fleets
[ndwebbie.git] / templates / main.tmpl
index 03da63cfd943539c8225f957ccf466fc8ce4c4bd..e1570e732570e8836eb2dd190d82b7b6a1bb563e 100644 (file)
@@ -1,3 +1,4 @@
+<TMPL_VAR NAME=Error>
 <p>Hello <TMPL_VAR NAME=Username>.</p>
 <fieldset> <legend>Message from HC<TMPL_IF isHC> <a href="index.pl?page=motd">EDIT</a></TMPL_IF></legend>
        <TMPL_VAR NAME=MOTD>
@@ -21,7 +22,7 @@
        <li>XP: <TMPL_VAR NAME=PlanetXP></li>   
        <TMPL_ELSE>
                <TMPL_IF isMEMBER>
-               <form action="index.pl?page=main" method="post">
+               <form action="index.pl?page=<TMPL_VAR NAME=PAGE>" method="post">
                        <p>We need your planet's coordinates: 
                        <input type="text" name="planet" value=""/>
                        <input type="submit" value="Submit"/>
 </fieldset>
 <fieldset> <legend>Fleets</legend>
        <table>
-       <tr><th>Target</th><th>Mission</th><th>Amount</th><th>Landing Tick</th></tr>
+       <tr><th>Target</th><th>Mission</th><th>Amount</th><th>Landing Tick</th><th>Back home</th></tr>
        <TMPL_LOOP Fleets>
        <tr><td><TMPL_VAR NAME=Target></td><td><TMPL_VAR NAME=Mission></td>
                <td><TMPL_VAR NAME=Amount></td><td><TMPL_VAR NAME=LandingTick></td>
+               <td><TMPL_VAR NAME=Amount></td><td><TMPL_VAR NAME=Back></td>
        </tr>
        </TMPL_LOOP>
        </table>
        </p>
 </fieldset>
 </form>
-<form action="/index.pl?page=main.pl" method="post">
+<form action="/index.pl" method="post">
 <fieldset> <legend>Fleet</legend>
        <p>Paste your total fleet from ships section on overview here (do it daily to see the menus):</p>
        <textarea rows="15" cols="50" name="fleet"></textarea>
        <input type="hidden" name="cmd" value="fleet"/>
+       <input type="hidden" name="page" value="<TMPL_VAR NAME=PAGE>"/>
        <br/><input type="submit" value="Submit"/>
 </fieldset>
 </form>
-<form action="/index.pl?page=main" method="post">
+<form action="/index.pl" method="post">
 <fieldset> <legend>Change password</legend>
+       <input type="hidden" name="page" value="<TMPL_VAR NAME=PAGE>"/>
        <p>Old password: 
        <input type="password" name="oldpass" value=""/>
        New password: