28if (!defined(
'NOTOKENRENEWAL')) {
29 define(
'NOTOKENRENEWAL', 1);
31if (!defined(
'NOREQUIREMENU')) {
32 define(
'NOREQUIREMENU',
'1');
34if (!defined(
'NOREQUIREHTML')) {
35 define(
'NOREQUIREHTML',
'1');
37if (!defined(
'NOREQUIREAJAX')) {
38 define(
'NOREQUIREAJAX',
'1');
40if (!defined(
'NOREQUIRESOC')) {
41 define(
'NOREQUIRESOC',
'1');
45require
'../../main.inc.php';
53require_once DOL_DOCUMENT_ROOT.
'/societe/class/societe.class.php';
57$filter =
GETPOST(
'filter',
'alpha');
59$action =
GETPOST(
'action',
'aZ09');
61$excludeids =
GETPOST(
'excludeids',
'intcomma');
71if ($user->socid > 0) {
73 $socid = $user->socid;
87if (!empty($action) && $action ==
'fetch' && !empty($id) && $user->hasRight(
'societe',
'lire')) {
88 require_once DOL_DOCUMENT_ROOT.
'/societe/class/societe.class.php';
98 $outjson = array(
'ref' => $outref,
'name' => $outname,
'desc' => $outdesc,
'type' => $outtype);
101 echo json_encode($outjson);
103 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.form.class.php';
107 if ($htmlname ===
'') {
114 $match = preg_grep(
'/('.preg_quote($htmlname,
'/').
'[0-9]+)/', array_keys($_GET));
117 $id = (!empty($match[0]) ? $match[0] :
'');
120 $searchkey = ((
$id &&
GETPOST($id,
'alpha')) ?
GETPOST($id,
'alpha') : (($htmlname &&
GETPOST($htmlname,
'alpha')) ? (
string)
GETPOST($htmlname,
'alpha') :
''));
125 if (!empty($excludeids)) {
126 $excludeids = explode(
',', $excludeids);
128 $excludeids = array();
136 $arrayresult = $form->select_thirdparty_list(
'0', (
string) $htmlname, $filter, 1, $showtype, 0, array(), $searchkey, $outjson, $limit,
'minwidth100',
'',
false, $excludeids, $showcode);
139 print json_encode($arrayresult);
$id
Support class for third parties, contacts, members, users or resources.
if(! $sortfield) if(! $sortorder) $object
Class to manage third parties objects (customers, suppliers, prospects...)
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dol_strlen($string, $stringencoding='UTF-8')
Make a strlen call.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
print $langs trans("Show") . '< td style="' . $timeColor . '" align="center"> s</td > badge status0 badge status4 badge status3 Error badge status8< td align="center">< span class="badge ' . $badge . '"></span ></td >< td align="center">< a href="#" class="button button-small" onclick="openLogModal(this)" data-req="' . dol_escape_htmltag($reqSafe) . '" data-res="' . dol_escape_htmltag($resSafe) . '" data-err="' . dol_escape_htmltag($errSafe) . '">< span class="fa fa-search-plus"></span ></a ></td ></tr >< tr >< td colspan="' . $colspan . '" class="opacitymedium"></td ></tr ></table ></div ></form > logModal none logModal none s a JSON string
buildzip.php
if(!defined( 'NOREQUIREMENU')) if(!empty(GETPOST('seteventmessages', 'alpha'))) if(!function_exists("llxHeader")) top_httphead($contenttype='text/html', $forcenocache=0)
Show HTTP header.
httponly_accessforbidden($message='1', $http_response_code=403, $stringalreadysanitized=0)
Show a message to say access is forbidden and stop program.
restrictedArea(User $user, $features, $object=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $mode=0)
Check permissions of a user to show a page and an object.