added "select all" link
This commit is contained in:
parent
99171fcc84
commit
b1b4458c03
|
@ -194,14 +194,22 @@ $table_begin = ($page - 1) * $max_pageentrys;
|
||||||
if (($page * $max_pageentrys) > sizeof($hst_info)) $table_end = sizeof($hst_info);
|
if (($page * $max_pageentrys) > sizeof($hst_info)) $table_end = sizeof($hst_info);
|
||||||
else $table_end = ($page * $max_pageentrys);
|
else $table_end = ($page * $max_pageentrys);
|
||||||
|
|
||||||
|
if (sizeof($hst_info) > 0) {
|
||||||
// print host list
|
// print host list
|
||||||
for ($i = $table_begin; $i < $table_end; $i++) {
|
for ($i = $table_begin; $i < $table_end; $i++) {
|
||||||
echo("<tr class=\"hostlist\" onMouseOver=\"host_over(this, '" . $hst_info[$i]["dn"] . "')\"" .
|
echo("<tr class=\"hostlist\" onMouseOver=\"host_over(this, '" . $hst_info[$i]["dn"] . "')\"" .
|
||||||
" onMouseOut=\"host_out(this, '" . $hst_info[$i]["dn"] . "')\"" .
|
" onMouseOut=\"host_out(this, '" . $hst_info[$i]["dn"] . "')\"" .
|
||||||
" onClick=\"host_click(this, '" . $hst_info[$i]["dn"] . "')\"" .
|
" onClick=\"host_click(this, '" . $hst_info[$i]["dn"] . "')\"" .
|
||||||
" onDblClick=\"parent.frames[1].location.href='../account/hostedit.php?DN=" . $hst_info[$i]["dn"] . "'\">" .
|
" onDblClick=\"parent.frames[1].location.href='../account/hostedit.php?DN=" . $hst_info[$i]["dn"] . "'\">");
|
||||||
" <td height=22><input onClick=\"host_click(this, '" . $hst_info[$i]["dn"] . "')\" type=\"checkbox\" name=\"" . $hst_info[$i]["dn"] . "\"></td>" .
|
if ($_GET['selectall'] == "yes") {
|
||||||
" <td align='center'><a href=\"../account/hostedit.php?DN='" . $hst_info[$i]["dn"] . "'\">" . _("Edit") . "</a></td>");
|
echo " <td height=22><input onClick=\"host_click(this, '" . $hst_info[$i]["dn"] . "')\"" .
|
||||||
|
" type=\"checkbox\" checked name=\"" . $hst_info[$i]["dn"] . "\"></td>";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo " <td height=22><input onClick=\"host_click(this, '" . $hst_info[$i]["dn"] . "')\"" .
|
||||||
|
" type=\"checkbox\" name=\"" . $hst_info[$i]["dn"] . "\"></td>";
|
||||||
|
}
|
||||||
|
echo (" <td align='center'><a href=\"../account/hostedit.php?DN='" . $hst_info[$i]["dn"] . "'\">" . _("Edit") . "</a></td>");
|
||||||
for ($k = 0; $k < sizeof($attr_array); $k++) {
|
for ($k = 0; $k < sizeof($attr_array); $k++) {
|
||||||
echo ("<td>");
|
echo ("<td>");
|
||||||
// print all attribute entries seperated by "; "
|
// print all attribute entries seperated by "; "
|
||||||
|
@ -219,6 +227,15 @@ for ($i = $table_begin; $i < $table_end; $i++) {
|
||||||
}
|
}
|
||||||
echo("</tr>\n");
|
echo("</tr>\n");
|
||||||
}
|
}
|
||||||
|
// display select all link
|
||||||
|
$colspan = sizeof($attr_array) + 1;
|
||||||
|
echo "<tr class=\"hostlist\">\n";
|
||||||
|
echo "<td align=\"center\"><img src=\"../../graphics/select.jpg\" alt=\"select all\"></td>\n";
|
||||||
|
echo "<td colspan=$colspan> <a href=\"listhosts.php?norefresh=y&page=" . $page . "&sort=" . $sort .
|
||||||
|
$searchfilter . "&selectall=yes\">" .
|
||||||
|
"<font color=\"black\"><b>" . _("Select all") . "</b></font></a></td>\n";
|
||||||
|
echo "</tr>\n";
|
||||||
|
}
|
||||||
echo ("</table>");
|
echo ("</table>");
|
||||||
|
|
||||||
echo ("<br>");
|
echo ("<br>");
|
||||||
|
|
Loading…
Reference in New Issue