center checkboxes

This commit is contained in:
Roland Gruber 2003-09-29 15:20:27 +00:00
parent f536ed45ee
commit 8f2ff3f0c4
4 changed files with 7 additions and 7 deletions

View File

@ -149,7 +149,7 @@ for ($i = $table_begin; $i < $table_end; $i++) {
" onMouseOut=\"domain_out(this, '" . $dom_info[$i]["dn"] . "')\"" . " onMouseOut=\"domain_out(this, '" . $dom_info[$i]["dn"] . "')\"" .
" onClick=\"domain_click(this, '" . $dom_info[$i]["dn"] . "')\"" . " onClick=\"domain_click(this, '" . $dom_info[$i]["dn"] . "')\"" .
" onDblClick=\"parent.frames[1].location.href='../domain.php?action=edit&amp;DN=" . $dom_info[$i]["dn"] . "'\">" . " onDblClick=\"parent.frames[1].location.href='../domain.php?action=edit&amp;DN=" . $dom_info[$i]["dn"] . "'\">" .
" <td height=22><input onClick=\"domain_click(this, '" . $dom_info[$i]["dn"] . "')\" type=\"checkbox\" name=\"" . $dom_info[$i]["dn"] . "\"></td>" . " <td height=22 align=\"center\"><input onClick=\"domain_click(this, '" . $dom_info[$i]["dn"] . "')\" type=\"checkbox\" name=\"" . $dom_info[$i]["dn"] . "\"></td>" .
" <td align='center'><a href=\"../domain.php?action=edit&amp;DN='" . $dom_info[$i]["dn"] . "'\">" . _("Edit") . "</a></td>"); " <td align='center'><a href=\"../domain.php?action=edit&amp;DN='" . $dom_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>");

View File

@ -196,11 +196,11 @@ if (sizeof($grp_info) > 0) {
" onClick=\"group_click(this, '" . $grp_info[$i]["dn"] . "')\"" . " onClick=\"group_click(this, '" . $grp_info[$i]["dn"] . "')\"" .
" onDblClick=\"parent.frames[1].location.href='../account/groupedit.php?DN=" . $grp_info[$i]["dn"] . "'\">"); " onDblClick=\"parent.frames[1].location.href='../account/groupedit.php?DN=" . $grp_info[$i]["dn"] . "'\">");
if ($_GET['selectall'] == "yes") { if ($_GET['selectall'] == "yes") {
echo " <td height=22><input onClick=\"group_click(this, '" . $grp_info[$i]["dn"] . "')\" type=\"checkbox\"" . echo " <td height=22 align=\"center\"><input onClick=\"group_click(this, '" . $grp_info[$i]["dn"] . "')\" type=\"checkbox\"" .
" name=\"" . $grp_info[$i]["dn"] . "\" checked></td>"; " name=\"" . $grp_info[$i]["dn"] . "\" checked></td>";
} }
else { else {
echo " <td height=22><input onClick=\"group_click(this, '" . $grp_info[$i]["dn"] . "')\" type=\"checkbox\"" . echo " <td height=22 align=\"center\"><input onClick=\"group_click(this, '" . $grp_info[$i]["dn"] . "')\" type=\"checkbox\"" .
" name=\"" . $grp_info[$i]["dn"] . "\"></td>"; " name=\"" . $grp_info[$i]["dn"] . "\"></td>";
} }
echo (" <td align='center'><a href=\"../account/groupedit.php?DN='" . $grp_info[$i]["dn"] . "'\">" . _("Edit") . "</a></td>"); echo (" <td align='center'><a href=\"../account/groupedit.php?DN='" . $grp_info[$i]["dn"] . "'\">" . _("Edit") . "</a></td>");

View File

@ -202,11 +202,11 @@ if (sizeof($hst_info) > 0) {
" 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"] . "'\">");
if ($_GET['selectall'] == "yes") { if ($_GET['selectall'] == "yes") {
echo " <td height=22><input onClick=\"host_click(this, '" . $hst_info[$i]["dn"] . "')\"" . echo " <td height=22 align=\"center\"><input onClick=\"host_click(this, '" . $hst_info[$i]["dn"] . "')\"" .
" type=\"checkbox\" checked name=\"" . $hst_info[$i]["dn"] . "\"></td>"; " type=\"checkbox\" checked name=\"" . $hst_info[$i]["dn"] . "\"></td>";
} }
else { else {
echo " <td height=22><input onClick=\"host_click(this, '" . $hst_info[$i]["dn"] . "')\"" . echo " <td height=22 align=\"center\"><input onClick=\"host_click(this, '" . $hst_info[$i]["dn"] . "')\"" .
" type=\"checkbox\" name=\"" . $hst_info[$i]["dn"] . "\"></td>"; " 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>"); echo (" <td align='center'><a href=\"../account/hostedit.php?DN='" . $hst_info[$i]["dn"] . "'\">" . _("Edit") . "</a></td>");

View File

@ -269,11 +269,11 @@ if ($user_count != 0) {
"onDblClick=\"parent.frames[1].location.href='../account/useredit.php?type=user&amp;DN=" . $userinfo[$i]["dn"] . "'\">\n"); "onDblClick=\"parent.frames[1].location.href='../account/useredit.php?type=user&amp;DN=" . $userinfo[$i]["dn"] . "'\">\n");
// check boxes if selectall = "yes" // check boxes if selectall = "yes"
if ($_GET['selectall'] == "yes") { if ($_GET['selectall'] == "yes") {
echo "<td height=22>\n<input onClick=\"user_click(this, '" . $userinfo[$i]["dn"] . "')\" type=\"checkbox\" name=\"" . echo "<td height=22 align=\"center\">\n<input onClick=\"user_click(this, '" . $userinfo[$i]["dn"] . "')\" type=\"checkbox\" name=\"" .
$userinfo[$i]["dn"] . "\" checked>\n</td>\n"; $userinfo[$i]["dn"] . "\" checked>\n</td>\n";
} }
else { else {
echo "<td height=22>\n<input onClick=\"user_click(this, '" . $userinfo[$i]["dn"] . "')\" type=\"checkbox\" name=\"" . echo "<td height=22 align=\"center\">\n<input onClick=\"user_click(this, '" . $userinfo[$i]["dn"] . "')\" type=\"checkbox\" name=\"" .
$userinfo[$i]["dn"] . "\">\n</td>\n"; $userinfo[$i]["dn"] . "\">\n</td>\n";
} }
echo ("<td align='center'>\n<a href=\"../account/useredit.php?type=user&amp;DN='" . $userinfo[$i]["dn"] . "'\">" . echo ("<td align='center'>\n<a href=\"../account/useredit.php?type=user&amp;DN='" . $userinfo[$i]["dn"] . "'\">" .