|
|
@@ -9,53 +9,58 @@ namespace Modules;
|
|
|
|
|
|
class Pages extends BaseController
|
|
|
{
|
|
|
- public function Login($f3)
|
|
|
- {
|
|
|
- if ($this->isLogged)
|
|
|
- $f3->reroute('/homemenu');
|
|
|
- else
|
|
|
- $f3->set('CONTENT', 'login.tpl');
|
|
|
-
|
|
|
- echo \Template::instance()->render('masterpage.tpl');
|
|
|
- }
|
|
|
+ public function Login($f3)
|
|
|
+ {
|
|
|
+ if ($this->isLogged)
|
|
|
+ $f3->reroute('/homemenu');
|
|
|
+ else
|
|
|
+ $f3->set('CONTENT', 'login.tpl');
|
|
|
|
|
|
- public function HomeMenu($f3)
|
|
|
- {
|
|
|
- $f3->set('CONTENT', 'homemenu.tpl');
|
|
|
- echo \Template::instance()->render('masterpage.tpl');
|
|
|
- }
|
|
|
+ echo \Template::instance()->render('masterpage.tpl');
|
|
|
+ }
|
|
|
|
|
|
- public function Pick2Light(object $f3, array $args)
|
|
|
- {
|
|
|
- switch ($args['step']) {
|
|
|
- case 3:
|
|
|
- $f3->set("INFOTEXT", "Aggancia l'etichetta elettronica al carrello e scannerizza il barcode");
|
|
|
- break;
|
|
|
- }
|
|
|
-
|
|
|
- $f3->set('DISTINTE', $f3->Get('DB')->exec('SELECT DISTINCT commessa FROM distinte'));
|
|
|
- $f3->set('STEP', $args['step']);
|
|
|
- $f3->set('CONTENT', 'pick2light.tpl');
|
|
|
- echo \Template::instance()->render('masterpage.tpl');
|
|
|
- }
|
|
|
+ public function HomeMenu($f3)
|
|
|
+ {
|
|
|
+ $f3->set('CONTENT', 'homemenu.tpl');
|
|
|
+ echo \Template::instance()->render('masterpage.tpl');
|
|
|
+ }
|
|
|
|
|
|
- public function Bind($f3, $args)
|
|
|
- {
|
|
|
- if($args['step']>2)
|
|
|
- {
|
|
|
- $f3->set("INFOTEXT", "Step 3 non ancora implementato");
|
|
|
- $args['step'] = 2;
|
|
|
- }
|
|
|
-
|
|
|
- $f3->set('STEP', $args['step']);
|
|
|
- $f3->set('CONTENT', 'bind.tpl');
|
|
|
- $f3->set('AUTOFOCUS' . $args['step'], 'autofocus');
|
|
|
- echo \Template::instance()->render('masterpage.tpl');
|
|
|
+ public function Pick2Light(object $f3, array $args)
|
|
|
+ {
|
|
|
+ switch ($args['step']) {
|
|
|
+ case 2:
|
|
|
+ $f3->set('SESSION.commessa', $f3->get('POST.commessa'));
|
|
|
+ break;
|
|
|
+ case 3;
|
|
|
+ $f3->set('SESSION.labelid', $f3->get('POST.labelid'));
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ $f3->set("INFOTEXT", "Aggancia l'etichetta elettronica al carrello e scannerizza il barcode");
|
|
|
+ break;
|
|
|
}
|
|
|
|
|
|
- public function ElencoDistinta($f3)
|
|
|
- {
|
|
|
- $f3->set('CONTENT', 'distinta.tpl');
|
|
|
- echo \Template::instance()->render('masterpage.tpl');
|
|
|
+ $f3->set('DISTINTE', $f3->Get('DB')->exec('SELECT DISTINCT commessa FROM distinte'));
|
|
|
+ $f3->set('STEP', $args['step']);
|
|
|
+ $f3->set('CONTENT', 'pick2light.tpl');
|
|
|
+ echo \Template::instance()->render('masterpage.tpl');
|
|
|
+ }
|
|
|
+
|
|
|
+ public function Bind($f3, $args)
|
|
|
+ {
|
|
|
+ if ($args['step'] > 2) {
|
|
|
+ $f3->set("INFOTEXT", "Step 3 non ancora implementato");
|
|
|
+ $args['step'] = 2;
|
|
|
}
|
|
|
+
|
|
|
+ $f3->set('STEP', $args['step']);
|
|
|
+ $f3->set('CONTENT', 'bind.tpl');
|
|
|
+ $f3->set('AUTOFOCUS' . $args['step'], 'autofocus');
|
|
|
+ echo \Template::instance()->render('masterpage.tpl');
|
|
|
+ }
|
|
|
+
|
|
|
+ public function ElencoDistinta($f3)
|
|
|
+ {
|
|
|
+ $f3->set('CONTENT', 'distinta.tpl');
|
|
|
+ echo \Template::instance()->render('masterpage.tpl');
|
|
|
+ }
|
|
|
}
|