Example #1
0
 <?php 
$oFnb = new Fnb();
$fnbs = $oFnb->findAllFrom("Fnb", "1=1 order by sequence");
?>



 <?php 
$oFnbGallery = new FnbGallery();
$fnbgalleryAll = $oFnbGallery->findAllFrom("FnbGallery", "1=1 order by sequence");
//1st Room
//8th Room
$idx = 1;
?>



<div class="fnb-wrap">

	<div class="inner">

		<div class="fnb-title"><h2>BISTRO &amp; BAR</h2></div>

		<div class="clear">&nbsp;</div>

		<div class="fnb-left">

			<div class="fnb-slide">

				<?php 
if ($oFnbGallery->countFrom('FnbGallery', "1=1") > 0) {
Example #2
0
 public function save_order()
 {
     $fnb_array = $_POST['fnb_id'];
     $order_array = $_POST['order'];
     $fnb = new Fnb();
     foreach ($fnb_array as $key => $value) {
         $fnb_id = $value;
         $fnb_order = $order_array[$key];
         $fnb->update('Fnb', array('sequence' => $fnb_order), 'id=' . $fnb_id);
     }
     Flash::set('success', __('This fnb sequence has been saved.'));
     redirect(get_url('fnb'));
 }