- Timestamp:
- 12/01/09 17:21:41 (15 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r38 r39 344 344 $page->param(id => $webvar{id}); 345 345 $page->param(defrec => $webvar{defrec}); 346 $page->param(parentid => $webvar{parentid}); 346 347 # first pass = confirm y/n (sorta) 347 348 if (!defined($webvar{del})) { … … 351 352 $page->param(ftype => $typemap{$rec{type}}); 352 353 $page->param(recval => $rec{val}); 353 } els e{354 } elsif ($webvar{del} eq 'ok') { 354 355 my ($code,$msg) = delRec($dbh,$webvar{defrec},$webvar{id}); 355 356 if ($code ne 'OK') { … … 357 358 $page->param(del_failed => 1); 358 359 $page->param(errmsg => $msg); 359 } 360 ##fixme: group/parent instead of hardcoded 1 361 showdomain('y',1); 360 showdomain($webvar{defrec}, $webvar{parentid}); 361 } else { 362 changepage(page => "reclist", id => $webvar{parentid}, defrec => $webvar{defrec}); 363 } 364 } else { 365 changepage(page => "reclist", id => $webvar{parentid}, defrec => $webvar{defrec}); 362 366 } 363 367 364 368 } elsif ($webvar{page} eq 'editsoa') { 365 369 366 fillsoa($webvar{defrec},$webvar{ recid});370 fillsoa($webvar{defrec},$webvar{id}); 367 371 368 372 } elsif ($webvar{page} eq 'updatesoa') { 369 print "ooooo!\n";370 373 371 374 my $sth; … … 373 376 # no domain ID, so we're editing the default SOA for a group (we don't care which one here) 374 377 # plus a bit of magic to update the appropriate table 375 $sql = "update ".($webvar{d omainid} eq '' ? "default_records" : "records").378 $sql = "update ".($webvar{defrec} eq 'y' ? "default_records" : "records"). 376 379 " set host='$webvar{prins}:$webvar{contact}',". 377 380 " val='$webvar{refresh}:$webvar{retry}:$webvar{expire}:$webvar{minttl}',". … … 383 386 $page->param(update_failed => 1); 384 387 $page->param(msg => $DBI::errstr); 385 fillsoa($webvar{defrec},1); 386 } else { 388 fillsoa($webvar{defrec},$webvar{id}); 389 } else { 390 changepage(page => "reclist", id => $webvar{id}, defrec => $webvar{defrec}); 387 391 $page->param(update_failed => 0); 388 392 ##fixme! need to set group ID properly here 389 showdomain('y',1);393 # showdomain('y',1); 390 394 } 391 395 … … 657 661 my $tmp_ruri = $ENV{REQUEST_URI}; 658 662 $tmp_ruri =~ s/\&([a-z])/\&\;$1/g; 663 # le sigh. and we need to strip any previous action 664 $tmp_ruri =~ s/\&action=[^&]+//g; 659 665 # $page->param(whereami => $ENV{REQUEST_URI}); 660 666 $page->param(whereami => $tmp_ruri); … … 733 739 my $def = shift; 734 740 my $id = shift; 735 my $domname; 736 737 if ($webvar{domain} == 0) { 738 $domname = "DOMAIN"; 739 } else { 740 my $sth = $dbh->prepare("SELECT domain FROM domains WHERE domain_id=?"); 741 $sth->execute($webvar{domain}); 742 ($domname) = $sth->fetchrow_array(); 743 } 744 745 $page->param(domain => $domname); 746 $page->param(defrec => !$webvar{domain}); 747 $page->param(group => $DNSDB::group); 741 my $domname = ($def eq 'y' ? '' : "DOMAIN"); 742 743 $page->param(defrec => $def); 744 745 # i had a good reason to do this when I wrote it... 746 # $page->param(domain => $domname); 747 # $page->param(group => $DNSDB::group); 748 $page->param(isgrp => 1) if $def eq 'y'; 749 $page->param(parent => ($def eq 'y' ? groupName($dbh, $DNSDB::group) : domainName($dbh, $id)) ); 748 750 749 751 # defaults … … 759 761 my %soa = getSOA($dbh,$def,$id); 760 762 761 $page->param( domainid => $webvar{domain});763 $page->param(id => $id); 762 764 $page->param(recid => $soa{recid}); 763 765 $page->param(prins => ($soa{prins} ? $soa{prins} : $DNSDB::def{prins})); -
trunk/notes
r2 r39 224 224 update_nameservers() 225 225 226 227 FFFF:FFFF:FFFF:FFFF : FFFF:FFFF:FFFF:FFFF 228 we get: 229 <x>:<x>:FFFF:FFFF 230 we assign: 231 <x>:<x>:<y>:<a> (/64, nominally equivalent to current /32, logically) 232 <x>:<x>:<y>:<b>FF (/56, bitwise equivalent to current /24 relative to /32) 233 <x>:<x>:<y>:FFFF (/48, bitwise equivalent to current /16 relative to /24) 234 235 Allocations SHOULD leave space for growth 236 237 238 SELECT u.user_id, u.email, u.firstname, u.lastname, u.type, g.group_name 239 "FROM users u ". 240 "INNER JOIN groups g ON u.group_id=g.group_id ". 241 ($offset eq 'all' ? '' : " LIMIT $perpage OFFSET ".$offset*$perpage) 242 243 244 SELECT g.group_id, g.group_name, g2.group_name, g.children, count(distinct(u.email)), count(distinct(d.domain)) 245 FROM groups g 246 INNER JOIN groups g2 ON g2.group_id=g.parent_group_id 247 LEFT OUTER JOIN users u ON u.group_id=g.group_id 248 LEFT OUTER JOIN domains d ON d.group_id=g.group_id 249 GROUP BY g.group_id, g.group_name, g2.group_name, g.children 250 251 252 253 record_id | group_id | host | type | val | distance | weight | port | ttl | description 254 -----------+----------+----------------------------------------+------+-------------------------+----------+--------+------+-------+------------- 255 1 | 1 | ns1.example.com:hostmaster.DOMAIN | 6 | 10800:3600:604800:10800 | 0 | 0 | 0 | 86400 | 256 25 | 1 | DOMAIN | 1 | 10.2.3.4 | 0 | 0 | 0 | 7200 | 257 2 | 1 | DOMAIN | 15 | mx1.example.com | 10 | 0 | 0 | 7200 | 258 26 | 1 | DOMAIN | 15 | mx2.example.com | 10 | 0 | 0 | 7200 | 259 27 | 1 | DOMAIN | 2 | ns2.example.com | 0 | 0 | 0 | 7200 | 260 22 | 1 | DOMAIN | 2 | ns1.example.com | 0 | 0 | 0 | 7200 | 261 31 | 1 | www.DOMAIN | 5 | DOMAIN | 0 | 0 | 0 | 10800 | 262 32 | 1 | DOMAIN | 16 | "v=spf1 a mx -all" | 0 | 0 | 0 | 10800 | 263 17 | 1 | DOMAIN | 33 | srv.example.com | 15 | 2 | 325 | 7200 | 264 265 266 serial in domains table 267 'manual' - date+inc 268 'manual' - monotone 269 'auto' - generated (TinyDNS only; uses auto(date) for other exports) 270 271 272 log_id? domain_id? group_id user_id action detail timestamp -
trunk/templates/deldom.tmpl
r38 r39 9 9 10 10 <TMPL_ELSE> 11 <!-- <TMPL_IF del_failed> 12 <div class='errmsg'>Error deleting domain <TMPL_VAR NAME=domain>: <TMPL_VAR NAME=errmsg></div> 13 </TMPL_IF> --> 14 <TMPL_INCLUDE NAME="domlist.tmpl"> 11 <TMPL_INCLUDE NAME="domlist.tmpl"> 15 12 </TMPL_IF> -
trunk/templates/delgrp.tmpl
r38 r39 10 10 11 11 <TMPL_ELSE> 12 <!-- <TMPL_IF del_failed> 13 <div class='errmsg'>Error deleting group <TMPL_VAR NAME=delgroupname>: <TMPL_VAR NAME=errmsg></div> 14 </TMPL_IF> --> 15 <TMPL_INCLUDE NAME="grpman.tmpl"> 12 <TMPL_INCLUDE NAME="grpman.tmpl"> 16 13 </TMPL_IF> -
trunk/templates/delrec.tmpl
r38 r39 6 6 <h3>Are you really sure you want to delete record:<br /> 7 7 <TMPL_VAR NAME=host> <TMPL_VAR NAME=ftype> <TMPL_VAR NAME=recval></h3> 8 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delrec&del=cancel&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec> ">cancel</a> | <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delrec&del=ok&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>">confirm</a>8 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delrec&del=cancel&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&parentid=<TMPL_VAR NAME=parentid>">cancel</a> | <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delrec&del=ok&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&parentid=<TMPL_VAR NAME=parentid>">confirm</a> 9 9 </td></tr></table> 10 10 11 11 <TMPL_ELSE> 12 <TMPL_IF del_failed>13 <!-- Need to find failure mode to cause/test this -->14 <h1>FOO!</h1>15 <TMPL_VAR NAME=errmsg>16 <TMPL_ELSE>17 12 <TMPL_INCLUDE NAME="reclist.tmpl"> 18 13 </TMPL_IF> 19 </TMPL_IF> -
trunk/templates/deluser.tmpl
r38 r39 9 9 10 10 <TMPL_ELSE> 11 <!-- <TMPL_IF del_failed> 12 <div class='errmsg'>Error deleting user <TMPL_VAR NAME=domain>: <TMPL_VAR NAME=errmsg></div> 13 </TMPL_IF> --> 14 <TMPL_INCLUDE NAME="useradmin.tmpl"> 11 <TMPL_INCLUDE NAME="useradmin.tmpl"> 15 12 </TMPL_IF> -
trunk/templates/dns.css
r38 r39 11 11 margin-right: 0px; 12 12 /* background-color: #deadDD;*/ 13 /* background-color: #FFFF00;*/ 13 background-color: #f8f8f8; 14 14 } 15 15 hr { … … 68 68 text-align: right; 69 69 padding: 3px; 70 } 71 td.datahead_l { 72 background-color: #F0F0F0; 73 border-bottom: 1px solid #666666; 74 text-align: left; 75 } 76 td.datahead_s { 77 background-color: #F0F0F0; 78 border-bottom: 1px solid #666666; 79 width: 1%; 80 white-space: nowrap; 70 81 } 71 82 td.data { … … 133 144 right: 3px; 134 145 } 146 .center { 147 text-align: center; 148 } 135 149 136 /* Specific common divs */137 150 #header { 138 151 border-bottom: thin solid #000000; … … 173 186 padding: 3px; 174 187 } 188 #soadetail { 189 text-align: left; 190 } 191 /* somewhat generic/reusable */ 192 #borderme { 193 border: thin solid #666666; 194 width: 98%; 195 float:left; 196 clear:left; 197 } -
trunk/templates/domlist.tmpl
r38 r39 9 9 </TMPL_IF> 10 10 11 <div id="borderme"> 12 11 13 <table width="98%"> 12 <tr><t d colspan="3" align="center">Domain list</td></tr>13 <tr><td ><TMPL_INCLUDE NAME="pgcount.tmpl"></td>14 <td >14 <tr><th colspan="3" align="center">Domain list</th></tr> 15 <tr><td align="left"><TMPL_INCLUDE NAME="pgcount.tmpl"></td> 16 <td align="center"> 15 17 <TMPL_INCLUDE NAME="fpnla.tmpl"> 16 18 </td><td align="right">insert search box here</td></tr> … … 21 23 </table> 22 24 23 <table border="0" cellspacing="5" cellpadding="3">25 <table width="98%" border="0" cellspacing="4" cellpadding="3"> 24 26 <tr> 25 27 <TMPL_IF NAME=foobarbaz> 26 28 <!-- This block to be un-TMPL_IF'ed once we care about sort order - by default, we sort by domain, ascending --> 27 <t d><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist&offset=<TMPL_VAR NAME=offset>">Domain<TMPL_IF NAME=sortdomain> <img border="0" alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></a></td>28 <t d><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist&offset=<TMPL_VAR NAME=offset>">Status<TMPL_IF NAME=sortstatus> <img border="0" alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></a></td>29 <t dalign="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist&offset=<TMPL_VAR NAME=offset>">Group<TMPL_IF NAME=sortgroup> <img border="0" alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></a></td>29 <th><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist&offset=<TMPL_VAR NAME=offset>">Domain<TMPL_IF NAME=sortdomain> <img border="0" alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></a></td> 30 <th><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist&offset=<TMPL_VAR NAME=offset>">Status<TMPL_IF NAME=sortstatus> <img border="0" alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></a></td> 31 <th align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=domlist&offset=<TMPL_VAR NAME=offset>">Group<TMPL_IF NAME=sortgroup> <img border="0" alt='<TMPL_VAR NAME=sortorder>' src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></a></td> 30 32 <TMPL_ELSE> 31 <td >Domain</td>32 <td >Status</td>33 <td align="center">Group</td>33 <td class="datahead_l">Domain</td> 34 <td class="datahead_s">Status</td> 35 <td class="datahead_s">Group</td> 34 36 </TMPL_IF> 35 <td align="center">Change Status</td>36 <td >Delete</td>37 <td class="datahead_s">Change Status</td> 38 <td class="datahead_s">Delete</td> 37 39 </tr> 38 40 <TMPL_IF name=domtable> 39 41 <TMPL_LOOP name=domtable> 40 42 <tr class="row<TMPL_VAR name=bg>"> 41 <td ><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=reclist&id=<TMPL_VAR NAME=domainid>&defrec=n"><TMPL_VAR NAME=domain></a></td>43 <td align="left"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=reclist&id=<TMPL_VAR NAME=domainid>&defrec=n"><TMPL_VAR NAME=domain></a></td> 42 44 <td><TMPL_VAR name=status></td> 43 45 <td><TMPL_VAR name=group></td> … … 51 53 </table> 52 54 55 </div> 56 53 57 </td> 54 58 </tr> -
trunk/templates/editsoa.tmpl
r38 r39 4 4 5 5 <td align="center"> 6 6 7 <TMPL_IF update_failed><div class="errmsg">Error updating SOA record: <TMPL_VAR NAME=msg></div></TMPL_IF> 8 7 9 <div>edit SOA</div> 10 8 11 <div id="tableholder"> 9 <table border=0 cellspacing=2 cellpadding=1 width="100%"> 12 13 <form action="dns.cgi" method="post"> 14 <fieldset> 15 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" /> 16 <input type="hidden" name="page" value="updatesoa" /> 17 <input type="hidden" name="id" value="<TMPL_VAR NAME=id>" /> 18 <input type="hidden" name="recid" value="<TMPL_VAR NAME=recid>" /> 19 <input type="hidden" name="defrec" value="<TMPL_VAR NAME=defrec>" /> 20 21 <table border="0" cellspacing="2" cellpadding="1" width="100%"> 10 22 <tr class="darkrowheader"> 11 <td colspan= 2 class="title"><TMPL_IF NAME=defrec>Edit default SOA record for group <TMPL_VAR NAME=group><TMPL_ELSE>Edit SOA record for <TMPL_VAR NAME=domain></TMPL_IF></td>23 <td colspan="2" class="title"><TMPL_IF NAME=isgrp>Edit default SOA record for group <TMPL_ELSE>Edit SOA record for </TMPL_IF><TMPL_VAR NAME=parent></td> 12 24 <td class="title">Systemwide defaults:</td> 13 25 </tr> 14 15 <form action="dns.cgi" method=POST>16 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>">17 <input type="hidden" name="recid" value="<TMPL_VAR NAME=recid>">18 <input type="hidden" name="page" value="updatesoa">19 <input type="hidden" name="domainid" value="<TMPL_VAR NAME=domainid>">20 21 26 <tr class="datalinelight"> 22 27 <td class="inputlabel">Primary Name Server</td> 23 <td><input name= prins value="<TMPL_VAR NAME=prins>"></td>28 <td><input name="prins" value="<TMPL_VAR NAME=prins>" /></td> 24 29 <td class="data"><TMPL_VAR NAME=defns></td> 25 30 </tr> 26 31 <tr class="datalinelight"> 27 32 <td class="inputlabel">Contact Address</td> 28 <td><input name= contact value="<TMPL_VAR NAME=contact>"></td>33 <td><input name="contact" value="<TMPL_VAR NAME=contact>" /></td> 29 34 <td class="data"><TMPL_VAR NAME=defcontact></td> 30 35 </tr> 31 36 <tr class="datalinelight"> 32 37 <td class="inputlabel">SOA TTL</td> 33 <td><input name= ttl value="<TMPL_VAR NAME=ttl>"></td>38 <td><input name="ttl" value="<TMPL_VAR NAME=ttl>" /></td> 34 39 <td class="data"><TMPL_VAR NAME=defsoattl></td> 35 40 </tr> 36 41 <tr class="datalinelight"> 37 42 <td class="inputlabel">Refresh</td> 38 <td><input name= refresh value="<TMPL_VAR NAME=refresh>"></td>43 <td><input name="refresh" value="<TMPL_VAR NAME=refresh>" /></td> 39 44 <td class="data"><TMPL_VAR NAME=defrefresh></td> 40 45 </tr> 41 46 <tr class="datalinelight"> 42 47 <td class="inputlabel">Retry</td> 43 <td><input name= retry value="<TMPL_VAR NAME=retry>"></td>48 <td><input name="retry" value="<TMPL_VAR NAME=retry>" /></td> 44 49 <td class="data"><TMPL_VAR NAME=defretry></td> 45 50 </tr> 46 51 <tr class="datalinelight"> 47 52 <td class="inputlabel">Expire</td> 48 <td><input name= expire value="<TMPL_VAR NAME=expire>"></td>53 <td><input name="expire" value="<TMPL_VAR NAME=expire>" /></td> 49 54 <td class="data"><TMPL_VAR NAME=defexpire></td> 50 55 </tr> 51 56 <tr class="datalinelight"> 52 57 <td class="inputlabel">Minimum TTL</td> 53 <td><input name= minttl value="<TMPL_VAR NAME=minttl>"></td>58 <td><input name="minttl" value="<TMPL_VAR NAME=minttl>" /></td> 54 59 <td class="data"><TMPL_VAR NAME=defminttl></td> 55 60 </tr> 56 61 <tr class="datalinelight"> 57 <td colspan= 3 align=center><input type=submit value=" Update record "></td>62 <td colspan="3" align="center"><input type="submit" value=" Update record " /></td> 58 63 </tr> 59 64 </table> 60 65 66 </fieldset> 61 67 </form> 62 68 63 69 </div> 64 70 65 </td></tr> 71 </td> 72 </tr> 66 73 </table> 67 74 68 <hr /><hr />69 70 -
trunk/templates/fpnla.tmpl
r38 r39 1 1 <TMPL_IF navfirst><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage>&offset=0<TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF>"><img src="images/frev.png" alt="[ First ]" />first</a><TMPL_ELSE><img src="images/frev.png" alt="[ First ]" />first</TMPL_IF> 2 2 <TMPL_IF navprev><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage>&offset=<TMPL_VAR NAME=prevoffs><TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF>"><img src="images/rev.png" alt="[ Previous ]" />previous</a><TMPL_ELSE><img src="images/rev.png" alt="[ Previous ]" />previous</TMPL_IF> 3 <TMPL_IF navnext><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage>&offset=<TMPL_VAR NAME=nextoffs><TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>& defrec=<TMPL_VAR NAME=defrec></TMPL_IF>">next<img src="images/fwd.png" alt="[ Next ]" /></a><TMPL_ELSE>next<img src="images/fwd.png" alt="[ Next ]" /></TMPL_IF> 3 <TMPL_IF navnext><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage>&offset=<TMPL_VAR NAME=nextoffs><TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF>">next<img src="images/fwd.png" alt="[ Next ]" /></a><TMPL_ELSE>next<img src="images/fwd.png" alt="[ Next ]" /></TMPL_IF> 4 4 <TMPL_IF navlast><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage>&offset=<TMPL_VAR NAME=lastoffs><TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF>">last<img src="images/ffwd.png" alt="[ Last ]" /></a><TMPL_ELSE>last<img src="images/ffwd.png" alt="[ Last ]" /></TMPL_IF> 5 <TMPL_IF navall><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage>&offset=all<TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>& defrec=<TMPL_VAR NAME=defrec></TMPL_IF>">all</a><TMPL_ELSE>all</TMPL_IF>5 <TMPL_IF navall><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=curpage>&offset=all<TMPL_IF id>&id=<TMPL_VAR NAME=id></TMPL_IF><TMPL_IF defrec>&defrec=<TMPL_VAR NAME=defrec></TMPL_IF>">all</a><TMPL_ELSE>all</TMPL_IF> -
trunk/templates/pgcount.tmpl
r17 r39 1 Listing <TMPL_VAR NAME=nfirst> - <TMPL_VAR NAME=npglast> of <TMPL_VAR NAME=ntot> <TMPL_VAR NAME=pgtype><TMPL_IF NAME=parent> in <TMPL_VAR NAME=parent></TMPL_IF>1 <TMPL_IF ntot>Listing <TMPL_VAR NAME=nfirst> - <TMPL_VAR NAME=npglast> of <TMPL_VAR NAME=ntot><TMPL_ELSE>No <TMPL_VAR NAME=pgtype></TMPL_IF><TMPL_IF NAME=parent> in <TMPL_VAR NAME=parent></TMPL_IF> -
trunk/templates/reclist.tmpl
r38 r39 3 3 <TMPL_INCLUDE NAME="menu.tmpl"> 4 4 5 <td align="center"> 6 domain details 5 <td align="center" valign="top"> 6 7 <TMPL_IF del_failed> 8 <div class='errmsg'>Error deleting record: <TMPL_VAR NAME=errmsg></div> 9 </TMPL_IF> 10 7 11 <!-- FIXME: long data in records causes record list table to overflow one or another container --> 8 12 9 <!-- not sure WTF I thought I needed this for: div id=tableholder width=100% --> 13 <table><tr><td> 14 15 <div class="center">Records<TMPL_IF NAME=parent> in <TMPL_VAR NAME=parent></TMPL_IF></div> 10 16 11 17 <TMPL_INCLUDE NAME=soadata.tmpl> … … 13 19 <table border="0" width="100%"> 14 20 <tr class="darkrowheader"> 15 <td >21 <td colspan="2" align="left"> 16 22 <TMPL_INCLUDE NAME="pgcount.tmpl"> 17 23 </td> 18 <td align="center">24 <td colspan="2" align="center"> 19 25 <TMPL_INCLUDE NAME="fpnla.tmpl"> 20 26 </td> 21 <td >27 <td colspan="2" align="right"> 22 28 <form action="dns.cgi"> 23 29 <fieldset> … … 30 36 </tr> 31 37 <tr class="darkrowheader"> 32 <td colspan="2">Records</td> 33 <td align="right"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=record&parentid=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&recact=new">Add record</a> 34 <a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=showlog&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>">View log</a> 35 </td> 38 <td colspan="4">Records</td> 39 <td align="right"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=record&parentid=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>&recact=new">Add record</a></td> 40 <td align="right"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=showlog&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>">View log</a></td> 36 41 </tr> 37 42 38 43 </table> 39 44 45 <table width="100%"> 40 46 <TMPL_IF reclist> 41 <table>42 47 <tr class="darkrowheader"> 43 48 <td>Name</td> … … 54 59 <td><TMPL_VAR NAME=port></td> 55 60 <td><TMPL_VAR NAME=ttl></td> 56 <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delrec&id=<TMPL_VAR NAME=record_id>&defrec=<TMPL_VAR NAME=defrec> "><img src="images/trash2.png" alt="[ Delete ]" /></a></td>61 <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=delrec&id=<TMPL_VAR NAME=record_id>&defrec=<TMPL_VAR NAME=defrec>&parentid=<TMPL_VAR NAME=id>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td> 57 62 </tr> 58 63 </TMPL_LOOP> 59 </table>60 64 <TMPL_ELSE> 61 65 <tr><td colspan="5">No records found</td></tr> 62 66 </TMPL_IF> 67 </table> 63 68 64 69 </td></tr></table> 70 <!-- /div --> 71 72 </td> 73 </tr> 74 </table> -
trunk/templates/soadata.tmpl
r38 r39 1 <table id="soahead" border="0" cellspacing=" 3" cellpadding="3" width="100%">1 <table id="soahead" border="0" cellspacing="2" cellpadding="1" width="100%"> 2 2 <tr class="darkrowheader"> 3 <td >SOA:</td>4 <td ><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=editsoa&recid=<TMPL_VAR NAME=recid>&defrec=<TMPL_VAR NAME=defrec>">edit</a></td>3 <td align="left">SOA:</td> 4 <td align="right"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=editsoa&id=<TMPL_VAR NAME=id>&recid=<TMPL_VAR NAME=recid>&defrec=<TMPL_VAR NAME=defrec>">edit</a></td> 5 5 </tr> 6 6 </table> 7 7 8 <table id="soadetail" >8 <table id="soadetail" width="100%"> 9 9 <tr class="datalinelight"> 10 10 <td>Contact address:</td> -
trunk/templates/updatesoa.tmpl
r2 r39 1 <TMPL_IF update_failed>2 1 <TMPL_INCLUDE NAME="editsoa.tmpl"> 3 <TMPL_ELSE>4 <TMPL_INCLUDE NAME="defrecs.tmpl">5 </TMPL_IF>
Note:
See TracChangeset
for help on using the changeset viewer.