https://t.me/RX1948
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/symphony-solusi.co.id/public_html/application/views/admin/menus/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/symphony-solusi.co.id/public_html/application/views/admin/menus/ajax_get_pages.php
<div class="row">
    <div class="col-sm-3">
        <p>Select Page</p>
    </div><!-- end class="col-sm-3" -->

     <div class="col-sm-9">
       
	   <select name="page" id="page" class="form-control">
		
			<option value="">select page...</option>

			<?php foreach ($pages as $page) : ?>

				<option value="<?= $page->id_pages; ?>"

					<?php if (isset($current_page_id)) : ?>
						<?php if ($page->id_pages == $current_page_id) : ?>
							selected
						<?php endif; ?>
					<?php endif; ?>  
			
				><?= ucwords($page->page_title); ?></option>

				<?php
					//check if the current id does have child
					$this->db->select('*')->from('pages')->where('parent', $page->id_pages);
					$count_child_page = $this->db->get()->num_rows();
				?>

				<?php if ($count_child_page > 0): ?>
				
					<?php 
						//get all existing child pages 
						$this->db->select('id_pages, page_title')->from('pages')->where('parent', $page->id_pages)->order_by('priority', 'ASC');
						$child_pages = $this->db->get()->result(); 
					?>  

					<?php foreach ($child_pages as $child_page) : ?>
						
						<option style="margin-left: 10px;" value="<?= $child_page->id_pages; ?>"

						<?php if (isset($current_page_id)) : ?>
							<?php if ($child_page->id_pages == $current_page_id) : ?>
								selected
							<?php endif; ?>
						<?php endif; ?>     
						>- <?= ucwords($child_page->page_title); ?></option>

						<?php
							//check if the current id does have child
							$this->db->select('*')->from('pages')->where('parent', $child_page->id_pages);
							$count_child2_category = $this->db->get()->num_rows();
						?>

						<?php if ($count_child2_category > 0): ?>
							<?php 
								//get all existing child2 pages 
								$this->db->select('id_pages, page_title')->from('pages')->where('parent', $child_page->id_pages)->order_by('priority', 'ASC');
								$child2_pages = $this->db->get()->result(); 
							?>   

							<?php foreach ($child2_pages as $child2_page) : ?>
								
								<option style="margin-left: 10px;"value="<?= $child2_page->id_pages; ?>"
								
									<?php if (isset($current_page_id)) : ?>
										
										<?php if ($child2_page->id_pages == $current_page_id) : ?>
											selected
										<?php endif; ?>

									<?php endif; ?>     

									>&nbsp;&nbsp;&nbsp;- <?= ucwords($child2_page->page_title); ?></option> 
									
							<?php endforeach; ?>

						<?php endif; ?>

					<?php endforeach; ?>

				<?php endif ?>

			<?php endforeach; ?> 
				
		</select>
		<?= form_error('page'); ?>
    </div><!-- end class="col-sm-9" -->
</div> <!-- end row -->  


https://t.me/RX1948 - 2025