19 if (!defined(
'NOTOKENRENEWAL')) {
20 define(
'NOTOKENRENEWAL',
'1');
22 if (!defined(
'NOREQUIREMENU')) {
23 define(
'NOREQUIREMENU',
'1');
25 if (!defined(
'NOREQUIREHTML')) {
26 define(
'NOREQUIREHTML',
'1');
28 if (!defined(
'NOREQUIREAJAX')) {
29 define(
'NOREQUIREAJAX',
'1');
31 if (!defined(
'NOREQUIRESOC')) {
32 define(
'NOREQUIRESOC',
'1');
34 if (!defined(
'NOREQUIRETRAN')) {
35 define(
'NOREQUIRETRAN',
'1');
39 require
'../../main.inc.php';
40 require DOL_DOCUMENT_ROOT .
'/variants/class/ProductAttribute.class.php';
46 if ($user->socid > 0) {
58 print
'<!-- Ajax page called with url '.dol_escape_htmltag($_SERVER[
"PHP_SELF"]).
'?'.
dol_escape_htmltag($_SERVER[
"QUERY_STRING"]).
' -->'.
"\n";
61 if (
GETPOST(
'roworder',
'alpha', 3)) {
62 $roworder =
GETPOST(
'roworder',
'alpha', 3);
64 dol_syslog(
"AjaxOrderAttribute roworder=" . $roworder, LOG_DEBUG);
66 $rowordertab = explode(
',', $roworder);
67 $newrowordertab = array();
68 foreach ($rowordertab as $value) {
70 $newrowordertab[] = $value;
76 $row->attributesAjaxOrder($newrowordertab);
78 print
'Bad parameters for orderAttribute.php';
Class ProductAttribute Used to represent a product attribute.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0)
Returns text escaped for inclusion in HTML alt or title tags, or into values of HTML input fields.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
isModEnabled($module)
Is Dolibarr module enabled.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
if(!defined('NOREQUIREMENU')) 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.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.