Exemplo n.º 1
0
 /**
  * Creates a url with the given uri, including the base url
  *
  * @param   string  $uri            The uri to create the URL for
  * @param   array   $variables      Some variables for the URL
  * @param   array   $get_variables  Any GET urls to append via a query string
  * @param   bool    $secure         If false, force http. If true, force https
  * @return  string
  */
 public static function create($uri = null, $variables = array(), $get_variables = array(), $secure = null)
 {
     if (is_null($secure) && FBD_SSL_MODE) {
         $secure = Site_Util::check_ssl_required_uri($uri, FBD_SSL_MODE == 'ALL');
     }
     return parent::create($uri, $variables, $get_variables, $secure);
 }
Exemplo n.º 2
0
')
				{
					opt.prop('selected', true);
				}

				$("select[name=partner_code]").append(opt);
			});
			$("select[name=partner_code]").trigger('change');
		});
	}).trigger('change');

	$('select[name=partner_code]').on('change', function ()
	{
		$.getJSON(
				'<?php 
echo Fuel\Core\Uri::base();
?>
ajax/common/get_ss',
				{
					'group_id': $('select[name=group_id]').val(), 'partner_code': $(this).val(
				)}
		).done(function (response)
		{
			$("select[name=ss_id] option[value!='']").remove();
			$.each(response, function ()
			{
				var opt = $('<option></option>')
						.attr('value', this.ss_id)
						.text(this.ss_name)
						;
Exemplo n.º 3
0
    <script>
        $('.sp-wrap').smoothproducts();
    </script>
<?php 
}
?>

<?php 
if ($controller === 'Controller_Category' && in_array($action, array('index')) && $total_page > 1) {
    ?>
    <?php 
    echo Asset::js(array('../../plugins/jQuery-pagination/jquery.pagination.js'));
    ?>
    <script>
        var code = "<?php 
    echo Fuel\Core\Uri::segment(2);
    ?>
";
        $('.pagination').jqueryPagination({
            totalPages: <?php 
    echo $total_page;
    ?>
,
            visiblePages: <?php 
    echo _DEFAULT_VISIBLE_PAGES_;
    ?>
,
            prev: '&laquo;',
            next: '&raquo;',
            first: false,
            last: false,
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                </button>
                <?php 
    echo Fuel\Core\Html::anchor('admin', 'Back Office', array('class' => 'navbar-brand'));
    ?>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">                                                        
                    <?php 
    $segment = Fuel\Core\Uri::segment(2, '');
    ?>

                    <li class="<?php 
    echo $segment == '' ? 'active' : '';
    ?>
">
                        <?php 
    echo Fuel\Core\Html::anchor('admin', 'Dashboard');
    ?>
                    </li>
                    
                    <li class="dropdown" class="<?php 
    echo in_array($segment, array('report', 'report')) ? 'active' : '';
    ?>
">
Exemplo n.º 5
0
if (!empty($category)) {
    ?>
                                <li class="dropdown"><a href="#" class="<?php 
    echo $controller === 'Controller_Category' ? 'active' : '';
    ?>
">Danh Mục<i class="fa fa-angle-down"></i></a>
                                    <ul role="menu" class="sub-menu">
                                        <?php 
    foreach ($category as $v) {
        ?>
                                            <li>
                                                <a href="/category/<?php 
        echo $v['code'];
        ?>
" class="<?php 
        echo $controller === 'Controller_Category' && Fuel\Core\Uri::segment(2) == $v['code'] ? 'active' : '';
        ?>
">
                                                    <?php 
        echo $v['category_name_display'];
        ?>
                                                </a>
                                            </li>
                                        <?php 
    }
    ?>
                                    </ul>
                                </li>
                            <?php 
}
?>