Esempio n. 1
0
		<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>
<?php } ?>
<hr/>

<?php if(!empty(Yii::app()->session['pid'])){?>
<div class="input-group">
    <input type="text" id="box_comment" class="form-control" placeholder="แสดงความคิดเห็น...">
   	<span class="input-group-btn">
Esempio n. 2
0
 <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>
                     ผู้สั่งซื้อ <?php echo $rs['name'] . ' ' . $rs['lname']; ?><br/>
                     จำนวน <?php echo $rs['PRODUCT_TOTAL']; ?> รายการ<br/>
                     <label class="badge" id="font-rsu-18">ราคารวม <?php echo number_format($rs['PRICE_TOTAL'], 2); ?> บาท </label><br/>
                     หลักฐาน <?php if (!empty($rs['slip'])) { ?>
                         <i class="fa fa-check" style="color: #00ff00;"></i>
                     <?php } else { ?>
                         <i class="fa fa-remove" style="color:red;"></i>
Esempio n. 3
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. 4
0
                    <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>
    <?php } ?>
</div>
Esempio n. 5
0
         } else {
             $img_profile = "images/Big-user.png";
         }
     }
     ?>
     <center>
         <img src="<?php echo Yii::app()->baseUrl; ?>/<?php echo $img_profile; ?>" class="img-responsive img-thumbnail" id="img_profile" style=" margin-top: 5px; max-height: 200px;"/>
         <br/><br/>
         <div class="well" style="border-radius:0px; text-align: left; padding-left: 30px; padding-bottom: 0px;">
             <input type="file" name="file_upload" id="file_upload" />
             <p id="font-16" style=" color: #ff0000; text-align: center; margin-bottom: 0px;">(ไม่เกิน 2MB)</p>
         </div>
     </center>
     <div id="font-18" style="color: #ff6600;">
         <font id="font-rsu-20" style=" color: #000020;"><?php echo $user['alias']; ?></font><br/>
         เป็นสมาชิกเมื่อ <br/><?php echo $config->thaidate($user['create_date']); ?>
     </div>
 </div>
 <div class="col-md-9 col-lg-9" style="padding-right: 0px;">
     <div class="well" style="margin: 5px; background: none;" id="font-20">
         <div class="btn btn-default btn-sm pull-right" id="font-rsu-14" onclick="popup_edit_profile();">แก้ไขข้อมูล</div>
         ชื่อ - สกุล <p class="label" id="font-18"><?php echo $user['name'] . ' ' . $user['lname'] ?></p><br/>
         นามแฝง <p class="label" id="font-18"><?php
             if (isset($user['alias'])) {
                 echo $user['alias'];
             } else {
                 echo "-";
             }
             ?></p><br/>
         เพศ <p class="label" id="font-18"><?php
             if (isset($user['sex'])) {
Esempio n. 6
0
         </thead>
         <tbody>
             <?php
             $i = 0;
             $sumprice = 0;
             foreach ($order as $orders):
                 $i++;
                 $sumprice = $sumprice + $orders['price_total'];
                 ?>
                 <tr>
                     <td><?php echo $i; ?></td>
                     <td style=" text-align: center;">
                         <div class="btn btn-info btn-xs" onclick="Get_list_basket('<?php echo $orders['order_id'] ?>');"><i class="fa fa-eye"></i></div>
                     </td>
                     <td><?php echo $orders['order_id']; ?></td>
                     <td style="text-align: center;"><?php echo $config->thaidate($orders['order_date']); ?></td>
                     <td style="text-align: center;"><?php echo $orders['product_total']; ?></td>
                     <td style="text-align: right; background: #22282e; color: #ff0000;"><?php echo number_format($orders['price_total'], 2); ?></td>
                 </tr>
             <?php endforeach; ?>
         </tbody>
         <tfoot>
             <tr>
                 <td colspan="5" style="text-align:center; background: #22282e;"><label>รวม</label></td>
                 <td style="text-align:right; background: #1c1e22; color: #ff0000;"><label><?php echo number_format($sumprice, 2); ?></label></td>
             </tr>
         </tfoot>
     </table>
 <?php } else { ?>
     <center>ยังไม่มีการสั่งซื้อ</center>
 <?php } ?>
Esempio n. 7
0
<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>
    <div class="row">

        <div class="col-lg-4 col-md-12 col-xs-12" id="font-20">
            <b>รหัสสินค้า</b> <?= $product['product_id'] ?><br/>
            <b>ประเภทสินค้า</b> <?= $product['type_name'] ?><br/>
            <b>อัพเดทล่าสุด</b> <?= $config->thaidate($product['d_update']); ?><br/><br/>
            <div class="row">
                <div class="well" style=" background: none;">
                    <?php if (Yii::app()->session['status'] != '') { ?>
                        <table style="width: 100%;">
                            <tr>
                                <td><b style=" font-size: 16px;">จำนวน</b></td>
                                <td>
                                    <select id="num" name="num" class="form-control">
                                        <?php for ($i = 1; $i <= 100; $i++) { ?>
                                            <option value="<?php echo $i; ?>"><?php echo $i; ?></option>
                                        <?php } ?>
                                    </select>
                                </td>
                                <td style=" text-align: center;">
                                    <button class="btn btn-danger add-to-cart" type="button"
Esempio n. 8
0
            <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="แจ้งชำระเงิน">
                                <img src="<?php echo Yii::app()->baseUrl; ?>/images/atm-icon.png"/>
                                <font style="font-size:18px;">แจ้งชำระรายการนี้</font>
                            </div></a>
                        <div class="pull-right">
                            <a class="accordion-toggle btn btn-default" data-toggle="collapse" data-parent="#accordion" href="#collapse<?php echo $i; ?>" title="รายการสินค้า"></a>
                        </div>
                        <br/><br/>
                        <font id="font-rsu-16">
                        รหัสสั่งซื้อ <span class="badge"><?php echo $rs['order_id'] ?></span>
                        วันที่ <?php echo $web->thaidate($rs['order_date']) ?>
                        จำนวน <span class="badge"><?php echo $rs['PRODUCT_TOTAL'] ?></span>
                        ราคา <span class="badge"><?php echo number_format($rs['PRICE_TOTAL'], 2) ?></span>
                        </font>
                    </h4>
                </div>
                <div id="collapse<?php echo $i; ?>" class="panel-collapse collapse <?php echo $active; ?>">

                    <table width="100%" class="table" id="font-20">
                        <thead>
                            <tr>
                                <td>#</td>
                                <td>รูป</td>
                                <td>ชื่อสินค้า</td>
                                <td style="text-align: center;">ราคา</td>
                                <td style="text-align: center;">จำนวน</td>
        สินค้ารอการจัดส่ง</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); ?> บาท 
                            </label><br/>
                            <h4>
                                <?php echo $rs['detail'] ?>
                            </h4>
                        </div>
                        <div class="col-lg-6">
                            <a href="javascript:print_address('<?php echo $rs['order_id'] ?>')" class="pull-right"><i class="fa fa-print"></i> พิมพ์ที่อยู่</a>
                            <h4>ที่อยู่จัดส่ง</h4><br/>
                            &nbsp;&nbsp;คุณ <?php echo $rs['name'] . ' ' . $rs['lname']; ?><br/>
Esempio n. 10
0
                    <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 } ?>
</div>

Esempio n. 11
0
                 <?php echo $msg->Count_message(); ?>
             </span>
             <font id="font-th"> &nbsp;ข้อความ</font>
             <b class="caret"></b>
         </a>
         <ul class="dropdown-menu" style=" padding-top: 0px; padding-bottom: 0px;">
             <?php foreach ($msg_short as $s_msg): ?>
                 <li>
                     <a href="<?php echo Yii::app()->createUrl('backend/message/detail/id/' . $s_msg['id']) ?>">
                         <div id="msg_limit">
                             <i class="fa fa-comment-o"></i>
                             <?php echo $s_msg['message'] ?>
                         </div>
                         <font style="font-size:10px;">
                         <i class="fa fa-user"></i> <?php echo $s_msg['name'] . ' ' . $s_msg['lname'] ?>
                         <i class="fa fa-calendar"></i> <?php echo $web->thaidate($s_msg['date_send']) ?>
                         </font>
                     </a>
                 </li>
                 <li class="divider" style=" padding: 0px; margin: 0px;"></li>
             <?php endforeach; ?>
             <li style=" text-align: center; font-size: 16px;">
                 <a href="<?php echo Yii::app()->createUrl('backend/message') ?>"><i class="fa fa-list-ul" style=" margin:10px auto;"></i> ดูทั้งหมด</a>
             </li>
         </ul>
     </li>
 </ul>
 <ul class="nav navbar-nav navbar-right">
     <li>
         <a href="<?= Yii::app()->createUrl('site/logout/') ?>">
             <span class="glyphicon glyphicon-off"></span>