Missing search table for interventions
This commit is contained in:
parent
cf6a0df3e4
commit
54e2803926
@ -118,6 +118,23 @@ if (! empty($conf->contrat->enabled) && $user->rights->contrat->lire)
|
|||||||
print "<br>";
|
print "<br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Search contract
|
||||||
|
if (! empty($conf->ficheinter->enabled) && $user->rights->ficheinter->lire)
|
||||||
|
{
|
||||||
|
$var=false;
|
||||||
|
print '<form method="post" action="'.DOL_URL_ROOT.'/fichinter/list.php">';
|
||||||
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
print '<table class="noborder nohover" width="100%">';
|
||||||
|
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchAnIntervention").'</td></tr>';
|
||||||
|
print '<tr '.$bc[$var].'>';
|
||||||
|
print '<td class="nowrap"><label for="search_contract">'.$langs->trans("Ref").'</label>:</td><td><input type="text" class="flat" name="search_inter" id="search_inter" size="18"></td>';
|
||||||
|
print '<td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
||||||
|
print '<tr '.$bc[$var].'><td class="nowrap"><label for="sall">'.$langs->trans("Other").'</label>:</td><td><input type="text" class="flat" name="sall" id="sall" size="18"></td>';
|
||||||
|
print '</tr>';
|
||||||
|
print "</table></form>\n";
|
||||||
|
print "<br>";
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Draft proposals
|
* Draft proposals
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -56,10 +56,11 @@ if (! $sortfield)
|
|||||||
}
|
}
|
||||||
$limit = $conf->liste_limit;
|
$limit = $conf->liste_limit;
|
||||||
|
|
||||||
$search_ref=GETPOST('search_ref','alpha');
|
$search_ref=GETPOST('search_ref')?GETPOST('search_ref','alpha'):GETPOST('search_inter','alpha');
|
||||||
$search_company=GETPOST('search_company','alpha');
|
$search_company=GETPOST('search_company','alpha');
|
||||||
$search_desc=GETPOST('search_desc','alpha');
|
$search_desc=GETPOST('search_desc','alpha');
|
||||||
$search_status=GETPOST('search_status');
|
$search_status=GETPOST('search_status');
|
||||||
|
$sall=GETPOST('sall');
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -99,6 +100,11 @@ if (! $user->rights->societe->client->voir && empty($socid))
|
|||||||
$sql .= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id;
|
$sql .= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id;
|
||||||
if ($socid)
|
if ($socid)
|
||||||
$sql.= " AND s.rowid = " . $socid;
|
$sql.= " AND s.rowid = " . $socid;
|
||||||
|
if ($sall) {
|
||||||
|
$arraytosearch=array('f.ref', 'f.description', 's.nom');
|
||||||
|
if (empty($conf->global->FICHINTER_DISABLE_DETAILS)) $arraytosearch=array('f.ref', 'f.description', 's.nom', 'fd.description');
|
||||||
|
$sql .= natural_search($arraytosearch, $sall);
|
||||||
|
}
|
||||||
$sql.= $db->order($sortfield,$sortorder);
|
$sql.= $db->order($sortfield,$sortorder);
|
||||||
$sql.= $db->plimit($limit+1, $offset);
|
$sql.= $db->plimit($limit+1, $offset);
|
||||||
//print $sql;
|
//print $sql;
|
||||||
|
|||||||
@ -38,6 +38,7 @@ InterventionClassifiedBilledInDolibarr=Intervention %s set as billed
|
|||||||
InterventionClassifiedUnbilledInDolibarr=Intervention %s set as unbilled
|
InterventionClassifiedUnbilledInDolibarr=Intervention %s set as unbilled
|
||||||
InterventionSentByEMail=Intervention %s sent by EMail
|
InterventionSentByEMail=Intervention %s sent by EMail
|
||||||
InterventionDeletedInDolibarr=Intervention %s deleted
|
InterventionDeletedInDolibarr=Intervention %s deleted
|
||||||
|
SearchAnIntervention=Search an intervention
|
||||||
##### Types de contacts #####
|
##### Types de contacts #####
|
||||||
TypeContact_fichinter_internal_INTERREPFOLL=Representative following-up intervention
|
TypeContact_fichinter_internal_INTERREPFOLL=Representative following-up intervention
|
||||||
TypeContact_fichinter_internal_INTERVENING=Intervening
|
TypeContact_fichinter_internal_INTERVENING=Intervening
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user