<?php /** * Created by PhpStorm. * User: Allan Wiz * Date: 1/29/16 * Time: 11:30 AM */ require_once 'header.php'; use app\controllers\utilities; $utilities = new utilities(); $batteries = $utilities->getAllBaterries(); ?> <div class="main-content"> <div class="main-content-inner"> <div class="breadcrumbs" id="breadcrumbs"> <script type="text/javascript"> try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { } </script> <ul class="breadcrumb"> <li> <i class="ace-icon fa fa-home home-icon"></i> <a href="#">Home</a> </li> <li>
<?php /** * Created by PhpStorm. * User: Allan Wiz * Date: 1/29/16 * Time: 11:31 AM */ require_once 'header.php'; use app\controllers\utilities; $utilities = new utilities(); $rectifiers = $utilities->fetchAllRectifiers(); ?> <div class="main-content"> <div class="main-content-inner"> <div class="breadcrumbs" id="breadcrumbs"> <script type="text/javascript"> try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { } </script> <ul class="breadcrumb"> <li> <i class="ace-icon fa fa-home home-icon"></i> <a href="#">Home</a> </li> <li>
<?php /** * Created by PhpStorm. * User: Allan Wiz * Date: 1/29/16 * Time: 11:30 AM */ require_once 'header.php'; use app\controllers\utilities; $utilities = new utilities(); $genSets = $utilities->getAllGenSetDetails(); ?> <div class="main-content"> <div class="main-content-inner"> <div class="breadcrumbs" id="breadcrumbs"> <script type="text/javascript"> try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { } </script> <ul class="breadcrumb"> <li> <i class="ace-icon fa fa-home home-icon"></i> <a href="#">Home</a> </li> <li>
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ require '../vendor/autoload.php'; use app\controllers\utilities; $utilities = new utilities(); foreach ($_POST as $key => $value) { ${$key} = $value; } list($company_id, $company_name) = explode("-", $_POST['companyDetails'], 2); $uname = "Allan Kemboi"; $addBattery = $utilities->registerBaterries($battery_name, $company_id, $company_name, $datePurchased, $batteryType, $uname, $voltage, $batt_per_string, $batt_strings, $batt_capacity); if ($addBattery) { echo 'true'; } else { echo 'false'; }
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ require '../vendor/autoload.php'; use app\controllers\utilities; $utilities = new utilities(); foreach ($_POST as $key => $value) { ${$key} = $value; } $addAlarm = $utilities->registerAlarms($alarm_name, $alarm_condition, $uname); if ($addAlarm) { echo "true"; } else { echo "false"; }
<?php /** * **/ require_once 'header.php'; use app\controllers\utilities; $utilities = new utilities(); $batteries = $utilities->getAllBaterries(); $companies = $utilities->fetchAllSupplyCompanyDetails(); ?> <div class="main-content"> <div class="main-content-inner"> <div class="breadcrumbs" id="breadcrumbs"> <script type="text/javascript"> try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { } </script> <ul class="breadcrumb"> <li> <i class="ace-icon fa fa-home home-icon"></i> <a href="dashboard.php">Home</a> </li> <li class="active">Adding New Battery</li> </ul> <!-- /.breadcrumb -->