$dao = new wsDAOBook($core->con);\r
if (isset($this->args['cid'])) {\r
$book = $dao->selectByCid($this->args['cid']);\r
- } else if ($this->args['id'] >= 11202) {\r
+ } else if ($this->args['id'] < 11202) {\r
$book = $dao->selectById($this->args['id']);\r
}\r
\r
}\r
\r
public function grdfValidForm() {\r
- $notempty = array('civilite', 'prenom', 'nom', 'email', 'adresse', 'codepostal', 'ville', 'telephone', 'optin', 'connu', 'echeance');\r
+ $notempty = array('civilite', 'prenom', 'nom', 'adresse', 'codepostal', 'ville', 'telephone', 'optin', 'connu', 'echeance');\r
$error = false;\r
$errors = array();\r
foreach ($notempty as $f) {\r
}\r
}\r
\r
- if (!cubeMail::isEmail($this->args['email'])) {\r
+ /*if (!cubeMail::isEmail($this->args['email'])) {\r
$error = true;\r
$errors[] = 'email_valid';\r
- }\r
+ } */\r
\r
$this->xml->addChild('ok', $error ? '0' : '1');\r
$this->xml->addChild('errors', implode(',', $errors));\r
}\r
$datas['date'] = TIME;\r
\r
- $c = $core->con->openCursor('grdf');\r
+ $c = $core->con->openCursor('grdf2013');\r
$c->datas = json_encode($datas);\r
$c->insert();\r
\r
\r
public function grdfCoupon() {\r
$this->outputXML = false;\r
- $couponsRoot = WS_BOOKS . '/working/10828/commerce/';\r
+ $couponsRoot = WS_BOOKS . '/working/11222/commerce/';\r
\r
$xml = simplexml_load_file($couponsRoot . 'references.xml');\r
// Check hash\r
$this->outputXML = false;\r
\r
\r
- $couponsRoot = WS_BOOKS . '/working/10828/commerce/';\r
+ $couponsRoot = WS_BOOKS . '/working/11222/commerce/';\r
\r
$xml = simplexml_load_file($couponsRoot . 'references.xml');\r
\r
}\r
$h.='</tr>';\r
\r
- $r = $core->con->select('SELECT * FROM grdf');\r
+ $r = $core->con->select('SELECT * FROM grdf2013');\r
while ($r->fetch()) {\r
$d = json_decode($r->datas);\r
$rl = explode(',', $d->reflist);\r
$this->fields['helpBookmarks'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __("Améliorer l'aide des marques-pages"));\r
$this->fields['helpStartup'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __("Afficher l'aide au démarrage"));\r
$this->fields['helpStartupTime'] = array('type' => 'integer', 'default' => 15, 'editable' => true, 'label' => __("Temps d'affichage en secondes"));\r
+ $this->fields['helpArrowTooltip'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __('Bulle affichée au niveau de la flèche de droite'), 'grade' => 5);\r
$this->forms['help'] = array('label' => __('Aide'),\r
- 'fieldsnames' => array('help', '|', 'helpStartup', 'helpStartupTime', '|', 'helpBookmarks'));\r
+ 'fieldsnames' => array('help', '|', 'helpStartup', 'helpStartupTime', '|', 'helpBookmarks','|','helpArrowTooltip'));\r
// .\r
// \r
$this->fields['indexAutoScroll'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __('Activer le scroll automatique'));\r