本文整理汇总了PHP中ew_AddMessage函数的典型用法代码示例。如果您正苦于以下问题:PHP ew_AddMessage函数的具体用法?PHP ew_AddMessage怎么用?PHP ew_AddMessage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ew_AddMessage函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!ew_CheckEuroDate($this->fecha_ini->FormValue)) {
ew_AddMessage($gsFormError, $this->fecha_ini->FldErrMsg());
}
if (!$this->id_cliente->FldIsDetailKey && !is_null($this->id_cliente->FormValue) && $this->id_cliente->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->id_cliente->FldCaption(), $this->id_cliente->ReqErrMsg));
}
if (!$this->id_localidad_origen->FldIsDetailKey && !is_null($this->id_localidad_origen->FormValue) && $this->id_localidad_origen->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->id_localidad_origen->FldCaption(), $this->id_localidad_origen->ReqErrMsg));
}
if (!$this->Origen->FldIsDetailKey && !is_null($this->Origen->FormValue) && $this->Origen->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->Origen->FldCaption(), $this->Origen->ReqErrMsg));
}
if (!$this->id_localidad_destino->FldIsDetailKey && !is_null($this->id_localidad_destino->FormValue) && $this->id_localidad_destino->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->id_localidad_destino->FldCaption(), $this->id_localidad_destino->ReqErrMsg));
}
if (!$this->Destino->FldIsDetailKey && !is_null($this->Destino->FormValue) && $this->Destino->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->Destino->FldCaption(), $this->Destino->ReqErrMsg));
}
if (!ew_CheckInteger($this->Km_ini->FormValue)) {
ew_AddMessage($gsFormError, $this->Km_ini->FldErrMsg());
}
if (!$this->id_vehiculo->FldIsDetailKey && !is_null($this->id_vehiculo->FormValue) && $this->id_vehiculo->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->id_vehiculo->FldCaption(), $this->id_vehiculo->ReqErrMsg));
}
if (!$this->id_tipo_carga->FldIsDetailKey && !is_null($this->id_tipo_carga->FormValue) && $this->id_tipo_carga->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->id_tipo_carga->FldCaption(), $this->id_tipo_carga->ReqErrMsg));
}
if (!ew_CheckInteger($this->km_fin->FormValue)) {
ew_AddMessage($gsFormError, $this->km_fin->FldErrMsg());
}
if (!ew_CheckEuroDate($this->fecha_fin->FormValue)) {
ew_AddMessage($gsFormError, $this->fecha_fin->FldErrMsg());
}
if (!ew_CheckNumber($this->adelanto->FormValue)) {
ew_AddMessage($gsFormError, $this->adelanto->FldErrMsg());
}
if (!ew_CheckInteger($this->kg_carga->FormValue)) {
ew_AddMessage($gsFormError, $this->kg_carga->FldErrMsg());
}
if (!$this->tarifa->FldIsDetailKey && !is_null($this->tarifa->FormValue) && $this->tarifa->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->tarifa->FldCaption(), $this->tarifa->ReqErrMsg));
}
if (!ew_CheckNumber($this->tarifa->FormValue)) {
ew_AddMessage($gsFormError, $this->tarifa->FldErrMsg());
}
if (!$this->porcentaje->FldIsDetailKey && !is_null($this->porcentaje->FormValue) && $this->porcentaje->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->porcentaje->FldCaption(), $this->porcentaje->ReqErrMsg));
}
if (!ew_CheckNumber($this->porcentaje->FormValue)) {
ew_AddMessage($gsFormError, $this->porcentaje->FldErrMsg());
}
// Validate detail grid
$DetailTblVar = explode(",", $this->getCurrentDetailTable());
if (in_array("gastos", $DetailTblVar) && $GLOBALS["gastos"]->DetailEdit) {
if (!isset($GLOBALS["gastos_grid"])) {
$GLOBALS["gastos_grid"] = new cgastos_grid();
}
// get detail page object
$GLOBALS["gastos_grid"]->ValidateGridForm();
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
开发者ID:scintes,项目名称:sistemas,代码行数:79,代码来源:hoja_rutasedit.php
示例2: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!$this->idservicio_medico->FldIsDetailKey && !is_null($this->idservicio_medico->FormValue) && $this->idservicio_medico->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->idservicio_medico->FldCaption(), $this->idservicio_medico->ReqErrMsg));
}
if (!$this->costo->FldIsDetailKey && !is_null($this->costo->FormValue) && $this->costo->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->costo->FldCaption(), $this->costo->ReqErrMsg));
}
if (!ew_CheckNumber($this->costo->FormValue)) {
ew_AddMessage($gsFormError, $this->costo->FldErrMsg());
}
// Validate detail grid
$DetailTblVar = explode(",", $this->getCurrentDetailTable());
if (in_array("doctor_servicio_medico_prestado", $DetailTblVar) && $GLOBALS["doctor_servicio_medico_prestado"]->DetailAdd) {
if (!isset($GLOBALS["doctor_servicio_medico_prestado_grid"])) {
$GLOBALS["doctor_servicio_medico_prestado_grid"] = new cdoctor_servicio_medico_prestado_grid();
}
// get detail page object
$GLOBALS["doctor_servicio_medico_prestado_grid"]->ValidateGridForm();
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:37,代码来源:servicio_medico_prestadoadd.php
示例3: setWarningMessage
function setWarningMessage($v)
{
ew_AddMessage($_SESSION[EW_SESSION_WARNING_MESSAGE], $v);
}
开发者ID:scintes,项目名称:sistemas,代码行数:4,代码来源:v_hoja_mantenimintolist.php
示例4: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!ew_CheckInteger($this->active->FormValue)) {
ew_AddMessage($gsFormError, $this->active->FldErrMsg());
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
开发者ID:huynt57,项目名称:bluebee-uet.com,代码行数:22,代码来源:tbl_lesson_videoedit.php
示例5: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
$lUpdateCnt = 0;
if ($this->M_url->MultiUpdate == "1") {
$lUpdateCnt++;
}
if ($lUpdateCnt == 0) {
$gsFormError = $Language->Phrase("NoFieldSelected");
return FALSE;
}
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if ($this->M_url->MultiUpdate != "" && $this->M_url->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->M_url->FldCaption(), $this->M_url->ReqErrMsg));
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
开发者ID:Ombogo,项目名称:new_api_chat,代码行数:30,代码来源:messagesupdate.php
示例6: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!$this->id_tramite->FldIsDetailKey && !is_null($this->id_tramite->FormValue) && $this->id_tramite->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->id_tramite->FldCaption(), $this->id_tramite->ReqErrMsg));
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
开发者ID:scintes,项目名称:sistemas,代码行数:22,代码来源:cciag_seguimiento_tramiteslist.php
示例7: ValidateForm
function ValidateForm($opwd, $npwd, $cpwd)
{
global $Language, $gsFormError;
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return TRUE;
}
// Initialize form error message
$gsFormError = "";
if ($opwd == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterOldPassword"));
}
if ($npwd == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterNewPassword"));
}
if ($npwd != $cpwd) {
ew_AddMessage($gsFormError, $Language->Phrase("MismatchPassword"));
}
// Return validate result
$valid = $gsFormError == "";
// Call Form CustomValidate event
$sFormCustomError = "";
$valid = $valid && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $valid;
}
开发者ID:scintes,项目名称:sistemas,代码行数:28,代码来源:changepwd.php
示例8: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if ($this->PATH->Upload->FileName == "" && !$this->PATH->Upload->KeepFile) {
ew_AddMessage($gsFormError, str_replace("%s", $this->PATH->FldCaption(), $this->PATH->ReqErrMsg));
}
if (!$this->PROCESS->FldIsDetailKey && !is_null($this->PROCESS->FormValue) && $this->PROCESS->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->PROCESS->FldCaption(), $this->PROCESS->ReqErrMsg));
}
if (!ew_CheckInteger($this->PROCESS->FormValue)) {
ew_AddMessage($gsFormError, $this->PROCESS->FldErrMsg());
}
if (!$this->BANK_ACCOUNT_ID->FldIsDetailKey && !is_null($this->BANK_ACCOUNT_ID->FormValue) && $this->BANK_ACCOUNT_ID->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->BANK_ACCOUNT_ID->FldCaption(), $this->BANK_ACCOUNT_ID->ReqErrMsg));
}
if (!ew_CheckInteger($this->BANK_ACCOUNT_ID->FormValue)) {
ew_AddMessage($gsFormError, $this->BANK_ACCOUNT_ID->FldErrMsg());
}
if (!$this->UPLOAD_FILE_STATUS_ID->FldIsDetailKey && !is_null($this->UPLOAD_FILE_STATUS_ID->FormValue) && $this->UPLOAD_FILE_STATUS_ID->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->UPLOAD_FILE_STATUS_ID->FldCaption(), $this->UPLOAD_FILE_STATUS_ID->ReqErrMsg));
}
if (!ew_CheckInteger($this->UPLOAD_FILE_STATUS_ID->FormValue)) {
ew_AddMessage($gsFormError, $this->UPLOAD_FILE_STATUS_ID->FldErrMsg());
}
if (!$this->DATETIME->FldIsDetailKey && !is_null($this->DATETIME->FormValue) && $this->DATETIME->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->DATETIME->FldCaption(), $this->DATETIME->ReqErrMsg));
}
if (!ew_CheckEuroDate($this->DATETIME->FormValue)) {
ew_AddMessage($gsFormError, $this->DATETIME->FldErrMsg());
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:46,代码来源:upload_fileadd.php
示例9: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError, $t_promotions_admin;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!is_null($t_promotions_admin->titre->FormValue) && $t_promotions_admin->titre->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $t_promotions_admin->titre->FldCaption());
}
if (!ew_CheckInteger($t_promotions_admin->id_cat_vin->FormValue)) {
ew_AddMessage($gsFormError, $t_promotions_admin->id_cat_vin->FldErrMsg());
}
if (!ew_CheckInteger($t_promotions_admin->id_region_du_monde->FormValue)) {
ew_AddMessage($gsFormError, $t_promotions_admin->id_region_du_monde->FldErrMsg());
}
if (!ew_CheckInteger($t_promotions_admin->id_pays->FormValue)) {
ew_AddMessage($gsFormError, $t_promotions_admin->id_pays->FldErrMsg());
}
if (!ew_CheckInteger($t_promotions_admin->id_region->FormValue)) {
ew_AddMessage($gsFormError, $t_promotions_admin->id_region->FldErrMsg());
}
if (!ew_CheckInteger($t_promotions_admin->id_sous_region->FormValue)) {
ew_AddMessage($gsFormError, $t_promotions_admin->id_sous_region->FldErrMsg());
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
开发者ID:Razinsky,项目名称:echaude-com,代码行数:37,代码来源:t_promotions_adminadd.php
示例10: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!$this->Code->FldIsDetailKey && !is_null($this->Code->FormValue) && $this->Code->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->Code->FldCaption());
}
if (!$this->Name->FldIsDetailKey && !is_null($this->Name->FormValue) && $this->Name->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->Name->FldCaption());
}
if (!$this->FullName->FldIsDetailKey && !is_null($this->FullName->FormValue) && $this->FullName->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->FullName->FldCaption());
}
if (!$this->ISO3->FldIsDetailKey && !is_null($this->ISO3->FormValue) && $this->ISO3->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->ISO3->FldCaption());
}
if (!$this->Number->FldIsDetailKey && !is_null($this->Number->FormValue) && $this->Number->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->Number->FldCaption());
}
if (!ew_CheckInteger($this->Number->FormValue)) {
ew_AddMessage($gsFormError, $this->Number->FldErrMsg());
}
if (!$this->ContinentCode->FldIsDetailKey && !is_null($this->ContinentCode->FormValue) && $this->ContinentCode->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->ContinentCode->FldCaption());
}
if (!$this->DisplayOrder->FldIsDetailKey && !is_null($this->DisplayOrder->FormValue) && $this->DisplayOrder->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->DisplayOrder->FldCaption());
}
if (!ew_CheckInteger($this->DisplayOrder->FormValue)) {
ew_AddMessage($gsFormError, $this->DisplayOrder->FldErrMsg());
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
开发者ID:evinw,项目名称:project_yess,代码行数:46,代码来源:Countriesedit.php
示例11: ew_ErrorFn
function ew_ErrorFn($DbType, $ErrorType, $ErrorNo, $ErrorMsg, $Param1, $Param2, $Object)
{
if ($ErrorType == 'CONNECT') {
$msg = "Failed to connect to {$Param2} at {$Param1}. Error: " . $ErrorMsg;
} elseif ($ErrorType == 'EXECUTE') {
if (EW_DEBUG_ENABLED) {
$msg = "Failed to execute SQL: {$Param1}. Error: " . $ErrorMsg;
} else {
$msg = "Failed to execute SQL. Error: " . $ErrorMsg;
}
}
ew_AddMessage($_SESSION[EW_SESSION_FAILURE_MESSAGE], $msg);
}
开发者ID:Razinsky,项目名称:echaude-com,代码行数:13,代码来源:phpfn8.php
示例12: ValidateForm
function ValidateForm($usr, $pwd)
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return TRUE;
}
if (trim($usr) == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterUid"));
}
if (trim($pwd) == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterPwd"));
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form Custom Validate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:25,代码来源:loginPop.php
示例13: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!ew_CheckRange($this->mes->FormValue, 1, 12)) {
ew_AddMessage($gsFormError, $this->mes->FldErrMsg());
}
if (!ew_CheckRange($this->anio->FormValue, 2012, 2100)) {
ew_AddMessage($gsFormError, $this->anio->FldErrMsg());
}
if (!ew_CheckEuroDate($this->fecha->FormValue)) {
ew_AddMessage($gsFormError, $this->fecha->FldErrMsg());
}
if (!ew_CheckNumber($this->monto->FormValue)) {
ew_AddMessage($gsFormError, $this->monto->FldErrMsg());
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:cciag_deudaslist.php
示例14: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!$this->category_id->FldIsDetailKey && !is_null($this->category_id->FormValue) && $this->category_id->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->category_id->FldCaption(), $this->category_id->ReqErrMsg));
}
if (!$this->scat_name->FldIsDetailKey && !is_null($this->scat_name->FormValue) && $this->scat_name->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->scat_name->FldCaption(), $this->scat_name->ReqErrMsg));
}
if (!$this->scat_description->FldIsDetailKey && !is_null($this->scat_description->FormValue) && $this->scat_description->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->scat_description->FldCaption(), $this->scat_description->ReqErrMsg));
}
if ($this->scat_picture->Upload->FileName == "" && !$this->scat_picture->Upload->KeepFile) {
ew_AddMessage($gsFormError, str_replace("%s", $this->scat_picture->FldCaption(), $this->scat_picture->ReqErrMsg));
}
// Validate detail grid
$DetailTblVar = explode(",", $this->getCurrentDetailTable());
if (in_array("products", $DetailTblVar) && $GLOBALS["products"]->DetailAdd) {
if (!isset($GLOBALS["products_grid"])) {
$GLOBALS["products_grid"] = new cproducts_grid();
}
// get detail page object
$GLOBALS["products_grid"]->ValidateGridForm();
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
开发者ID:NaurozAhmad,项目名称:G-Axis,代码行数:40,代码来源:sub_categoryadd.php
示例15: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!$this->CODE->FldIsDetailKey && !is_null($this->CODE->FormValue) && $this->CODE->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->CODE->FldCaption(), $this->CODE->ReqErrMsg));
}
if (!$this->AIRPLANE_ID->FldIsDetailKey && !is_null($this->AIRPLANE_ID->FormValue) && $this->AIRPLANE_ID->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->AIRPLANE_ID->FldCaption(), $this->AIRPLANE_ID->ReqErrMsg));
}
if (!ew_CheckInteger($this->AIRPLANE_ID->FormValue)) {
ew_AddMessage($gsFormError, $this->AIRPLANE_ID->FldErrMsg());
}
if (!$this->AIR_PORT_ID_DEPARTURE->FldIsDetailKey && !is_null($this->AIR_PORT_ID_DEPARTURE->FormValue) && $this->AIR_PORT_ID_DEPARTURE->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->AIR_PORT_ID_DEPARTURE->FldCaption(), $this->AIR_PORT_ID_DEPARTURE->ReqErrMsg));
}
if (!ew_CheckInteger($this->AIR_PORT_ID_DEPARTURE->FormValue)) {
ew_AddMessage($gsFormError, $this->AIR_PORT_ID_DEPARTURE->FldErrMsg());
}
if (!$this->AIR_PORT_ID_ARRIVAL->FldIsDetailKey && !is_null($this->AIR_PORT_ID_ARRIVAL->FormValue) && $this->AIR_PORT_ID_ARRIVAL->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->AIR_PORT_ID_ARRIVAL->FldCaption(), $this->AIR_PORT_ID_ARRIVAL->ReqErrMsg));
}
if (!ew_CheckInteger($this->AIR_PORT_ID_ARRIVAL->FormValue)) {
ew_AddMessage($gsFormError, $this->AIR_PORT_ID_ARRIVAL->FldErrMsg());
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:40,代码来源:flightadd.php
示例16: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!ew_CheckInteger($this->doc_type->FormValue)) {
ew_AddMessage($gsFormError, $this->doc_type->FldErrMsg());
}
if (!is_null($this->subject_general_faculty_id->FormValue) && $this->subject_general_faculty_id->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $this->subject_general_faculty_id->FldCaption());
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
开发者ID:huynt57,项目名称:bluebee-uet.com,代码行数:25,代码来源:tbl_docadd.php
示例17: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!ew_CheckNumber($this->importe->FormValue)) {
ew_AddMessage($gsFormError, $this->importe->FldErrMsg());
}
if (!ew_CheckEuroDate($this->fecha_creacion->FormValue)) {
ew_AddMessage($gsFormError, $this->fecha_creacion->FldErrMsg());
}
// Validate detail grid
$DetailTblVar = explode(",", $this->getCurrentDetailTable());
if (in_array("socios_cuotas", $DetailTblVar) && $GLOBALS["socios_cuotas"]->DetailAdd) {
if (!isset($GLOBALS["socios_cuotas_grid"])) {
$GLOBALS["socios_cuotas_grid"] = new csocios_cuotas_grid();
}
// get detail page object
$GLOBALS["socios_cuotas_grid"]->ValidateGridForm();
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
开发者ID:scintes,项目名称:sistemas,代码行数:34,代码来源:cciag_montosadd.php
示例18: ValidateSearch
function ValidateSearch()
{
global $gsSearchError;
// Initialize
$gsSearchError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return TRUE;
}
if (!ew_CheckInteger($this->id->AdvancedSearch->SearchValue)) {
ew_AddMessage($gsSearchError, $this->id->FldErrMsg());
}
if (!ew_CheckNumber($this->importe->AdvancedSearch->SearchValue)) {
ew_AddMessage($gsSearchError, $this->importe->FldErrMsg());
}
if (!ew_CheckEuroDate($this->fecha_creacion->AdvancedSearch->SearchValue)) {
ew_AddMessage($gsSearchError, $this->fecha_creacion->FldErrMsg());
}
// Return validate result
$ValidateSearch = $gsSearchError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateSearch = $ValidateSearch && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsSearchError, $sFormCustomError);
}
return $ValidateSearch;
}
开发者ID:scintes,项目名称:sistemas,代码行数:28,代码来源:cciag_montossrch.php
示例19: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!$this->name->FldIsDetailKey && !is_null($this->name->FormValue) && $this->name->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->name->FldCaption(), $this->name->ReqErrMsg));
}
if (!$this->_email->FldIsDetailKey && !is_null($this->_email->FormValue) && $this->_email->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->_email->FldCaption(), $this->_email->ReqErrMsg));
}
if (!$this->birthday->FldIsDetailKey && !is_null($this->birthday->FormValue) && $this->birthday->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->birthday->FldCaption(), $this->birthday->ReqErrMsg));
}
if (!ew_CheckEuroDate($this->birthday->FormValue)) {
ew_AddMessage($gsFormError, $this->birthday->FldErrMsg());
}
if ($this->profession->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->profession->FldCaption(), $this->profession->ReqErrMsg));
}
if ($this->game_type->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->game_type->FldCaption(), $this->game_type->ReqErrMsg));
}
if (!$this->has_expansion->FldIsDetailKey && !is_null($this->has_expansion->FormValue) && $this->has_expansion->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->has_expansion->FldCaption(), $this->has_expansion->ReqErrMsg));
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
开发者ID:NoSympathy,项目名称:Dashboard,代码行数:40,代码来源:nos_membersedit.php
示例20: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!$this->NAME_IN_CARD->FldIsDetailKey && !is_null($this->NAME_IN_CARD->FormValue) && $this->NAME_IN_CARD->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->NAME_IN_CARD->FldCaption(), $this->NAME_IN_CARD->ReqErrMsg));
}
if (!$this->NUMBER->FldIsDetailKey && !is_null($this->NUMBER->FormValue) && $this->NUMBER->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->NUMBER->FldCaption(), $this->NUMBER->ReqErrMsg));
}
if (!ew_CheckCreditCard($this->NUMBER->FormValue)) {
ew_AddMessage($gsFormError, $this->NUMBER->FldErrMsg());
}
if (!$this->CARD_TYPE_ID->FldIsDetailKey && !is_null($this->CARD_TYPE_ID->FormValue) && $this->CARD_TYPE_ID->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->CARD_TYPE_ID->FldCaption(), $this->CARD_TYPE_ID->ReqErrMsg));
}
if (!$this->BANK_ID->FldIsDetailKey && !is_null($this->BANK_ID->FormValue) && $this->BANK_ID->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->BANK_ID->FldCaption(), $this->BANK_ID->ReqErrMsg));
}
if (!$this->VALID_THRU_MONTH->FldIsDetailKey && !is_null($this->VALID_THRU_MONTH->FormValue) && $this->VALID_THRU_MONTH->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->VALID_THRU_MONTH->FldCaption(), $this->VALID_THRU_MONTH->ReqErrMsg));
}
if (!ew_CheckRange($this->VALID_THRU_MONTH->FormValue, 1, 12)) {
ew_AddMessage($gsFormError, $this->VALID_THRU_MONTH->FldErrMsg());
}
if (!$this->VALID_THRU_YEAR->FldIsDetailKey && !is_null($this->VALID_THRU_YEAR->FormValue) && $this->VALID_THRU_YEAR->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->VALID_THRU_YEAR->FldCaption(), $this->VALID_THRU_YEAR->ReqErrMsg));
}
if (!ew_CheckRange($this->VALID_THRU_YEAR->FormValue, 15, 50)) {
ew_AddMessage($gsFormError, $this->VALID_THRU_YEAR->FldErrMsg());
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
ew_AddMessage($gsFormError, $sFormCustomError);
}
return $ValidateForm;
}
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:46,代码来源:cardadd.php
注:本文中的ew_AddMessage函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论