 
<form class="" method="post" id="guardar_cliente" name="guardar_cliente">
<!-- Modal -->
<div class="modal fade" id="cliente_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">Nuevo Cliente</h4>
      </div>
      <div class="modal-body">
	  
      
 <div class="nav-tabs-custom">
                <ul class="nav nav-tabs">
                  <li class="active"><a href="#activity" data-toggle="tab">Datos del cliente</a></li>
                  <li><a href="#settings" data-toggle="tab">Dirección</a></li>
                </ul>
                <div class="tab-content">
                  <div class="active tab-pane" id="activity">
				  
				  <div class="row">
					<div class='col-md-12'>
						<label for="bussines_name">Nombre</label>
						<input type="text" class="form-control" id="bussines_name"  name="bussines_name" required>						
					</div>
				  </div>
				  
				  
				  <div class="row">
					
					<div class='col-md-5'>
						<label for="website">Sitio web</label>
						<input type="url" class="form-control" id="website" name="website">						
					</div>
					<div class='col-md-4'>
						<label for="work_phone">Teléfono</label>
						<input type="text" class="form-control" id="work_phone" name="work_phone" required>						
					</div>
					<div class='col-md-3'>
						<label for="tax_number">Registro fiscal Nº</label>
						<input type="text" class="form-control" id="tax_number" name="tax_number">						
					</div>
				  </div>

				  <div class="row">
				  <div class='col-md-12'>
				  <br>
					<div style="font-size:14px;	font-weight:bold;border-bottom: 1px solid #ddd;padding: 5px 5px 5px 0px;width:100%;margin-bottom:10px">Datos de contacto</div>
				  </div>
					<div class='col-md-6'>
						<label for="first_name">Nombres</label>
						<input type="text" class="form-control" id="first_name" name="first_name" required>					
					</div>
					<div class='col-md-6'>
						<label for="last_name">Apellidos</label>
						<input type="text" class="form-control" id="last_name" name="last_name" required>					
					</div>
					
				  </div>
				  
				  <div class="row">
				  
					<div class='col-md-6'>
						<label for="email">Correo Electrónico</label>
						<input type="email" class="form-control" id="email" name="email">					
					</div>
					<div class='col-md-6'>
						<label for="phone">Teléfono</label>
						<input type="text" class="form-control" id="phone" name="phone" required>					
					</div>
					
				  </div>
                    
                      

                   
                    

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

                  <div class="tab-pane" id="settings">
                    <div class="row">
							<div class='col-md-12'>
								<label for="address1">Calle</label>
								<input type="text" class="form-control" id="address1" name="address1">
							</div>
							
					</div>

					<div class="row">
							<div class='col-md-6'>
								<label for="city">Ciudad</label>
								<input type="text" class="form-control" id="city" name="city">
							</div>
							
							<div class='col-md-6'>
								<label for="state">Región/Provincia</label>
								<input type="text" class="form-control" id="state" name="state">
							</div>
							
					</div>
					
					
					<div class="row">
							
							<div class='col-md-6'>
								<label for="postal_code">Código Postal</label>
								<input type="text" class="form-control" id="postal_code" name="postal_code">
							</div>
							
							<div class='col-md-6'>
								<label for="country_id">País</label>
								<?php 
								$query_countries=mysqli_query($con,"select * from countries order by name");
								?>
								<select class='form-control' name="country_id" id="country_id">
								<option value="0" >Selecciona</option>
									<?php
										while ($rw_countries=mysqli_fetch_array($query_countries)){
											?>
											<option value="<?php echo $rw_countries['id'];?>" ><?php echo utf8_encode($rw_countries['name']);?></option>
											<?php 
										}
									?>
								</select>
							</div>
							
					</div>
                      
                      
                     
                      
                    
                  </div><!-- /.tab-pane -->
                </div><!-- /.tab-content -->
              </div><!-- /.nav-tabs-custom -->
	 
	  
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
        <button type="submit" id="guardar_datos" class="btn btn-primary">Registrar</button>
      </div>
    </div>
  </div>
</div>
</form>