<?php include 'connection.php';
session_start();
if (!isset($_SESSION['is_logged_in'])) {
    header("Location:login.php");
    die();
    }
date_default_timezone_set('Asia/Calcutta');
$today = date("d/m/Y");
$today1 = date("d/m");
$currentmonth = date(m);

?>

<? include('sahavas_dropdown_function.php');?>
<?php 

$query = "select * from users where username = '". $_SESSION["LOGIN_NAME"]."' AND password = '".$_SESSION["EMPLOYEE_PASSWORD"]."'";
//echo $query;
		                 $result = mysql_query($query,$conn);
						 while($row=mysql_fetch_array($result))
	                                              	{
													 $staff_name = $row['full_name'];
													  $full_name = $row['full_name'];
													  $avatar = $row['avatar'];
													  $department_name = $row['department_name'];
													  $staff_id  = $row['id'];
													  $username = $row['username'];
													  $our_company = $row['our_company'];
													  $designation = $row['designation'];
													  $sales_group = $row['sales_group'];
													  $head = $row['head'];
													  $region = $row['region'];
													  $district = $row['district'];
													  $email = $row['email'];
													  $mobile_no = $row['mobile_no'];
													  $staff_id_self  = $row['id'];
													  //echo $Branch;
													  }	
													   ?>	
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>THREESTAR - CRM</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.6 -->
  <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
  <!-- jvectormap -->
  <link rel="stylesheet" href="plugins/jvectormap/jquery-jvectormap-1.2.2.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="dist/css/AdminLTE.min.css">
  <link rel="stylesheet" href="dist/css/skins/_all-skins.min.css">
  <style>
  table {
  border: 1px solid #ccc;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  table-layout: fixed;
}
table caption {
  font-size: 1.2em;
  margin: .5em 0 .75em;
}
table tr {
  
  border: 1px solid #ddd;
  padding: .35em;
}
table th,
table td {
  padding: .625em;
  
}
table th {
  font-size: .9em;
  letter-spacing: .0em;
  text-transform: uppercase;
}
@media screen and (max-width: 600px) {
  table {
    border: 0;
  }
  table caption {
    font-size: 1.8em;
  }
  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  table tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: .625em;
  }
  table td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: .9em;
    
  }
  table td:before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  table td:last-child {
    border-bottom: 0;
  }
}

</style>												   
<script type="text/javascript" src="jquery.min.js"></script>
   <script src="jquery-ui.js"></script>
   <link rel="stylesheet" href="jquery-ui.css">

</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<? depat_check($department_name,$designation);?>
<!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        Dashboard
        <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">
      <!-- Info boxes -->
        <div>
		
<form action="insert_more_address.php" method="post" name="myform">
<input type="hidden" value="<? echo $_REQUEST['customer_id'] ?>" name="customer_id">

	<input type="hidden" value="<? echo $_REQUEST['id'] ?>" name="id">
		
		<div>
			<div class="col-xs-12">
				
					<table class="table table-bordered">
  <tr>
    <td width="85%"><h6><span class="glyphicon glyphicon-map-marker"></span>&nbsp;Address Information&nbsp;</h6></td>
    <td><a href="edit_accounts.php?customer_id=<? echo $_REQUEST['customer_id'];?>&&id=<? echo $_REQUEST['id'];?>" target="_parent">	
						<button type="button" class="btn btn-success">
							<span class="glyphicon glyphicon-plus"></span>&nbsp;Back
						</button>
						</a>	</td>
  </tr>
</table></div>
				</div>	<div  class="col-xs-12">
						<div>
							
						  	
						  	<table class="table table-bordered">
								<tbody>
									<tr>
									  <th class="left" colspan="5">Shipping Addresss&nbsp;</th>
									</tr>
								</tbody>
						     	<tbody>
						        	<tr>
						        		<td rowspan="2">
						        			<div class="form-group">
												<label for="saddrl1"><span class="glyphicon glyphicon-map-marker"></span>&nbsp;Address:&nbsp;</label>
												<textarea class="form-control" rows="4" style="resize:vertical;" name="saddrl1" id="saddrl1" maxlength="250"></textarea>
											</div>
						        		</td>
						        		<td>
						        			<div class="form-group">
												<input name="accscountry" id="accscountry" value="" type="hidden">
												<label for="bcountry"><span class="glyphicon glyphicon-road"></span>&nbsp;Country:&nbsp;</label>
												<select class="form-control" name="scountry" id="scountry">
									            	<option value=""></option>
										        	<? echo country(); ?>
													
													
												</select>
											</div>
						        		</td>
						        		<td>
						        			<div class="form-group">
												<label for="sstate"><span class="glyphicon glyphicon-road"></span>&nbsp;State:&nbsp;</label>
													
														
														<select style="" class="form-control" name="sstate" id="sstate">
															<option value=""></option>
									                 		
															
															<? echo state(); ?>
														</select>
														
														
														
											<input style="display: none;" class="form-control" id="osstate" name="osstate" type="text">
												
											</div>
						        		</td>
						        		<td>
						        			<div class="form-group">
												<label for="bdistrict"><span class="glyphicon glyphicon-road"></span>&nbsp;District:&nbsp;</label>
						<input class="form-control" id="sdistrict" name="sdistrict"  type="text">
						
											</div>
						        		</td>
						        		<td>
						        			<div class="form-group">
												<label for="scity"><span class="glyphicon glyphicon-road"></span>&nbsp;City:&nbsp;</label>
												<input class="form-control" name="scity" id="scity"  type="text">
											</div>
						        		</td>
										<td>
						        			<div class="form-group">
												<label for="bpin"><span class="glyphicon glyphicon-pushpin"></span>&nbsp;State Code:&nbsp;</label>
												<input class="form-control" id="bpin" name="sstate_code"  onChange="isnumericbpin('bpin');" type="text" value="<? echo $sstate_code;?>">
												
											</div>
						        		</td>
						       		</tr>
						        	<tr>
						        		<td>
						        			<div class="form-group">
												<label for="spin"><span class="glyphicon glyphicon-pushpin"></span>&nbsp;PinCode:&nbsp;</label>
								<input class="form-control" id="spin" name="spin"  type="text">
											</div>
						        		</td>
						        		<td>
						        			<div class="form-group">
												<label for="semail"><span class="glyphicon glyphicon-envelope"></span>&nbsp;Email:&nbsp;</label>
												<input class="form-control" id="semail" name="semail"  type="text">
											</div>
						        		</td>
						        		<td>
						        			<div class="form-group">
												<label for="bphone"><span class="glyphicon glyphicon-phone-alt"></span>&nbsp;Phone No:&nbsp;</label>
												<input class="form-control" id="sphone" name="sphone" type="text">
											</div>
						       			</td>
						        		<td>
						        			<div class="form-group">
												<label for="sfax"><span class="glyphicon glyphicon-print"></span>&nbsp;Fax:&nbsp;</label>
												<input class="form-control" id="sfax" name="sfax" type="text">
											</div>
						        		</td><td>
						        			<div class="form-group">
												<label for="bfax"><span class="glyphicon glyphicon-pushpin"></span>&nbsp;GST No:&nbsp;</label>
												<input class="form-control" id="sgst_no" name="sgst_no" value="" onChange="getFieldValues('bgst_no');" type="text">
											</div>
										
											
						        		</td>
						        	</tr>
						   		</tbody>
						  	</table>
							
							 
						</div>	
					</div>	
			
			
			
			
			
			
			
	
		<div class="row">
			<div class="col-sm-12">
				<div class="filter-header">
					<div class="col-sm-12 right">
						
	          			<input type="submit" name="Submit" value="Save" class="btn btn-success"/>
	          			
          				
					
						 
					</div>
				</div>
			</div>
		</div>		 

</form>
	</div>
		
		</div>
    </section>
    <!-- /.content -->
  <!-- /.content-wrapper -->

  <footer class="main-footer">
    <div class="pull-right hidden-xs">
      <b>Version</b> 2.3.8
    </div>
     <strong>Copyright &copy; 2017 <a href="#"> THREESTAR SOLUTIONS & SERVICES PVT. LTD </a>.</strong> All rights
    reserved.
  </footer>

  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Create the tabs -->
    <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
      <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
      <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
    </ul>
    <!-- Tab panes -->
    <div class="tab-content">
      <!-- Home tab content -->
      <div class="tab-pane" id="control-sidebar-home-tab">
        <h3 class="control-sidebar-heading">Recent Activity</h3>
        <ul class="control-sidebar-menu">
          <li>
            <a href="javascript:void(0)">
              <i class="menu-icon fa fa-birthday-cake bg-red"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>

                <p>Will be 23 on April 24th</p>
              </div>
            </a>
          </li>
          <li>
            <a href="javascript:void(0)">
              <i class="menu-icon fa fa-user bg-yellow"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4>

                <p>New phone +1(800)555-1234</p>
              </div>
            </a>
          </li>
          <li>
            <a href="javascript:void(0)">
              <i class="menu-icon fa fa-envelope-o bg-light-blue"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4>

                <p>nora@example.com</p>
              </div>
            </a>
          </li>
          <li>
            <a href="javascript:void(0)">
              <i class="menu-icon fa fa-file-code-o bg-green"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4>

                <p>Execution time 5 seconds</p>
              </div>
            </a>
          </li>
        </ul>
        <!-- /.control-sidebar-menu -->

        <h3 class="control-sidebar-heading">Tasks Progress</h3>
        <ul class="control-sidebar-menu">
          <li>
            <a href="javascript:void(0)">
              <h4 class="control-sidebar-subheading">
                Custom Template Design
                <span class="label label-danger pull-right">70%</span>
              </h4>

              <div class="progress progress-xxs">
                <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
              </div>
            </a>
          </li>
          <li>
            <a href="javascript:void(0)">
              <h4 class="control-sidebar-subheading">
                Update Resume
                <span class="label label-success pull-right">95%</span>
              </h4>

              <div class="progress progress-xxs">
                <div class="progress-bar progress-bar-success" style="width: 95%"></div>
              </div>
            </a>
          </li>
          <li>
            <a href="javascript:void(0)">
              <h4 class="control-sidebar-subheading">
                Laravel Integration
                <span class="label label-warning pull-right">50%</span>
              </h4>

              <div class="progress progress-xxs">
                <div class="progress-bar progress-bar-warning" style="width: 50%"></div>
              </div>
            </a>
          </li>
          <li>
            <a href="javascript:void(0)">
              <h4 class="control-sidebar-subheading">
                Back End Framework
                <span class="label label-primary pull-right">68%</span>
              </h4>

              <div class="progress progress-xxs">
                <div class="progress-bar progress-bar-primary" style="width: 68%"></div>
              </div>
            </a>
          </li>
        </ul>
        <!-- /.control-sidebar-menu -->

      </div>
      <!-- /.tab-pane -->

      <!-- Settings tab content -->
      <div class="tab-pane" id="control-sidebar-settings-tab">
        <form method="post">
          <h3 class="control-sidebar-heading">General Settings</h3>

          <div class="form-group">
            <label class="control-sidebar-subheading">
              Report panel usage
              <input type="checkbox" class="pull-right" checked>
            </label>

            <p>
              Some information about this general settings option
            </p>
          </div>
          <!-- /.form-group -->

          <div class="form-group">
            <label class="control-sidebar-subheading">
              Allow mail redirect
              <input type="checkbox" class="pull-right" checked>
            </label>

            <p>
              Other sets of options are available
            </p>
          </div>
          <!-- /.form-group -->

          <div class="form-group">
            <label class="control-sidebar-subheading">
              Expose author name in posts
              <input type="checkbox" class="pull-right" checked>
            </label>

            <p>
              Allow the user to show his name in blog posts
            </p>
          </div>
          <!-- /.form-group -->

          <h3 class="control-sidebar-heading">Chat Settings</h3>

          <div class="form-group">
            <label class="control-sidebar-subheading">
              Show me as online
              <input type="checkbox" class="pull-right" checked>
            </label>
          </div>
          <!-- /.form-group -->

          <div class="form-group">
            <label class="control-sidebar-subheading">
              Turn off notifications
              <input type="checkbox" class="pull-right">
            </label>
          </div>
          <!-- /.form-group -->

          <div class="form-group">
            <label class="control-sidebar-subheading">
              Delete chat history
              <a href="javascript:void(0)" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>
            </label>
          </div>
          <!-- /.form-group -->
        </form>
      </div>
      <!-- /.tab-pane -->
    </div>
  </aside>
  <!-- /.control-sidebar -->
  <!-- Add the sidebar's background. This div must be placed
       immediately after the control sidebar -->
  <div class="control-sidebar-bg"></div>

</div>
<!-- ./wrapper -->

<!-- jQuery 2.2.3 -->
<script src="plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="bootstrap/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="plugins/fastclick/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/app.min.js"></script>
<!-- Sparkline -->
<script src="plugins/sparkline/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<!-- SlimScroll 1.3.0 -->
<script src="plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- ChartJS 1.0.1 -->
<script src="plugins/chartjs/Chart.min.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>
<script type="text/javascript" src="js/date-time-picker.js"></script>

</body>
</html>
