当前位置: 首页>>代码示例>>PHP>>正文


PHP AZLib::plainText方法代码示例

本文整理汇总了PHP中AZLib::plainText方法的典型用法代码示例。如果您正苦于以下问题:PHP AZLib::plainText方法的具体用法?PHP AZLib::plainText怎么用?PHP AZLib::plainText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AZLib的用法示例。


在下文中一共展示了AZLib::plainText方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: draw

 function draw()
 {
     global $display;
     $item_ids = '';
     $item_news = array();
     $configs = @CGlobal::$configs['ItemNew']['conf_val'];
     if ($configs) {
         $configs = unserialize(stripslashes($configs));
         $title_new = $configs['title'];
         $item_ids = $configs['item_ids'];
     } else {
         $title_new = "SẢN PHẨM MỚI";
         $item_ids = '';
     }
     if ($item_ids) {
         $re = DB::query("SELECT * FROM item WHERE id IN({$item_ids}) AND status = 1 ORDER BY find_in_set(id,'{$item_ids}')");
         if ($re) {
             while ($product = mysql_fetch_assoc($re)) {
                 if ($product['img_url']) {
                     $product['image'] = AZLib::getImageThumb($product['img_url'], 160, 150, 0, $product['img_server']);
                 } else {
                     $product['image'] = "";
                     //"style/images/no-images-35x35.gif";
                 }
                 if (isset(CGlobal::$allCategories[$product['category_id']])) {
                     $product['url'] = WEB_DIR . CGlobal::$allCategories[$product['category_id']]['nice_name'] . "/p{$product['id']}/" . AZLib::safe_title($product['name']) . ".html";
                 } else {
                     $product['url'] = WEB_DIR . "p{$product['id']}/" . AZLib::safe_title($product['name']) . ".html";
                 }
                 $product['name'] = stripslashes($product['name']);
                 if ($product['list_brief'] == '') {
                     $product['list_brief'] = $product['brief'];
                 }
                 $product['list_brief'] = AZLib::remove_4_js(AZLib::plainText(AZLib::parseBBCode(html_entity_decode($product['list_brief'], ENT_QUOTES, "UTF-8"))));
                 $product['list_brief'] = preg_replace("/\\[([\\s]*[0-9]{1,2}[\\s]*)\\]/eis", " ", $product['list_brief']);
                 $product['list_brief'] = str_replace(array("'", "\""), array("", " "), $product['list_brief']);
                 $product['list_brief'] = AZLib::word_limit($product['list_brief'], 50, '');
                 $product['list_brief'] = '<b>' . str_replace(array("'", "\""), array("", " "), $product['name']) . '</b><br />' . $product['list_brief'];
                 $product['price_num'] = $product['price'];
                 $product['price'] = AZLib::getPrice($product['price'], $product['currency_id']);
                 $item_news[$product['id']] = $product;
             }
         }
     }
     if (User::is_admin()) {
         $display->add("is_admin", 1);
         $display->add("msg", $this->showFormErrorMessages(1));
         $display->add('begin_form', $this->beginForm(true, 'post', false, false, 1));
         $display->add('end_form', $this->endForm(true));
     }
     $display->add('title_new', $title_new);
     $display->add('item_ids', $item_ids);
     $display->add('item_news', $item_news);
     $display->output("ItemNew");
 }
开发者ID:duynhan07,项目名称:elink,代码行数:55,代码来源:ItemNew.php

示例2: descriptionText

 static function descriptionText($str)
 {
     $meta_desc = AZLib::post_db_parse_html($str);
     $meta_desc = AZLib::plainText(html_entity_decode($meta_desc, ENT_QUOTES, "UTF-8"));
     $meta_desc = str_replace('\'', '', $meta_desc);
     $meta_desc = str_replace('"', '', $meta_desc);
     return AZLib::delDoubleSpace(AZLib::trimSpace($meta_desc));
 }
开发者ID:duynhan07,项目名称:elink,代码行数:8,代码来源:AZLib.php

示例3: filter_link

 function filter_link($link, $text)
 {
     if ($text = AZLib::trimSpace(AZLib::plainText($text))) {
         $text = AZLib::strippedLink($text);
         if (strpos($link, 'http://enbac.com') === 0 || strpos($link, 'http://www.enbac.com') === 0 || strpos($link, 'enbac.com') === 0 || strpos($link, 'http://') === false) {
             return "<a href=\"{$link}\" target=\"_blank\">{$text}</a>";
         } else {
             if (strpos($link, 'http://blog.enbac.com') === 0 || strpos($link, 'blog.enbac.com') === 0 || strpos($link, 'http://') === false) {
                 return "<a href=\"{$link}\" target=\"_blank\">{$text}</a>";
             } else {
                 if (strpos($link, 'http://help.enbac.com') === 0 || strpos($link, 'help.enbac.com') === 0 || strpos($link, 'http://') === false) {
                     return "<a href=\"{$link}\" target=\"_blank\">{$text}</a>";
                 }
             }
         }
         return "<a href=\"#\" rel=\"nofollow\" target=\"_blank\">...</a>";
     }
     return '';
 }
开发者ID:duynhan07,项目名称:elink,代码行数:19,代码来源:ajax_personal.ajax.php

示例4: draw


//.........这里部分代码省略.........
     $sql = "SELECT * FROM item {$search_value} {$order_by}";
     $sql_count = "SELECT count(*) AS total_row FROM item {$search_value}";
     $total_item = (int) DB::fetch($sql_count, "total_row");
     if ($total_item) {
         $pagging = AZPagging::pagingSE($limit, $total_item, 50, 10, 'page_no', true, 'Sản phẩm', 'Trang');
         $sql .= $limit;
     }
     $re = DB::query($sql);
     if ($re) {
         $index_temp = 0;
         while ($item = mysql_fetch_assoc($re)) {
             //trạng thái sản phẩm:
             if ($item['status'] == -1) {
                 $item['bgcolor'] = "bgcolor=\"#FF6633\"";
             } elseif ($index_temp) {
                 $item['bgcolor'] = "bgcolor=\"#EFEFEF\"";
             } else {
                 $item['bgcolor'] = "";
             }
             $index_temp = 1 - $index_temp;
             $item['created_time'] = 'Đăng: <b>' . date("d/m/Y H:i", $item['created_time']) . '</b>';
             if ($item['del_time'] && $item['del_user'] && $item['status'] == -1) {
                 $item['del_time'] = '<br /><font color=red>Xoá: <b>' . date("d/m/Y H:i", $item['del_time']) . '</font></b> ( <a target="_blank" href="' . WEB_DIR . $item['del_user'] . '"><strong>' . $item['del_user'] . '</strong></a>)';
             } else {
                 $item['del_time'] = '';
             }
             if ($item['modify_user_name'] && $item['status'] != -1) {
                 $item['is_modify'] = '<br><font color=gray>Sửa: <b>' . date("d/m/Y H:i", $item['modify_time']) . '</font></b>';
                 $item['is_modify'] .= ' ( <a target="_blank" href="' . WEB_DIR . $item['modify_user_name'] . '"><strong>' . $item['modify_user_name'] . '</strong></a>)';
             } else {
                 $item['is_modify'] = '';
             }
             $item['name'] = AZLib::filter_title($item['name']);
             $item['description'] = AZLib::remove_4_js(AZLib::plainText($item['description']));
             $item['price'] = number_format($item['price'], 0, ',', '.');
             $item['price_out'] = number_format($item['price_out'], 0, ',', '.');
             $item['currency_option'] = AZLib::getOption(array(1 => "VNĐ", 2 => "\$"), $item['currency_id']);
             //$item['price']	=  "Giá bán: ".AZLib::priceFomart($item['price'],$item['currency_id']);
             //$item['price_out']	=  "<br /><font color='#999999'>Giá TT: ".AZLib::priceFomart($item['price_out'],$item['currency_id']).'</font>';
             if ($item['level_1_catid'] > 0) {
                 if (isset(CGlobal::$allCategories[$item['level_1_catid']])) {
                     $item['cat_name'] = '<b>' . CGlobal::$allCategories[$item['level_1_catid']]['name'] . ' (' . $item['level_1_catid'] . ')</b>';
                 } else {
                     $item['cat_name'] = '<b><font color=red>(' . $item['level_1_catid'] . ')</font></b>';
                 }
                 if ($item['category_id'] > 0 && $item['category_id'] != $item['level_1_catid'] || $item['cat_name'] == '') {
                     if (isset(CGlobal::$allCategories[$item['category_id']])) {
                         $item['cat_name'] .= ' - <i>' . CGlobal::$allCategories[$item['category_id']]['name'] . ' (' . $item['category_id'] . ')</i>';
                     } else {
                         $item['cat_name'] .= ' - <i><b><font color=red>(' . $item['category_id'] . ')</font></b></i>';
                     }
                 }
             }
             if ($item['img_url']) {
                 $item['image_src'] = 'http://' . CGlobal::$img_server[$item['img_server']] . $item['img_url'];
                 $item['image'] = AZLib::getImageThumb($item['img_url'], 110, 0, 1, $item["img_server"]);
             } else {
                 $item['image_src'] = '';
                 $item['image'] = '';
             }
             $item['href'] = WEB_DIR . AZRewrite::formatUrl('?page=item_detail&id=' . $item['id'] . '&ebname=' . AZLib::safe_title($item['name']));
             $item['edit'] = Url::build('post_item', array('cmd' => 'edit', 'id' => $item['id']));
             if ($item['status'] == -1) {
                 $item['del_link'] = Url::build_all(array('cmd', 'id'), 'cmd=del_forever&id=' . $item['id']);
                 $item['re_post'] = Url::build_all(array('cmd', 'id'), 'cmd=re_post&id=' . $item['id']);
             } elseif ($item['status'] == 2) {
开发者ID:duynhan07,项目名称:elink,代码行数:67,代码来源:ManageItem.php

示例5: draw

 function draw()
 {
     global $display;
     $this->beginForm(false, "POST", false, Url::build_current());
     $key_word = Url::get('key_word');
     $condition = " status=1";
     $display->add('key_word', $key_word);
     if ($key_word) {
         $key_word_s = '';
         $arr = explode(' ', $key_word);
         if ($arr) {
             foreach ($arr as $key) {
                 $key = trim($key);
                 if ($key != '') {
                     $key_word_s .= ($key_word_s == '' ? '+' : ' +') . "{$key}";
                 }
             }
         }
         if ($key_word_s != '') {
             $condition .= " AND MATCH(title, des) AGAINST ('{$key_word_s}' IN BOOLEAN MODE)";
         }
         //$condition .= ' AND (title LIKE "%'.$key_word.'%" OR des LIKE "%'.$key_word.'%")';
     }
     $total_item = DB::count('document', $condition);
     $limit = '';
     $paging = AZPagging::paging_list($limit, $total_item, 10, 10, 'page_no', '', true, 'Tài liệu', 'Trang');
     $display->add('paging', $paging);
     $condition = 'WHERE' . $condition;
     $documents = array();
     $sql = 'SELECT * FROM document ' . $condition . ' ORDER BY id DESC ' . $limit;
     $re = DB::query($sql);
     if ($re) {
         $i = 1;
         while ($row = mysql_fetch_assoc($re)) {
             $row['title'] = stripslashes($row['title']);
             $row['des'] = AZLib::remove_4_js(AZLib::plainText(html_entity_decode($row['des'], ENT_QUOTES, "UTF-8")));
             $row['des'] = str_replace(array("'", "\""), array("", " "), $row['des']);
             $row['des'] = AZLib::word_limit($row['des'], 200, '');
             if (++$i % 2) {
                 $row['bgcolor'] = "#FFFFFF";
             } else {
                 $row['bgcolor'] = "#D9D9D9";
             }
             $row['time_m'] = $row['time_m'] ? date("d/m/Y", $row['time_m']) : '';
             if (User::is_admin()) {
                 $row['change'] = AZLib::button(Url::build_current(array('cmd' => 'change', 'id' => $row['id'], "href" => urlencode(Url::build_all()))), 'style/images/unexam.gif', 'Disable');
                 $row['edit'] = AZLib::button(Url::build('document', array('cmd' => 'edit', 'id' => $row['id'], "href" => urlencode(Url::build_all()))), 'style/images/edit.gif', 'Sửa tài liệu');
                 $row['delete'] = AZLib::buttonDel(Url::build_current(array('cmd' => 'delete', 'id' => $row['id'], "href" => urlencode('?' . $_SERVER['QUERY_STRING']))), 'style/images/delete.gif', 'Sửa tài liệu');
             }
             if ($row['url']) {
                 $row['document_detail'] = $row['url'];
             } else {
                 $row['document_detail'] = WEB_DIR . "download-{$row['id']}/" . AZLib::safe_title($row['title']) . ".html";
             }
             $documents[$row['id']] = $row;
         }
     }
     $display->add('documents', $documents);
     if (User::is_admin()) {
         $display->add("is_admin", 1);
     }
     $display->output('DocumentList');
     $this->endForm();
 }
开发者ID:duynhan07,项目名称:elink,代码行数:64,代码来源:DocumentList.php

示例6: draw


//.........这里部分代码省略.........
                                             $link .= "&filter[{$get_gid}]={$get_fid}";
                                         }
                                     }
                                 }
                                 if (isset($this->filter_get[$fgid]) && $this->filter_get[$fgid] == $filter['id']) {
                                     if ($this->min) {
                                         $link .= "&min=" . $this->min;
                                     }
                                     if ($this->max) {
                                         $link .= "&max=" . $this->max;
                                     }
                                     $group_filter['filters'] = array($fid => array('link' => $link, 'name' => $filter['name'], 'count' => $pf_array[$fgid][$fid], 'remove' => 1));
                                     break;
                                 } else {
                                     $link .= "&filter[{$fgid}]={$filter['id']}";
                                     //$link = str_replace(array('?filter=&','?filter=','&filter='),array('?','',''),$link);
                                     if ($this->min) {
                                         $link .= "&min=" . $this->min;
                                     }
                                     if ($this->max) {
                                         $link .= "&max=" . $this->max;
                                     }
                                 }
                                 $group_filter['filters'][$fid] = array('link' => $link, 'name' => $filter['name'], 'count' => $pf_array[$fgid][$fid]);
                             }
                         }
                         if ($group_filter) {
                             $filter_groups[$fgid] = $group_filter;
                         }
                     }
                 }
             }
         }
         $display->add('url_filter', Url::build_current(array('mode', 'bcatid' => Build::$bcatid)));
         $display->add('cat_name', CGlobal::$allCategories[Build::$bcatid]['name']);
         if (isset(Build::$cats[Build::$bcatid]['next_id']) && Build::$cats[Build::$bcatid]['next_id']) {
             $display->add('next_url', Url::build_current(array('mode', 'bcatid' => Build::$cats[Build::$bcatid]['next_id'])));
         } else {
             $display->add('next_url', Url::build_current());
         }
         $display->add('recomend', str_replace(chr(13) . chr(10), "<br />", CGlobal::$allCategories[Build::$bcatid]['recomend']));
         $display->add('filter_groups', $filter_groups);
         $display->add('filter_price', $this->filter_price);
         $sql = 'SELECT * FROM item WHERE ';
         $where = '';
         $sql .= CGlobal::$item_condition . " ORDER BY price ASC";
         $total_row = DB::count("item", CGlobal::$item_condition);
         #######################################################################################
         #Paging
         $filter_get = Url::get('filter');
         $min = Url::get('min');
         $max = Url::get('max');
         $order = Url::get('order');
         $paging = AZPagging::paging_list($limit, $total_row, 10, 10, 'page_no', '', true, 'Linh kiện', 'Trang');
         $sql .= $limit;
         #Paging
         #######################################################################################
         $re = DB::query($sql);
         if ($re) {
             while ($item = mysql_fetch_assoc($re)) {
                 if (isset(CGlobal::$allCategories[$item['category_id']])) {
                     $item['href'] = WEB_DIR . CGlobal::$allCategories[$item['category_id']]['nice_name'] . "/p{$item['id']}/" . AZLib::safe_title($item['name']) . ".html";
                 } else {
                     $item['href'] = WEB_DIR . "p{$item['id']}/" . AZLib::safe_title($item['name']) . ".html";
                 }
                 $item['price'] = AZLib::convertCurrency($item['price'], $item['currency_id']);
                 if ($item['price']) {
                     $item['price'] = number_format($item['price'], 0, ',', '.') . " VNĐ";
                 } else {
                     $item['price'] = 'Liên hệ';
                 }
                 if ($item['list_brief'] == '') {
                     $item['list_brief'] = $item['brief'];
                 }
                 $item['list_brief'] = AZLib::remove_4_js(AZLib::plainText(AZLib::parseBBCode(html_entity_decode($item['list_brief'], ENT_QUOTES, "UTF-8"))));
                 $item['list_brief'] = preg_replace("/\\[([\\s]*[0-9]{1,2}[\\s]*)\\]/eis", " ", $item['list_brief']);
                 $item['list_brief'] = str_replace(array("'", "\""), array("", " "), $item['list_brief']);
                 $item['list_brief'] = AZLib::word_limit($item['list_brief'], 50, '');
                 $item['select'] = Url::build_current(array('bcatid' => $item['category_id'], 'mode', 'item_id' => $item['id']));
                 $items[$item['id']] = $item;
             }
         }
         $display->add('items', $items);
         $display->add('paging', $paging);
     }
     $display->add('bcats', Build::$cats);
     if (Build::$price) {
         $display->add('total_price', number_format(Build::$price, 0, ',', '.') . " VNĐ");
     }
     $display->add('bitems', Build::$items);
     $display->add('bcatid', Build::$bcatid);
     $display->add('cur_url', $_SERVER['REQUEST_URI']);
     $display->add("print_link", Url::open_popup(Url::build('build_print'), 1000, 800, false, false, false, false, false, 1, 1));
     $build_catids = @CGlobal::$configs['BuildCatIDs']['conf_val'];
     $display->add('build_catids', $build_catids);
     $display->add('is_admin', User::is_admin());
     $display->add('begin_form', $this->beginForm(false, 'post', false, false, 1));
     $display->add('end_form', $this->endForm(1));
     $display->output('Build');
 }
开发者ID:duynhan07,项目名称:elink,代码行数:101,代码来源:Build.php

示例7: processItem

 function processItem($item, $admin_item)
 {
     if (isset(CGlobal::$allCategories[$item['category_id']])) {
         $item['href'] = WEB_DIR . CGlobal::$allCategories[$item['category_id']]['nice_name'] . "/p{$item['id']}/" . AZLib::safe_title($item['name']) . ".html";
     } else {
         $item['href'] = WEB_DIR . "p{$item['id']}/" . AZLib::safe_title($item['name']) . ".html";
     }
     $item['modify_time'] = date('H:i | d.m.y', $item['modify_time']);
     $item['price'] = AZLib::convertCurrency($item['price'], $item['currency_id']);
     $item['price_out'] = AZLib::convertCurrency($item['price_out'], $item['currency_id']);
     $item['currency_id'] = 1;
     $item['price_num'] = (int) $item['price'];
     if ($item['price']) {
         $item['price'] = number_format($item['price'], 0, ',', '.');
     } else {
         $item['price'] = '';
     }
     $item['price_title'] = 'Giá bán';
     if ($item['price_out'] > 0) {
         $item['price_out'] = number_format($item['price_out'], 0, ',', '.') . ($item['currency_id'] == ' ' ? ' ' . CGlobal::$currency[$item['currency_id']] : '');
     } else {
         $item['price_out'] = '0';
     }
     //$item['price'] 			= AZLib::convertCurrency($item['price'],			$item['currency_id']);
     //$item['price_out'] 		= AZLib::convertCurrency($item['price_out'],		$item['currency_id']);
     if ($admin_item) {
         $item['description'] = AZLib::remove_4_js(AZLib::plainText(AZLib::parseBBCode(html_entity_decode($item['description'], ENT_QUOTES, "UTF-8"))));
         $item['description'] = preg_replace("/\\[([\\s]*[0-9]{1,2}[\\s]*)\\]/eis", " ", $item['description']);
         $item['description'] = str_replace(array("'", "\""), array("", " "), $item['description']);
         $item['description'] = AZLib::word_limit($item['description'], 200, '');
     }
     $item['name'] = AZLib::filter_title($item['name']);
     if ($item['img_url']) {
         $item['img_thumb_wl'] = AZLib::getImageThumb($item['img_url'], 180, 0, 1, $item['img_server']);
     } else {
         $item['img_url'] = '';
     }
     if (!CGlobal::$curLevel2Cat) {
         if (isset(CGlobal::$allCategories[$item['category_id']])) {
             $item['cat_name'] = CGlobal::$allCategories[$item['category_id']]['name'];
         } else {
             $item['cat_name'] = "ID: {$item['category_id']}";
         }
     }
     return $item;
 }
开发者ID:duynhan07,项目名称:elink,代码行数:46,代码来源:ListItem.php

示例8: load_shop_label


//.........这里部分代码省略.........
                    if ($item['img_url']) {
                        $item['image_url'] = AZLib::getImageThumb($item['img_url'], 200, 200, 0, $item['img_server']);
                    }
                    if (isset(CGlobal::$allCategories[$item['category_id']])) {
                        $item['href'] = WEB_DIR . AZRewrite::formatUrl('?page=item_detail&id=' . $item['id'] . '&ebname=' . AZLib::safe_title(AZLib::word_limit($item['name'], 12, '')) . '&nice_name=' . CGlobal::$allCategories[$item['category_id']]['nice_name']);
                    } else {
                        $item['href'] = WEB_DIR . AZRewrite::formatUrl('?page=item_detail&id=' . $item['id'] . '&ebname=' . AZLib::safe_title(AZLib::word_limit($item['name'], 12, '')));
                    }
                    $tooltip = '';
                    $tooltip .= 'Xem: ' . $item['read_count'] . ' - Phản hồi: ' . $item['reply_count'];
                    $item['time_label'] = '';
                    $up_time = date('H:i | ', $item['up_time']);
                    if (date('d.m.y', $item['up_time']) == date('d.m.y', TIME_NOW)) {
                        $up_time .= '<font color="green">H&#244;m nay</font>';
                    } else {
                        $up_time .= date('d.m.y', $item['up_time']);
                    }
                    //$item['created_time'] = 'đăng '.AZLib::duration_time($item['up_time']);
                    $item['created_time'] = $up_time;
                    if ($item['price']) {
                        $item['price'] = number_format($item['price'], 0, ',', '.');
                        $item['currency_id'] = CGlobal::$currency[$item['currency_id']];
                    } else {
                        $item['price'] = '';
                        $item['currency_id'] = '';
                    }
                    $item['price_title'] = 'Giá bán';
                    if ($item['price_out'] > 0) {
                        $item['price_out'] = number_format($item['price_out'], 0, ',', '.') . ($item['currency_id'] == ' ' ? ' ' . CGlobal::$currency[$item['currency_id']] : '');
                    } else {
                        $item['price_out'] = '0';
                    }
                    $item['no_base_source'] = AZLib::remove_4_js(str_replace(array("<br>", "<br />"), '', $item['brief']));
                    $item['description'] = AZLib::plainText(AZLib::parseBBCode(html_entity_decode($item['description'], ENT_QUOTES, "UTF-8")));
                    $item['description'] = preg_replace("/\\[([\\s]*[0-9]{1,2}[\\s]*)\\]/eis", " ", $item['description']);
                    $item['description'] = str_replace(array("'", "\""), array("", " "), $item['description']);
                    $item['description'] = AZLib::word_limit($item['description'], 250, '');
                    /* if($item['sapo']!=''){
                       $item['brief'] = $item['sapo'];
                       $item['brief'] = AZLib::subString(AZLib::filter_title($item['brief']),0,255,true);
                       $item['brief'] = AZLib::word_limit($item['brief'],30,'');
                       }
                       else{
                       $item['brief'] = String::display_sort_title($item['description'],30);
                       } */
                    $item['brief'] = '';
                    $item['parent_name'] = '';
                    if (isset(CGlobal::$allCategories[$item['category_id']]) && CGlobal::$allCategories[$item['category_id']]['parent_id']) {
                        $parent_id = CGlobal::$allCategories[$item['category_id']]['parent_id'];
                        if (isset(CGlobal::$allCategories[$parent_id])) {
                            $item['parent_name'] = CGlobal::$allCategories[$parent_id]['name'] . ' - ';
                        }
                    }
                    if (isset(CGlobal::$allCategories[$item['category_id']]['name'])) {
                        $item['category_name'] = $item['parent_name'] . CGlobal::$allCategories[$item['category_id']]['name'];
                    } else {
                        $item['category'] = '';
                        $item['category_name'] = '';
                    }
                    $item['safe_title'] = AZLib::safe_title($item['parent_name'] . $item['category_name']);
                    $item['category_href'] = WEB_DIR . AZRewrite::formatUrl('?page=list_detail&category_id=' . $item['category_id'] . '&ebname=' . $item['safe_title']);
                    $item['name'] = AZLib::subString(AZLib::filter_title($item['name']), 0, 115, true);
                    $item['name'] = AZLib::word_limit($item['name'], 12, '');
                    $item['user_name'] = $item['user_name'];
                    $item['profile_url'] = WEB_DIR . $item['user_name'];
                    $item['city'] = CGlobal::$provinces[$item['province_id']]['name'];
开发者ID:duynhan07,项目名称:elink,代码行数:67,代码来源:ajax_shop.ajax.php


注:本文中的AZLib::plainText方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。