xml Miva - 验证功能

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml Miva - 验证功能相关的知识,希望对你有一定的参考价值。


<mvt:do file="g.Module_Feature_CUS_DB" name="l.settings:results:CustomerSettings_Load" value="CustomerSettings_Load( l.customersettings )" />

<mvt:assign name="g.Password" value="'abc'" />
<mvt:do file="g.Module_Admin" name="l.settings:is_valid_password" value="Validate_Password( l.customersettings, g.Password )" />
<mvt:if expr="l.settings:is_valid_password">
	<p>"&mvte:global:Password;" is a valid password</p>
<mvt:else>
	<p>"&mvte:global:Password;" is NOT a valid password</p>
</mvt:if>

<mvt:assign name="g.Password" value="'open-sesame!'" />
<mvt:do file="g.Module_Admin" name="l.settings:is_valid_password" value="Validate_Password( l.customersettings, g.Password )" />
<mvt:if expr="l.settings:is_valid_password">
	<p>"&mvte:global:Password;" is a valid password</p>
<mvt:else>
	<p>"&mvte:global:Password;" is NOT a valid password</p>
</mvt:if>
<!-- admin/validate.mv -->
<MvFUNCTION NAME = "Validate_Code" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Code_NonBlank_Optional" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_CC_Mod10" PARAMETERS = "ccnum" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Login" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Group_Name" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Method_Length" PARAMETERS = "value, length" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Email" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Phone" PARAMETERS = "value, country" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Zip" PARAMETERS = "value, country" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_WholeNumber" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_WholeNumber_Optional" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_WholeNumber_Required" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_WholeNumber_Range_Required" PARAMETERS = "value, low, high" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_WholeNumber_NonNegative_Optional" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_WholeNumber_NonNegative_Required" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_WholeNumber_Positive_Required" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_WholeNumber_Positive_Optional" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_FloatingPoint" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Currency_Optional" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Currency_Required" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Currency_NonNegative_Optional" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Currency_NonNegative_Required" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Currency_Positive_Required" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_FloatingPoint_Optional" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_FloatingPoint_Required" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_FloatingPoint_NonNegative_Optional" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_FloatingPoint_NonNegative_Required" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_FloatingPoint_Positive_Required" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_FloatingPoint_Length_NonNegative_Optional" PARAMETERS = "value, left, right" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_FloatingPoint_Length_NonNegative_Required" PARAMETERS = "value, left, right" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_FloatingPoint_Length_Positive_Optional" PARAMETERS = "value, left, right" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_FloatingPoint_Length_Positive_Required" PARAMETERS = "value, left, right" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_FloatingPoint_Length_Required" PARAMETERS = "value, left, right" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Decimal" PARAMETERS = "value, left, right" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Extension_ToLowerCase" PARAMETERS = "old_file var, valid_ext, old_file_ext var" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Extension" PARAMETERS = "old_file, valid_ext, old_file_ext var" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Image_Extension" PARAMETERS = "old_image, old_image_ext var" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Image_Extension_ToLowerCase" PARAMETERS = "image_filepath var, extension var" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Passphrase" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_HTMLToken" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Password" PARAMETERS = "settings var, password" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_Symmetric_Password_Encryption" PARAMETERS = "password" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_URI" PARAMETERS = "uri" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Trim_Boolean" PARAMETERS = "value" STANDARDOUTPUTLEVEL = "">
<MvFUNCTION NAME = "Validate_StandardFields" PARAMETERS = "fields var, address var" STANDARDOUTPUTLEVEL = "">

以上是关于xml Miva - 验证功能的主要内容,如果未能解决你的问题,请参考以下文章

xml Miva - 产品批量定价供应XML

xml MIVA合并类别,products.xml

xml Miva - 自定义XML站点地图

xml Miva - Price Group XML

xml Miva - 用模板语言处理XML配置

xml Miva - master_provide.xml