24 if (!defined(
'NOTOKENRENEWAL')) define(
'NOTOKENRENEWAL',
'1');
25 if (!defined(
'NOREQUIREMENU')) define(
'NOREQUIREMENU',
'1');
26 if (!defined(
'NOREQUIREHTML')) define(
'NOREQUIREHTML',
'1');
27 if (!defined(
'NOREQUIREAJAX')) define(
'NOREQUIREAJAX',
'1');
28 if (!defined(
'NOREQUIRESOC')) define(
'NOREQUIRESOC',
'1');
30 require
'../../main.inc.php';
31 require_once DOL_DOCUMENT_ROOT.
'/core/class/infobox.class.php';
33 $boxid =
GETPOST(
'boxid',
'int');
34 $boxorder =
GETPOST(
'boxorder');
37 $userid =
GETPOST(
'userid',
'int');
54 if ($boxid > 0 && $zone !=
'' && $userid > 0)
56 $tmp = explode(
'-', $boxorder);
57 $nbboxonleft = substr_count($tmp[0],
',');
58 $nbboxonright = substr_count($tmp[1],
',');
59 print $nbboxonleft.
'-'.$nbboxonright;
60 if ($nbboxonleft > $nbboxonright) $boxorder = preg_replace(
'/B:/',
'B:'.$boxid.
',', $boxorder);
61 else $boxorder = preg_replace(
'/^A:/',
'A:'.$boxid.
',', $boxorder);
65 if ($boxorder && $zone !=
'' && $userid > 0)
68 dol_syslog(
"AjaxBox boxorder=".$boxorder.
" zone=".$zone.
" userid=".$userid, LOG_DEBUG);
73 $langs->load(
"boxes");
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.
static saveboxorder($db, $zone, $boxorder, $userid=0)
Save order of boxes for area and user.
setEventMessages($mesg, $mesgs, $style= 'mesgs', $messagekey= '')
Set event messages in dol_events session object.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename= '', $restricttologhandler= '', $logcontext=null)
Write log message into outputs.
print $_SERVER["PHP_SELF"]
Edit parameters.
print
Draft customers invoices.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $keepmoretags= '', $escapeonlyhtmltags=0)
Returns text escaped for inclusion in HTML alt or title tags, or into values of HTML input fields...