当前位置: 首页>>代码示例>>PHP>>正文


PHP ew_AppendClass函数代码示例

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


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

示例1: array_merge

            }
        }
        // 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);
        ?>
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:v_gasto_manteniemintogrid.php

示例2: array_merge

                }
            }
            // 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);
            ?>
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:cciag_seguimiento_tramiteslist.php

示例3: array_merge

            }
        }
        // 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);
        ?>
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:31,代码来源:recetagrid.php

示例4: array_merge

            }
        }
        // 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);
        ?>
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:gastosgrid.php

示例5: array_merge

            }
        }
        // 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);
        ?>
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:31,代码来源:doctor_servicio_medico_prestadogrid.php

示例6: array_merge

            }
        }
        // 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);
        ?>
开发者ID:ahmarmahmood,项目名称:top,代码行数:31,代码来源:gallery_detaillist.php

示例7: array_merge

                }
            }
            // 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);
            ?>
开发者ID:ahmarmahmood,项目名称:tabedaar,代码行数:31,代码来源:itemslist.php

示例8: array_merge

            }
        }
        // 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);
        ?>
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:31,代码来源:nivelgrid.php

示例9: array_merge

            }
        }
        // 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);
        ?>
开发者ID:ahmarmahmood,项目名称:top,代码行数:31,代码来源:catalogueslist.php

示例10: array_merge

            }
        }
        // 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);
        ?>
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:31,代码来源:departamentogrid.php

示例11: Render

 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;
     }
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:ewshared10.php

示例12: ew_AppendClass

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";
    ?>
开发者ID:NaurozAhmad,项目名称:G-Axis,代码行数:31,代码来源:productsedit.php

示例13: array_merge

            }
        }
        // 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);
        ?>
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:31,代码来源:salagrid.php

示例14: ew_AppendClass

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";
    ?>
开发者ID:NaurozAhmad,项目名称:G-Axis,代码行数:31,代码来源:categoryadd.php

示例15: Render

 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 {
//.........这里部分代码省略.........
开发者ID:NoSympathy,项目名称:Dashboard,代码行数:101,代码来源:ewshared12.php


注:本文中的ew_AppendClass函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。