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


PHP AZLib::getImageThumbMax方法代码示例

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


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

示例1: draw

 function draw()
 {
     global $display;
     if (User::is_admin()) {
         $display->add("is_admin", 1);
     }
     $display->add('url_home', WEB_DIR);
     $display->add('time_create', News::displayTime($this->news['time_created']));
     $display->add('title', stripslashes($this->news['title']));
     $display->add('brief', stripslashes($this->news['brief']));
     $display->add('content', stripslashes($this->news['content']));
     $display->add('pen_name', stripslashes($this->news['pen_name']));
     if ($this->news['source'] != '') {
         $display->add('source', " ( theo <i>" . stripslashes($this->news['source']) . "</i> )");
     } else {
         $display->add('source', "");
     }
     if (User::have_permit(ADMIN_NEWS)) {
         $display->add('admin_link', News::admin_link($this->news));
     }
     if ($this->news['image']) {
         $display->add('img_full_url', "http://" . CGlobal::$img_server[$this->news['img_server']] . $this->news['image']);
         $display->add('img_max_path', AZLib::getImageThumbMax($this->news['image'], '', 1, $this->news['img_server']));
         $display->add('image_title', stripslashes($this->news['image_title']));
         $display->add('image_url', AZLib::getImageThumb($this->news['image'], 180, 0, 0, $this->news['img_server']));
         //AZLib::safe_title($this->news['title']))
         $display->add('image_oringin', $this->news['image']);
     }
     $news_cart = CGlobal::$allNewsCategories[$this->news['news_catid']];
     $display->add('news_home_link', Url::build('news'));
     if ($news_cart) {
         $display->add('cat_link', Url::build('news', array('news_catid' => $news_cart['id'], 'azname' => AZLib::safe_title($news_cart['name']))));
         $display->add('cat_name', $news_cart['name']);
     }
     $display->add("share_title", urlencode(CGlobal::$website_title));
     $display->add("share_url", "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
     $display->add("share_des", urlencode(trim(CGlobal::$meta_desc)));
     $display->output("NewsDetail");
 }
开发者ID:duynhan07,项目名称:elink,代码行数:39,代码来源:NewsDetail.php

示例2: draw


//.........这里部分代码省略.........
         }
         if ($created_time_to) {
             $search_value .= ($search_value != '' ? ' AND ' : ' WHERE') . ' time <= ' . $created_time_to;
         }
     }
     $display->add('created_time_from', $current_time_from);
     $display->add('created_time_to', $current_time_to);
     $item_per_page = 120;
     $sql_count = 'SELECT count(*) AS total_img FROM item_image ' . $search_value;
     $total = DB::fetch($sql_count, 'total_img', 0);
     $items = array();
     if ($total) {
         $limit = '';
         $paging = AZPagging::pagingSE($limit, $total, $item_per_page, 10, 'page_no', true);
         $sql = 'SELECT id,img_server, img_url,item_id, title, des, time, user_name, user_id, img_server FROM `item_image`';
         $sql .= $search_value . ' ORDER BY id ASC ' . $limit;
         $item_ids = '';
         $re = DB::query($sql);
         if ($re) {
             while ($row = mysql_fetch_assoc($re)) {
                 $row['link_gallery'] = WEB_DIR . AZRewrite::formatUrl('?page=gallery&user_id=' . $row['user_id'] . '&year=' . date('Y', $row['time']) . '&month=' . (int) date('m', $row['time']) . '&day=' . (int) date('d', $row['time']));
                 if (date('d.m.y', $row['time']) == date('d.m.y', TIME_NOW)) {
                     $row['time'] = date('H:i', $row['time']);
                 } elseif (date('y', $row['time']) == date('y', TIME_NOW)) {
                     $row['time'] = date('d/m H:i', $row['time']);
                 } else {
                     $row['time'] = date('d/m/y H:i', $row['time']);
                 }
                 //if(!eregi('/',$row['img_url'])){
                 //	$row['link_img']='http://'.CGlobal::$img_server[$row['img_server']].'uploaded/items/'.$row['img_url'];
                 //}
                 //else{
                 $row['link_img'] = 'http://' . CGlobal::$img_server[$row['img_server']] . $row['img_url'];
                 //}
                 if ($row['item_id']) {
                     $item_ids .= ($item_ids ? ',' : '') . $row['item_id'];
                     if (isset($row['name'])) {
                         $row['item_link'] = WEB_DIR . AZRewrite::formatUrl("?page=item_detail&id={$row['item_id']}&ebname=" . AZLib::safe_title($row['name']));
                         if (date('d.m.y', $row['created_time']) == date('d.m.y', TIME_NOW)) {
                             $row['created_time'] = date('H:i', $row['created_time']);
                         } elseif (date('y', $row['created_time']) == date('y', TIME_NOW)) {
                             $row['created_time'] = date('d/m H:i', $row['created_time']);
                         } else {
                             $row['created_time'] = date('d/m/y H:i', $row['created_time']);
                         }
                     } else {
                         $row['item_link'] = WEB_DIR . AZRewrite::formatUrl("?page=item_detail&id={$row['item_id']}");
                         $row['created_time'] = '';
                     }
                     $row['title'] = stripslashes($row['title']);
                 } else {
                     $row['title'] = stripslashes($row['des']);
                     $row['created_time'] = '';
                     $row['item_link'] = '';
                 }
                 $row['image_thumb'] = AZLib::getImageThumb($row['img_url'], 110, 0, 1, $row["img_server"]);
                 $row['image_max'] = AZLib::getImageThumbMax($row['img_url'], $row['title'], 1, $row["img_server"]);
                 $row['images_url_root'] = 'http://' . CGlobal::$img_server[$row['img_server']];
                 $row['del_link'] = Url::build_all(array('chk_id', 'del_all', 'cmd', 'id'), 'cmd=delete&id=' . $row['id']);
                 $items[$row['id']] = $row;
             }
             if ($item_ids) {
                 $all_items = array();
                 $sql = "SELECT id, name, created_time FROM item WHERE id IN({$item_ids})";
                 $re = DB::query($sql);
                 if ($re) {
                     while ($item = mysql_fetch_assoc($re)) {
                         $all_items[$item['id']] = $item;
                     }
                 }
                 foreach ($items as &$item_img) {
                     if ($item_img['item_id'] && isset($all_items[$item_img['item_id']])) {
                         $item_img['item_link'] = WEB_DIR . AZRewrite::formatUrl("?page=item_detail&id={$item_img['item_id']}&ebname=" . AZLib::safe_title($all_items[$item_img['item_id']]['name']));
                         if (date('d.m.y', $all_items[$item_img['item_id']]['created_time']) == date('d.m.y', TIME_NOW)) {
                             $item_img['created_time'] = date('H:i', $all_items[$item_img['item_id']]['created_time']);
                         } elseif (date('y', $all_items[$item_img['item_id']]['created_time']) == date('y', TIME_NOW)) {
                             $item_img['created_time'] = date('d/m H:i', $all_items[$item_img['item_id']]['created_time']);
                         } else {
                             $item_img['created_time'] = date('d/m/y H:i', $all_items[$item_img['item_id']]['created_time']);
                         }
                     } else {
                         $item_img['item_link'] = '';
                         $item_img['created_time'] = '';
                     }
                 }
             }
         }
     } else {
         $paging = '';
     }
     AZLib::my_setcookie("page_img_id", Url::get("page_no") != "" ? intval(Url::get("page_no")) : 1, 60 * 60 * 24 * 365 + TIME_NOW);
     $display->add("uri", CGlobal::$request_uri);
     $display->add("images_url_root", 'http://' . CGlobal::$img_server[IMAGE_SERVER_NO]);
     $display->add('user_name', Url::get('user_name'));
     $display->add('item_title', Url::get('item_title'));
     $display->add('items', $items);
     $display->add('paging', $paging);
     $display->output('ManageImage');
     $this->endForm();
 }
开发者ID:duynhan07,项目名称:elink,代码行数:101,代码来源:ManageImage.php

示例3: draw

 function draw()
 {
     if (Item::$item && isset(Item::$item['display']) && Item::$item['display']) {
         global $display;
         AZLib::getCats();
         $item_detail = Item::$item;
         $item_detail['name_url'] = AZLib::safe_title($item_detail['name']);
         //rewrite URL
         $item_detail['modify_time'] = date('Y') != date('Y', $item_detail['modify_time']) ? date('H:i, d/m/Y', $item_detail['modify_time']) : date('H:i, d/m', $item_detail['modify_time']);
         $item_detail['created_time'] = date('Y') != date('Y', $item_detail['created_time']) ? date('H:i, d/m/Y', $item_detail['created_time']) : date('H:i, d/m', $item_detail['created_time']);
         $item_detail['price'] = AZLib::convertCurrency($item_detail['price'], $item_detail['currency_id']);
         $item_detail['price_out'] = AZLib::convertCurrency($item_detail['price_out'], $item_detail['currency_id']);
         if (isset(CGlobal::$allCategories[$item_detail['category_id']])) {
             $item_detail['item_url'] = WEB_DIR . AZRewrite::formatUrl('?page=item_detail&id=' . $item_detail['id'] . '&ebname=' . AZLib::safe_title($item_detail['name']) . '&nice_name=' . CGlobal::$allCategories[$item_detail['category_id']]['nice_name']);
         } else {
             $item_detail['item_url'] = WEB_DIR . AZRewrite::formatUrl('?page=item_detail&id=' . $item_detail['id'] . '&ebname=' . AZLib::safe_title($item_detail['name']));
         }
         //$display->add('currency_id',$item_detail['price']?CGlobal::$currency[$item_detail['currency_id']]:'');
         $display->add('currency_id', $item_detail['price'] ? 'VNĐ' : '');
         $item_detail['price'] = $item_detail['price'] ? number_format($item_detail['price'], 0, ',', '.') : 'Liên hệ';
         $item_detail['price_out'] = $item_detail['price_out'] ? number_format($item_detail['price_out'], 0, ',', '.') : '';
         //item images
         $display->add("item_images", $item_detail['images']);
         $display->add("count_img", count($item_detail['images']));
         $display->add("images_url_root", isset($item_detail['img_server']) ? 'http://' . CGlobal::$img_server[(int) $item_detail['img_server']] : '');
         //END item images
         $this->admin_links($item_detail);
         //Highlight keyword search
         $this->highlight_searchword($item_detail);
         //END Highlight keyword search
         $show_error = false;
         if ($item_detail['status'] == 2) {
             $show_error = true;
             if (User::have_permit(ADMIN_ITEM)) {
                 $display->add('modify_by', ' (bởi <b>' . $item_detail['modify_user_name'] . '</b> lúc <b>' . date('d/m/Y H:i', $item_detail['modify_time']) . '</b>)');
             }
         }
         $display->add("show_error", $show_error);
         $link_item = "p" . $item_detail['id'] . "/" . AZLib::safe_title($item_detail['name']) . ".html";
         if (isset(CGlobal::$allCategories[$item_detail['category_id']])) {
             $link_item = CGlobal::$allCategories[$item_detail['category_id']]['nice_name'] . '/' . $link_item;
         }
         $first_img = false;
         if (Item::$item['images']) {
             foreach (Item::$item['images'] as $img) {
                 $first_img = $img;
                 break;
             }
         } elseif (Item::$item['img_url']) {
             $first_img['i'] = 1;
             $first_img['img_server'] = Item::$item['img_server'];
             $first_img['thumb316'] = AZLib::getImageThumb(Item::$item['img_url'], 316, 0, 0, Item::$item['img_server']);
             $first_img['img_full_url'] = "http://" . CGlobal::$img_server[Item::$item['img_server']] . Item::$item['img_url'];
             $first_img['max_path'] = AZLib::getImageThumbMax(Item::$item['img_url'], '', 1, Item::$item['img_server']);
         }
         $display->add('first_img', $first_img);
         if ($item_detail['status'] == 1) {
             $display->add('json_item', $item_detail['id']);
         } else {
             $display->add('json_item', 0);
         }
         //end list ly do khoa topic
         //for view images
         $display->add("request_uri", CGlobal::$request_uri);
         //Current url
         $display->add("url_flash_xml", urlencode('ebxml.php?act=item&code=tiltviewer_gallery&item_id=' . $item_detail['id']));
         //END for view images
         $display->add("msg", $this->showFormErrorMessages(1, "THÔNG BÁO"));
         $arr = $this->process_description($item_detail);
         $item_detail['brief'] = $arr['filter_brief'];
         $item_detail['description'] = $arr['filter_des'];
         /*
         			$item_detail['description'] = preg_replace('#(<[/]?img.*>)#iU', '', html_entity_decode($item_detail['description']));
         			$item_detail['description'] = preg_replace("/\\[([\s]*[0-9]{1,2}[\s]*)\]/eis", "\$this->embeded('$1')",$item_detail['description']);
         			
         			$item_detail['description'] = preg_replace('/<a[\s]*(.*)[\s]*href=[\'"](.*)[\'"][\s]*[^>]*[\s]*>(.*)<\/a>/eisU', "\$this->filter_link('$2','$3')",   $item_detail['description']);*/
         $display->add('is_admin', (int) (!User::is_block() && User::have_permit(ADMIN_USER)));
         $display->add("item_info", $item_detail);
         $display->add("item_id", $item_detail['id']);
         //$display->add("share_url", urlencode("http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']));
         $cat_url = '';
         $cat_name = '';
         if (CGlobal::$curLevel2Cat) {
             $cat_url = "c" . CGlobal::$curLevel2Cat['id'] . "/" . CGlobal::$curMainCat['ebname'] . "-" . CGlobal::$curLevel2Cat['ebname'];
             $cat_name = CGlobal::$curLevel2Cat['name'];
         } elseif (CGlobal::$curMainCat) {
             $cat_url = "c" . CGlobal::$curMainCat['id'] . "/" . CGlobal::$curMainCat['ebname'];
             $cat_name = CGlobal::$curMainCat['name'];
         }
         $display->add("cat_url", $cat_url);
         $display->add("cat_name", $cat_name);
         $display->add("cat_name", $cat_name);
         if (isset($_SERVER['REQUEST_URI'])) {
             $display->add("http_referer", $_SERVER['REQUEST_URI']);
         } else {
             $display->add("http_referer", "");
         }
         /*//if(isset($_SERVER['HTTP_REFERER']) && eregi('enbac.com/c', $_SERVER['HTTP_REFERER'])){
         		if(isset($_SERVER['HTTP_REFERER']) && eregi(WEB_ROOT.'c', $_SERVER['HTTP_REFERER'])){
         			$display->add("ref_url", $_SERVER['HTTP_REFERER']);
//.........这里部分代码省略.........
开发者ID:duynhan07,项目名称:elink,代码行数:101,代码来源:ItemDetail.php

示例4: draw

 function draw()
 {
     global $display;
     //For ajax_upload form
     $display->add('url_gallery', WEB_ROOT . AZRewrite::formatUrl('?page=gallery&is_popup=1&user_id=' . User::id()));
     //$display->add('no_img_upload',AZLib::getImageSrc('',100,100));
     $display->add('no_img_upload', $this->no_image);
     // Keep item avatar when update false
     if (isset($_POST["avatar_img_server"]) && $_POST["avatar_img_server"]) {
         $avatar['img_server'] = $_POST["avatar_img_server"];
         $avatar['img_url'] = $_POST["avatar_img_url"];
         $avatar['thumb280_280'] = AZLib::getImageThumb($_POST["avatar_img_url"], 280, 280, 0, $_POST["avatar_img_server"]);
         $avatar['max_path'] = AZLib::getImageThumbMax($_POST["avatar_img_url"], 'thumb_max', 1, $_POST["avatar_img_server"]);
         $display->add('avatarInfo', $avatar);
         $display->add('avatar', json_encode($avatar));
     }
     $display->add('item_user_id', User::id());
     $display->add('user_name', User::user_name());
     $display->add('user_id', User::id());
     $display->add('is_can_edit', (int) User::have_permit(ADMIN_ITEM));
     $display->add('browser_is_ie', $this->browser_is_ie);
     $display->output('ajax_upload');
     //For ajax_upload form
     $this->beginForm(true);
     $display->add('max_image_page', $this->max_image_page);
     $display->add('images_per_page', $this->images_per_page);
     $display->add('post_item_images', $this->item_images);
     $display->add('jsImages', json_encode($this->jsImages));
     $display->add('first_combo', (int) Url::get('first_combo'));
     $display->add('second_combo', (int) Url::get('second_combo'));
     //$display->add('category_tree',json_encode(AZLib::getCategoriesTree(0,true)));
     $display->add('category_tree', json_encode(AZLib::getCategoriesTree(true)));
     $display->add('currency_tree', json_encode(CGlobal::$currency));
     $display->add('az_filters', json_encode(CGlobal::$filters));
     $display->add('image_path', 'http://' . IMAGE_PATH);
     $display->add('img_cur_server', IMAGE_SERVER_NO);
     $display->add('img_server', json_encode(CGlobal::$img_server));
     $display->add('no_img', $this->no_image);
     $display->add('multi_upload', User::have_permit(ADMIN_ITEM));
     $display->add('post_img', $display->output('post_img', true));
     $display->add('currency_id_option', AZLib::getOption(CGlobal::$currency, Url::get('currency_id', 1)));
     $display->add('msg', $this->showFormErrorMessages(1));
     $display->add('mode', "ĐĂNG");
     $display->add('sku', Url::get('sku'));
     $display->add('name', stripslashes(Url::get('name')));
     $display->add('offer', stripslashes(Url::get('offer')));
     $display->add('brief', stripslashes(Url::get('brief')));
     $display->add('item_description', stripslashes(Url::get('item_description')));
     $display->add('price', number_format(Url::cdouble(Url::get('price')), 0, ',', '.'));
     $display->add('price', number_format(Url::cdouble(Url::get('price')), 0, ',', '.'));
     $display->add('price_out', number_format(Url::cdouble(Url::get('price_out')), 0, ',', '.'));
     $display->add('quantity', number_format(Url::cdouble(Url::get('quantity')), 0, ',', '.'));
     $display->add('item_order', (int) Url::get('item_order'));
     $display->add('made_in', Url::get('made_in'));
     $display->add('warranty', Url::get('warranty'));
     $display->add('add_for_user', User::have_permit(ADMIN_ITEM));
     $display->output('post_sale');
     $this->endForm();
 }
开发者ID:duynhan07,项目名称:elink,代码行数:59,代码来源:PostItemForm.php

示例5: get_item_images

 static function get_item_images($item_id, $del_cache = 0)
 {
     $sql = 'SELECT * FROM item_image WHERE item_id = ' . $item_id . ' ORDER BY position ';
     //$item_images = AZCache::cache($sql,__LINE__.__FILE__,1,0,'','',$del_cache);
     $item_images = AZCache::cache($sql, __LINE__ . __FILE__, 0, 0, '', '', $del_cache);
     if (!$del_cache) {
         $_item_images = false;
         if ($item_images) {
             foreach ($item_images as $value) {
                 if ($value && $value['img_url']) {
                     $i = $value['position'];
                     $title = str_replace(array('"', "'"), array('&quot;', '\\\''), stripslashes($value['title']));
                     $_item_images[$i] = $value;
                     $_item_images[$i]['i'] = $i;
                     $_item_images[$i]['id'] = $value['id'];
                     $_item_images[$i]['title'] = $title;
                     $_item_images[$i]['img_server'] = $value['img_server'];
                     $_item_images[$i]['thumb316'] = AZLib::getImageThumb($value['img_url'], 316, 0, 0, $value['img_server']);
                     $_item_images[$i]['thumb80_80'] = AZLib::getImageThumb($value['img_url'], 80, 80, 0, $value['img_server']);
                     $_item_images[$i]['img_full_url'] = "http://" . CGlobal::$img_server[$value['img_server']] . $value['img_url'];
                     $_item_images[$i]['max_path'] = AZLib::getImageThumbMax($value['img_url'], $title, 1, $value['img_server']);
                 }
             }
             unset($item_images);
             return $_item_images;
         }
         return array();
     }
     return true;
 }
开发者ID:duynhan07,项目名称:elink,代码行数:30,代码来源:Item.php

示例6: draw

 function draw()
 {
     global $display;
     $this->item['price'] = AZLib::convertCurrency($this->item['price'], $this->item['currency_id']);
     $this->item['price_out'] = AZLib::convertCurrency($this->item['price_out'], $this->item['currency_id']);
     $this->item['currency_id'] = 1;
     //For ajax_upload form
     $display->add('url_gallery', WEB_ROOT . AZRewrite::formatUrl('?page=gallery&is_popup=1&user_id=' . $this->item['user_id']));
     ////$display->add('no_img_upload',AZLib::getImageSrc('',100,100));
     $display->add('browser_is_ie', $this->browser_is_ie);
     $display->add('no_img_upload', $this->no_image);
     $display->add('user_id', User::id());
     $display->add('item_user_id', $this->item['user_id']);
     $display->add('is_can_edit', (int) User::have_permit(ADMIN_ITEM));
     $display->add('user_name', $this->item['user_name']);
     if (isset($_POST["avatar_img_server"])) {
         $avatar['img_server'] = $_POST["avatar_img_server"];
         $avatar['img_url'] = $_POST["avatar_img_url"];
         $avatar['thumb280_280'] = AZLib::getImageThumb($_POST["avatar_img_url"], 280, 280, 0, $_POST["avatar_img_server"]);
         $avatar['max_path'] = AZLib::getImageThumbMax($_POST["avatar_img_url"], 'thumb_max', 1, $_POST["avatar_img_server"]);
         $display->add('avatarInfo', $avatar);
         $display->add('avatar', json_encode($avatar));
     } elseif ($this->item['img_url']) {
         $avatar['img_server'] = $this->item['img_server'];
         $avatar['img_url'] = $this->item['img_url'];
         $avatar['thumb280_280'] = AZLib::getImageThumb($this->item['img_url'], 280, 280, 0, $this->item['img_server']);
         $avatar['max_path'] = AZLib::getImageThumbMax($this->item['img_url'], $this->item['name'], 1, $this->item['img_server']);
         $display->add('avatarInfo', $avatar);
         $display->add('avatar', json_encode($avatar));
     }
     $display->output('ajax_upload');
     //For ajax_upload form
     $this->beginForm(true);
     //$display->add('img_fnkjgk',json_encode($bakjgkj));
     $display->add('max_image_page', $this->max_image_page);
     $display->add('images_per_page', $this->images_per_page);
     $display->add('post_item_images', $this->item_images);
     $display->add('jsImages', json_encode($this->jsImages));
     if ($this->item['level_1_catid'] != $this->item['category_id']) {
         $first = $this->item['level_1_catid'];
         $second = $this->item['category_id'];
     } else {
         $first = $this->item['category_id'];
         $second = 0;
     }
     $display->add('first_combo', (int) Url::get('first_combo', $first));
     $display->add('second_combo', (int) Url::get('second_combo', $second));
     ///$display->add('category_tree',json_encode(AZLib::getCategoriesTree(0,true)));
     $display->add('category_tree', json_encode(AZLib::getCategoriesTree(true)));
     $display->add('currency_tree', json_encode(CGlobal::$currency));
     $display->add('az_filters', json_encode(CGlobal::$filters));
     $display->add('item_filters', $this->item['filter_ids']);
     $display->add('image_path', 'http://' . IMAGE_PATH);
     $display->add('img_cur_server', IMAGE_SERVER_NO);
     $display->add('img_server', json_encode(CGlobal::$img_server));
     $display->add('multi_upload', User::have_permit(ADMIN_ITEM));
     $display->add('no_img', $this->no_image);
     $display->add('post_img', $display->output('post_img', true));
     $display->add('currency_id_option', AZLib::getOption(CGlobal::$currency, Url::get('currency_id', $this->item['currency_id'])));
     $display->add('msg', $this->showFormErrorMessages(1));
     $display->add('name', stripslashes(Url::get('name', $this->item['name'])));
     $display->add('sku', Url::get('sku', $this->item['sku']));
     $display->add('offer', stripslashes(Url::get('offer', $this->item['offer'])));
     if (isset(CGlobal::$allCategories[$this->item['category_id']])) {
         $item_href = WEB_DIR . CGlobal::$allCategories[$this->item['category_id']]['nice_name'] . "/p{$this->item['id']}/" . AZLib::safe_title($this->item['name']) . ".html";
     } else {
         $item_href = WEB_DIR . "p{$this->item['id']}/" . AZLib::safe_title($this->item['name']) . ".html";
     }
     $display->add('item_href', $item_href);
     $display->add('name_length', 120 - mb_strlen(AZLib::stripUnicode(Url::get('name', $this->item['name'])), "UTF-8"));
     $display->add('brief', stripslashes(Url::get('brief', $this->item['brief'])));
     $display->add('item_description', stripslashes(Url::get('item_description', $this->item['description'])));
     $display->add('mode', "CẬP NHẬT");
     $display->add('price', number_format(Url::get('price', $this->item['price']), 0, ',', '.'));
     $display->add('price_out', number_format(Url::get('price_out', $this->item['price_out']), 0, ',', '.'));
     $display->add('quantity', number_format(Url::cdouble(Url::get('quantity', $this->item['quantity'])), 0, ',', '.'));
     $display->add('item_order', (int) Url::get('item_order', $this->item['item_order']));
     $display->add('made_in', Url::get('made_in', $this->item['made_in']));
     $display->add('warranty', Url::get('warranty', $this->item['warranty']));
     $display->output('post_sale');
     $this->endForm();
 }
开发者ID:duynhan07,项目名称:elink,代码行数:82,代码来源:EditItemForm.php


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