public function action_index()
 {
     $config = Fuel\Core\Config::get('pagination');
     $pagination = Fuel\Core\Pagination::forge('admin.currencies', $config);
     $pagination->total_items = Model_Customer::count();
     $data['pagination'] = $pagination;
     $data['currencies'] = Model_Currency::find('all', array('order_by' => array(array('country', 'asc')), 'limit' => $pagination->per_page, 'offset' => $pagination->offset));
     $this->template->title = "Currencies";
     $this->template->content = View::forge('admin/currencies/index', $data);
 }
 public function action_index()
 {
     $config = Fuel\Core\Config::get('pagination');
     $pagination = Fuel\Core\Pagination::forge('admin.inventory', $config);
     $pagination->total_items = Model_Inventory::count();
     $data['pagination'] = $pagination;
     $data['inventories'] = Model_Inventory::find('all', array('order_by' => array(array('description', 'asc')), 'limit' => $pagination->per_page, 'offset' => $pagination->offset));
     $this->template->title = "Inventory » Listing";
     $this->template->content = View::forge('admin/inventory/index', $data);
 }
Esempio n. 3
0
File: ebs.php Progetto: stabernz/wnb
 * Main layout view that loads header, footer, default content, and ebs.js.
 * 
 * @author Stefan Taber <*****@*****.**>
 * @copyright 2015 Air Hawkes Bay Ltd
 * @version 0.0.1
 * 
 */
?>

<!DOCTYPE html>
<html>
    <head>
        
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=<?php 
echo Fuel\Core\Config::get('ebs.ui.common.scale.user');
?>
">
        <meta name="description" content="<?php 
echo $meta_description;
?>
">
        
        <title>EBSv2 - <?php 
echo $organisation;
?>
</title>
        
        <?php 
foreach ($assets as $asset) {
    echo $asset;
Esempio n. 4
0
 /**
  * Decrypt
  * @author Y.Hasegawa <*****@*****.**>
  * @param string
  * @return mixed
  */
 public static function decrypt($encrypted)
 {
     try {
         $decrypted = rtrim(mcrypt_decrypt(MCRYPT_BLOWFISH, pack("H*", Fuel\Core\Config::get('preview_encrypt_key')), pack("H*", $encrypted), MCRYPT_MODE_CBC, pack("H*", Fuel\Core\Config::get('preview_encrypt_iv'))));
         return unserialize($decrypted);
     } catch (Fuel\Core\PhpErrorException $ex) {
         return null;
     }
 }
Esempio n. 5
0
<ul class="dropdown-menu" name="add-pulldown">
	<li class="<?php 
echo Utility::is_allowed(MyAuth::$role_edit);
?>
" ><a name="add-btn" style="cursor: pointer" href="<?php 
echo Fuel\Core\Uri::base();
?>
job/job?job_id=<?php 
echo $row['job_id'];
?>
"><i class="glyphicon glyphicon-pencil"></i> 編集</a></li>
	<li><a target="_blank" href="<?php 
echo trim(Fuel\Core\Config::get('uos_url'), '/');
?>
/preview?enc=<?php 
echo Utility::encrypt($row['job_id'] . ':' . time());
?>
&job_id=<?php 
echo $row['job_id'];
?>
&view=1#" style="cursor: pointer"><i class="glyphicon glyphicon-search"></i> プレビュー</a></li>
	<?php 
if ($row['is_available']) {
    ?>
	<li class="<?php 
    echo Utility::is_allowed(MyAuth::$role_public);
    ?>
"><a style="cursor: pointer" onclick="is_available('<?php 
    echo $row['job_id'];
    ?>
','<?php