$result = $object->getView("default_right"); } catch (Exception $exc) { print $exc->getMessage(); } if (count($result->rows)) { foreach ($result->rows as $aRow) { print '<tr>'; $object->values->name = $aRow->value->name; $object->values->numero = $aRow->value->numero; $object->values->rights_class = $aRow->value->rights_class; $object->values->id = $aRow->value->id; $object->values->perm = $aRow->value->perm; $object->values->Status = $aRow->value->Status == true ? "true" : "false"; print '<td>' . $aRow->value->id . '</td>'; print '<td>' . img_object('', $aRow->value->picto) . " " . $object->getName() . '</td>'; print '<td>' . $object->getPermDesc() . '<a name="' . $aRow->value->id . '"> </a></td>'; print '<td>'; if ($aRow->value->Status) { print '<a href="' . $_SERVER['PHP_SELF'] . '?id=' . $aRow->value->_id . '&pid=' . $aRow->value->idx . '&action=remove#' . $aRow->value->id . '">' . img_edit_remove() . '</a>'; } else { print '<a href="' . $_SERVER['PHP_SELF'] . '?id=' . $aRow->value->_id . '&pid=' . $aRow->value->idx . '&action=add#' . $aRow->value->id . '">' . img_edit_add() . '</a>'; } print '</td>'; print '</tr>'; } } print '</tbody>'; print '</table>'; $obj->aaSorting = array(array(1, 'asc')); $obj->sDom = 'l<fr>t<\\"clear\\"rtip>'; $obj->iDisplayLength = -1;