本文整理汇总了PHP中substrNumber函数的典型用法代码示例。如果您正苦于以下问题:PHP substrNumber函数的具体用法?PHP substrNumber怎么用?PHP substrNumber使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了substrNumber函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: removeUtf8
//Lay thong tin HomeBookDown===========
$idOder = $rowOtherNewNam['id_code'];
$urlHomeP = $rowOtherNewNam['url'];
$nameHomeP = $rowOtherNewNam['name'];
$parentHomeP = $rowOtherNewNam['parent'];
$quantity = $rowOtherNewNam['quantity'];
$discounts = $rowOtherNewNam['discounts'];
$newproduct = $rowOtherNewNam['new'];
$idCodeALl = $rowOtherNewNam['code'];
$sales = $rowOtherNewNam['sale'];
$nameHomePNewTitle = removeUtf8($nameHomeP);
@(include "inc/new/" . $parentHomeP . $_lang . ".inc");
$hrefHomeP = $serverName . $url_c . "/" . $urlHomeP . "/";
$image209New = $rowOtherNewNam['image'];
$image209NewAll = $image209New != '' ? $image209New : "images/no_images.jpg";
$nameHomePAll = substrNumber(strip_tags($nameHomeP), '50', '...');
//$detailHomeP = substrNumber(strip_tags($rowOtherNewNam['detail_short']),'200','...');
if ($config_share == 1) {
/** Share va comment facebook */
include $folderShare . "/share_product_index.php";
$Comment = "<div style=\" margin-top:20px\"><div id=\"fb-root\"></div>\n<script>(function(d, s, id) {\n var js, fjs = d.getElementsByTagName(s)[0];\n if (d.getElementById(id)) return;\n js = d.createElement(s); js.id = id;\n js.src = \"//connect.facebook.net/vi_VN/all.js#xfbml=1&appId=476964002349038\";\n fjs.parentNode.insertBefore(js, fjs);\n}(document, 'script', 'facebook-jssdk'));</script>\n\n<div class=\"fb-comments\" data-href=\"" . $urlFull . "\" data-width=\"749\" data-num-posts=\"2\"></div>\n </div>";
} else {
$temp = "<div class=\"temp\"></div>";
}
/** Kết thuc facebook */
/** Kiểm tra bán hàng online
* 1: Yes
* 0: No
*/
if ($config_sales == 1) {
$price = $rowOtherNewNam['price'];
开发者ID:bestwishforyou95,项目名称:congnghemoitruong,代码行数:31,代码来源:product_detail.php
示例2: removeUtf8
$urlHomeP = $rowNewNam['url'];
$nameHomeP = $rowNewNam['name'];
$parentHomeP = $rowNewNam['parent'];
$quantity = $rowNewNam['quantity'];
$discounts = $rowNewNam['discounts'];
$newproduct = $rowNewNam['new'];
$idCodeALl = $rowNewNam['code'];
$sales = $rowNewNam['sale'];
$nameHomePNewTitle = removeUtf8($nameHomeP);
@(include "inc/new/" . $parentHomeP . $_lang . ".inc");
$hrefHomeP = $serverName . $url_c . "/" . $urlHomeP . "/";
$image209New = $rowNewNam['image'];
$image209NewAll = $image209New != '' ? $image209New : "images/no_images.jpg";
$nameHomePAll = substrNumber(strip_tags($nameHomeP), '50', '...');
//$detailHomeP = substrNumber(strip_tags($rowNewNam['detail_short']),'200','...');
$detailHomeP = substrNumber(strip_tags($rowNewNam['detail_short']), '100', '...');
$idOder = $rowNewNam['id_code'];
$price = $rowNewNam['price'];
if ($price != '' and $price != '0') {
$priceHome1 = "";
$priceHome2 = "";
if ($sales != '' and $sales != '0') {
$priceHome1 = @number_format($sales, 0) . " <sup> đ</sup>";
$priceHome2 = "<del style='color:#999;'>" . @number_format($price, 0) . " <sup> đ</sup></del>";
} else {
$priceHome2 = @number_format($price, 0) . " <sup> đ</sup>";
}
$priceHome = "Giá: " . $priceHome1 . ' ' . $priceHome2;
} else {
$priceHome = "Liên hệ";
}
开发者ID:bestwishforyou95,项目名称:thietkeweb,代码行数:31,代码来源:product_page.php
示例3: createPageView
$pagePagePP = createPageView($totalNew, "?" . $urlPage . "p=", $rowPP, $pPP, $rowPP, $_lang);
//PAGE SEARCH===========================[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
$showNewHtmlPage = "";
}
//PHAN TRANG ---------------KET THUC
$i = 1;
$secs = microtime(true);
$showHtmlNewPageli = "";
$sqlNew = "select *,DATE_FORMAT(date_added,'%d/%m/%Y %h:%i') as dateAdd,DATE_FORMAT(last_modified,'%d/%m/%Y %h:%i') as dateModify from {$tableNew} where {$whereNewAll} and {$whereStatus} and {$whereLang} {$sortby} limit " . $pPP * $rowPP . "," . $rowPP;
$resultNew = @mysql_query($sqlNew, $conn);
$secs = round(microtime(true) - $secs, 3);
while ($rowNewNam = @mysql_fetch_array($resultNew)) {
//Lay thong tin HomeBookDown===========
$parentHomeNew = $rowNewNam['parent'];
$parent1HomeNew = $rowNewNam['parent_1'];
$idOder = $rowNewNam['id_code'];
$nameHomeNew = $rowNewNam['name'];
$image209New = $rowNewNam['image'];
$image209NewAll = $image209New != '' ? $image209New : "images/no_images.jpg";
$nameHomeAll = substrNumber(strip_tags($nameHomeNew), '50', '...');
$priceHome = $rowNewNam['price'];
$urlHomeNew = $rowNewNam['url'];
$nameHomeNewTitle = removeUtf8($nameHomeNew);
@(include "inc/new/" . $parentHomeNew . $_lang . ".inc");
$hrefHomeNew = $serverName . $url_c . "/" . $urlHomeNew . "/" . $_lang;
$showHtmlNewPageli .= "\n\t<div class=\"title-news-1\">\n <div class=\"title-news-2\"><a href=\"" . $hrefHomeNew . "\" title=\"" . $nameHomeNewTitle . "\"><img src=\"" . $serverName . $image209NewAll . "\" width=\"180\" height=\"110\" alt=\"" . $nameHomeNewTitle . "\" class=\"img-news\"></a></div>\n <h2 class=\"title-news-4\"><a href=\"" . $hrefHome . "\" title=\"" . $nameHomeNewTitle . "\">" . $nameHomeAll . "</a></h2>\n \n </div>\n";
}
//LAY SO HANG CUA TRANG===============================KET THUC
$showHtmlNewHomTop = $showHtmlNewPageli . " <div class=\"clear\"></div> <ul class=\"next-page\">" . $pagePagePP . "</ul>";
}
//kiem tra co sp nao khong======================================================KET THUC
开发者ID:bestwishforyou95,项目名称:congnghemoitruong,代码行数:31,代码来源:album_page.php
示例4: while
$sqlHomeOther = "select *from {$tableNew} where parent=" . $rowHomeNam['id_code'] . " and home=1 and {$whereStatus} and {$whereLang} {$sortby3} limit 0,3";
$queryHomeOther = @mysql_query($sqlHomeOther, $conn);
while ($rowHomeOther = @mysql_fetch_assoc($queryHomeOther)) {
$parent_1Home = $rowHomeOther['parent_1'];
$idOder = $rowHomeOther['id_code'];
$urlHome = $rowHomeOther['url'];
$nameHome = $rowHomeOther['name'];
$parentHome = $rowHomeOther['parent'];
$nameHomeNewTitle = removeUtf8($nameHome);
$hrefHomeNew = $serverName . $url_c . "/";
@(include "inc/new/" . $parentHome . $_lang . ".inc");
$hrefHome = $serverName . $url_c . "/" . $urlHome . "/";
$image209New = $rowHomeOther['image'];
$image209NewAll = $image209New != '' ? $image209New : "images/no_images.jpg";
$nameHomeAll = substrNumber(strip_tags($nameHome), '60', '...');
$detailHome = substrNumber(strip_tags($rowHomeOther['detail_short']), '150', '...');
if ($parent_1Home == 80) {
$showHomeOther .= "<div class=\"services-details\">\n <h2><a href=\"" . $hrefHome . "\" title=\"" . $nameHomeNewTitle . "\">" . $nameHome . "</a></h2>\n <div class=\"news-left\">\n <a href=\"" . $hrefHome . "\" title=\"" . $nameHomeNewTitle . "\">\n <img src=\"" . $serverName . $image209NewAll . "\" class=\"images-new\" alt=\"" . $nameHomeNewTitle . "\">\n </a>\n </div>\n <div class=\"news-right\">\n \n <p>" . $detailHome . "</p>\n </div>\n </div>";
} elseif ($parent_1Home == 395) {
$image_lar = $rowHomeOther['image_large'];
if ($image_lar != '') {
$image209NewAll = $image_lar;
}
$showHomeOther .= "<div class=\"lightbox-cnsp\"><a class=\"example-image-link\" href=\"" . $serverName . $image209NewAll . "\" title=\"{$nameHome}\" data-lightbox=\"example-set\" data-title=\"{$nameHome}\"><img class=\"example-image\" src=\"" . $serverName . $image209NewAll . "\" alt=\"{$nameHome}\"/></a></div>";
} elseif ($parent_1Home == 396) {
$showHomeOther .= "<div class=\"home-video\">\n <a class=\"video-play\" title=\"{$nameHome}\" href=\"" . $hrefHome . "\"><img alt=\"{$nameHome}\" src=\"" . $serverName . $image209NewAll . "\"><span class=\"play\"></span></a>\n </div>";
}
}
$readmore = "";
if ($rowHomeNam['id_code'] == 80) {
$nameHomeOther = "Tư vấn sản phẩm";
开发者ID:bestwishforyou95,项目名称:congnghemoitruong,代码行数:31,代码来源:home.php
示例5: getRecord
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);
$rowPhatHanhName = getRecord($tableCategoryNew, "id_code='" . $rowProductName['type_search'] . "' and " . $whereLang);
$nameDetail = $rowProductName['name'];
$idCodeDetail = $rowProductName['code'];
$detailShortDetail = substrNumber(strip_tags($rowProductName['detail_short']), '600', '...');
/** Kiểm tra bán hàng online
* Hiện thông tin sản phẩm
*/
if ($config_sales == 1) {
$codeProduct = $rowProductName['code'];
$strjson = $rowProductName['brief'];
$quantity = $rowProductName['quantity'];
$sales = $rowProductName['sale'];
if ($sales != '') {
$price = $sales;
$priceOld = $rowProductName['price'];
$priceCu = "Giá bìa: <del class=\"giacu\">" . @number_format($rowProductName['price'], 0) . " vnđ</del>";
$priceSave = "</br>Tiết kiệm: <span class=\"price-s\">" . @number_format($priceOld - $price, 0) . " vnđ {$indexdis}</span>";
} else {
$price = $rowProductName['price'];
开发者ID:bestwishforyou95,项目名称:saomai,代码行数:31,代码来源:product_detail.php
示例6: isset
$classes_good = isset($_POST['classes_good']) ? trim($_POST['classes_good']) : '';
$price = isset($_POST['txtPrice']) ? trim($_POST['txtPrice']) : '';
for ($e = 1; $e <= count($TYPE_SEARCH['TG_SCT']); $e++) {
$tg_scts1 = $_POST['TG_SCTS' . $e] != '' ? $e : 0;
$tg_sctc1 = $_POST['TG_SCTC' . $e] != '' ? $e : 0;
$tg_sctt1 = $_POST['TG_SCTT' . $e] != '' ? $e : 0;
$tg_scts2 .= $tg_scts1 . '_';
$tg_sctc2 .= $tg_sctc1 . '_';
$tg_sctt2 .= $tg_sctt1 . '_';
}
$tg_scts = substr($tg_scts2, 0, -1);
$tg_sctc = substr($tg_sctc2, 0, -1);
$tg_sctt = substr($tg_sctt2, 0, -1);
$detail_short = isset($_POST['txtDetailShort']) ? trim($_POST['txtDetailShort']) : '';
$keywords = removeUtf8($name);
$description = removeUtf8(substrNumber(strip_tags($detail_short), '160', ''));
if ($name == '') {
$errMsg = 'Bạn hãy nhập tiêu đề tin';
} else {
$errMsg = '';
}
if ($subject == '') {
$errMsg = CNAME;
} else {
$errMsg = '';
}
if ($phone == '') {
$errMsg = CFPLEARSEENTERYOURPHONENUMBER;
} else {
$errMsg = '';
}
开发者ID:bestwishforyou95,项目名称:congnghemoitruong,代码行数:31,代码来源:post_193.php
示例7: where
<?php
$showSeoRightLi = '';
$sqlSeoRight = "select *,DATE_FORMAT(date_added,'%d/%m/%Y') as dateAdd,DATE_FORMAT(last_modified,'%d/%m/%Y') as dateModify from {$tableNew} where (parent_1=364) and {$whereStatus} and {$whereLang} {$sortby} ";
$resultSeoRight = @mysql_query($sqlSeoRight, $conn);
while ($rowSeoRightNam = @mysql_fetch_array($resultSeoRight)) {
//Lay thong tin Home===========
$parent_1SeoRight = $rowSeoRightNam['parent_1'];
$idOderSeoRight = $rowSeoRightNam['id_code'];
$urlSeoRight = $rowSeoRightNam['url'];
$nameSeoRight = $rowSeoRightNam['name'];
$parentSeoRight = $rowSeoRightNam['parent'];
$nameSeoRightNewTitle = removeUtf8($nameSeoRight);
$image209SeoRightNewAll = $image209SeoRightNew != '' ? $image209SeoRightNew : "images/no_images.jpg";
$nameSeoRightAll = substrNumber(strip_tags($nameSeoRight), '40', '...');
$detailSeoRight = substrNumber(strip_tags($rowSeoRightNam['detail_short']), '200', '...');
$hrefSeoRightNew = $serverName . $url_c . "/";
@(include "inc/new/" . $parentSeoRight . $_lang . ".inc");
$hrefSeoRight = $serverName . $url_c . "/" . $urlSeoRight . "/";
$showSeoRightLi .= "<li><a href=\"{$hrefSeoRight}\" alt=\"{$nameSeoRight}\" title=\"{$nameSeoRight}\">{$nameSeoRight}</a></li>";
}
$showhtmlAdvAllLi = '';
@(include $folderInc . "/adv/2_adv" . $_lang . ".inc");
//banner
$asideright = "\n<!--<div class=\"right-col\">\n <div class=\"online-support\">\n <div class=\"online-support-1\">HỖ TRỢ TRỰC TUYẾN</div>\n " . $showHtmlSkypeLi . "\n </div>\n <div class=\"right-col-1 facebook-right\">\n\t\t<h2>OSAKA trên facebook</h2>\n\t\t<div class=\"facebook\">\n\t\t<iframe src=\"//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2F" . $facebookContact . "&width=255&height=250&show_faces=true&colorscheme=light&stream=false&border_color&header=true&appId=476964002349038\" class=\"facebook_right\" ></iframe></div>\n\t\t</div>\n <div class=\"right-col-1\">" . $showhtmlAdvAllLi2 . "</div>\n <div class=\"right-col-3\">\n <div class=\"online-support-4\">THỐNG KÊ TRUY CẬP</div>\n <p class=\"online-support-5\">Đang xem: " . $guest . " <br/>\n Lượt truy cập: " . $total_visits . "</p>\n </div>\n </div>-->\n\n <aside class=\"webthietke-r\">\n <div class=\"hotline\">\n <p class=\"hotline-t\">HOTLINE</p>\n <p class=\"phone-hot\">{$mienNam}</p>\n </div>\n <p class=\"Email\"><strong>Email: </strong>{$emailContact}</p>\n <div class=\"support-online\">\n <div class=\"support-t\"><h3>HỖ TRỢ TRỰC TUYẾN</h3></div>\n <div class=\"support-b\">\n {$showHtmlSkypeLiYahoo}\n </div>\n </div>\n <div class=\"google1\"><img src=\"" . $serverName . "images/googl+.png\"></div>\n <div class=\"knowledgeseo\">\n <div class=\"title-knowledgeseo\"><h3><a href=\"#\">KIẾN THỨC SEO</a></h3></div>\n <div class=\"knowledgeseo-b\">\n <ul>\n {$showSeoRightLi}\n </ul>\n </div>\n </div>\n </aside>\n";
开发者ID:bestwishforyou95,项目名称:thietkeweb,代码行数:25,代码来源:right.php
示例8: getRecord
$page = $_REQUEST['page'];
$row = getRecord($tableConfigId, "id=" . $oldid);
$code = $row['code'];
$home = $row['home'];
//if($defaulType['type_price']=='1') {
$price = $row['price'];
$sale = $row['sale'];
$oldprice = $row['oldprice'];
//}
$new = $row['new'];
$kg = $row['kg'];
$link = $row['link'];
$quantity = $row['quantity'];
$parent = $row['parent'];
$image = $row['image'];
$idMember = $row['id_member'] == '0' ? $idUserLevel : $row['id_member'];
//$image_large = $row['image_large'];
$price = $row['price'];
$sort = $row['sort'];
$idMemberAbc = $row['id_member'];
$type_search = $row['type_search'];
$parent2 = $row['parent2'];
$discounts = $row['discounts'];
//echo count($type_search);
} else {
$idMember = $idUserLevel;
$keywords = substrNumber(strip_tags($keywords1), '160', '');
$description = substrNumber(strip_tags($description1), '160', '');
$discounts = 0;
}
}
开发者ID:bestwishforyou95,项目名称:thietkeweb,代码行数:31,代码来源:module_new_m_insert.php
示例9: foreach
$oldid = @mysql_insert_id();
//lay id vua them vo
//lay theo ngon ngu
foreach ($conf as $ln => $j) {
$name1 = isset($_POST['txtName' . $ln]) ? trim($_POST['txtName' . $ln]) : '';
$name = chackInputSql(strip_tags($name1));
$urlCode = removeVietnamese($name, " ", "-");
//lay url tu dong
$address1 = isset($_POST['txtAddress' . $ln]) ? trim($_POST['txtAddress' . $ln]) : '';
$address = chackInputSql(strip_tags($address1));
$detail_short = isset($_POST['txtDetailShort' . $ln]) ? trim($_POST['txtDetailShort' . $ln]) : '';
//$detail_short = strip_tags($detail_short1,'<script><iframe>');
$detail = isset($_POST['txtDetail' . $ln]) ? trim($_POST['txtDetail' . $ln]) : '';
//$detail = strip_tags($detail1,'<script><iframe>');
$keywords = $name;
$description = substrNumber(strip_tags($detail_short), '160', '');
$fields_arr1 = array("id_code" => "{$oldid}", "parent" => "{$codeParent}", "parent_1" => "'{$parent_1}'", "id_member" => "'{$idMember}'", "name_member" => "'{$nameMember}'", "ldate" => "'{$ldate}'", "name" => "'{$name}'", "code" => "'{$code}'", "district" => "'{$district}'", "detail" => "'{$detail}'", "detail_short" => "'{$detail_short}'", "city" => "'{$city}'", "website" => "'{$website}'", "address" => "'{$address}'", "phone" => "'{$phone}'", "email" => "'{$email}'", "sex" => "'{$sex}'", "discount_start_date" => "'{$discount_start_date}'", "discount_end_date" => "'{$discount_end_date}'", "keywords" => "'{$keywords}'", "description" => "'{$description}'", "url" => "'{$urlCode}'", "last_modified" => "now()", "date_added" => "now()", "lang" => "'{$ln}'");
//$updateprofileId = update($tableNewId,$fields_profile,"id=".$oldid);
$updateprofile = insert($tableNew, $fields_arr1);
$rowoldidLn = getRecord($tableNew, 'id_code=' . $oldid . " and lang='" . $ln . "'");
$oldidLn = $rowoldidLn['id'];
//lay id vua them vo
//kiem tra url nay da ton tai hay chua
if (countRecord($tableNew, "url='" . $urlCode . "' and id<>" . $oldidLn) > 0) {
$urlCodeUp = $urlCode . "-" . $oldidLn;
$fields_arrUpdateUrl = array("url" => "'{$urlCodeUp}'");
$resultUrlUpdate = update($tableNew, $fields_arrUpdateUrl, "id=" . $oldidLn);
}
//ket thuc kiem tra url nay da ton tai hay chua
}
//lay theo ngon ngu
开发者ID:bestwishforyou95,项目名称:congnghemoitruong,代码行数:31,代码来源:about.php
示例10: elseif
$zingMeContact = $shareFTWY[3];
$youtubeContact = $shareFTWY[4];
$nameCompaner = $nameSkype;
$showHtmlSkypeLi .= "<li><a href=\"mailto:{$urlSkype}\" title=\"{$nameSkype}\"><img src=\"" . $serverName . "images/lienhe.png\" width=\"30\" height=\"30\" alt=\"{$nameSkype}\" /></a><a href=\"mailto:{$urlSkype}\" title=\"{$nameSkype}\"><span>Liên hệ: {$hotline}</span></a></li>";
} elseif ($parent_1Skype == '137') {
//yahoo
$hotlineYahoo = $rowSkypeNam['price'];
$showHtmlSkypeLiYahoo = "\n\t\t\t<li class=\"floatLeft\">Hỗ trợ với Yahoo: <a href=\"ymsgr:sendIM?{$urlSkype}\" title=\"{$nameSkype}\"><img src=\"" . $serverName . "images/yahoo-online.png\" alt=\"{$nameSkype}\"/></a></li>\n";
} elseif ($parent_1Skype == '138') {
//skype
$showHtmlSkypeLi1 .= "\t<li class=\"floatLeft\" style=\"margin-top: -12px;margin-left: 25px;\"><a href=\"skype:{$urlSkype}\" title=\"{$nameSkype}\"><img src=\"" . $serverName . "images/skype.png\" width=\"30\" height=\"30\" alt=\"{$nameSkype}\"/></a> <a href=\"skype:{$urlSkype}\" title=\"{$nameSkype}\"></a></li>";
} elseif ($parentSkype == '235') {
$idImage = $rowSkypeNam['image'];
$LinkSlide = $rowSkypeNam['link'];
$detailSlide = $rowSkypeNam['detail_short'];
$slideall .= "<a href=\"" . $LinkSlide . "\" title=\"" . $nameSkype . "\"><img src=\"" . $serverName . $idImage . "\" data-thumb=\"" . $serverName . $idImage . "\" alt=\"\" title=\"#htmlcaption{$i}\"/></a>\n\t\t ";
$slidedetail .= "<div id=\"htmlcaption{$i}\" class=\"nivo-html-caption\">\n <span class=\"slo-slide\">DU HỌC TẠI HOA KỲ VÀ CANADA: BẠN SẼ NHẬN HỌC BỔNG LÊN TỚI 70% HỌC PHÍ</span>\n <span class=\"red-slide\">DU HỌC HOA KỲ</span>\n </div>";
$i++;
} elseif ($idSkype == 417) {
$titlePageHome = $rowSkypeNam['title_t'];
$keywordsMetaHome = $rowSkypeNam['keywords'];
$descriptionMetaHome = $rowSkypeNam['description'];
} elseif ($idSkype == 491) {
$copyright = $rowSkypeNam['title_t'];
} elseif ($idSkype == 636) {
$nameHomePAll = substrNumber(strip_tags($nameHomeP), '50', '...');
$slogan = $rowSkypeNam['detail_short'];
$slogan2 = substrNumber(strip_tags($rowSkypeNam['detail']), '140', '...');
}
}
$slideallHtml = "\n<ul class=\"bxslider\">\n {$slideall}\n</ul>\n";
开发者ID:bestwishforyou95,项目名称:duhoctantien,代码行数:31,代码来源:slide.php
示例11: removeUtf8
$nameHomePHot = $rowHomePHotNam['name'];
$parentHomePHot = $rowHomePHotNam['parent'];
$quantityHot = $rowHomePHotNam['quantity'];
$discountsHot = $rowHomePHotNam['discounts'];
/** column "new": sản phẩm mới */
$idCodeALlHot = $rowHomePHotNam['code'];
$salesHot = $rowHomePHotNam['sale'];
$hotP = $rowHomePHotNam['hot'];
$newP = $rowHomePHotNam['new'];
$aboutP = $rowHomePHotNam['about'];
$nameHomePNewTitleHot = removeUtf8($nameHomePHot);
@(include "inc/new/" . $parentHomePHot . $_lang . ".inc");
$hrefHomePHot = $serverName . $url_c . "/" . $urlHomePHot . "/";
$image209NewHot = $rowHomePHotNam['image'];
$image209NewAllHot = $image209NewHot != '' ? $image209NewHot : "images/no_images.jpg";
$nameHomePAllHot = substrNumber(strip_tags($nameHomePHot), '30', '...');
$priceHot = $rowHomePHotNam['price'];
if ($salesHot != '') {
$priceHot = $salesHot;
$priceHomeHot = @number_format($priceHot, 0) . " <span>vnđ</span>";
} else {
$priceHomeHot = @number_format($priceHot, 0) . " <span>vnđ</span>";
//$priceHome = "<span>Liên hệ</span>";
}
if ($priceHot != '' and $priceHot != '0') {
$priceHomeHot = @number_format($priceHot, 0) . " <span>vnđ</span>";
} else {
$priceHomeHot = "Liên hệ";
}
$discountsHtml2 = '';
/** hiển thị hình giảm giá trên hình ảnh sản phẩm */
开发者ID:bestwishforyou95,项目名称:saomai,代码行数:31,代码来源:home.php
注:本文中的substrNumber函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论