Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /var/www/blue-sky.co.id/public_html/application/views/admin/hotel_configuration/ |
Upload File : |
<div class="row"> <div class="col-sm-12"> <p><a href="<?= base_url('admin/hotels/landing_page/' . $this->session->userdata('hotel_id')); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Kembali ke Konfigurasi</a></p><br> <h2>Edit Konfigurasi Hotel</h2> <p style="text-transform:uppercase;"><?= $this->session->userdata('hotel_name'); ?></p> <?= $this->session->flashdata('success'); //to display success message ?> <?= $this->session->flashdata('result'); //to display result message ?> <!--Upload Image error message--> <?php //error display for image if(isset($error)) { echo $error; } ?> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <?php echo validation_errors(); ?> <?= form_open_multipart(); ?> <div class="row"> <div class="col-sm-12" style="text-align:right;"> <?= form_submit('submit', 'Update', 'class="btn btn-primary btn-success"'); ?> <?= anchor('admin/hotels/landing_page/' . $this->session->userdata('hotel_id'), 'Batal'); ?> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Top Menu Position from left (pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'top_menu_position', 'value' => $hotel_configuration->top_menu_position, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('top_menu_position'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-12"> <h4>Pengaturan Dasar</h4> </div> </div> <div class="row"> <div class="col-sm-3"> <p>Nama Hotel <sup>*</sup> <i class="fa fa-question-circle" data-toggle="tooltip" title="Nama Toko muncul di website (bila tidak ada logo), dan email"></i></p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'website_name', 'value' => $hotel_configuration->website_name, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('website_name'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>E-mail Hotel <sup>*</sup> <i class="fa fa-question-circle" data-toggle="tooltip" title="Email untuk notifikasi status order ke pelanggan"></i></p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'from_email', 'value' => $hotel_configuration->from_email, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('from_email'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Alamat Hotel <sup>*</sup> <i class="fa fa-question-circle" data-toggle="tooltip" title="Nomor HP ini akan digunakan untuk chat Whatsapp toko"></i></p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'alamat', 'value' => $hotel_configuration->alamat, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('alamat'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Telepon <sup>*</sup></p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'phone', 'value' => $hotel_configuration->phone, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('phone'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Judul Browser Website SEO <i class="fa fa-question-circle" data-toggle="tooltip" title="Isi untuk kebutuhan SEO, akan muncul di judul tab browsere"></i></p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'browser_title', 'value' => $hotel_configuration->browser_title, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('browser_title'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Deskripsi meta SEO <i class="fa fa-question-circle" data-toggle="tooltip" title="Isi untuk kebutuhan SEO, akan muncul di meta description website"></i></p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'meta_description', 'value' => $hotel_configuration->meta_description, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('meta_description'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Booking Engine Script <sup>*</sup> <i class="fa fa-question-circle" data-toggle="tooltip" title="Ini untuk booking"></i></p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'booking_engine_script', 'value' => $hotel_configuration->booking_engine_script, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('booking_engine_script'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Maps</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'text_form1', 'value' => $hotel_configuration->text_form1, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('text_form1'); ?> </p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Logo Website <i class="fa fa-question-circle" data-toggle="tooltip" title="Bila logo kosong, diganti dengan nama website"></i><br> <?php if (!empty($hotel_configuration->logo)) : ?> <img style="height:auto;" src="<?= base_url() . 'uploads/' . $hotel_configuration->logo; ?>" alt="" /> <!-- <i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/hotel_configuration/delete_logo/' . $hotel_configuration->logo; ?>">Hapus</a> --> <?php endif; ?> </p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p><input type="file" name="logo" size="20" class="btn btn-default btn-file form-control" /> <?php //get max logo width and height from hotel_configuration table $this->db->select('logo_image_width, logo_image_height')->from('hotel_configuration')->where('id_hotel_configuration', 1); $image_dimension = $this->db->get()->row(); ?> <span style="font-size:12px; font-style: italic;">Ukuran gambar disarankan <?= $image_dimension->logo_image_width;?> lebar piksel. <?= $image_dimension->logo_image_height;?> tinggi piksel, jpg / png, maks 200KB</span> <span style="color:#F7931E;"><?php echo form_error('logo'); ?></span> <?php echo $this->session->flashdata('error'); //to display error message ?> </p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display:none;"> <div class="col-sm-3"> <p>Ikon Browser <i class="fa fa-question-circle" data-toggle="tooltip" title="Icon favicon yang muncul di tab browser website"></i><br> (Untuk favicon, bookmark & home icon) <?php if (!empty($hotel_configuration->website_icon)) : ?> <img style="width:30px; height:auto;" src="<?= base_url() . 'uploads/' . $hotel_configuration->website_icon; ?>" alt="" /> <i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/hotel_configuration/delete_website_icon/' . $hotel_configuration->website_icon; ?>">Hapus</a> <?php endif; ?> </p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p><input type="file" name="website_icon" size="20" class="btn btn-default btn-file form-control" /> <span style="font-size:12px; font-style: italic;">Ukuran gambar harus memiliki lebar 200 piksel. Tinggi 200 piksel, jpg / png, maks 50KB</span> <span style="color:#F7931E;"><?php echo form_error('website_icon'); ?></span> <?php echo $this->session->flashdata('error2'); //to display error message ?> </p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div style="display: none;"> <div class="row"> <div class="col-sm-3"> <p>Warna Tema <i class="fa fa-question-circle" data-toggle="tooltip" title="Warna tema untuk tombol, link dan blok"></i></p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div id="cp2" class="input-group colorpicker-component"> <input name="primary_color_theme" type="text" value="<?= $hotel_configuration->primary_color_theme; ?>" class="form-control" /> <span class="input-group-addon"><i style="border:1px solid black;"></i> (klik ikon untuk memilih warna)</span> </div> <script> $(function() { $('#cp2').colorpicker({ format: 'hex' }); }); </script> <?= form_error('color_code'); ?> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Gambar Placeholder produk <i class="fa fa-question-circle" data-toggle="tooltip" title="produk yang belum memiliki foto akan diganti dengan foto ini"></i> <?php if (!empty($hotel_configuration->image_not_available)) : ?> <img style="width:100px; height:auto;" src="<?= base_url() . 'uploads/' . $hotel_configuration->image_not_available; ?>" alt="" /> <i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/hotel_configuration/delete_image_not_available/' . $hotel_configuration->image_not_available; ?>">Hapus</a> <?php endif; ?> </p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p><input type="file" name="image_not_available" size="20" class="btn btn-default btn-file form-control" /> <span style="font-size:12px; font-style: italic;">Ukuran gambar disarankan lebar 800 pixel. Maks tinggi 800 pixel, jpg/png/gif, maks 200KB</span> <span style="color:#F7931E;"><?php echo form_error('image_not_available'); ?></span> <?php echo $this->session->flashdata('image_not_available'); //to display error message ?> </p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> <div class="row" style="display:none;"> <div class="col-sm-3"> <p>Bahasa Default <i class="fa fa-question-circle" data-toggle="tooltip" title="Bahasa yang aktif pertama kali pelanggan mengunjungi website Anda"></i></p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <select name="website_default_language" class="form-control"> <option value="indonesian" <?php if ($hotel_configuration->website_default_language == 'indonesian') : ?> selected="selected" <?php endif; ?> >Indonesia</option> <option value="english" <?php if ($hotel_configuration->website_default_language == 'english') : ?> selected="selected" <?php endif; ?> >Inggris</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display:none;"> <div class="col-sm-3"> <p>Website Aktif ?</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <select name="website_active" class="form-control"> <option value="yes" <?php if ($hotel_configuration->website_active == 'yes') : ?> selected="selected" <?php endif; ?> >Iya</option> <option value="no" <?php if ($hotel_configuration->website_active == 'no') : ?> selected="selected" <?php endif; ?> >Tidak</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display:none;"> <div class="col-sm-3"> <p>IP untuk maintenance<br>(dipisahkan dengan koma) <i class="fa fa-question-circle" data-toggle="tooltip" title="Hanya IP terdaftar yang dapat mengakses website saat maintenance, isi IP Anda di kotak ini"></i><br>. Periksa IP Anda <a style="font-size:bold; color: #c04e35 !important" target="_blank" href="http://www.whatsmyip.org/">Disini</a></p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'website_ip', 'value' => $hotel_configuration->website_ip, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('website_ip'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display:none;"> <div class="col-sm-3"> <p>Text untuk Maintenance Mode <i class="fa fa-question-circle" data-toggle="tooltip" title="Text yang muncul di website saat sedang maintenance mode. Bila kosong, digantikan dengan text default"></i></p> </div> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'maintenance_text', 'value' => $hotel_configuration->maintenance_text, 'class' => 'form-control' ); echo form_textarea($data); ?> <?= form_error('maintenance_text'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-12"> <h4>Lokasi Gudang (untuk menghitung pengiriman)</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Provinsi</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <select id="province" name="province" class="input-xlarge form-control"> <span id="loadingSpinner"><img style="width:30px; height:auto;" src="<?= base_url('uploads/spinner.gif'); ?>"></span> <option value="">Pilih Provinsi...</option> <?php foreach($provinces['rajaongkir']['results'] as $province) : ?> <option value="<?= $province['province_id']; ?>" <?php if ($province['province_id'] == $hotel_configuration->shop_province_id): ?> selected <?php endif ?> ><?= ucwords($province['province']); ?></option> <?php endforeach; ?> </select> <?php echo '<span style="font-size:10px;">' . form_error('province') . '</span>'; ?> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Kota/Kabupaten</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <select id="district" name="district" class="input-xlarge form-control"> <span id="loadingSpinner2"><img style="width:30px; height:auto;" src="<?= base_url('uploads/spinner.gif'); ?>"></span> <?php if (isset($districts)) : ?> <?php foreach($districts['rajaongkir']['results'] as $district) : ?> <option value="<?= $district['city_id']; ?>" <?php if ($district['city_id'] == $hotel_configuration->shop_district_id) : ?> selected <?php endif; ?> ><?= ucwords($district['city_name']); ?></option> <?php endforeach; ?> <?php endif; ?> </select> <?php echo '<span style="font-size:10px;">' . form_error('district') . '</span>'; ?> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Kecamatan</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <select id="subdistrict" name="subdistrict" class="input-xlarge form-control"> <?php if (isset($subdistricts)) : ?> <?php foreach($subdistricts['rajaongkir']['results'] as $subdistrict) : ?> <option value="<?= $subdistrict['subdistrict_id']; ?>" <?php if ($subdistrict['subdistrict_id'] == $hotel_configuration->shop_subdistrict_id) : ?> selected <?php endif; ?> ><?= ucwords($subdistrict['subdistrict_name']); ?></option> <?php endforeach; ?> <?php endif; ?> </select> <?php echo '<span style="font-size:10px;">' . form_error('subdistrict') . '</span>'; ?> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Pilih Kurir</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <select name="default carrier" class="form-control"> <option value="jne|JNE REGULAR" <?php if ($hotel_configuration->default_carrier == 'jne|JNE REGULAR') : ?> selected="selected" <?php endif; ?> >JNE REGULAR</option> <option value="tiki|TIKI REGULAR" <?php if ($hotel_configuration->default_carrier == 'tiki|TIKI REGULAR') : ?> selected="selected" <?php endif; ?> >TIKI REGULAR</option> <option value="tiki|TIKI REGULAR" <?php if ($hotel_configuration->default_carrier == 'pos|POS KILAT KHUSUS') : ?> selected="selected" <?php endif; ?> >POS KILAT KHUSUS</option> <option value="rpx|RPX REGULAR" <?php if ($hotel_configuration->default_carrier == 'rpx|RPX REGULAR') : ?> selected="selected" <?php endif; ?> >RPX REGULAR</option> <option value="rpx|RPX REGULAR" <?php if ($hotel_configuration->default_carrier == 'sicepat|SICEPAT REGULAR') : ?> selected="selected" <?php endif; ?> >SICEPAT REGULAR</option> <option value="jnt|J&T EXPRESS" <?php if ($hotel_configuration->default_carrier == 'jnt|J&T EXPRESS') : ?> selected="selected" <?php endif; ?> >J&T EXPRESS</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-12"> <h4>Pilih Kurir Aktif untuk Domestik<br> <span style="font-size: 15px;">Pengiriman ke Internasional akan menggunakan TIKI Internasional</span></h4> </div><!-- end class="col-sm-12" --> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'jne_reg', 'value' => 1, /* 'id' => 'newsletter', */ /* 'style' => 'margin:10px' */ ); if($hotel_configuration->jne_reg == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> <img src="<?= base_url('assets/frontend/img/jneregular.jpg'); ?>"><br>JNE REGULAR </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'jne_yes', 'value' => 1, /* 'id' => 'newsletter', */ /* 'style' => 'margin:10px' */ ); if($hotel_configuration->jne_yes == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> <img src="<?= base_url('assets/frontend/img/jneyes.jpg'); ?>"><br>JNE YES </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'jne_oke', 'value' => 1, /* 'id' => 'newsletter', */ /* 'style' => 'margin:10px' */ ); if($hotel_configuration->jne_oke == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> <img src="<?= base_url('assets/frontend/img/jneoke.jpg'); ?>"><br>JNE OKE </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'tiki_reg', 'value' => 1, /* 'id' => 'newsletter', */ /* 'style' => 'margin:10px' */ ); if($hotel_configuration->tiki_reg == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> <img src="<?= base_url('assets/frontend/img/tikiregular.jpg'); ?>"><br>TIKI REGULAR </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'tiki_ons', 'value' => 1, /* 'id' => 'newsletter', */ /* 'checked' => TRUE, */ /* 'style' => 'margin:10px' */ ); if($hotel_configuration->tiki_ons == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> <img src="<?= base_url('assets/frontend/img/tikions.jpg'); ?>"><br>TIKI ONS </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'tiki_eco', 'value' => 1, /* 'id' => 'newsletter', */ /* 'style' => 'margin:10px' */ ); if($hotel_configuration->tiki_eco == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> <img src="<?= base_url('assets/frontend/img/tikieco.jpg'); ?>"><br>TIKI ECONOMY </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'pos_regular', 'value' => 1, /* 'id' => 'newsletter', */ /* 'style' => 'margin:10px' */ ); if($hotel_configuration->pos_regular == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> <img src="<?= base_url('assets/frontend/img/pos.jpg'); ?>"><br>POS REGULAR </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'pos_express', 'value' => 1, /* 'id' => 'newsletter', */ /* 'style' => 'margin:10px' */ ); if($hotel_configuration->pos_express == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> <img src="<?= base_url('assets/frontend/img/pos.jpg'); ?>"><br>POS EXPRESS NEXTDAY </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'rpx_regular', 'value' => 1, /* 'id' => 'newsletter', */ /* 'style' => 'margin:10px' */ ); if($hotel_configuration->rpx_regular == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> <img src="<?= base_url('assets/frontend/img/rpx.jpg'); ?>"><br>RPX REGULAR </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'rpx_retail', 'value' => 1, /* 'id' => 'newsletter', */ /* 'style' => 'margin:10px' */ ); if($hotel_configuration->rpx_retail == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> <img src="<?= base_url('assets/frontend/img/rpx.jpg'); ?>"><br>RPX RETAIL </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'shop_delivery', 'value' => 1 ); if($hotel_configuration->shop_delivery == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> <img src="<?= base_url('assets/frontend/img/shopdelivery.jpg'); ?>"><br>SHOP DELIVERY </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'gosend', 'value' => 1 ); if($hotel_configuration->gosend == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> <img src="<?= base_url('assets/frontend/img/gosend.jpg'); ?>"><br>GO-SEND </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'sicepat_reg', 'value' => 1 ); if($hotel_configuration->sicepat_reg == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> <img style="width:120px;" src="<?= base_url('assets/frontend/img/sicepat.png'); ?>"><br>SICEPAT REGULAR </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'sicepat_best', 'value' => 1 ); if($hotel_configuration->sicepat_best == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> <img style="width:120px;" src="<?= base_url('assets/frontend/img/sicepat.png'); ?>"><br>SICEPAT BEST </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'sicepat_priority', 'value' => 1 ); if($hotel_configuration->sicepat_priority == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> <img style="width:120px;" src="<?= base_url('assets/frontend/img/sicepat.png'); ?>"><br>SICEPAT PRIORITY </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'jnt_express', 'value' => 1, /* 'id' => 'newsletter', */ /* 'style' => 'margin:10px' */ ); if($hotel_configuration->jnt_express == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> <img src="<?= base_url('assets/frontend/img/jnt.jpg'); ?>"><br>J&T EXPRESS </div> </div> <!-- end row --> <div style="display: none;"> <div class="row"> <div class="col-sm-12"> <h4>Pengaturan Modul <i class="fa fa-question-circle" data-toggle="tooltip" title="Modul di website yang dapat di on / offkan dapat diatur disini"></i></h4> </div> </div> <?php foreach ($modules as $module) : ?> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Home Slideshow</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="home_slideshow" class="form-control"> <option value="no" <?php if ($module->home_slideshow == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->home_slideshow == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Home Promo Banners</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="static_banner" class="form-control"> <option value="no" <?php if ($module->static_banner == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->static_banner == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Home New Arrival</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="new_arrival" class="form-control"> <option value="no" <?php if ($module->new_arrival == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->new_arrival == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Home Best Seller</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="best_seller" class="form-control"> <option value="no" <?php if ($module->best_seller == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->best_seller == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> </div> <!-- end row modul --> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Home Custom Info</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="custom_info" class="form-control"> <option value="no" <?php if ($module->custom_info == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->custom_info == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Home Featured</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="featured" class="form-control"> <option value="no" <?php if ($module->featured == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->featured == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Home Flashsale</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="flashsale" class="form-control"> <option value="no" <?php if ($module->flashsale == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->flashsale == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Home Testimonial</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="testimonial" class="form-control"> <option value="no" <?php if ($module->testimonial == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->testimonial == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> </div> <!-- end row modul --> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Home Merek</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="brand" class="form-control"> <option value="no" <?php if ($module->brand == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->brand == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Home Blog</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="blog" class="form-control"> <option value="no" <?php if ($module->blog == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->blog == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Kategori Kolom</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="kategori_kolom" class="form-control"> <option value="no" <?php if ($module->kategori_kolom == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->kategori_kolom == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Best Seller Kolom</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="best_seller_kolom" class="form-control"> <option value="no" <?php if ($module->best_seller_kolom == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->best_seller_kolom == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> </div> <!-- end row modul --> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Merek Kolom</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="brand_kolom" class="form-control"> <option value="no" <?php if ($module->brand_kolom == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->brand_kolom == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Harga Kolom</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="price_kolom" class="form-control"> <option value="no" <?php if ($module->price_kolom == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->price_kolom == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Review Produk</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="product_review" class="form-control"> <option value="no" <?php if ($module->product_review == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->product_review == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Newsletter</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="newsletter" class="form-control"> <option value="no" <?php if ($module->newsletter == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->newsletter == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> </div> <!-- end row modul --> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Live Chat</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="live_chat" class="form-control"> <option value="no" <?php if ($module->live_chat == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->live_chat == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Pilihan Bahasa</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="language" class="form-control"> <option value="no" <?php if ($module->language == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->language == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> <div class="col-sm-3 col-xs-6"> <div class="row" style="margin-bottom: 5px; margin-top: 5px;"> <div class="col-sm-6" style="text-align: right;"> <p>Sale</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-6"> <select name="sale" class="form-control"> <option value="no" <?php if ($module->sale == 'no') : ?> selected="selected" <?php endif; ?> >Tidak Aktif</option> <option value="yes" <?php if ($module->sale == 'yes') : ?> selected="selected" <?php endif; ?> >Aktif</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> </div> <!-- end row modul --> <?php endforeach; ?> <div class="row" style="display: none;"> <div class="col-sm-12"> <h4>Ganti Theme <i class="fa fa-question-circle" data-toggle="tooltip" title="Ganti Theme website Anda dengan memilih salah satu theme."></i></h4> <p>Dengan mengganti theme, Anda perlu menyesuaikan kembali gambar dan konten di theme baru Anda. Silahkan melakukan penyesuaian gambar setelah penggantian theme. Disarankan Anda mengaktifkan Maintenance Mode saat masa penyesuaian.</p> </div> </div> <div class="row" style="display: none;"> <div class="col-md-4 col-xs-6"> <label for=""> <input <?php if($theme_no == '1'){ echo "checked"; } ?> required="" type="radio" value="1" name="inp_change_theme"> Theme 1 <a href="https://www.demo1.tokodaku.com/" target="_blank" style="color:#f87135">Demo</a> </label> <img src="https://www.tokodaku.com/uploads/macbook-screen.png" alt=""> </div> <div class="col-md-4 col-xs-6"> <label for=""> <input <?php if($theme_no == '2'){ echo "checked"; } ?> required="" type="radio" value="2" name="inp_change_theme"> Theme 2 <a href="https://www.demo2.tokodaku.com/" target="_blank" style="color:#f87135">Demo</a> </label> <img src="https://www.tokodaku.com/uploads/macbook-screen2.png" alt=""> </div> <div class="col-md-4 col-xs-6"> <label for=""> <input <?php if($theme_no == '3'){ echo "checked"; } ?> required="" type="radio" value="3" name="inp_change_theme"> Theme 3 <a href="https://www.demo3.tokodaku.com/" target="_blank" style="color:#f87135">Demo</a> </label> <img src="https://www.tokodaku.com/uploads/macbook-screen3.png" alt=""> </div> <div class="col-md-4 col-xs-6"> <label for=""> <input <?php if($theme_no == '4'){ echo "checked"; } ?> required="" type="radio" value="4" name="inp_change_theme"> Theme 4 <a href="https://www.demo4.tokodaku.com/" target="_blank" style="color:#f87135">Demo</a> </label> <img src="https://www.tokodaku.com/uploads/macbook-screen4.png" alt=""> </div> <div class="col-md-4 col-xs-6"> <label for=""> <input <?php if($theme_no == '5'){ echo "checked"; } ?> required="" type="radio" value="5" name="inp_change_theme"> Theme 5 <a href="https://www.demo5.tokodaku.com/" target="_blank" style="color:#f87135">Demo</a> </label> <img src="https://www.tokodaku.com/uploads/macbook-screen5.png" alt=""> </div> </div> <div class="row"> <div class="col-sm-12"> <h4>Pengaturan Kurir Pengiriman <i class="fa fa-question-circle" data-toggle="tooltip" title="Pilih tarif ongkir kurir yang Anda kehendaki disini"></i></h4> </div> </div> <div class="row"> <div class="col-sm-3"> <p>Kurir Express (1-6 jam)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <select name="two_hour_service" class="form-control"> <option value="gosend|Self Delivery|gosend|gosend" <?php if ($hotel_configuration->default_carrier == 'gosend|Self Delivery') : ?> selected="selected" <?php endif; ?> >Gosend/Grab Express - Kurir Express</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Biaya Pengiriman Kurir Express</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'shopdelivery_fee', 'value' => $hotel_configuration->shopdelivery_fee, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('shopdelivery_fee'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <?php $this->load->helper('rajaongkir'); ?> <div class="row"> <div class="col-sm-3"> <p>Kurir Satu Hari (Same Day)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <?php $this->db->select('carrier, service_code1')->from('shipment_method')->where('id', 1); $service = $this->db->get()->row(); $carrier = $service->carrier; $service_code1 = $service->service_code1; ?> <select name="one_day_service" class="form-control"> <option value="pos|Express Sameday Barang|Express Sameday Barang|Express Sameday Barang" <?php if ($carrier == 'pos' && $service_code1 == 'Express Sameday Barang') : ?> selected="selected" <?php endif; ?> >POS - Express Sameday Barang</option> <option value="tiki|SDS|SDS|SDS" <?php if ($carrier == 'tiki' && $service_code1 == 'SDS') : ?> selected="selected" <?php endif; ?> >TIKI - SDS</option> <option value="rpx|SDP|SDP|SDP" <?php if ($carrier == 'rpx' && $service_code1 == 'SDP') : ?> selected="selected" <?php endif; ?> >RPX - SDP</option> <option value="ncs|SDS|SDS|SDS" <?php if ($carrier == 'ncs' && $service_code1 == 'SDS') : ?> selected="selected" <?php endif; ?> >NCS - SDS</option> <option value="nss|SDS|SDS|SDS" <?php if ($carrier == 'nss' && $service_code1 == 'SDS') : ?> selected="selected" <?php endif; ?> >NSS - SDS</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Kurir Reguler (1-3 hari)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <?php $this->db->select('carrier, service_code1')->from('shipment_method')->where('id', 3); $service = $this->db->get()->row(); $carrier = $service->carrier; $service_code1 = $service->service_code1; ?> <select name="regular_service" class="form-control"> <option value="jne|JNE City Courier|REG|CTC" <?php if ($carrier == 'jne' && $service_code1 == 'REG') : ?> selected="selected" <?php endif; ?> >JNE - JNE City Courier</option> <option value="pos|Paket Kilat Khusus|Paket Kilat Khusus|Paket Kilat Khusus" <?php if ($carrier == 'pos' && $service_code1 == 'Paket Kilat Khusus') : ?> selected="selected" <?php endif; ?> >POS - Paket Kilat Khusus</option> <option value="tiki|Regular Service|REG|REG" <?php if ($carrier == 'tiki' && $service_code1 == 'REG') : ?> selected="selected" <?php endif; ?> >TIKI - Regular Service</option> <option value="rpx|Regular Package|RGP|RGP" <?php if ($carrier == 'rpx' && $service_code1 == 'RGP') : ?> selected="selected" <?php endif; ?> >RPX - Regular Package</option> <option value="pcp|Regular Service|REG|REG" <?php if ($carrier == 'pcp' && $service_code1 == 'REG') : ?> selected="selected" <?php endif; ?> >PCP - Regular Service</option> <option value="pandu|Regular Service|REG|REG" <?php if ($carrier == 'pandu' && $service_code1 == 'REG') : ?> selected="selected" <?php endif; ?> >PANDU - Regular Service</option> <option value="wahana|Domestic Express Service|DES|DES" <?php if ($carrier == 'wahana' && $service_code1 == 'DES') : ?> selected="selected" <?php endif; ?> >WAHANA - Domestic Express Service</option> <option value="sicepat|Layanan Reguler|REG|REG" <?php if ($carrier == 'sicepat' && $service_code1 == 'REG') : ?> selected="selected" <?php endif; ?> >SICEPAT - Layanan Reguler</option> <option value="jnt|Regular Service|EZ|EZ" <?php if ($carrier == 'jnt' && $service_code1 == 'EZ') : ?> selected="selected" <?php endif; ?> >J&T - Regular Service</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Kurir Besok Sampai (Next Day)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <?php $this->db->select('carrier, service_code1')->from('shipment_method')->where('id', 4); $service = $this->db->get()->row(); $carrier = $service->carrier; $service_code1 = $service->service_code1; ?> <select name="next_day_service" class="form-control"> <option value="jne|JNE City Courier Yes|YES|CTCYES" <?php if ($carrier == 'jne' && $service_code1 == 'YES') : ?> selected="selected" <?php endif; ?> >JNE - JNE City Courier Yes</option> <option value="pos|Express Next Day Barang|Express Next Day Barang|Express Next Day Barang" <?php if ($carrier == 'pos' && $service_code1 == 'Express Next Day Barang') : ?> selected="selected" <?php endif; ?> >POS - Express Next Day Barang</option> <option value="tiki|Over Night Service|ONS|ONS" <?php if ($carrier == 'tiki' && $service_code1 == 'ONS') : ?> selected="selected" <?php endif; ?> >TIKI - Over Night Service</option> <option value="rpx|MidDay Package (Before 12pm)|MDP|MDP" <?php if ($carrier == 'rpx' && $service_code1 == 'MDP') : ?> selected="selected" <?php endif; ?> >RPX - MidDay Package (Before 12pm)</option> <option value="rpx|Next Day Package (After 12pm)|NDP|NDP" <?php if ($carrier == 'rpx' && $service_code1 == 'NDP') : ?> selected="selected" <?php endif; ?> >RPX - Next Day Package (After 12pm)</option> <option value="pcp|Overnight Service|ONS|ONS" <?php if ($carrier == 'pcp' && $service_code1 == 'ONS') : ?> selected="selected" <?php endif; ?> >PCP - Overnight Service</option> <option value="sicepat|Besok Sampai Tujuan|BEST|BEST" <?php if ($carrier == 'sicepat' && $service_code1 == 'BEST') : ?> selected="selected" <?php endif; ?> >SICEPAT - Besok Sampai Tujuan</option> <option value="jet|Priority|PRI|PRI" <?php if ($carrier == 'jet' && $service_code1 == 'PRI') : ?> selected="selected" <?php endif; ?> >JET - Priority</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Kurir Produk Indent (Regular 1-3 hari)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <?php $this->db->select('carrier, service_code1')->from('shipment_method')->where('id', 5); $service = $this->db->get()->row(); $carrier = $service->carrier; $service_code1 = $service->service_code1; ?> <select name="indent_service" class="form-control"> <option value="jne|JNE City Courier|REG|CTC" <?php if ($carrier == 'jne' && $service_code1 == 'REG') : ?> selected="selected" <?php endif; ?> >JNE - JNE City Courier</option> <option value="pos|Paket Kilat Khusus|Paket Kilat Khusus|Paket Kilat Khusus" <?php if ($carrier == 'pos' && $service_code1 == 'Paket Kilat Khusus') : ?> selected="selected" <?php endif; ?> >POS - Paket Kilat Khusus</option> <option value="tiki|Regular Service|REG|REG" <?php if ($carrier == 'tiki' && $service_code1 == 'REG') : ?> selected="selected" <?php endif; ?> >TIKI - Regular Service</option> <option value="rpx|Regular Package|RGP|RGP" <?php if ($carrier == 'rpx' && $service_code1 == 'RGP') : ?> selected="selected" <?php endif; ?> >RPX - Regular Package</option> <option value="pcp|Regular Service|REG|REG" <?php if ($carrier == 'pcp' && $service_code1 == 'REG') : ?> selected="selected" <?php endif; ?> >PCP - Regular Service</option> <option value="pandu|Regular Service|REG|REG" <?php if ($carrier == 'pandu' && $service_code1 == 'REG') : ?> selected="selected" <?php endif; ?> >PANDU - Regular Service</option> <option value="wahana|Domestic Express Service|DES|DES" <?php if ($carrier == 'wahana' && $service_code1 == 'DES') : ?> selected="selected" <?php endif; ?> >WAHANA - Domestic Express Service</option> <option value="sicepat|Layanan Reguler|REG|REG" <?php if ($carrier == 'sicepat' && $service_code1 == 'REG') : ?> selected="selected" <?php endif; ?> >SICEPAT - Layanan Reguler</option> <option value="jnt|Regular Service|EZ|EZ" <?php if ($carrier == 'jnt' && $service_code1 == 'EZ') : ?> selected="selected" <?php endif; ?> >J&T - Regular Service</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Teks Display</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'shopdelivery_duration', 'value' => $hotel_configuration->shopdelivery_duration, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('shopdelivery_duration'); ?> </p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-12"> <h4>Pengaturan Kurir Express</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-12"> <h4>Atur gudang / toko Anda di peta untuk biaya pengiriman Gosend akurat</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <script type="text/javascript" src='https://maps.google.com/maps/api/js?key=AIzaSyBr6fqknPN4gcVRtLzyulnCGCpU9EVM6jw&sensor=false&libraries=places'></script> <script src="https://www.tokodaku.com/store-shared/assets/admin/js/locationpicker.jquery.min.js"></script> <div class="form-horizontal" style="width: 550px" style="display: none;"> <div class="form-group" style="display: none;"> <label class="col-sm-4 control-label">Ketik Alamat &<br>Pindahkan Pin</label> <div class="col-sm-8"> <input type="text" class="form-control" id="address" /> </div> </div> <input name="shop_latitude" type="hidden" id="lat" /> <input name="shop_longitude" type="hidden" id="lon" /> <!-- <div id="location" style="width: 550px; height: 200px;" style="display: none;"></div> --> <div class="clearfix" style="display: none;"> </div> <script> $('#location').locationpicker({ location: { latitude: '<?= $hotel_configuration->shop_latitude; ?>', longitude: '<?= $hotel_configuration->shop_longitude; ?>' }, inputBinding: { latitudeInput: $('#lat'), longitudeInput: $('#lon'), locationNameInput: $('#address') }, enableAutocomplete: true, onchanged: function (currentLocation, radius, isMarkerDropped) { // Uncomment line below to show alert on each Location Changed event //alert("Location changed. New location (" + currentLocation.latitude + ", " + currentLocation.longitude + ")"); } }); </script> </div> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Biaya Go-Send / Km (Rp)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'gosend_fee', 'value' => $hotel_configuration->gosend_fee, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('gosend_fee'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Biaya Minimal Go-Send (Rp)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'gosend_minimum_fee', 'value' => $hotel_configuration->gosend_minimum_fee, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('gosend_minimum_fee'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-12"> <h4>Pengaturan Free Shipping</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <?php $data = array( 'name' => 'free_shipping_type', 'value' => 'region', ); if($hotel_configuration->free_shipping_type == 'region'){ $data['checked'] = TRUE; } echo form_radio($data); ?> Provinsi Subsidi/Gratis Pengiriman </div> <div class="col-sm-9"> <div style="height: 200px; overflow-y: scroll; padding: 20px; border:1px solid #ccc;"> <?php $region_provinces = $this->db->select('*')->from('indonesia_provinces')->order_by('id_indonesia_provinces','ASC')->get()->result();?> <?php foreach ($region_provinces as $region_province):?> <input type="checkbox" name="region_province[]" value="<?= $region_province->rajaongkir_province_id; ?>" <?php foreach ($choosen_free_shipping_region as $free_shipping_region):?> <?php if ($free_shipping_region->province_id == $region_province->rajaongkir_province_id):?> checked <?php endif; ?> <?php endforeach; ?> > <?= ucfirst($region_province->province); ?><br> <?php endforeach; ?> </div> </div> </div> <div class="row" style="display: none;"> <div class="col-sm-3"> <?php $data = array( 'name' => 'free_shipping_type', 'value' => 'global', ); if($hotel_configuration->free_shipping_type == 'global'){ $data['checked'] = TRUE; } echo form_radio($data); ?> Pengiriman Gratis Global </div> <div class="col-sm-9"> Minimal Transaksi <br> <input class="form-control" type="number" value="<?= $choosen_free_shipping_global->min_transaction; ?>" min="0" name="min_transaction" placeholder="minimum transaction"> </div> </div> <div class="row"> <div class="col-sm-3"> <?php $data = array( 'name' => 'free_shipping_type', 'value' => 'off', ); if($hotel_configuration->free_shipping_type == 'off'){ $data['checked'] = TRUE; } echo form_radio($data); ?> Nonaktifkan Subsidi/Gratis Pengiriman </div> <div class="col-sm-9"> </div> </div> <div class="row"> <div class="col-sm-3"> <p>Subsidi biaya pengiriman<br> (kosongkan atau isi 0 utk Pengiriman gratis) </p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'free_shipping_type_subsidi', 'type' => 'number', 'value' => $hotel_configuration->free_shipping_type_subsidi, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('free_shipping_type_subsidi'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Pengiriman Gratis di Kota Anda ?<br> Jika Jakarta maka tutup semua (Pusat, Selatan, Timur, Barat, Utara)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <select name="free_shipping_shop_area" class="input-xlarge form-control"> <option value="no" <?php if($hotel_configuration->free_shipping_shop_area == 'no') : ?> selected <?php endif; ?> >No</option> <option value="yes" <?php if($hotel_configuration->free_shipping_shop_area == 'yes') : ?> selected <?php endif; ?> >Yes</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Pengiriman Gratis Semua Provinsi Min. Jumlah (Rp)<br> (Biarkan kosong untuk menonaktifkan,<br> atur 0 jika min. jumlahnya adalah 0)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'free_shipping', 'value' => $hotel_configuration->free_shipping, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('free_shipping'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-12"> <h4>Produk & Pesanan</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>PPN Pajak (10%) Aktif ?</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <select name="ppn_active" class="form-control"> <option value="no" <?php if ($hotel_configuration->ppn_active == 'no') : ?> selected="selected" <?php endif; ?> >No</option> <option value="yes" <?php if ($hotel_configuration->ppn_active == 'yes') : ?> selected="selected" <?php endif; ?> >Yes</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Hari untuk Membatalkan Notifikasi Belanja/Troli<br> (Hanya angka. misalnya. 5) </p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'cart_abandon_notification', 'value' => $hotel_configuration->cart_abandon_notification, 'class' => 'form-control', 'type' => 'number' ); echo form_input($data); ?> <?= form_error('cart_abandon_notification'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Tidak ada produk yang ditampilkan / halaman</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'products_displayed', 'value' => $hotel_configuration->products_displayed, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('products_displayed'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Tampilkan SKU di halaman produk ?</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <select name="show_product_sku" class="form-control"> <option value="no" <?php if ($hotel_configuration->show_product_sku == 'no') : ?> selected="selected" <?php endif; ?> >Tidak</option> <option value="yes" <?php if ($hotel_configuration->show_product_sku == 'yes') : ?> selected="selected" <?php endif; ?> >Iya</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Tunjukkan Berat pada halaman produk ?</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <select name="show_product_weight" class="form-control"> <option value="no" <?php if ($hotel_configuration->show_product_weight == 'no') : ?> selected="selected" <?php endif; ?> >Tidak</option> <option value="yes" <?php if ($hotel_configuration->show_product_weight == 'yes') : ?> selected="selected" <?php endif; ?> >Iya</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Tampilkan Stok di halaman produk ?</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <select name="show_product_stock" class="form-control"> <option value="no" <?php if ($hotel_configuration->show_product_stock == 'no') : ?> selected="selected" <?php endif; ?> >Tidak</option> <option value="yes" <?php if ($hotel_configuration->show_product_stock == 'yes') : ?> selected="selected" <?php endif; ?> >Iya</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-12"> <h4>Pengaturan Pembayaran</h4> </div><!-- end class="col-sm-12" --> </div> <div class="row"> <div class="col-sm-12"> <h4><?php $data = array( 'name' => 'midtrans', 'value' => 1 ); if($hotel_configuration->midtrans == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> MIDTRANS</h4> </div> <div class="col-sm-9" style="display: none;"> <?php if (!empty($hotel_configuration->midtrans_logo)) : ?> <img style="width: 230px" src="<?= base_url() . 'uploads/' . $hotel_configuration->midtrans_logo; ?>" alt="midtrans logo" /> <i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/hotel_configuration/delete_midtrans_logo/' . $hotel_configuration->midtrans_logo; ?>">Hapus</a> <?php endif; ?> <!-- <img src="<?= base_url('assets/frontend/img/midtrans-logo.png'); ?>"> --> <input type="file" name="midtrans_logo" size="20" class="btn btn-default btn-file form-control" /> <span style="font-size:12px; font-style: italic;"> Ukuran gambar harus memiliki lebar 600 piksel x tinggi 600 piksel, jpg / png, maks 300KB </span> </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'credit_card', 'value' => 1 ); if($hotel_configuration->credit_card == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> CREDIT CARD </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'permata_va', 'value' => 1 ); if($hotel_configuration->permata_va == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> PERMATA VA </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'bni_va', 'value' => 1 ); if($hotel_configuration->bni_va == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> BNI VA </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'gopay', 'value' => 1 ); if($hotel_configuration->gopay == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> GO-PAY </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'mandiri_bill', 'value' => 1 ); if($hotel_configuration->mandiri_bill == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> MANDIRI BILL PAYMENT </div> <div class="col-sm-2 col-xs-6"> <?php $data = array( 'name' => 'akulaku', 'value' => 1 ); if($hotel_configuration->akulaku == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> AKULAKU </div> </div> <!-- end row --> <br> <div class="row"> <div class="col-sm-6"> <?php $data = array( 'name' => 'bank_transfer', 'value' => 1, ); if($hotel_configuration->bank_transfer == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> <p>Rekening <strong>Bank BCA</strong> untuk<br>Transfer Bank Manual</p> <p> <?php $data = array( 'name' => 'bank', 'value' => $hotel_configuration->bank, 'class' => 'bank' ); echo form_textarea($data); ?> <?= form_error('bank'); ?></p> </div><!-- end class="col-sm-9" --> <div class="col-sm-6"> <?php $data = array( 'name' => 'bank_transfer1', 'value' => 1, ); if($hotel_configuration->bank_transfer1 == 1) { $data['checked'] = TRUE; } echo form_checkbox($data); ?> <p>Rekening <strong>Bank Mandiri</strong> untuk<br>Transfer Bank Manual</p> <p> <?php $data = array( 'name' => 'bank1', 'value' => $hotel_configuration->bank1, 'class' => 'bank' ); echo form_textarea($data); ?> <?= form_error('bank1'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-12"> <h4>Durasi perubahan status pemesanan (dalam hitungan detik)</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Durasi Waktu Menunggu untuk Membatalkan <br>(dalam hitungan detik)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'td_p2c', 'type' => 'number', 'min' => '0', 'value' => $hotel_configuration->time_duration_pending_to_cancel, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('td_p2c'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Pengingat Pembayaran Durasi Waktu <br>(dalam hitungan detik)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'td_pr', 'type' => 'number', 'min' => '0', 'value' => $hotel_configuration->time_duration_payment_reminder, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('td_pr'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Durasi Waktu Tidak Dibayar untuk Membatalkan <br>(dalam hitungan detik)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'td_np2c', 'type' => 'number', 'min' => '0', 'value' => $hotel_configuration->time_duration_not_paid_to_cancel, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('td_np2c'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-12"> <h4>Google Analitik</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Google Analitik ID</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'google_analytic_id', 'value' => $hotel_configuration->google_analytic_id, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('google_analytic_id'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Nama pengguna & Kata sandi</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'google_analytic_info', 'value' => $hotel_configuration->google_analytic_info, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('google_analytic_info'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-12"> <h4>Tawk. Chatting</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Tawk.to Chatting ID</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'tawkto_id', 'value' => $hotel_configuration->tawkto_id, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('tawkto_id'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Nama pengguna & Kata Sandi</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'tawkto_info', 'value' => $hotel_configuration->tawkto_info, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('tawkto_info'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-12"> <h4>Pengaturan Midtrans <i class="fa fa-question-circle" data-toggle="tooltip" title="Isi dengan informasi yang Anda dapatkan dari Dashboard Midtrans"></i></h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Mode Produksi Midtrans</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <select name="veritrans_production_mode" class="form-control"> <option value="false" <?php if ($hotel_configuration->veritrans_production_mode == 'false') : ?> selected="selected" <?php endif; ?> >Tidak</option> <option value="true" <?php if ($hotel_configuration->veritrans_production_mode == 'true') : ?> selected="selected" <?php endif; ?> >Iya</option> </select> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Server Key Produksi Midtrans</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'veritrans_server_key', 'value' => $hotel_configuration->veritrans_server_key, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('veritrans_server_key'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Client Key Produksi Midtrans</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'veritrans_client_key', 'value' => $hotel_configuration->veritrans_client_key, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('veritrans_client_key'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Midtrans Sandbox / Server Key Pengujian</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'veritrans_sandbox_server_key', 'value' => $hotel_configuration->veritrans_sandbox_server_key, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('veritrans_sandbox_server_key'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Midtrans Sandbox / Client Key Pengujian</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'veritrans_sandbox_client_key', 'value' => $hotel_configuration->veritrans_sandbox_client_key, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('veritrans_sandbox_client_key'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> </div> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Biaya Kartu Kredit (%)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'veritrans_fee', 'value' => $hotel_configuration->veritrans_fee, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('veritrans_fee'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Admin Kartu Kredit Midtrans (Rp)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'veritrans_admin', 'value' => $hotel_configuration->veritrans_admin, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('veritrans_admin'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Midtrans Akun Virtual / Admin Transfer Bank (Rp)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'virtualaccount_admin', 'value' => $hotel_configuration->virtualaccount_admin, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('virtualaccount_admin'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-12"> <h4>Ukuran Gambar</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-12"> <h4>Logo</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Ukuran Gambar Logo (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'logo_image_width', 'value' => $hotel_configuration->logo_image_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('logo_image_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'logo_image_height', 'value' => $hotel_configuration->logo_image_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('logo_image_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-12"> <h4>Slideshow</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Ukuran Slideshow (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'home_slideshow_width', 'value' => $hotel_configuration->home_slideshow_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('home_slideshow_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'home_slideshow_height', 'value' => $hotel_configuration->home_slideshow_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('home_slideshow_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-12"> <h4>Spanduk Statis</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Ukuran Spanduk Statis 1 (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'staticbanner1_image_width', 'value' => $hotel_configuration->staticbanner1_image_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('staticbanner1_image_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'staticbanner1_image_height', 'value' => $hotel_configuration->staticbanner1_image_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('staticbanner1_image_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Ukuran Spanduk Statis 2 (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'staticbanner2_image_width', 'value' => $hotel_configuration->staticbanner2_image_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('staticbanner2_image_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'staticbanner2_image_height', 'value' => $hotel_configuration->staticbanner2_image_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('staticbanner2_image_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Ukuran Spanduk Statis 3 (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'staticbanner3_image_width', 'value' => $hotel_configuration->staticbanner3_image_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('staticbanner3_image_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'staticbanner3_image_height', 'value' => $hotel_configuration->staticbanner3_image_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('staticbanner3_image_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Ukuran Spanduk Statis 4 (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'staticbanner4_image_width', 'value' => $hotel_configuration->staticbanner4_image_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('staticbanner4_image_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'staticbanner4_image_height', 'value' => $hotel_configuration->staticbanner4_image_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('staticbanner4_image_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Ukuran Spanduk Statis 5 (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'staticbanner5_image_width', 'value' => $hotel_configuration->staticbanner5_image_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('staticbanner5_image_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'staticbanner5_image_height', 'value' => $hotel_configuration->staticbanner5_image_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('staticbanner5_image_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Ukuran Spanduk Statis 6 (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'staticbanner6_image_width', 'value' => $hotel_configuration->staticbanner6_image_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('staticbanner6_image_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'staticbanner6_image_height', 'value' => $hotel_configuration->staticbanner6_image_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('staticbanner6_image_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-12"> <h4>Kategori</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Kategori & Ukuran Gambar Flashsale (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'category_image_width', 'value' => $hotel_configuration->category_image_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('category_image_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'category_image_height', 'value' => $hotel_configuration->category_image_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('category_image_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Kategori Ukuran Thumbnail (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'category_thumbnail_width', 'value' => $hotel_configuration->category_thumbnail_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('category_thumbnail_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'category_thumbnail_height', 'value' => $hotel_configuration->category_thumbnail_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('category_thumbnail_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-12"> <h4>Merek</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Ukuran Gambar Merek (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'brand_image_width', 'value' => $hotel_configuration->brand_image_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('brand_image_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'brand_image_height', 'value' => $hotel_configuration->brand_image_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('brand_image_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Ukuran Merek Logo (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'brand_logo_width', 'value' => $hotel_configuration->brand_logo_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('brand_logo_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'brand_logo_height', 'value' => $hotel_configuration->brand_logo_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('brand_logo_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-12"> <h4>Produk</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Ukuran Gambar Produk Asli (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'product_image_width', 'value' => $hotel_configuration->product_image_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('product_image_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'product_image_height', 'value' => $hotel_configuration->product_image_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('product_image_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Ukuran Gambar Produk Besar (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'product_image_large_width', 'value' => $hotel_configuration->product_image_large_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('product_image_large_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'product_image_large_height', 'value' => $hotel_configuration->product_image_large_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('product_image_large_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Ukuran Gambar Produk Kecil (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'product_image_small_width', 'value' => $hotel_configuration->product_image_small_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('product_image_small_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'product_image_small_height', 'value' => $hotel_configuration->product_image_small_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('product_image_small_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Ukuran Gambar Thumbnail Produk (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'product_image_thumbnail_width', 'value' => $hotel_configuration->product_image_thumbnail_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('product_image_thumbnail_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'product_image_thumbnail_height', 'value' => $hotel_configuration->product_image_thumbnail_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('product_image_thumbnail_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-12"> <h4>Blog</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Ukuran Gambar Blog (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'blog_image_width', 'value' => $hotel_configuration->blog_image_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('blog_image_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'blog_image_height', 'value' => $hotel_configuration->blog_image_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('blog_image_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Ukuran Thumbnail Blog (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'blog_thumbnail_width', 'value' => $hotel_configuration->blog_thumbnail_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('blog_thumbnail_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'blog_thumbnail_height', 'value' => $hotel_configuration->blog_thumbnail_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('blog_thumbnail_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-12"> <h4>Produk Unggulan</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row" style="display: none;"> <div class="col-sm-3"> <p>Ukuran Spanduk (Pixel)</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <div class="row" style="margin-top:0; margin-bottom:0;"> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'featuredproduct_image_width', 'value' => $hotel_configuration->featuredproduct_image_width, 'class' => 'form-control' ); echo 'Lebar: ' . form_input($data); ?> <?= form_error('featuredproduct_image_width'); ?></p> </div> <div class="col-sm-6"> <p> <?php $data = array( 'name' => 'featuredproduct_image_height', 'value' => $hotel_configuration->featuredproduct_image_height, 'class' => 'form-control', ); echo 'Tinggi: ' . form_input($data); ?> <?= form_error('featuredproduct_image_height'); ?></p> </div> </div> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style=""> <div class="col-sm-12"> <h4>Tautan URL Media Sosial</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row" style=""> <div class="col-sm-3"> <p>Facebook</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'facebook', 'value' => $hotel_configuration->facebook, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('facebook'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style=""> <div class="col-sm-3"> <p>Twitter</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'twitter', 'value' => $hotel_configuration->twitter, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('twitter'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style=""> <div class="col-sm-3"> <p>Instagram</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'instagram', 'value' => $hotel_configuration->instagram, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('instagram'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row" style=""> <div class="col-sm-3"> <p>Youtube</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'youtube', 'value' => $hotel_configuration->youtube, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('youtube'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-12"> <h4>Konfigurasi Server Email</h4> </div><!-- end class="col-sm-12" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Email Host SMTP</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'email_smtp_host', 'value' => $hotel_configuration->email_smtp_host, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('email_smtp_host'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Port Email SMTP</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'email_smtp_port', 'value' => $hotel_configuration->email_smtp_port, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('email_smtp_port'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Email SMTP</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'email_smtp', 'value' => $hotel_configuration->email_smtp, 'class' => 'form-control' ); echo form_input($data); ?> <?= form_error('email_smtp'); ?></p> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <div class="row"> <div class="col-sm-3"> <p>Kata Sandi Email SMTP</p> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <p> <?php $data = array( 'name' => 'email_smtp_password', 'value' => $hotel_configuration->email_smtp_password, 'class' => 'form-control' ); echo form_password($data); ?> <?= form_error('email_smtp_password'); ?></p> </div><!-- end class="col-sm-9" --> </div> <div class="row"> <div class="col-sm-3"> </div><!-- end class="col-sm-3" --> <div class="col-sm-9"> <?= form_submit('submit', 'Update', 'class="btn btn-primary btn-success"'); ?> <?= anchor('admin/hotels/landing_page/' . $this->session->userdata('hotel_id'), 'Batal'); ?> </div><!-- end class="col-sm-9" --> </div> <!-- end row --> <?= form_close(); ?> <script> $( document ).ready(function() { //Spinner on loading districts from province $('#loadingSpinner').hide(); $('#loadingSpinner2').hide(); $('#province').change(function() { var id_province = $(this).val(); load_district_ajax(id_province); }); $('#district').change(function() { var id_district = $(this).val(); load_subdistrict_ajax(id_district); }); function load_district_ajax(id_province) { $('#loadingSpinner').show(); $.ajax({ 'url' : '<?= base_url(); ?>' + 'ajax' + '/ajax_get_district', 'type' : 'POST', 'data' : { 'id_province' : id_province, '<?= $this->security->get_csrf_token_name(); ?>' : '<?= $this->security->get_csrf_hash(); ?>' }, 'success' : function(data) { if (data) { /*---success----*/ $('#district').html(data); $('#loadingSpinner').hide(); }; } }); } function load_subdistrict_ajax(id_district) { $('#loadingSpinner2').show(); $.ajax({ 'url' : '<?= base_url(); ?>' + 'ajax' + '/ajax_get_subdistrict', 'type' : 'POST', 'data' : { 'id_district' : id_district, '<?= $this->security->get_csrf_token_name(); ?>' : '<?= $this->security->get_csrf_hash(); ?>' }, 'success' : function(data) { if (data) { /*---success----*/ $('#subdistrict').html(data); $('#loadingSpinner2').hide(); }; } }); } }); </script>