public function check_login() { $data_user = $this->input->post('username'); $data_pass = $this->input->post('password'); $check = "SELECT * FROM users "; $query = $this->db->query($check); $data2 = $query->result(); $login_success = false; foreach ($data2 as $dd) { if ($dd->User == $data_user && $dd->Password == $data_pass) { $login_success = true; $Fname = $dd->Fname; $Lname = $dd->Lname; $data_session = array('session_login' => true, 'session_Fname' => $Fname, 'session_Lname' => $Lname, 'session_account_Users' => $data_user, 'session_login_width' => $login_fb = false, 'session_id_Users' => $dd->id_Users, 'session_iduser' => $dd->User, 'session_login_fb' => false, 'session_img_profile' => image_asset('icon_shadow/member/user_un.png')); $this->session->set_userdata($data_session); //$this->load->view("main",$data_sent); // redirect('main_con',$data_sent); redirect("main_con"); } } if ($login_success == false) { redirect('welcome/login'); } }
<? if($have_coupon){?> <? foreach($coupon_data["order"] as $order){ ?> <div class="coupon_relate_box"> <div class="coupon_relate_box_name"><?php echo $order["deal_name"]; ?> </div> <div class="coupon_relate_box_date"><span class="colBlue">วันที่สั่งซื้อ</span> <span class="colOran"><?php echo date_format(date_create($order["order_date"]), "d-m-Y"); ?> </span> <span class="colBlue">วันที่หมดอายุ</span> <span class="colOran"><?php echo date_format(date_create($order["deal_expile"]), "d-m-Y"); ?> </span></div> <div class="coupon_detail"><?php echo image_asset($order["deal_index_image"], '', array('alt' => $order["deal_name"])); ?> </div> <div class="coupon_head1">หมายเลขคำสั่งซื้อ</div> <div class="coupon_head">คูปอง # </div> <div class="coupon_head">ได้รับ คูปอง</div> <div class="coupon_head">สถานะ</div> <div class="coupon_head"><!--ของขวัญ --></div> <? $i=0; foreach($coupon_data["coupon"] as $coupon){ if($order["order_id"] == $coupon["order_id"] && $order["deal_id"] == $coupon["deal_id"]) { if($i == 0) { ?> <div class="coupon_row"> <div class="coupon_column1"><a href="/member/my_orderDetail/<?php echo $coupon["order_id"];
$json = file_get_contents("http://" . $url_api_value . ":8080/CropCalendarServer/api/ftocservice/"); $obj = json_decode($json); // echo $obj; echo '<pre>Current server: '; print_r($url_api_value); echo '</pre>'; echo '<pre>'; print_r($obj); echo '</pre>'; } ////////////////////////////////////////////////////////////////////////////////////// ?> <!-- <?php echo image_asset("logo_kasetsart.gif"); ?> --> <?php echo $this->session->userdata('item'); ?> <h1>ปฏิทินล้นเกวียน</h1> <br /> <form class="form-horizontal row"> <div class="form-group"> <label for="username" class="col-sm-2 control-label">ชื่อ</label> <div class="col-sm-4"> <input id="username" class="form-control" placeholder="ex. วรัญญู"> </div> </div> <div class="form-group">
<div id="ajax_loader" style="display:none"><span class="ajax_loader_content" style="padding-left:3px"> </span><?php echo image_asset("ajax-loader-bar.gif"); ?> </div> <div class="loading xactive" style="display:none;"> <span>Processing....</span> </div> <script> $(document) .ajaxStart(function(){ $(".ajax_progress").html($("#ajax_loader").html()); $(".ajax_progress").show(); $(".loading.xactive").fadeIn(); }) .ajaxStop(function(){ $(".loading.xactive").fadeOut(); $(".ajax_progress").hide(); }); $(function(){ $("#a_loading").click(function(e){ e.preventDefault(); loading_toggle(); }); }); function loading_enabled(){ $(".loading").addClass("xactive"); }
<!-- User Account Menu --> <li class="dropdown user user-menu"> <!-- Menu Toggle Button --> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <!-- The user image in the navbar--> <?php echo image_asset('user2-160x160.jpg', 'admin', array("class" => "user-image", "alt" => "User Image")); ?> <!-- hidden-xs hides the username on small devices so only the image appears. --> <span class="hidden-xs">Alexander Pierce</span> </a> <ul class="dropdown-menu"> <!-- The user image in the menu --> <li class="user-header"> <?php echo image_asset('user2-160x160.jpg', 'admin', array("class" => "img-circle", "alt" => "User Image")); ?> <p> Alexander Pierce - Web Developer <small>Member since Nov. 2012</small> </p> </li> <!-- Menu Body --> <li class="user-body"> <div class="row"> <div class="col-xs-4 text-center"> <a href="#">Followers</a> </div> <div class="col-xs-4 text-center"> <a href="#">Sales</a> </div>
echo css_asset($stylesheet); ?> <? endforeach; ?> </head> <body> <div id="form_payment_main"> <div id="form_payment_logo"> <div><?echo image_asset('company_logo.png', '');?></div> <div><?echo image_asset('logo_lotus.jpg', '');?></div> </div> <div class="clear"> แบบฟอร์มชำระเงินด้านล่างนี้จะถูกส่งไปยังอีเมลของคุณ กรุณาพิมพ์หน้านี้เพื่อนำไปใช้ชำระเงินผ่านธนาคาร ทุกสาขา </div> <div id="form_payment_barcode"> <?echo image_asset('ex_barcode.jpg', '');?> <div> <table border="0" width="95%" align="center"> <tr> <td align="left" width="125px">รหัสอ้างอิง :</td> <td align="left"><?php echo $order["ref_code"]; ?> </td> </tr> <tr> <td align="left">ราคารวม :</td> <td align="left"><?php echo number_format($order["order_summary"]); ?> บาท</td>
</div> <div align="center" style="height: 35px;line-height: 35px;vertical-align: middle;"> <!--<a class="fancybox fancybox.ajax" href="/member/my_docorder/<?php echo $order_data["order"]["order_id"]; ?> ">พิมพ์ใบสั่งซื้อ</a>--> <span class="can_click" onclick="print_order_page()"><?php echo image_asset('payment/bt_print1.png'); ?> </span> <?if($order_data["order"]["order_status"]==2){?> <a class="fancybox fancybox.ajax" href="/member/my_receipt/<?php echo $order_data["order"]["order_id"]; ?> "><?php echo image_asset('payment/bt_print2.png'); ?> </a> <? } ?> <br/> </div> <hr class="hr1"> <div class="textback"><a href="../../../member/my_order">« กลับไปยังคำสั่งซื้อของฉัน</a></div> </div> </div> <script> $('.fancybox').fancybox(); </script> <script> function print_order_page() {
<label><?php echo str_replace("_", " ", $filter_name); ?> </label> </div> <div> <select class="filters other_filters" name="<?php echo $filter; ?> "> <option value=""> Välj <?php echo str_replace("_", " ", $filter_name); ?> <?php echo image_asset('arrow.jpg'); ?> </option> <?php foreach ($filter_field_data as $data) { ?> <option value="<?php echo $data['value']; ?> "><?php echo $data['value']; ?> </option> <?php } ?>
<div id="how2pay_box"> <div class="clear"> <div style="font-weight: bold;line-height: 25px;">Thebestdeal1.com ได้รับการสิทธิ์จากทาง Paysbuyในการเปิดช่องทางการชำระเงินผ่านทางระบบ Paysbuy</div> <div style="font-size: 0.9em;font-weight: 100;line-height: 20px;">Thebestdeal1.com ได้รับสิทธิ์จาก Paysbuy เพื่อเปิดช่องทางการชำระเงินผ่านระบบ เคาน์เตอร์ เซอร์วิส หลังจากที่ท่านเลือกช่องทางการชำระเงิน Paysbuy Counter Service ระบบจะพาท่านเข้าสู่หน้าการชำระเงินของ Paysbuy เมื่อท่านกรอกรายละเอียดการชำระเงินครบถ้วน จึงจะได้รับอีเมลล์แจ้งการชำระเงินจาก Paysbuy และท่านสามารถพิมพ์ใบชำระเงินดังกล่าวเพื่อนำไปชำระเงินได้ที่เคาร์เตอร์เซอร์วิซ (Seven Eleven) หลังจากชำระเงินเรียบร้อยแล้ว Thebestdeal1.com จึงจะทำการออกคูปองและท่านสามารถเข้าระบบเลือก “มุมส่วนตัว >คูปองของฉัน เพื่อพิมพ์คูปองของท่าน </div> <div style="font-weight: bold;color: #FF0000;line-height: 20px;">หมายเหตุ ลูกค้าต้องชำระภายใน 24 ชั่วโมงหลังจากการสั่งซื้อค่ะ</div> </div> <div class="clear"> <?echo image_asset('bank_logo/paysbuy_711.jpg');?> </div> </div>
echo number_format($data["nOrder"]); ?> </td> <td align="center"><?php echo number_format($data["nCoupon"]); ?> </td> <td align="center"><?php echo number_format($data["summary"]); ?> </td> <td align="center"><a href="/mybackoffice/show_product_sell/<?php echo $data["deal_id"]; ?> " target="_blank"><?php echo image_asset('/icon/info.png', '', array('alt' => 'รายละเอียด', 'title' => 'รายละเอียด')); ?> </a></td> <td><?php echo $data["vendor_status"]; ?> </td> <td><?php echo $data["vendor_id"]; ?> </td> <td align="center"><?php echo $data["summary"]; ?> </td> <td align="center"><?php
public function wishlist() { $this->load->library('pagination'); $config['base_url'] = base_url() . 'category/whishlist_product'; $config['total_rows'] = $this->wishlist_model->get_all_wishedproducts_count(); $config['per_page'] = 24; $config['uri_segment'] = $this->uri->segment(3); $this->pagination->initialize($config); $offset = $config['uri_segment']; $limit = $config['per_page']; $this->pagination->initialize($config); $wishlist_products = $this->wishlist_model->get_all_wishedproducts($limit, $offset); $pro_html = ''; if ($wishlist_products) { foreach ($wishlist_products as $wishlist_product) { $products = $this->product_model->get_product_detail($wishlist_product['product_id']); if ($products) { if ($products['from_api'] == 0) { $image_path_original = other_asset_url($products['product_image'] . '_m.' . $products['product_ext'], '', 'uploads/images/products'); $iarr = getimagesize($image_path_original); if (!is_array($iarr)) { $image_path_original = image_asset_url('no_image.gif'); } } else { //$image_path_original = $products['product_image']; $image_path_original = str_replace('440', '220', $products['product_image']); } $img_featue = 'heart_red.jpg'; $heart_class = '<div class="remove_wish" rel="' . $wishlist_product['wish_id'] . '" id="wish_heart_' . $wishlist_product['wish_id'] . '" style="display:none"> ' . image_asset($img_featue) . ' </div>'; $sale_tag = ''; if ($products['sale_type_id'] == '1') { $sale_tag = '<span style="float:left;"> Före: ' . makeCurrency($products['product_price']) . ' kr <br> <label style="color:red">Nu: ' . makeCurrency($products['sale_value']) . ' kr</label> </span> <div class="persentage_imgs"> -' . makeCurrency(100 - $products['sale_value'] / $products['product_price'] * 100) . '% </div>'; } elseif ($products['sale_type_id'] == '2') { $now_price = $products['product_price'] * ($products['sale_value'] / 100); $sale_tag = '<span style="float:left;"> Före: ' . makeCurrency($products['product_price']) . ' kr <br> <label style="color:red">Nu: ' . makeCurrency($products['product_price'] - $now_price) . ' kr</label> </span> <div class="persentage_imgs"> -' . makeCurrency($products['sale_value']) . '% </div><!--persentage_img-->'; } elseif ($products['sale_type_id'] == '5') { $sale_tag = '<span style="float:left;"> Före: ' . makeCurrency($products['product_price']) . ' kr <br> <label style="color:red">Nu: ' . makeCurrency($products['sale_price']) . ' kr</label> </span> <div class="persentage_imgs"> -' . $products['api_reduction_percent'] . '% </div>'; } $pro_html .= '<div class="cata_pro product_detail" rel="' . $wishlist_product['wish_id'] . '"> <a id="product_' . $products['pro_id'] . '" href="' . base_url() . 'product/product_detail/' . $products['pro_id'] . '" ><img src="' . $image_path_original . '"/></a> ' . $heart_class . ' <p> ' . $products['product_name'] . ' </p> <div class="clear"></div> ' . $sale_tag . ' </div>'; } } } else { $pro_html .= ' Det finns inga produkter i önskelistan. <h2 style="margin-top:10px;"> Fördelar med SaleFinder önskelista </h2> <ul> <li> Du kan spara produkter till nästa gång du loggar in </li> <li> Du kan enkelt jämföra produkterna du har i önskelistan </li> <li> Det blir lätt att ha alla dina favorit reavaror på ett ställe </li> </ul> '; } // $data['category_name'] = get_categroy_name(149); // $data['product_category'] = get_product_oncategory(149); // //$data['product_category'] = ''; // $data['other_choice'] = other_choice_category(); // $data['related_categories']= related_categories(149); // $data['sales_to_missed'] = sales_not_missed(); $data['products'] = $pro_html; $data['pagination'] = $this->pagination->create_links(); $this->template->load('responsive/default', 'responsive/wishlist', $data); }
} if ($check_hour >= 05 && $check_hour < 07) { $textdate_chang = "สวัสดีตอนเช้าครับ"; $img_chang = image_asset('icon_shadow/icon-day/kum.png'); } if ($check_hour >= 07 && $check_hour < 11) { $textdate_chang = "สวัสดีตอนเช้าครับ"; $img_chang = image_asset('icon_shadow/icon-day/morning.png'); } if ($check_hour >= 11 && $check_hour < 16) { if ($check_hour >= 12 && $check_hour < 13) { $textdate_chang = "สวัสดีตอนเที่ยงครับ"; } else { $textdate_chang = "สวัสดีตอนบ่ายครับ"; } $img_chang = image_asset('icon_shadow/icon-day/sun.png'); } ?> <p class="textday"><?php echo "{$textdate_chang}"; ?> ขณะนี้เวลา </p> <div id="css_time_run"> </div> <?php echo "{$img_chang}"; ?>
<div id="how2pay_box"> <div id="how2pay_account"> <div>Bank Name: ธนาคารไทยพาณิชย์</div> <div> Account holder: THE BEST DEAL CO., LTD.<br /> หมายเลขบัญชี: 206-3-002-653<br /> Service Code : BESTDEAL </div> </div> <? if(!isset($not_show_detail)){?> <div>รายละเอียด :</div> <div id="how2pay_logo"> <?echo image_asset('bank_logo/scb_logo.jpg');?> </div> <div class="clear"> <br/> <div>เนื่องจากบริษัท เดอะ เบสท์ ดีล จำกัด ได้ปรับปรุงระบบการชำระเงินผ่าน ธนาคารไทยพาณิชย์โดยสามารถเลือกชำระผ่าน 3 ช่องทางดังต่อไปนี้</div> <br/> <div> <ul> <li>ATM ** ดูรายละเอียดเพิ่มเติม <a target="_blank" href="/assets/media/bank_payment/scb_bp_via_atm.pdf">คลิกที่นี่</a></li> <li>ชำระผ่านเคาน์เตอร์ธนาคาร (ตัวอย่างใบ Pay-in กรุณา <a id="show_payment_bank_form" class="fancybox fancybox.ajax" href="/shopping/show_payin">คลิกที่นี่</a>)</li> <li>SCB Easy Net อินเทอร์เน็ต ** ดูรายละเอียดเพิ่มเติม <a target="_blank" href="/assets/media/bank_payment/scb_bp_via_easy_net.pdf">คลิกที่นี่</a></li> </ul> </div> <br/> <div>เงื่อนไข :</div> <br/> <div>กรุณาชำระเงินภายใน 24 ชั่วโมงนับหลังทำการสั่งซื้อ หากไม่ชำระเงินภายในเวลาที่กำหนดระบบจะยกเลิกคำสั่งซื้อของท่านโดยอัตโนมัติบริษัทฯขอสงวนสิทธิในการรับชำระ และออกคูปอง</div> <br/> <div>ลูกค้าจะได้รับคูปองภายใน 1-2 วันทำการหลังจากที่บริษัทฯได้ตรวจสอบเรียบร้อยแล้ว</div>
function _build_comments($rows, $parent = 0) { $result = ""; foreach ($rows as $x => $row) { if ($row['parent_id'] == $parent) { $result .= "<div class='media'>"; $result .= ' <a href="#" class="pull-left"> ' . image_asset("user.png", '', array("class" => "avatar media-object", "alt" => "Image", "style" => "width:30px;height:30px;")) . ' </a>'; $result .= "<div class='media-body'><h4 class='media-heading'>" . $row["name"] . " <span>17 hours ago / \r\n <a href='#' class='comments_reply' rel='" . $this->module . "comments_reply/" . $row["idx"] . "'>Reply</a>\r\n </span></h4>\r\n {$row['body']}<hr>"; if ($this->_has_children($rows, $row['idx'])) { $result .= $this->_build_comments($rows, $row['idx']); } $result .= "</div></div>"; } //$result="</div></div>"; } //$result.= "</div>"; return $result; }
public function all_order_data() { $this->load->model('member_orderdetail'); $aColumns = array('o.order_id', 'o.mem_id', 'm.member_name', 'm.member_sname', 'o.payment_type', 'o.order_date', 'o.order_pay_date', 'o.order_summary', 'o.order_status', 'o.order_status', 'o.payment_type'); $sTable = ""; $sWhere = ""; $sOrder = ""; $sLimit = ""; $sTable = "tbl_deal_order o\n\t\t\t\t\tleft join tbl_member_profile m on o.mem_id = m.member_id\n\t\t\t\t\tleft join tbl_deal_order_detail od on o.order_id = od.order_id"; $sLimit = ""; $iDisplayStart = $this->input->get('iDisplayStart'); $iDisplayLength = $this->input->get('iDisplayLength'); if ($iDisplayStart != "" && $iDisplayLength != '-1') { $sLimit = "LIMIT " . mysql_real_escape_string($iDisplayStart) . ", " . mysql_real_escape_string($iDisplayLength); } $iSortCol_0 = $this->input->get('iSortCol_0'); if ($iSortCol_0 != "") { $sOrder = "ORDER BY "; for ($i = 0; $i < intval($this->input->get('iSortingCols')); $i++) { if ($this->input->get('bSortable_' . intval($this->input->get('iSortCol_' . $i))) == "true") { $sOrder .= $aColumns[intval($this->input->get('iSortCol_' . $i))] . "\n\t\t\t\t \t" . mysql_real_escape_string($this->input->get('sSortDir_' . $i)) . ", "; } } $sOrder = substr_replace($sOrder, "", -2); if ($sOrder == "ORDER BY") { $sOrder = ""; } } $sWhere = ""; $sSearch = $this->input->get('sSearch'); if ($sSearch != "") { $sWhere = "WHERE ("; for ($i = 0; $i < count($aColumns); $i++) { $sWhere .= $aColumns[$i] . " LIKE '%" . mysql_real_escape_string($sSearch) . "%' OR "; } $sWhere = substr_replace($sWhere, "", -3); $sWhere .= ')'; } for ($i = 0; $i < count($aColumns); $i++) { if ($this->input->get('bSearchable_' . $i) == "true" && $this->input->get('sSearch_' . $i) != '') { if ($sWhere == "") { $sWhere = "WHERE "; } else { $sWhere .= " AND "; } $sWhere .= $aColumns[$i] . " LIKE '%" . mysql_real_escape_string($_GET['sSearch_' . $i]) . "%' "; } } $date_status = $this->input->get('date_status'); $start_date = $this->input->get('start_date'); $end_date = $this->input->get('end_date'); $buy_status = $this->input->get('buy_status'); if ($date_status != 2) { if ($start_date != "") { $date_set = explode("/", $start_date); $start_date = $date_set[2] . "-" . $date_set[1] . "-" . $date_set[0]; if (empty($sWhere)) { $sWhere = " WHERE order_date >= '" . $start_date . " 00:00:00'"; } else { $sWhere .= " AND order_date >= '" . $start_date . " 00:00:00'"; } } if ($end_date != "") { $date_set = explode("/", $end_date); $end_date = $date_set[2] . "-" . $date_set[1] . "-" . $date_set[0]; if (empty($sWhere)) { $sWhere = " WHERE order_date <= '" . $end_date . " 23:59:59'"; } else { $sWhere .= " AND order_date <= '" . $end_date . " 23:59:59'"; } } } if ($date_status == 2) { if ($start_date != "") { $date_set = explode("/", $start_date); $start_date = $date_set[2] . "-" . $date_set[1] . "-" . $date_set[0]; if (empty($sWhere)) { $sWhere = " WHERE order_pay_date >= '" . $start_date . " 00:00:00'"; } else { $sWhere .= " AND order_pay_date >= '" . $start_date . " 00:00:00'"; } } if ($end_date != "") { $date_set = explode("/", $end_date); $end_date = $date_set[2] . "-" . $date_set[1] . "-" . $date_set[0]; if (empty($sWhere)) { $sWhere = " WHERE order_pay_date <= '" . $end_date . " 00:00:00'"; } else { $sWhere .= " AND order_pay_date <= '" . $end_date . " 00:00:00'"; } } } if ($buy_status != "") { if (empty($sWhere)) { if ($buy_status != 4) { $sWhere .= " WHERE order_status = " . $buy_status; } } else { if ($buy_status != 4) { $sWhere .= " AND order_status = " . $buy_status; } } } $filter_id = $this->input->get('filter_id'); $filter_type = $this->input->get('filter_type'); if ($filter_id != "") { if (empty($sWhere)) { $pWhere = " WHERE "; } else { $pWhere = " AND "; } switch ($filter_type) { case 1: $sWhere .= $pWhere . " od.vendor_id = " . $filter_id; break; case 2: $sWhere .= $pWhere . " od.deal_id = " . $filter_id; break; case 3: $sWhere .= $pWhere . " od.product_id = " . $filter_id; break; default: $sWhere .= $pWhere . " o.mem_id = " . $filter_id; } } $sQuery = "\n\t\tSELECT " . str_replace(" , ", " ", implode(", ", $aColumns)) . "\n\t\tFROM {$sTable}\n\t\t{$sWhere}\n\t\tgroup by o.order_id\n\t\t{$sOrder}\n\t\t{$sLimit}\n\t"; $cQuery = "\n\t\tSELECT o.order_id\n\t\tFROM {$sTable}\n\t\t{$sWhere}\n\t\tgroup by o.order_id\n\t"; //echo $sQuery; $deal_order = $this->member_orderdetail->get_order_data($sQuery); $iFilteredTotal = $this->member_orderdetail->get_nOrder($cQuery); $iTotal = $this->member_orderdetail->get_nOrder($cQuery); $output = array("sEcho" => intval($this->input->get('sEcho')), "iTotalRecords" => $iTotal, "iTotalDisplayRecords" => $iFilteredTotal, "aaData" => array()); $admin_type = $this->input->get('admin_type'); foreach ($deal_order["order"] as $data) { $row = array(); $row[] = '<div align="center">' . $data["order_id"] . '</div>'; $row[] = '<div align="center" class="deal_link"><a href="/mybackoffice/member_profile/view_data/' . $data["mem_id"] . '" target="_blank">' . $data["mem_id"] . '</a></div>'; $row[] = '<div align="left" class="deal_link"><a href="/mybackoffice/member_profile/view_data/' . $data["mem_id"] . '" target="_blank"> ' . $data["member_name"] . ' ' . $data["member_sname"] . '</a></div>'; $vender_name = ""; $vender_id = ""; $vendor_link = ""; foreach ($deal_order["order_detail"] as $datadetail) { if ($data["order_id"] == $datadetail["order_id"]) { $vender_name = $datadetail["vendor_name"]; $vender_id = $datadetail["vendor_id"]; $vendor_link .= '<div><a href="/mybackoffice/vendor_profile/view_data/' . $vender_id . '" target="_blank">*' . $vender_name . '</a></div>'; } } $row[] = '<div align="left" class="deal_link">' . $vendor_link . '</div>'; $i = 0; $deal_name = ""; $deal_id = ""; foreach ($deal_order["order_detail"] as $datadetail) { if ($data["order_id"] == $datadetail["order_id"]) { if ($i == 0) { $deal_name = "* " . $datadetail["deal_name"]; $deal_id = "<a href=/category/deal_preview/" . $datadetail["deal_id"] . "/" . urlencode($datadetail["deal_name"]) . " target='_blank'>" . $deal_name . "</a>"; } else { $deal_name = "<br>" . "* " . $datadetail["deal_name"]; $deal_id .= "<a href=/category/deal_preview/" . $datadetail["deal_id"] . "/" . urlencode($datadetail["deal_name"]) . " target='_blank'>" . $deal_name . "</a>"; } $i++; } } $row[] = '<div align="left" class="deal_link">' . $deal_id . '</div>'; $row[] = '<div align="center">' . date_format(date_create($data["order_date"]), "d/m/Y") . '</div>'; $show_order_date = ""; if (isset($data["order_pay_date"]) && $data["order_status"] == '2') { $show_order_date = date_format(date_create($data["order_pay_date"]), "d/m/Y"); } $row[] = '<div align="center">' . $show_order_date . '</div>'; $row[] = '<div align="right">' . number_format($data["order_summary"], 2) . ' </div>'; $row[] = '<div>$data["order_status"]</div>'; $status = ""; if ($data["order_status"] == 0) { $status = "ยกเลิก"; } elseif ($data["order_status"] == 1) { $status = "รอการชำระเงิน"; } elseif ($data["order_status"] == 2) { $status = "ชำระเงินแล้ว"; } elseif ($data["order_status"] == 3) { $status = "คืนเงิน"; } $row[] = '<div align="center">' . $status . '</td>'; $bank = ""; if ($data["payment_type"] == "1") { $bank = "ธนาคารกสิกรไทย"; } else { if ($data["payment_type"] == "2") { $bank = "ธนาคารไทยพาณิชย์"; } else { if ($data["payment_type"] == "3") { $bank = "ธนาคารกรุงเทพ"; } else { if ($data["payment_type"] == "4") { $bank = "ธนาคารกรุงศรีอยุธยา"; } else { if ($data["payment_type"] == "5") { $bank = "เคาร์เตอร์เซอร์วิท"; } else { if ($data["payment_type"] == "6") { $bank = "เทสโก้โลตัส"; } else { if ($data["payment_type"] == "7") { $bank = "บัตรเครดิต"; } else { if ($data["payment_type"] == "8") { $bank = "ไม่ต้องชำระเงิน"; } } } } } } } } $row[] = '<div align="center">' . $bank . '</div>'; $manage = ""; $manage = '<a href="/mybackoffice/deal_order/view_data/' . $data["order_id"] . '/' . $data["mem_id"] . '" alt="ดูรายละเอียด" title="ดูรายละเอียด">' . image_asset("payment/icon_bank.png") . '</a>'; if ($data["order_status"] != 2) { $manage .= ' | <a class="fancybox fancybox.ajax" href="/mybackoffice/popup_payment/' . $data["order_id"] . '">'; $manage .= image_asset("/icon/paid.png", "", array("alt" => "แก้ไขสถานะเป็นชำระเงิน", "title" => "แก้ไขสถานะเป็นชำระเงิน")); $manage .= '</a>'; } if ($data["order_status"] == 2) { $manage .= ' | <a href="/mybackoffice/deal_order/coupon/' . $data["order_id"] . '/3" onclick="if(confirm(\'ต้องการปรับสถานะเลขใบสั่งซื้อ ' . $data["order_id"] . 'เป็นคืนเงินแล้ว ?\')){return true;}else{return false;};">'; $manage .= image_asset('/icon/repay.png', '', array('alt' => 'แก้ไขสถานะเป็นคืนเงิน', 'title' => 'แก้ไขสถานะเป็นคืนเงิน')); $manage .= '</a>'; } if ($data["order_status"] != 0) { $manage .= ' | <a href="/mybackoffice/deal_order/coupon/' . $data["order_id"] . '/0" onclick="if(confirm(\'ต้องการยกเลิกการสั่งซื้อ รหัส ' . $data["order_id"] . ' ?\')){return true;}else{return false;};">'; $manage .= image_asset('/icon/inactive.png', '', array('alt' => 'ยกเลิกการสั่งซื้อ', 'title' => 'ยกเลิกการสั่งซื้อ')); $manage .= '</a>'; } if ($admin_type != 3) { if ($data["order_status"] != 2) { $manage .= ' | <a href="/mybackoffice/deal_order/delete/' . $data["order_id"] . '/0" onclick="if(confirm(\'คุณต้องการลบข้อมูลการสั่งซื้อ รหัส ' . $data["order_id"] . ' ?\')){return true;}else{return false;};">'; $manage .= image_asset('/icon/delete.png', '', array('alt' => 'ลบข้อมูลการสั่งซื้อ', 'title' => 'ลบข้อมูลการสั่งซื้อ')); $manage .= '</a>'; } } $row[] = '<div align="center">' . $manage . '</div>'; $output['aaData'][] = $row; } echo json_encode($output); }
<span>MITT KONTO</span></a></li> <?php } ?> <li style="width:93px;"> <?php if (!$this->tank_auth->is_logged_in()) { ?> <a href="<?php echo base_url(); ?> auth/register"><?php echo image_asset('icon-login.jpg'); ?> <span>BLI MEDLEM </span></a> <?php } else { ?> <a href="<?php echo base_url(); ?> auth/logout"><span>LOGGA UT</span></a> <?php } ?> </li>
<div id="invite_button"> <div> <? $fb_link = "https://www.facebook.com/dialog/feed?app_id=458358780877780&" ."link=http://www.thebestdeal1.com/customer/signup/".$member_id."&" ."picture=http://www.thebestdeal1.com/assets/images/company_logo.png&" ."name=Thebestdeal1.com&" ."display=popup&" ."caption=แนะนำสมาชิก&" ."description=เว็บดีลอันดับหนึ่งในใจหลายๆคน%20thebestdeal1.com&" ."redirect_uri=https://mighty-lowlands-6381.herokuapp.com"; ?> <a href="#" onclick="popitup('<?php echo $fb_link; ?> ')"> <?echo image_asset('facebook_invite.jpg', '', array('alt'=>'ส่งคำเชิญทาง Facebook ของคุณ'));?> </a> </div> <div id="custom-tweet-button"> <a href="https://twitter.com/share?url=http%3A%2F%2Fwww.thebestdeal1.com%2Fcustomer%2Fsignup%2Fpages%2F<?php echo $member_id; ?> " target="_blank"></a> </div> </div> </div> </div> <div id="member_main_box_right"> <?php echo $right_sec; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns:fb="http://ogp.me/ns/fb#"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="/assets/css/receipt.css" /> <script type="text/javascript" src="/assets/js/jquery.printElement.min.js"></script> </head> <body> <div id="receipt"> <div class="receipt_box"> <div class="company_box"> <div><?php echo image_asset('../../assets/images/company_logo.png'); ?> </div> <div class="address_1">บริษัท เดอะ เบสท์ ดีล จำกัด</div> <div class="address_2">เลขที่ 12/14 ปากทางลาดพร้าว แขวงจอมพล เขตจตุจักร กรุงเทพฯ 10900</div> <div class="address_2">โทรศัพท์: 02-938-4399 แฟกซ์ : 02-938-4399</div> <div class="address_2">อีเมล์ :info@thebestdeal1.com</div> <div class="address_2">เลขที่ประจำตัวผู้เสียภาษี : 0105555180399</div> </div> <div class="acknow_box"> <div class="acknow">ใบเสร็จรับเงิน / ใบส่งสินค้า</div> <!--<div class="acknow">เลขที่ #<?if(isset($order_data["order"]["receipt_id"] ))echo $order_data["order"]["receipt_id"];?></div>--> <br/><br/> <div class="acknow_detail">เลขที่ใบสั่งซื้อ (REF. 1) : <?php echo $order_data["order"]["order_id"]; ?> </div> <div class="acknow_detail">เลขที่ลูกค้า (REF. 2) : <?php echo $order_data["order"]["mem_id"];
<?php $this->load->view('responsive/reg_left_bar.html'); ?> </div> <div class="float_right" style="margin-left: 10px;"> <p align="center"> </p> <p align="center"> </p> <div align="center" class="regformdiv"> <p align="center" style="margin:10px 0px;"> <?php echo image_asset('register.jpg'); ?> <br> </p> <form id="regform" action="" method="post"> <table id="table16" border="0" cellpadding="0" cellspacing="0" width="350"> <tbody> <tr> <td height="20" width="165"><span style="font-weight: 700"> <font style="font-size: 10px" face="Tahoma"> Företagsnamn </font> </span></td> <td height="20" width="20"> </td> <td height="20" width="165"><span style="font-weight: 700"> <font style="font-size: 10px" face="Tahoma"> Organisationsnummer </font> </span></td> </tr> <tr> <td height="25" width="165"> <input style="border: 1px solid #000000;font-family:Tahoma;width:165px;height:25px;" type="text" id="company_name" class="validate[required] text small" name="company_name" value="<?php echo $user['company_name'];
</li> <li> <a href="https://www.facebook.com/salefinder.se" target="_blank"><?php echo image_asset('icon-facebook.png'); ?> </a> </li> <li> <a href="#"><?php echo image_asset('icon-twitter.png'); ?> </a> </li> <li> <a href="#"><?php echo image_asset('icon-youtube.png'); ?> </a> </li> </ul> </div><!--follow_us--> <div class="clear"></div> <div class="footer_text"> <p> © 2015 SaleFinder Norden. </p> </div><!--footer_text--> </div><!--footer--> <?php $popupData = popupData();
public function index() { $pattern_name = '/^[a-zA-Zก-ฮ]*$/'; $data['user'] = ''; $data['pass'] = ''; $data['cpass'] = ''; $data['Fname'] = ''; $data['Lname'] = ''; $notnull = 1; $get = false; $this->load->helper('url'); if ($this->input->post("btnsave") != null) { $user = $this->input->post("user"); $data['user'] = $user; $pass = $this->input->post("pass"); $data['pass'] = $pass; $cpass = $this->input->post("cpass"); $data['cpass'] = $cpass; $Fname = $this->input->post("Fname"); $data['Fname'] = $Fname; $Lname = $this->input->post("Lname"); $data['Lname'] = $Lname; if ($pass != $cpass) { $notnull = 2; echo '<script type="text/javascript">'; echo 'alert("รหัสผ่านไม่ตรงกัน");'; echo '</script>'; } //ถ้าข้อมูลไม่ครบ if (($user && $pass && $Fname && $Lname) == null) { $notnull = 2; echo '<script type="text/javascript">'; echo 'alert("กรุณาระบุข้อมูลให้ครบถ้วน");'; echo '</script>'; } if ($notnull == 1 && $pass == $cpass) { if (preg_match($pattern_name, $Fname) && preg_match($pattern_name, $Lname)) { //ถ้ามี user อยู่แล้ว $check = "SELECT * FROM users "; $query = $this->db->query($check); $data2 = $query->result(); $user_double = ""; foreach ($data2 as $dd) { $check_user = $dd->User; if ($check_user == $user) { $user_double = true; echo "USER DOUBLE"; } else { $user_double = false; } } if ($user_double == false) { $get = true; $new_id_user = mysql_result(mysql_query("Select Max(substr(id_Users,-4))+1 as MaxID from users"), 0, "MaxID"); $id_Users1 = "Us" . sprintf("%04d", $new_id_user); $ar = array("User" => $this->input->post("user"), "Password" => $this->input->post("pass"), "Fname" => $this->input->post("Fname"), "Lname" => $this->input->post("Lname"), "id_Users" => $id_Users1); $this->db->insert("users", $ar); $data_sent['login'] = true; $data_sent['img_profile'] = image_asset('icon_shadow/member/user_un.png'); $data_sent['link'] = "login_fb"; $data_sent['id'] = $user; $data_sent['first_name'] = $Fname; $data_sent['last_name'] = $Lname; $data_sent['login_fb'] = false; $data_sent['search_found'] = false; // $data_session=array( // 'session_login'=>true, // 'session_Fname'=>$Fname, // 'session_Lname'=>$Lname, // 'session_user'=>$user, // 'session_login_width'=>$login_fb=false, // 'session_id_Users'=>$id_Users1, // 'session_img_profile'=>image_asset('icon_shadow/member/user_un.png') // ); // $this->session->set_userdata($data_session); $data_session = array('session_login' => true, 'session_Fname' => $Fname, 'session_Lname' => $Lname, 'session_login_width' => $login_fb = false, 'session_id_Users' => $dd->id_Users, 'session_iduser' => $this->input->post("user"), 'session_login_fb' => false, 'session_img_profile' => image_asset('icon_shadow/member/user_un.png')); $this->session->set_userdata($data_session); redirect("main_con"); } } else { $notnull = 2; echo '<script type="text/javascript">'; echo 'alert("กรุณากรอกชื่อหรือนามสกุลของคุณอีกครั้ง");'; echo '</script>'; } // exit(); } } if ($get == false) { $this->load->view("register", $data); } }
echo $item["id"]; ?> " class="pay_tbC"> <input name="order[<?php echo $item["id"]; ?> ][deal_id]" type="hidden" id="order_<?php echo $item["id"]; ?> _deal_id" value="<?php echo $item["deal"]["deal_id"]; ?> " /> <ul> <li id="pDeal" class="pay_tb_borR"> <span class="pay_fL"><?echo image_asset($item["deal"]["deal_index_image"], '', array('alt'=>$item["deal"]["deal_name"],'width'=>'130px','height'=>'100px'));?></span> <span class="pay_fR"><?php echo $item["product"]['product_name']; ?> </span> <span class="pay_fR_detail"><?php echo $item["product"]['product_detail']; ?> </span> </li> <li id="pPrice" class="pay_tb_borLR">฿<?php echo number_format($item["price"]); ?> <span class="hidden_price"><?php echo $item["price"]; ?>
</p> <p align="center"> <span style="text-decoration: underline"> <a style="font-size: 10px; font-weight: 700;font-family: Tahoma" href="#" class="reg_btn"> NOT REGISTERED YET? GET STARTED HERE!</a></span> </p> <p align="center"> </p> <p align="center"> </p> </div> <div align="center" class="regformdiv"> <p align="center" style="margin:10px 0px;"> <?php echo image_asset('register_retailer.jpg'); ?> <br> <font face="Tahoma" style="font-size: 10px"> <br> FYLL I FORMULÄRET NEDAN FÖR ATT REGISTRERA OCH BÖRJA SÄLJA PÅ SALEFINDER: </font> </p> <form id="regform" action="" method="post"> <table id="table16" border="0" cellpadding="0" cellspacing="0" width="350"> <tbody> <tr> <td height="20" width="165"><span style="font-weight: 700"> <font style="font-size: 10px" face="Tahoma"> Företagsnamn </font> </span></td> <td height="20" width="20"> </td> <td height="20" width="165"><span style="font-weight: 700"> <font style="font-size: 10px" face="Tahoma"> Organisationsnummer </font> </span></td> </tr>
<?php echo image_asset('rp.jpg'); ?> <br/> <i>Assalamu'alaikum Warrahmatullahi Wabarokatuh</i><br/> Bismillahirrohmanirrohim, untuk pengembangan website ini, antum dapat mengirimkan donasi dengan rekening berikut :<br/> <?php echo image_asset('danamon.gif'); ?> <br/> a/n : Tri Murni Jamillia<br/> no. rek : 105398150<br/> <?php echo image_asset('mandiri.png'); ?> <br/> a/n : Nova Herdi Kusumah<br/> no. rek : 1010006323313<br/> <?php echo image_asset('bca.gif'); ?> <br/> a/n : Oman Rochman<br/> no. rek : 2910362031 </div> </div> <div id="south" class="x-hide-display"> <p>Selamat datang di indoquran.web.id</p> </div> </body> </html>
echo image_asset('/icon/info.png', '', array('alt' => 'รายละเอียด', 'title' => 'รายละเอียด')); ?> </a> | <a href="/mybackoffice/user_admin/update_form/<?php echo $data["admin_id"]; ?> "><?php echo image_asset('/icon/edit.png', '', array('alt' => 'แก้ไข', 'title' => 'แก้ไข')); ?> </a> | <a href="/mybackoffice/user_admin/delete/<?php echo $data["admin_id"]; ?> " onclick="if(confirm('ต้องการลบข้อมูลผู้ใช้งานระบบ ใช่หรือไม่ ?')){return true;}else{return false;};"> <?php echo image_asset('/icon/delete.png', '', array('alt' => 'ลบข้อมูล', 'title' => 'ลบข้อมูล')); ?> </a> </td> </tr> <? } ?> </table> </div> <script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#show_data').dataTable(); }); function delete_data(row_id,add_text) { if(confirm('ต้องการลบข้อมูลมาชิก '+add_text))
<div id="pay_total"> <div> <div class="ttL">รวมทั้งหมด</div> <div class="ttR ttA" id="show_summary">฿<?php echo number_format($summary_all); ?> <input type="hidden" name="price_summary" id="price_summary" value="<?php echo $summary_all; ?> " /></div> </div> </div> <div id="check_out_butt"> <div> <a href="/" ><?echo image_asset('shop_deal_button.png', '', array('alt'=>'ช็อปดีลต่อ'));?></a> <span class="can_click" onclick="show_confirm_payment()"><?echo image_asset('payment_button.png', '', array('alt'=>'ชำระเงิน'));?></span> </div> </div> <div id="confirm_payment"> <div class="clear"> <div id="pay_condition"> <input type="checkbox" name="accept_condition" id="accept_condition" value="1"/> <span>ยอมรับ<a href="/home/salecondition/" target="_blank">เงื่อนไขการขาย</a></span> <div>กรุณากดยอมรับ<a href="/home/salecondition/" target="_blank">เงื่อนไขการขาย</a> และข้อกำหนด <br/>ที่ทาง TheBestDeal1.com ได้กำหนดไว้ ก่อนทำการสั่งซื้อค่ะ</div> </div> <div id="pay_solution"> <div><span>ช่องทางการชำระเงิน</span></div> <div><input type="radio" name="how2pay" id="how2pay_cs" value="2" onclick="load_how2pay(5)"/>ชำระเงินผ่านเคาน์เตอร์เซอร์วิส</div> <!--<div><label><input type="radio" name="how2pay" id="how2pay" value="3" onclick="load_how2pay(6)" checked="checked"/>ชำระเงินผ่าน Tesco Lotus</label></div>--> <!-- <div><input type="radio" name="how2pay" id="how2pay" value="4" onclick="load_how2pay(7)"/>ชำระเงินออนไลน์</div> -->
$login_label = 'Login'; } else { $login_label = 'Email'; } } $password = array('name' => 'password', 'id' => 'password', 'size' => 30); $remember = array('name' => 'remember', 'id' => 'remember', 'value' => 1, 'checked' => set_value('remember'), 'style' => 'margin:0;padding:0'); ?> <div class="float_right" style="margin-left: 10px;"> <p align="center"> </p> <p align="center"> <?php echo image_asset('signin.jpg'); ?> <br> <font face="Tahoma" style="font-size: 10px;text-align: center;"><br> LOGGA IN OM DU ÄR REDAN REGISTRERAD:</font> <br /> </p> <div align="center"> <form id="loginform" action="<?php echo base_url(); ?> auth/login" method="post" accept-charset="utf-8"> <table id="table16" border="0" cellpadding="0" cellspacing="0" width="350"> <tbody> <tr>
<span onclick="remove2cart('<?php echo $product["product_id"]; ?> ')"><?echo image_asset('payment/del.png', '', array('alt'=>'ยกเลิก'));?></span> </div> </div> <? } ?> </div> <div id="shopping_popup_footer"> จำนวนสิ้นค้าในตระกล้า <span id="total_item"><?php echo $total_item; ?> </span> ชิ้น <div id="payment_box" style="float: right;<? if(empty($total_item)){?>display: none;<? } ?>"> <a onclick="close_overlay()" style="display: block; float: left;"><?echo image_asset('shop_deal_button.png', '', array('alt'=>'ช็อปดีลต่อ'));?></a> <a href="/shopping" style="margin: 0 0 0 10px;display: block; float: left;"><?echo image_asset('payment_button.png', '', array('alt'=>'ชำระเงิน'));?></a> </div> </div> </div> <script> function close_overlay() { parent.$.fancybox.close(); } function add2cart(id) { var qty = $( "#sniper_"+id ).spinner("value"); if(qty>0) { $.ajax({ type: "POST",
<div class="float_right" style="margin-left: 20px;"> <div class="catageries"> <p> <?php echo image_asset('wishlist.jpg'); ?> <br> <br> </p> <p> Följande produkter finns i önskelistan. Om du önskar att ta bort någon produkt, klicka på det röda hjärtat på bilden. </p> <div id="product_cat"> <?php echo $products; ?> </div> </div><!--catageries--> <div class="clear"></div> <div class="pages_links"> <?php echo $pagination; ?> </div> <!--pages_links--> </div><!--float_right> <div class="clear"></div> </div><!--main_body--> <div class="clear"></div>
<div class="order_detail1"><? if(($order_old != $order["order_id"])) echo $order["order_id"];?></div> <div class="order_detail2"><b><?php echo $order["deal_name"]; ?> </b> # <?php echo $order["product_name"]; ?> </div> <div class="order_detail3"><? if(($order_old != $order["order_id"])) echo date_format(date_create($order["order_date"]),"d/m/Y");?></div> <div class="order_detail4"><? if(($order_old != $order["order_id"])) echo number_format ($order["order_summary"],2);?></div> <div class="order_detail5"> <? if(($order_old != $order["order_id"])) { if ($order["order_status"]=='1') echo 'รอการชำระเงิน<br/><br/>'. '<a class="fancybox fancybox.ajax" href="/shopping/payment_form/1/'.$order["order_id"].'">'.image_asset("payment/icon_bank.png").'</a>'; //'<a class="fancybox fancybox.ajax" href="/shopping/payment_form/3/'.$order["order_id"].'">'.image_asset("payment/icon_lotus.png").'</a>'; //'<a class="fancybox fancybox.ajax" href="/shopping/paysabuy/'.$order["order_id"].'">'.image_asset("payment/icon_cs.png").'</a>'; //'<a class="fancybox fancybox.ajax" href="/shopping/payment_form/4/'.$order["order_id"].'">'.image_asset("payment/icon_online.png").'</a>'; if ($order["order_status"]=='2') echo "ชำระเงินแล้ว"; if ($order["order_status"]=='0') echo "ยกเลิก"; } ?> </div> <div class="order_detail6"><? if(($order_old != $order["order_id"])){?><a href="/member/my_orderDetail/<?php echo $order["order_id"]; ?> ">รายละเอียด</a><? }?></div> <? if ($order["order_status"]=='1' && $order["order_id"] != $order_next){?> <div class="meg_payment">ขอขอบคุณสำหรับการสั่งซื้อ กรุณาชำระเงินภายใน 24 ชั่วโมงหลังทำการสั่งซื้อ หากไม่ชำระเงินภายใน</div> <div class="meg_payment1">เวลาที่กำหนด ระบบจะทำการยกเลิกคำสั่งซื้อของท่านโดยอัตโนมัติ ยกเลิกคำสั่งซื้อของคุณกรณากด