本文整理汇总了PHP中ew_CheckInteger函数的典型用法代码示例。如果您正苦于以下问题:PHP ew_CheckInteger函数的具体用法?PHP ew_CheckInteger怎么用?PHP ew_CheckInteger使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ew_CheckInteger函数的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_CheckInteger($this->codigo->FormValue)) {
ew_AddMessage($gsFormError, $this->codigo->FldErrMsg());
}
if (!$this->usuario->FldIsDetailKey && !is_null($this->usuario->FormValue) && $this->usuario->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->usuario->FldCaption(), $this->usuario->ReqErrMsg));
}
if (!$this->contrasenia->FldIsDetailKey && !is_null($this->contrasenia->FormValue) && $this->contrasenia->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->contrasenia->FldCaption(), $this->contrasenia->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 (!ew_CheckEmail($this->_email->FormValue)) {
ew_AddMessage($gsFormError, $this->_email->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,代码行数:34,代码来源:usuariosedit.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->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
示例3: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError, $tbl_user_level;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!is_null($tbl_user_level->userlevelid->FormValue) && $tbl_user_level->userlevelid->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $tbl_user_level->userlevelid->FldCaption();
}
if (!ew_CheckInteger($tbl_user_level->userlevelid->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= $tbl_user_level->userlevelid->FldErrMsg();
}
if (!is_null($tbl_user_level->userlevelname->FormValue) && $tbl_user_level->userlevelname->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $tbl_user_level->userlevelname->FldCaption();
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= $sFormCustomError;
}
return $ValidateForm;
}
开发者ID:jliman,项目名称:SEOStat,代码行数:34,代码来源:tbl_user_leveledit.php
示例4: ValidateForm
function ValidateForm()
{
global $gsFormError, $Orders;
// Initialize
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if ($Orders->CustomerID->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - Customer";
}
if (!ew_CheckInteger($Orders->TransactionNumber->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect integer - Transaction Number";
}
if ($Orders->DateOrdered->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - Date Ordered";
}
if (!ew_CheckUSDate($Orders->DateOrdered->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect date, format = mm/dd/yyyy - Date Ordered";
}
if ($Orders->Total->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - Total";
}
if (!ew_CheckNumber($Orders->Total->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect floating point number - Total";
}
if ($Orders->DeliveryDate->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - Delivery Date";
}
if (!ew_CheckUSDate($Orders->DeliveryDate->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect date, format = mm/dd/yyyy - Delivery Date";
}
if ($Orders->Timestamp->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - Timestamp";
}
if (!ew_CheckUSDate($Orders->Timestamp->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect date, format = mm/dd/yyyy - Timestamp";
}
if (!ew_CheckInteger($Orders->Sequence->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect integer - Sequence";
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= $sFormCustomError;
}
return $ValidateForm;
}
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:76,代码来源:Ordersadd.php
示例5: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!ew_CheckEuroDate($this->fecha->FormValue)) {
ew_AddMessage($gsFormError, $this->fecha->FldErrMsg());
}
if (!ew_CheckNumber($this->iva->FormValue)) {
ew_AddMessage($gsFormError, $this->iva->FldErrMsg());
}
if (!ew_CheckNumber($this->Importe->FormValue)) {
ew_AddMessage($gsFormError, $this->Importe->FldErrMsg());
}
if (!ew_CheckInteger($this->id_hoja_mantenimiento->FormValue)) {
ew_AddMessage($gsFormError, $this->id_hoja_mantenimiento->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,代码行数:29,代码来源:v_gastos_mgridcls.php
示例6: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError, $tbl_facebook_stat;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!is_null($tbl_facebook_stat->id_profile->FormValue) && $tbl_facebook_stat->id_profile->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $tbl_facebook_stat->id_profile->FldCaption();
}
if (!is_null($tbl_facebook_stat->stat_date->FormValue) && $tbl_facebook_stat->stat_date->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $tbl_facebook_stat->stat_date->FldCaption();
}
if (!ew_CheckDate($tbl_facebook_stat->stat_date->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= $tbl_facebook_stat->stat_date->FldErrMsg();
}
if (!is_null($tbl_facebook_stat->year->FormValue) && $tbl_facebook_stat->year->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $tbl_facebook_stat->year->FldCaption();
}
if (!ew_CheckInteger($tbl_facebook_stat->year->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= $tbl_facebook_stat->year->FldErrMsg();
}
if (!is_null($tbl_facebook_stat->month->FormValue) && $tbl_facebook_stat->month->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $tbl_facebook_stat->month->FldCaption();
}
if (!ew_CheckInteger($tbl_facebook_stat->month->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= $tbl_facebook_stat->month->FldErrMsg();
}
if (!is_null($tbl_facebook_stat->week->FormValue) && $tbl_facebook_stat->week->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $tbl_facebook_stat->week->FldCaption();
}
if (!ew_CheckInteger($tbl_facebook_stat->week->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= $tbl_facebook_stat->week->FldErrMsg();
}
if (!ew_CheckInteger($tbl_facebook_stat->interactions->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= $tbl_facebook_stat->interactions->FldErrMsg();
}
if (!ew_CheckInteger($tbl_facebook_stat->comments->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= $tbl_facebook_stat->comments->FldErrMsg();
}
if (!ew_CheckInteger($tbl_facebook_stat->wallposts->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= $tbl_facebook_stat->wallposts->FldErrMsg();
}
if (!ew_CheckInteger($tbl_facebook_stat->fans->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= $tbl_facebook_stat->fans->FldErrMsg();
}
if (!ew_CheckInteger($tbl_facebook_stat->likes->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= $tbl_facebook_stat->likes->FldErrMsg();
}
if (!is_null($tbl_facebook_stat->unsubscribe->FormValue) && $tbl_facebook_stat->unsubscribe->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= $Language->Phrase("EnterRequiredField") . " - " . $tbl_facebook_stat->unsubscribe->FldCaption();
}
if (!ew_CheckInteger($tbl_facebook_stat->unsubscribe->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= $tbl_facebook_stat->unsubscribe->FldErrMsg();
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
//.........这里部分代码省略.........
开发者ID:jliman,项目名称:SEOStat,代码行数:101,代码来源:tbl_facebook_statadd.php
示例7: 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
示例8: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
$lUpdateCnt = 0;
if ($this->detalle->MultiUpdate == "1") {
$lUpdateCnt++;
}
if ($this->fecha->MultiUpdate == "1") {
$lUpdateCnt++;
}
if ($this->id_tipo_gasto->MultiUpdate == "1") {
$lUpdateCnt++;
}
if ($this->id_hoja_mantenimeinto->MultiUpdate == "1") {
$lUpdateCnt++;
}
if ($lUpdateCnt == 0) {
$gsFormError = $Language->Phrase("NoFieldSelected");
return FALSE;
}
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if ($this->fecha->MultiUpdate != "") {
if (!ew_CheckEuroDate($this->fecha->FormValue)) {
ew_AddMessage($gsFormError, $this->fecha->FldErrMsg());
}
}
if ($this->id_hoja_mantenimeinto->MultiUpdate != "") {
if (!ew_CheckInteger($this->id_hoja_mantenimeinto->FormValue)) {
ew_AddMessage($gsFormError, $this->id_hoja_mantenimeinto->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,代码行数:46,代码来源:gastos_mantenimientosupdate.php
示例9: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!$this->PASSANGER_ID->FldIsDetailKey && !is_null($this->PASSANGER_ID->FormValue) && $this->PASSANGER_ID->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->PASSANGER_ID->FldCaption(), $this->PASSANGER_ID->ReqErrMsg));
}
if (!ew_CheckInteger($this->PASSANGER_ID->FormValue)) {
ew_AddMessage($gsFormError, $this->PASSANGER_ID->FldErrMsg());
}
if (!$this->FLIGHT_ID->FldIsDetailKey && !is_null($this->FLIGHT_ID->FormValue) && $this->FLIGHT_ID->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->FLIGHT_ID->FldCaption(), $this->FLIGHT_ID->ReqErrMsg));
}
if (!ew_CheckInteger($this->FLIGHT_ID->FormValue)) {
ew_AddMessage($gsFormError, $this->FLIGHT_ID->FldErrMsg());
}
if (!$this->GATE->FldIsDetailKey && !is_null($this->GATE->FormValue) && $this->GATE->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->GATE->FldCaption(), $this->GATE->ReqErrMsg));
}
if (!ew_CheckNumber($this->GATE->FormValue)) {
ew_AddMessage($gsFormError, $this->GATE->FldErrMsg());
}
if (!$this->SEAT->FldIsDetailKey && !is_null($this->SEAT->FormValue) && $this->SEAT->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->SEAT->FldCaption(), $this->SEAT->ReqErrMsg));
}
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());
}
if (!$this->RESERVATION_ID->FldIsDetailKey && !is_null($this->RESERVATION_ID->FormValue) && $this->RESERVATION_ID->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->RESERVATION_ID->FldCaption(), $this->RESERVATION_ID->ReqErrMsg));
}
if (!ew_CheckInteger($this->RESERVATION_ID->FormValue)) {
ew_AddMessage($gsFormError, $this->RESERVATION_ID->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,代码行数:52,代码来源:boardingadd.php
示例10: ValidateForm
function ValidateForm()
{
global $gsFormError, $Menus;
// Initialize
$gsFormError = "";
if ($Menus->MenuName->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - Menu Name";
}
if ($Menus->Sequence->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - Sequence";
}
if (!ew_CheckRange($Menus->Sequence->FormValue, 0, 65535)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Number must be between 0 and 65535 - Sequence";
}
if ($Menus->Active->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - Active";
}
if (!ew_CheckInteger($Menus->packing_slip_sequence->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect integer - packing slip sequence";
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= $sFormCustomError;
}
return $ValidateForm;
}
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:40,代码来源:Menusaddopt.php
示例11: ValidateForm
function ValidateForm()
{
global $gsFormError, $Customers;
// Initialize
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!ew_CheckEmail($Customers->zEmail->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect email - Email";
}
if ($Customers->Password->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - Password";
}
if ($Customers->FirstName->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - First Name";
}
if ($Customers->LastName->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - Last Name";
}
if (!ew_CheckPhone($Customers->ContactPhone->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect phone number - Contact Phone";
}
if (!ew_CheckZip($Customers->DeliveryZip->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect ZIP code - Delivery Zip";
}
if (!ew_CheckZip($Customers->BillingZip->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect ZIP code - Billing Zip";
}
if (!ew_CheckPhone($Customers->BillingPhone->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect phone number - Billing Phone";
}
if (!ew_CheckInteger($Customers->BillingCardNumber->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect integer - Billing Card Number";
}
if (!ew_CheckInteger($Customers->CIMCustID->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect integer - Authorize.net Customer Profile ID";
}
if (!ew_CheckInteger($Customers->CIMPymtProfID->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect integer - Authorize.net Payment Profile ID";
}
if (!ew_CheckUSDate($Customers->First_Order_Date->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect date, format = mm/dd/yyyy - First Order Date";
}
if (!ew_CheckEuroDate($Customers->Last_Order_Date->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect date, format = dd/mm/yyyy - Last Order Date";
}
if ($Customers->Total_Orders->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - Total Orders";
}
if (!ew_CheckInteger($Customers->Total_Orders->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect integer - Total Orders";
}
if ($Customers->WeeklyMeals->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - Subscription Weekly Meals";
}
if (!ew_CheckRange($Customers->WeeklyMeals->FormValue, 0, 255)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Number must be between 0 and 255 - Subscription Weekly Meals";
//.........这里部分代码省略.........
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:101,代码来源:Customersedit.php
示例12: ValidateForm
function ValidateForm()
{
global $Language, $gsFormError, $t_vins_verre;
// Initialize form error message
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!is_null($t_vins_verre->produit_vin->FormValue) && $t_vins_verre->produit_vin->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $t_vins_verre->produit_vin->FldCaption());
}
if (!ew_CheckInteger($t_vins_verre->produit_vin->FormValue)) {
ew_AddMessage($gsFormError, $t_vins_verre->produit_vin->FldErrMsg());
}
if (!is_null($t_vins_verre->prix_vente->FormValue) && $t_vins_verre->prix_vente->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $t_vins_verre->prix_vente->FldCaption());
}
if (!ew_CheckNumber($t_vins_verre->prix_vente->FormValue)) {
ew_AddMessage($gsFormError, $t_vins_verre->prix_vente->FldErrMsg());
}
if (!is_null($t_vins_verre->format->FormValue) && $t_vins_verre->format->FormValue == "") {
ew_AddMessage($gsFormError, $Language->Phrase("EnterRequiredField") . " - " . $t_vins_verre->format->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:Razinsky,项目名称:echaude-com,代码行数:34,代码来源:t_vins_verreedit.php
示例13: ValidateSearch
function ValidateSearch()
{
global $gsSearchError, $tbl_profile;
// Initialize
$gsSearchError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return TRUE;
}
if (!ew_CheckInteger($tbl_profile->id->AdvancedSearch->SearchValue)) {
if ($gsSearchError != "") {
$gsSearchError .= "<br>";
}
$gsSearchError .= $tbl_profile->id->FldErrMsg();
}
// Return validate result
$ValidateSearch = $gsSearchError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateSearch = $ValidateSearch && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
if ($gsSearchError != "") {
$gsSearchError .= "<br>";
}
$gsSearchError .= $sFormCustomError;
}
return $ValidateSearch;
}
开发者ID:jliman,项目名称:SEOStat,代码行数:28,代码来源:tbl_profilesrch.php
示例14: ValidateForm
function ValidateForm()
{
global $gsFormError, $OrderDetails;
// Initialize
$gsFormError = "";
// Check if validation required
if (!EW_SERVER_VALIDATE) {
return $gsFormError == "";
}
if (!ew_CheckInteger($OrderDetails->OrderID->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect integer - Order ID";
}
if ($OrderDetails->CustomerID->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - Customer";
}
if ($OrderDetails->ItemID->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - Item Name";
}
if ($OrderDetails->Count->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - Regular Servings";
}
if (!ew_CheckRange($OrderDetails->Count->FormValue, 0, 65535)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Number must be between 0 and 65535 - Regular Servings";
}
if ($OrderDetails->VegCount->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - Vegetarian Servings";
}
if (!ew_CheckInteger($OrderDetails->VegCount->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect integer - Vegetarian Servings";
}
if ($OrderDetails->Amount->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - Amount";
}
if (!ew_CheckNumber($OrderDetails->Amount->FormValue)) {
if ($gsFormError != "") {
$gsFormError .= "<br>";
}
$gsFormError .= "Incorrect floating point number - Amount";
}
if ($OrderDetails->Chefs_Tasting->FormValue == "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= "Please enter required field - Chefs Tasting";
}
// Return validate result
$ValidateForm = $gsFormError == "";
// Call Form_CustomValidate event
$sFormCustomError = "";
$ValidateForm = $ValidateForm && $this->Form_CustomValidate($sFormCustomError);
if ($sFormCustomError != "") {
$gsFormError .= $gsFormError != "" ? "<br>" : "";
$gsFormError .= $sFormCustomError;
}
return $ValidateForm;
}
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:68,代码来源:OrderDetailsadd.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->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
示例16: 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 (!ew_CheckNumber($this->CODE->FormValue)) {
ew_AddMessage($gsFormError, $this->CODE->FldErrMsg());
}
if (!$this->DESCRIPTION->FldIsDetailKey && !is_null($this->DESCRIPTION->FormValue) && $this->DESCRIPTION->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->DESCRIPTION->FldCaption(), $this->DESCRIPTION->ReqErrMsg));
}
if (!$this->DATE->FldIsDetailKey && !is_null($this->DATE->FormValue) && $this->DATE->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->DATE->FldCaption(), $this->DATE->ReqErrMsg));
}
if (!ew_CheckEuroDate($this->DATE->FormValue)) {
ew_AddMessage($gsFormError, $this->DATE->FldErrMsg());
}
if (!$this->AMOUNT->FldIsDetailKey && !is_null($this->AMOUNT->FormValue) && $this->AMOUNT->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->AMOUNT->FldCaption(), $this->AMOUNT->ReqErrMsg));
}
if (!ew_CheckNumber($this->AMOUNT->FormValue)) {
ew_AddMessage($gsFormError, $this->AMOUNT->FldErrMsg());
}
if (!$this->UPLOAD_FILE_ID->FldIsDetailKey && !is_null($this->UPLOAD_FILE_ID->FormValue) && $this->UPLOAD_FILE_ID->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->UPLOAD_FILE_ID->FldCaption(), $this->UPLOAD_FILE_ID->ReqErrMsg));
}
if (!ew_CheckInteger($this->UPLOAD_FILE_ID->FormValue)) {
ew_AddMessage($gsFormError, $this->UPLOAD_FILE_ID->FldErrMsg());
}
if (!$this->UPLOAD_FILE_DETAIL_STATUS_ID->FldIsDetailKey && !is_null($this->UPLOAD_FILE_DETAIL_STATUS_ID->FormValue) && $this->UPLOAD_FILE_DETAIL_STATUS_ID->FormValue == "") {
ew_AddMessage($gsFormError, str_replace("%s", $this->UPLOAD_FILE_DETAIL_STATUS_ID->FldCaption(), $this->UPLOAD_FILE_DETAIL_STATUS_ID->ReqErrMsg));
}
if (!ew_CheckInteger($this->UPLOAD_FILE_DETAIL_STATUS_ID->FormValue)) {
ew_AddMessage($gsFormError, $this->UPLOAD_FILE_DETAIL_STATUS_ID->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,代码行数:52,代码来源:upload_file_detailadd.php
-
ndims是matlab中求一个数组维数的函数。调用格式:n=ndims(A)将A的维数返回给变量n。n
阅读:507|2022-07-18
-
wangchenyan/ponyweather: Android weather app use rxjavaretrofitmaterial design
阅读:739|2022-08-17
-
日常生活中,妈妈无微不至的照顾着我们的起居饮食,我们也来为妈妈做点什么吧,自制小
阅读:682|2022-11-06
-
** REJECT ** DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: none. Reason: This ca
阅读:519|2022-07-29
-
jagregory/abrash-black-book: Markdown source for Michael Abrash's Graphics P
阅读:354|2022-08-18
-
An issue was discovered in PESCMS-V2.3.3. There is a CSRF vulnerability that can
阅读:1250|2022-07-08
-
microsoft/Mesh-processing-library: C++ library and programs that demonstrate mes
阅读:1114|2022-08-15
-
MaximusZhou/InspectLua: 深入学习lua
阅读:708|2022-08-17
-
Mortennn/Dozer: Hide menu bar icons on macOS
阅读:714|2022-08-18
-
ashwinvis/mastodon-relax: A relaxed view for Mastodon's advanced interface.
阅读:345|2022-08-17
|
请发表评论