} } // End delete row checking if ($v_gasto_mantenieminto->CurrentAction != "gridadd" || $v_gasto_mantenieminto->CurrentMode == "copy") { if (!$v_gasto_mantenieminto_grid->Recordset->EOF) { $v_gasto_mantenieminto_grid->Recordset->MoveNext(); } } } if ($v_gasto_mantenieminto->CurrentMode == "add" || $v_gasto_mantenieminto->CurrentMode == "copy" || $v_gasto_mantenieminto->CurrentMode == "edit") { $v_gasto_mantenieminto_grid->RowIndex = '$rowindex$'; $v_gasto_mantenieminto_grid->LoadDefaultValues(); // Set row properties $v_gasto_mantenieminto->ResetAttrs(); $v_gasto_mantenieminto->RowAttrs = array_merge($v_gasto_mantenieminto->RowAttrs, array('data-rowindex' => $v_gasto_mantenieminto_grid->RowIndex, 'id' => 'r0_v_gasto_mantenieminto', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($v_gasto_mantenieminto->RowAttrs["class"], "ewTemplate"); $v_gasto_mantenieminto->RowType = EW_ROWTYPE_ADD; // Render row $v_gasto_mantenieminto_grid->RenderRow(); // Render list options $v_gasto_mantenieminto_grid->RenderListOptions(); $v_gasto_mantenieminto_grid->StartRowCnt = 0; ?> <tr<?php echo $v_gasto_mantenieminto->RowAttributes(); ?> > <?php // Render list options (body, left) $v_gasto_mantenieminto_grid->ListOptions->Render("body", "left", $v_gasto_mantenieminto_grid->RowIndex); ?>
} } // End delete row checking if ($seguimiento_tramites->CurrentAction != "gridadd") { if (!$seguimiento_tramites_list->Recordset->EOF) { $seguimiento_tramites_list->Recordset->MoveNext(); } } } if ($seguimiento_tramites->CurrentAction == "gridadd" || $seguimiento_tramites->CurrentAction == "gridedit") { $seguimiento_tramites_list->RowIndex = '$rowindex$'; $seguimiento_tramites_list->LoadDefaultValues(); // Set row properties $seguimiento_tramites->ResetAttrs(); $seguimiento_tramites->RowAttrs = array_merge($seguimiento_tramites->RowAttrs, array('data-rowindex' => $seguimiento_tramites_list->RowIndex, 'id' => 'r0_seguimiento_tramites', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($seguimiento_tramites->RowAttrs["class"], "ewTemplate"); $seguimiento_tramites->RowType = EW_ROWTYPE_ADD; // Render row $seguimiento_tramites_list->RenderRow(); // Render list options $seguimiento_tramites_list->RenderListOptions(); $seguimiento_tramites_list->StartRowCnt = 0; ?> <tr<?php echo $seguimiento_tramites->RowAttributes(); ?> > <?php // Render list options (body, left) $seguimiento_tramites_list->ListOptions->Render("body", "left", $seguimiento_tramites_list->RowIndex); ?>
} } // End delete row checking if ($receta->CurrentAction != "gridadd" || $receta->CurrentMode == "copy") { if (!$receta_grid->Recordset->EOF) { $receta_grid->Recordset->MoveNext(); } } } if ($receta->CurrentMode == "add" || $receta->CurrentMode == "copy" || $receta->CurrentMode == "edit") { $receta_grid->RowIndex = '$rowindex$'; $receta_grid->LoadDefaultValues(); // Set row properties $receta->ResetAttrs(); $receta->RowAttrs = array_merge($receta->RowAttrs, array('data-rowindex' => $receta_grid->RowIndex, 'id' => 'r0_receta', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($receta->RowAttrs["class"], "ewTemplate"); $receta->RowType = EW_ROWTYPE_ADD; // Render row $receta_grid->RenderRow(); // Render list options $receta_grid->RenderListOptions(); $receta_grid->StartRowCnt = 0; ?> <tr<?php echo $receta->RowAttributes(); ?> > <?php // Render list options (body, left) $receta_grid->ListOptions->Render("body", "left", $receta_grid->RowIndex); ?>
} } // End delete row checking if ($gastos->CurrentAction != "gridadd" || $gastos->CurrentMode == "copy") { if (!$gastos_grid->Recordset->EOF) { $gastos_grid->Recordset->MoveNext(); } } } if ($gastos->CurrentMode == "add" || $gastos->CurrentMode == "copy" || $gastos->CurrentMode == "edit") { $gastos_grid->RowIndex = '$rowindex$'; $gastos_grid->LoadDefaultValues(); // Set row properties $gastos->ResetAttrs(); $gastos->RowAttrs = array_merge($gastos->RowAttrs, array('data-rowindex' => $gastos_grid->RowIndex, 'id' => 'r0_gastos', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($gastos->RowAttrs["class"], "ewTemplate"); $gastos->RowType = EW_ROWTYPE_ADD; // Render row $gastos_grid->RenderRow(); // Render list options $gastos_grid->RenderListOptions(); $gastos_grid->StartRowCnt = 0; ?> <tr<?php echo $gastos->RowAttributes(); ?> > <?php // Render list options (body, left) $gastos_grid->ListOptions->Render("body", "left", $gastos_grid->RowIndex); ?>
} } // End delete row checking if ($doctor_servicio_medico_prestado->CurrentAction != "gridadd" || $doctor_servicio_medico_prestado->CurrentMode == "copy") { if (!$doctor_servicio_medico_prestado_grid->Recordset->EOF) { $doctor_servicio_medico_prestado_grid->Recordset->MoveNext(); } } } if ($doctor_servicio_medico_prestado->CurrentMode == "add" || $doctor_servicio_medico_prestado->CurrentMode == "copy" || $doctor_servicio_medico_prestado->CurrentMode == "edit") { $doctor_servicio_medico_prestado_grid->RowIndex = '$rowindex$'; $doctor_servicio_medico_prestado_grid->LoadDefaultValues(); // Set row properties $doctor_servicio_medico_prestado->ResetAttrs(); $doctor_servicio_medico_prestado->RowAttrs = array_merge($doctor_servicio_medico_prestado->RowAttrs, array('data-rowindex' => $doctor_servicio_medico_prestado_grid->RowIndex, 'id' => 'r0_doctor_servicio_medico_prestado', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($doctor_servicio_medico_prestado->RowAttrs["class"], "ewTemplate"); $doctor_servicio_medico_prestado->RowType = EW_ROWTYPE_ADD; // Render row $doctor_servicio_medico_prestado_grid->RenderRow(); // Render list options $doctor_servicio_medico_prestado_grid->RenderListOptions(); $doctor_servicio_medico_prestado_grid->StartRowCnt = 0; ?> <tr<?php echo $doctor_servicio_medico_prestado->RowAttributes(); ?> > <?php // Render list options (body, left) $doctor_servicio_medico_prestado_grid->ListOptions->Render("body", "left", $doctor_servicio_medico_prestado_grid->RowIndex); ?>
} } // End delete row checking if ($gallery_detail->CurrentAction != "gridadd") { if (!$gallery_detail_list->Recordset->EOF) { $gallery_detail_list->Recordset->MoveNext(); } } } if ($gallery_detail->CurrentAction == "gridadd" || $gallery_detail->CurrentAction == "gridedit") { $gallery_detail_list->RowIndex = '$rowindex$'; $gallery_detail_list->LoadDefaultValues(); // Set row properties $gallery_detail->ResetAttrs(); $gallery_detail->RowAttrs = array_merge($gallery_detail->RowAttrs, array('data-rowindex' => $gallery_detail_list->RowIndex, 'id' => 'r0_gallery_detail', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($gallery_detail->RowAttrs["class"], "ewTemplate"); $gallery_detail->RowType = EW_ROWTYPE_ADD; // Render row $gallery_detail_list->RenderRow(); // Render list options $gallery_detail_list->RenderListOptions(); $gallery_detail_list->StartRowCnt = 0; ?> <tr<?php echo $gallery_detail->RowAttributes(); ?> > <?php // Render list options (body, left) $gallery_detail_list->ListOptions->Render("body", "left", $gallery_detail_list->RowIndex); ?>
} } // End delete row checking if ($items->CurrentAction != "gridadd") { if (!$items_list->Recordset->EOF) { $items_list->Recordset->MoveNext(); } } } if ($items->CurrentAction == "gridadd" || $items->CurrentAction == "gridedit") { $items_list->RowIndex = '$rowindex$'; $items_list->LoadDefaultValues(); // Set row properties $items->ResetAttrs(); $items->RowAttrs = array_merge($items->RowAttrs, array('data-rowindex' => $items_list->RowIndex, 'id' => 'r0_items', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($items->RowAttrs["class"], "ewTemplate"); $items->RowType = EW_ROWTYPE_ADD; // Render row $items_list->RenderRow(); // Render list options $items_list->RenderListOptions(); $items_list->StartRowCnt = 0; ?> <tr<?php echo $items->RowAttributes(); ?> > <?php // Render list options (body, left) $items_list->ListOptions->Render("body", "left", $items_list->RowIndex); ?>
} } // End delete row checking if ($nivel->CurrentAction != "gridadd" || $nivel->CurrentMode == "copy") { if (!$nivel_grid->Recordset->EOF) { $nivel_grid->Recordset->MoveNext(); } } } if ($nivel->CurrentMode == "add" || $nivel->CurrentMode == "copy" || $nivel->CurrentMode == "edit") { $nivel_grid->RowIndex = '$rowindex$'; $nivel_grid->LoadDefaultValues(); // Set row properties $nivel->ResetAttrs(); $nivel->RowAttrs = array_merge($nivel->RowAttrs, array('data-rowindex' => $nivel_grid->RowIndex, 'id' => 'r0_nivel', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($nivel->RowAttrs["class"], "ewTemplate"); $nivel->RowType = EW_ROWTYPE_ADD; // Render row $nivel_grid->RenderRow(); // Render list options $nivel_grid->RenderListOptions(); $nivel_grid->StartRowCnt = 0; ?> <tr<?php echo $nivel->RowAttributes(); ?> > <?php // Render list options (body, left) $nivel_grid->ListOptions->Render("body", "left", $nivel_grid->RowIndex); ?>
} } // End delete row checking if ($catalogues->CurrentAction != "gridadd") { if (!$catalogues_list->Recordset->EOF) { $catalogues_list->Recordset->MoveNext(); } } } if ($catalogues->CurrentAction == "gridadd" || $catalogues->CurrentAction == "gridedit") { $catalogues_list->RowIndex = '$rowindex$'; $catalogues_list->LoadDefaultValues(); // Set row properties $catalogues->ResetAttrs(); $catalogues->RowAttrs = array_merge($catalogues->RowAttrs, array('data-rowindex' => $catalogues_list->RowIndex, 'id' => 'r0_catalogues', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($catalogues->RowAttrs["class"], "ewTemplate"); $catalogues->RowType = EW_ROWTYPE_ADD; // Render row $catalogues_list->RenderRow(); // Render list options $catalogues_list->RenderListOptions(); $catalogues_list->StartRowCnt = 0; ?> <tr<?php echo $catalogues->RowAttributes(); ?> > <?php // Render list options (body, left) $catalogues_list->ListOptions->Render("body", "left", $catalogues_list->RowIndex); ?>
} } // End delete row checking if ($departamento->CurrentAction != "gridadd" || $departamento->CurrentMode == "copy") { if (!$departamento_grid->Recordset->EOF) { $departamento_grid->Recordset->MoveNext(); } } } if ($departamento->CurrentMode == "add" || $departamento->CurrentMode == "copy" || $departamento->CurrentMode == "edit") { $departamento_grid->RowIndex = '$rowindex$'; $departamento_grid->LoadDefaultValues(); // Set row properties $departamento->ResetAttrs(); $departamento->RowAttrs = array_merge($departamento->RowAttrs, array('data-rowindex' => $departamento_grid->RowIndex, 'id' => 'r0_departamento', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($departamento->RowAttrs["class"], "ewTemplate"); $departamento->RowType = EW_ROWTYPE_ADD; // Render row $departamento_grid->RenderRow(); // Render list options $departamento_grid->RenderListOptions(); $departamento_grid->StartRowCnt = 0; ?> <tr<?php echo $departamento->RowAttributes(); ?> > <?php // Render list options (body, left) $departamento_grid->ListOptions->Render("body", "left", $departamento_grid->RowIndex); ?>
function Render($ret = FALSE) { if (function_exists("Menu_Rendering") && $this->IsRoot) { Menu_Rendering($this); } if (!$this->RenderMenu()) { return; } if (!$this->IsMobile) { if ($this->IsRoot) { $str = "<ul"; if ($this->Id != "") { if (is_numeric($this->Id)) { $str .= " id=\"menu_" . $this->Id . "\""; } else { $str .= " id=\"" . $this->Id . "\""; } } $str .= " class=\"" . EW_MENU_CLASSNAME . "\">\n"; } else { $str = "<ul class=\"" . EW_SUBMENU_CLASSNAME . "\">\n"; } } else { $str = ""; } $gcnt = 0; // Group count $gtitle = FALSE; // Last item is group title $i = 0; // Menu item count $cururl = substr(ew_CurrentUrl(), strrpos(ew_CurrentUrl(), "/") + 1); foreach ($this->ItemData as $item) { if ($this->RenderItem($item)) { $i++; if (!$this->IsMobile && $gtitle && ($gcnt >= 1 || $this->IsRoot)) { // add divider for previous group $str .= "<li class=\"" . EW_MENU_DIVIDER_CLASSNAME . "\"></li>\n"; } if ($item->GroupTitle && (!$this->IsRoot || !EW_MENU_ROOT_GROUP_TITLE_AS_SUBMENU)) { // Group title $gtitle = TRUE; $gcnt += 1; if (strval($item->Text) != "") { if ($this->IsMobile) { $str .= "<li data-role=\"list-divider\">" . $item->Text . "</li>\n"; } else { $str .= "<li class=\"dropdown-header\">" . $item->Text . "</li>\n"; } } if (!is_null($item->SubMenu)) { foreach ($item->SubMenu->ItemData as $subitem) { $liclass = !is_null($subitem->SubMenu) ? EW_SUBMENU_ITEM_CLASSNAME : ""; $aclass = ""; if (!$subitem->IsCustomUrl && ew_CurrentPage() == ew_GetPageName($subitem->Url) || $subitem->IsCustomUrl && $cururl == $subitem->Url) { ew_AppendClass($liclass, EW_MENU_ACTIVE_ITEM_CLASS); } if ($this->RenderItem($subitem)) { if ($this->IsMobile && $item->GroupTitle) { ew_AppendClass($aclass, "ewIndent"); } $str .= $subitem->Render($aclass, $liclass, $this->IsMobile) . "\n"; // Create <LI> } } } } else { $gtitle = FALSE; $liclass = !is_null($item->SubMenu) ? $this->IsRoot ? EW_MENU_ITEM_CLASSNAME : EW_SUBMENU_ITEM_CLASSNAME : ""; $aclass = ""; if (!$item->IsCustomUrl && ew_CurrentPage() == ew_GetPageName($item->Url) || $item->IsCustomUrl && $cururl == $item->Url) { if ($this->IsRoot) { ew_AppendClass($liclass, EW_MENU_ACTIVE_ITEM_CLASS); } else { ew_AppendClass($liclass, EW_SUBMENU_ACTIVE_ITEM_CLASS); } } $str .= $item->Render($aclass, $liclass, $this->IsMobile) . "\n"; // Create <LI> } } } if ($this->IsMobile) { $str = "<ul data-role=\"listview\" data-filter=\"true\">" . $str . "</ul>\n"; } elseif ($this->IsRoot) { $str .= "</ul>\n"; if (EW_MENUBAR_BRAND != "") { $brandhref = EW_MENUBAR_BRAND_HYPERLINK == "" ? "#" : EW_MENUBAR_BRAND_HYPERLINK; $str = "<a class=\"brand\" href=\"" . ew_HtmlEncode($brandhref) . "\">" . EW_MENUBAR_BRAND . "</a>" . $str; } if (EW_MENUBAR_CLASSNAME != "" && EW_MENUBAR_INNER_CLASSNAME != "") { $str = "<div class=\"" . EW_MENUBAR_CLASSNAME . "\"><div class=\"" . EW_MENUBAR_INNER_CLASSNAME . "\">" . $str . "</div></div>"; } } else { $str .= "</ul>\n"; } if ($ret) { // Return as string return $str; } echo $str; // Output }
if ($products->product_description->Visible) { // product_description ?> <div id="r_product_description" class="form-group"> <label id="elh_products_product_description" class="col-sm-2 control-label ewLabel"><?php echo $products->product_description->FldCaption(); echo $Language->Phrase("FieldRequiredIndicator"); ?> </label> <div class="col-sm-10"><div<?php echo $products->product_description->CellAttributes(); ?> > <span id="el_products_product_description"> <?php ew_AppendClass($products->product_description->EditAttrs["class"], "editor"); ?> <textarea data-table="products" data-field="x_product_description" name="x_product_description" id="x_product_description" cols="35" rows="4" placeholder="<?php echo ew_HtmlEncode($products->product_description->getPlaceHolder()); ?> "<?php echo $products->product_description->EditAttributes(); ?> ><?php echo $products->product_description->EditValue; ?> </textarea> <script type="text/javascript"> ew_CreateEditor("fproductsedit", "x_product_description", 35, 4, <?php echo $products->product_description->ReadOnly || FALSE ? "true" : "false"; ?>
} } // End delete row checking if ($sala->CurrentAction != "gridadd" || $sala->CurrentMode == "copy") { if (!$sala_grid->Recordset->EOF) { $sala_grid->Recordset->MoveNext(); } } } if ($sala->CurrentMode == "add" || $sala->CurrentMode == "copy" || $sala->CurrentMode == "edit") { $sala_grid->RowIndex = '$rowindex$'; $sala_grid->LoadDefaultValues(); // Set row properties $sala->ResetAttrs(); $sala->RowAttrs = array_merge($sala->RowAttrs, array('data-rowindex' => $sala_grid->RowIndex, 'id' => 'r0_sala', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($sala->RowAttrs["class"], "ewTemplate"); $sala->RowType = EW_ROWTYPE_ADD; // Render row $sala_grid->RenderRow(); // Render list options $sala_grid->RenderListOptions(); $sala_grid->StartRowCnt = 0; ?> <tr<?php echo $sala->RowAttributes(); ?> > <?php // Render list options (body, left) $sala_grid->ListOptions->Render("body", "left", $sala_grid->RowIndex); ?>
if ($category->category_description->Visible) { // category_description ?> <div id="r_category_description" class="form-group"> <label id="elh_category_category_description" class="col-sm-2 control-label ewLabel"><?php echo $category->category_description->FldCaption(); echo $Language->Phrase("FieldRequiredIndicator"); ?> </label> <div class="col-sm-10"><div<?php echo $category->category_description->CellAttributes(); ?> > <span id="el_category_category_description"> <?php ew_AppendClass($category->category_description->EditAttrs["class"], "editor"); ?> <textarea data-table="category" data-field="x_category_description" name="x_category_description" id="x_category_description" cols="35" rows="4" placeholder="<?php echo ew_HtmlEncode($category->category_description->getPlaceHolder()); ?> "<?php echo $category->category_description->EditAttributes(); ?> ><?php echo $category->category_description->EditValue; ?> </textarea> <script type="text/javascript"> ew_CreateEditor("fcategoryadd", "x_category_description", 35, 4, <?php echo $category->category_description->ReadOnly || FALSE ? "true" : "false"; ?>
function Render($ret = FALSE) { if (function_exists("Menu_Rendering") && $this->IsRoot) { Menu_Rendering($this); } if (!$this->RenderMenu()) { return; } if (!$this->IsMobile) { if ($this->IsRoot) { $str = "<ul"; if ($this->Id != "") { if (is_numeric($this->Id)) { $str .= " id=\"menu_" . $this->Id . "\""; } else { $str .= " id=\"" . $this->Id . "\""; } } $str .= " class=\"" . $this->MenuClassName . "\">\n"; } else { $str = "<ul class=\"" . $this->SubMenuClassName . "\" role=\"menu\">\n"; } } else { $str = ""; } $gcnt = 0; // Group count $gtitle = FALSE; // Last item is group title $i = 0; // Menu item count $cururl = substr(ew_CurrentUrl(), strrpos(ew_CurrentUrl(), "/") + 1); foreach ($this->ItemData as $item) { if ($this->RenderItem($item)) { $i++; if (!$this->IsMobile && $gtitle && ($gcnt >= 1 || $this->IsRoot)) { // add divider for previous group $str .= "<li class=\"" . $this->MenuDividerClassName . "\"></li>\n"; } if ($item->GroupTitle && (!$this->IsRoot || !$this->MenuRootGroupTitleAsSubMenu)) { // Group title $gtitle = TRUE; $gcnt += 1; if (strval($item->Text) != "") { if ($this->IsMobile) { $str .= "<li data-role=\"list-divider\">" . $item->Text . "</li>\n"; } else { $str .= "<li class=\"dropdown-header\">" . $item->Text . "</li>\n"; } } if (!is_null($item->SubMenu)) { foreach ($item->SubMenu->ItemData as $subitem) { $liclass = !is_null($subitem->SubMenu) && $this->RenderSubMenu($subitem) ? $this->SubMenuItemClassName : ""; $aclass = ""; if (!$subitem->IsCustomUrl && ew_CurrentPage() == ew_GetPageName($subitem->Url) || $subitem->IsCustomUrl && $cururl == $subitem->Url) { ew_AppendClass($liclass, $this->MenuActiveItemClassName); $subitem->Url = "javascript:void(0);"; } if ($this->RenderItem($subitem)) { if ($this->IsMobile && $item->GroupTitle) { ew_AppendClass($aclass, "ewIndent"); } $str .= $subitem->Render($aclass, $liclass, $this->IsMobile) . "\n"; // Create <LI> } } } } else { $gtitle = FALSE; $liclass = !is_null($item->SubMenu) && $this->RenderSubMenu($item) ? $this->IsRoot ? $this->MenuItemClassName : $this->SubMenuItemClassName : ""; $aclass = ""; if (!$item->IsCustomUrl && ew_CurrentPage() == ew_GetPageName($item->Url) || $item->IsCustomUrl && $cururl == $item->Url) { if ($this->IsRoot) { ew_AppendClass($liclass, $this->MenuActiveItemClassName); } else { ew_AppendClass($liclass, $this->SubMenuActiveItemClassName); } $item->Url = "javascript:void(0);"; } $str .= $item->Render($aclass, $liclass, $this->IsMobile) . "\n"; // Create <LI> } } } if ($this->IsMobile) { $str = "<ul data-role=\"listview\" data-filter=\"true\">" . $str . "</ul>\n"; } elseif ($this->IsRoot) { $str .= "</ul>\n"; if (EW_MENUBAR_BRAND != "") { $brandhref = EW_MENUBAR_BRAND_HYPERLINK == "" ? "#" : EW_MENUBAR_BRAND_HYPERLINK; $str = "<a class=\"navbar-brand hidden-xs\" href=\"" . ew_HtmlEncode($brandhref) . "\">" . EW_MENUBAR_BRAND . "</a>" . $str; } // Add right menu if ($this->ShowRightMenu) { $str .= "<ul class=\"nav navbar-nav navbar-right\"></ul>"; } if ($this->MenuBarClassName != "") { $str = "<div class=\"" . $this->MenuBarClassName . "\">" . $str . "</div>"; } } else { $str .= "</ul>\n"; } if ($ret) { // Return as string return $str; } echo $str; // Output }
} } // End delete row checking if ($doctor_especialidad->CurrentAction != "gridadd" || $doctor_especialidad->CurrentMode == "copy") { if (!$doctor_especialidad_grid->Recordset->EOF) { $doctor_especialidad_grid->Recordset->MoveNext(); } } } if ($doctor_especialidad->CurrentMode == "add" || $doctor_especialidad->CurrentMode == "copy" || $doctor_especialidad->CurrentMode == "edit") { $doctor_especialidad_grid->RowIndex = '$rowindex$'; $doctor_especialidad_grid->LoadDefaultValues(); // Set row properties $doctor_especialidad->ResetAttrs(); $doctor_especialidad->RowAttrs = array_merge($doctor_especialidad->RowAttrs, array('data-rowindex' => $doctor_especialidad_grid->RowIndex, 'id' => 'r0_doctor_especialidad', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($doctor_especialidad->RowAttrs["class"], "ewTemplate"); $doctor_especialidad->RowType = EW_ROWTYPE_ADD; // Render row $doctor_especialidad_grid->RenderRow(); // Render list options $doctor_especialidad_grid->RenderListOptions(); $doctor_especialidad_grid->StartRowCnt = 0; ?> <tr<?php echo $doctor_especialidad->RowAttributes(); ?> > <?php // Render list options (body, left) $doctor_especialidad_grid->ListOptions->Render("body", "left", $doctor_especialidad_grid->RowIndex); ?>
} } // End delete row checking if ($consulta->CurrentAction != "gridadd" || $consulta->CurrentMode == "copy") { if (!$consulta_grid->Recordset->EOF) { $consulta_grid->Recordset->MoveNext(); } } } if ($consulta->CurrentMode == "add" || $consulta->CurrentMode == "copy" || $consulta->CurrentMode == "edit") { $consulta_grid->RowIndex = '$rowindex$'; $consulta_grid->LoadDefaultValues(); // Set row properties $consulta->ResetAttrs(); $consulta->RowAttrs = array_merge($consulta->RowAttrs, array('data-rowindex' => $consulta_grid->RowIndex, 'id' => 'r0_consulta', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($consulta->RowAttrs["class"], "ewTemplate"); $consulta->RowType = EW_ROWTYPE_ADD; // Render row $consulta_grid->RenderRow(); // Render list options $consulta_grid->RenderListOptions(); $consulta_grid->StartRowCnt = 0; ?> <tr<?php echo $consulta->RowAttributes(); ?> > <?php // Render list options (body, left) $consulta_grid->ListOptions->Render("body", "left", $consulta_grid->RowIndex); ?>
} } // End delete row checking if ($restaurants->CurrentAction != "gridadd") { if (!$restaurants_list->Recordset->EOF) { $restaurants_list->Recordset->MoveNext(); } } } if ($restaurants->CurrentAction == "gridadd" || $restaurants->CurrentAction == "gridedit") { $restaurants_list->RowIndex = '$rowindex$'; $restaurants_list->LoadDefaultValues(); // Set row properties $restaurants->ResetAttrs(); $restaurants->RowAttrs = array_merge($restaurants->RowAttrs, array('data-rowindex' => $restaurants_list->RowIndex, 'id' => 'r0_restaurants', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($restaurants->RowAttrs["class"], "ewTemplate"); $restaurants->RowType = EW_ROWTYPE_ADD; // Render row $restaurants_list->RenderRow(); // Render list options $restaurants_list->RenderListOptions(); $restaurants_list->StartRowCnt = 0; ?> <tr<?php echo $restaurants->RowAttributes(); ?> > <?php // Render list options (body, left) $restaurants_list->ListOptions->Render("body", "left", $restaurants_list->RowIndex); ?>
if ($sub_category->scat_description->Visible) { // scat_description ?> <div id="r_scat_description" class="form-group"> <label id="elh_sub_category_scat_description" class="col-sm-2 control-label ewLabel"><?php echo $sub_category->scat_description->FldCaption(); echo $Language->Phrase("FieldRequiredIndicator"); ?> </label> <div class="col-sm-10"><div<?php echo $sub_category->scat_description->CellAttributes(); ?> > <span id="el_sub_category_scat_description"> <?php ew_AppendClass($sub_category->scat_description->EditAttrs["class"], "editor"); ?> <textarea data-table="sub_category" data-field="x_scat_description" name="x_scat_description" id="x_scat_description" cols="35" rows="4" placeholder="<?php echo ew_HtmlEncode($sub_category->scat_description->getPlaceHolder()); ?> "<?php echo $sub_category->scat_description->EditAttributes(); ?> ><?php echo $sub_category->scat_description->EditValue; ?> </textarea> <script type="text/javascript"> ew_CreateEditor("fsub_categoryadd", "x_scat_description", 35, 4, <?php echo $sub_category->scat_description->ReadOnly || FALSE ? "true" : "false"; ?>
} } // End delete row checking if ($products->CurrentAction != "gridadd" || $products->CurrentMode == "copy") { if (!$products_grid->Recordset->EOF) { $products_grid->Recordset->MoveNext(); } } } if ($products->CurrentMode == "add" || $products->CurrentMode == "copy" || $products->CurrentMode == "edit") { $products_grid->RowIndex = '$rowindex$'; $products_grid->LoadDefaultValues(); // Set row properties $products->ResetAttrs(); $products->RowAttrs = array_merge($products->RowAttrs, array('data-rowindex' => $products_grid->RowIndex, 'id' => 'r0_products', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($products->RowAttrs["class"], "ewTemplate"); $products->RowType = EW_ROWTYPE_ADD; // Render row $products_grid->RenderRow(); // Render list options $products_grid->RenderListOptions(); $products_grid->StartRowCnt = 0; ?> <tr<?php echo $products->RowAttributes(); ?> > <?php // Render list options (body, left) $products_grid->ListOptions->Render("body", "left", $products_grid->RowIndex); ?>
} } // End delete row checking if ($sub_category->CurrentAction != "gridadd") { if (!$sub_category_list->Recordset->EOF) { $sub_category_list->Recordset->MoveNext(); } } } if ($sub_category->CurrentAction == "gridadd" || $sub_category->CurrentAction == "gridedit") { $sub_category_list->RowIndex = '$rowindex$'; $sub_category_list->LoadDefaultValues(); // Set row properties $sub_category->ResetAttrs(); $sub_category->RowAttrs = array_merge($sub_category->RowAttrs, array('data-rowindex' => $sub_category_list->RowIndex, 'id' => 'r0_sub_category', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($sub_category->RowAttrs["class"], "ewTemplate"); $sub_category->RowType = EW_ROWTYPE_ADD; // Render row $sub_category_list->RenderRow(); // Render list options $sub_category_list->RenderListOptions(); $sub_category_list->StartRowCnt = 0; ?> <tr<?php echo $sub_category->RowAttributes(); ?> > <?php // Render list options (body, left) $sub_category_list->ListOptions->Render("body", "left", $sub_category_list->RowIndex); ?>
if ($projects->details->Visible) { // details ?> <div id="r_details" class="form-group"> <label id="elh_projects_details" class="col-sm-2 control-label ewLabel"><?php echo $projects->details->FldCaption(); echo $Language->Phrase("FieldRequiredIndicator"); ?> </label> <div class="col-sm-10"><div<?php echo $projects->details->CellAttributes(); ?> > <span id="el_projects_details"> <?php ew_AppendClass($projects->details->EditAttrs["class"], "editor"); ?> <textarea data-table="projects" data-field="x_details" name="x_details" id="x_details" cols="35" rows="4" placeholder="<?php echo ew_HtmlEncode($projects->details->getPlaceHolder()); ?> "<?php echo $projects->details->EditAttributes(); ?> ><?php echo $projects->details->EditValue; ?> </textarea> <script type="text/javascript"> ew_CreateEditor("fprojectsedit", "x_details", 35, 4, <?php echo $projects->details->ReadOnly || FALSE ? "true" : "false"; ?>
function Render($Part, $ColSpan = 1) { $tagclass = $this->Parent->TagClassName; if ($Part == "header") { if ($tagclass == "") { $tagclass = "ewListOptionHeader"; } $value = $this->Header; } elseif ($Part == "body") { if ($tagclass == "") { $tagclass = "ewListOptionBody"; } if ($this->Parent->Tag != "td") { ew_AppendClass($tagclass, "ewListOptionSeparator"); } $value = $this->Body; } elseif ($Part == "footer") { if ($tagclass == "") { $tagclass = "ewListOptionFooter"; } $value = $this->Footer; } else { $value = $Part; } if (strval($value) == "" && $this->Parent->Tag == "span" && $this->Parent->ScriptId == "") { return ""; } $res = $value != "" ? $value : " "; ew_AppendClass($tagclass, $this->CssClass); $attrs = array("class" => $tagclass, "style" => $this->CssStyle, "data-name" => $this->Name); if (strtolower($this->Parent->Tag) == "td" && $this->Parent->RowSpan > 1) { $attrs["rowspan"] = $this->Parent->RowSpan; } if (strtolower($this->Parent->Tag) == "td" && $ColSpan > 1) { $attrs["colspan"] = $ColSpan; } $name = $this->Parent->TableVar . "_" . $this->Name; if ($this->Name != $this->Parent->GroupOptionName) { if (!in_array($this->Name, array('checkbox', 'rowcnt'))) { if ($this->Parent->UseImageAndText) { $res = $this->GetImageAndText($res); } if ($this->Parent->UseButtonGroup && $this->ShowInButtonGroup) { $res = $this->Parent->RenderButtonGroup($res); if ($this->OnLeft && strtolower($this->Parent->Tag) == "td" && $ColSpan > 1) { $res = '<div style="text-align: right">' . $res . '</div>'; } } } if ($Part == "header") { $res = "<span id=\"elh_" . $name . "\" class=\"" . $name . "\">" . $res . "</span>"; } else { if ($Part == "body") { $res = "<span id=\"el" . $this->Parent->RowCnt . "_" . $name . "\" class=\"" . $name . "\">" . $res . "</span>"; } else { if ($Part == "footer") { $res = "<span id=\"elf_" . $name . "\" class=\"" . $name . "\">" . $res . "</span>"; } } } } $tag = $this->Parent->Tag == "td" && $Part == "header" ? "th" : $this->Parent->Tag; if ($this->Parent->UseButtonGroup && $this->ShowInButtonGroup) { $attrs["style"] .= "white-space: nowrap;"; } $res = ew_HtmlElement($tag, $attrs, $res); if ($this->Parent->ScriptId != "") { $js = ew_ExtractScript($res, $this->Parent->ScriptClassName . "_js"); if ($this->Parent->ScriptType == "single") { if ($Part == "header") { $res = "<script id=\"tpoh_" . $this->Parent->ScriptId . "_" . $this->Name . "\" type=\"text/html\">" . $res . "</script>"; } else { if ($Part == "body") { $res = "<script id=\"tpob" . $this->Parent->RowCnt . "_" . $this->Parent->ScriptId . "_" . $this->Name . "\" type=\"text/html\">" . $res . "</script>"; } else { if ($Part == "footer") { $res = "<script id=\"tpof_" . $this->Parent->ScriptId . "_" . $this->Name . "\" type=\"text/html\">" . $res . "</script>"; } } } } if ($js != "") { if ($this->Parent->ScriptType == "single") { $res .= $js; } else { $this->Parent->JavaScript .= $js; } } } return $res; }
if ($services->s_longdesc->Visible) { // s_longdesc ?> <div id="r_s_longdesc" class="form-group"> <label id="elh_services_s_longdesc" class="col-sm-2 control-label ewLabel"><?php echo $services->s_longdesc->FldCaption(); echo $Language->Phrase("FieldRequiredIndicator"); ?> </label> <div class="col-sm-10"><div<?php echo $services->s_longdesc->CellAttributes(); ?> > <span id="el_services_s_longdesc"> <?php ew_AppendClass($services->s_longdesc->EditAttrs["class"], "editor"); ?> <textarea data-table="services" data-field="x_s_longdesc" name="x_s_longdesc" id="x_s_longdesc" cols="35" rows="4" placeholder="<?php echo ew_HtmlEncode($services->s_longdesc->getPlaceHolder()); ?> "<?php echo $services->s_longdesc->EditAttributes(); ?> ><?php echo $services->s_longdesc->EditValue; ?> </textarea> <script type="text/javascript"> ew_CreateEditor("fservicesedit", "x_s_longdesc", 35, 4, <?php echo $services->s_longdesc->ReadOnly || FALSE ? "true" : "false"; ?>
if ($images->image_detail->Visible) { // image_detail ?> <div id="r_image_detail" class="form-group"> <label id="elh_images_image_detail" class="col-sm-2 control-label ewLabel"><?php echo $images->image_detail->FldCaption(); echo $Language->Phrase("FieldRequiredIndicator"); ?> </label> <div class="col-sm-10"><div<?php echo $images->image_detail->CellAttributes(); ?> > <span id="el_images_image_detail"> <?php ew_AppendClass($images->image_detail->EditAttrs["class"], "editor"); ?> <textarea data-table="images" data-field="x_image_detail" name="x_image_detail" id="x_image_detail" cols="35" rows="4" placeholder="<?php echo ew_HtmlEncode($images->image_detail->getPlaceHolder()); ?> "<?php echo $images->image_detail->EditAttributes(); ?> ><?php echo $images->image_detail->EditValue; ?> </textarea> <script type="text/javascript"> ew_CreateEditor("fimagesadd", "x_image_detail", 35, 4, <?php echo $images->image_detail->ReadOnly || FALSE ? "true" : "false"; ?>
} } // End delete row checking if ($medicina->CurrentAction != "gridadd" || $medicina->CurrentMode == "copy") { if (!$medicina_grid->Recordset->EOF) { $medicina_grid->Recordset->MoveNext(); } } } if ($medicina->CurrentMode == "add" || $medicina->CurrentMode == "copy" || $medicina->CurrentMode == "edit") { $medicina_grid->RowIndex = '$rowindex$'; $medicina_grid->LoadDefaultValues(); // Set row properties $medicina->ResetAttrs(); $medicina->RowAttrs = array_merge($medicina->RowAttrs, array('data-rowindex' => $medicina_grid->RowIndex, 'id' => 'r0_medicina', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($medicina->RowAttrs["class"], "ewTemplate"); $medicina->RowType = EW_ROWTYPE_ADD; // Render row $medicina_grid->RenderRow(); // Render list options $medicina_grid->RenderListOptions(); $medicina_grid->StartRowCnt = 0; ?> <tr<?php echo $medicina->RowAttributes(); ?> > <?php // Render list options (body, left) $medicina_grid->ListOptions->Render("body", "left", $medicina_grid->RowIndex); ?>
} if ($nos_members->notes->Visible) { // notes ?> <div id="r_notes" class="form-group"> <label id="elh_nos_members_notes" class="col-sm-2 control-label ewLabel"><?php echo $nos_members->notes->FldCaption(); ?> </label> <div class="col-sm-10"><div<?php echo $nos_members->notes->CellAttributes(); ?> > <span id="el_nos_members_notes"> <?php ew_AppendClass($nos_members->notes->EditAttrs["class"], "editor"); ?> <textarea data-table="nos_members" data-field="x_notes" data-page="1" name="x_notes" id="x_notes" cols="35" rows="4" placeholder="<?php echo ew_HtmlEncode($nos_members->notes->getPlaceHolder()); ?> "<?php echo $nos_members->notes->EditAttributes(); ?> ><?php echo $nos_members->notes->EditValue; ?> </textarea> </span> <?php echo $nos_members->notes->CustomMsg; ?>
function RenderRow() { global $Security, $Language, $gsLanguage; // Initialize URLs // Call Row_Rendering event $this->Row_Rendering(); // Common render codes for all row types // vl_media_id // vl_media_type // vl_media_name // vl_media_file // vl_media_file_custom if ($this->RowType == EW_ROWTYPE_VIEW) { // View row // vl_media_id $this->vl_media_id->ViewValue = $this->vl_media_id->CurrentValue; $this->vl_media_id->ViewCustomAttributes = ""; // vl_media_type if (strval($this->vl_media_type->CurrentValue) != "") { $sFilterWrk = "`vl_media_type_id`" . ew_SearchString("=", $this->vl_media_type->CurrentValue, EW_DATATYPE_NUMBER, ""); $sSqlWrk = "SELECT `vl_media_type_id`, `vl_media_type_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `vl_media_type_list`"; $sWhereWrk = ""; ew_AddFilter($sWhereWrk, $sFilterWrk); $this->Lookup_Selecting($this->vl_media_type, $sWhereWrk); // Call Lookup selecting if ($sWhereWrk != "") { $sSqlWrk .= " WHERE " . $sWhereWrk; } $sSqlWrk .= " ORDER BY `vl_media_type_name` ASC"; $rswrk = Conn()->Execute($sSqlWrk); if ($rswrk && !$rswrk->EOF) { // Lookup values found $arwrk = array(); $arwrk[1] = $rswrk->fields('DispFld'); $this->vl_media_type->ViewValue = $this->vl_media_type->DisplayValue($arwrk); $rswrk->Close(); } else { $this->vl_media_type->ViewValue = $this->vl_media_type->CurrentValue; } } else { $this->vl_media_type->ViewValue = NULL; } $this->vl_media_type->ViewCustomAttributes = ""; // vl_media_name $this->vl_media_name->ViewValue = $this->vl_media_name->CurrentValue; $this->vl_media_name->ViewCustomAttributes = ""; // vl_media_file if (!ew_Empty($this->vl_media_file->Upload->DbValue)) { $this->vl_media_file->ImageWidth = 200; $this->vl_media_file->ImageHeight = 200; $this->vl_media_file->ImageAlt = $this->vl_media_file->FldAlt(); $this->vl_media_file->ViewValue = $this->vl_media_file->Upload->DbValue; } else { $this->vl_media_file->ViewValue = ""; } $this->vl_media_file->ViewCustomAttributes = ""; // vl_media_file_custom $this->vl_media_file_custom->UploadPath = "uploads_custom/"; if (!ew_Empty($this->vl_media_file_custom->Upload->DbValue)) { $this->vl_media_file_custom->ImageWidth = 200; $this->vl_media_file_custom->ImageHeight = 200; $this->vl_media_file_custom->ImageAlt = $this->vl_media_file_custom->FldAlt(); $this->vl_media_file_custom->ViewValue = $this->vl_media_file_custom->Upload->DbValue; } else { $this->vl_media_file_custom->ViewValue = ""; } $this->vl_media_file_custom->ViewCustomAttributes = ""; // vl_media_id $this->vl_media_id->LinkCustomAttributes = ""; $this->vl_media_id->HrefValue = ""; $this->vl_media_id->TooltipValue = ""; // vl_media_type $this->vl_media_type->LinkCustomAttributes = ""; $this->vl_media_type->HrefValue = ""; $this->vl_media_type->TooltipValue = ""; // vl_media_name $this->vl_media_name->LinkCustomAttributes = ""; $this->vl_media_name->HrefValue = ""; $this->vl_media_name->TooltipValue = ""; // vl_media_file $this->vl_media_file->LinkCustomAttributes = ""; if (!ew_Empty($this->vl_media_file->Upload->DbValue)) { $this->vl_media_file->HrefValue = ew_GetFileUploadUrl($this->vl_media_file, $this->vl_media_file->Upload->DbValue); // Add prefix/suffix $this->vl_media_file->LinkAttrs["target"] = "_blank"; // Add target if ($this->Export != "") { $this->vl_media_file->HrefValue = ew_ConvertFullUrl($this->vl_media_file->HrefValue); } } else { $this->vl_media_file->HrefValue = ""; } $this->vl_media_file->HrefValue2 = $this->vl_media_file->UploadPath . $this->vl_media_file->Upload->DbValue; $this->vl_media_file->TooltipValue = ""; if ($this->vl_media_file->UseColorbox) { if (ew_Empty($this->vl_media_file->TooltipValue)) { $this->vl_media_file->LinkAttrs["title"] = $Language->Phrase("ViewImageGallery"); } $this->vl_media_file->LinkAttrs["data-rel"] = "vl_media_list_x_vl_media_file"; ew_AppendClass($this->vl_media_file->LinkAttrs["class"], "ewLightbox"); } // vl_media_file_custom $this->vl_media_file_custom->LinkCustomAttributes = ""; $this->vl_media_file_custom->UploadPath = "uploads_custom/"; if (!ew_Empty($this->vl_media_file_custom->Upload->DbValue)) { $this->vl_media_file_custom->HrefValue = ew_GetFileUploadUrl($this->vl_media_file_custom, $this->vl_media_file_custom->Upload->DbValue); // Add prefix/suffix $this->vl_media_file_custom->LinkAttrs["target"] = "_blank"; // Add target if ($this->Export != "") { $this->vl_media_file_custom->HrefValue = ew_ConvertFullUrl($this->vl_media_file_custom->HrefValue); } } else { $this->vl_media_file_custom->HrefValue = ""; } $this->vl_media_file_custom->HrefValue2 = $this->vl_media_file_custom->UploadPath . $this->vl_media_file_custom->Upload->DbValue; $this->vl_media_file_custom->TooltipValue = ""; if ($this->vl_media_file_custom->UseColorbox) { if (ew_Empty($this->vl_media_file_custom->TooltipValue)) { $this->vl_media_file_custom->LinkAttrs["title"] = $Language->Phrase("ViewImageGallery"); } $this->vl_media_file_custom->LinkAttrs["data-rel"] = "vl_media_list_x_vl_media_file_custom"; ew_AppendClass($this->vl_media_file_custom->LinkAttrs["class"], "ewLightbox"); } } // Call Row Rendered event if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) { $this->Row_Rendered(); } }
} } // End delete row checking if ($gastos_mantenimientos->CurrentAction != "gridadd" || $gastos_mantenimientos->CurrentMode == "copy") { if (!$gastos_mantenimientos_grid->Recordset->EOF) { $gastos_mantenimientos_grid->Recordset->MoveNext(); } } } if ($gastos_mantenimientos->CurrentMode == "add" || $gastos_mantenimientos->CurrentMode == "copy" || $gastos_mantenimientos->CurrentMode == "edit") { $gastos_mantenimientos_grid->RowIndex = '$rowindex$'; $gastos_mantenimientos_grid->LoadDefaultValues(); // Set row properties $gastos_mantenimientos->ResetAttrs(); $gastos_mantenimientos->RowAttrs = array_merge($gastos_mantenimientos->RowAttrs, array('data-rowindex' => $gastos_mantenimientos_grid->RowIndex, 'id' => 'r0_gastos_mantenimientos', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($gastos_mantenimientos->RowAttrs["class"], "ewTemplate"); $gastos_mantenimientos->RowType = EW_ROWTYPE_ADD; // Render row $gastos_mantenimientos_grid->RenderRow(); // Render list options $gastos_mantenimientos_grid->RenderListOptions(); $gastos_mantenimientos_grid->StartRowCnt = 0; ?> <tr<?php echo $gastos_mantenimientos->RowAttributes(); ?> > <?php // Render list options (body, left) $gastos_mantenimientos_grid->ListOptions->Render("body", "left", $gastos_mantenimientos_grid->RowIndex); ?>
} } // End delete row checking if ($doctor->CurrentAction != "gridadd" || $doctor->CurrentMode == "copy") { if (!$doctor_grid->Recordset->EOF) { $doctor_grid->Recordset->MoveNext(); } } } if ($doctor->CurrentMode == "add" || $doctor->CurrentMode == "copy" || $doctor->CurrentMode == "edit") { $doctor_grid->RowIndex = '$rowindex$'; $doctor_grid->LoadDefaultValues(); // Set row properties $doctor->ResetAttrs(); $doctor->RowAttrs = array_merge($doctor->RowAttrs, array('data-rowindex' => $doctor_grid->RowIndex, 'id' => 'r0_doctor', 'data-rowtype' => EW_ROWTYPE_ADD)); ew_AppendClass($doctor->RowAttrs["class"], "ewTemplate"); $doctor->RowType = EW_ROWTYPE_ADD; // Render row $doctor_grid->RenderRow(); // Render list options $doctor_grid->RenderListOptions(); $doctor_grid->StartRowCnt = 0; ?> <tr<?php echo $doctor->RowAttributes(); ?> > <?php // Render list options (body, left) $doctor_grid->ListOptions->Render("body", "left", $doctor_grid->RowIndex); ?>