Pman.Dialog.AdminWatch.bjs
[Pman.Admin] / compiled / Admin.js
index dccbb07..8f6cfb9 100644 (file)
@@ -206,7 +206,7 @@ this.tab=C.add(B,new Ext.NestedLayoutPanel(this.layout,{title:_T["d4650cf6ae2be8
 Pman.Dialog.Groups={dialog:false,form:false,id:"Group",create:function(){if(this.dialog){return;}var A=this;this.dialog=new Ext.LayoutDialog(Ext.get(document.body).createChild({tag:"div"}),{autoCreated:true,title:"edit team",modal:true,width:650,height:150,shadow:true,minWidth:200,minHeight:150,closable:false,draggable:false,center:{autoScroll:false,titlebar:false,hideTabs:true,closeOnTab:true,alwaysShowTabs:false}});
 this.dialog.addKeyListener(27,this.dialog.hide,this.dialog);this.dialog.addButton(_T["40e22bcebd4c093a709a1d94aae7eddf"],this.dialog.hide,this.dialog);this.dialog.addButton(_T["dd6a53f3ec4097eff373be1a2981b9f6"],this.save,this);this.layout=this.dialog.getLayout();
 this.layout.beginUpdate();this.form=new Ext.form.Form({labelWidth:250,listeners:{actionfailed:function(f,B){A.dialog.el.unmask();Pman.standardActionFailed(f,B);},actioncomplete:function(f,B){A.dialog.el.unmask();if(B.type=="load"){A.data=B.result.data;return;
-}if(B.type=="submit"){A.dialog.hide();if(A.callback){A.callback.call(this,B.result.data);}return;}}}});this.form.addxtype.apply(this.form,[{name:"name",fieldLabel:_T["ef36841feea4b33d42303e3bb4f9ef6a"],value:"",allowBlank:false,qtip:_T["6f4ae3eb4445956d92c6467a6dbb65e2"],xtype:"TextField",width:300},{xtype:"ComboBox",fieldLabel:_T["03c47106e6347d6be442e141baeb198e"],name:"leader_name",selectOnFocus:true,qtip:_T["0cbfa2f00e443885deb6af46c307b514"],allowBlank:true,width:280,store:new Ext.data.Store({proxy:new Ext.data.HttpProxy({url:baseURL+"/Roo/Person.php",method:"GET"}),reader:Pman.Readers.Person,listeners:{beforeload:function(st,o){o.params.company_id=Pman.Login.authUser.company_id*1;
+}if(B.type=="submit"){A.dialog.hide();if(A.callback){A.callback.call(this,B.result.data);}return;}}}});this.form.addxtype.apply(this.form,[{name:"name",fieldLabel:_T["ef36841feea4b33d42303e3bb4f9ef6a"],value:"",allowBlank:false,qtip:_T["6f4ae3eb4445956d92c6467a6dbb65e2"],xtype:"TextField",width:300},{xtype:"ComboBox",fieldLabel:_T["03c47106e6347d6be442e141baeb198e"],name:"leader_name",selectOnFocus:true,qtip:_T["0cbfa2f00e443885deb6af46c307b514"],allowBlank:true,width:280,store:new Ext.data.Store({proxy:new Ext.data.HttpProxy({url:baseURL+"/Roo/core_person",method:"GET"}),reader:Pman.Readers.Person,listeners:{beforeload:function(st,o){o.params.company_id=Pman.Login.authUser.company_id*1;
 }}}),displayField:"name",valueField:"id",hiddenName:"leader",typeAhead:true,forceSelection:true,doForce:function(){if(this.el.dom.value.length>0){this.el.dom.value=this.lastSelectionText===undefined?_T["3430b90edd3644ec8b40cf74e39b5a58"]:this.lastSelectionText;
 this.applyEmptyText();if(!this.el.dom.value.length){this.setFromData({id:0,name:"----"});}}},triggerAction:"all",tpl:new Ext.Template("<div class=\"x-grid-cell-text x-btn button\">","<b>{name}</b> {role}","</div>"),queryParam:"query[name]",loadingText:_T["425f2679b8159c6c2befedf611498097"],listWidth:300,minChars:2,pageSize:20},{name:"id",value:"",xtype:"Hidden"},{name:"type",value:"",xtype:"Hidden"}]);
 var ef=this.dialog.getLayout().getEl().createChild({tag:"div"});ef.dom.style.margin=10;this.form.render(ef.dom);var vp=this.dialog.getLayout().add("center",new Ext.ContentPanel(ef,{autoCreate:true,width:250,maxWidth:250,fitToFrame:true}));this.layout.endUpdate();
@@ -295,7 +295,7 @@ Pman.on("beforeload",function(){Pman.register({modKey:"000-pman_tab_adminlogeven
 }o.params=o.params||{};o.params.person_id=A.personSel.getValue();}},remoteSort:true,sortInfo:{field:"event_when",direction:"DESC"},proxy:{xtype:"HttpProxy",method:"GET",url:baseURL+"/Roo/Events.php"}},colModel:[{header:"When",width:100,dataIndex:"event_when",renderer:function(v){return v?v.dateFormat("d/m/Y H:i"):"";
 }},{header:"Staff",width:150,dataIndex:"person_name",renderer:function(v){return String.format("{0}",v);}},{header:"Action",width:100,dataIndex:"action",renderer:function(v){return String.format("{0}",v);}},{header:"IP",width:100,dataIndex:"ipaddr",renderer:function(v){return String.format("{0}",v);
 }},{header:"Affected",width:100,dataIndex:"on_id",renderer:function(v,x,r){return v?String.format("{0}({1})",r.data.on_table,v):"";}},{header:"Remarks",width:300,dataIndex:"remarks",renderer:function(v){return String.format("{0}",v);}}],footer:{xtype:"PagingToolbar",pageSize:25,displayInfo:true,displayMsg:_T["2ff0fe02cb998d6c2953ae2d68ca6ea4"],emptyMsg:_T["9a0575c139cbae13541dff297791a7d8"]},toolbar:{xtype:"Toolbar",items:[{xtype:"TextItem",xns:Roo.Toolbar,text:_T["b6ae8269eb074050cf22d7199051a157"]},{fieldLabel:_T["a9dbe313b1e0082050bda7ce5fc93f7e"],name:"person_id_name",qtip:_T["b827dddadd3ebfc23104551ee6a3a6f9"],emptyText:_T["b827dddadd3ebfc23104551ee6a3a6f9"],xtype:"ComboBox",selectOnFocus:true,allowBlank:true,width:150,listWidth:400,editable:false,displayField:"name",valueField:"id",typeAhead:true,forceSelection:true,triggerAction:"all",tpl:"<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",queryParam:"query[name]",loadingText:_T["d2489c8b4febecb80a1c387c1431696c"],minChars:2,pageSize:20,listeners:{select:function(D,F,E){A.grid.footer.onClick("first");
-},render:function(D){A.personSel=D;}},store:{xtype:"Store",reader:Pman.Readers.Person,listeners:{beforeload:function(D,o){o.params=o.params||{};o.company_id=Pman.Login.authUser.company_id;}},proxy:{xtype:"HttpProxy",url:baseURL+"/Roo/Person.php",method:"GET"}}}]}},region:"center"});
+},render:function(D){A.personSel=D;}},store:{xtype:"Store",reader:Pman.Readers.Person,listeners:{beforeload:function(D,o){o.params=o.params||{};o.company_id=Pman.Login.authUser.company_id;}},proxy:{xtype:"HttpProxy",url:baseURL+"/Roo/core_person",method:"GET"}}}]}},region:"center"});
 }};
 Pman.on("beforeload",function(){Pman.Dialog.PersonBulkAdd=new Pman.Dialog.PersonEditor({type:"new",dialogConfig:{title:_T["001969a043caf8ee9c27978405c14cf2"],height:350},itemList:["company_id_name","office_id_name","bulklist","id","active"]});});
 Pman.on("beforeload",function(){var A=false;if(A){return;}Pman.register({modKey:"999-pman_tab_admintranslations",module:Pman.Tab.AdminTranslations,region:"center",parent:Pman.Tab.Admin,name:_T["13e4f84d09a2d4057fdee709efdcca61"]});});Pman.Tab.AdminTranslations=new Roo.util.Observable({panel:false,disabled:false,parentLayout:false,add:function(C,B){var A=this;