• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP ew_JsEncode2函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: ew_OnError

		elm = fobj.elements["x" + infix + "_likes"];
		if (elm && !ew_CheckInteger(elm.value))
			return ew_OnError(this, elm, "<?php 
echo ew_JsEncode2($tbl_facebook_stat->likes->FldErrMsg());
?>
");
		elm = fobj.elements["x" + infix + "_unsubscribe"];
		if (elm && !ew_HasValue(elm))
			return ew_OnError(this, elm, ewLanguage.Phrase("EnterRequiredField") + " - <?php 
echo ew_JsEncode2($tbl_facebook_stat->unsubscribe->FldCaption());
?>
");
		elm = fobj.elements["x" + infix + "_unsubscribe"];
		if (elm && !ew_CheckInteger(elm.value))
			return ew_OnError(this, elm, "<?php 
echo ew_JsEncode2($tbl_facebook_stat->unsubscribe->FldErrMsg());
?>
");

		// Call Form Custom Validate event
		if (!this.Form_CustomValidate(fobj)) return false;
	}
	return true;
}

// extend page with Form_CustomValidate function
tbl_facebook_stat_add.Form_CustomValidate =  
 function(fobj) { // DO NOT CHANGE THIS LINE!

 	// Your custom validation code here, return false if invalid. 
 	return true;
开发者ID:jliman,项目名称:SEOStat,代码行数:31,代码来源:tbl_facebook_statadd.php


示例2: ew_OnError

		elm = fobj.elements["x" + infix + "_userlevelid"];
		if (elm && !ew_HasValue(elm))
			return ew_OnError(this, elm, ewLanguage.Phrase("EnterRequiredField") + " - <?php 
echo ew_JsEncode2($tbl_user_level->userlevelid->FldCaption());
?>
");
		elm = fobj.elements["x" + infix + "_userlevelid"];
		if (elm && !ew_CheckInteger(elm.value))
			return ew_OnError(this, elm, "<?php 
echo ew_JsEncode2($tbl_user_level->userlevelid->FldErrMsg());
?>
");
		elm = fobj.elements["x" + infix + "_userlevelname"];
		if (elm && !ew_HasValue(elm))
			return ew_OnError(this, elm, ewLanguage.Phrase("EnterRequiredField") + " - <?php 
echo ew_JsEncode2($tbl_user_level->userlevelname->FldCaption());
?>
");
		elmId = fobj.elements["x" + infix + "_userlevelid"];
		elmName = fobj.elements["x" + infix + "_userlevelname"];
		if (elmId && elmName) {
			elmId.value = elmId.value.replace(/^\s+|\s+$/, '');
			elmName.value = elmName.value.replace(/^\s+|\s+$/, '');
			if (elmId && !ew_CheckInteger(elmId.value))
				return ew_OnError(this, elmId, ewLanguage.Phrase("UserLevelIDInteger"));
			var level = parseInt(elmId.value);
			if (level == 0) {
				if (elmName.value.toLowerCase() != "default")
					return ew_OnError(this, elmName, ewLanguage.Phrase("UserLevelDefaultName"));
			} else if (level == -1) { 
				if (elmName.value.toLowerCase() != "administrator")
开发者ID:jliman,项目名称:SEOStat,代码行数:31,代码来源:tbl_user_leveledit.php


示例3: String

	for (var i = startcnt; i <= rowcnt; i++) {
		var infix = ($k[0]) ? String(i) : "";
		$fobj.data("rowindex", infix);
		var checkrow = (gridinsert) ? !this.EmptyRow(infix) : true;
		if (checkrow) {
			addcnt++;
			elm = this.GetElements("x" + infix + "_fecha");
			if (elm && !ew_CheckEuroDate(elm.value))
				return this.OnError(elm, "<?php 
    echo ew_JsEncode2($gastos_mantenimientos->fecha->FldErrMsg());
    ?>
");
			elm = this.GetElements("x" + infix + "_id_hoja_mantenimeinto");
			if (elm && !ew_CheckInteger(elm.value))
				return this.OnError(elm, "<?php 
    echo ew_JsEncode2($gastos_mantenimientos->id_hoja_mantenimeinto->FldErrMsg());
    ?>
");

			// Set up row object
			ew_ElementsToRow(fobj);

			// Fire Form_CustomValidate event
			if (!this.Form_CustomValidate(fobj))
				return false;
		} // End Grid Add checking
	}
	return true;
}

// Check empty row
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:gastos_mantenimientosgrid.php


示例4: function

ftbl_lesson_videoedit.Validate = function(fobj) {
	if (!this.ValidateRequired)
		return true; // Ignore validation
	fobj = fobj || this.Form;
	this.PostAutoSuggest();	
	if (fobj.a_confirm && fobj.a_confirm.value == "F")
		return true;
	var elm, aelm;
	var rowcnt = 1;
	var startcnt = (rowcnt == 0) ? 0 : 1; // rowcnt == 0 => Inline-Add
	for (var i = startcnt; i <= rowcnt; i++) {
		var infix = "";
		elm = fobj.elements["x" + infix + "_active"];
		if (elm && !ew_CheckInteger(elm.value))
			return ew_OnError(this, elm, "<?php 
echo ew_JsEncode2($tbl_lesson_video->active->FldErrMsg());
?>
");

		// Set up row object
		ew_ElementsToRow(fobj, infix);

		// Fire Form_CustomValidate event
		if (!this.Form_CustomValidate(fobj))
			return false;
	}

	// Process detail page
	if (fobj.detailpage && fobj.detailpage.value && ewForms[fobj.detailpage.value])
		return ewForms[fobj.detailpage.value].Validate(fobj);
	return true;
开发者ID:huynt57,项目名称:bluebee-uet.com,代码行数:31,代码来源:tbl_lesson_videoedit.php


示例5: ew_JsEncode2

			elm = this.GetElements("x" + infix + "_ACCOUNT_NUMBER");
			if (elm && !ew_CheckNumber(elm.value))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2($bank_account->ACCOUNT_NUMBER->FldErrMsg());
?>
");
			elm = this.GetElements("x" + infix + "_BANK_ID");
			if (elm && !ew_IsHidden(elm) && !ew_HasValue(elm))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2(str_replace("%s", $bank_account->BANK_ID->FldCaption(), $bank_account->BANK_ID->ReqErrMsg));
?>
");
			elm = this.GetElements("x" + infix + "_ACTIVE");
			if (elm && !ew_IsHidden(elm) && !ew_HasValue(elm))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2(str_replace("%s", $bank_account->ACTIVE->FldCaption(), $bank_account->ACTIVE->ReqErrMsg));
?>
");

			// Fire Form_CustomValidate event
			if (!this.Form_CustomValidate(fobj))
				return false;
	}

	// Process detail forms
	var dfs = $fobj.find("input[name='detailpage']").get();
	for (var i = 0; i < dfs.length; i++) {
		var df = dfs[i], val = df.value;
		if (val && ewForms[val])
			if (!ewForms[val].Validate())
				return false;
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:31,代码来源:bank_accountedit.php


示例6: parseInt

	var rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1;
	var startcnt = (rowcnt == 0) ? 0 : 1; // Check rowcnt == 0 => Inline-Add
	var gridinsert = $fobj.find("#a_list").val() == "gridinsert";
	for (var i = startcnt; i <= rowcnt; i++) {
		var infix = ($k[0]) ? String(i) : "";
		$fobj.data("rowindex", infix);
			elm = this.GetElements("x" + infix + "_importe");
			if (elm && !ew_CheckNumber(elm.value))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2($montos->importe->FldErrMsg());
?>
");
			elm = this.GetElements("x" + infix + "_fecha_creacion");
			if (elm && !ew_CheckEuroDate(elm.value))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2($montos->fecha_creacion->FldErrMsg());
?>
");

			// Set up row object
			ew_ElementsToRow(fobj);

			// Fire Form_CustomValidate event
			if (!this.Form_CustomValidate(fobj))
				return false;
	}

	// Process detail forms
	var dfs = $fobj.find("input[name='detailpage']").get();
	for (var i = 0; i < dfs.length; i++) {
		var df = dfs[i], val = df.value;
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:cciag_montosadd.php


示例7: ew_JsEncode2

			elm = this.GetElements("x" + infix + "_profession[]");
			if (elm && !ew_IsHidden(elm) && !ew_HasValue(elm))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2(str_replace("%s", $nos_members->profession->FldCaption(), $nos_members->profession->ReqErrMsg));
?>
");
			elm = this.GetElements("x" + infix + "_game_type[]");
			if (elm && !ew_IsHidden(elm) && !ew_HasValue(elm))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2(str_replace("%s", $nos_members->game_type->FldCaption(), $nos_members->game_type->ReqErrMsg));
?>
");
			elm = this.GetElements("x" + infix + "_has_expansion");
			if (elm && !ew_IsHidden(elm) && !ew_HasValue(elm))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2(str_replace("%s", $nos_members->has_expansion->FldCaption(), $nos_members->has_expansion->ReqErrMsg));
?>
");

			// Fire Form_CustomValidate event
			if (!this.Form_CustomValidate(fobj))
				return false;
	}

	// Process detail forms
	var dfs = $fobj.find("input[name='detailpage']").get();
	for (var i = 0; i < dfs.length; i++) {
		var df = dfs[i], val = df.value;
		if (val && ewForms[val])
			if (!ewForms[val].Validate())
				return false;
开发者ID:NoSympathy,项目名称:Dashboard,代码行数:31,代码来源:nos_membersedit.php


示例8: ew_JsEncode2

			elm = this.GetElements("x" + infix + "_PASSANGER_TYPE_ID");
			if (elm && !ew_IsHidden(elm) && !ew_HasValue(elm))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2(str_replace("%s", $passanger->PASSANGER_TYPE_ID->FldCaption(), $passanger->PASSANGER_TYPE_ID->ReqErrMsg));
?>
");
			elm = this.GetElements("x" + infix + "_PASSANGER_TYPE_ID");
			if (elm && !ew_CheckInteger(elm.value))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2($passanger->PASSANGER_TYPE_ID->FldErrMsg());
?>
");
			elm = this.GetElements("x" + infix + "_USER_ID");
			if (elm && !ew_CheckInteger(elm.value))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2($passanger->USER_ID->FldErrMsg());
?>
");

			// Fire Form_CustomValidate event
			if (!this.Form_CustomValidate(fobj))
				return false;
	}

	// Process detail forms
	var dfs = $fobj.find("input[name='detailpage']").get();
	for (var i = 0; i < dfs.length; i++) {
		var df = dfs[i], val = df.value;
		if (val && ewForms[val])
			if (!ewForms[val].Validate())
				return false;
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:31,代码来源:passangeredit.php


示例9: GetFilterList

 function GetFilterList()
 {
     // Initialize
     $sFilterList = "";
     $sFilterList = ew_Concat($sFilterList, $this->AIR_PORT_ID->AdvancedSearch->ToJSON(), ",");
     // Field AIR_PORT_ID
     $sFilterList = ew_Concat($sFilterList, $this->CODE->AdvancedSearch->ToJSON(), ",");
     // Field CODE
     $sFilterList = ew_Concat($sFilterList, $this->DESCRIPTION->AdvancedSearch->ToJSON(), ",");
     // Field DESCRIPTION
     $sFilterList = ew_Concat($sFilterList, $this->ACTIVE->AdvancedSearch->ToJSON(), ",");
     // Field ACTIVE
     if ($this->BasicSearch->Keyword != "") {
         $sWrk = "\"" . EW_TABLE_BASIC_SEARCH . "\":\"" . ew_JsEncode2($this->BasicSearch->Keyword) . "\",\"" . EW_TABLE_BASIC_SEARCH_TYPE . "\":\"" . ew_JsEncode2($this->BasicSearch->Type) . "\"";
         $sFilterList = ew_Concat($sFilterList, $sWrk, ",");
     }
     // Return filter list in json
     return $sFilterList != "" ? "{" . $sFilterList . "}" : "null";
 }
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:19,代码来源:air_portlist.php


示例10: ew_JsEncode2

			elm = this.GetElements("x" + infix + "__Email");
			if (elm && !ew_HasValue(elm))
				return this.OnError(elm, ewLanguage.Phrase("EnterRequiredField") + " - <?php 
echo ew_JsEncode2($Users->_Email->FldCaption());
?>
");
			elm = this.GetElements("x" + infix + "_Created");
			if (elm && !ew_HasValue(elm))
				return this.OnError(elm, ewLanguage.Phrase("EnterRequiredField") + " - <?php 
echo ew_JsEncode2($Users->Created->FldCaption());
?>
");
			elm = this.GetElements("x" + infix + "_Created");
			if (elm && !ew_CheckDate(elm.value))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2($Users->Created->FldErrMsg());
?>
");

			// Set up row object
			ew_ElementsToRow(fobj);

			// Fire Form_CustomValidate event
			if (!this.Form_CustomValidate(fobj))
				return false;
	}

	// Process detail forms
	var dfs = $fobj.find("input[name='detailpage']").get();
	for (var i = 0; i < dfs.length; i++) {
		var df = dfs[i], val = df.value;
开发者ID:evinw,项目名称:project_yess,代码行数:31,代码来源:Usersadd.php


示例11: ew_OnError

		return true;
	var elm, aelm;
	var rowcnt = 1;
	var startcnt = (rowcnt == 0) ? 0 : 1; // rowcnt == 0 => Inline-Add
	for (var i = startcnt; i <= rowcnt; i++) {
		var infix = "";
		elm = fobj.elements["x" + infix + "_is_active"];
		if (elm && !ew_CheckInteger(elm.value))
			return ew_OnError(this, elm, "<?php 
echo ew_JsEncode2($tbl_subject_faculty->is_active->FldErrMsg());
?>
");
		elm = fobj.elements["x" + infix + "_university_id"];
		if (elm && !ew_CheckInteger(elm.value))
			return ew_OnError(this, elm, "<?php 
echo ew_JsEncode2($tbl_subject_faculty->university_id->FldErrMsg());
?>
");

		// Set up row object
		ew_ElementsToRow(fobj, infix);

		// Fire Form_CustomValidate event
		if (!this.Form_CustomValidate(fobj))
			return false;
	}

	// Process detail page
	if (fobj.detailpage && fobj.detailpage.value && ewForms[fobj.detailpage.value])
		return ewForms[fobj.detailpage.value].Validate(fobj);
	return true;
开发者ID:huynt57,项目名称:bluebee-uet.com,代码行数:31,代码来源:tbl_subject_facultyedit.php


示例12: ew_JsEncode2

			elm = this.GetElements("x" + infix + "_url");
			if (elm && !ew_IsHidden(elm) && !ew_HasValue(elm))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2(str_replace("%s", $profile_pic->url->FldCaption(), $profile_pic->url->ReqErrMsg));
?>
");
			elm = this.GetElements("x" + infix + "_account_id");
			if (elm && !ew_IsHidden(elm) && !ew_HasValue(elm))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2(str_replace("%s", $profile_pic->account_id->FldCaption(), $profile_pic->account_id->ReqErrMsg));
?>
");
			elm = this.GetElements("x" + infix + "_account_id");
			if (elm && !ew_CheckInteger(elm.value))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2($profile_pic->account_id->FldErrMsg());
?>
");

			// Set up row object
			ew_ElementsToRow(fobj);

			// Fire Form_CustomValidate event
			if (!this.Form_CustomValidate(fobj))
				return false;
	}

	// Process detail forms
	var dfs = $fobj.find("input[name='detailpage']").get();
	for (var i = 0; i < dfs.length; i++) {
		var df = dfs[i], val = df.value;
开发者ID:Ombogo,项目名称:new_api_chat,代码行数:31,代码来源:profile_picedit.php


示例13: parseInt

	var $ = jQuery, fobj = this.GetForm(), $fobj = $(fobj);
	this.PostAutoSuggest();
	if ($fobj.find("#a_confirm").val() == "F")
		return true;
	var elm, felm, uelm, addcnt = 0;
	var $k = $fobj.find("#" + this.FormKeyCountName); // Get key_count
	var rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1;
	var startcnt = (rowcnt == 0) ? 0 : 1; // Check rowcnt == 0 => Inline-Add
	var gridinsert = $fobj.find("#a_list").val() == "gridinsert";
	for (var i = startcnt; i <= rowcnt; i++) {
		var infix = ($k[0]) ? String(i) : "";
		$fobj.data("rowindex", infix);
			elm = this.GetElements("x" + infix + "_Code");
			if (elm && !ew_HasValue(elm))
				return this.OnError(elm, ewLanguage.Phrase("EnterRequiredField") + " - <?php 
echo ew_JsEncode2($Continents->Code->FldCaption());
?>
");

			// Set up row object
			ew_ElementsToRow(fobj);

			// Fire Form_CustomValidate event
			if (!this.Form_CustomValidate(fobj))
				return false;
	}

	// Process detail forms
	var dfs = $fobj.find("input[name='detailpage']").get();
	for (var i = 0; i < dfs.length; i++) {
		var df = dfs[i], val = df.value;
开发者ID:evinw,项目名称:project_yess,代码行数:31,代码来源:Continentsedit.php


示例14: ew_OnError

		return true;
	var elm, aelm;
	var rowcnt = 1;
	var startcnt = (rowcnt == 0) ? 0 : 1; // rowcnt == 0 => Inline-Add
	for (var i = startcnt; i <= rowcnt; i++) {
		var infix = "";
		elm = fobj.elements["x" + infix + "_doc_type"];
		if (elm && !ew_CheckInteger(elm.value))
			return ew_OnError(this, elm, "<?php 
echo ew_JsEncode2($tbl_doc->doc_type->FldErrMsg());
?>
");
		elm = fobj.elements["x" + infix + "_subject_general_faculty_id"];
		if (elm && !ew_HasValue(elm))
			return ew_OnError(this, elm, ewLanguage.Phrase("EnterRequiredField") + " - <?php 
echo ew_JsEncode2($tbl_doc->subject_general_faculty_id->FldCaption());
?>
");

		// Set up row object
		ew_ElementsToRow(fobj, infix);

		// Fire Form_CustomValidate event
		if (!this.Form_CustomValidate(fobj))
			return false;
	}

	// Process detail page
	if (fobj.detailpage && fobj.detailpage.value && ewForms[fobj.detailpage.value])
		return ewForms[fobj.detailpage.value].Validate(fobj);
	return true;
开发者ID:huynt57,项目名称:bluebee-uet.com,代码行数:31,代码来源:tbl_docadd.php


示例15: ew_JsEncode2

			elm = this.GetElements("x" + infix + "_anio");
			if (elm && !ew_CheckRange(elm.value, 2012, 2100))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2($deudas->anio->FldErrMsg());
?>
");
			elm = this.GetElements("x" + infix + "_fecha");
			if (elm && !ew_CheckEuroDate(elm.value))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2($deudas->fecha->FldErrMsg());
?>
");
			elm = this.GetElements("x" + infix + "_monto");
			if (elm && !ew_CheckNumber(elm.value))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2($deudas->monto->FldErrMsg());
?>
");

			// Set up row object
			ew_ElementsToRow(fobj);

			// Fire Form_CustomValidate event
			if (!this.Form_CustomValidate(fobj))
				return false;
	}

	// Process detail forms
	var dfs = $fobj.find("input[name='detailpage']").get();
	for (var i = 0; i < dfs.length; i++) {
		var df = dfs[i], val = df.value;
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:cciag_deudasadd.php


示例16: ew_JsEncode2

			elm = this.GetElements("x" + infix + "_userlevelid");
			if (elm && !ew_IsHidden(elm) && !ew_HasValue(elm))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2(str_replace("%s", $userlevels->userlevelid->FldCaption(), $userlevels->userlevelid->ReqErrMsg));
?>
");
			elm = this.GetElements("x" + infix + "_userlevelid");
			if (elm && !ew_CheckInteger(elm.value))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2($userlevels->userlevelid->FldErrMsg());
?>
");
			elm = this.GetElements("x" + infix + "_userlevelname");
			if (elm && !ew_IsHidden(elm) && !ew_HasValue(elm))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2(str_replace("%s", $userlevels->userlevelname->FldCaption(), $userlevels->userlevelname->ReqErrMsg));
?>
");

			// Set up row object
			ew_ElementsToRow(fobj);

			// Fire Form_CustomValidate event
			if (!this.Form_CustomValidate(fobj))
				return false;
	}

	// Process detail forms
	var dfs = $fobj.find("input[name='detailpage']").get();
	for (var i = 0; i < dfs.length; i++) {
		var df = dfs[i], val = df.value;
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:cciag_userlevelsedit.php


示例17: ew_JsEncode2

			elm = this.GetElements("x" + infix + "_AIR_PORT_ID_DEPARTURE");
			if (elm && !ew_CheckInteger(elm.value))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2($flight->AIR_PORT_ID_DEPARTURE->FldErrMsg());
?>
");
			elm = this.GetElements("x" + infix + "_AIR_PORT_ID_ARRIVAL");
			if (elm && !ew_IsHidden(elm) && !ew_HasValue(elm))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2(str_replace("%s", $flight->AIR_PORT_ID_ARRIVAL->FldCaption(), $flight->AIR_PORT_ID_ARRIVAL->ReqErrMsg));
?>
");
			elm = this.GetElements("x" + infix + "_AIR_PORT_ID_ARRIVAL");
			if (elm && !ew_CheckInteger(elm.value))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2($flight->AIR_PORT_ID_ARRIVAL->FldErrMsg());
?>
");

			// Fire Form_CustomValidate event
			if (!this.Form_CustomValidate(fobj))
				return false;
	}

	// Process detail forms
	var dfs = $fobj.find("input[name='detailpage']").get();
	for (var i = 0; i < dfs.length; i++) {
		var df = dfs[i], val = df.value;
		if (val && ewForms[val])
			if (!ewForms[val].Validate())
				return false;
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:31,代码来源:flightadd.php


示例18: parseInt

	var $ = jQuery, fobj = this.GetForm(), $fobj = $(fobj);
	this.PostAutoSuggest();
	if ($fobj.find("#a_confirm").val() == "F")
		return true;
	var elm, felm, uelm, addcnt = 0;
	var $k = $fobj.find("#" + this.FormKeyCountName); // Get key_count
	var rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1;
	var startcnt = (rowcnt == 0) ? 0 : 1; // Check rowcnt == 0 => Inline-Add
	var gridinsert = $fobj.find("#a_list").val() == "gridinsert";
	for (var i = startcnt; i <= rowcnt; i++) {
		var infix = ($k[0]) ? String(i) : "";
		$fobj.data("rowindex", infix);
			elm = this.GetElements("x" + infix + "_estado");
			if (elm && !ew_HasValue(elm))
				return this.OnError(elm, ewLanguage.Phrase("EnterRequiredField") + " - <?php 
echo ew_JsEncode2($estados->estado->FldCaption());
?>
");

			// Set up row object
			ew_ElementsToRow(fobj);

			// Fire Form_CustomValidate event
			if (!this.Form_CustomValidate(fobj))
				return false;
	}

	// Process detail forms
	var dfs = $fobj.find("input[name='detailpage']").get();
	for (var i = 0; i < dfs.length; i++) {
		var df = dfs[i], val = df.value;
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:estadosadd.php


示例19: parseInt

		return true;
	var elm, felm, uelm, addcnt = 0;
	var $k = $fobj.find("#" + this.FormKeyCountName); // Get key_count
	var rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1;
	var startcnt = (rowcnt == 0) ? 0 : 1; // Check rowcnt == 0 => Inline-Add
	var gridinsert = $fobj.find("#a_list").val() == "gridinsert";
	for (var i = startcnt; i <= rowcnt; i++) {
		var infix = ($k[0]) ? String(i) : "";
		$fobj.data("rowindex", infix);
		var checkrow = (gridinsert) ? !this.EmptyRow(infix) : true;
		if (checkrow) {
			addcnt++;
			elm = this.GetElements("x" + infix + "_id_tramite");
			if (elm && !ew_IsHidden(elm) && !ew_HasValue(elm))
				return this.OnError(elm, "<?php 
    echo ew_JsEncode2(str_replace("%s", $seguimiento_tramites->id_tramite->FldCaption(), $seguimiento_tramites->id_tramite->ReqErrMsg));
    ?>
");

			// Set up row object
			ew_ElementsToRow(fobj);

			// Fire Form_CustomValidate event
			if (!this.Form_CustomValidate(fobj))
				return false;
		} // End Grid Add checking
	}
	if (gridinsert && addcnt == 0) { // No row added
		alert(ewLanguage.Phrase("NoAddRecord"));
		return false;
	}
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:cciag_seguimiento_tramiteslist.php


示例20: ew_JsEncode2

			elm = this.GetElements("x" + infix + "_VALID_THRU_MONTH");
			if (elm && !ew_CheckRange(elm.value, 1, 12))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2($card->VALID_THRU_MONTH->FldErrMsg());
?>
");
			elm = this.GetElements("x" + infix + "_VALID_THRU_YEAR");
			if (elm && !ew_IsHidden(elm) && !ew_HasValue(elm))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2(str_replace("%s", $card->VALID_THRU_YEAR->FldCaption(), $card->VALID_THRU_YEAR->ReqErrMsg));
?>
");
			elm = this.GetElements("x" + infix + "_VALID_THRU_YEAR");
			if (elm && !ew_CheckRange(elm.value, 15, 50))
				return this.OnError(elm, "<?php 
echo ew_JsEncode2($card->VALID_THRU_YEAR->FldErrMsg());
?>
");

			// Fire Form_CustomValidate event
			if (!this.Form_CustomValidate(fobj))
				return false;
	}

	// Process detail forms
	var dfs = $fobj.find("input[name='detailpage']").get();
	for (var i = 0; i < dfs.length; i++) {
		var df = dfs[i], val = df.value;
		if (val && ewForms[val])
			if (!ewForms[val].Validate())
				return false;
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:31,代码来源:cardadd.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP ew_Like函数代码示例发布时间:2022-05-15
下一篇:
PHP ew_IsValidOpr函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap