Update card.php
This commit is contained in:
parent
a079fb3fec
commit
39627db434
@ -18,15 +18,17 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/opensurvey/card.php
|
* \file htdocs/opensurvey/card.php
|
||||||
* \ingroup opensurvey
|
* \ingroup opensurvey
|
||||||
* \brief Page to edit survey
|
* \brief Page to edit survey
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// Load Dolibarr environment
|
||||||
require '../main.inc.php';
|
require '../main.inc.php';
|
||||||
|
require_once DOL_DOCUMENT_ROOT."/core/class/doleditor.class.php";
|
||||||
require_once DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php";
|
require_once DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php";
|
||||||
require_once DOL_DOCUMENT_ROOT."/core/lib/files.lib.php";
|
require_once DOL_DOCUMENT_ROOT."/core/lib/files.lib.php";
|
||||||
require_once DOL_DOCUMENT_ROOT."/core/class/doleditor.class.php";
|
|
||||||
require_once DOL_DOCUMENT_ROOT."/opensurvey/class/opensurveysondage.class.php";
|
require_once DOL_DOCUMENT_ROOT."/opensurvey/class/opensurveysondage.class.php";
|
||||||
require_once DOL_DOCUMENT_ROOT."/opensurvey/lib/opensurvey.lib.php";
|
require_once DOL_DOCUMENT_ROOT."/opensurvey/lib/opensurvey.lib.php";
|
||||||
|
|
||||||
@ -36,7 +38,7 @@ if (empty($user->rights->opensurvey->read)) {
|
|||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialisation des variables
|
// Initialize Variables
|
||||||
$action = GETPOST('action', 'aZ09');
|
$action = GETPOST('action', 'aZ09');
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
$cancel = GETPOST('cancel', 'alpha');
|
||||||
|
|
||||||
@ -46,6 +48,7 @@ if (GETPOST('id')) {
|
|||||||
$numsondage = (string) GETPOST('id', 'alpha');
|
$numsondage = (string) GETPOST('id', 'alpha');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Initialize objects
|
||||||
$object = new Opensurveysondage($db);
|
$object = new Opensurveysondage($db);
|
||||||
|
|
||||||
$result = $object->fetch(0, $numsondage);
|
$result = $object->fetch(0, $numsondage);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user