%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<div id="page-head"> <a href="#" class="back-indent"> List Of All Indents</a> <?php if($this->session->userdata('elib_role_id') == '1' || $this->session->userdata('elib_role_id') == '15'){?> <a href="<?=base_url('admin/indent/add')?>" class="add-indent"> Add Indent</a> <?php }?> </div> <div class="table-filters"> <div class="table-right"> <i class="fa fa-filter" aria-hidden="true"></i> Filter <span></span> </div> <div class="table-left"> <form class="form1" method="post" action="#"> <select name="school_id" id="school_id" > <option value="">Select School</option> <?php foreach($schoolArray as $row) { ?> <option value="<?=$row['id']?>" <?php if(isset($_POST['school_id'])){if($_POST['school_id']==$row['id']) { echo ' selected="selected" '; }}?>><?=$row['school_name']?></option> <?php } ?> </select> <select name="department_id" id="department_id" > <option value="">Select Department</option> <?php foreach($departmentArray as $row) { ?> <option value="<?=$row['id']?>" <?php if(isset($_POST['department_id'])){if($_POST['department_id']==$row['id']) { echo ' selected="selected" '; }}?>><?=$row['name']?></option> <?php } ?> </select> <?php // $starting_year = 2014; // $ending_year = date('Y'); // for($starting_year; $starting_year <= $ending_year; $starting_year++) { // $yr = ($starting_year-1).'-'.$starting_year; // if(isset($_POST['academic_year'])){ // if($yr == $_POST['academic_year']) { $select = ' selected="selected" '; } else{$select =null;}} // $years[] = '<option value="'.$yr.'" "'.$select.'">'.$yr.'</option>'; // } ?> <!-- <div class="col"> <span class="select"> <select name="academic_year" id="academic_year" > <option value="">Select Academic Year</option> <?php //echo implode("\n\r", $years); ?> <?php foreach($yearsArray as $row) { ?> <option value="<?=$row['year']?>" <?php if($_POST['academic_year']==$row['year']) { echo ' selected="selected" '; }?>><?=$row['year']?></option> <?php } ?> </select> </span> </div> --> <select name="status" id="status" > <option value="">Select Status</option> <option value="0" <?php if(isset($_GET['status'])){ if(base64_decode($_GET['status'])=="pending" && (!isset($_POST['status']))) { echo ' selected="selected" '; }} if(isset($_POST['status'])){if($_POST['status']=="0") { echo ' selected="selected" '; }}?>>Pending</option> <option value="1" <?php if(isset($_GET['status'])){ if(base64_decode($_GET['status'])=="approved" && (!isset($_POST['status']))) { echo ' selected="selected" '; }} if(isset($_POST['status'])){if($_POST['status']=="1") { echo ' selected="selected" '; }}?>>Approved</option> <option value="2" <?php if(isset($_GET['status'])){ if(base64_decode($_GET['status'])=="rejected" && (!isset($_POST['status']))) { echo ' selected="selected" '; }} if(isset($_POST['status'])){if($_POST['status']=="2") { echo ' selected="selected" '; }}?>>Rejected</option> </select> <button type="submit" name="SubmitSearch" value="Search" class="btn button2">Search</button> </form> </div> </div> <div class="table-indent"> <div id="content-wrapper "> <div class="admin-container "> <div class=""> <div class="table-responsive"> <div class="student-detail-table" > <!---- Success Message ----> <?php if ($this->session->flashdata('success')) { ?> <p style="color:green; font-size:18px;"><?php echo $this->session->flashdata('success'); ?></p> <?php } ?> <table id="dataTable"> <thead> <tr> <th>#</th> <th>Indent Number</th> <th>School Name</th> <th>Department</th> <th>Book Title</th> <th>ISBN</th> <th>Author</th> <th>Single Book Cost</th> <th>No. of Books</th> <th>Total Cost</th> <th>Created Date</th> <th>Status</th> <th>Action</th> </tr> </thead> <!-- <tfoot> <tr> <th>#</th> <th>School Name</th> <th>Department Name</th> <th>Book Title</th> <th>ISBN</th> <th>Author</th> <th>Single Book Cost</th> <th>No. of Books</th> <th>Total Cost</th> <!-- <th>Status</th> --> <!-- <th>Action</th> </tr> </tfoot> --> <tbody> <?php if(count($totalIndents)) : $cnt=1; foreach ($totalIndents as $row) : ?> <tr> <td><?php echo htmlentities($cnt);?></td> <td><?php echo $row['indentNumber']?></td> <td><?php echo $schoolArray[$row['school_id']]['school_name']?></td> <td><?php echo $departmentArray[$row['department_id']]['name']?></td> <td><?php echo $row['title']?></td> <td><?php echo $row['isbn']?></td> <td><?php echo $row['author']?></td> <td><i class="fa fa-inr"></i> <?php echo $row['singleBookCost']?></td> <td><?php echo $row['noOfBooks']?></td> <td><i class="fa fa-inr"></i> <?php echo $row['totalCost']?></td> <td><?php echo $row['createdon']?></td> <td><p class="dot-li <?=getStatusColor($row['indentLevel'])?>"></p><?php echo getIndentStatus($row['indentLevel']) ?></td> <td class="center"> <!-- <a href="<?=base_url("admin/indent/add/{$row['id']}")?>" class="ad-edit"> <i class="fa fa-pencil" aria-hidden="true"></i></a> --> <a href="<?=base_url('admin/indent/detail?via='.base64_encode($row['id']))?>" class="ad-view" title="View"><i class="fa fa-eye" aria-hidden="true"></i></a> <!-- <a href="<?=base_url('admin/indent/delete/'.$row['id'])?>" class="ad-delete"><i class="fa fa-times" aria-hidden="true"></i></a> --> <?php if(($row['actionUserId'] == $this->session->userdata('elib_adminloggedin')->id) && $row['actionRoleId'] == $this->session->userdata('elib_role_id')){?> <a href="<?=base_url('admin/indent/detail?via='.base64_encode($row['id']))?>" class="ad-action" title="Action Required"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a> <?php }?> </td> </tr> <?php $cnt++; endforeach; else : ?> <tr> <td colspan="13">No Record found</td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> </div> </div> </div> <script> $(document).ready(function(){ $('#school_id').change(function(){ var school_id = $(this).val(); $.ajax({ url:'<?= base_url('admin/advancesetting/getajaxrecord') ?>', method: 'post', data: {school_id: school_id}, dataType: 'json', success: function(response){ // Add options $('#department_id').html(''); $('#department_id').append($('<option>').text(' -- Select Department -- ').attr('value', '')); $.each(response,function(i,value){ $('#department_id').append($('<option>').text(value).attr('value', i)); }); } }); }); }); if ( window.history.replaceState ) { window.history.replaceState( null, null, window.location.href ); } </script>