?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/application/views/report/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/sec/application/views/report/view_leave_report.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i></div> <div class="tools"> <a href="#" onclick="viewdata('report','viewinreportsearch','search_report','view_report','<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); $leave_type=$this->hrmodel->search_leave_type(); $employee=$this->hrmodel->search_employee(); echo form_open('report/generate_report/get_leave_report/_report/view/', $attributes); ?> <div class="row-fluid"> <div class="span6"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-check"></i> Leave Report</div> </div> <div class="portlet-body"> <input type="hidden" name="report_name" value=" Leave Report" /> <table class="table table-striped table-hover table-bordered" id="sample_5" style="background-color: white;"> <tr> <td> From Date </td> <td> <input name="start_date" id="date1" type="dateonly" class="calfocus" /> </td> </tr> <tr> <td> To Date </td> <td> <input name="end_date" id="date" type="dateonly" class="calfocus" /> </td> </tr> <tr> <td> Employee Name </td> <td> <select name="employee_id" class="" id="employee_name"> <option value="">All</option> <?php foreach ($employee['results']->result_array() as $list) { ?> <option value="<?= $list['employee_id'] ?>"><?= $list['employee_name'] ?></option> <?php } ?> </select> </td> </tr> <tr> <td> Leave Type </td> <td> <select name="leave_type_id" class="chosen"> <option value="">All</option> <?php foreach($leave_type['results']->result_array() as $list) { ?> <option value="<?=$list['leave_type_id'];?>"><?=$list['leave_type_name'];?></option> <?php } ?> </select> </td> </tr> </table> </div> </div> </div> <div class="span6"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-check"></i> Report Fields</div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" id="sample_5" style="background-color: white;"> <tr> <th style="text-align: center"><input type="checkbox" id="checkall" name="checkall" class="reportcheck" onchange="field_check_all()"/></th> <th style="text-align: center">Report Fields</th> </tr> <?php $i=1; ?> <tr> <td style="text-align: center"><input type="checkbox" value="employee_name~Employee_Name" name="field_name_<?=$i++;?>" class="reportcheck" checked /></td> <td>Employee Name</td> </tr> <tr> <td style="text-align: center"><input type="checkbox" value="leave_type.leave_type_name~Leave_Type" name="field_name_<?=$i++;?>" checked class="reportcheck"/></td> <td>Leave Type</td> </tr> <tr> <td style="text-align: center"><input type="checkbox" value="from_date~From_Date" name="field_name_<?=$i++;?>" class="reportcheck" checked/></td> <td>From Date</td> </tr> <tr> <td style="text-align: center"><input type="checkbox" value="to_date~To_Date" name="field_name_<?=$i++;?>" class="reportcheck" checked/></td> <td>To Date</td> </tr> <tr> <td style="text-align: center"><input type="checkbox" value="remarks~remarks" name="field_name_<?=$i++;?>" class="reportcheck" /></td> <td>remarks</td> </tr> <tr> <td style="text-align: center"><input type="checkbox" value="leave_status~Status" name="field_name_<?=$i++;?>" class="reportcheck" /></td> <td>Status</td> </tr> </table> </div> </div> </div> </div> <input type="hidden" name="field_count" value="<?=$i;?>"/> <div class="form-actions"> <button style="float: right;margin-left: 10px;" type="button" class="clickimage"onclick="generate_pdf('report/generate_report/get_leave_report/_report/view/')" >Generate</button> <button style="float: right;margin-left: 10px;" type="submit" class="clickimage" onclick="generateReport('report/generate_report/get_leave_report/_report/xls/')" >XLS</button> <button style="float: right;margin-left: 10px;" type="submit" class="clickimage" onclick="generateReport('report/generate_report/get_leave_report/_report/pdf/')" >PDF</button> </div> <?php echo form_close(); ?> <!-- END FORM--> <div id="loadresult"></div> <div id="report_div"></div> </div> </div> </div> </div>