<?php 

function gradebook_cb() {
	?>
	<div class="row">
		<div class="col-md-12">
			<ul class="nav nav-pills mb-3" id="pills-tab" role="tablist">
			  	<li class="nav-item">
			    	<a class="nav-link active" id="online-tab" data-toggle="pill" href="#online" role="tab" aria-controls="online" aria-selected="true">Manage Online</a>
			  	</li>
			  	<li class="nav-item">
			    	<a class="nav-link" id="offline-tab" data-toggle="pill" href="#offline" role="tab" aria-controls="offline" aria-selected="false">Manage With Excel</a>
			  	</li>
			</ul>
			<div class="tab-content" id="pills-tabContent">
			  	<div class="tab-pane fade show active" id="online" role="tabpanel" aria-labelledby="online-tab">
			  		<?php
			  			do_action("display_search_box", [
					        'id' => "gradebook",
					        'query_function' => 'eedu_portal_gradebook',
					        'include_all' => false,
					        'cache' => false
					    ]);
			  		 ?>
			  	</div>
			  	<div class="tab-pane fade" id="offline" role="tabpanel" aria-labelledby="offline-tab">
			  		<?php render_page_content("manage-gradebook-with-excel") ?>
			  	</div>
			</div>
		</div>
	</div>
	<?php
	global $post_meta;
    add_page_javascript('contents/plugins/eedu_portal/js/gradebook.js');
    add_page_javascript('app/assets/js/page-scripts/koweb.js');
    add_page_javascript('app/assets/js/page-scripts/submit.js');
}