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');
43if (!defined(
'NOREQUIREHTML')) {
44 define(
'NOREQUIREHTML',
'1');
48require
'../../main.inc.php';
57$htmlname =
GETPOST(
'htmlname',
'aZ09');
70dol_syslog(
"Call ajax projet/ajax/projects.php");
72require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formprojet.class.php';
75if (empty($mode) || $mode !=
'gettasks') {
79 $searchkey = (GETPOSTISSET($htmlname) ?
GETPOST($htmlname,
'aZ09') :
'');
82 $arrayresult = $formproject->select_projects_list($socid, 0,
'', 0, 0, 1, $discard_closed, 0, 0, 1, $searchkey);
86 print json_encode($arrayresult);
93if ($mode ==
'gettasks') {
97 $formproject->selectTasks((!empty($socid) ? $socid : -1), 0,
'taskid', 64, 1,
'1', 1, 0, 0,
'maxwidth500', (
string)
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.
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.
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.