";
}
if ($numbered) {
$align = 'align="right"';
$res .= "$cnt | ";
}
$cnt++;
$elt_id = isset($row[$this->table_key($table)]) ? $row[$this->table_key($table)] : '';
// and the actions
if ($mode == "rw") {
foreach ($actions as $action) {
$url = "$controller/$action";
$elt_image = isset($row['image']) ? $row['image'] : $row[$this->table_key($table)];
$confirm = ($action == 'delete');
if ($autoplanchiste) {
if ($row[$autoplanchiste_id] == $autoplanchiste) {
$res .= "\t\t" . $this->action($action, $url, $elt_id, $elt_image, $confirm) . " | \n";
} else {
$res .= "\t\t" . " | \n";
}
} else {
$res .= "\t\t" . $this->action($action, $url, $elt_id, $elt_image, $confirm) . " | \n";
}
}
}
foreach ($fields as $field) {
$align = $this->field_align($table, $field);
$res .= "\t\t";
$value = isset($row[$field]) ? $row[$field] : '';
$res .= $this->array_field($table, $field, $value, $row, $mode, $elt_id);
$res .= " | \n";
}
$res .= "\t
\n";
}
if (isset($attrs['footer'])) {
$footers = $attrs['footer'];
foreach ($footers as $footer) {
// column title
$col = 0;
$res .= "\t