本文整理汇总了PHP中Backend::tpl方法的典型用法代码示例。如果您正苦于以下问题:PHP Backend::tpl方法的具体用法?PHP Backend::tpl怎么用?PHP Backend::tpl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Backend
的用法示例。
在下文中一共展示了Backend::tpl方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: editTemplate
public function editTemplate($v)
{
if (isset(Pages_model::$types[$v])) {
$this->admin['type'] = ['type' => $v, 'value' => Pages_model::$types[$v]];
Backend::tpl('templates/templateedit');
}
}
示例2: uploadImage
public function uploadImage()
{
if ($img = $this->images_model->checkImgUpload()) {
$this->images_model->insert($this->input->post('type'), ['image' => $img, 'ident' => $this->input->post('id')]);
$this->admin['images'] = $this->images_model->select($this->input->post('type'), ['ident' => $this->input->post('id')], 'result');
$this->admin['typest'] = $this->input->post('type');
Backend::tpl('images/list');
}
}
示例3: getChar
public function getChar()
{
$this->admin['char'] = $this->catalog_model->select(Catalog_model::$chars, ['id' => $this->input->post('id')], 'row');
Backend::tpl('catalog/editchar');
}
示例4: form_open
echo form_open('admin/catalogSave', ['class' => 'form-page-edit'], ['id' => $data['catalog']['id']]);
?>
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#tab_3" data-toggle="tab" aria-expanded="false">Товары</a></li>
<li><a href="#tab_1" data-toggle="tab" aria-expanded="false">Информация</a></li>
<li><a href="#tab_2" data-toggle="tab" aria-expanded="true">Сео</a></li>
<li><a href="#tab_4" data-toggle="tab">Родитель</a></li>
<li><a href="#tab_5" data-toggle="tab">Изображение</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab_3">
<div class="row">
<div class="col-md-12">
<?php
echo Backend::tpl('catalog/productslist');
?>
</div>
</div>
</div>
<div class="tab-pane" id="tab_1">
<?php
echo Htmlhelper::formGroupInput($data['catalog'], 'Наименование', 'name', TRUE);
?>
<?php
echo Htmlhelper::formGroupTextarea($data['catalog'], 'Короткое описание', 'summary', 'style="resize:none;height:50px;"');
?>
<?php
echo Htmlhelper::formGroupCkeditor($data['catalog'], 'Полное описание', 'content');
?>
<?php