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


PHP assets_url函数代码示例

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


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

示例1: index

 public function index()
 {
     $this->user->restrict('Admin.Ratings');
     $this->lang->load('ratings');
     $this->template->setTitle($this->lang->line('text_title'));
     $this->template->setHeading($this->lang->line('text_heading'));
     $this->template->setButton($this->lang->line('button_save'), array('class' => 'btn btn-primary', 'onclick' => '$(\'#edit-form\').submit();'));
     $this->template->setScriptTag(assets_url('js/jquery-sortable.js'), 'jquery-sortable-js');
     if ($this->input->post() and $this->_updateRating() === TRUE) {
         redirect('ratings');
     }
     if ($this->input->post('ratings')) {
         $results = $this->input->post('ratings');
     } else {
         if ($this->config->item('ratings')) {
             $ratings = $this->config->item('ratings');
             $results = $ratings['ratings'];
         } else {
             $results = '';
         }
     }
     $data['ratings'] = array();
     if (is_array($results)) {
         foreach ($results as $key => $value) {
             $data['ratings'][$key] = $value;
         }
     }
     $this->template->render('ratings', $data);
 }
开发者ID:tastyigniter,项目名称:tastyigniter,代码行数:29,代码来源:Ratings.php

示例2: _pagelet_upload_control

    /**
     * Render photo upload control
     * options:
     *      message: Add some text to describe the control
     *
     *      id: ID attribute of the HTML file input
     *      is_multiple: Allow multiple files upload
     *      form_data: Additional form data to be sent along with the files
     *      success_callback: Callback for successful upload files
     *
     *      parent: Use to find the closest wrapper of the whole upload control
     *      progress_target: Use to locate progress bar inside the upload control
     *      holder_target: Use to locate the holder (inside the upload control) where all upload results will be added to
     *      image_holder_target: Use to locate a fixed place for a single uploaded image
     *
     *      progress_template: Progress bar template
     *      holder_template: Holder template
     *      item_template: Template for a uploaded image
     *      error_template: Template for an error message
     */
    public function _pagelet_upload_control($options = array())
    {
        $default_options = array('message' => 'Supports multiple file selection, drag&drop, progress bar, cross-domain, chunked and resumable file uploads.', 'id' => 'file-upload', 'is_multiple' => TRUE, 'form_data' => array(), 'success_callback' => 'false', 'parent' => '.upload-control', 'progress_target' => '.progress', 'holder_target' => '.holder', 'image_holder_target' => FALSE);
        $options = array_merge($default_options, $options);
        // Load templates if not set
        foreach (array('progress', 'holder', 'item', 'error') as $template_name) {
            if (!isset($options[$template_name . '_template'])) {
                $template = $this->load->view('photo/upload_control/template_' . $template_name, FALSE, TRUE);
                $options[$template_name . '_template'] = $template;
            }
        }
        // Upload control HTML
        $this->load->view('photo/pagelet_upload_control', $options);
        // Load script to setup the upload control
        $fileupload_js = assets_url('js/fileupload.js');
        $upload_id = '#' . $options['id'];
        $upload_url = site_url('photo/photo_ajax/upload');
        $form_data = json_encode($options['form_data']);
        $script = <<<JS
\$(function() {
    CIS.Script.require('{$fileupload_js}', function() {
        CIS.FileUpload.init(\$('{$upload_id}'), {
            url: '{$upload_url}',
            formData: {$form_data},
            successCallback: {$options['success_callback']}
        });
    });
});
JS;
        $this->_load_script($script);
    }
开发者ID:rudyondolan,项目名称:CodeIgniter-Skeleton,代码行数:51,代码来源:photo.php

示例3: edit

 public function edit()
 {
     $page_info = $this->Pages_model->getPage((int) $this->input->get('id'));
     if ($page_info) {
         $page_id = $page_info['page_id'];
         $data['_action'] = site_url('pages/edit?id=' . $page_id);
     } else {
         $page_id = 0;
         $data['_action'] = site_url('pages/edit');
     }
     $title = isset($page_info['name']) ? $page_info['name'] : $this->lang->line('text_new');
     $this->template->setTitle(sprintf($this->lang->line('text_edit_heading'), $title));
     $this->template->setHeading(sprintf($this->lang->line('text_edit_heading'), $title));
     $this->template->setButton($this->lang->line('button_save'), array('class' => 'btn btn-primary', 'onclick' => '$(\'#edit-form\').submit();'));
     $this->template->setButton($this->lang->line('button_save_close'), array('class' => 'btn btn-default', 'onclick' => 'saveClose();'));
     $this->template->setButton($this->lang->line('button_icon_back'), array('class' => 'btn btn-default', 'href' => site_url('pages')));
     $this->template->setStyleTag(assets_url('js/summernote/summernote.css'), 'summernote-css');
     $this->template->setScriptTag(assets_url('js/summernote/summernote.min.js'), 'summernote-js');
     if ($this->input->post() and $page_id = $this->_savePage()) {
         if ($this->input->post('save_close') === '1') {
             redirect('pages');
         }
         redirect('pages/edit?id=' . $page_id);
     }
     $data['page_id'] = $page_info['page_id'];
     $data['language_id'] = $page_info['language_id'];
     $data['name'] = $page_info['name'];
     $data['page_title'] = $page_info['title'];
     $data['page_heading'] = $page_info['heading'];
     $data['content'] = html_entity_decode($page_info['content']);
     $data['meta_description'] = $page_info['meta_description'];
     $data['meta_keywords'] = $page_info['meta_keywords'];
     $data['layout_id'] = $page_info['layout_id'];
     $data['status'] = $page_info['status'];
     if ($this->input->post('navigation')) {
         $data['navigation'] = $this->input->post('navigation');
     } else {
         if (!empty($page_info['navigation'])) {
             $data['navigation'] = unserialize($page_info['navigation']);
         } else {
             $data['navigation'] = array();
         }
     }
     $data['permalink'] = $this->permalink->getPermalink('page_id=' . $page_info['page_id']);
     $data['permalink']['url'] = root_url();
     $this->load->model('Layouts_model');
     $data['layouts'] = array();
     $results = $this->Layouts_model->getLayouts();
     foreach ($results as $result) {
         $data['layouts'][] = array('layout_id' => $result['layout_id'], 'name' => $result['name']);
     }
     $this->load->model('Languages_model');
     $data['languages'] = array();
     $results = $this->Languages_model->getLanguages();
     foreach ($results as $result) {
         $data['languages'][] = array('language_id' => $result['language_id'], 'name' => $result['name']);
     }
     $data['menu_locations'] = array('Hide', 'All', 'Header', 'Footer', 'Module');
     $this->template->render('pages_edit', $data);
 }
开发者ID:tastyigniter,项目名称:tastyigniter,代码行数:60,代码来源:Pages.php

示例4: _pagelet_example_form

    public function _pagelet_example_form()
    {
        $this->load->helper('form');
        $data['form_name'] = 'example_form';
        // List all fields of the example form
        $data['form_fields'] = array(array('id' => 'name', 'name' => 'name', 'display' => 'Name', 'type' => 'text', 'rules' => 'required|max_length[10]'), array('id' => 'email', 'name' => 'email', 'display' => 'Email', 'type' => 'text', 'rules' => 'required|valid_email'), array('id' => 'password', 'name' => 'password', 'display' => 'Password', 'type' => 'password', 'rules' => 'required|min_length[6]|max_length[10]'), array('id' => 'password_confirm', 'name' => 'password_confirm', 'display' => 'Password confirm', 'type' => 'password', 'rules' => 'required|matches[password]'));
        // Example form HTML
        $this->load->view('form_validation_example/pagelet_example_form', $data);
        // Form validation rules
        $rules = array();
        foreach ($data['form_fields'] as $form_field) {
            $rules[] = array('name' => $form_field['name'], 'display' => $form_field['display'], 'rules' => $form_field['rules']);
        }
        // Load script to setup form validation plugin
        $form_validation_js = assets_url('js/formvalidation.js');
        $json_rules = json_encode($rules);
        $script = <<<JS
\$(function() {
    CIS.Script.require('{$form_validation_js}', function() {
        CIS.Form.validation('{$data['form_name']}', {$json_rules});
    });
});
JS;
        $this->_load_script($script);
    }
开发者ID:rudyondolan,项目名称:CodeIgniter-Skeleton,代码行数:25,代码来源:form_validation_example.php

示例5: images_url

 function images_url($file = NULL)
 {
     $url = '';
     $ci =& get_instance();
     $url .= assets_url() . $ci->config->item('images_path');
     if (isset($file)) {
         $url .= $file;
     }
     return $url;
 }
开发者ID:chloereimer,项目名称:sleepy-me-hotel,代码行数:10,代码来源:assets_helper.php

示例6: detail

 function detail($id)
 {
     permissionUser();
     $notif = $this->data['notif'] = getAll($this->table_name, array('receiver_id' => 'where/' . sessId(), 'id' => 'where/' . $id))->row();
     $photo_link = getValue('photo', 'users', array('id' => 'where/' . $notif->sender_id));
     $photo_link = base_url() . 'uploads/' . $notif->sender_id . '/' . $photo_link;
     $file_headers = @get_headers($photo_link);
     $this->data['sender_photo'] = $file_headers[0] != 'HTTP/1.1 404 Not Found' ? $photo_link : assets_url('assets/images/no-image-mid.png');
     $this->load->view('notification/detail', $this->data);
 }
开发者ID:abdulghanni,项目名称:gsm,代码行数:10,代码来源:notification.php

示例7: edit

 public function edit()
 {
     $template_info = $this->Mail_templates_model->getTemplate((int) $this->input->get('id'));
     if ($template_info) {
         $template_id = $template_info['template_id'];
         $data['_action'] = site_url('mail_templates/edit?id=' . $template_id);
     } else {
         $template_id = 0;
         $data['_action'] = site_url('mail_templates/edit');
     }
     $title = isset($template_info['name']) ? $template_info['name'] : $this->lang->line('text_new');
     $this->template->setTitle(sprintf($this->lang->line('text_edit_heading'), $title));
     $this->template->setHeading(sprintf($this->lang->line('text_edit_heading'), $title));
     $this->template->setButton($this->lang->line('button_save'), array('class' => 'btn btn-primary', 'onclick' => '$(\'#edit-form\').submit();'));
     $this->template->setButton($this->lang->line('button_save_close'), array('class' => 'btn btn-default', 'onclick' => 'saveClose();'));
     $this->template->setButton($this->lang->line('button_icon_back'), array('class' => 'btn btn-default', 'href' => site_url('mail_templates')));
     $this->template->setStyleTag(assets_url('js/summernote/summernote.css'), 'summernote-css');
     $this->template->setScriptTag(assets_url('js/summernote/summernote.min.js'), 'summernote-js');
     if ($this->input->post() and $template_id = $this->_saveTemplate()) {
         if ($this->input->post('save_close') === '1') {
             redirect('mail_templates');
         }
         redirect('mail_templates/edit?id=' . $template_id);
     }
     if ($template_id === '11') {
         $this->alert->set('info', $this->lang->line('alert_caution_edit'));
     }
     $data['template_id'] = $template_id;
     $data['name'] = $template_info['name'];
     $data['status'] = $template_info['status'];
     $titles = array('registration' => $this->lang->line('text_registration'), 'registration_alert' => $this->lang->line('text_registration_alert'), 'password_reset' => $this->lang->line('text_password_reset'), 'password_reset_alert' => $this->lang->line('text_password_reset_alert'), 'order' => $this->lang->line('text_order'), 'order_alert' => $this->lang->line('text_order_alert'), 'order_update' => $this->lang->line('text_order_update'), 'reservation' => $this->lang->line('text_reservation'), 'reservation_alert' => $this->lang->line('text_reservation_alert'), 'reservation_update' => $this->lang->line('text_reservation_update'), 'internal' => $this->lang->line('text_internal'), 'contact' => $this->lang->line('text_contact'));
     $data['template_data'] = array();
     $template_data = $this->Mail_templates_model->getAllTemplateData($template_id);
     foreach ($titles as $key => $value) {
         foreach ($template_data as $tpl_data) {
             if ($key === $tpl_data['code']) {
                 $data['template_data'][] = array('template_id' => $tpl_data['template_id'], 'template_data_id' => $tpl_data['template_data_id'], 'title' => $value, 'code' => $tpl_data['code'], 'subject' => $tpl_data['subject'], 'body' => html_entity_decode($tpl_data['body']), 'date_added' => mdate('%d %M %y - %H:%i', strtotime($tpl_data['date_added'])), 'date_updated' => mdate('%d %M %y - %H:%i', strtotime($tpl_data['date_updated'])));
             }
         }
     }
     $data['templates'] = array();
     $results = $this->Mail_templates_model->getTemplates();
     foreach ($results as $result) {
         $data['templates'][] = array('template_id' => $result['template_id'], 'name' => $result['name'], 'status' => $result['status']);
     }
     $this->template->render('mail_templates_edit', $data);
 }
开发者ID:tastyigniter,项目名称:tastyigniter,代码行数:47,代码来源:Mail_templates.php

示例8: load_js

function load_js($files = null)
{
    $out = null;
    $js_url = assets_url() . "/js";
    if ($files !== null) {
        if (is_array($files)) {
            foreach ($files as $file) {
                $url = $js_url . "/" . $file;
                $out .= '<script type="text/javascript" src="' . $url . '"></script>' . "\n";
            }
        } else {
            $url = $js_url . "/" . $files;
            $out .= '<script type="text/javascript" src="' . $url . '"></script>' . "\n";
        }
    }
    return $out;
}
开发者ID:anggadjava,项目名称:payroll,代码行数:17,代码来源:ep_helper.php

示例9: index

 public function index()
 {
     $this->template->setTitle('URI Routes');
     $this->template->setHeading('URI Routes');
     $this->template->setButton($this->lang->line('button_save'), array('class' => 'btn btn-primary', 'onclick' => '$(\'#edit-form\').submit();'));
     $this->template->setScriptTag(assets_url('js/jquery-sortable.js'), 'jquery-sortable-js');
     if ($this->input->post() and $this->_updateRoute() === TRUE) {
         redirect('uri_routes');
     }
     if ($this->input->post('routes')) {
         $routes = $this->input->post('routes');
     } else {
         $routes = $this->Layouts_model->getRoutes();
     }
     $data['routes'] = array();
     foreach ($routes as $route) {
         $data['routes'][] = array('uri_route' => $route['uri_route'], 'controller' => $route['controller']);
     }
     $this->template->render('uri_routes', $data);
 }
开发者ID:tastyigniter,项目名称:tastyigniter,代码行数:20,代码来源:Uri_routes.php

示例10: index

 public function index()
 {
     $this->template->setTitle($this->lang->line('text_title'));
     $this->template->setHeading($this->lang->line('text_heading'));
     $this->template->setButton($this->lang->line('button_save'), array('class' => 'btn btn-primary', 'onclick' => '$(\'#edit-form\').submit();'));
     $this->template->setScriptTag(assets_url('js/jquery-sortable.js'), 'jquery-sortable-js');
     if ($this->input->post() and $this->_updateSecurityQuestion() === TRUE) {
         redirect('security_questions');
     }
     //load questions data into array
     $data['questions'] = array();
     if ($this->input->post('questions')) {
         $results = $this->input->post('questions');
     } else {
         $results = $this->Security_questions_model->getQuestions();
     }
     foreach ($results as $result) {
         $data['questions'][] = array('question_id' => $result['question_id'] > 0 ? $result['question_id'] : '0', 'text' => $result['text']);
     }
     $this->template->render('security_questions', $data);
 }
开发者ID:tastyigniter,项目名称:tastyigniter,代码行数:21,代码来源:Security_questions.php

示例11: index

 public function index()
 {
     $this->template->setTitle($this->lang->line('text_title'));
     $this->template->setHeading($this->lang->line('text_heading'));
     $this->template->setButton($this->lang->line('button_save'), array('class' => 'btn btn-primary', 'onclick' => '$(\'#edit-form\').submit();'));
     $this->template->setStyleTag(assets_url('js/datepicker/bootstrap-timepicker.css'), 'bootstrap-timepicker-css');
     $this->template->setScriptTag(assets_url("js/datepicker/bootstrap-timepicker.js"), 'bootstrap-timepicker-js');
     if ($this->input->post() and $this->_updateMealtimes() === TRUE) {
         redirect('mealtimes');
     }
     if ($this->input->post('mealtimes')) {
         $results = $this->input->post('mealtimes');
     } else {
         $results = $this->Mealtimes_model->getMealtimes();
     }
     $data['mealtimes'] = array();
     foreach ($results as $result) {
         $data['mealtimes'][] = array('mealtime_id' => $result['mealtime_id'] > 0 ? $result['mealtime_id'] : '0', 'mealtime_name' => $result['mealtime_name'], 'start_time' => mdate('%h:%i %A', strtotime($result['start_time'])), 'end_time' => mdate('%h:%i %A', strtotime($result['end_time'])), 'mealtime_status' => $result['mealtime_status']);
     }
     $this->template->render('mealtimes', $data);
 }
开发者ID:tastyigniter,项目名称:tastyigniter,代码行数:21,代码来源:Mealtimes.php

示例12: assets_url

                    <table id="dataTable" class="table table-bordered">
                      <thead>
                        <tr>
                          <th width="5%">NIK</th>
                          <th width="25%">Nama</th>
                          <th width="25%">Nama Pasien</th>
                          <th width="15%">Hubungan</th>
                          <th width="13%">Jenis Pemeriksaan</th>
                          <th width="12%">Rupiah</th>
                        </tr>
                      </thead>
                      <tbody>
                        <?php 
if (!empty($detail)) {
    $total = $detail[0]['rupiah'];
    $approved = assets_url('img/approved_stamp.png');
    for ($i = 0; $i < sizeof($detail); $i++) {
        ?>
                          <tr>
                            <td><?php 
        echo get_nik($detail[$i]['karyawan_id']);
        ?>
</td>
                            <td><?php 
        echo get_name($detail[$i]['karyawan_id']);
        ?>
</td>
                            <td><?php 
        echo $detail[$i]['pasien'];
        ?>
</td>
开发者ID:ocpyosep78,项目名称:hris_client,代码行数:31,代码来源:medical_mail.php

示例13: function

          "url": "report/ajax_list_detail_ovt/<?php 
echo $period . '/' . $id_emp;
?>
",
          "type": "POST"
      },
			"createdRow": function ( row, data, index ) {
        /*if (data[10].match('OFF')) {
        	$('td', row).addClass('bg_libur');
        }*/
      },
      //Set column definition initialisation properties.
      "columnDefs": [
      {
          "targets": [0], //index column
          "orderable": false, //set not orderable
      }
      ],
      /*"initComplete": function () {
        $("tr td:contains('Sun,')").each(function(){
			      $(this).parent().find('td').addClass("bg_libur");
				});
      }*/
  });
});
</script>
<script src="<?php 
echo assets_url('modules/js/' . $path_file . '.js');
?>
"></script>
开发者ID:pay-test,项目名称:ci2,代码行数:30,代码来源:overtime_detail.php

示例14: edit

 public function edit()
 {
     $menu_info = $this->Menus_model->getMenu((int) $this->input->get('id'));
     if ($menu_info) {
         $menu_id = $this->input->get('id');
         $data['_action'] = site_url('menus/edit?id=' . $menu_id);
     } else {
         $menu_id = 0;
         $data['_action'] = site_url('menus/edit');
     }
     $title = isset($menu_info['menu_name']) ? $menu_info['menu_name'] : $this->lang->line('text_new');
     $this->template->setTitle(sprintf($this->lang->line('text_edit_heading'), $title));
     $this->template->setHeading(sprintf($this->lang->line('text_edit_heading'), $title));
     $this->template->setButton($this->lang->line('button_save'), array('class' => 'btn btn-primary', 'onclick' => '$(\'#edit-form\').submit();'));
     $this->template->setButton($this->lang->line('button_save_close'), array('class' => 'btn btn-default', 'onclick' => 'saveClose();'));
     $this->template->setButton($this->lang->line('button_icon_back'), array('class' => 'btn btn-default', 'href' => site_url('menus')));
     $this->template->setStyleTag(assets_url('js/datepicker/datepicker.css'), 'datepicker-css');
     $this->template->setScriptTag(assets_url("js/datepicker/bootstrap-datepicker.js"), 'bootstrap-datepicker-js');
     if ($this->input->post() and $menu_id = $this->_saveMenu()) {
         if ($this->input->post('save_close') === '1') {
             redirect('menus');
         }
         redirect('menus/edit?id=' . $menu_id);
     }
     $this->load->model('Image_tool_model');
     if ($this->input->post('menu_photo')) {
         $data['menu_image'] = $this->input->post('menu_photo');
         $data['image_name'] = basename($this->input->post('menu_photo'));
         $data['menu_image_url'] = $this->Image_tool_model->resize($this->input->post('menu_photo'));
     } else {
         if (!empty($menu_info['menu_photo'])) {
             $data['menu_image'] = $menu_info['menu_photo'];
             $data['image_name'] = basename($menu_info['menu_photo']);
             $data['menu_image_url'] = $this->Image_tool_model->resize($menu_info['menu_photo']);
         } else {
             $data['menu_image'] = '';
             $data['image_name'] = '';
             $data['menu_image_url'] = $this->Image_tool_model->resize('data/no_photo.png');
         }
     }
     $data['menu_id'] = $menu_info['menu_id'];
     $data['menu_name'] = $menu_info['menu_name'];
     $data['menu_description'] = $menu_info['menu_description'];
     $data['menu_price'] = $menu_info['menu_price'];
     $data['menu_category'] = $menu_info['category_id'];
     $data['stock_qty'] = $menu_info['stock_qty'];
     $data['minimum_qty'] = isset($menu_info['minimum_qty']) ? $menu_info['minimum_qty'] : '1';
     $data['subtract_stock'] = $menu_info['subtract_stock'];
     $data['special_id'] = $menu_info['special_id'];
     $data['start_date'] = (isset($menu_info['start_date']) and $menu_info['start_date'] !== '0000-00-00') ? mdate('%d-%m-%Y', strtotime($menu_info['start_date'])) : '';
     $data['end_date'] = (isset($menu_info['end_date']) and $menu_info['end_date'] !== '0000-00-00') ? mdate('%d-%m-%Y', strtotime($menu_info['end_date'])) : '';
     $data['special_price'] = (isset($menu_info['special_price']) and $menu_info['special_price'] == '0.00') ? '' : $menu_info['special_price'];
     $data['special_status'] = $this->input->post('special_status') ? $this->input->post('special_status') : $menu_info['special_status'];
     $data['menu_status'] = isset($menu_info['menu_status']) ? $menu_info['menu_status'] : '1';
     $data['mealtime_id'] = $menu_info['mealtime_id'];
     $data['menu_priority'] = $menu_info['menu_priority'];
     $data['no_photo'] = $this->Image_tool_model->resize('data/no_photo.png');
     $data['categories'] = array();
     $results = $this->Categories_model->getCategories();
     foreach ($results as $result) {
         $data['categories'][] = array('category_id' => $result['category_id'], 'category_name' => $result['name']);
     }
     $data['mealtimes'] = array();
     $results = $this->Mealtimes_model->getMealtimes();
     foreach ($results as $result) {
         $start_time = mdate('%H:%i', strtotime($result['start_time']));
         $end_time = mdate('%H:%i', strtotime($result['end_time']));
         $data['mealtimes'][] = array('mealtime_id' => $result['mealtime_id'], 'mealtime_name' => $result['mealtime_name'], 'label' => "({$start_time} - {$end_time})");
     }
     if ($this->input->post('menu_options')) {
         $menu_options = $this->input->post('menu_options');
     } else {
         $menu_options = $this->Menu_options_model->getMenuOptions($menu_id);
     }
     $data['menu_options'] = array();
     foreach ($menu_options as $option) {
         $option_values = array();
         foreach ($option['option_values'] as $value) {
             $option_values[] = array('menu_option_value_id' => $value['menu_option_value_id'], 'option_value_id' => $value['option_value_id'], 'price' => (empty($value['new_price']) or $value['new_price'] == '0.00') ? '' : $value['new_price'], 'quantity' => $value['quantity'], 'subtract_stock' => $value['subtract_stock']);
         }
         $data['menu_options'][] = array('menu_option_id' => $option['menu_option_id'], 'option_id' => $option['option_id'], 'option_name' => $option['option_name'], 'display_type' => $option['display_type'], 'required' => $option['required'], 'default_value_id' => isset($option['default_value_id']) ? $option['default_value_id'] : 0, 'priority' => $option['priority'], 'option_values' => $option_values);
     }
     $data['option_values'] = array();
     foreach ($menu_options as $option) {
         if (!isset($data['option_values'][$option['option_id']])) {
             $data['option_values'][$option['option_id']] = $this->Menu_options_model->getOptionValues($option['option_id']);
         }
     }
     $this->template->render('menus_edit', $data);
 }
开发者ID:tastyigniter,项目名称:tastyigniter,代码行数:90,代码来源:Menus.php

示例15: assets_url

                                        <tr>
                                                       
                                                        <th>faktur</th>
                                                        <th>id_st</th>
                                                        <th>id_barang</th>
                                                        <th>jumlah</th>
                                                        <th>id_satuan</th>
                                                        <th>harga_jual</th>
                                                        <th>diskon1</th>
                                                        <th>diskon2</th>
                                                        <th>diskon3</th>
                                                        <th>keterangan</th>
                                                        <th>id_user</th>
                                                        <th>datetime</th>
                                                        <th>Aksi</th>

                                                    </tr>
                                    </thead>

                                    <tbody class="table-bordered">
                                        <tr>
                                            <td colspan="13" class="text-center dataTables_empty"><img src="<?php 
echo assets_url('images/loader.gif');
?>
" title="Loading" alt="Loading">&nbsp;&nbsp; Loading data, please wait....</td>
                                            
                                        </tr>
                                        
                                    </tbody>
                                </table>
                            </div>
开发者ID:roniwahyu,项目名称:Sistem-Informasi-Peternakan,代码行数:31,代码来源:sales_trx_detail_data.php


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