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);
 }
    /**
     * 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);
    }
Exemple #3
0
 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);
 }
    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);
    }
 function images_url($file = NULL)
 {
     $url = '';
     $ci =& get_instance();
     $url .= assets_url() . $ci->config->item('images_path');
     if (isset($file)) {
         $url .= $file;
     }
     return $url;
 }
Exemple #6
0
 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);
 }
 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);
 }
Exemple #8
0
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;
}
 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);
 }
 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);
 }
 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);
 }
                    <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>
Exemple #13
0
          "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>
Exemple #14
0
 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);
 }
                                        <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>
Exemple #16
0
											<?php 
    echo form_hidden("jumlah_po[{$c}]", isset($part) ? $carisisa['sisa'] : $daftar['jumlah']);
    ?>
										<tr>
											<th width="5%"><?php 
    echo $c;
    ?>
 </th>
											<th width="10%"> <?php 
    echo GetValue('kode', 'barang', array('id' => 'where/' . $daftar['barang_id']));
    ?>
 </th>
											<th>
												<?php 
    $img = getValue('photo', 'barang', array('id' => 'where/' . $daftar['barang_id']));
    $src = !empty($img) ? base_url("uploads/barang/" . $daftar['barang_id'] . "/" . $img) : assets_url('assets/images/no-image-mid.png');
    ?>
					                        	<img height="75px" width="75px" src="<?php 
    echo $src;
    ?>
">
											</th>
											<th width="20%"> <textarea><?php 
    echo GetValue('title', 'barang', array('id' => 'where/' . $daftar['barang_id']));
    ?>
</textarea></th>
											<th width="20%"> <textarea><?php 
    echo $daftar['deskripsi'];
    ?>
</textarea></th>
											<th width="20%"> <textarea><?php 
<div class="container main"> <!-- content start -->
	<div class="col-xs-4">
    	<div class="profile">
        	<img src="<?php 
echo assets_url();
?>
profiles/profile-default.png" class="img-thumbnail img-responsive">
        </div>
    </div>
    <div class="col-xs-8">
    	<div class="page-header">
          <h1>Search room result</h1>
        </div>
        <div>
        	<p>These are the rooms available based on your request.</p>
            <div class="col-xs-10 well">
                <?php 
foreach ($query->result() as $row) {
    echo "<a href=" . base_url() . "index.php/dorm/room/" . $row->ROOM_ID . " class='list-group-item'>" . $row->BLG_NAME . " Room " . $row->ROOM_NO;
    if ($row->GENDER == 'M') {
        echo " Male Only";
    } else {
        echo " Female Only";
    }
    echo "<span class='badge'>" . $row->POPULATION . "/" . $row->CAP . "</span>";
    echo "</a>";
}
echo "<div class='row text-center'>";
echo $pagination;
echo "</div>";
?>
Exemple #18
0
<div class="page-container row-fluid">
      <!-- BEGIN SIDEBAR -->
      <!-- BEGIN MENU -->
      <div class="page-sidebar" id="main-menu">
        <div class="page-sidebar-wrapper scrollbar-dynamic" id="main-menu-wrapper">
          <!-- BEGIN MINI-PROFILE -->
          <div class="user-info-wrapper">
            <div class="profile-wrapper">
              <img src="<?php 
echo assets_url('assets/img/profiles/avatar.jpg');
?>
" alt="" data-src="<?php 
echo assets_url('assets/img/profiles/avatar.jpg');
?>
" data-src-retina="<?php 
echo assets_url('assets/img/profiles/avatar2x.jpg');
?>
" width="69" height="69" />
            </div>
            <div class="user-info">
              <div class="greeting">Welcome</div>
              <?php 
?>
              <div class="username"><?php 
echo $person_nm;
?>
<span class="semi-bold"></span></div>
              <div class="status">Status
                <a href="#">
                  <div class="status-icon green"></div>Online</a>
              </div>
Exemple #19
0
                    </p>
                  </div>
                  <!--PST242, PST263, PST2, PST129-->
                </div>
              </div> 

              <?php 
        if (!empty($row->user_app_lv3)) {
            ?>
              <div class="col-md-12 text-xenter">
                <div class="col-md-12 text-center">
                  <p class="wf-approve-sp">
                  <div class="col-md-12"><span class="semi-bold">Mengetahui / Menyetujui,</span><br/><br/></div>
                    <?php 
            $approved = assets_url('img/approved_stamp.png');
            $rejected = assets_url('img/rejected_stamp.png');
            if (!empty($row->user_app_lv3) && $row->is_app_lv3 == 0 && get_nik($sess_id) == $row->user_app_lv3) {
                ?>
                      <div class="btn btn-success btn-cons" id="" type="" data-toggle="modal" data-target="#submitpromosiModalLv3"><i class="icon-ok"></i>Submit</div>
                      <span class="small"></span>
                      <span class="semi-bold"></span><br/>
                      <span class="small"></span><br/>
                      <span class="semi-bold"></span><br/>
                      <span class="semi-bold">(<?php 
                echo get_user_position($row->user_app_lv3);
                ?>
)</span>
                    <?php 
            } elseif (!empty($row->user_app_lv3) && $row->is_app_lv3 == 1) {
                echo $row->app_status_id_lv3 == 1 ? "<img class=approval-img-al src={$approved}>" : ($row->app_status_id_lv3 == 2 ? "<img class=approval-img-al src={$rejected}>" : '<span class="small"></span><br/>');
                ?>
Exemple #20
0
			<thead>
				<tr>
					<td>Domain</td>
					<td>Renewal Date</td>
					<td>Actions</td>
				</tr>
			</thead>
			<tbody>
				<?php foreach ($domains as $domain=>$data) : ?>
				<tr>
					<td><?=$domain?></td>
					<td>
						<?php if (element('expiredate', $data)): ?>
						<?=date_user(strtotime(element('expiredate', $data)),false,null)?>
							<?php if (element('auto_renew', $data)): ?>
							<img src="<?=assets_url('images/global/icons/refresh_14.png')?>"/>
							<?php endif; ?>
						<?php endif; ?>
					</td>
					<td class="justr">
						<?php if ($data) : ?>
						<a href="<?=site_url('products/domain_names/domain/'.$domain)?>" class="button">View Registration</a>
						<?php else: ?>
						<a href="<?=site_url('products/domain_names/register/'.$domain)?>" class="button green">Transfer Domain</a>
						<?php endif; ?>
					</td>
				</tr>
				<?php endforeach; ?>
			</tbody>
		</table>
	</div>
Exemple #21
0
">
			</label>
		</div>
	</td>
	<td><?php 
echo $id;
?>
</td>
	<?php 
$src = !empty($ol->photo) ? assets_url("gsm/uploads/barang/{$ol->barang_id}/{$ol->photo}") : assets_url('assets/images/no-image-mid.png');
?>
	<td><div id="ss"><img width="100px" width="100px" id="photo<?php 
echo $id;
?>
" src="<?php 
echo assets_url('assets/images/no-image-mid.png');
?>
" /></div></td>
	<td>
		<select name='barang_id[]' class='select2' id="barang_id<?php 
echo $id;
?>
" style='width:100%'>
			<option value="0">-- Pilih Barang --</option>
			<?php 
foreach ($barang as $value => $b) {
    ?>
			<option value='<?php 
    echo $b['id'];
    ?>
'><?php 
Exemple #22
0
      "processing": true, //Feature control the processing indicator.
      "serverSide": true, //Feature control DataTables' server-side processing mode.
      "scrollX" : true,
      "paging" : false,
      // Load data for the table's content from an Ajax source
      "ajax": {
          "url": $("#base_url").val()+"attendance_form/ajax_list_cuti/<?php 
echo $start_date . '~' . $end_date;
?>
",
          "type": "POST"
      },
      /*"createdRow": function ( row, data, index ) {
        if (data[4].match('Waiting')) {
        	$('td', row).addClass('bg_waiting');
        }
      },*/
      //Set column definition initialisation properties.
      "columnDefs": [
      {
          "targets": [0,4,5], //index column
          "orderable": false, //set not orderable
      },
      ],
  });
});
</script>
<script src="<?php 
echo assets_url('modules/js/attendance_form.js');
?>
"></script>
Exemple #23
0
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php 
echo isset($data['title']) ? $data['title'] : "News Portal";
?>
</title>

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">

    <!-- Google Fonts -->
    <link href='http://fonts.googleapis.com/css?family=Josefin+Slab:400,700|Dancing+Script|Open+Sans:400,300italic,300,400italic' rel='stylesheet' type='text/css'>

    <link rel="stylesheet" href="<?php 
echo assets_url('css/style.css');
?>
" type="text/css" />

    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<div class="wrapper">
    <header class="container header-wrapper">
        <div class="row">
            <div class="col-md-12">
                <nav class="navbar navbar-default navbar-fixed-top">
                    <div class="container">
Exemple #24
0
							<button type="submit" id="btnSubmit" class="btn btn-lg btn-primary hidden-print pull-right" style="display:none;margin-right:15px;">
								Submit Order <i class="fa fa-check"></i>
							</button>
						</div>
					</div>
				</div>
			-->
			</div>
		</div>
	</div>
</div>
</form>
<!-- end: INVOICE -->
<!--
<script type="text/javascript" src="<?php 
echo assets_url('vendor/jquery/jquery.min.js');
?>
"></script>
<script type="text/javascript">
	function addRow(tableID){
	var table=document.getElementById(tableID);
	var rowCount=table.rows.length;
	var row=table.insertRow(rowCount);

	var cell1=row.insertCell(0);
	var element1=document.createElement("input");
	element1.type="checkbox";
	element1.name="chkbox[]";
	element1.className="checkbox1";
	cell1.appendChild(element1);
	var x = 1;
Exemple #25
0
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h3 class="modal-title">Import Data Barang</h3>
            </div>
            <?php 
echo form_open_multipart(base_url() . 'master/barang/upload_excel', array('id' => 'form_upload', 'class' => 'form-horizontal'));
?>
            <div class="modal-body form">
                <div class="form-body">
                <div class="row form-row">
                    <div class="col-md-12 pull-right" style="margin: 10px 0px 20px 0px;" ><i class="fa fa-warning-sign" style="color:red ;text-shadow: 1px 1px 1px #ccc;font-size: 1em;"> Pastikan file berformat XLS/XLSX dan format tabel sesuai dengan template yang sudah disediakan.</i>
                    </div>
                </div>
                <div class="row form-row">
                    <div class="col-md-12 pull-right" style="margin: 10px 0px 20px 0px;" ><i class="fa fa-warning-sign" style="font-size: 1em;"> <a href="<?php 
echo assets_url('template_upload_barang.xlsx');
?>
">Download Template Upload Barang</i></a>
                    </div>
                </div>
                <div class="row form-row">
                    <div class="col-md-12">
                        <div class="col-md-3 pull-left"><b>Upload File</b></div>
                        <div class="col-md-9">
                            <input name="userfile" multiple="" type="file">
                            <span class="help-block"></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
Exemple #26
0
?>
<link href="<?php 
echo assets_url('css/coupon.css');
?>
" rel="stylesheet" type="text/css" />

</head>

<body>
<?php 
$this->load->view('include/header.php');
?>
<div class="container">
	<div class="coupon-wrapper">
		<h1><img src="<?php 
echo assets_url('images/coupon/title.jpg');
?>
" alt="昂立日语报名优惠券"></h1>
		<div class="message">
			<?php 
echo $msg;
?>
		</div>		
	</div>


	
</div>
<div class="container">
	<hr></hr>
</div>
Exemple #27
0
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Pendataan Sekolah</title>
	<!-- Bootstrap Styles-->
    <link href="<?php 
assets_url('css/bootstrap.css');
?>
" rel="stylesheet" />
     <!-- FontAwesome Styles-->
    <link href="<?php 
assets_url('css/font-awesome.css');
?>
" rel="stylesheet" />
        <!-- Custom Styles-->
    <link href="<?php 
assets_url('css/custom-styles.css');
?>
" rel="stylesheet" />
     <!-- Google Fonts-->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />

    <link href="<?php 
assets_url('js/dataTables/dataTables.bootstrap.css');
?>
" rel="stylesheet" />
</head>
<body>
Exemple #28
0
	</div>
</section>
<!-- end: PAGE TITLE -->
<!-- start: INVOICE -->
<div class="container-fluid container-fullw bg-white">
<form role="form" action="<?php 
echo base_url('sales/retur/add');
?>
" method="post" class="form-horizontal" id="form-po">
	<div class="row">
		<div class="col-md-12">
			<div class="invoice">
				<div class="row invoice-logo">
					<div class="col-sm-6">
						<img alt="" src="<?php 
echo assets_url('images/your-logo-here.png');
?>
">
					</div>
					<div class="col-sm-6">
						<p class="text-dark">
							#<?php 
echo $last_id . '/PO-I/GSM/I/' . date('Y');
?>
<small class="text-light"></small>
						</p>
					</div>
				</div>
				<div class="row form-row">
					<div class="col-md-6">
						<div class="col-md-5">
Exemple #29
-1
 public function testAssetsUrl()
 {
     $url = assets_url('Towel', 'js/towel.js');
     $this->assertEquals($url, '/assets?application=Towel&path=js/towel.js');
     $url = assets_url('Towel', 'css/towel.css');
     $this->assertEquals($url, '/assets?application=Towel&path=css/towel.css');
 }
Exemple #30
-1
 function get($realm = FALSE)
 {
     $js = null;
     $css = null;
     foreach ($this->headers as $line) {
         if ($line['type'] == 'js') {
             $js .= '<script type="text/javascript" src="' . assets_url('js/' . $line['path'] . '.js') . '"></script>' . "\n";
         } elseif ($line['type'] == 'css') {
             $css .= '<link rel="stylesheet" type="text/css" href="' . assets_url('styles/' . $line['path'] . '.css') . '"/>' . "\n";
         }
     }
     if ($realm == FALSE || $realm == 'css') {
         echo "<!-- BEGIN CSS -->\n";
         echo $css;
         echo "<!-- END CSS -->\n";
     }
     if ($realm == FALSE || $realm == 'js') {
         echo "<!-- BEGIN JS -->\n";
         echo $js;
         if ($this->scriptsource) {
             echo "\n" . '<script type="text/javascript">' . "\n";
             echo $this->scriptsource;
             echo '</script>' . "\n";
         }
         echo "<!-- END JS -->\n";
     }
 }