晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
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/modules/ParsVT/resources/ |
Upload File : |
/* ********************************************************************************
* The content of this file is subject to the VTFarsi.ir Modules License("License");
* You may not use this file except in compliance with the License
* The Initial Developer of the Original Code is VTFarsi.ir
* Portions created by VTFarsi.ir. are Copyright(C) VTFarsi Team
* All Rights Reserved.
* ****************************************************************************** */
jQuery.Class("ParsVT_LanguageEditor_Js",{},{registerPicklistModulesChangeEvent:function(){var e=this;jQuery("#pickListModules").on("change",function(){var t=$(this).val();if(t.length<=0)Settings_Vtiger_Index_Js.showMessage({type:"error",text:app.vtranslate("JS_PLEASE_SELECT_MODULE")});else{var a={module:app.getModuleName(),parent:app.getParentModuleName(),source_module:t,view:"ListPicklistsAjax",mode:"getPickListDetailsForModule"},r=jQuery.progressIndicator({position:"html",blockInfo:{enabled:!0}});AppConnector.request(a).then(function(t){t.success&&(jQuery("#modulePickListContainer").html(t.result),r.progressIndicator({mode:"hide"}),app.changeSelectElementView(jQuery("#modulePickListContainer")),e.registerModulePickListChangeEvent(),jQuery("#modulePickList").trigger("change"))})}})},registerModulePickListChangeEvent:function(){var e=this;jQuery("#modulePickList").on("change",function(t){var a={module:app.getModuleName(),parent:app.getParentModuleName(),source_module:jQuery("#pickListModules").val(),view:"ListPicklistsAjax",mode:"getPickListValueForField",pickListFieldId:jQuery(t.currentTarget).val()},r=jQuery.progressIndicator({position:"html",blockInfo:{enabled:!0}});AppConnector.request(a).then(function(t){jQuery("#modulePickListValuesContainer").html(t.result),r.progressIndicator({mode:"hide"}),e.registerSaveNewPicklistTranslationInputEvent()})})},registerSaveNewPicklistTranslationInputEvent:function(){jQuery("#modulePickListValuesContainer").find(".pickListTranslation").each(function(){jQuery(this).on("blur",function(){var e=$(this).val(),t=$(this).closest("tr").data("lang"),a=$(this).closest("tr").data("key"),r=$("#pickListModules").val(),s=$(this).closest("tr").data("langtranslate"),n={module:app.getModuleName(),parent:app.getParentModuleName(),source_module:jQuery("#pickListModules").val(),action:"SavePicklist",forModule:r,key:a,transString:e,langPrefix:t};s!==e&&AppConnector.request(n).then(function(e){e.result.message;app.helper.showSuccessNotification({message:e.result.message})})})})},registerAddNewLanguageEvent:function(){$("#createLangButton").click(function(e){app.request.get({url:"index.php?module=ParsVT&parent=Settings&view=createLanguageModalAjax"}).then(function(e,t){null===e?app.helper.showModal(t):app.helper.showErrorNotification({message:e.message})})})},addNewLanguage:function(e){var t=jQuery.Deferred(),a=e.serializeFormData(),r={type:"POST",module:app.getModuleName(),action:"LanguageAjax",formData:a,mode:"createNewLanguage",dataType:"json"};return AppConnector.request(r).then(function(e){alert(JSON.stringify(e)),alert(3),t.resolve(e)},function(e){t.reject(e)}),t.promise()},registerCopyLanguage:function(){var e=this;jQuery.Deferred();jQuery(document).on("click",".modalSaveButton",function(){if("success"==e.validateCheckCode()){var t=jQuery("#newLanguage"),a=jQuery("#langName");if(0==t.val().length)$(".newLanguageVal")[0]?t.focus():(t.after('<span class="newLanguageVal text-danger">'+app.vtranslate("JS_PLEASE_ENTER_VALID_VALUE")+"</span>"),t.focus());else if($(".newLanguageVal").remove(),0==a.val().length)$(".langNameVal")[0]?a.focus():(a.after('<span class="langNameVal text-danger">'+app.vtranslate("JS_PLEASE_ENTER_VALID_VALUE")+"</span>"),a.focus());else{$(".langNameVal").remove();var r=jQuery("#newLanguageForm").serializeFormData(),s=jQuery.progressIndicator({message:"",position:"html",blockInfo:{enabled:!0}}),n={};n.module=app.getModuleName(),n.action="LanguageAjax",n.parent="Settings",n.mode="createNewLanguage",n.data=r,AppConnector.request(n).then(function(e){s.progressIndicator({mode:"hide"}),e.success?1==e.result.success?app.helper.showSuccessNotification({message:e.result.message}):app.helper.showErrorNotification({message:e.result.message}):app.helper.showErrorNotification({message:ParsVTErrors.OPFAILED})},function(e){s.progressIndicator({mode:"hide"}),app.helper.showErrorNotification({message:ParsVTErrors.OPFAILED})}),jQuery(".myModal").hide(),setTimeout(function(){window.location.reload(1)},3e3)}}})},registerdeleteLanguage:function(){jQuery(".deleteLanguage").on("click",function(e){var t=jQuery(e.currentTarget).data("langprefix");void 0!==t&&app.helper.showConfirmationBox({message:ParsVTErrors.CONVERTDATACONFIRM}).then(function(e){var a=jQuery.progressIndicator({message:"",position:"html",blockInfo:{enabled:!0}}),r={};r.module=app.getModuleName(),r.action="DeleteTranslation",r.parent="Settings",r.langPrefix=t,AppConnector.request(r).then(function(e){a.progressIndicator({mode:"hide"}),e.success?1==e.result.success?app.helper.showSuccessNotification({message:e.result.message}):1==e.result.error&&app.helper.showErrorNotification({message:e.result.message}):app.helper.showErrorNotification({message:ParsVTErrors.OPFAILED})},function(e){a.progressIndicator({mode:"hide"}),app.helper.showErrorNotification({message:ParsVTErrors.OPFAILED})}),setTimeout(function(){window.location.reload(1)},3e3)},function(e,t){return!1})})},registerCopyLanguageEvent:function(){jQuery("#allLanguages");jQuery(".copyLanguage").each(function(){jQuery(this).click(function(e){var t="index.php?module=ParsVT&parent=Settings&view=createLanguageModalAjax&language="+jQuery(this).closest("tr").data("prefix")+","+jQuery(this).closest("tr").data("label");app.request.get({url:t}).then(function(e,t){null===e?app.helper.showModal(t):app.helper.showErrorNotification({message:e.message})}),e.stopPropagation()})})},aftervalidformaction:function(e){var t=e.find(":submit");t.attr("disabled","disabled"),this.addNewLanguage(e).then(function(e){var a={text:e.result.message};!0===e.result.success?(a.type="info",app.hideModalWindow()):!1===e.result.success&&(a.type="error",t.attr("disabled",!1)),Vtiger_Helper_Js.showMessage(a),window.location.reload()},function(e,t){})},registerLangButtonEvent:function(){$(".langButton").click(function(e){var t=$(this).closest("tr").data("prefix"),a=$(this).closest("tr").data("name"),r=$(this).closest("tr").data("label"),s={type:"POST",module:app.getModuleName(),parent:"Settings",action:"LanguageAjax",name:a,label:r,prefix:t,mode:"changeActiveStatusOfLanguage",dataType:"json"};AppConnector.request(s).then(function(e){1==e.success?app.helper.showSuccessNotification({message:e.result.message}):e.error&&app.helper.showErrorNotification({message:e.error.code})},function(e){progressIndicatorElement.progressIndicator({mode:"hide"}),app.helper.showErrorNotification({message:ParsVTErrors.OPFAILED})}),setTimeout(function(){window.location.reload(1)},3e3)})},registerRowClickEvent:function(){jQuery(".listViewEntries").on("click",function(e){var t=jQuery(e.currentTarget).data("recordurl");void 0!==t&&(window.location.href=t)})},validateCheckCode:function(){var e="error",t=jQuery("#langCode");return/^([a-z]{2}[_]{1}[a-zA-Z]{2})$/.test(t.val())&&0!=t.val().length?($(".langCodeVal").remove(),e="success"):$(".langCodeVal")[0]?t.focus():(t.after('<span class="langCodeVal text-danger">'+app.vtranslate("JS_PLEASE_ENTER_VALID_VALUE")+"</span>"),t.focus(),e="error"),e},registerEvents:function(){this.registerPicklistModulesChangeEvent(),this.registerModulePickListChangeEvent(),this.registerSaveNewPicklistTranslationInputEvent(),this.registerAddNewLanguageEvent(),this.registerLangButtonEvent(),this.registerCopyLanguage(),this.registerCopyLanguageEvent(),this.registerdeleteLanguage()}}),jQuery(document).ready(function(){(new ParsVT_LanguageEditor_Js).registerEvents()});