本文整理汇总了PHP中ew_HtmlEncode函数的典型用法代码示例。如果您正苦于以下问题:PHP ew_HtmlEncode函数的具体用法?PHP ew_HtmlEncode怎么用?PHP ew_HtmlEncode使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ew_HtmlEncode函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: RenderEditRow
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();
}
示例2: ew_HtmlEncode
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();
示例3: ew_HtmlEncode
?>
_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>
示例4: ew_CurrentPage
">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>
示例5: SetupOtherOptions
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);
//.........这里部分代码省略.........
示例6: RenderRow
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();
}
}
示例7: SetupExportOptions
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;
}
示例8: ew_HtmlEncode
?>
</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
示例9: RenderRow
function RenderRow()
{
global $conn, $Security, $Language;
global $gsLanguage;
// Initialize URLs
// Call Row_Rendering event
$this->Row_Rendering();
// Common render codes for all row types
// 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
//.........这里部分代码省略.........
示例10: ew_HtmlEncode
<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>
示例11: SetupExportOptions
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();
}
}
示例12: RenderEditRow
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();
}
示例13: RenderRow
//.........这里部分代码省略.........
$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());
示例14: RenderEditRow
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();
}
示例15: ew_CurrentPage
$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>