Пример #1
0
    ?>
<br/>
             - Điện thoại: <?php 
    echo $store->phone;
    ?>
        <?php 
}
?>
        
        
        <?php 
if ($cart->paymentType == enum::PAYMENT_BANKING) {
    ?>
              - Thanh toán tại qua ngân hàng : <br/>
             <?php 
    echo getconfigkey('cartBank');
    ?>
        <?php 
}
?>
        
        <?php 
if ($cart->paymentType == enum::PAYMENT_ONLINE) {
    ?>
             - Vui lòng nhấn vào liên kết sau để thực hiện thanh toán : <br/>
             - <?php 
    echo $cart->linkOnline;
    ?>
        <?php 
}
?>
Пример #2
0
        <?php 
echo getconfigkey('addressCompany');
?>
    </div>
	<!--
    <div class="support">
        <div class="s1"><a target="_blank" href="<?php 
echo getconfigkey('account_facebook');
?>
"></a></div>
        <div class="s2"><a target="_blank" href="<?php 
echo getconfigkey('account_twitter');
?>
"></a></div>
        <div class="s3"><a target="_blank" href="<?php 
echo getconfigkey('account_youtube');
?>
"></a></div>
        <div class="s4"><a target="_blank" href="<?php 
echo getconfigkey('account_google_plus');
?>
"></a></div>
        <div class="s5"><a target="_blank" href="<?php 
echo getconfigkey('account_google_plus');
?>
"></a></div>
    </div>
	-->
</div>
<!-- end link foter-->
<!-- foter-->
Пример #3
0
 function isolate_edit($catalogue_id = 0, $news_id = 0)
 {
     $newscatalogue = new newscatalogue($catalogue_id);
     if (!$newscatalogue->exists()) {
         show_404();
     }
     $news = new article($news_id);
     if ($_SERVER['REQUEST_METHOD'] == "GET") {
         if (!$news->exists()) {
             $news->newscatalogue_id = $catalogue_id;
             $news->dir = getconfigkey("default_news_dir");
         }
     } else {
         $this->load->helper('remove_vn_helper');
         $this->load->library('file_lib');
         $news->title_vietnamese = $this->input->post('title_vietnamese');
         $news->title_english = $this->input->post('title_english');
         $news->title_japanese = $this->input->post('title_japanese');
         $news->title_none = remove_vn($news->title_vietnamese);
         $news->estatecity_id = $this->input->post('estatecity_id');
         $news->estatedistrict_id = $this->input->post('estatedistrict_id');
         $news->estatetype_id = $this->input->post('estatetype_id');
         $news->equity = $this->input->post('equity');
         $news->timeStart = $this->input->post('timeStart');
         $news->timeCompleted = $this->input->post('timeCompleted');
         $news->investors = $this->input->post('investors');
         $news->short_vietnamese = $this->input->post('short_vietnamese');
         $news->short_english = $this->input->post('short_english');
         $news->full_vietnamese = $this->input->post('txtFull_vietnamese');
         $news->full_english = $this->input->post('txtFull_english');
         $news->full_japanese = $this->input->post('txtFull_japanese');
         $news->hot = $this->input->post('hot');
         $news->hotHome = $this->input->post('hotHome');
         $news->source = $this->input->post('source');
         $news->tag = $this->input->post('tag');
         $news->dir = $this->input->post('dir');
         $new_image = $this->input->post('newimage');
         $news->pagi = $this->input->post('pagi');
         $tags = remove_vn($this->input->post('tag') . ' ' . $this->input->post('title_vietnamese') . ' ' . $this->input->post('short_vietnamese'));
         $tags = explode('-', $tags);
         $news->tag_search = implode(' ', $tags);
         if ($_FILES['image']['name'] != "") {
             $dataupload = $this->file_lib->upload('image', $news->dir);
             if (!is_array($dataupload)) {
                 flash_message('error', $dataupload);
             } else {
                 $news->image = $dataupload['file_name'];
             }
         }
         //newstopic
         $newstp = new newstopic($this->input->post('newstopic'));
         $newsc = new newscatalogue($this->input->post('newscatalogue'));
         $isnews = $news->exists();
         if (!$news->exists()) {
             $news->active = 1;
         }
         if ($news->save(array($newsc, $newstp))) {
             // save photo for image
             $filePath = 'img/news/';
             $numfile = $this->input->post('numfile');
             foreach ($numfile as $row) {
                 $dataupload = $this->file_lib->upload('image' . $row, $filePath);
                 if (is_array($dataupload)) {
                     $newsphotos = new newsphoto();
                     $newsphotos->article_id = $news_id;
                     $newsphotos->image = $filePath . $dataupload['file_name'];
                     $newsphotos->name = $this->input->post('name' . $row);
                     $newsphotos->save();
                     $newsphotos->clear();
                     flash_message('success', $dataupload['file_name'] . ' đã được thêm.');
                 }
             }
             $this->session->unset_userdata('dir_for_news');
             if ($isnews) {
                 flash_message("success", "Cập nhật thành công");
             } else {
                 flash_message("success", "Thêm mới thành công");
             }
             if ($news->navigation != "") {
                 $this->session->set_userdata(array(config_item('session_admin') . 'menu_current' => $newscatalogue->navigation));
                 if (empty($newscatalogue->menu_active)) {
                     $dis['menu_active'] = "Danh sách bài viết";
                 } else {
                     $dis['menu_active'] = $newscatalogue->menu_active;
                 }
             } else {
                 $this->session->set_userdata(array(config_item('session_admin') . 'menu_current' => $news->navigation));
                 if (empty($newscatalogue->menu_active)) {
                     $dis['menu_active'] = "Danh sách bài viết";
                 } else {
                     $dis['menu_active'] = $news->title_vietnamese;
                 }
             }
             redirect($this->admin . 'cnews/isolate_edit/' . $news->newscatalogue->id . '/' . $news->id);
         } else {
             flash_message("error", "Lỗi");
         }
     }
     // get all province
     $estatecity = new Estatecity();
     $estatecity->order_by('position', 'asc');
     $estatecity->get_iterated();
     $dis['estatecity'] = $estatecity;
     // get all province
     $estatecate = new Estatecatalogue();
     $estatecate->order_by('position', 'asc');
     $estatecate->get_iterated();
     $dis['estatecate'] = $estatecate;
     $newscat = new newscatalogue();
     $newscat->where('parentcat_id !=', 'NULL');
     $newscat->where('parentcat_id', $newscatalogue->parentcat_id);
     $newscat->order_by('position', 'asc');
     $newscat->get();
     $newstopic = new newstopic();
     $newstopic->order_by('id', 'desc');
     $newstopic->get();
     $sitelanguage = new Sitelanguage();
     $sitelanguage->order_by('position', 'asc');
     $sitelanguage->get();
     $dis['sitelanguage'] = $sitelanguage;
     $dis['newstopic'] = $newstopic;
     $dis['base_url'] = base_url();
     $dis['newscatalogue'] = $newscat;
     $dis['currentcatalogue'] = $newscatalogue;
     $dis['title'] = "Thêm/ Sửa tin tức";
     $dis['menu_active'] = "Danh sách bài viết";
     //specific view for catelogue name "gia pha toan toc" , id =39
     if ($catalogue_id == 39) {
         $dis['view'] = "news/isolate_full_hirarchy_edit";
     } else {
         $dis['view'] = "news/isolate_edit";
     }
     $dis['object'] = $news;
     $dis['nav_menu'] = array(array("type" => "back", "text" => "Back", "link" => "{$this->admin_url}cnews/isolate_list_by_cat/" . $catalogue_id, "onclick" => ""));
     if ($news->exists()) {
         if (!empty($news->navigation)) {
             $this->session->set_userdata(array(config_item('session_admin') . 'menu_current' => $news->navigation));
             $dis['menu_active'] = $news->title_vietnamese;
         } else {
             $this->session->set_userdata(array(config_item('session_admin') . 'menu_current' => $newscatalogue->navigation));
             if (empty($newscatalogue->menu_active)) {
                 $dis['menu_active'] = $newscatalogue->name_vietnamese;
             } else {
                 $dis['menu_active'] = $newscatalogue->menu_active;
             }
         }
     } else {
         $this->session->set_userdata(array(config_item('session_admin') . 'menu_current' => $newscatalogue->navigation));
         $dis['menu_active'] = $newscatalogue->name_vietnamese;
     }
     if ($this->logged_in_user->adminrole->id == 1) {
         array_push($dis['nav_menu'], array("type" => "copymove", "text" => "Copy/Move", "link" => "javascript:void(0);", "onclick" => "show_copy()"));
     }
     $this->viewadmin($dis);
 }
Пример #4
0
 function _send_email()
 {
     $this->data['subject'] = $this->input->post('title');
     $this->data['message'] = "<p><b><i>Email được gửi từ chức năng liên hệ của website <a href='" . base_url() . "'>" . base_url() . "</a></i></b></p> <br />";
     $this->data['message'] .= "---------------- Thông Tin Người Gửi ---------------- <br />";
     $this->data['message'] .= "<b><i>Họ Tên:</i></b> " . $this->input->post('name') . "<br />";
     $this->data['message'] .= "<b><i>Email:</i></b> <a href='mailto:" . $this->input->post('email') . "'>" . $this->input->post('email') . "</a> <br />";
     $this->data['message'] .= "<b><i>Điện Thoại:</i></b> " . $this->input->post('phone') . "<br /><br />";
     $this->data['message'] .= "---------------------- Nội Dung --------------------- <br />";
     $this->data['message'] .= $this->input->post('content') . "<br />";
     //Establish settings for phpmailer to use to send the mail
     $mailer = new PHPMailer();
     $mailer->CharSet = 'UTF-8';
     $mailer->SMTPDebug = 1;
     $mailer->IsSMTP();
     // set mailer to use SMTP
     $mailer->Host = "smtp.googlemail.com";
     // specify main and backup server
     $mailer->Port = 465;
     // set the port to use
     $mailer->SMTPAuth = true;
     // turn on SMTP authentication
     $mailer->SMTPSecure = 'ssl';
     $mailer->Username = "******";
     // your SMTP username or your gmail username
     $mailer->Password = "******";
     // your SMTP password or your gmail password
     $mailer->From = $this->input->post('email');
     $mailer->FromName = $this->input->post('name');
     $mailer->Subject = $this->data['subject'];
     $mailer->Body = $this->data['message'];
     //$mailer->AddAttachment($file_path, $file_name); // add attache file
     $mailer->WordWrap = 50;
     $mailer->IsHTML(true);
     //$mailer->AddAddress('*****@*****.**','Info - Lien Minh');
     $mailer->AddAddress(getconfigkey('email_contact'), 'Info - So Tay Nha Dat');
     //Send the mail
     if ($mailer->Send()) {
         return true;
     } else {
         return false;
     }
 }
Пример #5
0
    });
});
</script>    
<noscript>Vui lòng kích hoạt javascript!</noscript>
</head>
<body>
<!-- WRAPPER START -->
<div class="container_16" id="wrapper">	
	<!-- HIDDEN COLOR CHANGER -->      
      
  	<!--LOGO-->
	<div class="grid_8" id="logo"><a href="<?php 
echo $base_url;
?>
" target="_blank" style="color: #FFFFFF"><?php 
echo getconfigkey("admin_title");
?>
</a></div>
    <div class="grid_8">
    <!-- USER TOOLS START -->
          <div id="user_tools" style="float: left;"><span><a href="#" class="clearCache">Clear Cache</a> </span></div>  
          <div id="user_tools"><span><a href="#" class="mail">(0)</a> Welcome <a href="<?php 
echo $this->admin_url;
?>
adminusers/account"><?php 
echo $this->logged_in_user->fullname;
?>
</a>  | |  <a href="<?php 
echo $this->admin_url;
?>
logout">Logout</a></span></div>
Пример #6
0
        echo '<span class="clr"></span>';
        echo '</div>';
    }
}
$skype2 = trim(getconfigkey('skype2'));
if ($skype2 != "") {
    $skype2 = explode(";", $skype2);
    if ($skype2[1] != null) {
        echo '<div class="online_line">';
        echo '<span class="fl"><a href="skype:' . $skype2[1] . '?call"><img src="http://download.skype.com/share/skypebuttons/buttons/call_blue_white_124x52.png" style="border: none;" width="84" height="32" alt="Skype Me™!" /></a></span>';
        echo '<span class="fl">' . $skype2[0] . '</span>';
        echo '<span class="clr"></span>';
        echo '</div>';
    }
}
$skype3 = trim(getconfigkey('skype3'));
if ($skype3 != "") {
    $skype3 = explode(";", $skype3);
    if ($skype3[1] != null) {
        echo '<div class="online_line">';
        echo '<span class="fl"><a href="skype:' . $skype3[1] . '?call"><img src="http://download.skype.com/share/skypebuttons/buttons/call_blue_white_124x52.png" style="border: none;" width="84" height="32" alt="Skype Me™!" /></a></span>';
        echo '<span class="fl">' . $skype3[0] . '</span>';
        echo '<span class="clr"></span>';
        echo '</div>';
    }
}
?>
		
		</div>
		<div class="clr"></div>
	</p>
Пример #7
0
<div class="slide-word">
    <marquee onmouseover="this.stop()" onmouseout="this.start()" scrollamount="3" scrolldelay="20">
        <span><?php 
echo getconfigkey('slogan_' . getlanguage());
?>
</span>
    </marquee>
</div>
Пример #8
0
">
                        <p><?php 
    echo $row->name;
    ?>
</p>
                    </a>
                </div>
            <?php 
}
?>
        </div>
    </div>
</div>
<div class="line9"></div>
<!-- link foter-->
<div class="sreenadd" style="width:980px; background-color:#d0d0d0; float:left;">
    <div style="float:left; font-size: 13px; width: 780px; margin: 5px 0px 5px 8px; text-align: left; line-height: 22px;">
        <?php 
echo getconfigkey('addressCompany');
?>
    </div>
    <div class="footer-logo" style="float: right; width: 190px;">
        <a href="<?php 
echo $base_url;
?>
"><img style="width: 95%; margin-top: 10px; float: right; margin-right: 8px;" src="<?php 
echo $base_url;
?>
images/logo_tet.png" alt="nhà đất, bất động sản"/></a>
    </div>
</div>
Пример #9
0
            </div>
            <?php 
    echo $i < $estatesVip->result_count() ? '<div class="line"></div>' : '';
    ?>
            <?php 
}
unset($row);
?>
        </div>
    </div>
    <div class="qc-home-page">
        <a href="<?php 
echo getconfigkey('link_middle_images_homepage');
?>
"><img src="<?php 
echo $base_url . getconfigkey('middle_images_homepage');
?>
" /></a>
    </div>
    <div class="tinrao">
        <div class="box-news-mod">
            <h1><span>Tin rao nhà đất mới nhất</span></h1>
        </div>
        <div class="boxnew" style="width:590px; float:left;  margin-top:0px;">
            <?php 
$i = 0;
foreach ($estatesNew as $row) {
    $i++;
    if ($row->updated != '') {
        $date = $row->updated;
    } else {
Пример #10
0
 function _send_email($title, $content, $name_from, $email_from, $name_to, $email_to)
 {
     $this->load->plugin('phpmailer');
     $this->data['subject'] = $title;
     $this->data['message'] = $content;
     //Establish settings for phpmailer to use to send the mail
     $mailer = new PHPMailer();
     $mailer->CharSet = 'UTF-8';
     $mailer->SMTPDebug = 1;
     $mailer->IsSMTP();
     // set mailer to use SMTP
     $mailer->Host = getconfigkey('smtp_host');
     // specify main and backup server
     $mailer->Port = getconfigkey('smtp_port');
     // set the port to use
     $mailer->SMTPAuth = true;
     // turn on SMTP authentication
     $mailer->SMTPSecure = 'ssl';
     $mailer->Username = getconfigkey('smtp_user');
     // your SMTP username or your gmail username
     $mailer->Password = getconfigkey('smtp_password');
     // your SMTP password or your gmail password
     $mailer->From = $email_from;
     $mailer->FromName = $name_from;
     $mailer->AddReplyTo($email_from, $name_from);
     $mailer->Subject = $this->data['subject'];
     $mailer->Body = $this->data['message'];
     //$mailer->AddAttachment($file_path, $file_name); // add attache file
     $mailer->WordWrap = 50;
     $mailer->IsHTML(true);
     $mailer->AddAddress($email_to, $name_to);
     //Send the mail
     if ($mailer->Send()) {
         return true;
     } else {
         return false;
     }
 }
Пример #11
0
?>
">online skype</a>
            </span>
        </div>
    </div>
    <div class="col-left-item">
        <div class="col2-item support-online share-social">
            <span><a target="_blank" href="<?php 
echo getconfigkey('linkFacebook');
?>
"><img src="<?php 
echo $base_url;
?>
images/icon-facebook.png" alt=""/></a></span>
            <span><a target="_blank" href="<?php 
echo getconfigkey('linkGoogle');
?>
"><img src="<?php 
echo $base_url;
?>
images/icon-google-plus.png" alt=""/></a></span>
        </div>
    </div>
    <div class="col-left-item">
        <div class="col2-item support-online link-website">
            <h3><?php 
echo lang('webLink');
?>
</h3>
            <span class="line-support-online"></span>
            <span class="row-video row-link-websites">
Пример #12
0
			<div class="clr"></div>
		</div>
		<div style="text-align: right;"><a href="<?php 
echo $base_url;
?>
gio-hang" class="btnShoppingCart">(<span class="numCart">_</span>)</a></div>
        <div class="cl"></div>
		<div class="mini_menu_top userInfo">
            
		</div>
	</div>
	<div class="top_search fr">
		<div style="position: relative;">
			<div class="text_quote">
                <?php 
$slogan = getconfigkey('pageslogan');
if ($slogan != "") {
    $slogan = explode(";", $slogan);
}
foreach ($slogan as $row) {
    ?>
    
				<blockquote>
					<?php 
    echo trim(nl2br($row), "<br />");
    ?>
				</blockquote>
                <?php 
}
?>
			</div>
Пример #13
0
 function resetNewsViewMost()
 {
     try {
         $dateNow = new DateTime(date('Y-m-d'));
         $dateStart = new DateTime(getconfigkey('date_start_reset_news'));
         $interval = $dateNow->diff($dateStart);
         if ($interval->days % 7 == 0) {
             $cauhinh = new Cauhinh();
             $cauhinh->where('fieldname', 'date_reset_news')->get();
             if (getconfigkey('date_reset_news') == 0) {
                 $news = new Article();
                 $news->where('recycle', 0);
                 $news->where_in('newscatalogue_id', array(71, 73, 72, 74, 75, 77, 80, 81, 82, 78, 79));
                 $news->get_iterated();
                 foreach ($news as $row) {
                     $o = new Article($row->id);
                     $o->view_count = 0;
                     $o->save();
                     $o->clear();
                 }
                 $cauhinh->value = 1;
                 $cauhinh->save();
             }
         } else {
             if (getconfigkey('date_reset_news') != 0) {
                 $cauhinh = new Cauhinh();
                 $cauhinh->where('fieldname', 'date_reset_news')->get();
                 $cauhinh->value = 0;
                 $cauhinh->save();
             }
         }
     } catch (Exception $e) {
         echo 'Caught exception: ', $e->getMessage(), "\n";
     }
 }
Пример #14
0
 function sendMailCustomerService($id)
 {
     $cart = new Cartitem($id);
     if (!$cart->exists()) {
         show_404();
     }
     $cartDetail = $cart->cartdetail;
     $dis['menu_active'] = 'Giỏ hàng';
     $dis['cartdetail'] = $cartDetail;
     $dis['object'] = $cart;
     $dis['cart'] = $cart;
     $dis['title'] = "Xem trước email cho đơn hàng " . $cart->code;
     $dis['base_url'] = base_url();
     $dis['view'] = 'cart/emailPreview';
     $emailContent = $this->load->view('admin/cart/emailPreviewCustomerService', $dis, TRUE);
     $emailSubject = "didongviet.vn - Có đơn đặt hàng mới từ " . $cart->customer->name . " vào lúc " . date("d-m-Y h:i");
     //load email customer service
     $customerServiceEmail = getconfigkey('customerServiceEmail');
     if (trim($customerServiceEmail) != "") {
         $this->_send_email("myemail", $emailSubject, $emailContent, $customerServiceEmail);
     }
 }