mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 11:23:54 +01:00
Modify to use new array for nicer display
This commit is contained in:
parent
60974dce6f
commit
5f1e2fe0e7
@ -61,34 +61,38 @@
|
||||
<?php
|
||||
// I need to create a common function to handle displaying multiable columns
|
||||
|
||||
echo '<tr bgcolor="' . $phpgw_info["theme"]["th_bg"] . '"><td colspan="3"> </td></tr>';
|
||||
echo "<tr bgcolor=\"" . $phpgw_info["theme"]["th_bg"] . "\"><td colspan=\"3\"> </td></tr>\n";
|
||||
$i = 0; $j = 0;
|
||||
$tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color);
|
||||
echo '<tr bgcolor="' . $tr_color . '">';
|
||||
echo "<tr bgcolor=\"" . $tr_color . "\">\n";
|
||||
while (list($col, $descr) = each($this->stock_contact_fields)) {
|
||||
// echo "<br>test: $col - $i $j - " . count($abc);
|
||||
$i++; $j++;
|
||||
|
||||
echo '<td><input type="checkbox" name="ab_selected[' . $col . ']" value="True"'
|
||||
. ($phpgw_info["user"]["preferences"]["addressbook"][$col]?" checked":"") . '>' . lang($descr)
|
||||
. '</option></td>';
|
||||
|
||||
$showcol = display_name($descr);
|
||||
if ($showcol) {
|
||||
echo "\t<td><input type=\"checkbox\" name=\"ab_selected[" . $col . "]\" value=\"True\""
|
||||
. ($phpgw_info["user"]["preferences"]["addressbook"][$col]?" checked":"") . '>' . lang($showcol)
|
||||
. "</option></td>\n";
|
||||
} else {
|
||||
$i--;
|
||||
next;
|
||||
}
|
||||
if ($i == 3) {
|
||||
echo "</tr>";
|
||||
echo "</tr>\n";
|
||||
$i = 0;
|
||||
}
|
||||
if ($i == 0) {
|
||||
if ($i == 0 && $showcol) {
|
||||
$tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color);
|
||||
echo '<tr bgcolor="' . $tr_color . '">';
|
||||
echo "<tr bgcolor=\"" . $tr_color . "\">\n";
|
||||
}
|
||||
if ($j == count($this->stock_contact_fields)) {
|
||||
if ($i == 1) {
|
||||
echo "<td> </td><td> </td>";
|
||||
echo "\t<td> </td><td> </td>\n";
|
||||
}
|
||||
if ($i == 2) {
|
||||
echo "<td> </td>";
|
||||
echo "\t<td> </td>\n";
|
||||
}
|
||||
echo "</tr>";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
}
|
||||
$tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color);
|
||||
|
Loading…
Reference in New Issue
Block a user