source: trunk/templates/axfr.tmpl@ 287

Last change on this file since 287 was 38, checked in by Kris Deugau, 15 years ago

/trunk

checkpoint - big changes!

dns.cgi and DNSDB.pm:

  • all output pages should validate as XHTML 1.0 Strict. For at least another five minutes.
  • add variable to control env dump (which doesn't validate...)
  • fiddle username add to use "uname" as username field, since username seems to cause HTML::Template to barf suddenly... O_o
  • tweak "change current group" form URI for XHTML's idiotic "all ampersands must be exscapededed ALL EVARWERE!!!one11!"
  • check for existence of group, domain, user at beginning of respective add* subs in DNSDB.pm

templates/*:

  • adjust all templates to account for oddities and stupidities of XHTML 1.0. Templates do NOT validate on their own, but the final output should. WTFisms include (but are not limited to):
    • escaped ampersands in links?
    • "<form> can't go here"?
    • <td> can't use nowrap, width?
    • "<fieldset>"?
    • and now that the form fields are enclosed in a fieldset... apparently you can't right-click in "noncontent" space "inside" that element. GRRRRRRR!!!!!
  • CSS now needs work to make things appear properly, due largely to the WTFisms above
  • all this XHTML fixing got me to also normalize and clean up inconsistent usage, general structures, and things that wouldn't even pass HTML 4.0.1 Transitional (I think) - eg missing closing tags on <tr> or <td>
  • delete raw dump of Vega's login page (need to delete a couple others)
File size: 2.3 KB
RevLine 
[31]1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
[2]4
[35]5<td align="center" valign="top">
[2]6
[38]7<form action="dns.cgi" method="post">
8<fieldset>
9<input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" />
10<input type="hidden" name="page" value="axfr" />
11<input type="hidden" name="doit" value="y" />
[31]12
13<table>
[38]14<TMPL_IF errmsg><tr><td class="errhead" colspan="2">Error: <TMPL_VARNAME=errmsg></td></tr></TMPL_IF>
15<tr class="tableheader"><td align="center" colspan="2">Import domains via AXFR</td></tr>
[31]16<tr class="datalinelight">
17 <td>Import from host:</td>
[38]18 <td><input name="ifrom"<TMPL_IF ifrom> value="<TMPL_VAR NAME=ifrom>"</TMPL_IF> /></td>
[31]19</tr>
20<tr class="datalinelight">
21 <td>Import to group:</td>
22 <td>
23 <select name="group">
[38]24 <TMPL_LOOP NAME=grouplist><option value="<TMPL_VAR NAME=groupval>"<TMPL_IF NAME=groupactive> selected="selected"</TMPL_IF>><TMPL_VAR NAME=groupname></option>
[31]25 </TMPL_LOOP></select>
26 </td>
27</tr>
28<tr class="datalinelight">
29 <td>Rewrite SOA to group default?</td>
[38]30 <td><input type="checkbox" name="rwsoa"<TMPL_IF rwsoa> checked="checked"</TMPL_IF> /></td>
[31]31</tr>
32<tr class="datalinelight">
33 <td>Rewrite NS to group default?</td>
[38]34 <td><input type="checkbox" name="rwns"<TMPL_IF rwns> checked="checked"</TMPL_IF> /></td>
[31]35</tr>
36<tr class="datalinelight">
[33]37 <td>Import as active?</td>
[38]38 <td><input type="checkbox" name="domactive"<TMPL_UNLESS dominactive> checked="checked"</TMPL_UNLESS> /></td>
[33]39</tr>
40<tr class="datalinelight">
[31]41 <td valign="top">Domains to import:<br />(one per line)</td>
[38]42 <td><textarea name="importdoms" rows="10" cols="25"><TMPL_IF importdoms><TMPL_VAR NAME=importdoms></TMPL_IF></textarea></td>
[31]43</tr>
44<tr class="datalinelight">
[38]45 <td colspan="2" align="center"><input type="submit" value=" Import domains " /></td>
[31]46</tr>
[2]47</table>
48
[38]49</fieldset>
[31]50</form>
[2]51
[32]52<TMPL_IF axfrresults>
[33]53<br />
[32]54<table>
[38]55<tr class="tableheader"><td colspan="2">AXFR Import Results</td></tr>
[32]56<TMPL_LOOP NAME=axfrresults>
57<tr class="datalinelight">
[33]58 <td><TMPL_VAR NAME=domain></td>
59<TMPL_IF domok> <td>Imported OK</td>
[35]60<TMPL_ELSE><TMPL_IF domwarn> <td class="warn">Import OK but:<br />
61<TMPL_VAR NAME=domwarn></td>
[33]62<TMPL_ELSE> <td class="err">Failed: <TMPL_VAR NAME=domerr></td>
63</TMPL_IF></TMPL_IF>
[32]64</tr>
65</TMPL_LOOP>
66</table>
67</TMPL_IF>
68
[31]69</td>
[2]70</tr>
71</table>
Note: See TracBrowser for help on using the repository browser.