Skip to content

Commit

Permalink
clean legaldisplay list
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-theo committed Nov 18, 2020
1 parent 1cd1b34 commit 1ee34a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 59 deletions.
1 change: 1 addition & 0 deletions class/legaldisplay.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ public function getNomUrl($withpicto = 0, $max = 0, $short = 0, $moretitle = '',

return $result;
}

public function generateDocument($modele, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0, $moreparams = null)
{
global $conf, $langs;
Expand Down
63 changes: 4 additions & 59 deletions view/legaldisplay_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,6 @@
if ($result < 0) dol_print_error($db);
}




/*******************************************************************
* ACTIONS
*
Expand Down Expand Up @@ -191,8 +188,6 @@
include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php';
}



/***************************************************
* VIEW
*
Expand All @@ -208,7 +203,7 @@
$title = $langs->trans('Legal Display List');

// Put here content of your page

/*
// Example : Adding jquery code
print '<script type="text/javascript" language="javascript">
jQuery(document).ready(function() {
Expand All @@ -223,7 +218,7 @@ function init_myfunc()
});
});
</script>';

*/

$sql = "SELECT";
$sql .= " t.rowid";
Expand Down Expand Up @@ -418,6 +413,7 @@ function init_myfunc()
// LIST_OF_TD_TITLE_SEARCH
//if (! empty($arrayfields['t.field1']['checked'])) print '<td class="liste_titre"><input type="text" class="flat" name="search_field1" value="'.$rowid.'" size="10"></td>';
//if (! empty($arrayfields['t.field2']['checked'])) print '<td class="liste_titre"><input type="text" class="flat" name="search_field2" value="'.$ref.'" size="10"></td>';
print '</tr>';
// Extra fields
if (is_array($extrafields->attribute_label) && count($extrafields->attribute_label))
{
Expand Down Expand Up @@ -445,36 +441,11 @@ function init_myfunc()
$parameters=array('arrayfields'=>$arrayfields);
$reshook=$hookmanager->executeHooks('printFieldListOption',$parameters); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;
/*
if (! empty($arrayfields['t.date_debut']['checked']))
{
// Date creation
print '<td class="liste_titre">';
print '</td>';
}
*/

$legaldisplaystatic = new Legaldisplay($db);
$thirdpartystatic = new Societe($db);


print '</tr>';

/*if (! empty($arrayfields['u.statut']['checked']))
{
// Status
print '<td class="liste_titre" align="center">';
print $form->selectarray('search_statut', array('-1'=>'','0'=>$langs->trans('Disabled'),'1'=>$langs->trans('Enabled')),$search_statut);
print '</td>';
}*/
// Action column
/*
print '<td class="liste_titre" align="right">';
$searchpitco=$form->showFilterAndCheckAddButtons($massactionbutton?1:0, 'checkforselect', 1);
print $searchpitco;
print '</td>';
print '</tr>'."\n";
*/

$i=0;
$var=true;
$totalarray=array();
Expand Down Expand Up @@ -583,13 +554,6 @@ function init_myfunc()
print '</td>';
if (!$i) $totalarray['nbfield']++;
}
// Status
/*
if (! empty($arrayfields['u.statut']['checked']))
{
$userstatic->statut=$obj->statut;
print '<td align="center">'.$userstatic->getLibStatut(3).'</td>';
}*/

// Action column
print '<td class="wrap" align="center">';
Expand Down Expand Up @@ -640,25 +604,6 @@ function init_myfunc()

print '</form>'."\n";

/*
if ($massaction == 'builddoc' || $action == 'remove_file' || $show_files)
{
// Show list of available documents
$urlsource=$_SERVER['PHP_SELF'].'?sortfield='.$sortfield.'&sortorder='.$sortorder;
$urlsource.=str_replace('&amp;','&',$param);
$filedir=$diroutputmassaction;
$genallowed=$user->rights->facture->lire;
$delallowed=$user->rights->facture->lire;
print $formfile->showdocuments('massfilesarea_digiriskdolibarr','',$filedir,$urlsource,0,$delallowed,'',1,1,0,48,1,$param,$title,'');
}
else
{
print '<br><a name="show_files"></a><a href="'.$_SERVER["PHP_SELF"].'?show_files=1'.$param.'#show_files">'.$langs->trans("ShowTempMassFilesArea").'</a>';
}
*/
// End of page
llxFooter();
$db->close();

0 comments on commit 1ee34a4

Please sign in to comment.