function startElement($parser, $tagName, $attrs) { $this->tag = $tagName; switch ($tagName) { case "HOPS": $hops = new Hops(); $hops->parse($parser, $this); $this->hops = $hops; break; case "FERMENTABLES": $fermentables = new Fermentables(); $fermentables->parse($parser, $this); $this->fermentables = $fermentables; break; case "YEASTS": $yeasts = new Yeasts(); $yeasts->parse($parser, $this); $this->yeasts = $yeasts; break; case "STYLE": $style = new Style(); $style->parse($parser, $this); $this->style = $style; break; case "MASH": $mash = new Mash(); $mash->parse($parser, $this); $this->mash = $mash; break; case "WATER": // beerXML SPEC DOES NOT INCLUDE A WATERS TAG, ONLY WATER...BEERSMITH IS IMPLEMENTING INCORRECTLY $water = new Waters(); $water->parse($parser, $this); $this->water = $water; break; case "MISCS": $miscs = new Miscs(); $miscs->parse($parser, $this); $this->miscs = $miscs; break; case "EQUIPMENT": // SKIPPING EQUIPMENTS OBJECT AS BEERSMITH DOES NOT IMPLEMENT CORRECTLY $equipment = new Equipment(); $equipment->parse($parser, $this); $this->equipments = $equipment; break; default: break; } }
<section id="main-wraper" class="row"> <div id="sidebar" class="col-md-3"> <?php require_once CNS_INCLUDES . 'common/navigation.php'; ?> </div> <div id="main-content" class="col-md-9"> <?php $water = new Waters(); $datanewbuy = $water->memberFinal(); $listnewbuy = $water->listMemberlastest(); ?> <div class="col-md-6 memberfinal"> <h4><i class="glyphicon glyphicon-bookmark memberfinalicon"></i> Người Mua Gần Đấy Nhất: <?php echo $datanewbuy['firstname'] . ' ' . $datanewbuy['lastname']; ?> </h4><br> <ul class="list-unstyled"> <li>Số Lượng: <?php echo $datanewbuy['soluong']; ?> </li> <li>Ngày Mua: <?php echo $datanewbuy['created'] != '0000-00-00 00:00:00' ? gmdate("H:i d/m/Y", strtotime($datanewbuy['created']) + 7 * 3600) : '-'; ?> </li> </ul> </div> <div class="col-md-6 listmember"> <h4><i class="glyphicon glyphicon-th-list listmemberlastest"></i> Danh Sách Những người mua gần đây nhất</h4> <ol>
<section id="main-wraper" class="row"> <div id="sidebar" class="col-md-3"> <?php require_once CNS_INCLUDES . 'common/navigation.php'; ?> </div> <div id="main-content" class="col-md-9"> <?php if (Input::exist()) { $errors = []; $masv = htmlentities(trim(Input::get('masv'))); $soluong = htmlentities(trim(Input::get('soluong'))); $descript = htmlentities(trim(Input::get('description'))); $water = new Waters(); $rs = $water->addWater($masv, $soluong, $descript); if ($rs) { header('location:index.php?module=waters'); exit; } else { $errors[] = 'Xin Vui lòng xem lại các trường nhập!'; } } ?> <h3>Thêm Lượt Mua Nước</h3> <div class="section-errors"> <ul class="list-unstyled"> <?php if (!empty($errors)) { foreach ($errors as $error) { echo "<li>{$error}</li>"; }