Exemplo n.º 1
0
print '<thead>';
print '<tr>';
print '<th>';
print '</th>';
$obj->aoColumns[$i]->mDataProp = "_id";
$obj->aoColumns[$i]->bUseRendered = false;
$obj->aoColumns[$i]->bSearchable = false;
$obj->aoColumns[$i]->bVisible = false;
$i++;
print '<th class="essential">';
print $langs->trans("Id");
print '</th>';
$obj->aoColumns[$i]->mDataProp = "login";
$obj->aoColumns[$i]->bUseRendered = false;
$obj->aoColumns[$i]->bSearchable = true;
$obj->aoColumns[$i]->fnRender = $object->datatablesFnRender("login", "url");
$i++;
print '<th class="essential">';
print $langs->trans('Name');
print '</th>';
$obj->aoColumns[$i]->mDataProp = "Lastname";
$obj->aoColumns[$i]->sDefaultContent = "";
//$obj->aoColumns[$i]->sClass = "edit";
$i++;
print '<th class="essential">';
print $langs->trans('Firstname');
print '</th>';
$obj->aoColumns[$i]->mDataProp = "Firstname";
$obj->aoColumns[$i]->sDefaultContent = "";
//$obj->aoColumns[$i]->sClass = "edit";
$i++;
Exemplo n.º 2
0
print '<thead>';
print '<tr>';
print '<th>';
print '</th>';
$obj->aoColumns[$i]->mDataProp = "_id";
$obj->aoColumns[$i]->bUseRendered = false;
$obj->aoColumns[$i]->bSearchable = false;
$obj->aoColumns[$i]->bVisible = false;
$i++;
print '<th class="essential">';
print $langs->trans("Id");
print '</th>';
$obj->aoColumns[$i]->mDataProp = "login";
$obj->aoColumns[$i]->bUseRendered = false;
$obj->aoColumns[$i]->bSearchable = true;
$obj->aoColumns[$i]->fnRender = $adherent->datatablesFnRender("login", "url");
$i++;
print '<th class="essential">';
print $langs->trans('Firstname');
print '</th>';
$obj->aoColumns[$i]->mDataProp = "Firstname";
$obj->aoColumns[$i]->sDefaultContent = "";
//$obj->aoColumns[$i]->sClass = "edit";
$i++;
print '<th class="essential">';
print $langs->trans('Lastname');
print '</th>';
$obj->aoColumns[$i]->mDataProp = "Lastname";
$obj->aoColumns[$i]->sDefaultContent = "";
//$obj->aoColumns[$i]->sClass = "edit";
$i++;
Exemplo n.º 3
0
 print '<thead>';
 print '<tr>';
 print '<th>';
 print '</th>';
 $obj->aoColumns[$i]->mDataProp = "_id";
 $obj->aoColumns[$i]->bUseRendered = false;
 $obj->aoColumns[$i]->bSearchable = false;
 $obj->aoColumns[$i]->bVisible = false;
 $i++;
 print '<th class="essential">';
 print $langs->trans("Id");
 print '</th>';
 $obj->aoColumns[$i]->mDataProp = "tag";
 $obj->aoColumns[$i]->bUseRendered = false;
 $obj->aoColumns[$i]->bSearchable = true;
 $obj->aoColumns[$i]->fnRender = $object->datatablesFnRender("tag", "url", array("url" => $_SERVER["PHP_SELF"] . '?id='));
 $i++;
 print '<th class="essential">';
 print $langs->trans('Total');
 print '</th>';
 $obj->aoColumns[$i]->mDataProp = "nb";
 $obj->aoColumns[$i]->sDefaultContent = 0;
 $i++;
 print '</tr>';
 print '</thead>';
 print '<tfoot>';
 print '</tfoot>';
 print '<tbody>';
 $result = $object->getView('tag', array("group" => true));
 if (count($result->rows) > 0) {
     foreach ($result->rows as $aRow) {