摘要: {template "content","header"} 调用根目录下phpcms\template\content\header文件{CHARSET} 字符集 (gbk或者utf-8){if isset($SEO['title']) && !empty($SEO['title'])} {$SEO['title']}{/if} {$SEO['site_title']} {$SEO['keyword']} {$SEO['description' 阅读全文
posted @ 2012-06-13 10:58 yanqing07 阅读(217) 评论(0) 推荐(0) 编辑
摘要: IE6中,设定一个div的背景图片时,无论将高度设定到多小,div高度总为4px。而IE7和FF中却正常。解决办法:设定font-size:1px; 阅读全文
posted @ 2012-05-29 10:23 yanqing07 阅读(171) 评论(0) 推荐(0) 编辑
摘要: //自定义扩展$.fn.center = function () { this.css("position","absolute"); this.css("top", ( $(window).height() - this.height() ) / 2+$(window).scrollTop() + "px"); this.css("left", ( $(window).width() - this.width() ) / 2+$(window).scrollLeft() + "px& 阅读全文
posted @ 2012-05-23 10:15 yanqing07 阅读(623) 评论(0) 推荐(0) 编辑
摘要: renderer可以格式化该列显示的数据格式或者按照你自定义的脚本显示最终数据样子(我目前是这么理解的) 先看下renderer: function()里的参数var cm = new Ext.grid.ColumnModel([ new Ext.grid.RowNumberer(), sm, { header:'商品名称', dataIndex: 'name', renderer: function(value, cellmeta, record, rowIndex, columnIndex, store)... 阅读全文
posted @ 2012-04-11 16:22 yanqing07 阅读(554) 评论(0) 推荐(0) 编辑
摘要: var grid = new Ext.grid.GridPanel({})var form = new Ext.form.FormPanel({ ... items:[{...},grid]})//如果你在FormPanel内有一个GridPanel组件,你需要将Gird选中条目也提交时,只要在form.getForm().submit({ params: {'countys[]': countys}, success:function(form, action){}, failure:function(form, action){}})//params就是你要额外提交的参数 阅读全文
posted @ 2012-04-08 10:58 yanqing07 阅读(638) 评论(0) 推荐(0) 编辑
摘要: 解决方法很简单,在ComboBox对象里设置hiddenName属性就可以了。 阅读全文
posted @ 2012-04-08 10:57 yanqing07 阅读(202) 评论(0) 推荐(0) 编辑
摘要: var sm = new Ext.grid.CheckboxSelectionModel({singleSelect:true}); //true单选;false单选虽然显示是复选框的样式,但是已经是只能单选了。 阅读全文
posted @ 2012-04-08 10:56 yanqing07 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 当你用clone(true)复制一个已有的datepicker事件的input时,新复制的input因为包含有datepicker的id,所以你无论在这个新的input里选择时间的时间都会出现在被复制的input里。解决方法:删除新input的id同时重新加载datepicker代码如下:$(selector).removeAttr('id')$(selector).datepicker('destroy').datepicker(); 阅读全文
posted @ 2012-04-08 10:53 yanqing07 阅读(262) 评论(0) 推荐(0) 编辑