27if (!defined(
'NOTOKENRENEWAL')) {
28 define(
'NOTOKENRENEWAL', 1);
30if (!defined(
'NOREQUIREMENU')) {
31 define(
'NOREQUIREMENU',
'1');
33if (!defined(
'NOREQUIREHTML')) {
34 define(
'NOREQUIREHTML',
'1');
36if (!defined(
'NOREQUIREAJAX')) {
37 define(
'NOREQUIREAJAX',
'1');
39if (!defined(
'NOREQUIRESOC')) {
40 define(
'NOREQUIRESOC',
'1');
42if (!defined(
'NOREQUIREHTML')) {
43 define(
'NOREQUIREHTML',
'1');
47require
'../../main.inc.php';
57$htmlname =
GETPOST(
'htmlname',
'aZ09');
69dol_syslog(
"Call ajax projet/ajax/projects.php");
71require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formprojet.class.php';
74if (empty($mode) || $mode !=
'gettasks') {
78 $searchkey = (GETPOSTISSET($htmlname) ?
GETPOST($htmlname,
'aZ09') :
'');
81 $arrayresult = $formproject->select_projects_list($socid,
'',
'', 0, 0, 1, $discard_closed, 0, 0, 1, $searchkey);
85 print json_encode($arrayresult);
92if ($mode ==
'gettasks') {
96 $formproject->selectTasks((!empty($socid) ? $socid : -1), 0,
'taskid', 24, 1,
'1', 1, 0, 0,
'maxwidth500',
GETPOSTINT(
'projectid'),
'');
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
if(!defined( 'NOREQUIREMENU')) if(!empty(GETPOST('seteventmessages', 'alpha'))) if(!function_exists("llxHeader")) top_httphead($contenttype='text/html', $forcenocache=0)
Show HTTP header.
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.