当前位置: 首页>>代码示例>>PHP>>正文


PHP build_dynamic_javascript_url函数代码示例

本文整理汇总了PHP中build_dynamic_javascript_url函数的典型用法代码示例。如果您正苦于以下问题:PHP build_dynamic_javascript_url函数的具体用法?PHP build_dynamic_javascript_url怎么用?PHP build_dynamic_javascript_url使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了build_dynamic_javascript_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: function

				});
				}
			}
		});
		
	},
	/**
	* Function deletes User
	*
	*@param int user_id, user to delete
	*/
	
	deleteUser: function (user_id) {
		if (user_id != <?php echo $sf_user->getAttribute('id'); ?>) {
			Ext.Ajax.request({  
				url : '<?php echo build_dynamic_javascript_url('usermanagement/DeleteUser')?>/id/' + user_id,
				success: function(objServerResponse){ 
					cf.UserGrid.theUserStore.reload();
					Ext.Msg.minWidth = 200;
					Ext.MessageBox.alert('<?php echo __('OK',null,'usermanagement'); ?>', '<?php echo __('User deleted',null,'usermanagement'); ?>');
				}
			});
		}
		else {
			Ext.Msg.minWidth = 200;
			Ext.MessageBox.alert('<?php echo __('Error',null,'usermanagement'); ?>', '<?php echo __('Own profile cannot be deleted',null,'usermanagement'); ?>');
		}
		
		
	}
开发者ID:rlauenroth,项目名称:cuteflow_v3,代码行数:30,代码来源:userGridSuccess.php

示例2: function

		});
	},
	
	
	/**
	* save / update an template
	*
	*@param int id, id is set, if in editmode, is not set, then ''
	*/
	initSave: function (id) {
		if (id != '') {
			var url = '<?php echo build_dynamic_javascript_url('documenttemplate/UpdateDocumenttemplate')?>/id/' + id;
			var title = '<?php echo __('Data updated',null,'documenttemplate'); ?>';
		}
		else {
			var url = '<?php echo build_dynamic_javascript_url('documenttemplate/SaveDocumenttemplate')?>';
			var title = '<?php echo __('Data saved',null,'documenttemplate'); ?>';
		}
		var readyToSend = cf.documenttemplateCRUD.buildPanel(); // build panel to save
		if(readyToSend == true)	{
			cf.documenttemplateCRUD.doSubmit(url, title);	
		}
	},
	
	
	/**
	* Submit theFormPanel
	*
	*@param string url, SubmitURL, can be UpdateForm or SaveForm
	*@param string title, confirm box title
	*@return boolean, true when saveprocess can be started, false, if not
开发者ID:rlauenroth,项目名称:cuteflow_v3,代码行数:31,代码来源:documenttemplateCRUDSuccess.php

示例3: build_dynamic_javascript_url

			url: '<?php echo build_dynamic_javascript_url('filter/SaveFilter')?>',
			method: 'POST',
			waitMsg: '<?php echo __('Saving Data',null,'workflowmanagement'); ?>',
			success: function(objServerResponse){
				cf.todoFilterCRUD.reloadGrid();
				cf.todoFilterCRUD.theWindow.hide();
				cf.todoFilterCRUD.theWindow.destroy();
				cf.todoFilterPanel.theHiddenFilterName.setValue();
			}
		});
	},
	
	
	deleteFilter: function (id) {
		Ext.Ajax.request({  
			url : '<?php echo build_dynamic_javascript_url('filter/DeleteFilter')?>/id/' + id,
			success: function(objServerResponse){
				cf.todoFilterCRUD.reloadGrid();
			}
		});
	},
	
	reloadGrid: function () {
		try {
			cf.todoFilterFilter.theStore.reload();
		}
		catch(e) {
			
		}
		try {
			cf.workflowFilterFilter.theStore.reload();
开发者ID:rlauenroth,项目名称:cuteflow_v3,代码行数:31,代码来源:todoFilterCRUDSuccess.php

示例4: function

				autoCreate : {tag:'input', type: 'hidden', name: 'grid[]', value:row.data.group_id, width: 0}			
			});
			
			myPanel.add(hiddenfield);
			
		}
		// add items to formpanel
		cf.menueSettingGroupWindow.theFormPanel.setVisible(true);
		cf.menueSettingGroupWindow.theFormPanel.add(myPanel);
		cf.menueSettingGroupWindow.theFormPanel.doLayout();
	},
	
	/** save items **/
	saveGroup: function () {		
		cf.menueSettingGroupWindow.theFormPanel.getForm().submit({
			url: '<?php echo build_dynamic_javascript_url('menuesetting/SaveGroup')?>',
			method: 'POST',
			waitMsg: '<?php echo __('Saving Data',null,'menuesetting'); ?>',
			success: function() {
				try { // check if accordion has active item
					var ac_item_id = cf.Navigation.theAccordion.layout.activeItem.id;
				}
				catch(e) {
				}
				cf.menueSettingGroupWindow.theMenueSettingGroupWindow.hide();
				cf.menueSettingGroupWindow.theMenueSettingGroupWindow.destroy();
				
				cf.Navigation.isInitialized = false;
				cf.Layout.theRegionWest.remove(cf.Navigation.theAccordion);
				cf.Navigation.theAccordion.destroy();
				cf.Navigation.reloadNavigation();
开发者ID:rlauenroth,项目名称:cuteflow_v3,代码行数:31,代码来源:menuesettingGroupCRUDSuccess.php

示例5: function

		this.initTree(id);
		this.initFormPanel();
		this.theFormPanel.add(this.theTabpanel);
	},
	
	/**
	* Function loads the tree from server and stores it. When in edit mode, current settings will be loaded
	*
	* @param int id, id of the record, if edit button was pressed, when new record, id is null
	*/
	initTree: function (id) {
		if(id == '') {
			var url = '<?php echo build_dynamic_javascript_url('userrolemanagement/LoadRoleTree')?>';
		}
		else {
			var url = '<?php echo build_dynamic_javascript_url('userrolemanagement/LoadRoleTree')?>/role_id/' + id;
		}
		
		// load tree here
		Ext.Ajax.request({  
			url : url,
			success: function(objServerResponse){
				theJsonTreeData = Ext.util.JSON.decode(objServerResponse.responseText);
				cf.PopUpRoleTabpanel.buildTabs(theJsonTreeData,id);
				Ext.getCmp('userrole_title_id').setValue(theJsonTreeData.name);
				if (Ext.getCmp('userrole_title_id').getValue() != '') {
					Ext.getCmp('userrole_title_id').setDisabled(true);
				}
			}
		});
	},
开发者ID:rlauenroth,项目名称:cuteflow_v3,代码行数:31,代码来源:rolePopUpTabpanelSuccess.php

示例6: function

	
	
	initSavePanel: function () {
		this.thePanel = new Ext.Panel({
			
		});
	},
	
	
	
	
	
	
	doSubmit: function(workflowtemplate_id, version_id) {
		cf.workflowedit.thePanel.getForm().submit({
			url: '<?php echo build_dynamic_javascript_url('workflowedit/SaveWorkflow')?>/workflowid/' + workflowtemplate_id + '/versionid/' + version_id,
			method: 'POST',
			waitMsg: '<?php echo __('Saving Data',null,'workflowmanagement'); ?>',
			success: function(objServerResponse){
				try {
					cf.todoPanelGrid.theTodoStore.reload();
				}
				catch(e) {
					
				}
				try {
					cf.workflowmanagementPanelGrid.theWorkflowGrid.reload();
				}
				catch(e) {
					
				}
开发者ID:rlauenroth,项目名称:cuteflow_v3,代码行数:29,代码来源:workfloweditCRUDSuccess.php

示例7: function

			resizable: true,
	        plain: false,
			close : function(){
				cf.DeleteRoleWindow.theRoleDeleteWindow.hide();
				cf.DeleteRoleWindow.theRoleDeleteWindow.destroy();
			},
	        buttonAlign: 'center',
			buttons:[{
				id: 'removeButton',
				text:'<?php echo __('Delete',null,'userrolemanagement'); ?>', 
				icon: '/images/icons/accept.png',
				handler: function () { // delete role
					if(Ext.getCmp('deleteUserRightCombo').getValue() != '') {
						var updateid = (Ext.getCmp('deleteUserRightCombo').getValue());
						Ext.Ajax.request({ 
							url : '<?php echo build_dynamic_javascript_url('userrolemanagement/DeleteRole')?>/deleteid/' + deleteid + '/updateid/' + updateid, 
							success: function(objServerResponse){
								cf.UserRoleGrid.theUserRoleStore.reload();
								if(cf.UserGrid.theUserStoreIsInitialized == true) {
									cf.UserGrid.theUserStore.reload();
								}
								Ext.Msg.minWidth = 200;
								Ext.MessageBox.alert('<?php echo __('OK',null,'userrolemanagement'); ?>', objServerResponse.responseText + ' <?php echo __('profiles changed',null,'userrolemanagement'); ?>');
							}
						});
						cf.DeleteRoleWindow.theRoleDeleteWindow.hide();
						cf.DeleteRoleWindow.theRoleDeleteWindow.destroy();
					}
				}
			},
			{ // do nothing
开发者ID:rlauenroth,项目名称:cuteflow_v3,代码行数:31,代码来源:roleDeleteWindowSuccess.php

示例8: __

			waitMsg: '<?php echo __('Saving Data',null,'userrolemanagement'); ?>',
			success: function() {
				cf.rolePopUpWindow.theRoleWindow.hide();
				cf.rolePopUpWindow.theRoleWindow.destroy();
			}
		});
	},
	
	/** add new role **/
	saveNewRole: function () {
		Ext.Ajax.request({  
			url : '<?php echo build_dynamic_javascript_url('userrolemanagement/CheckForExistingRole')?>/description/' + Ext.getCmp('userrole_title_id').getValue(),
			success: function(objServerResponse){
				if(objServerResponse.responseText == 1) { // save Role
					cf.PopUpRoleTabpanel.theFormPanel.getForm().submit({
						url: '<?php echo build_dynamic_javascript_url('userrolemanagement/AddRole')?>',
						method: 'POST',
						waitMsg: '<?php echo __('Saving Data',null,'userrolemanagement'); ?>',
						success: function() {
							cf.UserRoleGrid.theUserRoleStore.reload();
							cf.rolePopUpWindow.theRoleWindow.hide();
							cf.rolePopUpWindow.theRoleWindow.destroy();
						}
					});
				}
				else {
					Ext.MessageBox.alert('<?php echo __('Error',null,'userrolemanagement'); ?>', '<?php echo __('Role is already existing',null,'userrolemanagement'); ?>');
					cf.PopUpRoleTabpanel.theTabpanel.setActiveTab(0);
					Ext.getCmp('userrole_title_id').focus();
					Ext.getCmp('userrole_title_id').setValue();
				}
开发者ID:rlauenroth,项目名称:cuteflow_v3,代码行数:31,代码来源:roleCRUDSuccess.php

示例9: __

			{header: "<?php echo __('Group',null,'menuesetting'); ?>", width: 225, sortable: false, dataIndex: 'group', css : "text-align : left;font-size:12px;align:center;"}
		]);
		
	},
	
	/**
	*
	* init Store for grid
	*
	* @param int id, id of the loaded Group
	*/
	
	initStore: function (id) {
		this.theGroupStore = new Ext.data.JsonStore({
				root: 'result',
				url: '<?php echo build_dynamic_javascript_url('menuesetting/LoadGroup')?>/id/' + id,
				fields: [
					{name: '#'},
					{name: 'id'},
					{name: 'group'},
					{name: 'module'},
					{name: 'module_id'},
					{name: 'group_id'}
				]
		});
		this.theGroupStore.load();
		
	},
	

	
开发者ID:rlauenroth,项目名称:cuteflow_v3,代码行数:28,代码来源:menuesettingGroupGridSuccess.php

示例10: function

						}]
					}]
				}]
		});
		
		this.theUserSearchbar.on('expand', function() {
			cf.UserGrid.theGridPanel.setSize({width: 'auto', height: cf.Layout.theRegionWest.getHeight() - 262});
			cf.UserGrid.theUserGrid.setSize({width: 'auto', height: cf.Layout.theRegionWest.getHeight() - 282});
		});
		this.theUserSearchbar.on('collapse', function() {
			cf.UserGrid.theGridPanel.setSize({width: 'auto', height: cf.Layout.theRegionWest.getHeight() - 70});
			cf.UserGrid.theUserGrid.setSize({width: 'auto', height: cf.Layout.theRegionWest.getHeight() - 90});
		});
	},
	
	/** store for roles in searchbar **/
	initRoleStore: function () {
		this.theUserRoleStoreInitialized = true;
		this.theUserRoleStore = new Ext.data.JsonStore({
				root: 'result',
				url: '<?php echo build_dynamic_javascript_url('usermanagement/LoadAllRole')?>',
				autoload: true,
				fields: [
					{name: 'id'},
					{name: 'description'}
				]
		});
	}
	
	
};}();
开发者ID:rlauenroth,项目名称:cuteflow_v3,代码行数:31,代码来源:userSuccess.php

示例11: __

				catch(e) {}
				try {
					cf.UserGrid.theUserStore.reload();
				}
				catch(e) {}
				
				
				if (user_id == <?php echo $sf_user->getAttribute('id'); ?>) {
					Ext.Msg.minWidth = 400;
					Ext.Msg.show({
					   title:'<?php echo __('Notice',null,'usermanagement'); ?>',
					   msg: '<?php echo __('For changes in own Profile it is recommended',null,'usermanagement'); ?><br><?php echo __('to reload the page. Unsaved data is getting lost. Proceed',null,'usermanagement'); ?>?',
					   buttons: Ext.Msg.YESNO,
					   fn: function(btn, text) {
							if(btn == 'yes') {
								window.location.href = '<?php echo build_dynamic_javascript_url('layout/index')?>'
							}
					   }
					});	
				}
					
			}
		});
	}



	
	
	
	
开发者ID:rlauenroth,项目名称:cuteflow_v3,代码行数:24,代码来源:updateUserSuccess.php

示例12: function

	*@param int id, id of the version
	*@param int created_at, date
	*@param int documenttemplateid, id of the template
	*/
	createShowButton: function (grid_id, id, created_at,documenttemplateid) {
		var btn_edit = new Ext.form.Label({
			renderTo: 'documenttemplateversion_show' + id,
			html: '<span style="cursor:pointer;"><img src="/images/icons/zoom.png" /></span>',
			listeners: {
				render: function(c){
					  c.getEl().on({
						click: function(el){
							cf.documenttemplateVersionFirstTab.theLoadingMask = new Ext.LoadMask(cf.documenttemplateVersionPopUp.theVersionWindow.body, {msg:'<?php echo __('Loading Data...',null,'documenttemplate'); ?>'});					
							cf.documenttemplateVersionFirstTab.theLoadingMask.show();
							Ext.Ajax.request({  
								url : '<?php echo build_dynamic_javascript_url('documenttemplate/LoadSingleDocumenttemplate')?>/id/' + id, 
								success: function(objServerResponse){
									theJsonTreeData = Ext.util.JSON.decode(objServerResponse.responseText);
									cf.documenttemplateVersionSecondTab.init(id, theJsonTreeData.result, created_at, grid_id, documenttemplateid);
								}
							});
						},
					scope: c
				});
				}
			}
		});
	},

	/** init grid **/
	initGrid: function () {
开发者ID:rlauenroth,项目名称:cuteflow_v3,代码行数:31,代码来源:versionFistTabSuccess.php

示例13: __

				emptyText:'<?php echo __('Search for name',null,'documenttemplate'); ?>',
				width:180
			},{
				xtype: 'button',
				text: '<?php echo __('Search',null,'documenttemplate'); ?>',
				icon: '/images/icons/table_go.png',
				handler: function (){
					cf.documenttemplatePanelGrid.doSearch();
				}
			},'-',{
				xtype: 'button',
				tooltip: '<?php echo __('Clear field',null,'documenttemplate'); ?>',
				icon: '/images/icons/delete.png',
				handler: function () {
					var textfield = Ext.getCmp('documenttemplatePanelGrid_searchtextfield').setValue();
					var url = encodeURI('<?php echo build_dynamic_javascript_url('documenttemplate/LoadAllDocumenttemplates')?>');
					cf.documenttemplatePanelGrid.theDocumenttemplateStore.proxy.setApi(Ext.data.Api.actions.read,url);
					cf.documenttemplatePanelGrid.theDocumenttemplateStore.reload();	
				}
			},'-',{	
				icon: '/images/icons/table_add.png',
	            tooltip:'<?php echo __('Add new Document template',null,'documenttemplate'); ?>',
				disabled: <?php $arr = $sf_user->getAttribute('credential');echo $arr['management_documenttemplate_addDocumenttemplate'];?>,
				style: 'margin-left:20px;',
	            handler: function () {
					cf.documenttemplatePopUpWindow.initNewDocumenttemplate('');
	            }
				
			},'->',
            {
            	xtype: 'label',
开发者ID:rlauenroth,项目名称:cuteflow_v3,代码行数:31,代码来源:documenttemplatePanelGridSuccess.php

示例14: function

				]
		});
	},
	
	
	/** init toolbar for grid, contains ajax search **/
	initTopToolBar: function () {
		this.theTopToolBar = new Ext.Toolbar({
			items: [{
				icon: '/images/icons/zoom_out.png',
	            tooltip:'<?php echo __('Reset Filter',null,'workflowmanagement'); ?>',
	            handler: function () {
					cf.workflowFilterPanel.theCounter = 0;
					cf.archiveFilterPanel.theSearchPanel.getForm().reset();
					cf.archiveFilterPanel.theFieldGrid.store.removeAll();
					var loadUrl = '<?php echo build_dynamic_javascript_url('archiveoverview/LoadAllArchivedWorkflow')?>';
					cf.archiveWorkflow.theArchiveStore.proxy.setApi(Ext.data.Api.actions.read,loadUrl);
					cf.archiveWorkflow.theArchiveStore.load();
				}
				
			},'->',            {
            	xtype: 'label',
            	html: '<?php echo __('Items per Page',null,'usermanagement'); ?>: '
            },{
				xtype: 'combo', // number of records to display in grid
				mode: 'local',
				value: '<?php $arr = $sf_user->getAttribute('userSettings'); echo $arr['displayeditem'];?>',
				editable:false,
				triggerAction: 'all',
				foreSelection: true,
				fieldLabel: '',
开发者ID:rlauenroth,项目名称:cuteflow_v3,代码行数:31,代码来源:archivePanelGridSuccess.php

示例15: __

 				id: 'installer_language_id',
 				hiddenName : 'installer_language',
				displayField:'text',
				selectOnFocus: true,
				value: language,
				triggerAction: 'all',
				foreSelection: true,
   				fieldLabel: '<?php echo __('Language',null,'installer'); ?>',
   				width: 200,
				store: this.theComboStore,
				listeners: {
					select: {
						fn:function(combo, value) {
							var id = (Ext.getCmp('installer_language_id').getValue());
							Ext.Ajax.request({
								url : '<?php echo build_dynamic_javascript_url('installer/changeLanguage')?>/value/' + id,
								success: function(objServerResponse){
									var url = Ext.get('url_installer').dom.value;
									window.location = url;
								}
							});
						}
					}
				}
				
			}]
		});
		Ext.getCmp('installer_language_id').on('afterrender', function(grid) {
			cf.installerSettingsTab.theComboStore.load();
		});
	},
开发者ID:rlauenroth,项目名称:cuteflow_v3,代码行数:31,代码来源:installerSettingsTabSuccess.php


注:本文中的build_dynamic_javascript_url函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。