Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux indy02.toastserver.com 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64
User : palandch ( 1163)
PHP Version : 7.1.33
Disable Function : NONE
Directory :  /home/palandch/public_html/manager/assets/modext/widgets/system/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/palandch/public_html/manager/assets/modext/widgets/system/modx.panel.import.resources.js
MODx.panel.ImportResources = function(config) {
    config = config || {};
    Ext.applyIf(config,{
        url: MODx.config.connectors_url+'system/import/index.php'
        ,baseParams: {
            action: 'index'
        }
        ,id: 'modx-panel-import-resources'
		,cls: 'container'
        ,buttonAlign: 'center'
        ,items: [{
            html: '<h2>'+_('import_site_resource')+'</h2>'
            ,id: 'modx-import-html-header'
            ,cls: 'modx-page-header'
            ,border: false
        },{
            layout: 'form'
            ,labelWidth: 250
            ,width: '100%'
            ,autoHeight: true
            ,border: true
            ,buttonAlign: 'center'
            ,items: [{
                html: '<p>'+_('import_site_resource_message')+'</p>'
				,bodyCssClass: 'panel-desc'
                ,border: false
            },{
				xtype: 'panel'
				,border: false
				,cls:'main-wrapper'
				,layout: 'form'
				,items: [{
					xtype: 'textfield'
					,fieldLabel: _('import_base_path')
					,name: 'import_base_path'
					,id: 'modx-import-base-path'
					,labelSeparator: ''
					,anchor: '100%'
					,value: ''
				},{
					xtype: 'textfield'
					,fieldLabel: _('import_resource_class')
					,name: 'import_resource_class'
					,id: 'modx-import-resource-class'
					,labelSeparator: ''
					,anchor: '100%'
					,value: ''
				},{
					xtype: 'textfield'
					,fieldLabel: _('import_allowed_extensions')
					,name: 'import_allowed_extensions'
					,id: 'modx-import-allowed-extensions'
					,labelSeparator: ''
					,anchor: '100%'
					,value: ''
				},{
					xtype: 'textfield'
					,fieldLabel: _('import_element')
					,name: 'import_element'
					,id: 'modx-import-element'
					,labelSeparator: ''
					,anchor: '100%'
					,value: 'body'
				},MODx.PanelSpacer,{
					xtype: 'hidden'
					,name: 'import_context'
					,id: 'modx-import-context'
					,anchor: '100%'
					,value: 'web'
				},{
					xtype: 'textfield'
					,fieldLabel: _('import_parent_document')
					,name: 'import_parent'
					,id: 'modx-import-parent'
					,anchor: '100%'
					,labelSeparator: ''
					,value: 0
				},MODx.PanelSpacer,{
					xtype: 'modx-tree-resource-simple'
					,title: _('import_use_doc_tree')
					,url: MODx.config.connectors_url+'resource/index.php'
					,id: 'modx-ih-resource-tree'
					,enableDrop: false
					,rootVisible: false
					,hideLabel: true
					,listeners: {
						'click': {fn:this.setParent,scope:this}
					}
				}]
            }]
        }]
    });
    MODx.panel.ImportResources.superclass.constructor.call(this,config);
    Ext.Ajax.timeout = 0;
};
Ext.extend(MODx.panel.ImportResources,MODx.FormPanel,{    
    setParent: function(node,e) {
        var iPar = 0;
        var iCxt = 'web';
        
        var spl = node.attributes.id.split('_');
        iCxt = spl[0];
        iPar = spl[1];
        Ext.getCmp('modx-import-parent').setValue(iPar);
        Ext.getCmp('modx-import-context').setValue(iCxt);
        return false;
    }
});
Ext.reg('modx-panel-import-resources',MODx.panel.ImportResources);

Spamworldpro Mini