<?php
session_start();
include 'session_check.php';
?>
	<head>
    <meta charset="UTF-8">
    <title>AdminLTE 2 | Dashboard</title>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <!-- Bootstrap 3.3.2 -->
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />    
    <!-- FontAwesome 4.3.0 -->
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    <!-- Ionicons 2.0.0 -->
    <link href="https://code.ionicframework.com/ionicons/2.0.0/css/ionicons.min.css" rel="stylesheet" type="text/css" />    
    <!-- Theme style -->
    <link href="dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
    <!-- AdminLTE Skins. Choose a skin from the css/skins 
         folder instead of downloading all of them to reduce the load. -->
    <link href="dist/css/skins/_all-skins.min.css" rel="stylesheet" type="text/css" />
    <!-- iCheck -->
    <link href="plugins/iCheck/flat/blue.css" rel="stylesheet" type="text/css" />
    <!-- Morris chart -->
    <link href="plugins/morris/morris.css" rel="stylesheet" type="text/css" />
    <!-- jvectormap -->
    <link href="plugins/jvectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
    <!-- Date Picker -->
    <link href="plugins/datepicker/datepicker3.css" rel="stylesheet" type="text/css" />
    <!-- Daterange picker -->
    <link href="plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
    <!-- bootstrap wysihtml5 - text editor -->
    <link href="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css" rel="stylesheet" type="text/css" />
	
	<!-----		sweet alert css and js link	---->
	<link rel="stylesheet" href="dist/sweetalert.css">
	<script src="dist/sweetalert.min.js"> </script>
   
   
	<link rel="stylesheet" type="text/css" href="custom/custom.css">
	<!---- Ck editor-->
	 <script src="ckeditor/ckeditor.js"></script>
	 
  </head>

<?php
include 'include/header.php';
include 'include/left-nav.php';
?>
      <!-- Right side column. Contains the navbar and content of the page -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            Docket request
            <small>Control panel</small>
          </h1>
          <ol class="breadcrumb">
            <li><a href="dashboard.php"><i class="fa fa-dashboard"></i> Home</a></li>
            <li class="active">Docket request</li>
          </ol>
        </section>

        <!-- Main content -->
        <section class="content">
          <!-- Small boxes (Stat box) -->
          <div class="row">
            <section class="col-lg-6 col-lg-offset-3 connectedSortable">
              <div class="box box-info">
                <div class="box-header">
                  <i class="fa fa-envelope"></i>
                  <h3 class="box-title">Docket request</h3>
                </div>
                <form method="post" action="docket_request_code.php">
                    <!--    hidden user id    -->
                    <input type="hidden" name="unique_id" value="<?php echo $got_unique_id;?>">
                <div class="box-body">
                    <div class="form-group">
                      <select class="form-control" name="type">
                          <option value="product buy"> Product buy </option>
                          <option value="member joining"> Member joining </option>
                          <option value="payout request"> Payout request </option>
                          <option value="commission"> Commission </option>
                          <option value="others"> Others </option>
                      </select>
                    </div>
                    <div class="form-group">
                      <input type="text" class="form-control" name="subject" placeholder="Subject*" required>
                    </div>
                     <div class="form-group">
                      <input type="text" class="form-control" name="mobile" maxlength="10" placeholder="Mobile number*" required>
                    </div>
                    <div>
                      <textarea class="textarea" placeholder="Message*" name="msg" style="width: 100%; height: 125px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;" required></textarea>
                    </div>
                </div>
                <div class="box-footer clearfix">
                  <button type="submit" class="pull-right btn btn-default" name="send_docket_request" id="sendEmail">Send <i class="fa fa-arrow-circle-right"></i></button>
                </div>
                </form>
              </div>

            </section><!-- right col -->
        </div><!-- /.row -->
		  <div class="row">
				<div class="col-sm-12" style="padding: 25px 20px; font-size: 18px; font-weight: 600">
					Docket request details
				</div>
		  </div>
		  <div class="row">
				<div class="col-sm-10 col-sm-offset-1">
					  <div class="table-responsive">
						  <table class="table">
							<thead>
							  <tr>
								<th>Sr.no</th>
								<th> Issues id </th>
								<th> Mobile </th>
								<th>Issue type</th>
								<th>Subject </th>
								<th>Message</th>
								<th>Date</th>
								<th> Status </th>
							  </tr>
							</thead>
							<tbody>
							  <?php
							  $qry1="select * from docket_request where docket_user_id='$got_unique_id'  " ;
							  $connection1=mysqli_query($conn,$qry1);
							  if(mysqli_num_rows($connection1)>0)
							  {
							      $count=1;
							      while($rows=mysqli_fetch_array($connection1))
							      {
							  ?>
    							  <tr>
    								<td><?php echo $count++;?></td>
    								<td> <?php echo $rows['issues_id'];?> </td>
    								<td><?php echo $rows['docket_user_mobile'];?></td>
    								<td><?php echo $rows['docket_type'];?></td>
    								<td><?php echo $rows['docket_title'];?></td>
    								<td><?php echo $rows['docket_msg'];?></td>
    								<td><?php echo $rows['docket_date'];?></td>
    								<td> <?php if($rows['docket_status']==0){echo "<span style='background-color: yellow'>Pending</span>";} else {echo "<span style='color: green'>Resolved</span>";}?> </td>
    							  </tr>
				              <?php
							      }
							  }
				              ?>
							</tbody>
						  </table>
					</div>
				</div>
			</div>
		  </div>
        </section><!-- /.content -->
      </div><!-- /.content-wrapper -->

	
		 <!-- jQuery 2.1.3 -->
    <script src="plugins/jQuery/jQuery-2.1.3.min.js"></script>
    <!-- jQuery UI 1.11.2 -->
    <script src="https://code.jquery.com/ui/1.11.2/jquery-ui.min.js" type="text/javascript"></script>
    <?php
    if($status=='Deactive')
    {
        include 'modal_show.php';
    }
    ?>
    <!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
    <script>
      $.widget.bridge('uibutton', $.ui.button);
    </script>
    <!-- Bootstrap 3.3.2 JS -->
    <script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>    
    <!-- Morris.js charts -->
   <!-- <script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>-->
    <!---<script src="plugins/morris/morris.min.js" type="text/javascript"></script>-->
    <!-- Sparkline -->
    <script src="plugins/sparkline/jquery.sparkline.min.js" type="text/javascript"></script>
    <!-- jvectormap -->
    <script src="plugins/jvectormap/jquery-jvectormap-1.2.2.min.js" type="text/javascript"></script>
    <script src="plugins/jvectormap/jquery-jvectormap-world-mill-en.js" type="text/javascript"></script>
    <!-- jQuery Knob Chart -->
    <script src="plugins/knob/jquery.knob.js" type="text/javascript"></script>
    <!-- daterangepicker -->
    <script src="plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
    <!-- datepicker -->
    <script src="plugins/datepicker/bootstrap-datepicker.js" type="text/javascript"></script>
    <!-- Bootstrap WYSIHTML5 -->
    <script src="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>
    <!-- iCheck -->
    <script src="plugins/iCheck/icheck.min.js" type="text/javascript"></script>
    <!-- Slimscroll -->
    <script src="plugins/slimScroll/jquery.slimscroll.min.js" type="text/javascript"></script>
    <!-- FastClick -->
    <script src='plugins/fastclick/fastclick.min.js'></script>
    <!-- AdminLTE App -->
    <script src="dist/js/app.min.js" type="text/javascript"></script>

    <!-- AdminLTE dashboard demo (This is only for demo purposes) -->
   <!-- <script src="dist/js/pages/dashboard.js" type="text/javascript"></script>-->
	  
	  
<?php
include 'include/footer.php';
?>