echo get_url('fnbgallery/createalbum'); ?> " method="post" enctype="multipart/form-data"> <div class="titlebar"> <?php echo __('Create Album'); ?> <a href="#" class="close"><img src="<?php echo ICONS_URI; ?> delete-disabled-16.png"/></a> </div> <div class="content"> <?php $oFnbGallery = new FnbGallery(); ?> <input type=hidden name="sequence" value="<?php echo $oFnbGallery->getLastAlbumSeq(); ?> "> <!-- <?php echo __('Assign to Page'); ?> <div id="meta-pages" class=""> <select id="page_id" name="page_id"> <option value=""></option> <?php
public function save_order() { $fnbgallery_array = $_POST['fnbgallery_id']; $order_array = $_POST['order']; $fnbgallery = new FnbGallery(); foreach ($fnbgallery_array as $key => $value) { $fnbgallery_id = $value; $fnbgallery_order = $order_array[$key]; $fnbgallery->update('FnbGallery', array('sequence' => $fnbgallery_order), 'id=' . $fnbgallery_id); } Flash::set('success', __('This fnbgallery sequence has been saved.')); if ($_POST['album_id'] > 0) { redirect(get_url('fnbgallery/view_album/' . $_POST['album_id'])); } else { redirect(get_url('fnbgallery')); } }
<?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 & BAR</h2></div> <div class="clear"> </div> <div class="fnb-left"> <div class="fnb-slide"> <?php if ($oFnbGallery->countFrom('FnbGallery', "1=1") > 0) {