/** * Given the domain ID, fetch all Records and return the one we want. * * @param null $page * @return bool */ function getRecord($page = null) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, API_URL . 'domains/' . DOMAIN . '/records' . ($page != null ? '?page=' . $page : '')); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, CURL_TIMEOUT); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Bearer ' . ACCESS_TOKEN)); $data = curl_exec($ch); $info = curl_getinfo($ch); $responseCode = $info['http_code']; curl_close($ch); if ($data === false || $responseCode !== 200) { return false; } $dataJson = json_decode($data, true); foreach ($dataJson['domain_records'] as $record) { if ($record['name'] === RECORD && $record['type'] === 'A') { return $record; } } // Recursive call for pages results if (isset($dataJson['links']['pages']['next']) && $dataJson['links']['pages']['next'] != '') { preg_match('/page=(?<page_number>\\d+)/i', $dataJson['links']['pages']['next'], $match); if (isset($match['page_number']) && $match['page_number'] != '') { return getRecord($match['page_number']); } } return false; }
$exp_url3 = '<?php $' . 'parent_1_c = "' . $parentMenuProduct3_1 . '";$' . 'parent_c = "' . $IdMenuProduct3 . '"; $' . 'name_c = "' . $nameMenuProduct3 . '"; $' . 'title_c = "' . $titleMenuProduct3 . '"; $' . 'descriptionMeta_category = "' . $description3 . '"; $' . 'keywordsMeta_category = "' . $keywords3 . '"; ?>'; $ft_u3 = "../inc/new/" . $urlCodeUpXml3 . $ln . ".inc"; $ft_u3 = fopen($ft_u3, "w"); fwrite($ft_u3, $exp_url3); @chmod($ft_u3, 0777); //exp parent url=========================================KET THUC3 $array_where1 .= ",'" . $IdMenuProduct3 . "'"; $array_where2 .= ",'" . $IdMenuProduct3 . "'"; $array_menu_product_4con = ""; if ($con_type3 > 0) { $whereMenuProduct4 = "parent=" . $IdMenuProduct3; $sqlMenuProduct4 = "select * from {$tableCategoryNewId} where {$whereMenuProduct4} and status=0 {$sortby}"; $resultMenuProduct4 = @mysql_query($sqlMenuProduct4, $conn); while ($rowMenuProduct4 = @mysql_fetch_array($resultMenuProduct4)) { //Lay thong tin MenuProduct=========== $rowMenuProductNam4 = getRecord($tableCategoryNew, "id_code=" . $rowMenuProduct4['id'] . " and lang='" . $ln . "'"); $nameMenuProduct4 = ''; $IdMenuProduct4 = ''; $urlMenuProduct4 = ''; $parentMenuProduct4 = ''; $imageProduct4 = ''; $whereProduct4 = ''; $totalProduct4 = ''; //tong sp muc nay $totalProductShow4 = ''; $whereMenuCon_type4 = ''; $con_type4 = ''; //kiem tra danh muc nay co menu con khong $con_typeShow4 = ''; $keywords4 = strip_tags(str_replace('"', "", $rowMenuProductNam4['keywords'])); $description4 = strip_tags(str_replace('"', "", $rowMenuProductNam4['description']));
$whereSendEmailNumber = "parent=" . $idCategoryEmailHost . " and id in (select id_code from {$tableSendNumberEmail} where send_number<99 and ldate='" . $strtotimeDmy . "')"; $rowEmailHost = getRecord($tableEmailId, $whereSendEmailNumber); } } else { //dung mail cua mhcl cap cho de gui $rowCategoryEmailHost = getRecord($tableCategoryEmailId, "code='EMSHAREPRODUCT'"); $idCategoryEmailHost = $rowCategoryEmailHost['id']; //THEM TAT CA MAIL NAY VAO BANG SO LUONG MAIL GI DI====================(chi ap dung cho email ko phai cua host) $sqlInputSendEmailNumber = "select * from {$tableEmailId} where type_email<>'" . $typeDmailNotdefault . "' and parent=" . $idCategoryEmailHost . " and {$whereStatus}"; $resultInputSendEmailNumber = @mysql_query($sqlInputSendEmailNumber, $conn); while ($rowInputSendEmailNumber = @mysql_fetch_array($resultInputSendEmailNumber)) { $idEmailSend = $rowInputSendEmailNumber['id']; $parentEmailSend = $rowInputSendEmailNumber['parent']; $mail_username = $rowInputSendEmailNumber['email']; require_once $ajaxUrlEmail . $folderSendmail . "/insert_email_send_number.php"; } //THEM TAT CA MAIL NAY VAO BANG SO LUONG MAIL GI DI====================KET THUC //DIEU KIEM LAY E MAI GOOGLE........ $whereSendEmailNumber = "type_email<>'" . $typeDmailNotdefault . "' and parent=" . $idCategoryEmailHost . " and id in (select id_code from {$tableSendNumberEmail} where send_number<99 and ldate='" . $strtotimeDmy . "')"; $rowEmailHost = getRecord($tableEmailId, $whereSendEmailNumber); /*echo $rowEmailHost['name']." lay e mail google cua host"; exit();*/ //NEU KO CON LAI EMAIL CUA HOST if (!$rowEmailHost) { $rowEmailHost = getRecord($tableEmailId, "type_email='" . $typeDmailNotdefault . "' and parent=" . $idCategoryEmailHost); /*echo $rowEmailHost['name']." lay e mail cua host"; exit();*/ } } /*echo "khong the lay"; exit();*/
<?php $showHtmlDknhantin = "\n <div class=\"regis-reci\">\n <h3>Đăng ký nhận thông tin</h3>\n <p>Nhận thông tin về dịch vụ và ưu đãi hàng tuần</p>\n <script language=\"javascript\">\n function btnContact_onclick(){\n document.getElementById('err_name').style.display = \"none\";\n document.getElementById('emailok_error').style.display = \"none\";\n document.getElementById('email_email').style.display = \"none\";\n document.getElementById('err_phone').style.display = \"none\";\n document.getElementById('err_time').style.display = \"none\";\n document.getElementById('err_all').style.display = \"none\";\n if((document.contact.txtName.value=='')|| (document.contact.txtName.value=='TÊN CỦA BẠN')){\n document.getElementById('contact_from_erro').style.display = \"\";\n document.getElementById('err_name').style.display = \"\";\n document.contact.txtName.focus();return false;\n }\n if(document.contact.email.value==''){\n document.getElementById('contact_from_erro').style.display = \"\";\n document.getElementById('email_email').style.display = \"\";\n document.contact.email.focus();return false;\n }\n var email = document.contact.email.value;\n var filter = /^([a-zA-Z0-9_\\.\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+\$/;\n if (!filter.test(email))\n {\n document.getElementById('contact_from_erro').style.display = \"\";\n document.getElementById('emailok_error').style.display = \"\";\n document.contact.email.focus();return false;\n }\n if((document.contact.txtPhone.value=='')||(document.contact.txtPhone.value=='ĐIỆN THOẠI CỦA BẠN')){\n //document.getElementById('contact_from_erro').style.display = \"\";\n document.getElementById('err_phone').style.display = \"\";\n document.contact.txtPhone.focus();return false;\n }\n if((document.contact.txtTime.value=='')||(document.contact.txtTime.value=='" . UTIMETOTALK . "')){\n //document.getElementById('contact_from_erro').style.display = \"\";\n document.getElementById('err_time').style.display = \"\";\n document.contact.txtTime.focus();return false;\n }\n if((document.contact.txtCapchainput.value=='')|| (document.contact.txtCapchainput.value=='" . TSECURITYCODE . "')){\n //document.getElementById('contact_from_erro').style.display = \"\";\n document.getElementById('err_capcha').style.display = \"\";\n document.contact.txtCapchainput.focus();return false;\n }\n return true;\n }\n </script>\n <div class=\"contact_from_erro\" id=\"contact_from_erro\" >\n <p id=\"err_name\" class=\"name_do\" style=\"display:none\">\n " . TYOUMUSTPROVIDEANAME . "<br>\n </p>\n <p id=\"email_email\" class=\"name_do\" style=\"display:none\">\n " . CYOUMAYENTEREMAIL . ".<br>\n </p>\n <p id=\"emailok_error\" class=\"name_do\" style=\"display:none\">\n " . CFNBOXMALFORMED . ".<br>\n </p>\n <p id=\"err_phone\" class=\"name_do\" style=\"display:none\">\n " . UPLEASEENTERYOUSKYPEORPHONE . "<br>\n </p>\n <p id=\"err_time\" class=\"name_do\" style=\"display:none\">\n " . UTIMETOTALK . "<br>\n </p>\n <p id=\"err_capcha\" class=\"name_do\" style=\"display:none\">\n " . TPLEASEENTERTHESECURITYCODE . "<br>\n </p>\n <p id=\"err_all\" class=\"name_do\">\n " . $errMsg . "<br>\n </p>\n </div>\n <form method=\"POST\" name=\"contact\" id=\"ap_contact_form\" novalidate=\"novalidate\" action=\"./" . $_lang . "\" class=\"register-recie\">\n <input type=\"hidden\" name=\"idP\" value=\"" . $_REQUEST['idP'] . "\">\n <input type=\"hidden\" name=\"idRegis\" value=\"Đăng ký nhận thông tin\">\n <input type=\"text\" name=\"txtName\" class=\"txtName\" onFocus=\"if (this.value=='HỌ TÊN CỦA BẠN') this.value='';\" onBlur=\"if (this.value=='') this.value='HỌ TÊN CỦA BẠN';\" value=\"HỌ TÊN CỦA BẠN\"/>\n <input type=\"text\" name=\"email\" class=\"txtEmail\" onFocus=\"if (this.value=='EMAIL CỦA BẠN') this.value='';\" onBlur=\"if (this.value=='') this.value='EMAIL CỦA BẠN';\" value=\"EMAIL CỦA BẠN\"/>\n <input type=\"text\" name=\"txtPhone\" class=\"txtPhone\" onFocus=\"if (this.value=='ĐIỆN THOẠI CỦA BẠN') this.value='';\" onBlur=\"if (this.value=='') this.value='ĐIỆN THOẠI CỦA BẠN';\" value=\"ĐIỆN THOẠI CỦA BẠN\"/>\n <input type=\"submit\" name=\"btnContact\" class=\"btnRegister\" onClick=\"return btnContact_onclick()\" value=\"Đăng ký ngay\"/>\n </form>\n </div>\n "; if ($parent_1_c == '79') { $showHtmlDknhantin = ""; include $folderModule . '/contact.php'; $showHtmlHomeConnert = "\n<link href=\"" . $serverName . "css/details.css\" rel=\"stylesheet\" type=\"text/css\"/>\n<!--<div class=\"menu-sp\">\n <div class=\"inner-banner-wrapper\">\n <h3><a href=\"" . $serverName . $code_frame . "/\" title=\"{$name_title_c}\">" . $name_title_c . "</a></h3>\n </div>\n\t\t</div>-->\n<section class=\"product-details\">\n" . $showHtmlNewHomTop . "\n </section>\n"; } elseif ($parent_1_c == '245' or $parent_1_c == '120') { //menu left $rowCategoryDuanName = getRecord($tableCategoryNew, "id_code='" . $parent_c . "' and " . $whereLang); $bannerAll = $rowCategoryDuanName['image_large']; $slideallHtml = $bannerAll != '' ? " <div id=\"banner\"><img src=\"" . $serverName . $bannerAll . "\" alt=\"" . $rowCategoryDuanName['name'] . "\" width=\"990\" height=\"294\" /></div>" : ""; $showHtmlHomeConnert = "\n<link href=\"" . $serverName . "css/details.css\" rel=\"stylesheet\" type=\"text/css\"/>\n<!--<div class=\"menungangtop\">\n \t<h1>{$name_title_c}</h1>\n </div>-->"; include $folderModule . "/left.php"; include $folderNew . '/product_page.php'; $showHtmlHomeConnert .= "<style type=\"text/css\">.product-r{display:block;}</style>\n {$asideleft}\n <div class=\"public content-right product-r\">\n <div class=\"duongdan\"><a href=\"" . $serverName . "\" title=\"Giầy thông minh\">Trang chủ</a> <font size=\"3\">»</font> <a href=\"" . $serverName . $code_frame . "/\" title=\"" . $name_title_c . "\">{$name_title_c}</a></div>\n <div class=\"menungangtop\"><h1>{$name_title_c}</h1></div>\n <div class=\"contentblok-right-1\">\n <div class=\"right\">\n {$showHtmlNewHomTop}\n </div><!--End div rights-->\n </div><!--End contentblok-right-1-->\n </div><!--End content-right-->\n <div class=\"clear\"></div>\n </div><!--End main-content-->\n</section>\n "; } elseif ($parent_1_c == '293') { include $folderNew . '/services_page.php'; include $folderModule . "/left.php"; //menu left $showHtmlHomeConnert = "\n<link href=\"" . $serverName . "css/details.css\" rel=\"stylesheet\" type=\"text/css\"/>\n<section class=\"clear\"></section>\n <section class=\"product-details\">\n <h1><a href=\"" . $serverName . $code_frame . "/\">" . $name_title_c . "</a></h1>\n " . $asideleft . "\n <div class=\"details-right\">\n " . $showHtmlNewHomTop . "\n </div>\n </section>"; } else { $showHtmlHomeConnert = "\n <link href=\"" . $serverName . "css/details.css\" rel=\"stylesheet\" type=\"text/css\"/>"; include $folderModule . "/left.php"; include $folderNew . '/new_page.php'; $showHtmlHomeConnert .= "\n {$asideleft1}\n <div class=\"public content-right product-r\">\n <div class=\"duongdan\"><a href=\"" . $serverName . "\" title=\"Giầy thông minh\">Trang chủ</a> <font size=\"3\">»</font> <a href=\"" . $serverName . $code_frame . "/\" title=\"" . $name_title_c . "\">{$name_title_c}</a></div>\n <div class=\"menungangtop\"><h1>{$name_title_c}</h1></div>\n <div class=\"contentblok-right-1\">\n <div class=\"right\">\n {$showHtmlNewHomTop}\n </div><!--End div rights-->\n </div><!--End contentblok-right-1-->\n </div><!--End content-right-->\n <div class=\"clear\"></div>\n </div>\n</section>\n "; }
echo getLinkSort(5); ?> ">Lần hiệu chỉnh trước</a></th> </tr> <?php $sortby = 'order by date_added'; if ($_REQUEST['sortby'] != '') { $sortby = 'order by ' . (int) $_REQUEST['sortby']; } $direction = $_REQUEST['direction'] == '' || $_REQUEST['direction'] == '0' ? 'desc' : ''; $sql = "select *,DATE_FORMAT(date_added,'%d/%m/%Y %h:%i') as dateAdd,DATE_FORMAT(last_modified,'%d/%m/%Y %h:%i') as dateModify from tbl_order {$sortby} {$direction} limit " . $p * $MAXPAGE . "," . $MAXPAGE; $result = mysql_query($sql, $conn); $i = 0; while ($row = mysql_fetch_array($result)) { $cust = getRecord("tbl_member", 'id=' . $row['member_id']); $color = $i++ % 2 ? '#d5d5d5' : '#e5e5e5'; ?> <tr> <td bgcolor="<?php echo $color; ?> " class="smallfont"> <input type="checkbox" name="chk[]" value="<?php echo $row['id']; ?> "> </td> <td bgcolor="<?php echo $color;
<?php //them moi vo bang tbl_module_pro_category_skype $skypeParent = getRecord($tableCategoryConfigId, "code ='" . $codeSupportskype . "'"); $sqlskype = "select * from {$tableConfigId} where {$whereStatus} and parent=" . $skypeParent['id'] . " {$sortby} DESC"; $resultskype = @mysql_query($sqlskype, $conn); while ($skype = @mysql_fetch_array($resultskype)) { $id_skype = $skype['id']; $fields_arrskype = array("id_code" => "'{$oldid}'", "id_skype" => "'{$id_skype}'", "status" => "0", "date_added" => "now()", "last_modified" => "now()"); $resultskype = insert($tableCategorSkype, $fields_arrskype); } //update them moi if ($_POST['skype'] != '') { $whereskype = ''; foreach ($_POST['skype'] as $idskype) { $resultskype = mysql_query("update {$tableCategorSkype} set skype=1 where id_code=" . $oldid . " and id_skype=" . $idskype); $whereskype .= 'id_skype<>' . $idskype . ' and '; } } if ($resultskype) { $whereskype1 = $whereskype; } else { $whereskype1 = ''; } $resultskype = mysql_query("update {$tableCategorSkype} set skype=0 where " . $whereskype1 . " id_code=" . $oldid . "");
///UPDATE BANG CONNERT ID------------------------------------------------------------------------ $resultContentId = @mysql_query('update ' . $tableUpdateAllContentID . ' set ' . $status . '=0 where parent_1 =' . $rowParentShow['parent_1'], $conn); $resultContent = @mysql_query('update ' . $tableUpdateAllContent . ' set ' . $status . '=0 where parent_1 =' . $rowParentShow['parent_1'], $conn); } else { //neu ko phai la menu cap 1-------------------- $strlenCode = strlen($rowParentShow['code']); $maxForShow = maxRecord($tableUpdateAll, 'havechildren', "substring(code, 1, " . $strlenCode . ")='" . $rowParentShow['code'] . "'"); //lay tong so menu con lon nhat trong cung mot danh mục // $parentMaxForShow = getRecord($tableUpdateAll, "havechildren=" . $maxForShow . " and parent_1=" . $rowParentShow['parent_1']); //lay code cua menu thap nhat //echo $parentMaxForShow['code']; //exit(); $parentCapShow = explode("_", $parentMaxForShow['code']); //echo $parentCapShow['1']; //exit(); for ($jShow = 1; $jShow <= $maxForShow; $jShow++) { //vong for lay tu dong nhung thang co con //update bang category--------------------------- $resultok = @mysql_query('update ' . $tableUpdateAll . ' set ' . $status . '=0 where id =' . $parentCapShow[$jShow] . " and substring(code, 1, " . $strlenCode . ")='" . $rowParentShow['code'] . "'", $conn); ///UPDATE BANG CONNERT ID------------------------------------------------------------------------ $parentBangcon = getRecord($tableUpdateAll, "id =" . $parentCapShow[$jShow] . " and substring(code, 1, " . $strlenCode . ")='" . $rowParentShow['code'] . "'"); //lay code cua menu thap nhat $resultContentId = @mysql_query('update ' . $tableUpdateAllContentID . ' set ' . $status . '=0 where parent =' . $parentBangcon['id'], $conn); $resultContent = @mysql_query('update ' . $tableUpdateAllContent . ' set ' . $status . '=0 where parent =' . $parentBangcon['id'], $conn); /*echo $parentCapShow[$jShow]; exit();*/ } // ket thuc vong for } //ket thuc kiem tra la menu cap 1---------------------
<?php $row = getRecord("tbl_content", "id=" . $_REQUEST['id']); ?> <link href="../css/css.css" rel="stylesheet" type="text/css" /> <table align="center" border="0" width="98%" cellpadding="0" cellspacing="0"> <tr><td height="22" style="padding-left:5px; padding-top:5px"> <span style="font-family:Tahoma; font-size:14px; color:#333333; font-weight:600"><?php echo $row['name']; ?> </span></td></tr> <tr> <td> <?php if ($row['image'] || $row['image_large']) { $img = $row['image'] != '' ? $row['image'] : $row['image_large']; } ?> <br/> <br /> <?php echo $row['detail']; ?> </td> </tr> <tr><td height="10px"></td></tr> <tr><td align="right" style="padding-right:5px"><a href="javascript:history.go(-1);"> <span style="font-family:Tahoma; color:#999999; font-size:12px; font-weight:600; text-decoration:none">[Quay lại]</span></a></td></tr> </table> <br /> <table align="center" border="0" width="98%" cellpadding="0" cellspacing="0" class="style27">
$sql = "select *from tbl_image where id_parent=" . $idProduct; $query = @mysql_query($sql, $conn); while ($row = @mysql_fetch_assoc($query)) { $image_large_c = $row['image']; if ($image_c != '') { $image_c1 .= "<img src=\"" . $serverName . $image_c . "\" id=\"multizoom1\" alt=\"" . $namehh . "\"/>"; $image_c1a .= "<a href=\"" . $serverName . $image_c . "\" data-large=\"" . $serverName . $image_c . "\"><img src=\"" . $serverName . $image_c . "\" width=\"60\" height=\"70\" alt=\"" . $namehh . "\"/></a> "; } if ($image_large_c != '') { $image_large_c1 .= "<a href=\"" . $serverName . $image_large_c . "\" rel=\"lightbox\"><img src=\"" . $serverName . $image_large_c . "\" width=\"270\" height=\"400\" alt=\"" . $namehh . "\"/></a> "; $image_large_c1a .= "<a href=\"" . $serverName . $image_large_c . "\" data-large=\"" . $serverName . $image_large_c . "\"><img src=\"" . $serverName . $image_large_c . "\" width=\"60\" height=\"70\" alt=\"" . $namehh . "\"/></a> "; } //echo $image_c; } $image_cAll = $image_c != '' ? $image_c : "images/no_images.jpg"; $rowHangName = getRecord($tableCategoryNew, "id_code='" . $rowProductName['parent2'] . "' and " . $whereLang); $nameDetail = $rowProductName['name']; $idCodeDetail = $rowProductName['code']; /** Kiểm tra bán hàng online * Hiện thông tin sản phẩm */ if ($config_sales == 1) { $codeProduct = $rowProductName['code']; $quantity = $rowProductName['quantity']; $sales = $rowProductName['sale']; if ($sales != '') { $price = $sales; $priceCu = " <span class=\"giacu\">" . @number_format($rowProductName['price'], 0) . " vnđ</span>"; } else { $price = $rowProductName['price']; }
<?php if ((isset($_POST['btn']) or isset($_POST['btn1'])) and $_POST['oldid'] != '') { $oldid = trim($_POST['oldid']); //unset($_SESSION['cart']); $infoName = getRecord($tableNew, $whereLang . " and id_code=660"); if (isset($_POST['btn'])) { $btn = " <tr>\n <td align=\"left\" valign=\"top\" class=\"bg_xacnhan1\">\n\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n <tr>\n <td align=\"left\" valign=\"top\" class=\"bg_xacnhan_sms_im\"><img src=\"" . $serverName . "images/messagesms.png\" /></td>\n <td width=\"86%\" align=\"left\" valign=\"top\" class=\"border_xm\">\n\t<h2 class=\"bg_xacnhan_sms\">Cảm ơn quý khách đã mua hàng tại " . $domainName . "</h2>\n\t\n\t<p>Quý khách đã chọn hình thức thanh toán COD</p>\n <p>Để xác nhận đơn hàng số <strong class=\"text_do\">" . $oldid . " </strong>Quý khách vui lòng soạn tin với cú pháp:<strong class=\"text_do\">" . $codeSMS . " " . $oldid . "</strong> gửi <strong class=\"text_do\">" . $codeDauso . "</strong> (*)</p>\n <br />\n <p>Hoặc gọi điện số <strong>" . $hotline1 . "</strong> để xác thực đơn hàng.</p>\n <p>Sau khi nhận được xác thực đơn hàng của quý khách, chúng tôi sẽ liên hệ với quý khách để xác nhận thời gian & địa chỉ giao hàng.</p>\n\n <br />\n \n\t\n\t</td>\n </tr>\n</table>\n\n\t\n\t</td>\n </tr>"; $type_payment = 0; } elseif (isset($_POST['btn1'])) { $btn = " \n\t\n\t\n\t\n\t<tr>\n <td align=\"left\" valign=\"top\" class=\"bg_xacnhan1\">\n\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n <tr>\n <td align=\"left\" valign=\"top\" class=\"bg_xacnhan_sms_im\"><img src=\"" . $serverName . "images/messagesms.png\" /></td>\n <td width=\"86%\" align=\"left\" valign=\"top\" class=\"border_xm\">\n\t<h2> <strong class=\"text_do\">Đơn hàng số: " . $oldid . " </strong></h2>\n\t" . $infoName['detail_short'] . "\n\t\n\t</td>\n </tr>\n</table>\n\n\t\n\t</td>\n </tr>\n\t\n\t\n\t"; $type_payment = 1; } $fields_arr1a = array("type_payment" => "'{$type_payment}'"); $result1 = update($tableOrdersId, $fields_arr1a, "id=" . $oldid); $showHtmlHomeConnert = "\n<div class=\"clear\"></div>\n<section class=\"main\">\n<section id=\"content\">\n <div class=\"content-items\">\n <div class=\"content-items-content-01\">\n <section class=\"slider-content-1\"> <em class=\"bt-1\"><b> </b></em>\n <div class=\"anythingSlider-1\">\n <h2 class=\"subtitle-1\">" . $titlePage . "</h2>\n<link href=\"" . $serverName . "css/cart.css\" rel=\"stylesheet\" type=\"text/css\" />\n<br>\n\n<div class=\"bg_xacnhan\">\n<table id=\"yourcartdetails\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n " . $btn . "\n</table>\n\n</div>\n</div>\n <div class=\"clear\"></div>\n <em class=\"bb\"><b> </b></em>\n </div>\n </div>\n\n</section>\n </section> \n"; } else { echo "<script>window.location='" . $serverName . "'</script>"; }
} if (check_email_address($email)) { $errMsg = ''; } else { $errMsg = CFNBOXMALFORMED; } if ($detail == '' || $detail == UGOALSYOUWANTTOACHIEVE) { $errMsg = 'Bạn chưa nhập nội dung thảo luận'; } else { $errMsg = ''; } //$name = substrNumber($detail,'100',''); $defaulName = $name; $id_parent = $idProduct; $codeParent = $parent; $CodeModule = getRecord($tableCategoryNewId, " id=" . $codeParent); //$code_frame = $CodeModule['code']; $code_module = $CodeModule['code_module']; //$email = $rowMemberIdInfo['email']; //$nameMember = $rowMemberIdInfo['name']; $urlCode = removeVietnamese($defaulName, " ", "-"); //lay url tu dong //$city = $rowMemberIdInfo['city']; //$country = $rowMemberIdInfo['country']; $ip_computer = getRealIpAddr(); $ldate = @strtotime(date("d-m-Y-g:i a")); $no = 10; $yes = 30; $totalYes = $no; $totalNo = $yes; include 'comment/countCommentStars.php';
<tr><td height="10"></td></tr> <?php $showhtmlModuleTT = ""; $sqlModuleTT = "select * from {$tableModuleId} where " . $whereStatus; $resultModuleTT = mysql_query($sqlModuleTT, $conn); while ($ModuleTT = mysql_fetch_array($resultModuleTT)) { $ModuleTTname = getRecord($tableModule, 'id_code=' . $ModuleTT['id'] . " and lang='" . $_lang_A . "'"); $idModuleTT = $ModuleTT['id']; $typeModuleTT = $ModuleTT['type_module']; $codeModuleTT = $ModuleTT['code_module']; $NameModuleTT = $ModuleTTname['name']; $showModuleParentAllA = ""; $wheretttttt = "id_member='" . $oldid . "' and id_module='" . $idModuleTT . "' and status_module='1'"; //$checkeModuleTTShow = countRecord($tableUserLevelId,$wheretttttt); $rowUserLevelId = getRecord("tbl_user_level_id", $wheretttttt, 'order by sort asc'); if ($rowUserLevelId) { $id_code = $rowUserLevelId['id']; include 'userConfig/user_config_ajax.php'; $showModuleParentAllA = $showModuleParentAll; $checkeModuleTTShowHtml = 'checked="checked"'; } else { $checkeModuleTTShowHtml = ''; $id_code = '0'; } $showhtmlModuleTT .= "\n<tr>\n <td align=\"left\" class=\"smallfont\" valign=\"top\">\n\t\t\t\t\t\t<input type=\"checkbox\" onclick=\"AjaxModule('" . $idModuleTT . "','" . $typeModuleTT . "','" . $id_code . "')\" id=\"chkModule" . $idModuleTT . "\" name=\"chkModule" . $idModuleTT . "\" value=\"on\" " . $checkeModuleTTShowHtml . "> " . $NameModuleTT . "\n\t\t\t\t\t\t</td>\n </tr>\n\n"; if ($typeModuleTT == '0') { $showModuleParentAllA01 = $showModuleParentAllA; } elseif ($typeModuleTT == '1' or $typeModuleTT == '2' or $codeModuleTT == 'module_ord') { $checkeParentEditId = countRecord($tableUserLevelId, "id_member=" . $oldid . " and code_module='" . $ModuleTT['code_module'] . "' and parent_edit=1"); $checkeParentDeteleId = countRecord($tableUserLevelId, "id_member=" . $oldid . " and code_module='" . $ModuleTT['code_module'] . "' and paren_delete=1");
echo getLinkSort(8); ?> "> <?php echo TLASTUPDATED; ?> </a></th> </tr> <?php $sql = "select *,DATE_FORMAT(date_added,'%d/%m/%Y %h:%i') as dateAdd,DATE_FORMAT(last_modified,'%d/%m/%Y %h:%i') as dateModify from {$tableCommentId} where {$whereComment} and {$whereStatus} {$sortby} {$direction} limit " . $p * $MAXPAGE . "," . $MAXPAGE; $result = @mysql_query($sql, $conn); $i = 0; while ($row = @mysql_fetch_array($result)) { $color = $i++ % 2 ? '#d5d5d5' : '#e5e5e5'; $nameCategory = getRecord($tableConfigId, 'id = ' . $row['id_parent']); //lay danh muc ?> <tr> <td align="center" bgcolor="<?php echo $color; ?> " class="smallfont"> <input type="checkbox" name="chk[]" value="<?php echo $row['id']; ?> "></td> <td width="30" align="center" bgcolor="<?php echo $color; ?>
$urlCode = substr($row['url'], strlen($rowUrlParent1['url']) + 1); $urlCodeDk = $rowUrlParent1['url'] . '_'; } //$urlCode = $row['url']; $name = $row['name']; $subject = $row['subject']; $detail_short = $row['detail_short']; $detail = $row['detail']; $warranty_offer = $row['warranty_offer']; $keywords_search = $row['keywords_search']; $sort = $row['sort']; $status = $row['status']; } elseif ($_REQUEST['codeParent'] != '') { //lay thuoc tinh cua tra chuyen cho con $oldid = $_REQUEST['codeParent']; $row = getRecord($tableCategoryConfig, "id_code=" . $oldid . " and lang='" . $ln . "'"); //$code = $row['code']; $name = $row['name']; $subject = $row['subject']; $detail_short = $row['detail_short']; $detail = $row['detail']; $warranty_offer = $row['warranty_offer']; $keywords_search = $row['keywords_search']; $sort = $row['sort']; $status = $row['status']; } //ket thuc lay thuoc tinh cua tra chuyen cho con ?> <tr > <td width="15%" align="left" valign="middle" bgcolor="#0069A8" class="title" style="text-transform:uppercase"> </td> <td width="1%" bgcolor="#0069A8" class="title" align="center"> </td>
<tr><td height="10"></td></tr> <tr> <td colspan="3" align="center"> <?php include 'modulePro/viewImage.php'; ?> </td> </tr> <?php //LAP NGON NGU foreach ($conf as $ln => $j) { if (isset($_REQUEST['id'])) { $oldid = $_REQUEST['id']; $row = getRecord($tableComment, "id_code=" . $oldid . " and lang='" . $ln . "'"); $title = $row['title']; $name = $row['name']; $subject = $row['subject']; $detail_short = $row['detail_short']; $detail = $row['detail']; $sort = $row['sort']; $status = $row['status']; } ?> <tr > <td width="15%" align="left" valign="middle" bgcolor="#0069A8" class="title" style="text-transform:uppercase"> </td> <td width="1%" bgcolor="#0069A8" class="title" align="center"> </td> <td width="83%" height="24" align="left" valign="middle" bgcolor="#0069A8" class="title"><font style="font-weight: 700" color="#FFFFFF"> <?php echo $conf[$ln];
$p = $_REQUEST['p']; } $result = @mysql_query("select count(*) from tbl_product where {$where}", $conn); $total = mysql_fetch_row($result); $sql = "select * from tbl_product where {$where} limit " . $row * $col * $p . "," . $row * $col; $result = @mysql_query($sql, $conn); ?> <link href="../css/style.css" rel="stylesheet" type="text/css" /> <table cellSpacing="0" cellPadding="0" width="100%" border="0"> <?php for ($i = 0; $i < $row; $i++) { ?> <tr> <?php for ($j = 0; $j < $col && ($products = mysql_fetch_assoc($result)); $j++) { $pro = getRecord("tbl_product", "id=" . $products['id']); ?> <td width="10px"></td><td> <table width="130" border="0" cellspacing="0" cellpadding="0" style="float:left"> <tr><td height="10px"></td></tr> <tr> <td align="center" class="style13"><a href="./?frame=product_detail&id=<?php echo $pro['id']; ?> " title="<?php echo $pro['name']; ?> "> <?php if ($pro['image'] != '' || $pro['image_large'] != '') { $img = $pro['image'] != '' ? $pro['image'] : $pro['image_large'];
$errMsg .= "Hãy nhập tên danh mục !<br>"; } $errMsg .= checkUpload($_FILES["txtImage"], ".jpg;.gif;.bmp", 500 * 1024, 0); $errMsg .= checkUpload($_FILES["txtImageLarge"], ".jpg;.gif;.bmp", 500 * 1024, 0); if ($errMsg == '') { if (!empty($_POST['id'])) { $oldid = $_POST['id']; $sql = "update " . $tableConfig . " set code='" . $code . "',name='" . $name . "', parent='" . $parent . "',subject='" . $subject . "',detail_short='" . $detail_short . "',detail='" . $detail . "', sort='" . $sort . "', status='" . $status . "',last_modified=now(), lang='" . $lang . "' where id='" . $oldid . "'"; } else { $sql = "insert into " . $tableConfig . " (code, name, parent, subject, detail_short, detail, sort, status, date_added, last_modified, lang) values ('" . $code . "','" . $name . "','" . $parent . "','" . $subject . "','" . $detail_short . "','" . $detail . "','" . $sort . "','" . $status . "',now(),now(),'" . $lang . "')"; } if (mysql_query($sql, $conn)) { if (empty($_POST['id'])) { $oldid = mysql_insert_id(); } $r = getRecord($tableConfig, "id=" . $oldid); $sqlUpdateField = ""; if ($_POST['chkClearImg'] == '') { $extsmall = getFileExtention($_FILES['txtImage']['name']); if (makeUpload($_FILES['txtImage'], "{$path}/" . $actConfig . "_s" . $oldid . $extsmall)) { @chmod("{$path}/" . $actConfig . "_s" . $oldid . $extsmall, 0777); $sqlUpdateField = " image='{$pathdb}/" . $actConfig . "_s" . $oldid . $extsmall . "' "; } } else { if (file_exists('../' . $r['image'])) { @unlink('../' . $r['image']); } $sqlUpdateField = " image='' "; } if ($_POST['chkClearImgLarge'] == '') { $extlarge = getFileExtention($_FILES['txtImageLarge']['name']);
$trDetele_2 = ""; $trDetele_2All = ""; } //SAC DINH THANH VIEN NAY CO CHO XOA KO============== //SAC DINH THANH VIEN NAY CO CHO SUA HAY KO============== if ($totalEdit > 0) { $trEdit_2 = "\n<td width=\"25\" align=\"center\" bgcolor=\"" . $color . "\" class=\"smallfont\">\n<a href=\"./?act=" . $actOrders . "_m&" . $urlAll . "id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\">" . TEDIT . "</a>\t\t</td>\n"; } else { $trEdit_2 = ""; } //SAC DINH THANH VIEN NAY CO CHO SUA HAY KO============== //CHO THEM NHIEU HINH================================ if ($defaulType['type_image_many'] == '1' and $totalConfigModuleLevelIdImage > 0) { $whereImage = "id_parent=" . $row['id'] . " and code_frame='" . $nameCategory['code'] . "' and code_module='" . $nameCategory['code_module'] . "' and {$whereStatus}"; if (countRecord($tableImageId, $whereImage) > 0) { $urlImageProduct = getRecord($tableImageId, $whereImage); $trAddImageHtml = $urlImageProduct['thumbnail'] != "" ? "<img border=\"0\" src=\"../" . $urlImageProduct['thumbnail'] . "\" alt=\"" . $urlImageProduct['name'] . "\" height=\"20\"/>" : TIMAGE; } else { $trAddImageHtml = TADDIMAGE; } $trAddImage = "\n<td align=\"center\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">\n\t\t<a href=\"./?act=" . $actImage . "&" . $urlAll . "idComment=" . $row['id'] . "&code_frame=" . $nameCategory['code'] . "&code_module=" . $nameCategory['code_module'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\">" . $trAddImageHtml . "</a></td>\n"; } //CHO THEM NHIEU HINH================================KET THUC $showImageThumailHtml = $row['image'] != '' ? '<img border="0" src="../' . $row['image'] . '" alt="' . $row['name'] . '" height="20"/>' : ''; if ($row['home'] == 1) { $showNotshowhome = "<a href=\"./?act=" . $actOrders . "&action=notshowhome&" . $urlAll . "id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\"><img border=\"0\" src=\"images/show.gif\" alt=\"" . TSHOWHOME . "\" height=\"20\"/></a>"; } else { $showNotshowhome = " <a href=\"./?act=" . $actOrders . "&action=showhome&" . $urlAll . "id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\"><img border=\"0\" src=\"images/notshow.gif\" alt=\"" . TNOTSHOWHOME . "\" height=\"20\"/></a>"; } if ($row['activation'] == 1) { $showNotshowactivation = "<a href=\"./?act=" . $actOrders . "{$actldate}&action=notshowactivation&acti=activation&id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\" title=\"Đã xác thực\"><img border=\"0\" src=\"images/show.gif\" alt=\"Đã xác thực\" height=\"20\"/></a>";
echo getLinkSort(14); ?> ">Ngôn ngữ</a></th> </tr> <?php $sortby = 'order by date_added'; if ($_REQUEST['sortby'] != '') { $sortby = 'order by ' . (int) $_REQUEST['sortby']; } $direction = $_REQUEST['direction'] == '' || $_REQUEST['direction'] == '0' ? 'desc' : ''; $sql = "select *,DATE_FORMAT(date_added,'%d/%m/%Y %h:%i') as dateAdd,DATE_FORMAT(last_modified,'%d/%m/%Y %h:%i') as dateModify from {$tableConfig} where {$parentWhereConfig} and {$where} {$sortby} {$direction} limit " . $p * $MAXPAGE . "," . $MAXPAGE; $result = mysql_query($sql, $conn); $i = 0; while ($row = mysql_fetch_array($result)) { $parent = getRecord($tableCategoryConfig, 'id = ' . $row['parent']); $color = $i++ % 2 ? '#d5d5d5' : '#e5e5e5'; ?> <tr> <td align="center" bgcolor="<?php echo $color; ?> " class="smallfont"> <input type="checkbox" name="chk[]" value="<?php echo $row['id']; ?> "></td> <td width="30" align="center" bgcolor="<?php echo $color; ?>
<table align="center" cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr><td height="10"></td></tr> </table> <?php $request = $_REQUEST['frame']; $code = $_lang == 'vn' ? 'vn_' . $request : 'en_' . $request; $parentWhere = "and parent = (select id from tbl_content_category where code='{$code}')"; $parentRecord = getRecord("tbl_content", "1=1 " . $parentWhere); $cat = killInjection($_REQUEST['cat']); if ($cat == '') { $cat = $parentRecord['parent']; } $per_page = 5; $p = 0; if ($_REQUEST['p'] != '') { $p = killInjection($_REQUEST['p']); } $total = countRecord("tbl_content", "status=0 and parent=" . $cat); if ($total == 0) { ?> <table align="center" cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr><td height="20"></td></tr> <tr> <td align="center"> <font color="#993300"><b><?php echo $_lang == "vn" ? 'Dữ liệu đang cập nhật !' : 'Data are being updated !'; ?> </b></font> </td> </tr> <tr><td height="20"></td></tr>
$resultSearch = mysql_query($sqlSearch, $conn); while ($Search = mysql_fetch_array($resultSearch)) { $Searchname = getRecord($tableCategorySearch, 'id_code=' . $Search['id'] . " and lang='" . $_lang_A . "'"); $searchHtmlShowCon = ""; //echo $Search['typeivm']; if ($Search['typeivm'] == '0') { $rewSearchProduct = getRecord($tableProductSearchId, "id_code=" . $_REQUEST['id'] . " and id_search_parent=" . $Search['id']); //echo $rewSearchProduct['id']; $arraySourceSearch = getArrayCombo($tableSearchId, 'id', 'name', "parent=" . $Search['id'] . " or id=1"); $searchHtmlShowCon = comboCategory('ddCatSearch_' . $Search['id'], $arraySourceSearch, 'smallfont', $rewSearchProduct['id_search'], 0); } elseif ($Search['typeivm'] == '1') { $searchHtmlShowCon = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"; $sqlSearchCon = "select * from {$tableSearchId} where parent=" . $Search['id'] . " and " . $whereStatus; $resultSearchCon = mysql_query($sqlSearchCon, $conn); while ($SearchCon = mysql_fetch_array($resultSearchCon)) { $SearchConname = getRecord($tableSearch, 'id_code=' . $SearchCon['id'] . " and lang='" . $_lang_A . "'"); $countSearchProduct = countRecord($tableProductSearchId, "id_code=" . $_REQUEST['id'] . " and id_search_parent=" . $Search['id'] . " and id_search=" . $SearchCon['id'] . " and status_search=1"); $searchHtmlShowCon .= "\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t <tr>\n <td class=\"smallfont\" align=\"left\" width=\"15\" valign=\"middle\" height=\"20\"><input type=\"checkbox\" name=\"chkSearch" . $Search['id'] . $SearchCon['id'] . "\" " . ($countSearchProduct > 0 ? "checked" : "") . ">\t</td>\n <td class=\"smallfont\" align=\"left\" valign=\"middle\" height=\"20\">" . $SearchConname['name'] . "</td>\n </tr>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t"; } $searchHtmlShowCon .= "</table>"; } $searchHtmlShow .= " <tr>\n <td width=\"300\" class=\"smallfont\" align=\"left\" valign=\"middle\" style=\"border-bottom:1px dotted #CCCCCC\">" . $searchHtmlShowCon . "</td>\n <td align=\"left\" class=\"smallfont\" valign=\"middle\" style=\"border-bottom:1px dotted #CCCCCC; border-left:1px dotted #CCCCCC; \"> " . $Searchname['name'] . "</td>\n </tr>"; } $searchHtmlShow .= " </table></td></tr>"; } echo $searchHtmlShow; ?>
<?php echo TLASTUPDATED; ?> </a></th> </tr> <?php $sql = "select *,DATE_FORMAT(date_added,'%d/%m/%Y %h:%i') as dateAdd,DATE_FORMAT(last_modified,'%d/%m/%Y %h:%i') as dateModify from {$tableImageId} where {$whereComment} and {$whereStatus} order by typeivm desc limit " . $p * $MAXPAGE . "," . $MAXPAGE; $result = @mysql_query($sql, $conn); $i = 0; while ($row = @mysql_fetch_array($result)) { $color = $i++ % 2 ? '#d5d5d5' : '#e5e5e5'; $nameCategory = getRecord($tableConfigId, 'id = ' . $row['id_parent']); //lay danh muc $proColor = getRecord($tableColor, 'id =' . $row['color']); $proColorDefault = getRecord($tableColor, 'id =' . $nameCategory['color']); ?> <tr> <td align="center"bgcolor="<?php echo $proColorDefault['code'] == '' ? $color : '#' . $proColorDefault['code']; ?> " class="smallfont"> <input type="checkbox" name="chk[]" value="<?php echo $row['id']; ?> "></td> <td width="30" align="center" bgcolor="<?php echo $proColor['code'] == '' ? $color : '#' . $proColor['code']; ?> "class="smallfont">
/** * * @param PostController $Sender * @param type $RecordType * @param type $ID * @throws type */ public function postController_facebook_create($Sender, $RecordType, $ID) { if (!$this->socialReactions()) { throw permissionException(); } $Row = getRecord($RecordType, $ID, true); if ($Row) { $Message = sliceParagraph(Gdn_Format::plainText($Row['Body'], $Row['Format']), 160); if ($this->accessToken() && $Sender->Request->isPostBack()) { $R = $this->api('/me/feed', array('link' => $Row['ShareUrl'], 'message' => $Message)); $Sender->setJson('R', $R); $Sender->informMessage(t('Thanks for sharing!')); } else { $Get = array('app_id' => c('Plugins.Facebook.ApplicationID'), 'link' => $Row['ShareUrl'], 'name' => Gdn_Format::plainText($Row['Name'], 'Text'), 'description' => $Message, 'redirect_uri' => url('/post/shared/facebook', true)); $Url = 'http://www.facebook.com/dialog/feed?' . http_build_query($Get); redirect($Url); } } $Sender->render('Blank', 'Utility', 'Dashboard'); }
if (countRecord($tableCategoryConfigId, "parent=" . $row6['id'] . " and {$whereStatus}") > 0) { //kiem tra cap 6 co con hay ko echo ' <tr> <td height="25" align="left" valign="middle" class="normalfont" style="border-bottom-color:#CCCCCC; font-weight:500; padding-left:' . $padding6 . 'px; padding-right:3px; background:#fff">- <a href="./?act=' . $row6['code_module'] . '&codeParent=' . $row6['id'] . '&lang=' . $_lang_A . '">' . $defauName6['name'] . '</a> </td> </tr> '; ///lay con cua cap 6----------------------------------------------------------------- $sql7 = "select * from {$tableCategoryConfigId} where parent=" . $row6['id'] . " and {$whereStatus} {$sortby} "; $result7 = @mysql_query($sql7, $conn); while ($row7 = @mysql_fetch_array($result7)) { //vong while lay tat cap 7 $defauName7 = getRecord($tableCategoryConfig, " id_code=" . $row7['id'] . " and lang='" . $_lang_A . "'"); $padding7 = 36; if (countRecord($tableCategoryConfigId, "parent=" . $row7['id'] . " and {$whereStatus}") > 0) { //kiem tra cap 7 co con hay ko echo ' <tr> <td height="25" align="left" valign="middle" class="normalfont" style="border-bottom-color:#CCCCCC; font-weight:500; padding-left:' . $padding7 . 'px; padding-right:3px; background:#fff">- <a href="./?act=' . $row7['code_module'] . '&codeParent=' . $row7['id'] . '&lang=' . $_lang_A . '">' . $defauName7['name'] . '</a> </td> </tr> '; } else { //neu cap 7 co khong co con echo ' <tr>
$address = stripslashes($row['address']); $price = stripslashes($row['price']); $sale = stripslashes($row['sale']); $urlCode = $row['url']; $subject = $row['subject']; $detail_short = $row['detail_short']; $detail = $row['detail']; $sort = $row['sort']; $status = $row['status']; $keywords = stripslashes($row['keywords']); $description = stripslashes($row['description']); $title_t = stripslashes($row['title_t']); $quantity = stripslashes($row['quantity']); $tag = stripslashes($row['tag']); } else { $parentDetail = getRecord($tableCategoryConfig, "id_code=" . $_REQUEST['codeParent'] . " and lang='" . $ln . "'"); $keywords = stripslashes($parentDetail['keywords']); $description = stripslashes($parentDetail['description']); } if ($showFromABCDHtml != '') { $HtmlAddressName = "\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">Địa chỉ:</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n<input value=\"" . $address . "\" type=\"text\" name=\"txtAddress" . $ln . "\" class=\"textbox\" size=\"70\"></td>\n</tr>"; } //LAY NOI DUNG HTML================================= //connert============================================================= if ($defaulType['type_content'] == '2') { $processFrameShowHtmlConnertTC = "\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . $detail_shortHtml . "</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\t\t\t\t\t\t \n<textarea name=\"txtDetailShort" . $ln . "\" cols=\"80\" rows=\"10\" id=\"txtDetailShort" . $ln . "\">" . $detail_short . "</textarea>\n</td></tr>\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . $detailHtml . "</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\t\t\t\t\t\t \n<textarea name=\"txtDetail" . $ln . "\" cols=\"80\" rows=\"10\" id=\"txtDetail" . $ln . "\">" . $detail . "</textarea>\t\n</td></tr>"; } elseif ($defaulType['type_content'] == '1') { $processFrameShowHtmlConnertTC = "\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . $detail_shortHtml . "</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\t\t\t\t\t\t \n<textarea name=\"txtDetailShort" . $ln . "\" cols=\"80\" rows=\"10\" id=\"txtDetailShort" . $ln . "\">" . $detail_short . "</textarea>\t\n</td></tr>"; } if ($defaulType['type_content'] > 0) { $processFrameShowHtmlConnertTC .= "\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">Keywords(10 từ khóa ', ')</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\t\t\t\t\t\t \n<textarea name=\"Keywords" . $ln . "\" cols=\"80\" rows=\"5\" id=\"Keywords" . $ln . "\">" . $keywords . "</textarea>\n</td></tr>\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">Description (160 ký tự)</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\t\t\t\t\t\t \n<textarea name=\"Description" . $ln . "\" cols=\"80\" onKeyDown=\"CountLeft(this.form.Description" . $ln . ",this.form.left" . $ln . ",160);\" onKeyUp=\"CountLeft(this.form.Description" . $ln . ",this.form.left" . $ln . ",160);\" rows=\"6\" id=\"Description" . $ln . "\">" . $description . "</textarea>\n<input readonly type=\"text\" name=\"left" . $ln . "\" size=3 maxlength=3 value=\"160\"> \t\n</td></tr>";
include 'moduleNew/member_m_insert.php'; $pathView = ''; $pathThumb = ''; include 'viewImage.php'; // vong lạp THEO NGON NGU===================[[[[[[[[[[[[[[[[[[[[[[[[[[[====================]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] $processFrameShowHtmlConnertTC = ""; $processFrameShowHtmlConnert = ""; $processFrameShowHtmlChackJs = ""; //foreach($conf as $_lang_A=>$j) { //JAVASACRT KIEM TRA THEO GIA====================================================[[[[[[[[[[ $processFrameShowHtmlChackJs .= "\nif(test_empty(document.frmForm.txtName.value)){\n\t\talert('" . CNAME . "');\n\t\tdocument.frmForm.txtName.focus();\n\t\treturn false;\n\t}\n\nif(test_empty(document.frmForm.txtEmail.value)){\n\t\talert('Chưa nhập địa chỉ email');\n\t\tdocument.frmForm.txtEmail.focus();\n\t\treturn false;\n\t}\n\t\nif(test_empty(document.frmForm.txtPhone.value)){\n\t\talert('Chưa nhập điện thoại');\n\t\tdocument.frmForm.txtPhone.focus();\n\t\treturn false;\n\t}\n\n"; //JAVASACRT KIEM TRA THEO GIA====================================================[[[[[[[[[[[[[KET THUC=]]]]]]]]] //LAY NOI DUNG THEO NGON NGU====================================================[[[[[[[[[[[[[====]]]]]]]]] if (isset($_REQUEST['id'])) { $oldid = $_REQUEST['id']; $row = getRecord($tableMemberId, "id=" . $oldid); $name = $row['name']; $sort = $row['sort']; $status = $row['status']; $type_member = $row['type_member']; $email = $row['email']; $address = $row['address']; $phone = $row['phone']; $sqlvoucher = "select *from tbl_voucher where id_member=" . $oldid; $queryvoucher = @mysql_query($sqlvoucher, $conn); if ($rowvoucher = @mysql_fetch_assoc($queryvoucher)) { $voucher = $rowvoucher['code_voucher']; $discounts = $rowvoucher['discounts']; $date_from = date('d/m/Y', $rowvoucher['date_from']); $date_to = date('d/m/Y', $rowvoucher['date_to']); }
?> </td> <td width="1%" class="smallfont" align="center"> </td> <td width="83%" class="smallfont"> <div class="div_scroll" style="height:70px; width:120px;"> <table border="0" cellspacing="0" cellpadding="0"> <?php $sqlcolor = "select * from {$tableColor} where status=0 {$sortby} DESC"; $resultcolor = @mysql_query($sqlcolor, $conn); while ($color = @mysql_fetch_array($resultcolor)) { $pro = getRecord($tableCategorColor, 'id_color =' . $color['id'] . " and id_code=" . $_REQUEST['id']); ?> <tr> <td align="left" valign="middle" class="smallfont" style="padding-left:2px; padding-right:4px;"> <input name="radioColor" type="radio" value="<?php echo $color['id']; ?> " <?php echo $colorI == $color['id'] ? 'checked="checked"' : ''; ?> /> </td> <td align="left" title="<?php
<?php include '../module/table_frame.php'; include "url.php"; include "../" . $folderInc . '/configmodule' . $ln . '.inc'; $moduleNewName = 'Xay-dung'; //exit(); $xml_output = ""; $ln = 'vn'; $sqlMenuSitemap1 = "select * from {$tableNew} where status=0 order by last_modified asc limit 98000,49000"; $resultMenuSitemap1 = @mysql_query($sqlMenuSitemap1, $conn); while ($rowMenuSitemap1 = @mysql_fetch_array($resultMenuSitemap1)) { //Lay thong tin MenuSitemap1=========== $rowMenuSitemap1Nam = getRecord($tableCategoryNew, "id_code=" . $rowMenuSitemap1['parent'] . " and lang='" . $ln . "'"); $urlMenuSitemap1Cate = $rowMenuSitemap1Nam['url']; $urlMenuSitemap1 = $rowMenuSitemap1['url']; $url1 = $serverName . $moduleNewName . "/" . $urlMenuSitemap1Cate . "/" . $urlMenuSitemap1 . "/" . $ln; $xml_output .= ' <url> <loc>' . $url1 . '</loc> <lastmod>2012-05-25T07:38:57+00:00</lastmod> <priority>0.80</priority> <changefreq>monthly</changefreq> </url> '; } $xml_output1a = '<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>' . $serverName . '</loc> <lastmod>2012-05-25T07:38:57+00:00</lastmod>
<?php include '../module/table_frame.php'; //menu top if ($adv_module != '') { $whereAdvExp = "adv_module=" . $adv_module; foreach ($conf as $ln => $j) { $arrayLi = ''; $sqlAdv = "select * from {$tableAdvertisementId} where status=0 and {$whereAdvExp} order by sort asc"; $resultAdv = @mysql_query($sqlAdv, $conn); while ($rowAdv = @mysql_fetch_array($resultAdv)) { //Lay thong tin Adv=========== $rowAdvNam = getRecord($tableAdvertisement, "id_code=" . $rowAdv['id'] . " and lang='" . $ln . "'"); $imageAdv = str_replace("'", '', $rowAdv['image']); $urlAdv = str_replace("'", '', $rowAdvNam['title']); $nameAdv = str_replace("'", '', $rowAdvNam['name']); $advAllType = str_replace("'", '', $rowAdv['typeivm']); $advAllConnert = str_replace("'", '', $rowAdvNam['detail']); $advAllW = str_replace("'", '', $rowAdv['image_width']); $advAllH = str_replace("'", '', $rowAdv['image_height']); $hspace = str_replace("'", '', $rowAdv['image_large_width']); $vspace = str_replace("'", '', $rowAdv['image_large_height']); $arrayLi .= "'" . $nameAdv . "'=>array('" . $urlAdv . "','" . $imageAdv . "','" . $advAllType . "','" . $advAllConnert . "','" . $advAllW . "','" . $advAllH . "','" . $vspace . "','" . $hspace . "'),"; } $xml_output = '<?php '; if ($arrayLi != '') { $xml_output .= "\$" . "array_adv_home_" . $adv_module . "\t= array(" . substr($arrayLi, 0, -1) . ");"; $xml_output .= "\n" . "\$" . "showhtmlAdvAllLi\t\t\t=\t'';\nforeach (" . "\$" . "array_adv_home_" . $adv_module . "\tas " . "\$" . "advAllName =>" . "\$" . "advAllCode){\n\t\t\t" . "\$" . "advAllUrl\t\t=\t" . "\$" . "advAllCode[0];\n\t\t\t" . "\$" . "advAllImg\t\t=\t" . "\$" . "advAllCode[1];\n\t\t\t" . "\$" . "advAllType\t\t=\t" . "\$" . "advAllCode[2];\n\t\t\t" . "\$" . "advAllConnert\t=\t" . "\$" . "advAllCode[3];\n\t\t\t" . "\$" . "advAllW\t\t\t=\t" . "\$" . "advAllCode[4];\n\t\t\t" . "\$" . "advAllH\t\t\t=\t" . "\$" . "advAllCode[5];\n\t\t\t" . "\$" . "hspace\t\t\t=\t" . "\$" . "advAllCode[6];\n\t\t\t" . "\$" . "vspace\t\t\t=\t" . "\$" . "advAllCode[7];\n\t\t\t" . "\$" . "advHeight\t\t=\t" . "\$" . "advAllH!=''?'height=\"'." . "\$" . "advAllH.'\"':'';\n\t\t\t" . "\$" . "advWidth\t\t\t=\t" . "\$" . "advAllW!=''?'width=\"'." . "\$" . "advAllW.'\"':'';\n\t\t\t" . "\$" . "advHeightH\t\t=\t" . "\$" . "hspace!=''?'hspace=\"'." . "\$" . "hspace.'\"':'';\n\t\t\t" . "\$" . "advWidthV\t\t=\t" . "\$" . "vspace!=''?'vspace=\"'." . "\$" . "vspace.'\"':'';\n" . "include" . "(" . "\$" . "folderIncAjax." . "\$" . "folderModule.'/show_file_adv.php');\t\t\t\n" . "\$" . "showhtmlAdvAllLi\t\t\t.=\t" . "\$" . "showHtmlAdvConnert;\n\n}\n\n" . "\$" . "showhtmlAdvAllLi" . $adv_module . "\t\t=\t'<div class=" . '"' . "adv_right" . '"' . ">'." . "\$" . "showhtmlAdvAllLi.'</div>';\n\n"; $xml_output .= "?>"; } else { $xml_output .= "\n" . "\$" . "showhtmlAdvAllLi" . $adv_module . "\t\t=\t'';\n";
<?php $guest = countRecord("tbl_visitor", "member='n'"); $members = countRecord("tbl_visitor", "member='y'"); $rConfig = getRecord('tbl_config', "code = 'total_visits'"); $total_visits = $rConfig['detail']; $total = countRecord("tbl_comment_id", "code_module='module_pro'"); ?> <table width="100%"> <tr> <td> <table align="center" width="250" cellpadding="5" border="1" bordercolor="#0069A8"> <tr> <td class="smallfont" style="border-right:none;" width="60%"> - <?php echo ONLINE; ?> </td> <td class="smallfont" style="border-left:none;" align="right"><b><?php echo $members + $guest; ?> </b> </td> </tr> <tr> <td class="smallfont" style="border-right:none;"> + <?php echo MEMBER; ?> </td> <td class="smallfont" style="border-left:none;" align="right"><b><?php echo $members; ?>