예제 #1
0
<?php

include '../class/requestClass.php';
include '../class/securityClass.php';
include '../class/routingClass.php';
use barla\request\requestClass as request;
use barla\security\securityClass as security;
use barla\routing\routingClass as routing;
$user = request::getParamPost('inputUser');
$pass = request::getParamPost('inputPassword');
if (security::verifyUserAndPassword($user, $pass) === true) {
    routing::redirect('../mainMenu.php');
} else {
    routing::redirect('../index.php?user=false');
}
예제 #2
0
 public function printBill()
 {
     // cuando no separo el espacio de nombre debo colocar
     // todo el espacio de nombre donde la clase ha sido definida
     \barla\routing\routingClass::redirect('../bill.php');
 }
예제 #3
0
<?php

session_start();
include '../class/requestClass.php';
include '../class/routingClass.php';
include '../class/productClass.php';
include '../class/jabonClass.php';
include '../class/billClass.php';
use barla\request\requestClass as request;
use barla\routing\routingClass as routing;
use barla\bill\billClass as bill;
$quantity = request::getParamPost('inputCantidadJabon');
$bill = new bill();
if ($bill->setJabon($quantity) === true) {
    routing::redirect('../sell.php');
} else {
    routing::redirect('../sell.php?jabon=false');
}
예제 #4
0
<?php

session_start();
include 'class/routingClass.php';
include 'class/productClass.php';
include 'class/jabonClass.php';
include 'class/tonicoClass.php';
include 'class/billClass.php';
use barla\bill\billClass as bill;
use barla\routing\routingClass as routing;
$bill = new bill();
// ($bill->getShirt() === 0 and $bill->getPants() === 0) ? routing::redirect('mainMenu.php') : null
// if ($bill->getShirt() === 0 and $bill->getPants() === 0) routing::redirect('mainMenu.php')
if ($bill->getTonico() === 0 and $bill->getJabon() === 0) {
    routing::redirect('sell.php');
}
?>
<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>BARLA - Sistema de ventas</title>
    <?php 
include 'html/head.php';
?>
  </head>
  <body>
    <div class="container container-fluid">
      <div class="well" id="wellIdentificacion">
        <div class="page-header">
          <h1><i class="mdi-action-assignment-ind"></i> Datos del cliente</h1>
예제 #5
0
<?php

session_start();
include '../class/requestClass.php';
include '../class/routingClass.php';
include '../class/billClass.php';
use barla\request\requestClass as request;
use barla\routing\routingClass as routing;
use barla\bill\billClass as bill;
$clientId = request::getParamPost('inputId');
$clientName = request::getParamPost('inputName');
$bill = new bill($clientName, $clientId);
routing::redirect('processBill.php');
예제 #6
0
<?php

session_start();
include '../class/requestClass.php';
include '../class/routingClass.php';
include '../class/productClass.php';
include '../class/tonicoClass.php';
include '../class/billClass.php';
use barla\request\requestClass as request;
use barla\routing\routingClass as routing;
use barla\bill\billClass as bill;
$quantity = request::getParamPost('inputCantidadTonico');
$bill = new bill();
if ($bill->setTonico($quantity) === true) {
    routing::redirect('../sell.php');
} else {
    routing::redirect('../sell.php?tonico=false');
}