- Timestamp:
- 02/17/11 17:28:05 (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r72 r76 57 57 $session->param('grpmansortby','group'); 58 58 $session->param('grpmanorder','ASC'); 59 $session->param('reclistsortby',' name');59 $session->param('reclistsortby','host'); 60 60 $session->param('reclistorder','ASC'); 61 61 # $session->param('filter','login'); … … 251 251 $sth->execute($webvar{id}); 252 252 my ($count) = ($sth->fetchrow_array); 253 254 # $sortby = 'host'; 255 # sort/order 256 $session->param($webvar{page}.'sortby', $webvar{sortby}) if $webvar{sortby}; 257 $session->param($webvar{page}.'order', $webvar{order}) if $webvar{order}; 258 259 $sortby = $session->param($webvar{page}.'sortby'); 260 $sortorder = $session->param($webvar{page}.'order'); 253 261 254 262 ##work … … 1109 1117 $filter = $session->param($webvar{page}.'filter'); 1110 1118 1111 # my @foo2 = getDomRecs($dbh,'def',1); 1112 my $foo2 = getDomRecs($dbh,$def,$id,$perpage,$webvar{offset}); 1119 my $foo2 = getDomRecs($dbh,$def,$id,$perpage,$webvar{offset},$sortby,$sortorder); 1113 1120 1114 1121 my $row = 0; -
trunk/templates/reclist.tmpl
r72 r76 50 50 <TMPL_IF reclist> 51 51 <tr class="darkrowheader"> 52 <TMPL_LOOP NAME=colheads> 53 <!-- td class="datahead_<TMPL_IF firstcol>l<TMPL_ELSE>s</TMPL_IF>" --> 54 <td><a href="dns.cgi?sid=<TMPL_VAR 55 NAME=sid>&page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&offset=<TMPL_VAR 56 NAME=offset></TMPL_IF>&sortby=<TMPL_VAR NAME=sortby>&order=<TMPL_VAR 57 NAME=order>&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR NAME=defrec>"><TMPL_VAR 58 NAME=colname></a><TMPL_IF NAME=sortorder> <img alt="<TMPL_VAR NAME=sortorder>" 59 src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></td></TMPL_LOOP> 60 61 <!-- <td>Name</td> 62 <td>Type</td> 63 <td>Address</td> 64 <td>Distance</td><td>Weight</td><td>Port</td><td>TTL</td> --> 65 52 <TMPL_LOOP NAME=colheads><TMPL_IF firstcol></TMPL_IF> 53 <td><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=<TMPL_VAR NAME=page><TMPL_IF 54 NAME=offset>&offset=<TMPL_VAR NAME=offset></TMPL_IF>&sortby=<TMPL_VAR 55 NAME=sortby>&order=<TMPL_VAR NAME=order>&id=<TMPL_VAR NAME=id>&defrec=<TMPL_VAR 56 NAME=defrec>"><TMPL_VAR NAME=colname></a><TMPL_IF NAME=sortorder> <img alt="<TMPL_VAR 57 NAME=sortorder>" src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></td></TMPL_LOOP> 66 58 <td>Delete</td> 67 59 </tr>
Note:
See TracChangeset
for help on using the changeset viewer.