晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
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/public_html/crm/pkg/vtiger/modules/Webforms/settings/templates/resources/ |
Upload File : |
/*+***********************************************************************************
* 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.
*************************************************************************************/
Vtiger_Field_Js("Webforms_Field_Js",{},{})
Vtiger_Field_Js('Webforms_Multipicklist_Field_Js',{},{
/**
* Function to get the pick list values
* @return <object> key value pair of options
*/
getPickListValues : function() {
return this.get('picklistvalues');
},
/**
* Function to get the ui
* @return - select element and chosen element
*/
getUi : function() {
var html = '<select class="select2" multiple name="'+ this.getName() +'[]" style="width:60%">';
var pickListValues = this.getPickListValues();
var selectedOption = this.getValue();
var selectedOptionsArray = selectedOption.split(' |##| ')
for(var option in pickListValues) {
html += '<option value="'+option+'" ';
if(jQuery.inArray(option,selectedOptionsArray) != -1){
html += ' selected ';
}
html += '>'+pickListValues[option]+'</option>';
}
html +='</select>';
var selectContainer = jQuery(html);
return selectContainer;
}
});
Vtiger_Field_Js('Webforms_Picklist_Field_Js',{},{
/**
* Function to get the pick list values
* @return <object> key value pair of options
*/
getPickListValues : function() {
return this.get('picklistvalues');
},
/**
* Function to get the ui
* @return - select element and chosen element
*/
getUi : function() {
var html = '<select class="row-fluid chzn-select" name="'+ this.getName() +'" style="width:220px">';
var pickListValues = this.getPickListValues();
var selectedOption = this.getValue();
for(var option in pickListValues) {
html += '<option value="'+option+'" ';
if(option == selectedOption) {
html += ' selected ';
}
html += '>'+pickListValues[option]+'</option>';
}
html +='</select>';
var selectContainer = jQuery(html);
this.addValidationToElement(selectContainer);
return selectContainer;
}
});
Vtiger_Field_Js('Webforms_Date_Field_Js',{},{
/**
* Function to get the user date format
*/
getDateFormat : function(){
return this.get('date-format');
},
/**
* Function to get the ui
* @return - input text field
*/
getUi : function() {
var html = '<div class="input-append">'+
'<div class="date">'+
'<input class="dateField" type="text" name="'+ this.getName() +'" data-date-format="'+ this.getDateFormat() +'" value="'+ this.getValue() + '" />'+
'<span class="add-on"><i class="icon-calendar"></i></span>'+
'</div>'+
'</div>';
var element = jQuery(html);
return this.addValidationToElement(element);
}
});
Vtiger_Field_Js('Webforms_Currency_Field_Js',{},{
/**
* get the currency symbol configured for the user
*/
getCurrencySymbol : function() {
return this.get('currency_symbol');
},
getUi : function() {
var html = '<div class="input-prepend">'+
'<span class="add-on">'+ this.getCurrencySymbol()+'</span>'+
'<input type="text" name="'+ this.getName() +'" value="'+ this.getValue() + '" class="input-medium" style="width:210px" data-decimal-separator="'+this.getData().decimalSeparator+'" data-group-separator="'+this.getData().groupSeparator+'"/>'+
'</div>';
var element = jQuery(html);
return this.addValidationToElement(element);
}
});
Vtiger_Field_Js('Vtiger_Percentage_Field_Js',{},{
/**
* Function to get the ui
* @return - input percentage field
*/
getUi : function() {
var html = '<div class="input-append row-fluid">'+
'<input type="number" class="input-medium" min="0" max="100" name="'+this.getName() +'" value="'+ this.getValue() + '" step="any"/>'+
'<span class="add-on">%</span>'+
'</div>';
var element = jQuery(html);
return this.addValidationToElement(element);
}
});
Vtiger_Field_Js('Webforms_Time_Field_Js',{},{
/**
* Function to get the ui
* @return - input text field
*/
getUi : function() {
var html = '<div class="input-append time">'+
'<input class="timepicker-default" type="text" name="'+ this.getName() +'" value="'+ this.getValue() + '" />'+
'<span class="add-on"><i class="icon-time"></i></span>'+
'</div>';
var element = jQuery(html);
return this.addValidationToElement(element);
}
});
Vtiger_Field_Js('Webforms_Reference_Field_Js',{},{
getReferenceModules : function(){
return this.get('referencemodules');
},
/**
* Function to get the ui
* @return - input text field
*/
getUi : function() {
var referenceModules = this.getReferenceModules();
var html;
var fieldName = this.getName();
var referredModuleName = referenceModules[0];
html = '<input name="popupReferenceModule" type="hidden" value="'+referredModuleName+'" />'+
'<input name="'+ fieldName +'" type="hidden" value="'+ this.getValue()+ '" class="sourceField" />';
html += '<div class="row-fluid input-prepend input-append">'+
'<span class="add-on clearReferenceSelection cursorPointer">'+
'<i class="icon-remove-sign" title=""></i>'+
'</span>'+
'<input id="'+ fieldName +'_display" type="text" class="span7 marginLeftZero autoComplete referenceFieldDisplay" placeholder="'+app.vtranslate('JS_TYPE_TO_SEARCH')+'"/>'+
'<span class="add-on relatedPopup cursorPointer">'+
'<i class="icon-search relatedPopup"></i>'+
'</span>'+
'<span class="add-on cursorPointer createReferenceRecord">'+
'<i class="icon-plus"></i>'+
'</span>'
'</div>';
var referenceFieldNames = fieldName.split('[defaultvalue]');
var referredFieldName = referenceFieldNames[0]+'[referenceModule]';
html += '<input type="hidden" name="'+referredFieldName+'" value="'+referredModuleName+'" class="referenceModuleName">';
var element = jQuery(html);
return this.addValidationToElement(element);
}
});
Vtiger_Field_Js('Webforms_Image_Field_Js',{},{
/**
* Function to get the ui
* @return - input text field
*/
getUi : function() {
var html = '<input class="input-large" type="text" name="'+ this.getName() +'" readonly />';
var element = jQuery(html);
return this.addValidationToElement(element);
}
});