<?php include 'inc_classes.php'; 
include 'admin_authenticatoin.php';
?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>My Salary</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.7 -->
  <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="bower_components/Ionicons/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="dist/css/AdminLTE.min.css">
  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" href="dist/css/skins/_all-skins.min.css">
  <!-- Morris chart -->
  <link rel="stylesheet" href="bower_components/morris.js/morris.css">
  <!-- jvectormap -->
  <link rel="stylesheet" href="bower_components/jvectormap/jquery-jvectormap.css">
  <!-- Date Picker -->
  <link rel="stylesheet" href="bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
  <!-- Daterange picker -->
  <link rel="stylesheet" href="bower_components/bootstrap-daterangepicker/daterangepicker.css">
  <!-- bootstrap wysihtml5 - text editor -->
  <link rel="stylesheet" href="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
  <!-- Google Font -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
  <?php include "include/header-main.php"; ?>
  <!-- Left side column. contains the logo and sidebar -->
  <?php include "include/menu_left.php"; ?>
  <!-- Content Wrapper. Contains page content -->
    <!-- Left side column. contains the logo and sidebar -->
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        Finance Summary
        <!--<small>Version 2.0</small>-->
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active">Dashboard</li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content">
      
      <div class="row">
        <div class="col-md-12" style="display:none">
          <div class="box">
            <!--<div class="box-header with-border">
              <h3 class="box-title">Monthly Recap Report</h3>

              <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
                </button>
                <div class="btn-group">
                  <button type="button" class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown">
                    <i class="fa fa-wrench"></i></button>
                  <ul class="dropdown-menu" role="menu">
                    <li><a href="#">Action</a></li>
                    <li><a href="#">Another action</a></li>
                    <li><a href="#">Something else here</a></li>
                    <li class="divider"></li>
                    <li><a href="#">Separated link</a></li>
                  </ul>
                </div>
                <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
              </div>
            </div>-->
            <!-- /.box-header -->
            <div class="box-body">
              <div class="row" >
                <div class="col-md-8">
                  <p class="text-center">
                    <strong>Sales: 1 Jan, 2014 - 30 Jul, 2014</strong>
                  </p>

                  <div class="chart">
                    <!-- Sales Chart Canvas -->
                    <canvas id="salesChart" style="height: 180px;"></canvas>
                  </div>
                  <!-- /.chart-responsive -->
                </div>
                <!-- /.col -->
                
                <!-- /.col -->
              </div>
              <!-- /.row -->
            </div>
      
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
      </div>
      <!-- Main row -->
      <div class="row">
     	<!--<div class="col-md-3">
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title">Todays</h3>
            </div>
            <div class="box-body">
              <ul class="products-list product-list-in-box">
                <li class="item">
                	<button type="button" class="btn btn-block btn-success btn-lg">Check In</button>
                </li>
                <li class="item">
                	<a href="javascript:void(0)" class="uppercase">Check-In </a>
                    <span class="pull-right text-green"><i class="fa fa-angle-left"></i> 10.30 AM</span></a></li>
                </li>
                <li class="item">
                	<a href="javascript:void(0)" class="uppercase">Check-Out</a>
                    <span class="pull-right text-green"><i class="fa fa-angle-left"></i> 7.30 PM</span></a></li>
                </li>
                <li class="item">
                	<a href="javascript:void(0)" class="uppercase">Total Hours</a>
                    <span class="pull-right text-green"><i class="fa fa-angle-left"></i> 9 Hrs.</span></a></li>
                </li>
              </ul>
            </div>
          </div>
        </div>-->
        <!--===Start col for info box 2======-->
        <div class="col-md-6">
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title"><i class="fa fa-th"></i>  My Salary</h3>
              <!--<div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="glyphicon glyphicon-triangle-left"></i>
                </button>
                <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="glyphicon glyphicon-triangle-right"></i></button>
              </div>-->
            </div>
            <!-- /.box-header -->
            
            <?php
			$sel_salary="select * from pr_add_salary_details where employee_id='".$_SESSION['admin_id']."' and cm_id='".$_SESSION['cm_id']."' ";
			$ptr_sal=mysql_query($sel_salary);
			$data_sal=mysql_fetch_array($ptr_sal);
			?>
            <div class="box-body">
            	<div class="col-md-12">
                  <ul class="products-list product-list-in-box">
                    <li class="item">
                    </li>
                    <li class="item">
                        <span class="uppercase"><strong>Annual CTC</strong></span>
                        <span class="pull-right text-green"> <?php echo $data_sal['salary']*12; ?></span></a></li>
                    </li>
                    <!-- /.item -->
                    <li class="item"><strong>Variable / Bonus</strong></strong></span>
                        <span class="pull-right text-green"> <?php //echo $data_sal['salary']; ?></span></a></li>
                    </li>
                    <li class="item"><strong>Total</strong></strong></span>
                        <span class="pull-right text-green"> <?php echo $data_sal['salary']*12; ?></span></a></li>
                    </li>
                    <li class="item">
                        <span class="uppercase"><strong>CTC / Month</strong></span>
                        <span class="pull-right text-green"> <?php echo $data_sal['salary']; ?></span></a></li>
                    </li>
                  </ul>
                </div>
                <!--<div class="col-md-6">
                  <ul class="products-list product-list-in-box">
                    <li class="item">
                    </li>
                    <li class="item">
                        <span class="uppercase"><strong>Loss of Pay</strong></span>
                        <span class="pull-right text-green"> 1 Day.</span></a></li>
                    </li>
                    <li class="item">
                        <span class="uppercase"><strong>View Pay Slip</strong></span>
                        <span class="pull-right text-green"> <button type="button" class="btn btn-block btn-success btn-xs">View</button></span></a></li>
                    </li>
                  </ul>
                </div>-->
            </div>
            <!-- /.box-body -->
            <!--<div class="box-footer text-center">
              <a href="javascript:void(0)" class="uppercase">Past Leaves</a>
            </div>-->
                <!-- /.box-footer -->
            </div>
        </div>
        <!--==========End col info box=======-->
        <div class="col-md-6">
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title"><i class="fa fa-th"></i>  Salary Declaration</h3>
              <!--<div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="glyphicon glyphicon-triangle-left"></i>
                </button>
                <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="glyphicon glyphicon-triangle-right"></i></button>
              </div>-->
            </div>
            <!-- /.box-header -->
            <div class="box-body">
            	<div class="col-md-12">
                  <ul class="products-list product-list-in-box">
                    <li class="item">
                    </li>
                    <li class="item">
                        <span class="uppercase"><strong>Gross Salary</strong></span>
                        <span class="pull-right text-green"> Basic + HRA + Other Allownces</span></a></li>
                    </li>
                    <!-- /.item -->
                    <li class="item"><strong>Net Salary</strong></strong></span>
                        <span class="pull-right text-green"> Basic + Allowances - IT -EPF - Professional Tax</span></a></li>
                    </li>
                    <li class="item">
                        <span class="uppercase"><strong>Allowances</strong></span>
                        <span class="pull-right text-green"> HRA, Medical Allowances, LTA etc.</span></a></li>
                    </li>
                    <!-- /.item -->
                    <li class="item"><strong>Incentives/Perquisite</strong></strong></span>
                        <span class="pull-right text-green"> Fringe Benifis, Other Incentives etc.</span></a></li>
                    </li>
                  </ul>
                </div>
                <!--<div class="col-md-6">
                  <ul class="products-list product-list-in-box">
                    <li class="item">
                    </li>
                    <li class="item">
                        <span class="uppercase"><strong>Remaining Term</strong></span>
                        <span class="pull-right text-green"> 2</span></a></li>
                    </li>
                    <li class="item">
                        <span class="uppercase"><strong>EMI Date</strong></span>
                        <span class="pull-right text-green"> 12 Dec 21</span></a></li>
                    </li>
                  </ul>
                </div>-->
            </div>
            <!-- /.box-body -->
            <!--<div class="box-footer text-center">
              <a href="javascript:void(0)" class="uppercase">Past Leaves</a>
            </div>-->
                <!-- /.box-footer -->
            </div>
        </div>        
      </div>
      <!-- /.row -->
      <div class="row">
      	<div class="col-md-12">
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title"><i class="fa fa-th"></i>  Policy & Documents</h3>
              <!--<div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="glyphicon glyphicon-triangle-left"></i>
                </button>
                <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="glyphicon glyphicon-triangle-right"></i></button>
              </div>-->
            </div>
            <!-- /.box-header -->
            <div class="box-body">
            	<div class="col-md-12">
                  <div class="box-footer text-center">
                      <a href="javascript:void(0)" class="uppercase">View All Policy and Documents related salary</a>
                  </div>
                </div>
                <!--<div class="col-md-6">
                  <ul class="products-list product-list-in-box">
                    <li class="item">
                    </li>
                    <li class="item">
                        <span class="uppercase"><strong>Loss of Pay</strong></span>
                        <span class="pull-right text-green"> 1 Day.</span></a></li>
                    </li>
                    <li class="item">
                        <span class="uppercase"><strong>View Pay Slip</strong></span>
                        <span class="pull-right text-green"> <button type="button" class="btn btn-block btn-success btn-xs">View</button></span></a></li>
                    </li>
                  </ul>
                </div>-->
            </div>
            <!-- /.box-body -->
            <!--<div class="box-footer text-center">
              <a href="javascript:void(0)" class="uppercase">Past Leaves</a>
            </div>-->
                <!-- /.box-footer -->
            </div>
        </div>
      </div>
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
  <?php include "include/footer-main.php"; ?>
</div>
<!-- jQuery 3 -->
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="bower_components/fastclick/lib/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/adminlte.min.js"></script>
<!-- Sparkline -->
<script src="bower_components/jquery-sparkline/dist/jquery.sparkline.min.js"></script>
<!-- jvectormap  -->
<script src="plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<!-- SlimScroll -->
<script src="bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<!-- ChartJS -->
<script src="bower_components/chart.js/Chart.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="dist/js/pages/dashboard2.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="dist/js/demo.js"></script>
</body>
</html>