function RenderEditRow() { global $conn, $Security, $gsLanguage, $Language; // Call Row Rendering event $this->Row_Rendering(); // idempleado $this->idempleado->EditAttrs["class"] = "form-control"; $this->idempleado->EditCustomAttributes = ""; $this->idempleado->EditValue = $this->idempleado->CurrentValue; $this->idempleado->ViewCustomAttributes = ""; // nombre $this->nombre->EditAttrs["class"] = "form-control"; $this->nombre->EditCustomAttributes = ""; $this->nombre->EditValue = ew_HtmlEncode($this->nombre->CurrentValue); $this->nombre->PlaceHolder = ew_RemoveHtml($this->nombre->FldCaption()); // apellido $this->apellido->EditAttrs["class"] = "form-control"; $this->apellido->EditCustomAttributes = ""; $this->apellido->EditValue = ew_HtmlEncode($this->apellido->CurrentValue); $this->apellido->PlaceHolder = ew_RemoveHtml($this->apellido->FldCaption()); // cui $this->cui->EditAttrs["class"] = "form-control"; $this->cui->EditCustomAttributes = ""; $this->cui->EditValue = ew_HtmlEncode($this->cui->CurrentValue); $this->cui->PlaceHolder = ew_RemoveHtml($this->cui->FldCaption()); // telefono $this->telefono->EditAttrs["class"] = "form-control"; $this->telefono->EditCustomAttributes = ""; $this->telefono->EditValue = ew_HtmlEncode($this->telefono->CurrentValue); $this->telefono->PlaceHolder = ew_RemoveHtml($this->telefono->FldCaption()); // direccion $this->direccion->EditAttrs["class"] = "form-control"; $this->direccion->EditCustomAttributes = ""; $this->direccion->EditValue = ew_HtmlEncode($this->direccion->CurrentValue); $this->direccion->PlaceHolder = ew_RemoveHtml($this->direccion->FldCaption()); // estado $this->estado->EditCustomAttributes = ""; $arwrk = array(); $arwrk[] = array($this->estado->FldTagValue(1), $this->estado->FldTagCaption(1) != "" ? $this->estado->FldTagCaption(1) : $this->estado->FldTagValue(1)); $arwrk[] = array($this->estado->FldTagValue(2), $this->estado->FldTagCaption(2) != "" ? $this->estado->FldTagCaption(2) : $this->estado->FldTagValue(2)); $this->estado->EditValue = $arwrk; // idhospital $this->idhospital->EditAttrs["class"] = "form-control"; $this->idhospital->EditCustomAttributes = ""; if ($this->idhospital->getSessionValue() != "") { $this->idhospital->CurrentValue = $this->idhospital->getSessionValue(); if (strval($this->idhospital->CurrentValue) != "") { $sFilterWrk = "`idhospital`" . ew_SearchString("=", $this->idhospital->CurrentValue, EW_DATATYPE_NUMBER); $sSqlWrk = "SELECT `idhospital`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `hospital`"; $sWhereWrk = ""; if ($sFilterWrk != "") { ew_AddFilter($sWhereWrk, $sFilterWrk); } // Call Lookup selecting $this->Lookup_Selecting($this->idhospital, $sWhereWrk); if ($sWhereWrk != "") { $sSqlWrk .= " WHERE " . $sWhereWrk; } $rswrk = $conn->Execute($sSqlWrk); if ($rswrk && !$rswrk->EOF) { // Lookup values found $this->idhospital->ViewValue = $rswrk->fields('DispFld'); $rswrk->Close(); } else { $this->idhospital->ViewValue = $this->idhospital->CurrentValue; } } else { $this->idhospital->ViewValue = NULL; } $this->idhospital->ViewCustomAttributes = ""; } else { } // Call Row Rendered event $this->Row_Rendered(); }
export=print&ZipCode=<?php echo ew_HtmlEncode($ZipCode->ZipCode->CurrentValue); ?> ">Printer Friendly</a> <a href="<?php echo $ZipCode_view->PageUrl(); ?> export=excel&ZipCode=<?php echo ew_HtmlEncode($ZipCode->ZipCode->CurrentValue); ?> ">Export to Excel</a> <a href="<?php echo $ZipCode_view->PageUrl(); ?> export=csv&ZipCode=<?php echo ew_HtmlEncode($ZipCode->ZipCode->CurrentValue); ?> ">Export to CSV</a> <?php } ?> <br><br> <?php if ($ZipCode->Export == "") { ?> <a href="ZipCodelist.php">Back to List</a> <?php if ($Security->IsLoggedIn()) { ?> <a href="<?php echo $ZipCode->AddUrl();
?> _id_hoja_mantenimeinto" value="<?php echo ew_HtmlEncode($gastos_mantenimientos->id_hoja_mantenimeinto->FormValue); ?> "> <?php } ?> <input type="hidden" data-field="x_id_hoja_mantenimeinto" name="o<?php echo $gastos_mantenimientos_grid->RowIndex; ?> _id_hoja_mantenimeinto" id="o<?php echo $gastos_mantenimientos_grid->RowIndex; ?> _id_hoja_mantenimeinto" value="<?php echo ew_HtmlEncode($gastos_mantenimientos->id_hoja_mantenimeinto->OldValue); ?> "> </td> <?php } // Render list options (body, right) $gastos_mantenimientos_grid->ListOptions->Render("body", "right", $gastos_mantenimientos_grid->RowCnt); ?> <script type="text/javascript"> fgastos_mantenimientosgrid.UpdateOpts(<?php echo $gastos_mantenimientos_grid->RowIndex; ?> ); </script> </tr>
">Go Back</a></span></p> <?php $Customers_delete->ShowMessage(); ?> <form action="<?php echo ew_CurrentPage(); ?> " method="post"> <p> <input type="hidden" name="t" id="t" value="Customers"> <input type="hidden" name="a_delete" id="a_delete" value="D"> <?php foreach ($Customers_delete->arRecKeys as $key) { ?> <input type="hidden" name="key_m[]" id="key_m[]" value="<?php echo ew_HtmlEncode($key); ?> "> <?php } ?> <table class="ewGrid"><tr><td class="ewGridContent"> <div class="ewGridMiddlePanel"> <table cellspacing="0" class="ewTable ewTableSeparate"> <?php echo $Customers->TableCustomInnerHtml; ?> <thead> <tr class="ewTableHeader"> <td valign="top">ID</td> <td valign="top">Email</td>
function SetupOtherOptions() { global $Language, $Security; $options =& $this->OtherOptions; $option =& $options["action"]; // Add $item =& $option->Add("add"); $item->Body = "<a class=\"ewAction ewAdd\" title=\"" . ew_HtmlTitle($Language->Phrase("ViewPageAddLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("ViewPageAddLink")) . "\" href=\"" . ew_HtmlEncode($this->AddUrl) . "\">" . $Language->Phrase("ViewPageAddLink") . "</a>"; $item->Visible = $this->AddUrl != ""; // Edit $item =& $option->Add("edit"); $item->Body = "<a class=\"ewAction ewEdit\" title=\"" . ew_HtmlTitle($Language->Phrase("ViewPageEditLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("ViewPageEditLink")) . "\" href=\"" . ew_HtmlEncode($this->EditUrl) . "\">" . $Language->Phrase("ViewPageEditLink") . "</a>"; $item->Visible = $this->EditUrl != ""; // Copy $item =& $option->Add("copy"); $item->Body = "<a class=\"ewAction ewCopy\" title=\"" . ew_HtmlTitle($Language->Phrase("ViewPageCopyLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("ViewPageCopyLink")) . "\" href=\"" . ew_HtmlEncode($this->CopyUrl) . "\">" . $Language->Phrase("ViewPageCopyLink") . "</a>"; $item->Visible = $this->CopyUrl != ""; // Delete $item =& $option->Add("delete"); $item->Body = "<a class=\"ewAction ewDelete\" title=\"" . ew_HtmlTitle($Language->Phrase("ViewPageDeleteLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("ViewPageDeleteLink")) . "\" href=\"" . ew_HtmlEncode($this->DeleteUrl) . "\">" . $Language->Phrase("ViewPageDeleteLink") . "</a>"; $item->Visible = $this->DeleteUrl != ""; $option =& $options["detail"]; $DetailTableLink = ""; $DetailViewTblVar = ""; $DetailCopyTblVar = ""; $DetailEditTblVar = ""; // "detail_products" $item =& $option->Add("detail_products"); $body = $Language->Phrase("ViewPageDetailLink") . $Language->TablePhrase("products", "TblCaption"); $body = "<a class=\"btn btn-default btn-sm ewRowLink ewDetail\" data-action=\"list\" href=\"" . ew_HtmlEncode("productslist.php?" . EW_TABLE_SHOW_MASTER . "=sub_category&fk_scat_id=" . urlencode(strval($this->scat_id->CurrentValue)) . "") . "\">" . $body . "</a>"; $links = ""; if ($GLOBALS["products_grid"] && $GLOBALS["products_grid"]->DetailView) { $links .= "<li><a class=\"ewRowLink ewDetailView\" data-action=\"view\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailViewLink")) . "\" href=\"" . ew_HtmlEncode($this->GetViewUrl(EW_TABLE_SHOW_DETAIL . "=products")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailViewLink")) . "</a></li>"; if ($DetailViewTblVar != "") { $DetailViewTblVar .= ","; } $DetailViewTblVar .= "products"; } if ($GLOBALS["products_grid"] && $GLOBALS["products_grid"]->DetailEdit) { $links .= "<li><a class=\"ewRowLink ewDetailEdit\" data-action=\"edit\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailEditLink")) . "\" href=\"" . ew_HtmlEncode($this->GetEditUrl(EW_TABLE_SHOW_DETAIL . "=products")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailEditLink")) . "</a></li>"; if ($DetailEditTblVar != "") { $DetailEditTblVar .= ","; } $DetailEditTblVar .= "products"; } if ($GLOBALS["products_grid"] && $GLOBALS["products_grid"]->DetailAdd) { $links .= "<li><a class=\"ewRowLink ewDetailCopy\" data-action=\"add\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailCopyLink")) . "\" href=\"" . ew_HtmlEncode($this->GetCopyUrl(EW_TABLE_SHOW_DETAIL . "=products")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailCopyLink")) . "</a></li>"; if ($DetailCopyTblVar != "") { $DetailCopyTblVar .= ","; } $DetailCopyTblVar .= "products"; } if ($links != "") { $body .= "<button class=\"dropdown-toggle btn btn-default btn-sm ewDetail\" data-toggle=\"dropdown\"><b class=\"caret\"></b></button>"; $body .= "<ul class=\"dropdown-menu\">" . $links . "</ul>"; } $body = "<div class=\"btn-group\">" . $body . "</div>"; $item->Body = $body; $item->Visible = TRUE; if ($item->Visible) { if ($DetailTableLink != "") { $DetailTableLink .= ","; } $DetailTableLink .= "products"; } if ($this->ShowMultipleDetails) { $item->Visible = FALSE; } // Multiple details if ($this->ShowMultipleDetails) { $body = $Language->Phrase("MultipleMasterDetails"); $body = "<div class=\"btn-group\">"; $links = ""; if ($DetailViewTblVar != "") { $links .= "<li><a class=\"ewRowLink ewDetailView\" data-action=\"view\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailViewLink")) . "\" href=\"" . ew_HtmlEncode($this->GetViewUrl(EW_TABLE_SHOW_DETAIL . "=" . $DetailViewTblVar)) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailViewLink")) . "</a></li>"; } if ($DetailEditTblVar != "") { $links .= "<li><a class=\"ewRowLink ewDetailEdit\" data-action=\"edit\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailEditLink")) . "\" href=\"" . ew_HtmlEncode($this->GetEditUrl(EW_TABLE_SHOW_DETAIL . "=" . $DetailEditTblVar)) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailEditLink")) . "</a></li>"; } if ($DetailCopyTblVar != "") { $links .= "<li><a class=\"ewRowLink ewDetailCopy\" data-action=\"add\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailCopyLink")) . "\" href=\"" . ew_HtmlEncode($this->GetCopyUrl(EW_TABLE_SHOW_DETAIL . "=" . $DetailCopyTblVar)) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailCopyLink")) . "</a></li>"; } if ($links != "") { $body .= "<button class=\"dropdown-toggle btn btn-default btn-sm ewMasterDetail\" title=\"" . ew_HtmlTitle($Language->Phrase("MultipleMasterDetails")) . "\" data-toggle=\"dropdown\">" . $Language->Phrase("MultipleMasterDetails") . "<b class=\"caret\"></b></button>"; $body .= "<ul class=\"dropdown-menu ewMenu\">" . $links . "</ul>"; } $body .= "</div>"; // Multiple details $oListOpt =& $option->Add("details"); $oListOpt->Body = $body; } // Set up detail default $option =& $options["detail"]; $options["detail"]->DropDownButtonPhrase = $Language->Phrase("ButtonDetails"); $option->UseImageAndText = TRUE; $ar = explode(",", $DetailTableLink); $cnt = count($ar); $option->UseDropDownButton = $cnt > 1; $option->UseButtonGroup = TRUE; $item =& $option->Add($option->GroupOptionName); $item->Body = ""; $item->Visible = FALSE; // Set up action default $option =& $options["action"]; $option->DropDownButtonPhrase = $Language->Phrase("ButtonActions"); $option->UseImageAndText = TRUE; $option->UseDropDownButton = FALSE; $option->UseButtonGroup = TRUE; $item =& $option->Add($option->GroupOptionName); $item->Body = ""; $item->Visible = FALSE; }
function RenderRow() { global $conn, $Security, $Language, $tbl_user_level; // Initialize URLs // Call Row_Rendering event $tbl_user_level->Row_Rendering(); // Common render codes for all row types // userlevelid $tbl_user_level->userlevelid->CellCssStyle = ""; $tbl_user_level->userlevelid->CellCssClass = ""; $tbl_user_level->userlevelid->CellAttrs = array(); $tbl_user_level->userlevelid->ViewAttrs = array(); $tbl_user_level->userlevelid->EditAttrs = array(); // userlevelname $tbl_user_level->userlevelname->CellCssStyle = ""; $tbl_user_level->userlevelname->CellCssClass = ""; $tbl_user_level->userlevelname->CellAttrs = array(); $tbl_user_level->userlevelname->ViewAttrs = array(); $tbl_user_level->userlevelname->EditAttrs = array(); if ($tbl_user_level->RowType == EW_ROWTYPE_VIEW) { // View row // userlevelid $tbl_user_level->userlevelid->ViewValue = $tbl_user_level->userlevelid->CurrentValue; $tbl_user_level->userlevelid->CssStyle = ""; $tbl_user_level->userlevelid->CssClass = ""; $tbl_user_level->userlevelid->ViewCustomAttributes = ""; // userlevelname $tbl_user_level->userlevelname->ViewValue = $tbl_user_level->userlevelname->CurrentValue; $tbl_user_level->userlevelname->CssStyle = ""; $tbl_user_level->userlevelname->CssClass = ""; $tbl_user_level->userlevelname->ViewCustomAttributes = ""; // userlevelid $tbl_user_level->userlevelid->HrefValue = ""; $tbl_user_level->userlevelid->TooltipValue = ""; // userlevelname $tbl_user_level->userlevelname->HrefValue = ""; $tbl_user_level->userlevelname->TooltipValue = ""; } elseif ($tbl_user_level->RowType == EW_ROWTYPE_EDIT) { // Edit row // userlevelid $tbl_user_level->userlevelid->EditCustomAttributes = ""; $tbl_user_level->userlevelid->EditValue = $tbl_user_level->userlevelid->CurrentValue; $tbl_user_level->userlevelid->CssStyle = ""; $tbl_user_level->userlevelid->CssClass = ""; $tbl_user_level->userlevelid->ViewCustomAttributes = ""; // userlevelname $tbl_user_level->userlevelname->EditCustomAttributes = ""; $tbl_user_level->userlevelname->EditValue = ew_HtmlEncode($tbl_user_level->userlevelname->CurrentValue); // Edit refer script // userlevelid $tbl_user_level->userlevelid->HrefValue = ""; // userlevelname $tbl_user_level->userlevelname->HrefValue = ""; } // Call Row Rendered event if ($tbl_user_level->RowType != EW_ROWTYPE_AGGREGATEINIT) { $tbl_user_level->Row_Rendered(); } }
function SetupExportOptions() { global $Language; // Printer friendly $item =& $this->ExportOptions->Add("print"); $item->Body = "<a href=\"" . $this->ExportPrintUrl . "\" class=\"ewExportLink ewPrint\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("PrinterFriendlyText")) . "\">" . $Language->Phrase("PrinterFriendly") . "</a>"; $item->Visible = TRUE; // Export to Excel $item =& $this->ExportOptions->Add("excel"); $item->Body = "<a href=\"" . $this->ExportExcelUrl . "\" class=\"ewExportLink ewExcel\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToExcelText")) . "\">" . $Language->Phrase("ExportToExcel") . "</a>"; $item->Visible = TRUE; // Export to Word $item =& $this->ExportOptions->Add("word"); $item->Body = "<a href=\"" . $this->ExportWordUrl . "\" class=\"ewExportLink ewWord\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToWordText")) . "\">" . $Language->Phrase("ExportToWord") . "</a>"; $item->Visible = TRUE; // Export to Html $item =& $this->ExportOptions->Add("html"); $item->Body = "<a href=\"" . $this->ExportHtmlUrl . "\" class=\"ewExportLink ewHtml\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToHtmlText")) . "\">" . $Language->Phrase("ExportToHtml") . "</a>"; $item->Visible = FALSE; // Export to Xml $item =& $this->ExportOptions->Add("xml"); $item->Body = "<a href=\"" . $this->ExportXmlUrl . "\" class=\"ewExportLink ewXml\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToXmlText")) . "\">" . $Language->Phrase("ExportToXml") . "</a>"; $item->Visible = FALSE; // Export to Csv $item =& $this->ExportOptions->Add("csv"); $item->Body = "<a href=\"" . $this->ExportCsvUrl . "\" class=\"ewExportLink ewCsv\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToCsvText")) . "\">" . $Language->Phrase("ExportToCsv") . "</a>"; $item->Visible = FALSE; // Export to Pdf $item =& $this->ExportOptions->Add("pdf"); $item->Body = "<a href=\"" . $this->ExportPdfUrl . "\" class=\"ewExportLink ewPdf\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToPDFText")) . "\">" . $Language->Phrase("ExportToPDF") . "</a>"; $item->Visible = TRUE; // Export to Email $item =& $this->ExportOptions->Add("email"); $item->Body = "<a id=\"emf_montos\" href=\"javascript:void(0);\" class=\"ewExportLink ewEmail\" data-caption=\"" . $Language->Phrase("ExportToEmailText") . "\" onclick=\"ew_EmailDialogShow({lnk:'emf_montos',hdr:ewLanguage.Phrase('ExportToEmail'),f:document.fmontoslist,sel:false});\">" . $Language->Phrase("ExportToEmail") . "</a>"; $item->Visible = TRUE; // Drop down button for export $this->ExportOptions->UseDropDownButton = TRUE; $this->ExportOptions->DropDownButtonPhrase = $Language->Phrase("ButtonExport"); // Add group option item $item =& $this->ExportOptions->Add($this->ExportOptions->GroupOptionName); $item->Body = ""; $item->Visible = FALSE; }
?> </td></tr></table></span></td> <td<?php echo $rbac_account_permissions->realmId->CellAttributes(); ?> ><span id="el_rbac_account_permissions_realmId"> <span<?php echo $rbac_account_permissions->realmId->ViewAttributes(); ?> > <?php echo $rbac_account_permissions->realmId->EditValue; ?> </span> <input type="hidden" name="x_realmId" id="x_realmId" value="<?php echo ew_HtmlEncode($rbac_account_permissions->realmId->CurrentValue); ?> "> </span><?php echo $rbac_account_permissions->realmId->CustomMsg; ?> </td> </tr> <?php } ?> </table> </div> </td></tr></table> <br> <input type="submit" name="btnAction" id="btnAction" value="<?php
function RenderRow() { global $conn, $Security, $Language; global $gsLanguage; // Initialize URLs // Call Row_Rendering event $this->Row_Rendering(); // Common render codes for all row types // id // lesson_id // video_link // active if ($this->RowType == EW_ROWTYPE_VIEW) { // View row // id $this->id->ViewValue = $this->id->CurrentValue; $this->id->ViewCustomAttributes = ""; // lesson_id if (strval($this->lesson_id->CurrentValue) != "") { $sFilterWrk = "`lesson_id`" . ew_SearchString("=", $this->lesson_id->CurrentValue, EW_DATATYPE_NUMBER); $sSqlWrk = "SELECT `lesson_id`, `lesson_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tbl_lesson`"; $sWhereWrk = ""; if ($sFilterWrk != "") { ew_AddFilter($sWhereWrk, $sFilterWrk); } if ($sWhereWrk != "") { $sSqlWrk .= " WHERE " . $sWhereWrk; } $rswrk = $conn->Execute($sSqlWrk); if ($rswrk && !$rswrk->EOF) { // Lookup values found $this->lesson_id->ViewValue = $rswrk->fields('DispFld'); $rswrk->Close(); } else { $this->lesson_id->ViewValue = $this->lesson_id->CurrentValue; } } else { $this->lesson_id->ViewValue = NULL; } $this->lesson_id->ViewCustomAttributes = ""; // video_link $this->video_link->ViewValue = $this->video_link->CurrentValue; $this->video_link->ViewCustomAttributes = ""; // active $this->active->ViewValue = $this->active->CurrentValue; $this->active->ViewCustomAttributes = ""; // id $this->id->LinkCustomAttributes = ""; $this->id->HrefValue = ""; $this->id->TooltipValue = ""; // lesson_id $this->lesson_id->LinkCustomAttributes = ""; $this->lesson_id->HrefValue = ""; $this->lesson_id->TooltipValue = ""; // video_link $this->video_link->LinkCustomAttributes = ""; $this->video_link->HrefValue = ""; $this->video_link->TooltipValue = ""; // active $this->active->LinkCustomAttributes = ""; $this->active->HrefValue = ""; $this->active->TooltipValue = ""; } elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row // id $this->id->EditCustomAttributes = ""; $this->id->EditValue = $this->id->CurrentValue; $this->id->ViewCustomAttributes = ""; // lesson_id $this->lesson_id->EditCustomAttributes = ""; $sFilterWrk = ""; $sSqlWrk = "SELECT `lesson_id`, `lesson_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `tbl_lesson`"; $sWhereWrk = ""; if ($sFilterWrk != "") { ew_AddFilter($sWhereWrk, $sFilterWrk); } if ($sWhereWrk != "") { $sSqlWrk .= " WHERE " . $sWhereWrk; } $rswrk = $conn->Execute($sSqlWrk); $arwrk = $rswrk ? $rswrk->GetRows() : array(); if ($rswrk) { $rswrk->Close(); } array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect"), "", "", "", "", "", "", "")); $this->lesson_id->EditValue = $arwrk; // video_link $this->video_link->EditCustomAttributes = ""; $this->video_link->EditValue = ew_HtmlEncode($this->video_link->CurrentValue); // active $this->active->EditCustomAttributes = ""; $this->active->EditValue = ew_HtmlEncode($this->active->CurrentValue); // Edit refer script // id $this->id->HrefValue = ""; // lesson_id $this->lesson_id->HrefValue = ""; // video_link $this->video_link->HrefValue = ""; // active $this->active->HrefValue = ""; } if ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row $this->SetupFieldTitles(); } // Call Row Rendered event if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) { $this->Row_Rendered(); } }
<label class="col-sm-2 control-label ewLabel" for="npwd"><?php echo $Language->Phrase("NewPassword"); ?> </label> <div class="col-sm-10"><input type="password" name="npwd" id="npwd" class="form-control ewControl" placeholder="<?php echo ew_HtmlEncode($Language->Phrase("NewPassword")); ?> "></div> </div> <div class="form-group"> <label class="col-sm-2 control-label ewLabel" for="cpwd"><?php echo $Language->Phrase("ConfirmPassword"); ?> </label> <div class="col-sm-10"><input type="password" name="cpwd" id="cpwd" class="form-control ewControl" placeholder="<?php echo ew_HtmlEncode($Language->Phrase("ConfirmPassword")); ?> "></div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <button class="btn btn-primary ewButton" name="btnsubmit" id="btnsubmit" type="submit"><?php echo $Language->Phrase("ChangePwdBtn"); ?> </button> </div> </div> </form> <script type="text/javascript"> fchangepwd.Init(); </script>
function SetupExportOptions() { global $Language; // Printer friendly $item =& $this->ExportOptions->Add("print"); $item->Body = "<a href=\"" . $this->ExportPrintUrl . "\" class=\"ewExportLink ewPrint\" title=\"" . ew_HtmlEncode($Language->Phrase("PrinterFriendlyText")) . "\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("PrinterFriendlyText")) . "\">" . $Language->Phrase("PrinterFriendly") . "</a>"; $item->Visible = TRUE; // Export to Excel $item =& $this->ExportOptions->Add("excel"); $item->Body = "<a href=\"" . $this->ExportExcelUrl . "\" class=\"ewExportLink ewExcel\" title=\"" . ew_HtmlEncode($Language->Phrase("ExportToExcelText")) . "\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToExcelText")) . "\">" . $Language->Phrase("ExportToExcel") . "</a>"; $item->Visible = TRUE; // Export to Word $item =& $this->ExportOptions->Add("word"); $item->Body = "<a href=\"" . $this->ExportWordUrl . "\" class=\"ewExportLink ewWord\" title=\"" . ew_HtmlEncode($Language->Phrase("ExportToWordText")) . "\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToWordText")) . "\">" . $Language->Phrase("ExportToWord") . "</a>"; $item->Visible = TRUE; // Export to Html $item =& $this->ExportOptions->Add("html"); $item->Body = "<a href=\"" . $this->ExportHtmlUrl . "\" class=\"ewExportLink ewHtml\" title=\"" . ew_HtmlEncode($Language->Phrase("ExportToHtmlText")) . "\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToHtmlText")) . "\">" . $Language->Phrase("ExportToHtml") . "</a>"; $item->Visible = FALSE; // Export to Xml $item =& $this->ExportOptions->Add("xml"); $item->Body = "<a href=\"" . $this->ExportXmlUrl . "\" class=\"ewExportLink ewXml\" title=\"" . ew_HtmlEncode($Language->Phrase("ExportToXmlText")) . "\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToXmlText")) . "\">" . $Language->Phrase("ExportToXml") . "</a>"; $item->Visible = FALSE; // Export to Csv $item =& $this->ExportOptions->Add("csv"); $item->Body = "<a href=\"" . $this->ExportCsvUrl . "\" class=\"ewExportLink ewCsv\" title=\"" . ew_HtmlEncode($Language->Phrase("ExportToCsvText")) . "\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToCsvText")) . "\">" . $Language->Phrase("ExportToCsv") . "</a>"; $item->Visible = FALSE; // Export to Pdf $item =& $this->ExportOptions->Add("pdf"); $item->Body = "<a href=\"" . $this->ExportPdfUrl . "\" class=\"ewExportLink ewPdf\" title=\"" . ew_HtmlEncode($Language->Phrase("ExportToPDFText")) . "\" data-caption=\"" . ew_HtmlEncode($Language->Phrase("ExportToPDFText")) . "\">" . $Language->Phrase("ExportToPDF") . "</a>"; $item->Visible = TRUE; // Export to Email $item =& $this->ExportOptions->Add("email"); $url = ""; $item->Body = "<button id=\"emf_deudas\" class=\"ewExportLink ewEmail\" title=\"" . $Language->Phrase("ExportToEmailText") . "\" data-caption=\"" . $Language->Phrase("ExportToEmailText") . "\" onclick=\"ew_EmailDialogShow({lnk:'emf_deudas',hdr:ewLanguage.Phrase('ExportToEmailText'),f:document.fdeudasview,key:" . ew_ArrayToJsonAttr($this->RecKey) . ",sel:false" . $url . "});\">" . $Language->Phrase("ExportToEmail") . "</button>"; $item->Visible = TRUE; // Drop down button for export $this->ExportOptions->UseButtonGroup = TRUE; $this->ExportOptions->UseImageAndText = TRUE; $this->ExportOptions->UseDropDownButton = TRUE; if ($this->ExportOptions->UseButtonGroup && ew_IsMobile()) { $this->ExportOptions->UseDropDownButton = TRUE; } $this->ExportOptions->DropDownButtonPhrase = $Language->Phrase("ButtonExport"); // Add group option item $item =& $this->ExportOptions->Add($this->ExportOptions->GroupOptionName); $item->Body = ""; $item->Visible = FALSE; // Hide options for export if ($this->Export != "") { $this->ExportOptions->HideAllOptions(); } }
function RenderEditRow() { global $conn, $Security, $gsLanguage, $Language; // Call Row Rendering event $this->Row_Rendering(); // codigo $this->codigo->EditAttrs["class"] = "form-control"; $this->codigo->EditCustomAttributes = ""; $this->codigo->EditValue = $this->codigo->CurrentValue; $this->codigo->ViewCustomAttributes = ""; // detalle $this->detalle->EditAttrs["class"] = "form-control"; $this->detalle->EditCustomAttributes = ""; $this->detalle->EditValue = ew_HtmlEncode($this->detalle->CurrentValue); $this->detalle->PlaceHolder = ew_RemoveHtml($this->detalle->FldCaption()); // fecha $this->fecha->EditAttrs["class"] = "form-control"; $this->fecha->EditCustomAttributes = ""; $this->fecha->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->fecha->CurrentValue, 7)); $this->fecha->PlaceHolder = ew_RemoveHtml($this->fecha->FldCaption()); // id_tipo_gasto $this->id_tipo_gasto->EditAttrs["class"] = "form-control"; $this->id_tipo_gasto->EditCustomAttributes = ""; if ($this->id_tipo_gasto->getSessionValue() != "") { $this->id_tipo_gasto->CurrentValue = $this->id_tipo_gasto->getSessionValue(); if ($this->id_tipo_gasto->VirtualValue != "") { $this->id_tipo_gasto->ViewValue = $this->id_tipo_gasto->VirtualValue; } else { if (strval($this->id_tipo_gasto->CurrentValue) != "") { $sFilterWrk = "`codigo`" . ew_SearchString("=", $this->id_tipo_gasto->CurrentValue, EW_DATATYPE_NUMBER); $sSqlWrk = "SELECT `codigo`, `tipo_gasto` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipo_gastos`"; $sWhereWrk = ""; $lookuptblfilter = "`clase`='M'"; if (strval($lookuptblfilter) != "") { ew_AddFilter($sWhereWrk, $lookuptblfilter); } if ($sFilterWrk != "") { ew_AddFilter($sWhereWrk, $sFilterWrk); } // Call Lookup selecting $this->Lookup_Selecting($this->id_tipo_gasto, $sWhereWrk); if ($sWhereWrk != "") { $sSqlWrk .= " WHERE " . $sWhereWrk; } $sSqlWrk .= " ORDER BY `tipo_gasto` ASC"; $rswrk = $conn->Execute($sSqlWrk); if ($rswrk && !$rswrk->EOF) { // Lookup values found $this->id_tipo_gasto->ViewValue = $rswrk->fields('DispFld'); $rswrk->Close(); } else { $this->id_tipo_gasto->ViewValue = $this->id_tipo_gasto->CurrentValue; } } else { $this->id_tipo_gasto->ViewValue = NULL; } } $this->id_tipo_gasto->ViewCustomAttributes = ""; } else { } // id_hoja_mantenimeinto $this->id_hoja_mantenimeinto->EditAttrs["class"] = "form-control"; $this->id_hoja_mantenimeinto->EditCustomAttributes = ""; if ($this->id_hoja_mantenimeinto->getSessionValue() != "") { $this->id_hoja_mantenimeinto->CurrentValue = $this->id_hoja_mantenimeinto->getSessionValue(); $this->id_hoja_mantenimeinto->ViewValue = $this->id_hoja_mantenimeinto->CurrentValue; $this->id_hoja_mantenimeinto->ViewCustomAttributes = ""; } else { $this->id_hoja_mantenimeinto->EditValue = ew_HtmlEncode($this->id_hoja_mantenimeinto->CurrentValue); $this->id_hoja_mantenimeinto->PlaceHolder = ew_RemoveHtml($this->id_hoja_mantenimeinto->FldCaption()); } // id_usuario // Call Row Rendered event $this->Row_Rendered(); }
function RenderRow() { global $Security, $Language, $gsLanguage; // Initialize URLs // Call Row_Rendering event $this->Row_Rendering(); // Common render codes for all row types // memberID // name // email // joined // facebook // twitter // twitch // skype // birthday // profession // game_type // division // has_expansion // notes if ($this->RowType == EW_ROWTYPE_VIEW) { // View row // memberID $this->memberID->ViewValue = $this->memberID->CurrentValue; $this->memberID->ViewCustomAttributes = ""; // name $this->name->ViewValue = $this->name->CurrentValue; $this->name->ViewCustomAttributes = ""; // email $this->_email->ViewValue = $this->_email->CurrentValue; $this->_email->ViewCustomAttributes = ""; // joined $this->joined->ViewValue = $this->joined->CurrentValue; $this->joined->ViewValue = ew_FormatDateTime($this->joined->ViewValue, undefined); $this->joined->ViewCustomAttributes = ""; // facebook $this->facebook->ViewValue = $this->facebook->CurrentValue; $this->facebook->ViewCustomAttributes = ""; // twitter $this->twitter->ViewValue = $this->twitter->CurrentValue; $this->twitter->ViewCustomAttributes = ""; // twitch $this->twitch->ViewValue = $this->twitch->CurrentValue; $this->twitch->ViewCustomAttributes = ""; // skype $this->skype->ViewValue = $this->skype->CurrentValue; $this->skype->ViewCustomAttributes = ""; // birthday $this->birthday->ViewValue = $this->birthday->CurrentValue; $this->birthday->ViewValue = ew_FormatDateTime($this->birthday->ViewValue, 5); $this->birthday->ViewCustomAttributes = ""; // profession if (strval($this->profession->CurrentValue) != "") { $this->profession->ViewValue = ""; $arwrk = explode(",", strval($this->profession->CurrentValue)); $cnt = count($arwrk); for ($ari = 0; $ari < $cnt; $ari++) { $this->profession->ViewValue .= $this->profession->OptionCaption(trim($arwrk[$ari])); if ($ari < $cnt - 1) { $this->profession->ViewValue .= ew_ViewOptionSeparator($ari); } } } else { $this->profession->ViewValue = NULL; } $this->profession->ViewCustomAttributes = ""; // game_type if (strval($this->game_type->CurrentValue) != "") { $this->game_type->ViewValue = ""; $arwrk = explode(",", strval($this->game_type->CurrentValue)); $cnt = count($arwrk); for ($ari = 0; $ari < $cnt; $ari++) { $this->game_type->ViewValue .= $this->game_type->OptionCaption(trim($arwrk[$ari])); if ($ari < $cnt - 1) { $this->game_type->ViewValue .= ew_ViewOptionSeparator($ari); } } } else { $this->game_type->ViewValue = NULL; } $this->game_type->ViewCustomAttributes = ""; // division if (strval($this->division->CurrentValue) != "") { $this->division->ViewValue = ""; $arwrk = explode(",", strval($this->division->CurrentValue)); $cnt = count($arwrk); for ($ari = 0; $ari < $cnt; $ari++) { $this->division->ViewValue .= $this->division->OptionCaption(trim($arwrk[$ari])); if ($ari < $cnt - 1) { $this->division->ViewValue .= ew_ViewOptionSeparator($ari); } } } else { $this->division->ViewValue = NULL; } $this->division->ViewCustomAttributes = ""; // has_expansion if (strval($this->has_expansion->CurrentValue) != "") { $this->has_expansion->ViewValue = $this->has_expansion->OptionCaption($this->has_expansion->CurrentValue); } else { $this->has_expansion->ViewValue = NULL; } $this->has_expansion->ViewCustomAttributes = ""; // notes $this->notes->ViewValue = $this->notes->CurrentValue; $this->notes->ViewCustomAttributes = ""; // name $this->name->LinkCustomAttributes = ""; $this->name->HrefValue = ""; $this->name->TooltipValue = ""; // email $this->_email->LinkCustomAttributes = ""; $this->_email->HrefValue = ""; $this->_email->TooltipValue = ""; // joined $this->joined->LinkCustomAttributes = ""; $this->joined->HrefValue = ""; $this->joined->TooltipValue = ""; // facebook $this->facebook->LinkCustomAttributes = ""; if (!ew_Empty($this->facebook->CurrentValue)) { $this->facebook->HrefValue = !empty($this->facebook->ViewValue) ? ew_RemoveHtml($this->facebook->ViewValue) : $this->facebook->CurrentValue; // Add prefix/suffix $this->facebook->LinkAttrs["target"] = "_blank"; // Add target if ($this->Export != "") { $this->facebook->HrefValue = ew_ConvertFullUrl($this->facebook->HrefValue); } } else { $this->facebook->HrefValue = ""; } $this->facebook->TooltipValue = ""; // twitter $this->twitter->LinkCustomAttributes = ""; if (!ew_Empty($this->twitter->CurrentValue)) { $this->twitter->HrefValue = !empty($this->twitter->ViewValue) ? ew_RemoveHtml($this->twitter->ViewValue) : $this->twitter->CurrentValue; // Add prefix/suffix $this->twitter->LinkAttrs["target"] = "_blank"; // Add target if ($this->Export != "") { $this->twitter->HrefValue = ew_ConvertFullUrl($this->twitter->HrefValue); } } else { $this->twitter->HrefValue = ""; } $this->twitter->TooltipValue = ""; // twitch $this->twitch->LinkCustomAttributes = ""; if (!ew_Empty($this->twitch->CurrentValue)) { $this->twitch->HrefValue = !empty($this->twitch->ViewValue) ? ew_RemoveHtml($this->twitch->ViewValue) : $this->twitch->CurrentValue; // Add prefix/suffix $this->twitch->LinkAttrs["target"] = "_blank"; // Add target if ($this->Export != "") { $this->twitch->HrefValue = ew_ConvertFullUrl($this->twitch->HrefValue); } } else { $this->twitch->HrefValue = ""; } $this->twitch->TooltipValue = ""; // skype $this->skype->LinkCustomAttributes = ""; $this->skype->HrefValue = ""; $this->skype->TooltipValue = ""; // birthday $this->birthday->LinkCustomAttributes = ""; $this->birthday->HrefValue = ""; $this->birthday->TooltipValue = ""; // profession $this->profession->LinkCustomAttributes = ""; $this->profession->HrefValue = ""; $this->profession->TooltipValue = ""; // game_type $this->game_type->LinkCustomAttributes = ""; $this->game_type->HrefValue = ""; $this->game_type->TooltipValue = ""; // division $this->division->LinkCustomAttributes = ""; $this->division->HrefValue = ""; $this->division->TooltipValue = ""; // has_expansion $this->has_expansion->LinkCustomAttributes = ""; $this->has_expansion->HrefValue = ""; $this->has_expansion->TooltipValue = ""; // notes $this->notes->LinkCustomAttributes = ""; if (!ew_Empty($this->notes->CurrentValue)) { $this->notes->HrefValue = !empty($this->notes->ViewValue) ? ew_RemoveHtml($this->notes->ViewValue) : $this->notes->CurrentValue; // Add prefix/suffix $this->notes->LinkAttrs["target"] = ""; // Add target if ($this->Export != "") { $this->notes->HrefValue = ew_ConvertFullUrl($this->notes->HrefValue); } } else { $this->notes->HrefValue = ""; } $this->notes->TooltipValue = ""; } elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row // name $this->name->EditAttrs["class"] = "form-control"; $this->name->EditCustomAttributes = ""; $this->name->EditValue = ew_HtmlEncode($this->name->CurrentValue); $this->name->PlaceHolder = ew_RemoveHtml($this->name->FldCaption()); // email $this->_email->EditAttrs["class"] = "form-control"; $this->_email->EditCustomAttributes = ""; $this->_email->EditValue = ew_HtmlEncode($this->_email->CurrentValue); $this->_email->PlaceHolder = ew_RemoveHtml($this->_email->FldCaption()); // joined // facebook $this->facebook->EditAttrs["class"] = "form-control"; $this->facebook->EditCustomAttributes = ""; $this->facebook->EditValue = ew_HtmlEncode($this->facebook->CurrentValue); $this->facebook->PlaceHolder = ew_RemoveHtml($this->facebook->FldCaption()); // twitter $this->twitter->EditAttrs["class"] = "form-control"; $this->twitter->EditCustomAttributes = ""; $this->twitter->EditValue = ew_HtmlEncode($this->twitter->CurrentValue); $this->twitter->PlaceHolder = ew_RemoveHtml($this->twitter->FldCaption()); // twitch $this->twitch->EditAttrs["class"] = "form-control"; $this->twitch->EditCustomAttributes = ""; $this->twitch->EditValue = ew_HtmlEncode($this->twitch->CurrentValue); $this->twitch->PlaceHolder = ew_RemoveHtml($this->twitch->FldCaption()); // skype $this->skype->EditAttrs["class"] = "form-control"; $this->skype->EditCustomAttributes = ""; $this->skype->EditValue = ew_HtmlEncode($this->skype->CurrentValue); $this->skype->PlaceHolder = ew_RemoveHtml($this->skype->FldCaption()); // birthday $this->birthday->EditAttrs["class"] = "form-control"; $this->birthday->EditCustomAttributes = ""; $this->birthday->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->birthday->CurrentValue, 5)); $this->birthday->PlaceHolder = ew_RemoveHtml($this->birthday->FldCaption()); // profession $this->profession->EditAttrs["class"] = "form-control"; $this->profession->EditCustomAttributes = ""; $this->profession->EditValue = $this->profession->Options(FALSE); // game_type $this->game_type->EditCustomAttributes = ""; $this->game_type->EditValue = $this->game_type->Options(FALSE); // division $this->division->EditCustomAttributes = ""; $this->division->EditValue = $this->division->Options(FALSE); // has_expansion $this->has_expansion->EditCustomAttributes = ""; $this->has_expansion->EditValue = $this->has_expansion->Options(TRUE); // notes $this->notes->EditAttrs["class"] = "form-control"; $this->notes->EditCustomAttributes = ""; $this->notes->EditValue = ew_HtmlEncode($this->notes->CurrentValue); $this->notes->PlaceHolder = ew_RemoveHtml($this->notes->FldCaption()); // Edit refer script // name $this->name->LinkCustomAttributes = ""; $this->name->HrefValue = ""; // email $this->_email->LinkCustomAttributes = ""; $this->_email->HrefValue = ""; // joined $this->joined->LinkCustomAttributes = ""; $this->joined->HrefValue = ""; // facebook $this->facebook->LinkCustomAttributes = ""; if (!ew_Empty($this->facebook->CurrentValue)) { $this->facebook->HrefValue = !empty($this->facebook->EditValue) ? ew_RemoveHtml($this->facebook->EditValue) : $this->facebook->CurrentValue; // Add prefix/suffix $this->facebook->LinkAttrs["target"] = "_blank"; // Add target if ($this->Export != "") { $this->facebook->HrefValue = ew_ConvertFullUrl($this->facebook->HrefValue); } } else { $this->facebook->HrefValue = ""; } // twitter $this->twitter->LinkCustomAttributes = ""; if (!ew_Empty($this->twitter->CurrentValue)) { $this->twitter->HrefValue = !empty($this->twitter->EditValue) ? ew_RemoveHtml($this->twitter->EditValue) : $this->twitter->CurrentValue; // Add prefix/suffix $this->twitter->LinkAttrs["target"] = "_blank"; // Add target if ($this->Export != "") { $this->twitter->HrefValue = ew_ConvertFullUrl($this->twitter->HrefValue); } } else { $this->twitter->HrefValue = ""; } // twitch $this->twitch->LinkCustomAttributes = ""; if (!ew_Empty($this->twitch->CurrentValue)) { $this->twitch->HrefValue = !empty($this->twitch->EditValue) ? ew_RemoveHtml($this->twitch->EditValue) : $this->twitch->CurrentValue; // Add prefix/suffix $this->twitch->LinkAttrs["target"] = "_blank"; // Add target if ($this->Export != "") { $this->twitch->HrefValue = ew_ConvertFullUrl($this->twitch->HrefValue); } } else { $this->twitch->HrefValue = ""; } // skype $this->skype->LinkCustomAttributes = ""; $this->skype->HrefValue = ""; // birthday $this->birthday->LinkCustomAttributes = ""; $this->birthday->HrefValue = ""; // profession $this->profession->LinkCustomAttributes = ""; $this->profession->HrefValue = ""; // game_type $this->game_type->LinkCustomAttributes = ""; $this->game_type->HrefValue = ""; // division $this->division->LinkCustomAttributes = ""; $this->division->HrefValue = ""; // has_expansion $this->has_expansion->LinkCustomAttributes = ""; $this->has_expansion->HrefValue = ""; // notes $this->notes->LinkCustomAttributes = ""; if (!ew_Empty($this->notes->CurrentValue)) { $this->notes->HrefValue = !empty($this->notes->EditValue) ? ew_RemoveHtml($this->notes->EditValue) : $this->notes->CurrentValue; // Add prefix/suffix $this->notes->LinkAttrs["target"] = ""; // Add target if ($this->Export != "") { $this->notes->HrefValue = ew_ConvertFullUrl($this->notes->HrefValue); } } else { $this->notes->HrefValue = ""; } } if ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row $this->SetupFieldTitles(); } // Call Row Rendered event if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) { $this->Row_Rendered(); } }
function RenderEditRow() { global $conn, $Security, $gsLanguage, $Language; // Call Row Rendering event $this->Row_Rendering(); // id_socio $this->id_socio->EditAttrs["class"] = "form-control"; $this->id_socio->EditCustomAttributes = ""; if ($this->id_socio->getSessionValue() != "") { $this->id_socio->CurrentValue = $this->id_socio->getSessionValue(); 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 = ""; } else { } // id_detalles $this->id_detalles->EditAttrs["class"] = "form-control"; $this->id_detalles->EditCustomAttributes = ""; if ($this->id_detalles->getSessionValue() != "") { $this->id_detalles->CurrentValue = $this->id_detalles->getSessionValue(); if (strval($this->id_detalles->CurrentValue) != "") { $sFilterWrk = "`codigo`" . ew_SearchString("=", $this->id_detalles->CurrentValue, EW_DATATYPE_NUMBER); $sSqlWrk = "SELECT `codigo`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `detalles`"; $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_detalles, $sWhereWrk); if ($sWhereWrk != "") { $sSqlWrk .= " WHERE " . $sWhereWrk; } $sSqlWrk .= " ORDER BY `nombre` DESC"; $rswrk = $conn->Execute($sSqlWrk); if ($rswrk && !$rswrk->EOF) { // Lookup values found $this->id_detalles->ViewValue = $rswrk->fields('DispFld'); $rswrk->Close(); } else { $this->id_detalles->ViewValue = $this->id_detalles->CurrentValue; } } else { $this->id_detalles->ViewValue = NULL; } $this->id_detalles->ViewCustomAttributes = ""; } else { } // fecha_alta $this->fecha_alta->EditAttrs["class"] = "form-control"; $this->fecha_alta->EditCustomAttributes = ""; $this->fecha_alta->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->fecha_alta->CurrentValue, 7)); $this->fecha_alta->PlaceHolder = ew_RemoveHtml($this->fecha_alta->FldCaption()); // fecha_baja $this->fecha_baja->EditAttrs["class"] = "form-control"; $this->fecha_baja->EditCustomAttributes = ""; $this->fecha_baja->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->fecha_baja->CurrentValue, 7)); $this->fecha_baja->PlaceHolder = ew_RemoveHtml($this->fecha_baja->FldCaption()); // Call Row Rendered event $this->Row_Rendered(); }
$Breadcrumb->Render(); $forgotpwd->ShowPageHeader(); $forgotpwd->ShowMessage(); ?> <form name="fforgotpwd" id="fforgotpwd" class="ewForm form-horizontal" action="<?php echo ew_CurrentPage(); ?> " method="post"> <div class="ewForgotpwdContent"> <div class="control-group"> <label class="control-label" for="email"><?php echo $Language->Phrase("UserEmail"); ?> </label> <div class="controls"><input type="text" name="email" id="email" class="input-large" value="<?php ew_HtmlEncode($forgotpwd->Email); ?> " size="30" maxlength="255" placeholder="<?php echo $Language->Phrase("UserEmail"); ?> "></div> </div> <div class="control-group"> <div class="controls"> <button class="btn btn-primary ewButton" name="btnsubmit" id="btnsubmit" type="submit"><?php echo $Language->Phrase("SendPwd"); ?> </button> </div> </div> </div>
<form name="forderlistsrch" id="forderlistsrch" class="ewForm" action="<?php echo ew_CurrentPage(); ?> "> <input type="hidden" id="t" name="t" value="order"> <table class="ewBasicSearch"> <tr> <td><span class="phpmaker"> <input type="text" name="<?php echo EW_TABLE_BASIC_SEARCH; ?> " id="<?php echo EW_TABLE_BASIC_SEARCH; ?> " size="20" value="<?php echo ew_HtmlEncode($order->getSessionBasicSearchKeyword()); ?> "> <input type="Submit" name="Submit" id="Submit" value="<?php echo ew_BtnCaption($Language->Phrase("QuickSearchBtn")); ?> "> <a href="<?php echo $order_list->PageUrl(); ?> cmd=reset"><?php echo $Language->Phrase("ShowAll"); ?> </a> </span></td> </tr>
function RenderListOptions() { global $Security, $Language, $objForm; $this->ListOptions->LoadDefault(); // "view" $oListOpt =& $this->ListOptions->Items["view"]; if ($Security->IsLoggedIn()) { $oListOpt->Body = "<a class=\"ewRowLink\" href=\"" . $this->ViewUrl . "\">" . $Language->Phrase("ViewLink") . "</a>"; } // "edit" $oListOpt =& $this->ListOptions->Items["edit"]; if ($Security->IsLoggedIn()) { $oListOpt->Body = "<a class=\"ewRowLink\" href=\"" . $this->EditUrl . "\">" . $Language->Phrase("EditLink") . "</a>"; } // "copy" $oListOpt =& $this->ListOptions->Items["copy"]; if ($Security->IsLoggedIn()) { $oListOpt->Body = "<a class=\"ewRowLink\" href=\"" . $this->CopyUrl . "\">" . $Language->Phrase("CopyLink") . "</a>"; } // "checkbox" $oListOpt =& $this->ListOptions->Items["checkbox"]; if ($Security->IsLoggedIn()) { $oListOpt->Body = "<input type=\"checkbox\" name=\"key_m[]\" value=\"" . ew_HtmlEncode($this->accountId->CurrentValue . $GLOBALS["EW_COMPOSITE_KEY_SEPARATOR"] . $this->permissionId->CurrentValue . $GLOBALS["EW_COMPOSITE_KEY_SEPARATOR"] . $this->realmId->CurrentValue) . "\" class=\"phpmaker\" onclick='ew_ClickMultiCheckbox(event, this);'>"; } $this->RenderListOptionsExt(); // Call ListOptions_Rendered event $this->ListOptions_Rendered(); }
function SetupOtherOptions() { global $Language, $Security; $options =& $this->OtherOptions; $option = $options["addedit"]; // Add $item =& $option->Add("add"); $item->Body = "<a class=\"ewAddEdit ewAdd\" title=\"" . ew_HtmlTitle($Language->Phrase("AddLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("AddLink")) . "\" href=\"" . ew_HtmlEncode($this->AddUrl) . "\">" . $Language->Phrase("AddLink") . "</a>"; $item->Visible = $this->AddUrl != ""; $option = $options["detail"]; $DetailTableLink = ""; $item =& $option->Add("detailadd_servicio_medico_prestado"); $item->Body = "<a class=\"ewDetailAddGroup ewDetailAdd\" title=\"" . ew_HtmlTitle($Language->Phrase("AddMasterDetailLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("AddMasterDetailLink")) . "\" href=\"" . ew_HtmlEncode($this->GetAddUrl() . "?" . EW_TABLE_SHOW_DETAIL . "=servicio_medico_prestado") . "\">" . $Language->Phrase("Add") . " " . $this->TableCaption() . "/" . $GLOBALS["servicio_medico_prestado"]->TableCaption() . "</a>"; $item->Visible = $GLOBALS["servicio_medico_prestado"]->DetailAdd; if ($item->Visible) { if ($DetailTableLink != "") { $DetailTableLink .= ","; } $DetailTableLink .= "servicio_medico_prestado"; } $item =& $option->Add("detailadd_consulta"); $item->Body = "<a class=\"ewDetailAddGroup ewDetailAdd\" title=\"" . ew_HtmlTitle($Language->Phrase("AddMasterDetailLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("AddMasterDetailLink")) . "\" href=\"" . ew_HtmlEncode($this->GetAddUrl() . "?" . EW_TABLE_SHOW_DETAIL . "=consulta") . "\">" . $Language->Phrase("Add") . " " . $this->TableCaption() . "/" . $GLOBALS["consulta"]->TableCaption() . "</a>"; $item->Visible = $GLOBALS["consulta"]->DetailAdd; if ($item->Visible) { if ($DetailTableLink != "") { $DetailTableLink .= ","; } $DetailTableLink .= "consulta"; } $item =& $option->Add("detailadd_internado_diario"); $item->Body = "<a class=\"ewDetailAddGroup ewDetailAdd\" title=\"" . ew_HtmlTitle($Language->Phrase("AddMasterDetailLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("AddMasterDetailLink")) . "\" href=\"" . ew_HtmlEncode($this->GetAddUrl() . "?" . EW_TABLE_SHOW_DETAIL . "=internado_diario") . "\">" . $Language->Phrase("Add") . " " . $this->TableCaption() . "/" . $GLOBALS["internado_diario"]->TableCaption() . "</a>"; $item->Visible = $GLOBALS["internado_diario"]->DetailAdd; if ($item->Visible) { if ($DetailTableLink != "") { $DetailTableLink .= ","; } $DetailTableLink .= "internado_diario"; } // Add multiple details if ($this->ShowMultipleDetails) { $item =& $option->Add("detailsadd"); $item->Body = "<a class=\"ewDetailAddGroup ewDetailAdd\" title=\"" . ew_HtmlTitle($Language->Phrase("AddMasterDetailLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("AddMasterDetailLink")) . "\" href=\"" . ew_HtmlEncode($this->GetAddUrl() . "?" . EW_TABLE_SHOW_DETAIL . "=" . $DetailTableLink) . "\">" . $Language->Phrase("AddMasterDetailLink") . "</a>"; $item->Visible = $DetailTableLink != ""; // Hide single master/detail items $ar = explode(",", $DetailTableLink); $cnt = count($ar); for ($i = 0; $i < $cnt; $i++) { if ($item =& $option->GetItem("detailadd_" . $ar[$i])) { $item->Visible = FALSE; } } } $option = $options["action"]; // Set up options default foreach ($options as &$option) { $option->UseImageAndText = TRUE; $option->UseDropDownButton = FALSE; $option->UseButtonGroup = TRUE; $option->ButtonClass = "btn-sm"; // Class for button group $item =& $option->Add($option->GroupOptionName); $item->Body = ""; $item->Visible = FALSE; } $options["addedit"]->DropDownButtonPhrase = $Language->Phrase("ButtonAddEdit"); $options["detail"]->DropDownButtonPhrase = $Language->Phrase("ButtonDetails"); $options["action"]->DropDownButtonPhrase = $Language->Phrase("ButtonActions"); }
?> _idcuenta" value="<?php echo ew_HtmlEncode($receta->idcuenta->FormValue); ?> "> <?php } ?> <input type="hidden" data-field="x_idcuenta" name="o<?php echo $receta_grid->RowIndex; ?> _idcuenta" id="o<?php echo $receta_grid->RowIndex; ?> _idcuenta" value="<?php echo ew_HtmlEncode($receta->idcuenta->OldValue); ?> "> </td> <?php } // Render list options (body, right) $receta_grid->ListOptions->Render("body", "right", $receta_grid->RowCnt); ?> <script type="text/javascript"> frecetagrid.UpdateOpts(<?php echo $receta_grid->RowIndex; ?> ); </script> </tr>
if (is_array($arwrk)) { $rowswrk = count($arwrk); $emptywrk = TRUE; for ($rowcntwrk = 0; $rowcntwrk < $rowswrk; $rowcntwrk++) { $selwrk = strval($messages->M_url->CurrentValue) == strval($arwrk[$rowcntwrk][0]) ? " checked=\"checked\"" : ""; if ($selwrk != "") { $emptywrk = FALSE; } // Note: No spacing within the LABEL tag echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 1); ?> <label class="radio-inline"><input type="radio" data-field="x_M_url" name="x_M_url" id="x_M_url_<?php echo $rowcntwrk; ?> " value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]); ?> "<?php echo $selwrk; echo $messages->M_url->EditAttributes(); ?> ><?php echo $arwrk[$rowcntwrk][1]; ?> </label> <?php echo ew_RepeatColumnTable($rowswrk, $rowcntwrk, 5, 2); } } ?> </div>
function SetupOtherOptions() { global $Language, $Security; $options =& $this->OtherOptions; $option =& $options["action"]; // Add $item =& $option->Add("add"); $item->Body = "<a class=\"ewAction ewAdd\" href=\"" . ew_HtmlEncode($this->AddUrl) . "\">" . $Language->Phrase("ViewPageAddLink") . "</a>"; $item->Visible = $this->AddUrl != "" && $Security->IsLoggedIn(); // Edit $item =& $option->Add("edit"); $item->Body = "<a class=\"ewAction ewEdit\" href=\"" . ew_HtmlEncode($this->EditUrl) . "\">" . $Language->Phrase("ViewPageEditLink") . "</a>"; $item->Visible = $this->EditUrl != "" && $Security->IsLoggedIn(); // Copy $item =& $option->Add("copy"); $item->Body = "<a class=\"ewAction ewCopy\" href=\"" . ew_HtmlEncode($this->CopyUrl) . "\">" . $Language->Phrase("ViewPageCopyLink") . "</a>"; $item->Visible = $this->CopyUrl != "" && $Security->IsLoggedIn(); // Delete $item =& $option->Add("delete"); $item->Body = "<a class=\"ewAction ewDelete\" href=\"" . ew_HtmlEncode($this->DeleteUrl) . "\">" . $Language->Phrase("ViewPageDeleteLink") . "</a>"; $item->Visible = $this->DeleteUrl != "" && $Security->IsLoggedIn(); // Set up options default foreach ($options as &$option) { $option->UseDropDownButton = FALSE; $option->UseButtonGroup = TRUE; $item =& $option->Add($option->GroupOptionName); $item->Body = ""; $item->Visible = FALSE; } $options["detail"]->DropDownButtonPhrase = $Language->Phrase("ButtonDetails"); $options["action"]->DropDownButtonPhrase = $Language->Phrase("ButtonActions"); }
function SetupOtherOptions() { global $Language, $Security; $options =& $this->OtherOptions; $option = $options["addedit"]; // Add $item =& $option->Add("add"); $item->Body = "<a class=\"ewAddEdit ewAdd\" href=\"" . ew_HtmlEncode($this->AddUrl) . "\">" . $Language->Phrase("AddLink") . "</a>"; $item->Visible = $this->AddUrl != "" && $Security->IsLoggedIn(); $option = $options["action"]; // Set up options default foreach ($options as &$option) { $option->UseDropDownButton = FALSE; $option->UseButtonGroup = TRUE; $option->ButtonClass = "btn-small"; // Class for button group $item =& $option->Add($option->GroupOptionName); $item->Body = ""; $item->Visible = FALSE; } $options["addedit"]->DropDownButtonPhrase = $Language->Phrase("ButtonAddEdit"); $options["detail"]->DropDownButtonPhrase = $Language->Phrase("ButtonDetails"); $options["action"]->DropDownButtonPhrase = $Language->Phrase("ButtonActions"); }
?> " value="<?php echo $bank_delete->Token; ?> "> <?php } ?> <input type="hidden" name="t" value="bank"> <input type="hidden" name="a_delete" id="a_delete" value="D"> <?php foreach ($bank_delete->RecKeys as $key) { $keyvalue = is_array($key) ? implode($EW_COMPOSITE_KEY_SEPARATOR, $key) : $key; ?> <input type="hidden" name="key_m[]" value="<?php echo ew_HtmlEncode($keyvalue); ?> "> <?php } ?> <div class="ewGrid"> <div class="<?php if (ew_IsResponsiveLayout()) { echo "table-responsive "; } ?> ewGridMiddlePanel"> <table class="table ewTable"> <?php echo $bank->TableCustomInnerHtml;
function RenderRow() { global $Security, $Language, $gsLanguage; // Initialize URLs // Convert decimal values if posted back if ($this->ACCOUNT_NUMBER->FormValue == $this->ACCOUNT_NUMBER->CurrentValue && is_numeric(ew_StrToFloat($this->ACCOUNT_NUMBER->CurrentValue))) { $this->ACCOUNT_NUMBER->CurrentValue = ew_StrToFloat($this->ACCOUNT_NUMBER->CurrentValue); } // Call Row_Rendering event $this->Row_Rendering(); // Common render codes for all row types // BANK_ACCOUNT_ID // CODE // DESCRIPTION // ACCOUNT_NUMBER // BANK_ID // ACTIVE if ($this->RowType == EW_ROWTYPE_VIEW) { // View row // CODE $this->CODE->ViewValue = $this->CODE->CurrentValue; $this->CODE->ViewCustomAttributes = ""; // DESCRIPTION $this->DESCRIPTION->ViewValue = $this->DESCRIPTION->CurrentValue; $this->DESCRIPTION->ViewCustomAttributes = ""; // ACCOUNT_NUMBER $this->ACCOUNT_NUMBER->ViewValue = $this->ACCOUNT_NUMBER->CurrentValue; $this->ACCOUNT_NUMBER->ViewCustomAttributes = ""; // BANK_ID if (strval($this->BANK_ID->CurrentValue) != "") { $sFilterWrk = "`BANK_ID`" . ew_SearchString("=", $this->BANK_ID->CurrentValue, EW_DATATYPE_NUMBER, ""); switch (@$gsLanguage) { case "es": $sSqlWrk = "SELECT `BANK_ID`, `DESCRIPTION` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `bank`"; $sWhereWrk = ""; break; default: $sSqlWrk = "SELECT `BANK_ID`, `DESCRIPTION` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `bank`"; $sWhereWrk = ""; break; } ew_AddFilter($sWhereWrk, $sFilterWrk); $this->Lookup_Selecting($this->BANK_ID, $sWhereWrk); // Call Lookup selecting if ($sWhereWrk != "") { $sSqlWrk .= " WHERE " . $sWhereWrk; } $rswrk = Conn()->Execute($sSqlWrk); if ($rswrk && !$rswrk->EOF) { // Lookup values found $arwrk = array(); $arwrk[1] = $rswrk->fields('DispFld'); $this->BANK_ID->ViewValue = $this->BANK_ID->DisplayValue($arwrk); $rswrk->Close(); } else { $this->BANK_ID->ViewValue = $this->BANK_ID->CurrentValue; } } else { $this->BANK_ID->ViewValue = NULL; } $this->BANK_ID->ViewCustomAttributes = ""; // ACTIVE if (strval($this->ACTIVE->CurrentValue) != "") { $this->ACTIVE->ViewValue = $this->ACTIVE->OptionCaption($this->ACTIVE->CurrentValue); } else { $this->ACTIVE->ViewValue = NULL; } $this->ACTIVE->ViewCustomAttributes = ""; // CODE $this->CODE->LinkCustomAttributes = ""; $this->CODE->HrefValue = ""; $this->CODE->TooltipValue = ""; // DESCRIPTION $this->DESCRIPTION->LinkCustomAttributes = ""; $this->DESCRIPTION->HrefValue = ""; $this->DESCRIPTION->TooltipValue = ""; // ACCOUNT_NUMBER $this->ACCOUNT_NUMBER->LinkCustomAttributes = ""; $this->ACCOUNT_NUMBER->HrefValue = ""; $this->ACCOUNT_NUMBER->TooltipValue = ""; // BANK_ID $this->BANK_ID->LinkCustomAttributes = ""; $this->BANK_ID->HrefValue = ""; $this->BANK_ID->TooltipValue = ""; // ACTIVE $this->ACTIVE->LinkCustomAttributes = ""; $this->ACTIVE->HrefValue = ""; $this->ACTIVE->TooltipValue = ""; } elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row // CODE $this->CODE->EditAttrs["class"] = "form-control"; $this->CODE->EditCustomAttributes = ""; $this->CODE->EditValue = ew_HtmlEncode($this->CODE->CurrentValue); $this->CODE->PlaceHolder = ew_RemoveHtml($this->CODE->FldCaption()); // DESCRIPTION $this->DESCRIPTION->EditAttrs["class"] = "form-control"; $this->DESCRIPTION->EditCustomAttributes = ""; $this->DESCRIPTION->EditValue = ew_HtmlEncode($this->DESCRIPTION->CurrentValue); $this->DESCRIPTION->PlaceHolder = ew_RemoveHtml($this->DESCRIPTION->FldCaption()); // ACCOUNT_NUMBER $this->ACCOUNT_NUMBER->EditAttrs["class"] = "form-control"; $this->ACCOUNT_NUMBER->EditCustomAttributes = ""; $this->ACCOUNT_NUMBER->EditValue = ew_HtmlEncode($this->ACCOUNT_NUMBER->CurrentValue); $this->ACCOUNT_NUMBER->PlaceHolder = ew_RemoveHtml($this->ACCOUNT_NUMBER->FldCaption()); if (strval($this->ACCOUNT_NUMBER->EditValue) != "" && is_numeric($this->ACCOUNT_NUMBER->EditValue)) { $this->ACCOUNT_NUMBER->EditValue = ew_FormatNumber($this->ACCOUNT_NUMBER->EditValue, -2, -1, -2, 0); } // BANK_ID $this->BANK_ID->EditAttrs["class"] = "form-control"; $this->BANK_ID->EditCustomAttributes = ""; if (trim(strval($this->BANK_ID->CurrentValue)) == "") { $sFilterWrk = "0=1"; } else { $sFilterWrk = "`BANK_ID`" . ew_SearchString("=", $this->BANK_ID->CurrentValue, EW_DATATYPE_NUMBER, ""); } switch (@$gsLanguage) { case "es": $sSqlWrk = "SELECT `BANK_ID`, `DESCRIPTION` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `bank`"; $sWhereWrk = ""; break; default: $sSqlWrk = "SELECT `BANK_ID`, `DESCRIPTION` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `bank`"; $sWhereWrk = ""; break; } ew_AddFilter($sWhereWrk, $sFilterWrk); $this->Lookup_Selecting($this->BANK_ID, $sWhereWrk); // Call Lookup selecting if ($sWhereWrk != "") { $sSqlWrk .= " WHERE " . $sWhereWrk; } $rswrk = Conn()->Execute($sSqlWrk); $arwrk = $rswrk ? $rswrk->GetRows() : array(); if ($rswrk) { $rswrk->Close(); } array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect"), "", "", "", "", "", "", "")); $this->BANK_ID->EditValue = $arwrk; // ACTIVE $this->ACTIVE->EditAttrs["class"] = "form-control"; $this->ACTIVE->EditCustomAttributes = ""; $this->ACTIVE->EditValue = $this->ACTIVE->Options(TRUE); // Edit refer script // CODE $this->CODE->LinkCustomAttributes = ""; $this->CODE->HrefValue = ""; // DESCRIPTION $this->DESCRIPTION->LinkCustomAttributes = ""; $this->DESCRIPTION->HrefValue = ""; // ACCOUNT_NUMBER $this->ACCOUNT_NUMBER->LinkCustomAttributes = ""; $this->ACCOUNT_NUMBER->HrefValue = ""; // BANK_ID $this->BANK_ID->LinkCustomAttributes = ""; $this->BANK_ID->HrefValue = ""; // ACTIVE $this->ACTIVE->LinkCustomAttributes = ""; $this->ACTIVE->HrefValue = ""; } if ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row $this->SetupFieldTitles(); } // Call Row Rendered event if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) { $this->Row_Rendered(); } }
function RenderListOptions() { global $Security, $Language, $objForm; $this->ListOptions->LoadDefault(); // "checkbox" $oListOpt =& $this->ListOptions->Items["checkbox"]; $oListOpt->Body = "<input type=\"checkbox\" name=\"key_m[]\" value=\"" . ew_HtmlEncode($this->codigo->CurrentValue) . "\" onclick='ew_ClickMultiCheckbox(event, this);'>"; $this->RenderListOptionsExt(); // Call ListOptions_Rendered event $this->ListOptions_Rendered(); }
function RenderRow() { global $conn, $Security, $AdminInfo; // Call Row_Rendering event $AdminInfo->Row_Rendering(); // Common render codes for all row types // id $AdminInfo->id->CellCssStyle = ""; $AdminInfo->id->CellCssClass = ""; // Name $AdminInfo->Name->CellCssStyle = ""; $AdminInfo->Name->CellCssClass = ""; // Password $AdminInfo->Password->CellCssStyle = ""; $AdminInfo->Password->CellCssClass = ""; if ($AdminInfo->RowType == EW_ROWTYPE_VIEW) { // View row // id $AdminInfo->id->ViewValue = $AdminInfo->id->CurrentValue; $AdminInfo->id->CssStyle = ""; $AdminInfo->id->CssClass = ""; $AdminInfo->id->ViewCustomAttributes = ""; // Name $AdminInfo->Name->ViewValue = $AdminInfo->Name->CurrentValue; $AdminInfo->Name->CssStyle = ""; $AdminInfo->Name->CssClass = ""; $AdminInfo->Name->ViewCustomAttributes = ""; // Password $AdminInfo->Password->ViewValue = "********"; $AdminInfo->Password->CssStyle = ""; $AdminInfo->Password->CssClass = ""; $AdminInfo->Password->ViewCustomAttributes = ""; // id $AdminInfo->id->HrefValue = ""; // Name $AdminInfo->Name->HrefValue = ""; // Password $AdminInfo->Password->HrefValue = ""; } elseif ($AdminInfo->RowType == EW_ROWTYPE_EDIT) { // Edit row // id $AdminInfo->id->EditCustomAttributes = ""; $AdminInfo->id->EditValue = $AdminInfo->id->CurrentValue; $AdminInfo->id->CssStyle = ""; $AdminInfo->id->CssClass = ""; $AdminInfo->id->ViewCustomAttributes = ""; // Name $AdminInfo->Name->EditCustomAttributes = ""; $AdminInfo->Name->EditValue = ew_HtmlEncode($AdminInfo->Name->CurrentValue); // Password $AdminInfo->Password->EditCustomAttributes = ""; $AdminInfo->Password->EditValue = ew_HtmlEncode($AdminInfo->Password->CurrentValue); // Edit refer script // id $AdminInfo->id->HrefValue = ""; // Name $AdminInfo->Name->HrefValue = ""; // Password $AdminInfo->Password->HrefValue = ""; } // Call Row Rendered event $AdminInfo->Row_Rendered(); }
function RenderRow() { global $conn, $Security, $GiftCertificates; // Call Row_Rendering event $GiftCertificates->Row_Rendering(); // Common render codes for all row types // CustomerID $GiftCertificates->CustomerID->CellCssStyle = ""; $GiftCertificates->CustomerID->CellCssClass = ""; // GiftEmail $GiftCertificates->GiftEmail->CellCssStyle = ""; $GiftCertificates->GiftEmail->CellCssClass = ""; // GiftPhone $GiftCertificates->GiftPhone->CellCssStyle = ""; $GiftCertificates->GiftPhone->CellCssClass = ""; // GiftFirstName $GiftCertificates->GiftFirstName->CellCssStyle = ""; $GiftCertificates->GiftFirstName->CellCssClass = ""; // GiftLastName $GiftCertificates->GiftLastName->CellCssStyle = ""; $GiftCertificates->GiftLastName->CellCssClass = ""; // GiftAmount $GiftCertificates->GiftAmount->CellCssStyle = ""; $GiftCertificates->GiftAmount->CellCssClass = ""; // GiftMessage $GiftCertificates->GiftMessage->CellCssStyle = ""; $GiftCertificates->GiftMessage->CellCssClass = ""; // GiftSendMethod $GiftCertificates->GiftSendMethod->CellCssStyle = ""; $GiftCertificates->GiftSendMethod->CellCssClass = ""; // GiftSendAddress1 $GiftCertificates->GiftSendAddress1->CellCssStyle = ""; $GiftCertificates->GiftSendAddress1->CellCssClass = ""; // GiftSendAddress2 $GiftCertificates->GiftSendAddress2->CellCssStyle = ""; $GiftCertificates->GiftSendAddress2->CellCssClass = ""; // GiftSendCity $GiftCertificates->GiftSendCity->CellCssStyle = ""; $GiftCertificates->GiftSendCity->CellCssClass = ""; // GiftSendState $GiftCertificates->GiftSendState->CellCssStyle = ""; $GiftCertificates->GiftSendState->CellCssClass = ""; // GiftSendZip $GiftCertificates->GiftSendZip->CellCssStyle = ""; $GiftCertificates->GiftSendZip->CellCssClass = ""; // GiftSendEmail $GiftCertificates->GiftSendEmail->CellCssStyle = ""; $GiftCertificates->GiftSendEmail->CellCssClass = ""; // PromoCodeID $GiftCertificates->PromoCodeID->CellCssStyle = ""; $GiftCertificates->PromoCodeID->CellCssClass = ""; if ($GiftCertificates->RowType == EW_ROWTYPE_VIEW) { // View row // GiftCertificateID $GiftCertificates->GiftCertificateID->ViewValue = $GiftCertificates->GiftCertificateID->CurrentValue; $GiftCertificates->GiftCertificateID->CssStyle = ""; $GiftCertificates->GiftCertificateID->CssClass = ""; $GiftCertificates->GiftCertificateID->ViewCustomAttributes = ""; // CustomerID $GiftCertificates->CustomerID->ViewValue = $GiftCertificates->CustomerID->CurrentValue; if (strval($GiftCertificates->CustomerID->CurrentValue) != "") { $sSqlWrk = "SELECT `Email` FROM `Customers` WHERE `CustomerID` = " . ew_AdjustSql($GiftCertificates->CustomerID->CurrentValue) . ""; $rswrk = $conn->Execute($sSqlWrk); if ($rswrk && !$rswrk->EOF) { // Lookup value(s) found $GiftCertificates->CustomerID->ViewValue = $rswrk->fields('Email'); $rswrk->Close(); } else { $GiftCertificates->CustomerID->ViewValue = $GiftCertificates->CustomerID->CurrentValue; } } else { $GiftCertificates->CustomerID->ViewValue = NULL; } $GiftCertificates->CustomerID->CssStyle = ""; $GiftCertificates->CustomerID->CssClass = ""; $GiftCertificates->CustomerID->ViewCustomAttributes = ""; // GiftEmail $GiftCertificates->GiftEmail->ViewValue = $GiftCertificates->GiftEmail->CurrentValue; $GiftCertificates->GiftEmail->CssStyle = ""; $GiftCertificates->GiftEmail->CssClass = ""; $GiftCertificates->GiftEmail->ViewCustomAttributes = ""; // GiftPhone $GiftCertificates->GiftPhone->ViewValue = $GiftCertificates->GiftPhone->CurrentValue; $GiftCertificates->GiftPhone->CssStyle = ""; $GiftCertificates->GiftPhone->CssClass = ""; $GiftCertificates->GiftPhone->ViewCustomAttributes = ""; // GiftFirstName $GiftCertificates->GiftFirstName->ViewValue = $GiftCertificates->GiftFirstName->CurrentValue; $GiftCertificates->GiftFirstName->CssStyle = ""; $GiftCertificates->GiftFirstName->CssClass = ""; $GiftCertificates->GiftFirstName->ViewCustomAttributes = ""; // GiftLastName $GiftCertificates->GiftLastName->ViewValue = $GiftCertificates->GiftLastName->CurrentValue; $GiftCertificates->GiftLastName->CssStyle = ""; $GiftCertificates->GiftLastName->CssClass = ""; $GiftCertificates->GiftLastName->ViewCustomAttributes = ""; // GiftAmount $GiftCertificates->GiftAmount->ViewValue = $GiftCertificates->GiftAmount->CurrentValue; $GiftCertificates->GiftAmount->CssStyle = ""; $GiftCertificates->GiftAmount->CssClass = ""; $GiftCertificates->GiftAmount->ViewCustomAttributes = ""; // GiftMessage $GiftCertificates->GiftMessage->ViewValue = $GiftCertificates->GiftMessage->CurrentValue; $GiftCertificates->GiftMessage->CssStyle = ""; $GiftCertificates->GiftMessage->CssClass = ""; $GiftCertificates->GiftMessage->ViewCustomAttributes = ""; // GiftSendMethod if (strval($GiftCertificates->GiftSendMethod->CurrentValue) != "") { switch ($GiftCertificates->GiftSendMethod->CurrentValue) { case "0": $GiftCertificates->GiftSendMethod->ViewValue = "Email To Buyer"; break; case "1": $GiftCertificates->GiftSendMethod->ViewValue = "Email to Recipient"; break; case "2": $GiftCertificates->GiftSendMethod->ViewValue = "Mail plastic card to Buyer"; break; case "3": $GiftCertificates->GiftSendMethod->ViewValue = "Mail plastic card to Recipient"; break; default: $GiftCertificates->GiftSendMethod->ViewValue = $GiftCertificates->GiftSendMethod->CurrentValue; } } else { $GiftCertificates->GiftSendMethod->ViewValue = NULL; } $GiftCertificates->GiftSendMethod->CssStyle = ""; $GiftCertificates->GiftSendMethod->CssClass = ""; $GiftCertificates->GiftSendMethod->ViewCustomAttributes = ""; // GiftSendAddress1 $GiftCertificates->GiftSendAddress1->ViewValue = $GiftCertificates->GiftSendAddress1->CurrentValue; $GiftCertificates->GiftSendAddress1->CssStyle = ""; $GiftCertificates->GiftSendAddress1->CssClass = ""; $GiftCertificates->GiftSendAddress1->ViewCustomAttributes = ""; // GiftSendAddress2 $GiftCertificates->GiftSendAddress2->ViewValue = $GiftCertificates->GiftSendAddress2->CurrentValue; $GiftCertificates->GiftSendAddress2->CssStyle = ""; $GiftCertificates->GiftSendAddress2->CssClass = ""; $GiftCertificates->GiftSendAddress2->ViewCustomAttributes = ""; // GiftSendCity $GiftCertificates->GiftSendCity->ViewValue = $GiftCertificates->GiftSendCity->CurrentValue; $GiftCertificates->GiftSendCity->CssStyle = ""; $GiftCertificates->GiftSendCity->CssClass = ""; $GiftCertificates->GiftSendCity->ViewCustomAttributes = ""; // GiftSendState $GiftCertificates->GiftSendState->ViewValue = $GiftCertificates->GiftSendState->CurrentValue; $GiftCertificates->GiftSendState->CssStyle = ""; $GiftCertificates->GiftSendState->CssClass = ""; $GiftCertificates->GiftSendState->ViewCustomAttributes = ""; // GiftSendZip $GiftCertificates->GiftSendZip->ViewValue = $GiftCertificates->GiftSendZip->CurrentValue; $GiftCertificates->GiftSendZip->CssStyle = ""; $GiftCertificates->GiftSendZip->CssClass = ""; $GiftCertificates->GiftSendZip->ViewCustomAttributes = ""; // GiftSendEmail $GiftCertificates->GiftSendEmail->ViewValue = $GiftCertificates->GiftSendEmail->CurrentValue; $GiftCertificates->GiftSendEmail->CssStyle = ""; $GiftCertificates->GiftSendEmail->CssClass = ""; $GiftCertificates->GiftSendEmail->ViewCustomAttributes = ""; // PromoCodeID $GiftCertificates->PromoCodeID->ViewValue = $GiftCertificates->PromoCodeID->CurrentValue; if (strval($GiftCertificates->PromoCodeID->CurrentValue) != "") { $sSqlWrk = "SELECT `PromoCodeName` FROM `PromoCodes` WHERE `PromoCodeID` = " . ew_AdjustSql($GiftCertificates->PromoCodeID->CurrentValue) . ""; $rswrk = $conn->Execute($sSqlWrk); if ($rswrk && !$rswrk->EOF) { // Lookup value(s) found $GiftCertificates->PromoCodeID->ViewValue = $rswrk->fields('PromoCodeName'); $rswrk->Close(); } else { $GiftCertificates->PromoCodeID->ViewValue = $GiftCertificates->PromoCodeID->CurrentValue; } } else { $GiftCertificates->PromoCodeID->ViewValue = NULL; } $GiftCertificates->PromoCodeID->CssStyle = ""; $GiftCertificates->PromoCodeID->CssClass = ""; $GiftCertificates->PromoCodeID->ViewCustomAttributes = ""; // CustomerID $GiftCertificates->CustomerID->HrefValue = ""; // GiftEmail $GiftCertificates->GiftEmail->HrefValue = ""; // GiftPhone $GiftCertificates->GiftPhone->HrefValue = ""; // GiftFirstName $GiftCertificates->GiftFirstName->HrefValue = ""; // GiftLastName $GiftCertificates->GiftLastName->HrefValue = ""; // GiftAmount $GiftCertificates->GiftAmount->HrefValue = ""; // GiftMessage $GiftCertificates->GiftMessage->HrefValue = ""; // GiftSendMethod $GiftCertificates->GiftSendMethod->HrefValue = ""; // GiftSendAddress1 $GiftCertificates->GiftSendAddress1->HrefValue = ""; // GiftSendAddress2 $GiftCertificates->GiftSendAddress2->HrefValue = ""; // GiftSendCity $GiftCertificates->GiftSendCity->HrefValue = ""; // GiftSendState $GiftCertificates->GiftSendState->HrefValue = ""; // GiftSendZip $GiftCertificates->GiftSendZip->HrefValue = ""; // GiftSendEmail $GiftCertificates->GiftSendEmail->HrefValue = ""; // PromoCodeID $GiftCertificates->PromoCodeID->HrefValue = ""; } elseif ($GiftCertificates->RowType == EW_ROWTYPE_ADD) { // Add row // CustomerID $GiftCertificates->CustomerID->EditCustomAttributes = ""; if ($GiftCertificates->CustomerID->getSessionValue() != "") { $GiftCertificates->CustomerID->CurrentValue = $GiftCertificates->CustomerID->getSessionValue(); $GiftCertificates->CustomerID->ViewValue = $GiftCertificates->CustomerID->CurrentValue; if (strval($GiftCertificates->CustomerID->CurrentValue) != "") { $sSqlWrk = "SELECT `Email` FROM `Customers` WHERE `CustomerID` = " . ew_AdjustSql($GiftCertificates->CustomerID->CurrentValue) . ""; $rswrk = $conn->Execute($sSqlWrk); if ($rswrk && !$rswrk->EOF) { // Lookup value(s) found $GiftCertificates->CustomerID->ViewValue = $rswrk->fields('Email'); $rswrk->Close(); } else { $GiftCertificates->CustomerID->ViewValue = $GiftCertificates->CustomerID->CurrentValue; } } else { $GiftCertificates->CustomerID->ViewValue = NULL; } $GiftCertificates->CustomerID->CssStyle = ""; $GiftCertificates->CustomerID->CssClass = ""; $GiftCertificates->CustomerID->ViewCustomAttributes = ""; } else { $GiftCertificates->CustomerID->EditValue = ew_HtmlEncode($GiftCertificates->CustomerID->CurrentValue); if (strval($GiftCertificates->CustomerID->CurrentValue) != "") { $sSqlWrk = "SELECT `Email` FROM `Customers` WHERE `CustomerID` = " . ew_AdjustSql($GiftCertificates->CustomerID->CurrentValue) . ""; $rswrk = $conn->Execute($sSqlWrk); if ($rswrk && !$rswrk->EOF) { // Lookup value(s) found $GiftCertificates->CustomerID->EditValue = $rswrk->fields('Email'); $rswrk->Close(); } else { $GiftCertificates->CustomerID->EditValue = $GiftCertificates->CustomerID->CurrentValue; } } else { $GiftCertificates->CustomerID->EditValue = NULL; } } // GiftEmail $GiftCertificates->GiftEmail->EditCustomAttributes = ""; $GiftCertificates->GiftEmail->EditValue = ew_HtmlEncode($GiftCertificates->GiftEmail->CurrentValue); // GiftPhone $GiftCertificates->GiftPhone->EditCustomAttributes = ""; $GiftCertificates->GiftPhone->EditValue = ew_HtmlEncode($GiftCertificates->GiftPhone->CurrentValue); // GiftFirstName $GiftCertificates->GiftFirstName->EditCustomAttributes = ""; $GiftCertificates->GiftFirstName->EditValue = ew_HtmlEncode($GiftCertificates->GiftFirstName->CurrentValue); // GiftLastName $GiftCertificates->GiftLastName->EditCustomAttributes = ""; $GiftCertificates->GiftLastName->EditValue = ew_HtmlEncode($GiftCertificates->GiftLastName->CurrentValue); // GiftAmount $GiftCertificates->GiftAmount->EditCustomAttributes = ""; $GiftCertificates->GiftAmount->EditValue = ew_HtmlEncode($GiftCertificates->GiftAmount->CurrentValue); // GiftMessage $GiftCertificates->GiftMessage->EditCustomAttributes = ""; $GiftCertificates->GiftMessage->EditValue = ew_HtmlEncode($GiftCertificates->GiftMessage->CurrentValue); // GiftSendMethod $GiftCertificates->GiftSendMethod->EditCustomAttributes = ""; $arwrk = array(); $arwrk[] = array("0", "Email To Buyer"); $arwrk[] = array("1", "Email to Recipient"); $arwrk[] = array("2", "Mail plastic card to Buyer"); $arwrk[] = array("3", "Mail plastic card to Recipient"); array_unshift($arwrk, array("", "Please Select")); $GiftCertificates->GiftSendMethod->EditValue = $arwrk; // GiftSendAddress1 $GiftCertificates->GiftSendAddress1->EditCustomAttributes = ""; $GiftCertificates->GiftSendAddress1->EditValue = ew_HtmlEncode($GiftCertificates->GiftSendAddress1->CurrentValue); // GiftSendAddress2 $GiftCertificates->GiftSendAddress2->EditCustomAttributes = ""; $GiftCertificates->GiftSendAddress2->EditValue = ew_HtmlEncode($GiftCertificates->GiftSendAddress2->CurrentValue); // GiftSendCity $GiftCertificates->GiftSendCity->EditCustomAttributes = ""; $GiftCertificates->GiftSendCity->EditValue = ew_HtmlEncode($GiftCertificates->GiftSendCity->CurrentValue); // GiftSendState $GiftCertificates->GiftSendState->EditCustomAttributes = ""; $GiftCertificates->GiftSendState->EditValue = ew_HtmlEncode($GiftCertificates->GiftSendState->CurrentValue); // GiftSendZip $GiftCertificates->GiftSendZip->EditCustomAttributes = ""; $GiftCertificates->GiftSendZip->EditValue = ew_HtmlEncode($GiftCertificates->GiftSendZip->CurrentValue); // GiftSendEmail $GiftCertificates->GiftSendEmail->EditCustomAttributes = ""; $GiftCertificates->GiftSendEmail->EditValue = ew_HtmlEncode($GiftCertificates->GiftSendEmail->CurrentValue); // PromoCodeID $GiftCertificates->PromoCodeID->EditCustomAttributes = ""; $GiftCertificates->PromoCodeID->EditValue = ew_HtmlEncode($GiftCertificates->PromoCodeID->CurrentValue); if (strval($GiftCertificates->PromoCodeID->CurrentValue) != "") { $sSqlWrk = "SELECT `PromoCodeName` FROM `PromoCodes` WHERE `PromoCodeID` = " . ew_AdjustSql($GiftCertificates->PromoCodeID->CurrentValue) . ""; $rswrk = $conn->Execute($sSqlWrk); if ($rswrk && !$rswrk->EOF) { // Lookup value(s) found $GiftCertificates->PromoCodeID->EditValue = $rswrk->fields('PromoCodeName'); $rswrk->Close(); } else { $GiftCertificates->PromoCodeID->EditValue = $GiftCertificates->PromoCodeID->CurrentValue; } } else { $GiftCertificates->PromoCodeID->EditValue = NULL; } } // Call Row Rendered event $GiftCertificates->Row_Rendered(); }
function RenderRow() { global $conn, $Security, $Language; global $gsLanguage; // Initialize URLs // Convert decimal values if posted back if ($this->costo->FormValue == $this->costo->CurrentValue && is_numeric(ew_StrToFloat($this->costo->CurrentValue))) { $this->costo->CurrentValue = ew_StrToFloat($this->costo->CurrentValue); } // Call Row_Rendering event $this->Row_Rendering(); // Common render codes for all row types // idservicio_medico_prestado // idcuenta // idservicio_medico // estado // costo // fecha_inicio // fecha_final if ($this->RowType == EW_ROWTYPE_VIEW) { // View row // idservicio_medico_prestado $this->idservicio_medico_prestado->ViewValue = $this->idservicio_medico_prestado->CurrentValue; $this->idservicio_medico_prestado->ViewCustomAttributes = ""; // idcuenta if (strval($this->idcuenta->CurrentValue) != "") { $sFilterWrk = "`idcuenta`" . ew_SearchString("=", $this->idcuenta->CurrentValue, EW_DATATYPE_NUMBER); $sSqlWrk = "SELECT `idcuenta`, `idcuenta` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `cuenta`"; $sWhereWrk = ""; if ($sFilterWrk != "") { ew_AddFilter($sWhereWrk, $sFilterWrk); } // Call Lookup selecting $this->Lookup_Selecting($this->idcuenta, $sWhereWrk); if ($sWhereWrk != "") { $sSqlWrk .= " WHERE " . $sWhereWrk; } $rswrk = $conn->Execute($sSqlWrk); if ($rswrk && !$rswrk->EOF) { // Lookup values found $this->idcuenta->ViewValue = $rswrk->fields('DispFld'); $rswrk->Close(); } else { $this->idcuenta->ViewValue = $this->idcuenta->CurrentValue; } } else { $this->idcuenta->ViewValue = NULL; } $this->idcuenta->ViewCustomAttributes = ""; // idservicio_medico if (strval($this->idservicio_medico->CurrentValue) != "") { $sFilterWrk = "`idservicio_medico`" . ew_SearchString("=", $this->idservicio_medico->CurrentValue, EW_DATATYPE_NUMBER); $sSqlWrk = "SELECT `idservicio_medico`, `descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `servicio_medico`"; $sWhereWrk = ""; if ($sFilterWrk != "") { ew_AddFilter($sWhereWrk, $sFilterWrk); } // Call Lookup selecting $this->Lookup_Selecting($this->idservicio_medico, $sWhereWrk); if ($sWhereWrk != "") { $sSqlWrk .= " WHERE " . $sWhereWrk; } $rswrk = $conn->Execute($sSqlWrk); if ($rswrk && !$rswrk->EOF) { // Lookup values found $this->idservicio_medico->ViewValue = $rswrk->fields('DispFld'); $rswrk->Close(); } else { $this->idservicio_medico->ViewValue = $this->idservicio_medico->CurrentValue; } } else { $this->idservicio_medico->ViewValue = NULL; } $this->idservicio_medico->ViewCustomAttributes = ""; // estado if (strval($this->estado->CurrentValue) != "") { switch ($this->estado->CurrentValue) { case $this->estado->FldTagValue(1): $this->estado->ViewValue = $this->estado->FldTagCaption(1) != "" ? $this->estado->FldTagCaption(1) : $this->estado->CurrentValue; break; case $this->estado->FldTagValue(2): $this->estado->ViewValue = $this->estado->FldTagCaption(2) != "" ? $this->estado->FldTagCaption(2) : $this->estado->CurrentValue; break; case $this->estado->FldTagValue(3): $this->estado->ViewValue = $this->estado->FldTagCaption(3) != "" ? $this->estado->FldTagCaption(3) : $this->estado->CurrentValue; break; default: $this->estado->ViewValue = $this->estado->CurrentValue; } } else { $this->estado->ViewValue = NULL; } $this->estado->ViewCustomAttributes = ""; // costo $this->costo->ViewValue = $this->costo->CurrentValue; $this->costo->ViewCustomAttributes = ""; // fecha_inicio $this->fecha_inicio->ViewValue = $this->fecha_inicio->CurrentValue; $this->fecha_inicio->ViewValue = ew_FormatDateTime($this->fecha_inicio->ViewValue, 7); $this->fecha_inicio->ViewCustomAttributes = ""; // fecha_final $this->fecha_final->ViewValue = $this->fecha_final->CurrentValue; $this->fecha_final->ViewValue = ew_FormatDateTime($this->fecha_final->ViewValue, 7); $this->fecha_final->ViewCustomAttributes = ""; // idcuenta $this->idcuenta->LinkCustomAttributes = ""; $this->idcuenta->HrefValue = ""; $this->idcuenta->TooltipValue = ""; // idservicio_medico $this->idservicio_medico->LinkCustomAttributes = ""; $this->idservicio_medico->HrefValue = ""; $this->idservicio_medico->TooltipValue = ""; // costo $this->costo->LinkCustomAttributes = ""; $this->costo->HrefValue = ""; $this->costo->TooltipValue = ""; } elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row // idcuenta $this->idcuenta->EditAttrs["class"] = "form-control"; $this->idcuenta->EditCustomAttributes = ""; if ($this->idcuenta->getSessionValue() != "") { $this->idcuenta->CurrentValue = $this->idcuenta->getSessionValue(); if (strval($this->idcuenta->CurrentValue) != "") { $sFilterWrk = "`idcuenta`" . ew_SearchString("=", $this->idcuenta->CurrentValue, EW_DATATYPE_NUMBER); $sSqlWrk = "SELECT `idcuenta`, `idcuenta` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `cuenta`"; $sWhereWrk = ""; if ($sFilterWrk != "") { ew_AddFilter($sWhereWrk, $sFilterWrk); } // Call Lookup selecting $this->Lookup_Selecting($this->idcuenta, $sWhereWrk); if ($sWhereWrk != "") { $sSqlWrk .= " WHERE " . $sWhereWrk; } $rswrk = $conn->Execute($sSqlWrk); if ($rswrk && !$rswrk->EOF) { // Lookup values found $this->idcuenta->ViewValue = $rswrk->fields('DispFld'); $rswrk->Close(); } else { $this->idcuenta->ViewValue = $this->idcuenta->CurrentValue; } } else { $this->idcuenta->ViewValue = NULL; } $this->idcuenta->ViewCustomAttributes = ""; } else { if (trim(strval($this->idcuenta->CurrentValue)) == "") { $sFilterWrk = "0=1"; } else { $sFilterWrk = "`idcuenta`" . ew_SearchString("=", $this->idcuenta->CurrentValue, EW_DATATYPE_NUMBER); } $sSqlWrk = "SELECT `idcuenta`, `idcuenta` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `cuenta`"; $sWhereWrk = ""; if ($sFilterWrk != "") { ew_AddFilter($sWhereWrk, $sFilterWrk); } // Call Lookup selecting $this->Lookup_Selecting($this->idcuenta, $sWhereWrk); if ($sWhereWrk != "") { $sSqlWrk .= " WHERE " . $sWhereWrk; } $rswrk = $conn->Execute($sSqlWrk); $arwrk = $rswrk ? $rswrk->GetRows() : array(); if ($rswrk) { $rswrk->Close(); } array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect"), "", "", "", "", "", "", "")); $this->idcuenta->EditValue = $arwrk; } // idservicio_medico $this->idservicio_medico->EditAttrs["class"] = "form-control"; $this->idservicio_medico->EditCustomAttributes = ""; if ($this->idservicio_medico->getSessionValue() != "") { $this->idservicio_medico->CurrentValue = $this->idservicio_medico->getSessionValue(); if (strval($this->idservicio_medico->CurrentValue) != "") { $sFilterWrk = "`idservicio_medico`" . ew_SearchString("=", $this->idservicio_medico->CurrentValue, EW_DATATYPE_NUMBER); $sSqlWrk = "SELECT `idservicio_medico`, `descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `servicio_medico`"; $sWhereWrk = ""; if ($sFilterWrk != "") { ew_AddFilter($sWhereWrk, $sFilterWrk); } // Call Lookup selecting $this->Lookup_Selecting($this->idservicio_medico, $sWhereWrk); if ($sWhereWrk != "") { $sSqlWrk .= " WHERE " . $sWhereWrk; } $rswrk = $conn->Execute($sSqlWrk); if ($rswrk && !$rswrk->EOF) { // Lookup values found $this->idservicio_medico->ViewValue = $rswrk->fields('DispFld'); $rswrk->Close(); } else { $this->idservicio_medico->ViewValue = $this->idservicio_medico->CurrentValue; } } else { $this->idservicio_medico->ViewValue = NULL; } $this->idservicio_medico->ViewCustomAttributes = ""; } else { if (trim(strval($this->idservicio_medico->CurrentValue)) == "") { $sFilterWrk = "0=1"; } else { $sFilterWrk = "`idservicio_medico`" . ew_SearchString("=", $this->idservicio_medico->CurrentValue, EW_DATATYPE_NUMBER); } $sSqlWrk = "SELECT `idservicio_medico`, `descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `servicio_medico`"; $sWhereWrk = ""; if ($sFilterWrk != "") { ew_AddFilter($sWhereWrk, $sFilterWrk); } // Call Lookup selecting $this->Lookup_Selecting($this->idservicio_medico, $sWhereWrk); if ($sWhereWrk != "") { $sSqlWrk .= " WHERE " . $sWhereWrk; } $rswrk = $conn->Execute($sSqlWrk); $arwrk = $rswrk ? $rswrk->GetRows() : array(); if ($rswrk) { $rswrk->Close(); } array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect"), "", "", "", "", "", "", "")); $this->idservicio_medico->EditValue = $arwrk; } // costo $this->costo->EditAttrs["class"] = "form-control"; $this->costo->EditCustomAttributes = ""; $this->costo->EditValue = ew_HtmlEncode($this->costo->CurrentValue); $this->costo->PlaceHolder = ew_RemoveHtml($this->costo->FldCaption()); if (strval($this->costo->EditValue) != "" && is_numeric($this->costo->EditValue)) { $this->costo->EditValue = ew_FormatNumber($this->costo->EditValue, -2, -1, -2, 0); } // Edit refer script // idcuenta $this->idcuenta->HrefValue = ""; // idservicio_medico $this->idservicio_medico->HrefValue = ""; // costo $this->costo->HrefValue = ""; } if ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row $this->SetupFieldTitles(); } // Call Row Rendered event if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) { $this->Row_Rendered(); } }
function RenderRow() { global $conn, $Security, $Language; global $gsLanguage; // Initialize URLs // Call Row_Rendering event $this->Row_Rendering(); // Common render codes for all row types // socio_nro // id_actividad // id_usuario // propietario // comercio // direccion_comercio // activo // mail // tel // cel // cuit_cuil if ($this->RowType == EW_ROWTYPE_VIEW) { // View row // 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 = ""; // 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 = ""; // id_actividad $this->id_actividad->LinkCustomAttributes = ""; $this->id_actividad->HrefValue = ""; $this->id_actividad->TooltipValue = ""; // propietario $this->propietario->LinkCustomAttributes = ""; $this->propietario->HrefValue = ""; $this->propietario->TooltipValue = ""; // comercio $this->comercio->LinkCustomAttributes = ""; $this->comercio->HrefValue = ""; $this->comercio->TooltipValue = ""; // direccion_comercio $this->direccion_comercio->LinkCustomAttributes = ""; $this->direccion_comercio->HrefValue = ""; $this->direccion_comercio->TooltipValue = ""; // activo $this->activo->LinkCustomAttributes = ""; $this->activo->HrefValue = ""; $this->activo->TooltipValue = ""; // mail $this->mail->LinkCustomAttributes = ""; $this->mail->HrefValue = ""; $this->mail->TooltipValue = ""; // tel $this->tel->LinkCustomAttributes = ""; $this->tel->HrefValue = ""; $this->tel->TooltipValue = ""; // cel $this->cel->LinkCustomAttributes = ""; $this->cel->HrefValue = ""; $this->cel->TooltipValue = ""; // cuit_cuil $this->cuit_cuil->LinkCustomAttributes = ""; $this->cuit_cuil->HrefValue = ""; $this->cuit_cuil->TooltipValue = ""; } elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row // id_actividad $this->id_actividad->EditCustomAttributes = ""; if (trim(strval($this->id_actividad->CurrentValue)) == "") { $sFilterWrk = "0=1"; } else { $sFilterWrk = "`id`" . ew_SearchString("=", $this->id_actividad->CurrentValue, EW_DATATYPE_NUMBER); } $sSqlWrk = "SELECT `id`, `actividad` AS `DispFld`, `descripcion` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` 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); $arwrk = $rswrk ? $rswrk->GetRows() : array(); if ($rswrk) { $rswrk->Close(); } array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect"), "", "", "", "", "", "", "")); $this->id_actividad->EditValue = $arwrk; // propietario $this->propietario->EditCustomAttributes = ""; $this->propietario->EditValue = ew_HtmlEncode($this->propietario->CurrentValue); $this->propietario->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->propietario->FldCaption())); // comercio $this->comercio->EditCustomAttributes = ""; $this->comercio->EditValue = ew_HtmlEncode($this->comercio->CurrentValue); $this->comercio->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->comercio->FldCaption())); // direccion_comercio $this->direccion_comercio->EditCustomAttributes = ""; $this->direccion_comercio->EditValue = ew_HtmlEncode($this->direccion_comercio->CurrentValue); $this->direccion_comercio->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->direccion_comercio->FldCaption())); // activo $this->activo->EditCustomAttributes = ""; $arwrk = array(); $arwrk[] = array($this->activo->FldTagValue(1), $this->activo->FldTagCaption(1) != "" ? $this->activo->FldTagCaption(1) : $this->activo->FldTagValue(1)); $arwrk[] = array($this->activo->FldTagValue(2), $this->activo->FldTagCaption(2) != "" ? $this->activo->FldTagCaption(2) : $this->activo->FldTagValue(2)); $this->activo->EditValue = $arwrk; // mail $this->mail->EditCustomAttributes = ""; $this->mail->EditValue = ew_HtmlEncode($this->mail->CurrentValue); $this->mail->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->mail->FldCaption())); // tel $this->tel->EditCustomAttributes = ""; $this->tel->EditValue = ew_HtmlEncode($this->tel->CurrentValue); $this->tel->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->tel->FldCaption())); // cel $this->cel->EditCustomAttributes = ""; $this->cel->EditValue = ew_HtmlEncode($this->cel->CurrentValue); $this->cel->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->cel->FldCaption())); // cuit_cuil $this->cuit_cuil->EditCustomAttributes = ""; $this->cuit_cuil->EditValue = ew_HtmlEncode($this->cuit_cuil->CurrentValue); $this->cuit_cuil->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->cuit_cuil->FldCaption())); // Edit refer script // id_actividad $this->id_actividad->HrefValue = ""; // propietario $this->propietario->HrefValue = ""; // comercio $this->comercio->HrefValue = ""; // direccion_comercio $this->direccion_comercio->HrefValue = ""; // activo $this->activo->HrefValue = ""; // mail $this->mail->HrefValue = ""; // tel $this->tel->HrefValue = ""; // cel $this->cel->HrefValue = ""; // cuit_cuil $this->cuit_cuil->HrefValue = ""; } if ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row $this->SetupFieldTitles(); } // Call Row Rendered event if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) { $this->Row_Rendered(); } }
function RenderRow() { global $conn, $Security, $categories; // Call Row Rendering event $categories->Row_Rendering(); // Common render codes for all row types // id $categories->id->CellCssStyle = ""; $categories->id->CellCssClass = ""; // name $categories->name->CellCssStyle = ""; $categories->name->CellCssClass = ""; // keywords $categories->keywords->CellCssStyle = ""; $categories->keywords->CellCssClass = ""; if ($categories->RowType == EW_ROWTYPE_VIEW) { // View row } elseif ($categories->RowType == EW_ROWTYPE_ADD) { // Add row } elseif ($categories->RowType == EW_ROWTYPE_EDIT) { // Edit row // id $categories->id->EditCustomAttributes = ""; $categories->id->EditValue = $categories->id->CurrentValue; $categories->id->CssStyle = ""; $categories->id->CssClass = ""; $categories->id->ViewCustomAttributes = ""; // name $categories->name->EditCustomAttributes = ""; $categories->name->EditValue = ew_HtmlEncode($categories->name->CurrentValue); // keywords $categories->keywords->EditCustomAttributes = ""; $categories->keywords->EditValue = $categories->keywords->CurrentValue; } elseif ($categories->RowType == EW_ROWTYPE_SEARCH) { // Search row } // Call Row Rendered event $categories->Row_Rendered(); }