<?php 

function add_db_section_cb() {
	global $post_meta;
	?>
	<div class="row">
		<div class="col-md-8">
			<div class="panel panel-custom bg-white">
			    <div class="panel-heading">
			        <h1>Database Sections</h1>
			    </div>
			    <div class="panel-body">
			        <table class="table table-striped db_section_table">
			        	<thead>
			        		<tr>
			        			<th>SN</th>
			        			<th>Section ID</th>
			        			<th>Section Name</th>
			        			<th>Section Description</th>
			        			<th>Actions</th>
			        		</tr>
			        	</thead>
			        	<tbody></tbody>
			        </table>
			    </div>
			</div>
			<div class="panel panel-custom bg-white">
			    <div class="panel-heading">
			        <h1>Add Database Section</h1>
			    </div>
		        <div class="panel-body instruction">
		        	<form action="app/includes/ajax.php" method="post" id="add_db_section_form" data-callback="refreshSectionList" data-callbackid=".db_section_table">
		        		<?php 
		        		input(['label' => 'Name of section', 'id' => 'section_name', 'required' => 'required']);
		        		textarea(['label' => 'Description of section', 'id' => 'description']);
			            alert(); submit_btn('add_db_section', 'Submit');
			            // $dynamic_form = new dynamic_form("add_db_section_form", "add_db_section_form");
			            // $dynamic_form->dynamic_form();
		        		 ?>
		        	</form>
				</div>
			</div>
		</div>
		<div class="col-md-4">
			<?php do_action("right_column"); ?>
		</div>
	</div>
	<?php
	add_page_javascript('app/assets/js/page-scripts/js-functions.js');
	add_page_javascript('app/assets/js/page-scripts/submit.js');
}