Esempio n. 1
0
 public function actionRegister()
 {
     $web = new Configweb_model();
     $data['mas_pername'] = $web->pername();
     $data['id'] = $web->autoId('masuser', 'pid', '10');
     $this->render('//main/register', $data);
 }
 public function actionView()
 {
     $Art = new Article();
     $config = new Configweb_model();
     $id = $config->url_decode($_GET['id']);
     $data['result'] = $Art->Get_article_by_id($id);
     $this->render("//article/view", $data);
 }
 public function actionFrom_add_type()
 {
     $type = new Type_product();
     $config = new Configweb_model();
     $data['type_id'] = $config->autoId("product_type", "type_id", "3");
     $data['type'] = $type->Get_all();
     $this->render("//type/create", $data);
 }
Esempio n. 4
0
            load_inbox_cart();
            load_box_cart();
        }
        //});
    }

</script>

<script type="text/javascript">
    function set_group_img(img) {
        $("#img_group").html("<img src='<?php echo Yii::app()->baseUrl ?>/uploads" + "/" + img + " ' width='80%' style='margin-right:20px;' />");
    }
</script>

<?php
$config = new Configweb_model();
$this->breadcrumbs = array(
    $product['type_name'] => array('frontend/product/view/type/' . $config->url_encode($product['type_id'])),
    $product['product_name'],
);
?>
<br/>
<div class="well" style=" width:100%; margin-top:0px; background:#FFF; text-align: left; border:none; box-shadow: none;">
    <div class="row">
        <div class="col-lg-12">
            <font style=" color: #F00; font-size: 24px; font-weight: normal;" id="font-rsu-18">
            <img src="<?php echo Yii::app()->baseUrl; ?>/images/yellow-tag-icon.png"/>
            <?= $product['product_name'] ?>
            </font>
        </div>
    </div>
Esempio n. 5
0
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">

        <title>
            <?php
            $web = new Configweb_model();
            echo $web->get_webname();
            ?>
        </title>

        <link rel="stylesheet" href="<?php echo Yii::app()->baseUrl; ?>/themes/webapp/css/system.css" type="text/css" media="all" />
        <link rel="stylesheet" href="<?php echo Yii::app()->baseUrl; ?>/themes/webapp/bootstrap/css/bootstrap.css" type="text/css" media="all" />

        <link rel="stylesheet" href="<?php echo Yii::app()->baseUrl; ?>/themes/webapp/bootstrap/css/bootstrap-theme.css" type="text/css" media="all" />

        <link rel="stylesheet" href="<?php echo Yii::app()->baseUrl; ?>/themes/webapp/css/cart.css" type="text/css" media="all" />

        <script src="<?php echo Yii::app()->baseUrl; ?>/themes/webapp/js/jquery-1.9.1.js" type="text/javascript"></script>
        <script src="<?php echo Yii::app()->baseUrl; ?>/themes/webapp/bootstrap/js/bootstrap.js" type="text/javascript"></script>
        <script src="<?php echo Yii::app()->baseUrl; ?>/themes/webapp/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
        <script type="text/javascript" src="<?php echo Yii::app()->baseUrl; ?>/themes/webapp/js/bootstrap-select.js"></script>
        <script src="<?php echo Yii::app()->baseUrl; ?>/themes/webapp/js/bootstrap-dropdown.js" type="text/javascript"></script>

        <link rel="stylesheet" href="<?php echo Yii::app()->baseUrl; ?>/css/font-awesome-4.3.0/css/font-awesome.css"/>

        <!-- Magnific Popup core CSS file -->
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        <title>
            <?php
            $product_model = new Backend_product();
            $order_model = new Backend_orders();
            $web = new Configweb_model();
            echo $web->get_webname();
            ?>
        </title>
        <style type="text/css">
            body{
                overflow-x: hidden;
            }
        </style>
        <link rel="stylesheet" href="<?= Yii::app()->baseUrl; ?>/themes/backend/css/system.css" type="text/css" media="all" />
        <link rel="stylesheet" href="<?= Yii::app()->baseUrl; ?>/themes/backend/bootstrap/css/bootstrap.css" type="text/css" media="all" />
        <!--
                <link rel="stylesheet" href="<?//= Yii::app()->baseUrl; ?>/themes/backend/css/bootstrap-theme.css" type="text/css" media="all" />
        -->
        <link rel="stylesheet" href="<?= Yii::app()->baseUrl; ?>/assets/gallery_img/dist/magnific-popup.css" type="text/css" media="all" />
        <link rel="stylesheet" href="<?= Yii::app()->baseUrl; ?>/assets/DataTables-1.10.7/media/css/dataTables.bootstrap.css" type="text/css" media="all" />
        <link rel="stylesheet" href="<?= Yii::app()->baseUrl; ?>/assets/DataTables-1.10.7/extensions/TableTools/css/dataTables.tableTools.css" type="text/css" media="all" />
        <link rel="stylesheet" href="<?php echo Yii::app()->baseUrl; ?>/css/font-awesome-4.3.0/css/font-awesome.css"/>
        <link rel="stylesheet" href="<?= Yii::app()->baseUrl; ?>/themes/backend/css/simple-sidebar.css"/>
        <link rel="stylesheet" href="<?= Yii::app()->baseUrl; ?>/assets/perfect-scrollbar/css/perfect-scrollbar.css"/>
Esempio n. 7
0
<script src="<?php echo Yii::app()->baseUrl; ?>/js/_function_edit_profile.js" type="text/javascript"></script>

<script type="text/javascript">
    function set_sex(sex) {
        $("#sex").val(sex);
    }
</script>
<?php
$web = new Configweb_model();
?>

<div class="row" style=" margin: 0px;">
    <div class="col-sm-12">
        <div class="panel panel-default">

            <form id="register" name="register" action="<?php echo Yii::app()->createUrl('frontend/main/save_edit_profile'); ?>" method="post" role="form" onSubmit="return check_from();">
                <div class="panel-body">
                    <div class="row">
                        <div class="col-sm-12">
                            <label>รหัสสมาชิก</label>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-12">
                            <input type="text" id="pid" name="pid" class="form-control input-sm" value="<?php echo $pid; ?>" readonly/>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-sm-12">
                            <label>ชื่อที่ใช้แสดง</label>
             }
             ?>
             <option value="<?php echo $day; ?>" <?php
             if ((int) $day == (int) $daynow) {
                 echo "selected";
             }
             ?>>
                         <?php echo $day; ?>
             </option>
         <?php endfor; ?>
     </select>
 </div>
 <div class="col-lg-4">
     <select id="month" name="month" class="form-control input-sm">
         <?php
         $web = new Configweb_model();
         $monthname = $web->MonthFullArray();
         $monthnow = date("m");
         for ($i = 1; $i <= 12; $i++):
             if (strlen($i) < 2) {
                 $month = "0" . $i;
             } else {
                 $month = $i;
             }
             ?>
             <option value="<?php echo $month; ?>" <?php
             if ((int) $month == (int) $monthnow) {
                 echo "selected";
             }
             ?>>
                         <?php echo $monthname[$i]; ?>
Esempio n. 9
0
 <table class="table table-striped" id="font-20">
     <thead>
         <tr style=" background: #cccccc;">
             <th>#</th>
             <th>ดูสินค้า</th>
             <th>รหัส</th>
             <th style="text-align: center;">วันที่</th>
             <th style="text-align: center;">จำนวน</th>
             <th style="text-align: right;">ราคารวม</th>
             <th style="text-align: center;">สถานะ</th>
         </tr>
     </thead>
     <tbody>
         <?php
         $i = 0;
         $web = new Configweb_model();
         foreach ($order as $rs):
             $i++;
             ?>
             <tr>
                 <td><?php echo $i; ?></td>
                 <td><a href="javascript:view_order('<?php echo $rs['order_id'] ?>')"><i class="fa fa-eye"></i></a></td>
                 <td><?php echo $rs['order_id']; ?></td>
                 <td style="text-align: center;"><?php echo $web->thaidate($rs['order_date']); ?></td>
                 <td style="text-align: center;"><?php echo $rs['PRODUCT_TOTAL']; ?></td>
                 <td style="text-align: right;"><?php echo number_format($rs['PRICE_TOTAL'], 2); ?></td>
                 <td style="text-align: center; color: #ff6600;"><i class="fa fa-info-circle"></i> รอตรวจสอบยอดเงิน</td>
             </tr>
         <?php endforeach; ?>
     </tbody>
 </table>
Esempio n. 10
0
<?php
$this->breadcrumbs = array(
    'ค้นหาสินค้า',
);
?>
<br/>
<ol class="dribbbles group" style="padding-left: 0px;">
    <?php
    $product_model = new Product();
    $web = new Configweb_model();
    $i = 0;
    foreach ($product as $last):
        $i++;
        $img_short = $product_model->get_images_product_title($last['product_id']);
        if (!empty($img_short['images'])) {
            $img = "uploads/product_thumb/" . $img_short['images'];
        } else {
            $img = "images/No_image_available.jpg";
        }
        $link = Yii::app()->createUrl('frontend/product/detail/id/' . $web->url_encode($last['product_id']));
        ?>
        <li id="screenshot-<?php echo $i; ?>" class="col-lg-4 col-md-4 col-sm-6 col-xs-6" style="text-align:center; margin-bottom:15px;">
            <div class="dribbble" id="box_list_product">
                <div class="dribbble-shot">
                    <div class="dribbble-img">
                        <a class="dribbble-link" href="/shots/2166663-Retinabbble-Chrome-extension-for-dribbble">
                            <div data-picture data-alt="Retinabbble - Chrome extension for dribbble">
                                <img src="<?php echo Yii::app()->baseUrl; ?>/<?php echo $img; ?>"/>
                            </div>
                        </a>
                        <a class="dribbble-over hvr-pop" href="<?php echo $link ?>" id="hover-box-product">    
Esempio n. 11
0
?>

<p style="color:red;">
    *<i class="fa fa-warning"></i>โปรดตรวจเช็คสินค้าให้ครบถ้วนก่อนบรรจุของ
</p>
<div class="panel panel-default">
    <div class="panel-heading">
        <font id="font-rsu-18" style="color: #ff3300">
        <img src="<?php echo Yii::app()->baseUrl; ?>/images/transport-icon.png" style="width: 24px;"/>
        สินค้ารอการจัดส่ง</font>
        <a href="javascript:print_address(0)" class="pull-right"><i class="fa fa-print"></i> พิมพ์ที่อยู่ทั้งหมด</a>
    </div>
    <div class="panel-body">
        <?php
        $i = 0;
        $web = new Configweb_model();
        foreach ($order as $rs): $i++;
            ?>
            <div class="list-group">
                <div class="list-group-item">
                    <div class="row">
                        <div class="col-lg-6">
                            <h4 class="list-group-item-heading" id="font-rsu-20">
                                #<?php echo $rs['order_id']; ?>
                                สั่งซื้อวันที่ <?php echo $web->thaidate($rs['order_date']); ?>
                            </h4>

                            ผู้สั่งซื้อ <?php echo $rs['name'] . ' ' . $rs['lname']; ?><br/>
                            จำนวน <?php echo $rs['PRODUCT_TOTAL']; ?> รายการ<br/><br/>
                            <label class="badge" id="font-rsu-18">
                                ราคารวม <?php echo number_format($rs['PRICE_TOTAL'], 2); ?> บาท 
Esempio n. 12
0
<div class="alert" style="text-align: center;">
    <h1>
        <i class="fa fa-user"></i>
        <i class="fa fa-check"></i> <br/>
        สมัคสมาชิกสำเร็จ
    </h1>
    <h3>
        เข้าสู่ระบบเพื่อสั่งซื้อสินค้า
    </h3>
    <br/>
    <h4>
        ทางเว็บไซต์ของเราต้องขอขอบพระคุณที่ท่านให้ความสนใจ
    </h4>
    <br/>
    <h4>
        หวังว่าท่านจะมีความสุขและพึงพอใจในกับการซื้อสินค้าจากเว็บไซต์ของเรา
    </h4>
    <br/><br/>
    <?php $web = new Configweb_model(); ?>

    <center>
        <img src="<?php echo Yii::app()->baseUrl; ?>/uploads/logo/<?php echo $web->get_logoweb(); ?>"/><br/>
        <h4><?php echo $web->get_webname(); ?></h4>
    </center>
</div>
Esempio n. 13
0
<style type="text/css">
    #article-box{
        height: 50px;
        overflow: hidden;
    }
</style>

<?php if(empty($article)){ ?>
<script type="text/javascript">
    $(".load_more").attr("disabled", "disabled");
</script>
<?php } ?>
<div class="row">
    <?php
    $config = new Configweb_model();
    $a = 0;
    foreach ($article as $art):
        $a++;
        if (!empty($art['images'])) {
            $img_art = "uploads/article/" . $art['images'];
        } else {
            $img_art = "images/No_image_available.jpg";
        }
        $link = Yii::app()->createUrl('frontend/article/view/id/' . $config->url_encode($art['id']));
        ?>
        <div class="col-sm-6 col-md-4">
            <div class="thumbnail">
                <img src="<?php echo Yii::app()->baseUrl; ?>/<?php echo $img_art; ?>" class="img-responsive article-img"/>
                <div class="caption"id="article-box">
                    <p><?php echo $art['title']; ?></p>
                </div>
Esempio n. 14
0
 public function actionView()
 {
     $config = new Configweb_model();
     $prodult = new Product();
     $type_id = $config->url_decode($_GET['type']);
     $data['type_id'] = $type_id;
     $data['type_name'] = $prodult->get_type_name($type_id);
     $data['product'] = $prodult->get_product_all($type_id);
     $data['count_product_type'] = $prodult->get_count_product_type($type_id);
     $this->render("//product/show_product_all", $data);
 }
Esempio n. 15
0
     <table class="table table-striped" id="font-20">
         <thead>
             <tr style=" background: #cccccc;">
                 <th>#</th>
                 <th>รหัสสั่งซื้อ</th>
                 <th style="text-align: center;">วันที่จัดส่ง</th>
                 <th style="text-align: center;">จำนวน</th>
                 <th style="text-align: right;">ราคา</th>
                 <th style="text-align: center;">สถานะ</th>
                 <th style="text-align: center;">เลขพัสดุ</th>
             </tr>
         </thead>
         <tbody>
             <?php
             $i = 0;
             $web = new Configweb_model();
             foreach ($order as $rs): $i++;
                 ?>
                 <tr>
                     <td><?php echo $i; ?></td>
                     <td><a href="javascript:view_order('<?php echo $rs['order_id'] ?>')"><?php echo $rs['order_id']; ?></a></td>
                     <td style="text-align: center;"><?php echo $web->thaidate($rs['date_send']); ?></td>
                     <td style="text-align: center;"><?php echo $rs['PRODUCT_TOTAL']; ?></td>
                     <td style="text-align: right;"><?php echo number_format($rs['PRICE_TOTAL'], 2); ?></td>
                     <td style="text-align: center; color:green;"><i class="fa fa-check-circle"></i> จัดส่งเรียบร้อย</td>
                     <td style="text-align: center; color:red;"><?php echo $rs['postcode']; ?></td>
                 </tr>
             <?php endforeach; ?>
         </tbody>
     </table>
 <?php } ?>
Esempio n. 16
0
<style type="text/css">
    #font-18{color: #999999;}
</style>
<?php
echo $chartmonth;
echo $chartvisit;
echo $charttype;
?>

<?php
$this->breadcrumbs = array(
    $user['name'] . ' ' . $user['lname']
);
$config = new Configweb_model();
?>

<div class="panel panel-default">
    <div class="panel-heading">
        <i class="fa fa-user"></i> ID <?php echo $user['pid'] ?>
    </div>
    <div class="row" style="margin:0px;">
        <div class="col-md-3 col-lg-3" style="text-align: center;">
            <?php
            if (!empty($user['images'])) {
                $img_profile = "uploads/profile/" . $user['images'];
            } else {
                if ($user['sex'] == 'ชาย') {
                    $img_profile = "images/Big-user-icon.png";
                } else if ($user['sex'] == 'หญิง') {
                    $img_profile = "images/Big-user-icon-female.png";
                } else {
Esempio n. 17
0
<style type="text/css">
  #font-18{color:#666666;}
</style>
<?php
echo $chartmonth;
echo $chartvisit;
echo $charttype;
?>

<?php
$this->breadcrumbs = array(
    'สมาชิก' => Yii::app()->createUrl('backend/user/userall'),
    $user['name'] . ' ' . $user['lname']
);
$config = new Configweb_model();
?>

<div class="panel panel-default">
    <div class="panel-heading">
        <i class="fa fa-user"></i> ID <?php echo $user['pid'] ?>
    </div>
    <div class="row" id="font-rsu-16">
        <div class="col-md-3 col-lg-3" style="text-align: center;">

            <?php
            if (isset($rs['images'])) {
                $img_profile = "profile/" . $rs['images'];
            } else {
                if ($user['sex'] == 'ชาย') {
                    $img_profile = "images/Big-user-icon.png";
                } else if ($user['sex'] == 'หญิง') {
Esempio n. 18
0
                "height": "120px"
            };
            $(".article-img").css(style);
        } else {
            $("#banner_home").hide();
            var style = {
                "height": "auto"
            };
            $(".article-img").css(style);
        }
    });
</script>

<!-- Banner -->
<?php
$config = new Configweb_model();
if (isset($banner)) {
    ?>
    <div style="margin-left:10px; margin-top: 5px; padding-bottom: 0px; margin-bottom: 0px; box-shadow: none;" id="banner_home">
        <ul class="bxslider" style="z-index: 0; text-align: center; max-height: 200px; overflow: hidden;">
            <?php
            $images = $config->_get_banner_show();
            foreach ($images as $img_ban):
                ?>
                <li style="text-align: center; max-height: 200px;"><img src="<?php echo Yii::app()->baseUrl; ?>/uploads/banner/<?= $img_ban['banner_images'] ?>"/></li>
            <?php endforeach; ?>
        </ul>
    </div>
<?php } ?>
<!-- End Banner -->
Esempio n. 19
0
<style type="text/css">
    #label-bold{padding:5px; font-weight: bold;}
</style>

<?php $web = new Configweb_model(); ?>
<div class="well">
    <div class="row">
        <div class="col-lg-9 col-md-9">
            <h4 class="list-group-item-heading" id="font-rsu-20">
                #<?php echo $order['order_id']; ?><br/>
                วันที่ <?php echo $web->thaidate($order['order_date']); ?>
            </h4>
            <p class="list-group-item-text">
                ผู้สั่งซื้อ <?php echo $order['name'] . ' ' . $order['lname']; ?><br/>
                เบอร์โทรศัพทธ์ <?php echo $order['tel'] ?><br/>
                จำนวน <?php echo $order['PRODUCT_TOTAL']; ?> รายการ<br/>
                <label class="alert alert-danger" id="label-bold">
                    ราคารวม <?php echo number_format($order['PRICE_TOTAL'], 2); ?> บาท 
                </label><br/>

                ข้อความ <?php echo $order['msg'] ?><br/>
            </p>
            <br/>
            <p class="list-group-item-text">
                วันที่โอนเงิน <?php echo $web->thaidate($order['date_payment']); ?>
                เวลา <?php echo $order['time_payment'] ?> <br/>
                ธนาคาร <?php echo $order['bank_name'] ?> </br>
                สาขา <?php echo $order['bank_branch'] ?><br/>
                <label class="alert alert-danger" id="label-bold">
                    จำนวนเงินที่โอน <?php echo number_format($order['money'], 2) ?> บาท
                </label>
Esempio n. 20
0
<script>
    $(document).ready(function () {
        $(".breadcrumb").hide();
    });
</script>

<?php $config = new Configweb_model(); ?>
<br/><br/>
<center>
    <h1>Welcome To ShoppingCart V.1<h1><h3>mini cms</h3><br/>
            <h2>Administrator</h2><br/>


            </center>
            <br/><br/>
            <div class="row" style="margin:0px; text-align: center;">
                <div class="col-lg-6 col-md-6">
                    <img src="<?php echo Yii::app()->baseUrl; ?>/uploads/logo/<?php echo $config->get_logoweb(); ?>" style="max-height: 36px; margin-bottom: 5px;"/>
                    <?php echo $config->get_webname(); ?>
                </div>
                <div class="col-lg-6 col-md-6">
                    <a href="http://www.theassembler.net/" target="_bank" class="hvr-buzz-out" style=" text-decoration: none; color: #FFF;">
                        <img src="<?php echo Yii::app()->baseUrl; ?>/images/assembler_logo.png" style="max-height: 36px; margin-bottom: 5px;"/>
                        &COPY; The Assembler
                    </a>
                </div>
            </div>
Esempio n. 21
0
<?php 
$web = new Configweb_model();
foreach($comment as $rs):?>

<div class="media">
	<?php if(Yii::app()->session['pid'] == $rs['pid']){ ?>
	<div class="pull-right">
		<a href="javascript:popup_update_comment('<?php echo $rs['id']?>')" title="แก้ไข"><i class="fa fa-pencil"></i></a>
		<a href="javascript:delete_comment('<?php echo $rs['id']?>')" title="ลบ"><i class="fa fa-trash"></i></a>
	</div>
	<?php } ?>
  <div class="media-left">
  	<?php if(isset($rs['images'])){ ?>
      <img class="media-object img-thumbnail" src="<?php echo Yii::app()->baseUrl;?>/uploads/profile/<?php echo $rs['images']?>" alt="..." style="max-width:30px;">
  	<?php } else {?>
  		<img class="media-object img-thumbnail" src="<?php echo Yii::app()->baseUrl;?>/images/user-icon.png" alt="..." style="max-width:30px;">
  	<?php } ?>
  </div>
  <div class="media-body">
   <?php echo $rs['comment']?><br/>
   <font style="color:#bbb; font-size:13px;">
	    <i class="fa fa-user"></i> <?php echo $rs['alias']?>
	    <i class="fa fa-calendar"></i> <?php echo $web->thaidate($rs['d_update'])?>
	</font>
  </div>
</div>

<?php endforeach;?>

<?php if(empty($comment)){ ?>
	<center>แสดงความคิดเห็นเป็นคนแรก</center>
Esempio n. 22
0
            }
            // other options
        });

    });
</script>


<?php
$this->breadcrumbs = array(
    $product['type_name'] => array('backend/product/getproduct&type_id=' . $product['type_id']),
    $product['product_name'],
);
?>

<?php $config = new Configweb_model(); ?>

<span class="navbar-brand" id="cart_box" data-toggle="popover" 
      data-trigger="hover" data-placement="left" data-trigger="focus"
      data-content="ตะกร้าสินค้า">
    <a href="Javascript:void(0);" onclick="show_list_cart();">
        <i class="shopping-cart"></i>
    </a>
    <div class="label label-success" id="load_inbox_cart" 
         style="text-align: center; font-size: 12px; position: absolute; top: 10px; right: 10px;">
    </div>
</span>

<div class="well" style=" width:100%; margin-top:20px;text-align: left; background: #FFF;">
    <div class="row">
Esempio n. 23
0
<?php
$this->breadcrumbs = array(
    "ตรวจสอบยอดเงิน"
);
?>

<div class="panel panel-default">
    <div class="panel-heading">
        <font id="font-rsu-18" style="color: #ff3300">
        <img src="<?php echo Yii::app()->baseUrl; ?>/images/search-b-icon.png"/>
        รอตรวจสอบยอดเงิน</font>
    </div>
    <div class="panel-body">
        <?php
        $i = 0;
        $web = new Configweb_model();
        foreach ($order as $rs): $i++;
            ?>
            <div class="list-group" id="font-22">
                <a class="list-group-item">
                    <h4 class="list-group-item-heading" id="font-20">
                        #<?php echo $rs['order_id']; ?>
                        สั่งซื้อวันที่ <?php echo $web->thaidate($rs['order_date']); ?>
                    </h4>
                    <p class="list-group-item-text">
                        <button type="button" class="btn pull-right" id="font-22"
                                style=" margin-top: 10px; color: #FFFFFF;"
                                onclick="get_detail_order('<?php echo $rs['order_id'] ?>')">
                            <i class="fa fa-check-circle-o"></i>
                            ตรวจสอบรายการนี้
                        </button>
Esempio n. 24
0
 public function actionDetail()
 {
     $use = new User();
     $order = new Orders();
     $config = new Configweb_model();
     $pid = Yii::app()->session['pid'];
     $data['user'] = $use->Get_detail($pid);
     $data['order'] = $order->get_order_user($pid);
     //Chart Order Month
     $chart = new Highcharts();
     $Month = $config->MonthShot();
     $categories = implode("','", $Month);
     $order_month = $order->get_order_month($pid);
     foreach ($order_month as $datas) {
         $column[] = $datas['PRICE_TOTAL'];
     }
     $column_value = implode(",", $column);
     $chart->set_id("chart-month");
     $chart->set_type("column");
     $chart->set_title("ข้อมูลการซื้อสินค้าในแต่ละเดือนที่ผ่านมา");
     $year = date("Y");
     $year_now = $year + 543;
     $chart->set_subtitle("ปี พ.ศ. " . $year_now);
     $chart->set_categories($categories);
     $chart->set_yAxis("จำนวน(บาท)");
     $chart->set_series_name("จำนวน ");
     $chart->set_value($column_value);
     $graph = $chart->Bar_chart();
     $data['chartmonth'] = $graph;
     //Chart Order Month Visit
     $chart_visit = new Highcharts();
     $order_month_vidit = $order->get_order_month_visit($pid);
     foreach ($order_month_vidit as $datavisit) {
         $column_visit[] = $datavisit['TOTAL'];
     }
     $column_visit_value = implode(",", $column_visit);
     $chart_visit->set_id("chart-month-visit");
     $chart_visit->set_type("bar");
     $chart_visit->set_title("ข้อมูลการซื้อสินค้าในแต่ละเดือนที่ผ่านมา(ครั้ง)");
     $chart_visit->set_subtitle("ปี พ.ศ. " . $year_now);
     $chart_visit->set_categories($categories);
     $chart_visit->set_yAxis("จำนวน(ครั้ง)");
     $chart_visit->set_series_name("จำนวน ");
     $chart_visit->set_value($column_visit_value);
     $data['chartvisit'] = $chart_visit->chart_spline();
     //Chart Order type
     $type_model = new Type_product();
     $type = $type_model->Get_all();
     foreach ($type as $Ptype) {
         $Ptype_arr[] = $Ptype['type_name'];
     }
     $categories_type = implode("','", $Ptype_arr);
     $data['categories_type'] = $categories_type;
     $chart_type = new Highcharts();
     $order_type = $order->get_order_type($pid);
     foreach ($order_type as $rs_type) {
         $column_type[] = $rs_type['TOTAL'];
     }
     $column_type_value = implode(",", $column_type);
     $chart_type->set_id("chart-type");
     //$chart_type->set_type("bar");
     $chart_type->set_color("#ffff00");
     $chart_type->set_title("ข้อมูลการซื้อสินค้าแต่ละประเภท");
     $chart_type->set_subtitle("ปี พ.ศ. " . $year_now);
     $chart_type->set_categories($categories_type);
     $chart_type->set_yAxis("จำนวน(บาท)");
     $chart_type->set_series_name("ประเภท ");
     $chart_type->set_value($column_type_value);
     $data['charttype'] = $chart_type->chart_spline();
     $this->render("//user/detail", $data);
 }
Esempio n. 25
0
<style type="text/css">
    .register label{font-size: 16px;}
</style>

<?php
$this->breadcrumbs = array(
    'ลงทะเบียนสมาชิก',
);
?>

<script src="<?php echo Yii::app()->baseUrl; ?>/js/_function_masuser.js" type="text/javascript"></script>
<?php $web = new Configweb_model(); ?>

<center>
    <img src="<?php echo Yii::app()->baseUrl; ?>/uploads/logo/<?php echo $web->get_logoweb(); ?>"/><br/>
    <h4><?php echo $web->get_webname(); ?></h4>
</center>

<div class="row" style=" margin: 0px;">
    <div class="col-sm-2"></div>
    <div class="col-sm-8">
        <div class="panel panel-default">
            <?php if (isset($error)) { ?>
                <div class="alert alert-danger"><?php echo $error; ?></div>
            <?php } ?>
            <form id="register" name="register" class="register"
                  action="<?php echo Yii::app()->createUrl('frontend/main/save_register'); ?>" 
                  method="post" role="form" onSubmit="return check_from();">
                <div class="panel-body" id="font-rsu-20">
                    <legend>
                        สมัคสมาชิก<br/>
Esempio n. 26
0
);
?>

<br/>
<div class="well">
    <div style=" color: #ff3300;" id="font-rsu-18">
        <img src="<?php echo Yii::app()->baseUrl; ?>/images/payment-icon.png"/>
        * เลือกรายการที่จะชำระเงิน
    </div><br/>
    <?php if (empty($order)) { ?>
        <div class="alert alert-warning">ไม่มีรายการ</div>
    <?php } ?>
    <div class="panel-group" id="accordion">

        <?php
        $web = new Configweb_model();
        $i = 0;
        foreach ($order as $rs):
            $i++;
            if ($i == '1') {
                $active = "in";
            } else {
                $active = "";
            }
            ?>

            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title" style=" color: #ff3300;">
                        <a href="<?php echo Yii::app()->createUrl('frontend/orders/confieminformpayment', array('order_id' => $rs['order_id'])) ?>">
                            <div class="btn btn-default btn-sm" title="แจ้งชำระเงิน">