當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Backend::tplElement方法代碼示例

本文整理匯總了PHP中Backend::tplElement方法的典型用法代碼示例。如果您正苦於以下問題:PHP Backend::tplElement方法的具體用法?PHP Backend::tplElement怎麽用?PHP Backend::tplElement使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Backend的用法示例。


在下文中一共展示了Backend::tplElement方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: uploadImageItem

 public function uploadImageItem()
 {
     if ($img = $this->images_model->checkImgUpload()) {
         $this->crud_model->update($this->input->post('type'), ['id' => $this->input->post('id'), 'image' => $img]);
         echo Backend::tplElement('images/item', ['item' => $this->crud_model->select($this->input->post('type'), ['id' => $this->input->post('id')], 'row'), 'table' => $this->input->post('type')]);
     }
 }
開發者ID:alexber127,項目名稱:StCms-v3.0,代碼行數:7,代碼來源:Upload.php

示例2:

                    </div>
                    <div class="tab-pane" id="tab_4">
                        <div class="form-group">
                            <div class="btn btn-sm btn-primary uploadNewImage">Загрузить изображение</div><br><br>
                            <div class="imgsupl"><?php 
echo $main->images_model->getImages($data['prod']['id'], 'imagesprods');
?>
</div>
                        </div>
                    </div>
                    <div class="tab-pane" id="tab_6">
                        <div class="form-group">
                            <div class="btn btn-sm btn-primary uploadNewImageItem">Загрузить изображение</div><br><br>
                            <div class="imgsuplItem">
                                <?php 
echo Backend::tplElement('images/item', ['item' => $data['prod'], 'table' => 'products']);
?>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="tab_8">
                        <?php 
foreach ($main->catalog_model->select(Catalog_model::$chars) as $char) {
    ?>
                            <div class="form-group">
                                <?php 
    echo form_label($char['name']);
    ?>
                                <?php 
    echo form_input(['type' => 'text', 'name' => 'chars[' . $char['id'] . ']', 'class' => 'form-control', 'placeholder' => 'Значение'], $main->catalog_model->getCharItemVal($char['id'], $data['prod']['id']));
    ?>
開發者ID:alexber127,項目名稱:StCms-v3.0,代碼行數:31,代碼來源:edit.php

示例3: form_submit

                    </div>  
                    <div class="tab-pane" id="tab_4">
                        <div class="form-group">
                            <div class="btn btn-sm btn-primary uploadNewImage">Загрузить изображение</div><br><br>
                            <div class="imgsupl"><?php 
echo $main->images_model->getImages($data['service']['id'], 'imagesservices');
?>
</div>
                        </div>
                    </div>
                    <div class="tab-pane" id="tab_6">
                        <div class="form-group">
                            <div class="btn btn-sm btn-primary uploadNewImageItem">Загрузить изображение</div><br><br>
                            <div class="imgsuplItem">
                                <?php 
echo Backend::tplElement('images/item', ['item' => $data['service'], 'table' => 'services']);
?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <?php 
echo form_submit('', 'Сохранить', ['class' => 'btn btn-primary']);
?>
        <?php 
echo form_close();
?>
    </div>
</div>
<script>
開發者ID:alexber127,項目名稱:StCms-v3.0,代碼行數:31,代碼來源:edit.php


注:本文中的Backend::tplElement方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。