26 if (!defined(
'NOTOKENRENEWAL')) define(
'NOTOKENRENEWAL', 1);
27 if (!defined(
'NOREQUIREMENU')) define(
'NOREQUIREMENU',
'1');
28 if (!defined(
'NOREQUIREHTML')) define(
'NOREQUIREHTML',
'1');
29 if (!defined(
'NOREQUIREAJAX')) define(
'NOREQUIREAJAX',
'1');
30 if (!defined(
'NOREQUIRESOC')) define(
'NOREQUIRESOC',
'1');
31 if (!defined(
'NOCSRFCHECK')) define(
'NOCSRFCHECK',
'1');
32 if (empty($_GET[
'keysearch']) && !defined(
'NOREQUIREHTML')) define(
'NOREQUIREHTML',
'1');
34 require
'../../main.inc.php';
36 $htmlname =
GETPOST(
'htmlname',
'aZ09');
37 $socid =
GETPOST(
'socid',
'int');
38 $discard_closed =
GETPOST(
'discardclosed',
'int');
45 dol_syslog(
"Call ajax projet/ajax/projects.php");
48 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formprojet.class.php';
52 if (empty($htmlname) && !
GETPOST(
'mode',
'aZ09'))
return;
55 if (!
GETPOST(
'mode',
'aZ09') ||
GETPOST(
'mode',
'aZ09') !=
'gettasks') {
60 $arrayresult = $formproject->select_projects_list($socid,
'', $htmlname, 0, 0, 1, $discard_closed, 0, 0, 1, $searchkey);
64 if (
GETPOST(
'mode',
'aZ09') ==
'gettasks') {
66 $formproject->selectTasks((!empty($$socid) ? $socid : -1), 0,
'taskid', 24, 1,
'1', 1, 0, 0,
'maxwidth500',
GETPOST(
'projectid',
'int'),
'');
73 print json_encode($arrayresult);
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
if(!defined('NOREQUIREMENU')) if(!function_exists("llxHeader")) top_httphead($contenttype= 'text/html', $forcenocache=0)
Show HTTP header.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename= '', $restricttologhandler= '', $logcontext=null)
Write log message into outputs.
print
Draft customers invoices.