コード例 #1
0
ファイル: product.php プロジェクト: miccgood/freight_fast
<div class="col-md-9-5 col-xs-9-5">
    <h1> <font style="color: #5D5D5D;"> {h_header} </font> <span class="small">{s_header}</span></h1>
    <hr/>
    <div class="row" id="content">

        <div class="col-lg-12 col-md-12 col-sm-12">
            <div class="product">

                <div class="row">
                    <div class="col-lg-12 col-md-12 col-sm-12" style="text-align: center;">
                        <img src="<?php 
echo base_url(Constant::getUploadProductBannerPath() . "{product_banner_link}");
?>
" class="banner"/>
                    </div>
                </div>
                <hr>
                <div class="row">
                    <div class="col-lg-12 col-md-12 col-sm-12" style="">
                        <h3 class="product-header"> {product_header} </h3>
                    </div>
                </div>
                <div class="row">
                    <div class="col-lg-12 col-md-12 col-sm-12">
                        <div class="row">
                            <label class="col-lg-3 col-md-3 col-sm-3">ประเทศ</label>
                            <div class="col-lg-9 col-md-9 col-sm-9">
                                {product_country}
                            </div>
                        </div>
コード例 #2
0
ファイル: index.php プロジェクト: miccgood/tourmaline
    </div>
</div>

<div class="row" id="content">
    <?php 
foreach ($products as $key => $product) {
    ?>
        <div class="col-sm-6 col-lg-6 col-md-6">

            <a href="<?php 
    echo base_url("product/index/" . $product["category_id"] . "/" . $product["id"]);
    ?>
">
                <div class="thumbnail">
                    <img src="<?php 
    echo base_url(Constant::getUploadProductBannerPath() . $product["product_banner_link"]);
    ?>
" alt="">

                    <hr/>
                    <div class="caption">

                                                <!--<h4 class="pull-right"><?php 
    echo number_format($product["product_price"], 0, '.', ',');
    ?>
 บาท</h4>-->
                        <h5 class="header">
                            <?php 
    echo $product["product_header"];
    ?>
                        </h5>
コード例 #3
0
ファイル: Admin.php プロジェクト: miccgood/tourmaline
 public function product()
 {
     try {
         $crud = $this->getCrud();
         $crud->set_table('product');
         $crud->set_subject('Product');
         $crud->columns('product_code', 'product_banner_link', 'category_id', "product_header", 'product_details', 'product_price', 'show', 'highlight');
         $crud->set_field_upload('product_banner_link', Constant::getUploadProductBannerPath());
         $crud->set_field_upload('product_pdf_link', Constant::getUploadProductPdfPath());
         $crud->set_relation('category_id', 'category', 'category_name');
         $crud->callback_column('product_price', array($this, 'formatPrice'));
         $crud->add_action('Preview', '', 'product/', 'preview-icon', array($this, 'getPreviewUrl'));
         $crud->display_as('product_code', 'Code');
         $crud->display_as('product_banner_link', 'Banner');
         $crud->display_as('product_header', 'Header');
         $crud->display_as('product_sub_header', 'Sub Header');
         $crud->display_as('product_details', 'Detials');
         $crud->display_as('product_price', 'price');
         $crud->display_as('product_period', 'Period');
         $crud->display_as('product_itinerary', 'Itinerary');
         $crud->display_as('category_id', 'Category');
         $crud->display_as('product_country', 'Country');
         $crud->display_as('product_program', 'Program');
         $crud->field_type('show', 'true_false');
         $crud->field_type('highlight', 'true_false');
         $output = $crud->render();
         $this->output($output);
     } catch (Exception $e) {
         show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
     }
 }