Day: March 26, 2016

MySQL: 获取表结构 Get a MySQL table structure with DESCRIBE

Example table The example table used in this post was created with the following SQL: CREATE TABLE `products` ( `product_id` int(10) unsigned NOT NULL auto_increment, `url` varchar(100) NOT NULL, `name` varchar(50) NOT NULL, `description` varchar(255) NOT NULL, `price` decimal(10,2) NOT NULL, `visible` tinyint(1) unsigned NOT NULL default '1', PR… Read More

Magento: 代替flash上传 How to disable Flash uploader in Magento (product images and WYSIWYG)

1. 替换产品页flash上传按钮 – 使用 Dull_Uploader How to disable Flash uploader in Magento 1.4.x – 1.9.x So what to do if one day you will discover that you simply cannot upload any images in your Magento administration panel due to Flash problem? Don’t panic, just follow these simple steps: 1. Find the Dull_Uploader (No Flash Image Uploader) module…

jQuery Zoom 图片聚焦或者点击放大A plugin to enlarge images on touch, click, or mouseover

下载: zoom-master 项目地址: https://github.com/jackmoore/zoom Compatible with: jQuery 1.7+ in Chrome, Firefox, Safari, Opera, Internet Explorer 7+. Install via NPM npm install jquery-zoom Instructions Zoom appends html inside the element it is assigned to, so that element has to be able to accept html, like <a>, <span>, <li>, <div… Read More