var panel={
	xtype:'panel',border:false,padding:50,items:{
		width:400,
		url:js.getajaxurl('setsave',mode,dir),
		labelWidth:100,autoScroll:false,
		xtype:'rockform',border:false,items:[{
			name:'titlePost',allowBlank: false,fieldLabel:'系统标题'
		},{
			xtype: 'fieldcontainer',defaultType: 'textfield',layout:'hbox',items:[{
				fieldLabel:'<div style="height:40px;line-height:40px">系统logo图标</div>',xtype:'displayfield',value:'<div style="padding-top:0px" align="center"><img id="view_logo_'+rand+'-inputEl" style="border:1px #cccccc solid" src="images/icons40.png" height="40" width="40"><br><a onclick="return js.cropimg(\'logo_'+rand+'-inputEl\',\'om0oo0qs0oo0om0oo0kkq0kjl0sr0qk0oq0kkj0sr0mm0rq0sr0kkr0kkq0sq0kjm0kjn0kks0or0or09\',40,40)" href="javascript:" class="a">编辑</a></div>'
			},{
				name:'logoPost',id:'logo_'+rand+'',hidden:true
			}]
		}]
	}
}
function ainit(){
	var url = js.getajaxurl('getset',mode,dir);
	var form= objpanel.down('rockform');
	form.setmsg('读取中...', '#ff6600');
	$.get(url, function(da){
		form.setmsg('');
		var a = js.decode(da);
		form.setVal('title', a.title);
		form.setVal('logo', a.logo);
		get('view_logo_'+rand+'-inputEl').src = a.logo;
	});
}
return {
	panel:panel,
	init:function(){
		ainit();
	}
};