本文整理汇总了PHP中ew_HtmlImageAndText函数的典型用法代码示例。如果您正苦于以下问题:PHP ew_HtmlImageAndText函数的具体用法?PHP ew_HtmlImageAndText怎么用?PHP ew_HtmlImageAndText使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ew_HtmlImageAndText函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: RenderListOptions
function RenderListOptions()
{
global $Security, $Language, $objForm;
$this->ListOptions->LoadDefault();
// "view"
$oListOpt =& $this->ListOptions->Items["view"];
if (TRUE) {
$oListOpt->Body = "<a class=\"ewRowLink ewView\" title=\"" . ew_HtmlTitle($Language->Phrase("ViewLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("ViewLink")) . "\" href=\"" . ew_HtmlEncode($this->ViewUrl) . "\">" . $Language->Phrase("ViewLink") . "</a>";
} else {
$oListOpt->Body = "";
}
// "edit"
$oListOpt =& $this->ListOptions->Items["edit"];
if (TRUE) {
$oListOpt->Body = "<a class=\"ewRowLink ewEdit\" title=\"" . ew_HtmlTitle($Language->Phrase("EditLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("EditLink")) . "\" href=\"" . ew_HtmlEncode($this->EditUrl) . "\">" . $Language->Phrase("EditLink") . "</a>";
} else {
$oListOpt->Body = "";
}
// "copy"
$oListOpt =& $this->ListOptions->Items["copy"];
if (TRUE) {
$oListOpt->Body = "<a class=\"ewRowLink ewCopy\" title=\"" . ew_HtmlTitle($Language->Phrase("CopyLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("CopyLink")) . "\" href=\"" . ew_HtmlEncode($this->CopyUrl) . "\">" . $Language->Phrase("CopyLink") . "</a>";
} else {
$oListOpt->Body = "";
}
$DetailViewTblVar = "";
$DetailCopyTblVar = "";
$DetailEditTblVar = "";
// "detail_servicio_medico_prestado"
$oListOpt =& $this->ListOptions->Items["detail_servicio_medico_prestado"];
if (TRUE) {
$body = $Language->Phrase("DetailLink") . $Language->TablePhrase("servicio_medico_prestado", "TblCaption");
$body = "<a class=\"btn btn-default btn-sm ewRowLink ewDetail\" data-action=\"list\" href=\"" . ew_HtmlEncode("servicio_medico_prestadolist.php?" . EW_TABLE_SHOW_MASTER . "=cuenta&fk_idcuenta=" . strval($this->idcuenta->CurrentValue) . "") . "\">" . $body . "</a>";
$links = "";
if ($GLOBALS["servicio_medico_prestado_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 . "=servicio_medico_prestado")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailViewLink")) . "</a></li>";
if ($DetailViewTblVar != "") {
$DetailViewTblVar .= ",";
}
$DetailViewTblVar .= "servicio_medico_prestado";
}
if ($GLOBALS["servicio_medico_prestado_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 . "=servicio_medico_prestado")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailEditLink")) . "</a></li>";
if ($DetailEditTblVar != "") {
$DetailEditTblVar .= ",";
}
$DetailEditTblVar .= "servicio_medico_prestado";
}
if ($GLOBALS["servicio_medico_prestado_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 . "=servicio_medico_prestado")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailCopyLink")) . "</a></li>";
if ($DetailCopyTblVar != "") {
$DetailCopyTblVar .= ",";
}
$DetailCopyTblVar .= "servicio_medico_prestado";
}
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>";
$oListOpt->Body = $body;
if ($this->ShowMultipleDetails) {
$oListOpt->Visible = FALSE;
}
}
// "detail_consulta"
$oListOpt =& $this->ListOptions->Items["detail_consulta"];
if (TRUE) {
$body = $Language->Phrase("DetailLink") . $Language->TablePhrase("consulta", "TblCaption");
$body = "<a class=\"btn btn-default btn-sm ewRowLink ewDetail\" data-action=\"list\" href=\"" . ew_HtmlEncode("consultalist.php?" . EW_TABLE_SHOW_MASTER . "=cuenta&fk_idcuenta=" . strval($this->idcuenta->CurrentValue) . "") . "\">" . $body . "</a>";
$links = "";
if ($GLOBALS["consulta_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 . "=consulta")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailViewLink")) . "</a></li>";
if ($DetailViewTblVar != "") {
$DetailViewTblVar .= ",";
}
$DetailViewTblVar .= "consulta";
}
if ($GLOBALS["consulta_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 . "=consulta")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailEditLink")) . "</a></li>";
if ($DetailEditTblVar != "") {
$DetailEditTblVar .= ",";
}
$DetailEditTblVar .= "consulta";
}
if ($GLOBALS["consulta_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 . "=consulta")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailCopyLink")) . "</a></li>";
if ($DetailCopyTblVar != "") {
$DetailCopyTblVar .= ",";
}
$DetailCopyTblVar .= "consulta";
}
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>";
$oListOpt->Body = $body;
if ($this->ShowMultipleDetails) {
$oListOpt->Visible = FALSE;
//.........这里部分代码省略.........
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:101,代码来源:cuentalist.php
示例2: 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);
//.........这里部分代码省略.........
开发者ID:NaurozAhmad,项目名称:G-Axis,代码行数:101,代码来源:sub_categoryview.php
示例3: SetupOtherOptions
function SetupOtherOptions()
{
global $Language, $Security;
$options =& $this->OtherOptions;
$option =& $options["action"];
$option =& $options["detail"];
$DetailTableLink = "";
$DetailViewTblVar = "";
$DetailCopyTblVar = "";
$DetailEditTblVar = "";
// "detail_in_bodegaubicaciones"
$item =& $option->Add("detail_in_bodegaubicaciones");
$body = $Language->Phrase("ViewPageDetailLink") . $Language->TablePhrase("in_bodegaubicaciones", "TblCaption");
$body = "<a class=\"btn btn-default btn-sm ewRowLink ewDetail\" data-action=\"list\" href=\"" . ew_HtmlEncode("in_bodegaubicacioneslist.php?" . EW_TABLE_SHOW_MASTER . "=in_bodegas&fk_codigo_bodega=" . urlencode(strval($this->codigo_bodega->CurrentValue)) . "") . "\">" . $body . "</a>";
$links = "";
if ($GLOBALS["in_bodegaubicaciones_grid"] && $GLOBALS["in_bodegaubicaciones_grid"]->DetailView && $Security->CanView() && $Security->AllowView(CurrentProjectID() . 'in_bodegaubicaciones')) {
$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 . "=in_bodegaubicaciones")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailViewLink")) . "</a></li>";
if ($DetailViewTblVar != "") {
$DetailViewTblVar .= ",";
}
$DetailViewTblVar .= "in_bodegaubicaciones";
}
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 = $Security->AllowList(CurrentProjectID() . 'in_bodegaubicaciones');
if ($item->Visible) {
if ($DetailTableLink != "") {
$DetailTableLink .= ",";
}
$DetailTableLink .= "in_bodegaubicaciones";
}
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 = TRUE;
$option->UseButtonGroup = TRUE;
$item =& $option->Add($option->GroupOptionName);
$item->Body = "";
$item->Visible = FALSE;
}
开发者ID:erick-chali,项目名称:Ubicacion,代码行数:82,代码来源:in_bodegasview.php
示例4: 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 != "" && $Security->CanAdd();
// 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 != "" && $Security->CanEdit() && $this->ShowOptionLink('edit');
// 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 != "" && $Security->CanAdd() && $this->ShowOptionLink('add');
// 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 != "" && $Security->CanDelete() && $this->ShowOptionLink('delete');
// Show detail edit/copy
if ($this->getCurrentDetailTable() != "") {
// Detail Edit
$item =& $option->Add("detailedit");
$item->Body = "<a class=\"ewAction ewDetailEdit\" title=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailEditLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailEditLink")) . "\" href=\"" . ew_HtmlEncode($this->GetEditUrl(EW_TABLE_SHOW_DETAIL . "=" . $this->getCurrentDetailTable())) . "\">" . $Language->Phrase("MasterDetailEditLink") . "</a>";
$item->Visible = $Security->CanEdit() && $this->ShowOptionLink('delete');
// Detail Copy
$item =& $option->Add("detailcopy");
$item->Body = "<a class=\"ewAction ewDetailCopy\" title=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailCopyLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("MasterDetailCopyLink")) . "\" href=\"" . ew_HtmlEncode($this->GetCopyUrl(EW_TABLE_SHOW_DETAIL . "=" . $this->getCurrentDetailTable())) . "\">" . $Language->Phrase("MasterDetailCopyLink") . "</a>";
$item->Visible = $Security->CanAdd() && $this->ShowOptionLink('delete');
}
$option =& $options["detail"];
$DetailTableLink = "";
$DetailViewTblVar = "";
$DetailCopyTblVar = "";
$DetailEditTblVar = "";
// "detail_detalle_deudas"
$item =& $option->Add("detail_detalle_deudas");
$body = $Language->Phrase("DetailLink") . $Language->TablePhrase("detalle_deudas", "TblCaption");
$body .= str_replace("%c", $this->detalle_deudas_Count, $Language->Phrase("DetailCount"));
$body = "<a class=\"btn btn-default btn-sm ewRowLink ewDetail\" data-action=\"list\" href=\"" . ew_HtmlEncode("cciag_detalle_deudaslist.php?" . EW_TABLE_SHOW_MASTER . "=deudas&fk_id=" . strval($this->id->CurrentValue) . "") . "\">" . $body . "</a>";
$links = "";
if ($GLOBALS["detalle_deudas_grid"] && $GLOBALS["detalle_deudas_grid"]->DetailView && $Security->CanView() && $this->ShowOptionLink('view') && $Security->AllowView(CurrentProjectID() . 'detalle_deudas')) {
$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 . "=detalle_deudas")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailViewLink")) . "</a></li>";
if ($DetailViewTblVar != "") {
$DetailViewTblVar .= ",";
}
$DetailViewTblVar .= "detalle_deudas";
}
if ($GLOBALS["detalle_deudas_grid"] && $GLOBALS["detalle_deudas_grid"]->DetailEdit && $Security->CanEdit() && $this->ShowOptionLink('edit') && $Security->AllowEdit(CurrentProjectID() . 'detalle_deudas')) {
$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 . "=detalle_deudas")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailEditLink")) . "</a></li>";
if ($DetailEditTblVar != "") {
$DetailEditTblVar .= ",";
}
$DetailEditTblVar .= "detalle_deudas";
}
if ($GLOBALS["detalle_deudas_grid"] && $GLOBALS["detalle_deudas_grid"]->DetailAdd && $Security->CanAdd() && $this->ShowOptionLink('add') && $Security->AllowAdd(CurrentProjectID() . 'detalle_deudas')) {
$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 . "=detalle_deudas")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailCopyLink")) . "</a></li>";
if ($DetailCopyTblVar != "") {
$DetailCopyTblVar .= ",";
}
$DetailCopyTblVar .= "detalle_deudas";
}
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 = $Security->AllowList(CurrentProjectID() . 'pagos') && $this->ShowOptionLink();
if ($item->Visible) {
if ($DetailTableLink != "") {
$DetailTableLink .= ",";
}
$DetailTableLink .= "detalle_deudas";
}
if ($this->ShowMultipleDetails) {
$item->Visible = FALSE;
}
// "detail_pagos"
$item =& $option->Add("detail_pagos");
$body = $Language->Phrase("DetailLink") . $Language->TablePhrase("pagos", "TblCaption");
$body .= str_replace("%c", $this->pagos_Count, $Language->Phrase("DetailCount"));
$body = "<a class=\"btn btn-default btn-sm ewRowLink ewDetail\" data-action=\"list\" href=\"" . ew_HtmlEncode("cciag_pagoslist.php?" . EW_TABLE_SHOW_MASTER . "=deudas&fk_id=" . strval($this->id->CurrentValue) . "") . "\">" . $body . "</a>";
$links = "";
if ($GLOBALS["pagos_grid"] && $GLOBALS["pagos_grid"]->DetailView && $Security->CanView() && $this->ShowOptionLink('view') && $Security->AllowView(CurrentProjectID() . 'pagos')) {
$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 . "=pagos")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailViewLink")) . "</a></li>";
if ($DetailViewTblVar != "") {
$DetailViewTblVar .= ",";
}
$DetailViewTblVar .= "pagos";
}
if ($GLOBALS["pagos_grid"] && $GLOBALS["pagos_grid"]->DetailEdit && $Security->CanEdit() && $this->ShowOptionLink('edit') && $Security->AllowEdit(CurrentProjectID() . 'pagos')) {
$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 . "=pagos")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailEditLink")) . "</a></li>";
if ($DetailEditTblVar != "") {
$DetailEditTblVar .= ",";
}
$DetailEditTblVar .= "pagos";
}
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:cciag_deudasview.php
示例5: RenderListOptions
//.........这里部分代码省略.........
$links = array();
foreach ($this->ListActions->Items as $listaction) {
if ($listaction->Select == EW_ACTION_SINGLE && $listaction->Allow) {
$action = $listaction->Action;
$caption = $listaction->Caption;
$icon = $listaction->Icon != "" ? "<span class=\"" . ew_HtmlEncode($listaction->Icon) . "\" data-caption=\"" . ew_HtmlTitle($caption) . "\"></span> " : "";
$links[] = "<li><a class=\"ewAction ewListAction\" data-action=\"" . ew_HtmlEncode($action) . "\" title=\"" . ew_HtmlTitle($caption) . "\" data-caption=\"" . ew_HtmlTitle($caption) . "\" href=\"\" onclick=\"ew_SubmitAction(event,jQuery.extend({key:" . $this->KeyToJson() . "}," . $listaction->ToJson(TRUE) . "));return false;\">" . $icon . $listaction->Caption . "</a></li>";
if (count($links) == 1) {
// Single button
$body = "<a class=\"ewAction ewListAction\" data-action=\"" . ew_HtmlEncode($action) . "\" title=\"" . ew_HtmlTitle($caption) . "\" data-caption=\"" . ew_HtmlTitle($caption) . "\" href=\"\" onclick=\"ew_SubmitAction(event,jQuery.extend({key:" . $this->KeyToJson() . "}," . $listaction->ToJson(TRUE) . "));return false;\">" . $Language->Phrase("ListActionButton") . "</a>";
}
}
}
if (count($links) > 1) {
// More than one buttons, use dropdown
$body = "<button class=\"dropdown-toggle btn btn-default btn-sm ewActions\" data-toggle=\"dropdown\">" . $Language->Phrase("ListActionButton") . "<b class=\"caret\"></b></button>";
$content = "";
foreach ($links as $link) {
$content .= "<li>" . $link . "</li>";
}
$body .= "<ul class=\"dropdown-menu" . ($oListOpt->OnLeft ? "" : " dropdown-menu-right") . "\">" . $content . "</ul>";
$body = "<div class=\"btn-group\">" . $body . "</div>";
}
if (count($links) > 0) {
$oListOpt->Body = $body;
$oListOpt->Visible = TRUE;
}
}
$DetailViewTblVar = "";
$DetailCopyTblVar = "";
$DetailEditTblVar = "";
// "detail_products"
$oListOpt =& $this->ListOptions->Items["detail_products"];
if (TRUE) {
$body = $Language->Phrase("DetailLink") . $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"]->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"]->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"]->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>";
$oListOpt->Body = $body;
if ($this->ShowMultipleDetails) {
$oListOpt->Visible = FALSE;
}
}
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 =& $this->ListOptions->Items["details"];
$oListOpt->Body = $body;
}
// "checkbox"
$oListOpt =& $this->ListOptions->Items["checkbox"];
$oListOpt->Body = "<input type=\"checkbox\" name=\"key_m[]\" value=\"" . ew_HtmlEncode($this->scat_id->CurrentValue) . "\" onclick='ew_ClickMultiCheckbox(event);'>";
if ($this->CurrentAction == "gridedit" && is_numeric($this->RowIndex)) {
$this->MultiSelectKey .= "<input type=\"hidden\" name=\"" . $KeyName . "\" id=\"" . $KeyName . "\" value=\"" . $this->scat_id->CurrentValue . "\">";
}
$this->RenderListOptionsExt();
// Call ListOptions_Rendered event
$this->ListOptions_Rendered();
}
开发者ID:NaurozAhmad,项目名称:G-Axis,代码行数:101,代码来源:sub_categorylist.php
示例6: RenderListOptions
function RenderListOptions()
{
global $Security, $Language, $objForm;
$this->ListOptions->LoadDefault();
// Set up row action and key
if (is_numeric($this->RowIndex) && $this->CurrentMode != "view") {
$objForm->Index = $this->RowIndex;
$ActionName = str_replace("k_", "k" . $this->RowIndex . "_", $this->FormActionName);
$OldKeyName = str_replace("k_", "k" . $this->RowIndex . "_", $this->FormOldKeyName);
$KeyName = str_replace("k_", "k" . $this->RowIndex . "_", $this->FormKeyName);
$BlankRowName = str_replace("k_", "k" . $this->RowIndex . "_", $this->FormBlankRowName);
if ($this->RowAction != "") {
$this->MultiSelectKey .= "<input type=\"hidden\" name=\"" . $ActionName . "\" id=\"" . $ActionName . "\" value=\"" . $this->RowAction . "\">";
}
if ($this->RowAction == "delete") {
$rowkey = $objForm->GetValue($this->FormKeyName);
$this->SetupKeyValues($rowkey);
}
if ($this->RowAction == "insert" && $this->CurrentAction == "F" && $this->EmptyRow()) {
$this->MultiSelectKey .= "<input type=\"hidden\" name=\"" . $BlankRowName . "\" id=\"" . $BlankRowName . "\" value=\"1\">";
}
}
// "copy"
$oListOpt =& $this->ListOptions->Items["copy"];
if (($this->CurrentAction == "add" || $this->CurrentAction == "copy") && $this->RowType == EW_ROWTYPE_ADD) {
// Inline Add/Copy
$this->ListOptions->CustomItem = "copy";
// Show copy column only
$oListOpt->Body = "<div" . ($oListOpt->OnLeft ? " style=\"text-align: right\"" : "") . ">" . "<a class=\"ewGridLink ewInlineInsert\" title=\"" . ew_HtmlTitle($Language->Phrase("InsertLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("InsertLink")) . "\" href=\"\" onclick=\"return ewForms(this).Submit();\">" . $Language->Phrase("InsertLink") . "</a> " . "<a class=\"ewGridLink ewInlineCancel\" title=\"" . ew_HtmlTitle($Language->Phrase("CancelLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("CancelLink")) . "\" href=\"" . $this->PageUrl() . "a=cancel\">" . $Language->Phrase("CancelLink") . "</a>" . "<input type=\"hidden\" name=\"a_list\" id=\"a_list\" value=\"insert\"></div>";
return;
}
// "view"
$oListOpt =& $this->ListOptions->Items["view"];
if ($Security->CanView() && $this->ShowOptionLink('view')) {
$oListOpt->Body = "<a class=\"ewRowLink ewView\" title=\"" . ew_HtmlTitle($Language->Phrase("ViewLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("ViewLink")) . "\" href=\"" . ew_HtmlEncode($this->ViewUrl) . "\">" . $Language->Phrase("ViewLink") . "</a>";
} else {
$oListOpt->Body = "";
}
// "edit"
$oListOpt =& $this->ListOptions->Items["edit"];
if ($Security->CanEdit() && $this->ShowOptionLink('edit')) {
$oListOpt->Body = "<a class=\"ewRowLink ewEdit\" title=\"" . ew_HtmlTitle($Language->Phrase("EditLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("EditLink")) . "\" href=\"" . ew_HtmlEncode($this->EditUrl) . "\">" . $Language->Phrase("EditLink") . "</a>";
} else {
$oListOpt->Body = "";
}
// "copy"
$oListOpt =& $this->ListOptions->Items["copy"];
if ($Security->CanAdd() && $this->ShowOptionLink('add')) {
$oListOpt->Body = "<a class=\"ewRowLink ewCopy\" title=\"" . ew_HtmlTitle($Language->Phrase("CopyLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("CopyLink")) . "\" href=\"" . ew_HtmlEncode($this->CopyUrl) . "\">" . $Language->Phrase("CopyLink") . "</a>";
} else {
$oListOpt->Body = "";
}
// "delete"
$oListOpt =& $this->ListOptions->Items["delete"];
if ($Security->CanDelete() && $this->ShowOptionLink('delete')) {
$oListOpt->Body = "<a class=\"ewRowLink ewDelete\"" . "" . " title=\"" . ew_HtmlTitle($Language->Phrase("DeleteLink")) . "\" data-caption=\"" . ew_HtmlTitle($Language->Phrase("DeleteLink")) . "\" href=\"" . ew_HtmlEncode($this->DeleteUrl) . "\">" . $Language->Phrase("DeleteLink") . "</a>";
} else {
$oListOpt->Body = "";
}
$DetailViewTblVar = "";
$DetailCopyTblVar = "";
$DetailEditTblVar = "";
// "detail_detalle_deudas"
$oListOpt =& $this->ListOptions->Items["detail_detalle_deudas"];
if ($Security->AllowList(CurrentProjectID() . 'detalle_deudas') && $this->ShowOptionLink()) {
$body = $Language->Phrase("DetailLink") . $Language->TablePhrase("detalle_deudas", "TblCaption");
$body .= str_replace("%c", $this->detalle_deudas_Count, $Language->Phrase("DetailCount"));
$body = "<a class=\"btn btn-default btn-sm ewRowLink ewDetail\" data-action=\"list\" href=\"" . ew_HtmlEncode("cciag_detalle_deudaslist.php?" . EW_TABLE_SHOW_MASTER . "=deudas&fk_id=" . strval($this->id->CurrentValue) . "") . "\">" . $body . "</a>";
$links = "";
if ($GLOBALS["detalle_deudas_grid"]->DetailView && $Security->CanView() && $this->ShowOptionLink('view') && $Security->AllowView(CurrentProjectID() . 'detalle_deudas')) {
$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 . "=detalle_deudas")) . "\">" . ew_HtmlImageAndText($Language->Phrase("MasterDetailViewLink")) . "</a></li>";
if ($DetailViewTblVar != "") {
$DetailViewTblVar .= ",";
}
$DetailViewTblVar .= "detalle_deudas";
}
if ($GLOBALS["detalle_deudas_grid"]->DetailEdit && $Security->CanEdit() && $this->ShowOptionLink('edit') && $Security->AllowEdit(CurrentProjectID() . 'detalle_deudas')) {
$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 . "=detalle_deudas")) . "\">" . ew_HtmlImageAndText($Language
|
请发表评论