Beispiel #1
0
echo $form->field($model, 'banner', ['template' => "{label}\n<div class=\"col-lg-3\">{input}</div>\n"])->textInput(['maxlength' => 255]);
?>
    <?php 
echo $form->field($model, 'file', ['template' => "<div class=\"col-lg-offset-1 col-lg-3\">{input}</div>\n<div class=\"col-lg-8\">{error}</div>"])->fileInput();
?>

    <?php 
echo $form->field($model, 'is_nav')->dropDownList(F::getYesNo());
?>

    <?php 
echo $form->field($model, 'sort_order')->textInput(['maxlength' => 10]);
?>

    <?php 
echo $form->field($model, 'page_type')->dropDownList(F::getPageType());
?>

    <?php 
echo $form->field($model, 'page_size')->textInput();
?>

    <?php 
echo $form->field($model, 'template_list')->dropDownList($arrTpl['list']);
?>

    <?php 
echo $form->field($model, 'template_show')->dropDownList($arrTpl['show']);
?>

    <?php 
Beispiel #2
0
    ?>
        <tr data-key="1">
            <td><?php 
    echo $item['id'];
    ?>
</td>
            <td><?php 
    echo $item['str_label'];
    ?>
</td>
            <td><?php 
    echo $item['sort_order'];
    ?>
</td>
            <td><?php 
    echo F::getPageType($item['page_type']);
    ?>
</td>
            <td><?php 
    echo F::getYesNo($item['is_nav']);
    ?>
</td>
            <td><?php 
    echo F::getStatus2($item['status']);
    ?>
</td>
            <td>
                <a href="<?php 
    echo \Yii::$app->getUrlManager()->createUrl(['catalog/create', 'parent_id' => $item['id']]);
    ?>
" title="增加子栏目" data-pjax="0"><span class="glyphicon glyphicon-plus-sign"></span></a>