Note that there are some explanatory texts on larger screens.

plurals
  1. POheader shown two times when using jquery tabs
    primarykey
    data
    text
    <p>I got a weird error (i use <strong>codeigniter</strong>), the header and jquery tabs is shown two times :</p> <p><img src="https://i.stack.imgur.com/UBLgq.png" alt="enter image description here"></p> <p>This is my <code>header_v</code>, the place for the jquery tabs :</p> <pre><code>&lt;script&gt; $(function() { $( "#datepicker" ).datepicker(); }); $(function() { $( "#tabs" ).tabs(); }); &lt;/script&gt; &lt;div id="header"&gt;&lt;h1&gt;HEADER&lt;/h1&gt;&lt;/div&gt; &lt;div id="tabs"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="umat"&gt;Daftar Umat&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Daftar Pengurus&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="absensi"&gt;Absensi&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>This is <code>umat_v</code>, the view that will loaded when the first tab is clicked :</p> <pre><code>&lt;body&gt; &lt;div id="form_search"&gt; &lt;?php echo form_open('backend/index') ?&gt; &lt;p&gt; Kelas : &lt;?php echo form_dropdown('ddl_kelas1', $list_kelas, 'id="ddl_kelas1"');?&gt; - &lt;?php echo form_dropdown('ddl_kelas2', $list_kelas, 'id="ddl_kelas2"');?&gt; &lt;/p&gt; &lt;p&gt; Nama : &lt;?php echo form_input('txt_nama');?&gt; Alamat : &lt;?php echo form_input('txt_alamat');?&gt; Tanggal Lahir : &lt;input type="text" id="datepicker" /&gt; &lt;/p&gt; &lt;?php echo form_submit('btn_search', 'Search');?&gt; &lt;?php echo form_close(); ?&gt; &lt;/div&gt; &lt;div&gt; &lt;?php echo $table ?&gt; &lt;?php echo $pagination ?&gt; &lt;/div&gt; &lt;/body&gt; </code></pre> <p>And this is the <code>controller</code> i used to load those views :</p> <pre><code>public function umat() { $this-&gt;load-&gt;view('template/header_v'); //check authorization if(!isset($_SESSION['username'])) redirect('backend'); //pagination $config['base_url'] = site_url('/backend/umat/'); $config['total_rows'] = $this-&gt;backend_m-&gt;count_umat(); $config['per_page'] = 10; $config['uri_segment'] = 3; $config['full_tag_open'] = '&lt;div id="pagination"&gt;'; $config['full_tag_close'] = '&lt;/div&gt;'; $this-&gt;pagination-&gt;initialize($config); $data['pagination'] = $this-&gt;pagination-&gt;create_links(); //table $data_umat = $this-&gt;backend_m-&gt;get_umat(); $this-&gt;table-&gt;set_heading( 'No', 'Nama', 'Kelas', 'Alamat', 'Sekolah', 'Nomor Telepon', 'Keterangan' ); $no = 1; foreach($data_umat as $list_temp) { $this-&gt;table-&gt;add_row( $no++, $list_temp-&gt;nama, $list_temp-&gt;kelas, $list_temp-&gt;alamat, $list_temp-&gt;sekolah, $list_temp-&gt;no_tlpn, $list_temp-&gt;keterangan ); } $data_kelas = $this-&gt;backend_m-&gt;get_kelas(); $data['list_kelas'][0] = 'Pilih Kelas'; foreach($data_kelas as $row) { $data['list_kelas'][$row-&gt;kelas_id] = $row-&gt;kelas; } $data['table'] = $this-&gt;table-&gt;generate(); $this-&gt;load-&gt;view('backend/umat_v', $data); } </code></pre> <p>Why my header/<code>header_v</code> always loaded 2 times? Thanks :D</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload