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

PHP ew_ValueSeparator函数代码示例

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

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



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

示例1: RenderRow

 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // iddoctor_especialidad
     // iddoctor
     // idespecialidad
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // iddoctor_especialidad
         $this->iddoctor_especialidad->ViewValue = $this->iddoctor_especialidad->CurrentValue;
         $this->iddoctor_especialidad->ViewCustomAttributes = "";
         // iddoctor
         if (strval($this->iddoctor->CurrentValue) != "") {
             $sFilterWrk = "`iddoctor`" . ew_SearchString("=", $this->iddoctor->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `iddoctor`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, `apellido` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `doctor`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             // Call Lookup selecting
             $this->Lookup_Selecting($this->iddoctor, $sWhereWrk);
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->iddoctor->ViewValue = $rswrk->fields('DispFld');
                 $this->iddoctor->ViewValue .= ew_ValueSeparator(2, $this->iddoctor) . $rswrk->fields('Disp3Fld');
                 $rswrk->Close();
             } else {
                 $this->iddoctor->ViewValue = $this->iddoctor->CurrentValue;
             }
         } else {
             $this->iddoctor->ViewValue = NULL;
         }
         $this->iddoctor->ViewCustomAttributes = "";
         // idespecialidad
         if (strval($this->idespecialidad->CurrentValue) != "") {
             $sFilterWrk = "`idespecialidad`" . ew_SearchString("=", $this->idespecialidad->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `idespecialidad`, `descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `especialidad`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             // Call Lookup selecting
             $this->Lookup_Selecting($this->idespecialidad, $sWhereWrk);
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->idespecialidad->ViewValue = $rswrk->fields('DispFld');
                 $rswrk->Close();
             } else {
                 $this->idespecialidad->ViewValue = $this->idespecialidad->CurrentValue;
             }
         } else {
             $this->idespecialidad->ViewValue = NULL;
         }
         $this->idespecialidad->ViewCustomAttributes = "";
         // iddoctor
         $this->iddoctor->LinkCustomAttributes = "";
         $this->iddoctor->HrefValue = "";
         $this->iddoctor->TooltipValue = "";
         // idespecialidad
         $this->idespecialidad->LinkCustomAttributes = "";
         $this->idespecialidad->HrefValue = "";
         $this->idespecialidad->TooltipValue = "";
     } elseif ($this->RowType == EW_ROWTYPE_ADD) {
         // Add row
         // iddoctor
         $this->iddoctor->EditAttrs["class"] = "form-control";
         $this->iddoctor->EditCustomAttributes = "";
         if (trim(strval($this->iddoctor->CurrentValue)) == "") {
             $sFilterWrk = "0=1";
         } else {
             $sFilterWrk = "`iddoctor`" . ew_SearchString("=", $this->iddoctor->CurrentValue, EW_DATATYPE_NUMBER);
         }
         $sSqlWrk = "SELECT `iddoctor`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, `apellido` AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `doctor`";
         $sWhereWrk = "";
         if ($sFilterWrk != "") {
             ew_AddFilter($sWhereWrk, $sFilterWrk);
         }
         // Call Lookup selecting
         $this->Lookup_Selecting($this->iddoctor, $sWhereWrk);
         if ($sWhereWrk != "") {
             $sSqlWrk .= " WHERE " . $sWhereWrk;
         }
         $rswrk = $conn->Execute($sSqlWrk);
         $arwrk = $rswrk ? $rswrk->GetRows() : array();
         if ($rswrk) {
             $rswrk->Close();
         }
//.........这里部分代码省略.........
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:101,代码来源:doctor_especialidadadd.php


示例2: RenderRow

 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // accountId
     // permissionId
     // granted
     // realmId
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // accountId
         if (strval($this->accountId->CurrentValue) != "") {
             $sFilterWrk = "`id`" . ew_SearchString("=", $this->accountId->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `id`, `id` AS `DispFld`, `username` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `account`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->accountId->ViewValue = $rswrk->fields('DispFld');
                 $this->accountId->ViewValue .= ew_ValueSeparator(1, $this->accountId) . $rswrk->fields('Disp2Fld');
                 $rswrk->Close();
             } else {
                 $this->accountId->ViewValue = $this->accountId->CurrentValue;
             }
         } else {
             $this->accountId->ViewValue = NULL;
         }
         $this->accountId->ViewCustomAttributes = "";
         // permissionId
         if ($this->permissionId->VirtualValue != "") {
             $this->permissionId->ViewValue = $this->permissionId->VirtualValue;
         } else {
             if (strval($this->permissionId->CurrentValue) != "") {
                 $sFilterWrk = "`id`" . ew_SearchString("=", $this->permissionId->CurrentValue, EW_DATATYPE_NUMBER);
                 $sSqlWrk = "SELECT `id`, `id` AS `DispFld`, `name` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `rbac_permissions`";
                 $sWhereWrk = "";
                 if ($sFilterWrk != "") {
                     ew_AddFilter($sWhereWrk, $sFilterWrk);
                 }
                 if ($sWhereWrk != "") {
                     $sSqlWrk .= " WHERE " . $sWhereWrk;
                 }
                 $rswrk = $conn->Execute($sSqlWrk);
                 if ($rswrk && !$rswrk->EOF) {
                     // Lookup values found
                     $this->permissionId->ViewValue = $rswrk->fields('DispFld');
                     $this->permissionId->ViewValue .= ew_ValueSeparator(1, $this->permissionId) . $rswrk->fields('Disp2Fld');
                     $rswrk->Close();
                 } else {
                     $this->permissionId->ViewValue = $this->permissionId->CurrentValue;
                 }
             } else {
                 $this->permissionId->ViewValue = NULL;
             }
         }
         $this->permissionId->ViewCustomAttributes = "";
         // granted
         if (strval($this->granted->CurrentValue) != "") {
             switch ($this->granted->CurrentValue) {
                 case $this->granted->FldTagValue(1):
                     $this->granted->ViewValue = $this->granted->FldTagCaption(1) != "" ? $this->granted->FldTagCaption(1) : $this->granted->CurrentValue;
                     break;
                 case $this->granted->FldTagValue(2):
                     $this->granted->ViewValue = $this->granted->FldTagCaption(2) != "" ? $this->granted->FldTagCaption(2) : $this->granted->CurrentValue;
                     break;
                 default:
                     $this->granted->ViewValue = $this->granted->CurrentValue;
             }
         } else {
             $this->granted->ViewValue = NULL;
         }
         $this->granted->ViewCustomAttributes = "";
         // realmId
         if (strval($this->realmId->CurrentValue) != "") {
             $sFilterWrk = "`id`" . ew_SearchString("=", $this->realmId->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `id`, `id` AS `DispFld`, `name` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `realmlist`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->realmId->ViewValue = $rswrk->fields('DispFld');
                 $this->realmId->ViewValue .= ew_ValueSeparator(1, $this->realmId) . $rswrk->fields('Disp2Fld');
                 $rswrk->Close();
             } else {
//.........这里部分代码省略.........
开发者ID:Rastrian,项目名称:RBAC_Manager,代码行数:101,代码来源:rbac_account_permissionsedit.php


示例3: strval

                            $selwrk = strval($receta->idempleado->CurrentValue) == strval($arwrk[$rowcntwrk][0]) ? " selected=\"selected\"" : "";
                            if ($selwrk != "") {
                                $emptywrk = FALSE;
                            }
                            ?>
<option value="<?php 
                            echo ew_HtmlEncode($arwrk[$rowcntwrk][0]);
                            ?>
"<?php 
                            echo $selwrk;
                            ?>
>
<?php 
                            echo $arwrk[$rowcntwrk][1];
                            if ($arwrk[$rowcntwrk][2] != "") {
                                echo ew_ValueSeparator(1, $receta->idempleado);
                                echo $arwrk[$rowcntwrk][2];
                            }
                            ?>
</option>
<?php 
                        }
                    }
                    if (@$emptywrk) {
                        $receta->idempleado->OldValue = "";
                    }
                    ?>
</select>
<?php 
                    $sSqlWrk = "SELECT `idempleado`, `nombre` AS `DispFld`, `apellido` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `empleado`";
                    $sWhereWrk = "";
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:31,代码来源:recetagrid.php


示例4: RenderRow

 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     $this->AddUrl = $this->GetAddUrl();
     $this->EditUrl = $this->GetEditUrl();
     $this->CopyUrl = $this->GetCopyUrl();
     $this->DeleteUrl = $this->GetDeleteUrl();
     $this->ListUrl = $this->GetListUrl();
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // realmid
     // acctid
     // numchars
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // realmid
         if (strval($this->realmid->CurrentValue) != "") {
             $sFilterWrk = "`id`" . ew_SearchString("=", $this->realmid->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `id`, `id` AS `DispFld`, `name` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `realmlist`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->realmid->ViewValue = $rswrk->fields('DispFld');
                 $this->realmid->ViewValue .= ew_ValueSeparator(1, $this->realmid) . $rswrk->fields('Disp2Fld');
                 $rswrk->Close();
             } else {
                 $this->realmid->ViewValue = $this->realmid->CurrentValue;
             }
         } else {
             $this->realmid->ViewValue = NULL;
         }
         $this->realmid->ViewCustomAttributes = "";
         // acctid
         if (strval($this->acctid->CurrentValue) != "") {
             $sFilterWrk = "`id`" . ew_SearchString("=", $this->acctid->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `id`, `id` AS `DispFld`, `username` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `account`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->acctid->ViewValue = $rswrk->fields('DispFld');
                 $this->acctid->ViewValue .= ew_ValueSeparator(1, $this->acctid) . $rswrk->fields('Disp2Fld');
                 $rswrk->Close();
             } else {
                 $this->acctid->ViewValue = $this->acctid->CurrentValue;
             }
         } else {
             $this->acctid->ViewValue = NULL;
         }
         $this->acctid->ViewCustomAttributes = "";
         // numchars
         $this->numchars->ViewValue = $this->numchars->CurrentValue;
         $this->numchars->ViewCustomAttributes = "";
         // realmid
         $this->realmid->LinkCustomAttributes = "";
         $this->realmid->HrefValue = "";
         $this->realmid->TooltipValue = "";
         // acctid
         $this->acctid->LinkCustomAttributes = "";
         $this->acctid->HrefValue = "";
         $this->acctid->TooltipValue = "";
         // numchars
         $this->numchars->LinkCustomAttributes = "";
         $this->numchars->HrefValue = "";
         $this->numchars->TooltipValue = "";
     }
     // Call Row Rendered event
     if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) {
         $this->Row_Rendered();
     }
 }
开发者ID:Rastrian,项目名称:RBAC_Manager,代码行数:87,代码来源:realmcharactersview.php


示例5: RenderRow

 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     $this->ViewUrl = $this->GetViewUrl();
     $this->EditUrl = $this->GetEditUrl();
     $this->InlineEditUrl = $this->GetInlineEditUrl();
     $this->CopyUrl = $this->GetCopyUrl();
     $this->InlineCopyUrl = $this->GetInlineCopyUrl();
     $this->DeleteUrl = $this->GetDeleteUrl();
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // codigo
     // Patente
     // cantidad_rueda
     // nombre
     // modelo
     // id_chofer
     // id_guarda
     // id_marca
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // codigo
         $this->codigo->ViewValue = $this->codigo->CurrentValue;
         $this->codigo->ViewCustomAttributes = "";
         // Patente
         $this->Patente->ViewValue = $this->Patente->CurrentValue;
         $this->Patente->ViewCustomAttributes = "";
         // cantidad_rueda
         $this->cantidad_rueda->ViewValue = $this->cantidad_rueda->CurrentValue;
         $this->cantidad_rueda->ViewCustomAttributes = "";
         // nombre
         $this->nombre->ViewValue = $this->nombre->CurrentValue;
         $this->nombre->ViewCustomAttributes = "";
         // modelo
         $this->modelo->ViewValue = $this->modelo->CurrentValue;
         $this->modelo->ViewCustomAttributes = "";
         // id_chofer
         if ($this->id_chofer->VirtualValue != "") {
             $this->id_chofer->ViewValue = $this->id_chofer->VirtualValue;
         } else {
             if (strval($this->id_chofer->CurrentValue) != "") {
                 $sFilterWrk = "`codigo`" . ew_SearchString("=", $this->id_chofer->CurrentValue, EW_DATATYPE_NUMBER);
                 $sSqlWrk = "SELECT `codigo`, `codigo` AS `DispFld`, `nombre` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `choferes`";
                 $sWhereWrk = "";
                 if ($sFilterWrk != "") {
                     ew_AddFilter($sWhereWrk, $sFilterWrk);
                 }
                 // Call Lookup selecting
                 $this->Lookup_Selecting($this->id_chofer, $sWhereWrk);
                 if ($sWhereWrk != "") {
                     $sSqlWrk .= " WHERE " . $sWhereWrk;
                 }
                 $sSqlWrk .= " ORDER BY `nombre` ASC";
                 $rswrk = $conn->Execute($sSqlWrk);
                 if ($rswrk && !$rswrk->EOF) {
                     // Lookup values found
                     $this->id_chofer->ViewValue = $rswrk->fields('DispFld');
                     $this->id_chofer->ViewValue .= ew_ValueSeparator(1, $this->id_chofer) . $rswrk->fields('Disp2Fld');
                     $rswrk->Close();
                 } else {
                     $this->id_chofer->ViewValue = $this->id_chofer->CurrentValue;
                 }
             } else {
                 $this->id_chofer->ViewValue = NULL;
             }
         }
         $this->id_chofer->ViewCustomAttributes = "";
         // id_guarda
         if ($this->id_guarda->VirtualValue != "") {
             $this->id_guarda->ViewValue = $this->id_guarda->VirtualValue;
         } else {
             if (strval($this->id_guarda->CurrentValue) != "") {
                 $sFilterWrk = "`codigo`" . ew_SearchString("=", $this->id_guarda->CurrentValue, EW_DATATYPE_NUMBER);
                 $sSqlWrk = "SELECT `codigo`, `codigo` AS `DispFld`, `nombre` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `choferes`";
                 $sWhereWrk = "";
                 if ($sFilterWrk != "") {
                     ew_AddFilter($sWhereWrk, $sFilterWrk);
                 }
                 // Call Lookup selecting
                 $this->Lookup_Selecting($this->id_guarda, $sWhereWrk);
                 if ($sWhereWrk != "") {
                     $sSqlWrk .= " WHERE " . $sWhereWrk;
                 }
                 $sSqlWrk .= " ORDER BY `nombre` ASC";
                 $rswrk = $conn->Execute($sSqlWrk);
                 if ($rswrk && !$rswrk->EOF) {
                     // Lookup values found
                     $this->id_guarda->ViewValue = $rswrk->fields('DispFld');
                     $this->id_guarda->ViewValue .= ew_ValueSeparator(1, $this->id_guarda) . $rswrk->fields('Disp2Fld');
                     $rswrk->Close();
                 } else {
                     $this->id_guarda->ViewValue = $this->id_guarda->CurrentValue;
                 }
             } else {
                 $this->id_guarda->ViewValue = NULL;
             }
         }
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:vehiculoslist.php


示例6: RenderRow

 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     $this->ViewUrl = $this->GetViewUrl();
     $this->EditUrl = $this->GetEditUrl();
     $this->InlineEditUrl = $this->GetInlineEditUrl();
     $this->CopyUrl = $this->GetCopyUrl();
     $this->InlineCopyUrl = $this->GetInlineCopyUrl();
     $this->DeleteUrl = $this->GetDeleteUrl();
     // Convert decimal values if posted back
     if ($this->monto->FormValue == $this->monto->CurrentValue && is_numeric(ew_StrToFloat($this->monto->CurrentValue))) {
         $this->monto->CurrentValue = ew_StrToFloat($this->monto->CurrentValue);
     }
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // id
     // id_deuda
     // fecha
     // monto
     // id_usuario
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // id
         $this->id->ViewValue = $this->id->CurrentValue;
         $this->id->ViewCustomAttributes = "";
         // id_deuda
         if (strval($this->id_deuda->CurrentValue) != "") {
             $sFilterWrk = "`id`" . ew_SearchString("=", $this->id_deuda->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `id`, `mes` AS `DispFld`, `anio` AS `Disp2Fld`, `monto` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `deudas`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             // Call Lookup selecting
             $this->Lookup_Selecting($this->id_deuda, $sWhereWrk);
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->id_deuda->ViewValue = $rswrk->fields('DispFld');
                 $this->id_deuda->ViewValue .= ew_ValueSeparator(1, $this->id_deuda) . $rswrk->fields('Disp2Fld');
                 $this->id_deuda->ViewValue .= ew_ValueSeparator(2, $this->id_deuda) . $rswrk->fields('Disp3Fld');
                 $rswrk->Close();
             } else {
                 $this->id_deuda->ViewValue = $this->id_deuda->CurrentValue;
             }
         } else {
             $this->id_deuda->ViewValue = NULL;
         }
         $this->id_deuda->ViewCustomAttributes = "";
         // fecha
         $this->fecha->ViewValue = ew_FormatDateTime($this->fecha->ViewValue, 7);
         $this->fecha->ViewCustomAttributes = "";
         // monto
         $this->monto->ViewValue = $this->monto->CurrentValue;
         $this->monto->ViewCustomAttributes = "";
         // id_usuario
         if (strval($this->id_usuario->CurrentValue) != "") {
             $sFilterWrk = "`id`" . ew_SearchString("=", $this->id_usuario->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `id`, `usuario` AS `DispFld`, `nombre` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `usuario`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             // Call Lookup selecting
             $this->Lookup_Selecting($this->id_usuario, $sWhereWrk);
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->id_usuario->ViewValue = $rswrk->fields('DispFld');
                 $this->id_usuario->ViewValue .= ew_ValueSeparator(1, $this->id_usuario) . $rswrk->fields('Disp2Fld');
                 $rswrk->Close();
             } else {
                 $this->id_usuario->ViewValue = $this->id_usuario->CurrentValue;
             }
         } else {
             $this->id_usuario->ViewValue = NULL;
         }
         $this->id_usuario->ViewCustomAttributes = "";
         // id
         $this->id->LinkCustomAttributes = "";
         $this->id->HrefValue = "";
         $this->id->TooltipValue = "";
         // id_deuda
         $this->id_deuda->LinkCustomAttributes = "";
         $this->id_deuda->HrefValue = "";
         $this->id_deuda->TooltipValue = "";
         // fecha
         $this->fecha->LinkCustomAttributes = "";
         $this->fecha->HrefValue = "";
         $this->fecha->TooltipValue = "";
         // monto
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:cciagpagoslist.php


示例7: RenderRow

 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     // Convert decimal values if posted back
     if ($this->monto->FormValue == $this->monto->CurrentValue && is_numeric(ew_StrToFloat($this->monto->CurrentValue))) {
         $this->monto->CurrentValue = ew_StrToFloat($this->monto->CurrentValue);
     }
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // id
     // mes
     // anio
     // fecha
     // monto
     // id_usuario
     // id_socio
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // id
         $this->id->ViewCustomAttributes = "";
         // mes
         $this->mes->ViewValue = $this->mes->CurrentValue;
         $this->mes->ViewCustomAttributes = "";
         // anio
         $this->anio->ViewValue = $this->anio->CurrentValue;
         $this->anio->ViewCustomAttributes = "";
         // fecha
         $this->fecha->ViewValue = $this->fecha->CurrentValue;
         $this->fecha->ViewValue = ew_FormatDateTime($this->fecha->ViewValue, 7);
         $this->fecha->ViewCustomAttributes = "";
         // monto
         $this->monto->ViewValue = $this->monto->CurrentValue;
         $this->monto->ViewValue = ew_FormatCurrency($this->monto->ViewValue, 0, -2, -2, -2);
         $this->monto->ViewCustomAttributes = "";
         // id_socio
         if (strval($this->id_socio->CurrentValue) != "") {
             $sFilterWrk = "`socio_nro`" . ew_SearchString("=", $this->id_socio->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `socio_nro`, `propietario` AS `DispFld`, `comercio` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `socios`";
             $sWhereWrk = "";
             $lookuptblfilter = "`activo`='S'";
             if (strval($lookuptblfilter) != "") {
                 ew_AddFilter($sWhereWrk, $lookuptblfilter);
             }
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             // Call Lookup selecting
             $this->Lookup_Selecting($this->id_socio, $sWhereWrk);
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $sSqlWrk .= " ORDER BY `propietario` DESC";
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->id_socio->ViewValue = $rswrk->fields('DispFld');
                 $this->id_socio->ViewValue .= ew_ValueSeparator(1, $this->id_socio) . $rswrk->fields('Disp2Fld');
                 $rswrk->Close();
             } else {
                 $this->id_socio->ViewValue = $this->id_socio->CurrentValue;
             }
         } else {
             $this->id_socio->ViewValue = NULL;
         }
         $this->id_socio->ViewCustomAttributes = "";
         // mes
         $this->mes->LinkCustomAttributes = "";
         $this->mes->HrefValue = "";
         $this->mes->TooltipValue = "";
         // anio
         $this->anio->LinkCustomAttributes = "";
         $this->anio->HrefValue = "";
         $this->anio->TooltipValue = "";
         // fecha
         $this->fecha->LinkCustomAttributes = "";
         $this->fecha->HrefValue = "";
         $this->fecha->TooltipValue = "";
         // monto
         $this->monto->LinkCustomAttributes = "";
         $this->monto->HrefValue = "";
         $this->monto->TooltipValue = "";
         // id_socio
         $this->id_socio->LinkCustomAttributes = "";
         $this->id_socio->HrefValue = "";
         $this->id_socio->TooltipValue = "";
     } elseif ($this->RowType == EW_ROWTYPE_ADD) {
         // Add row
         // mes
         $this->mes->EditAttrs["class"] = "form-control";
         $this->mes->EditCustomAttributes = "";
         $this->mes->EditValue = ew_HtmlEncode($this->mes->CurrentValue);
         $this->mes->PlaceHolder = ew_RemoveHtml($this->mes->FldCaption());
         // anio
         $this->anio->EditAttrs["class"] = "form-control";
         $this->anio->EditCustomAttributes = "";
         $this->anio->EditValue = ew_HtmlEncode($this->anio->CurrentValue);
         $this->anio->PlaceHolder = ew_RemoveHtml($this->anio->FldCaption());
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:cciag_deudasadd.php


示例8: RenderRow

 function RenderRow()
 {
     global $conn, $Security, $Subscriptions2;
     // Call Row_Rendering event
     $Subscriptions2->Row_Rendering();
     // Common render codes for all row types
     // OrderID
     $Subscriptions2->OrderID->CellCssStyle = "";
     $Subscriptions2->OrderID->CellCssClass = "";
     // DeliveryDate
     $Subscriptions2->DeliveryDate->CellCssStyle = "";
     $Subscriptions2->DeliveryDate->CellCssClass = "";
     // CustomerID
     $Subscriptions2->CustomerID->CellCssStyle = "";
     $Subscriptions2->CustomerID->CellCssClass = "";
     // WeeklyMeals
     $Subscriptions2->WeeklyMeals->CellCssStyle = "";
     $Subscriptions2->WeeklyMeals->CellCssClass = "";
     // WeeklyReg
     $Subscriptions2->WeeklyReg->CellCssStyle = "";
     $Subscriptions2->WeeklyReg->CellCssClass = "";
     // WeeklyVeg
     $Subscriptions2->WeeklyVeg->CellCssStyle = "";
     $Subscriptions2->WeeklyVeg->CellCssClass = "";
     // PromoCodeID
     $Subscriptions2->PromoCodeID->CellCssStyle = "";
     $Subscriptions2->PromoCodeID->CellCssClass = "";
     // TransactionNumber
     $Subscriptions2->TransactionNumber->CellCssStyle = "";
     $Subscriptions2->TransactionNumber->CellCssClass = "";
     // Want
     $Subscriptions2->Want->CellCssStyle = "";
     $Subscriptions2->Want->CellCssClass = "";
     // DontWant
     $Subscriptions2->DontWant->CellCssStyle = "";
     $Subscriptions2->DontWant->CellCssClass = "";
     // Comments
     $Subscriptions2->Comments->CellCssStyle = "";
     $Subscriptions2->Comments->CellCssClass = "";
     // SubscriptionID
     $Subscriptions2->SubscriptionID->CellCssStyle = "";
     $Subscriptions2->SubscriptionID->CellCssClass = "";
     if ($Subscriptions2->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // OrderID
         $Subscriptions2->OrderID->ViewValue = $Subscriptions2->OrderID->CurrentValue;
         $Subscriptions2->OrderID->CssStyle = "";
         $Subscriptions2->OrderID->CssClass = "";
         $Subscriptions2->OrderID->ViewCustomAttributes = "";
         // DeliveryDate
         $Subscriptions2->DeliveryDate->ViewValue = $Subscriptions2->DeliveryDate->CurrentValue;
         $Subscriptions2->DeliveryDate->ViewValue = ew_FormatDateTime($Subscriptions2->DeliveryDate->ViewValue, 6);
         $Subscriptions2->DeliveryDate->CssStyle = "";
         $Subscriptions2->DeliveryDate->CssClass = "";
         $Subscriptions2->DeliveryDate->ViewCustomAttributes = "";
         // CustomerID
         if (strval($Subscriptions2->CustomerID->CurrentValue) != "") {
             $sSqlWrk = "SELECT `LastName`, `FirstName` FROM `Customers` WHERE `CustomerID` = " . ew_AdjustSql($Subscriptions2->CustomerID->CurrentValue) . "";
             $sSqlWrk .= " ORDER BY `LastName` Asc";
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup value(s) found
                 $Subscriptions2->CustomerID->ViewValue = $rswrk->fields('LastName');
                 $Subscriptions2->CustomerID->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('FirstName');
                 $rswrk->Close();
             } else {
                 $Subscriptions2->CustomerID->ViewValue = $Subscriptions2->CustomerID->CurrentValue;
             }
         } else {
             $Subscriptions2->CustomerID->ViewValue = NULL;
         }
         $Subscriptions2->CustomerID->CssStyle = "";
         $Subscriptions2->CustomerID->CssClass = "";
         $Subscriptions2->CustomerID->ViewCustomAttributes = "";
         // WeeklyMeals
         $Subscriptions2->WeeklyMeals->ViewValue = $Subscriptions2->WeeklyMeals->CurrentValue;
         $Subscriptions2->WeeklyMeals->CssStyle = "";
         $Subscriptions2->WeeklyMeals->CssClass = "";
         $Subscriptions2->WeeklyMeals->ViewCustomAttributes = "";
         // WeeklyReg
         $Subscriptions2->WeeklyReg->ViewValue = $Subscriptions2->WeeklyReg->CurrentValue;
         $Subscriptions2->WeeklyReg->CssStyle = "";
         $Subscriptions2->WeeklyReg->CssClass = "";
         $Subscriptions2->WeeklyReg->ViewCustomAttributes = "";
         // WeeklyVeg
         $Subscriptions2->WeeklyVeg->ViewValue = $Subscriptions2->WeeklyVeg->CurrentValue;
         $Subscriptions2->WeeklyVeg->CssStyle = "";
         $Subscriptions2->WeeklyVeg->CssClass = "";
         $Subscriptions2->WeeklyVeg->ViewCustomAttributes = "";
         // PromoCodeID
         if (strval($Subscriptions2->PromoCodeID->CurrentValue) != "") {
             $sSqlWrk = "SELECT `PromoCodeName` FROM `PromoCodes` WHERE `PromoCodeID` = " . ew_AdjustSql($Subscriptions2->PromoCodeID->CurrentValue) . "";
             $sSqlWrk .= " ORDER BY `PromoCodeName` Asc";
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup value(s) found
                 $Subscriptions2->PromoCodeID->ViewValue = $rswrk->fields('PromoCodeName');
                 $rswrk->Close();
             } else {
                 $Subscriptions2->PromoCodeID->ViewValue = $Subscriptions2->PromoCodeID->CurrentValue;
//.........这里部分代码省略.........
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:101,代码来源:Subscriptions2edit.php


示例9: ew_HtmlEncode

<input type="hidden" data-field="x_id_hoja_ruta" name="x<?php 
                    echo $gastos_grid->RowIndex;
                    ?>
_id_hoja_ruta" id="x<?php 
                    echo $gastos_grid->RowIndex;
                    ?>
_id_hoja_ruta" value="<?php 
                    echo ew_HtmlEncode($gastos->id_hoja_ruta->CurrentValue);
                    ?>
"<?php 
                    echo $wrkonchange;
                    ?>
>
<?php 
                    $sSqlWrk = "SELECT `codigo`, `codigo` AS `DispFld`, `fecha_ini` AS `Disp2Fld`, `Origen` AS `Disp3Fld` FROM `hoja_rutas`";
                    $sWhereWrk = "`codigo` LIKE '{query_value}%' OR CONCAT(`codigo`,'" . ew_ValueSeparator(1, $Page->id_hoja_ruta) . "',DATE_FORMAT(`fecha_ini`, '%d/%m/%Y'),'" . ew_ValueSeparator(2, $Page->id_hoja_ruta) . "',`Origen`) LIKE '{query_value}%'";
                    if (!$GLOBALS["gastos"]->UserIDAllow("grid")) {
                        $sWhereWrk = $GLOBALS["hoja_rutas"]->AddUserIDFilter($sWhereWrk);
                    }
                    // Call Lookup selecting
                    $gastos->Lookup_Selecting($gastos->id_hoja_ruta, $sWhereWrk);
                    if ($sWhereWrk != "") {
                        $sSqlWrk .= " WHERE " . $sWhereWrk;
                    }
                    $sSqlWrk .= " ORDER BY `codigo` ASC";
                    $sSqlWrk .= " LIMIT " . EW_AUTO_SUGGEST_MAX_ENTRIES;
                    ?>
<input type="hidden" name="q_x<?php 
                    echo $gastos_grid->RowIndex;
                    ?>
_id_hoja_ruta" id="q_x<?php 
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:gastosgrid.php


示例10: RenderListRow

 function RenderListRow()
 {
     global $conn, $Security, $gsLanguage, $Language;
     // Call Row Rendering event
     $this->Row_Rendering();
     // Common render codes
     // iddoctor_servicio_medico_prestado
     // iddoctor
     // idservicio_medico_prestado
     // iddoctor_servicio_medico_prestado
     $this->iddoctor_servicio_medico_prestado->ViewValue = $this->iddoctor_servicio_medico_prestado->CurrentValue;
     $this->iddoctor_servicio_medico_prestado->ViewCustomAttributes = "";
     // iddoctor
     if (strval($this->iddoctor->CurrentValue) != "") {
         $sFilterWrk = "`iddoctor`" . ew_SearchString("=", $this->iddoctor->CurrentValue, EW_DATATYPE_NUMBER);
         $sSqlWrk = "SELECT `iddoctor`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, `apellido` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `doctor`";
         $sWhereWrk = "";
         if ($sFilterWrk != "") {
             ew_AddFilter($sWhereWrk, $sFilterWrk);
         }
         // Call Lookup selecting
         $this->Lookup_Selecting($this->iddoctor, $sWhereWrk);
         if ($sWhereWrk != "") {
             $sSqlWrk .= " WHERE " . $sWhereWrk;
         }
         $rswrk = $conn->Execute($sSqlWrk);
         if ($rswrk && !$rswrk->EOF) {
             // Lookup values found
             $this->iddoctor->ViewValue = $rswrk->fields('DispFld');
             $this->iddoctor->ViewValue .= ew_ValueSeparator(2, $this->iddoctor) . $rswrk->fields('Disp3Fld');
             $rswrk->Close();
         } else {
             $this->iddoctor->ViewValue = $this->iddoctor->CurrentValue;
         }
     } else {
         $this->iddoctor->ViewValue = NULL;
     }
     $this->iddoctor->ViewCustomAttributes = "";
     // idservicio_medico_prestado
     $this->idservicio_medico_prestado->ViewValue = $this->idservicio_medico_prestado->CurrentValue;
     if (strval($this->idservicio_medico_prestado->CurrentValue) != "") {
         $sFilterWrk = "`idservicio_medico_prestado`" . ew_SearchString("=", $this->idservicio_medico_prestado->CurrentValue, EW_DATATYPE_NUMBER);
         $sSqlWrk = "SELECT `idservicio_medico_prestado`, `idservicio_medico_prestado` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `servicio_medico_prestado`";
         $sWhereWrk = "";
         if ($sFilterWrk != "") {
             ew_AddFilter($sWhereWrk, $sFilterWrk);
         }
         // Call Lookup selecting
         $this->Lookup_Selecting($this->idservicio_medico_prestado, $sWhereWrk);
         if ($sWhereWrk != "") {
             $sSqlWrk .= " WHERE " . $sWhereWrk;
         }
         $rswrk = $conn->Execute($sSqlWrk);
         if ($rswrk && !$rswrk->EOF) {
             // Lookup values found
             $this->idservicio_medico_prestado->ViewValue = $rswrk->fields('DispFld');
             $rswrk->Close();
         } else {
             $this->idservicio_medico_prestado->ViewValue = $this->idservicio_medico_prestado->CurrentValue;
         }
     } else {
         $this->idservicio_medico_prestado->ViewValue = NULL;
     }
     $this->idservicio_medico_prestado->ViewCustomAttributes = "";
     // iddoctor_servicio_medico_prestado
     $this->iddoctor_servicio_medico_prestado->LinkCustomAttributes = "";
     $this->iddoctor_servicio_medico_prestado->HrefValue = "";
     $this->iddoctor_servicio_medico_prestado->TooltipValue = "";
     // iddoctor
     $this->iddoctor->LinkCustomAttributes = "";
     $this->iddoctor->HrefValue = "";
     $this->iddoctor->TooltipValue = "";
     // idservicio_medico_prestado
     $this->idservicio_medico_prestado->LinkCustomAttributes = "";
     $this->idservicio_medico_prestado->HrefValue = "";
     $this->idservicio_medico_prestado->TooltipValue = "";
     // Call Row Rendered event
     $this->Row_Rendered();
 }
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:79,代码来源:doctor_servicio_medico_prestadoinfo.php


示例11: RenderListRow

 function RenderListRow()
 {
     global $conn, $Security;
     // Call Row Rendering event
     $this->Row_Rendering();
     // Common render codes
     // socio_nro
     // id_actividad
     $this->id_actividad->CellCssStyle = "white-space: nowrap;";
     // id_usuario
     // propietario
     // comercio
     // direccion_comercio
     // activo
     // mail
     // tel
     // cel
     // cuit_cuil
     // socio_nro
     $this->socio_nro->ViewValue = $this->socio_nro->CurrentValue;
     $this->socio_nro->ViewCustomAttributes = "";
     // id_actividad
     if (strval($this->id_actividad->CurrentValue) != "") {
         $sFilterWrk = "`id`" . ew_SearchString("=", $this->id_actividad->CurrentValue, EW_DATATYPE_NUMBER);
         $sSqlWrk = "SELECT `id`, `actividad` AS `DispFld`, `descripcion` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `actividad`";
         $sWhereWrk = "";
         $lookuptblfilter = "`activa`='S'";
         if (strval($lookuptblfilter) != "") {
             ew_AddFilter($sWhereWrk, $lookuptblfilter);
         }
         if ($sFilterWrk != "") {
             ew_AddFilter($sWhereWrk, $sFilterWrk);
         }
         // Call Lookup selecting
         $this->Lookup_Selecting($this->id_actividad, $sWhereWrk);
         if ($sWhereWrk != "") {
             $sSqlWrk .= " WHERE " . $sWhereWrk;
         }
         $rswrk = $conn->Execute($sSqlWrk);
         if ($rswrk && !$rswrk->EOF) {
             // Lookup values found
             $this->id_actividad->ViewValue = $rswrk->fields('DispFld');
             $this->id_actividad->ViewValue .= ew_ValueSeparator(1, $this->id_actividad) . $rswrk->fields('Disp2Fld');
             $rswrk->Close();
         } else {
             $this->id_actividad->ViewValue = $this->id_actividad->CurrentValue;
         }
     } else {
         $this->id_actividad->ViewValue = NULL;
     }
     $this->id_actividad->ViewCustomAttributes = "";
     // id_usuario
     $this->id_usuario->ViewValue = $this->id_usuario->CurrentValue;
     $this->id_usuario->ViewCustomAttributes = "";
     // propietario
     $this->propietario->ViewValue = $this->propietario->CurrentValue;
     $this->propietario->ViewCustomAttributes = "";
     // comercio
     $this->comercio->ViewValue = $this->comercio->CurrentValue;
     $this->comercio->ViewCustomAttributes = "";
     // direccion_comercio
     $this->direccion_comercio->ViewValue = $this->direccion_comercio->CurrentValue;
     $this->direccion_comercio->ViewCustomAttributes = "";
     // activo
     if (strval($this->activo->CurrentValue) != "") {
         switch ($this->activo->CurrentValue) {
             case $this->activo->FldTagValue(1):
                 $this->activo->ViewValue = $this->activo->FldTagCaption(1) != "" ? $this->activo->FldTagCaption(1) : $this->activo->CurrentValue;
                 break;
             case $this->activo->FldTagValue(2):
                 $this->activo->ViewValue = $this->activo->FldTagCaption(2) != "" ? $this->activo->FldTagCaption(2) : $this->activo->CurrentValue;
                 break;
             default:
                 $this->activo->ViewValue = $this->activo->CurrentValue;
         }
     } else {
         $this->activo->ViewValue = NULL;
     }
     $this->activo->ViewCustomAttributes = "";
     // mail
     $this->mail->ViewValue = $this->mail->CurrentValue;
     $this->mail->ViewValue = strtolower($this->mail->ViewValue);
     $this->mail->ViewCustomAttributes = "";
     // tel
     $this->tel->ViewValue = $this->tel->CurrentValue;
     $this->tel->ViewValue = trim($this->tel->ViewValue);
     $this->tel->ViewCustomAttributes = "";
     // cel
     $this->cel->ViewValue = $this->cel->CurrentValue;
     $this->cel->ViewValue = trim($this->cel->ViewValue);
     $this->cel->ViewCustomAttributes = "";
     // cuit_cuil
     $this->cuit_cuil->ViewValue = $this->cuit_cuil->CurrentValue;
     $this->cuit_cuil->ViewValue = ew_FormatNumber($this->cuit_cuil->ViewValue, 0, -2, -2, -2);
     $this->cuit_cuil->ViewCustomAttributes = "";
     // socio_nro
     $this-&g 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP ew_VarToJson函数代码示例发布时间:2022-05-15
下一篇:
PHP ew_UserAgent函数代码示例发布时间: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