MMCT TEAM
Server IP : 162.214.80.37  /  Your IP : 216.73.216.83
Web Server : Apache
System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : imyrqtmy ( 2189)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home2/imyrqtmy/public_html/crm/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/public_html/crm/user_add.php
<?php
session_start();
if (!isset($_SESSION['uid'])) {
    header("Location: login.php");
}

$se = $_SESSION["uid"];

include 'include/config.php'; 

?>
<!doctype html>
<html lang="en">

    
<?php include 'include/head.php'; ?>

    <body>

    <!-- <body data-layout="horizontal"> -->

        <!-- Begin page -->
        <div id="layout-wrapper">

            
         <?php include 'include/header.php'; ?>

          <div class="vertical-menu">

                <div data-simplebar class="h-100">

                    <!--- Sidemenu -->
                    <?php include 'include/menu.php'; ?>
                    <!-- Sidebar -->
                </div>
            </div>

            

            <!-- ============================================================== -->
            <!-- Start right Content here -->
            <!-- ============================================================== -->
            <div class="main-content">

                <div class="page-content">
                    <div class="container-fluid">

                        <!-- start page title -->
                        <div class="row">
                            <div class="col-12">
                                <div class="page-title-box d-sm-flex align-items-center justify-content-between">
                                    <h4 class="mb-sm-0 font-size-18">User Add</h4>

                                    

                                </div>
                            </div>
                        </div>
                        <!-- end page title -->
                        <form method="POST" action="action/user_add.php" enctype="multipart/form-data">
                        <div class="row">
                            <div class="col-12">
                                <div class="card">
                                    
                                    <div class="card-body p-4">
        
                                        <div class="row">
                                            <div class="col-lg-4">
                                                <div>
                                                    <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">Prefix</label>
                                                        <input class="form-control" type="text" placeholder="" name="prefix" id="example-text-input">
                                                    </div>
                                                    
                                                </div>
                                            </div>

                                            <div class="col-lg-4">
                                                <div>
                                                    <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">First Name</label>
                                                        <input class="form-control" type="text" placeholder="" name="fname" id="example-text-input">
                                                    </div>
                                                    
                                                </div>
                                            </div>

                                            <div class="col-lg-4">
                                                <div>
                                                    <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">Last Name</label>
                                                        <input class="form-control" type="text" placeholder="" name="lname" id="example-text-input">
                                                    </div>
                                                    
                                                </div>
                                            </div>

                                            <div class="col-lg-4">
                                                <div>
                                                    <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">Email</label>
                                                        <input class="form-control" type="email" placeholder="" name="email" id="example-text-input">
                                                    </div>
                                                    
                                                </div>
                                            </div>

                                            <div class="col-lg-4">
                                                <div>
                                                    <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">Mobile No</label>
                                                        <input class="form-control" type="text" placeholder="" name="con_no" id="example-text-input">
                                                    </div>
                                                    
                                                </div>
                                            </div>

                                            <div class="col-lg-4">
                                                <div>
                                                    <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">Date of Birth</label>
                                                        <input class="form-control" type="date" placeholder="" name="dob" id="example-text-input">
                                                    </div>
                                                    
                                                </div>
                                            </div>

                                            <div class="col-lg-4">
                                                <div>
                                                    <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">Gender</label>
                                                        <select class="form-select" name="gender">
                                                            <option>Select</option>
                                                            <option>Male</option>
                                                            <option>FeMale</option>
                                                        </select>
                                                    </div>
                                                    
                                                </div>
                                            </div>

                                             <div class="col-lg-4">
                                                <div>
                                                    <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">Present Address</label>
                                                        <textarea id="progresspill-address-input" name="pre_add" class="form-control" rows="2" placeholder="Enter your address"></textarea>
                                                    </div>
                                                    
                                                </div>
                                            </div>

                                            <div class="col-lg-4">
                                                <div>
                                                    <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">Permanent Address</label>
                                                        <textarea id="progresspill-address-input" class="form-control" name="parm_add" rows="2" placeholder="Enter your address"></textarea>
                                                    </div>
                                                    
                                                </div>
                                            </div>

                                            <div class="col-lg-4">
                                                <div>
                                                    <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">Marital Status</label>
                                                        <select class="form-select" name="m_status">
                                                            <option value="">Select Marital Status</option>
                       
                                                           <option value="married">Married</option>
                                                           <option value="unmarried">Unmarried</option>
                                                           <option value="divorce">Divorce</option>
                                                        </select>
                                                    </div>
                                                    
                                                </div>
                                            </div>

                                            <div class="col-lg-4">
                                                <div>
                                                    <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">Investment Amount</label>
                                                         <input class="form-control" type="text" placeholder="" name="i_amt" id="example-text-input">

                                                    </div>
                                                    
                                                </div>
                                            </div>

                                            

                                             <div class="col-lg-4">
                                                <div>
                                                    <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">Sub Broker</label>
                                                        <select class="form-select" name="subbroker" id="subbroker">
                                                         <option value="">Select Sub Broker</option>
                                                            
                                                            <?php
                                                               
                                                                $result = mysqli_query($con,"SELECT * FROM tbl_subbroker");
                                                                while($row = mysqli_fetch_array($result)) {
                                                                
                                                                ?>
                                                                   <option value="<?php echo $row['id'];?>"><?php echo $row['name'] ;?></option>
                                                                <?php
                                                                
                                                                
                                                                }
                                                                ?>
                                                                
                                                        </select>
                                                    </div>
                                                    
                                                </div>
                                            </div>

                                            <div class="col-lg-4">
                                                <div>
                                                    <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">Country</label>
                                                        <select class="form-select" name="contry" id="country">
                                                         <option value="">Select Country</option>
                                                            
                                                            <?php
                                                               
                                                                $result = mysqli_query($con,"SELECT * FROM countries");
                                                                while($row = mysqli_fetch_array($result)) {
                                                                
                                                                ?>
                                                                   <option value="<?php echo $row['id'];?>"><?php echo $row['name'] ;?></option>
                                                                <?php
                                                                
                                                                
                                                                }
                                                                ?>
                                                                
                                                        </select>
                                                    </div>
                                                    
                                                </div>
                                            </div>

                                            

                                             <div class="col-lg-4" id="sta">
                                                 <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">State</label>
                                                        <select class="form-select" name="state" id="state">
                                                         <option value="">Select State</option>
                                                            
                                                            <?php
                                                               
                                                                $result = mysqli_query($con,"select * from tbl_states where country_id ='101'");
                                                                while($row = mysqli_fetch_array($result)) {
                                                                   
                                                                ?>
                                                                   <option value="<?php echo $row['id'];?>"><?php echo $row['name'] ;?></option>
                                                                <?php
                                                                
                                                                
                                                                }
                                                                ?>
                                                                
                                                        </select>
                                                    </div>
                                             </div>

                                             <div class="col-lg-4" id="sta1">
                                                 <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">City</label>
                                                        <select class="form-select" name="city" id="city">
                                                         <option value="">Select State First</option>
                                                            
                                                           
                                                                
                                                        </select>
                                                    </div>
                                             </div>

                                              <div class="col-lg-4">
                                                <div>
                                                    <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">Religion</label>
                                                        <select class="form-select" name="religion" id="religion">
                                                         <option value="">Select Religion</option>
                                                            
                                                            <?php
                                                               
                                                                $result = mysqli_query($con,"SELECT * FROM tbl_religion");
                                                                while($row = mysqli_fetch_array($result)) {
                                                                
                                                                ?>
                                                                   <option value="<?php echo $row['id'];?>"><?php echo $row['name'] ;?></option>
                                                                <?php
                                                                
                                                                
                                                                }
                                                                ?>
                                                                
                                                        </select>
                                                    </div>
                                                    
                                                </div>
                                            </div>

                                            <div class="col-lg-4">
                                                <div>
                                                    
                                                    <div class="mb-3">
                                                        <label for="validationCustom01" class="form-label"> Aadhar (Front side)</label>
                                                        <input type="file"  class="form-control "  name="do_photo" id="do_photo" onchange="readThumb(this, 'thumb-error')" class="" accept="image/*" required="">
                                                        <div id="thumb" class="col-md-4"></div>
                                                        <div id="thumb-error" style="color: red; margin: 10px 0px 0 10px; display: none;">Please upload file having extensions .jpeg / .jpg / .png only.
                                                        </div>
                                                        
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="col-lg-4">
                                                <div>
                                                    <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">Aadhar (Back side)</label>
                                                        <input type="file"  class="form-control "  name="do_photo1" id="do_photo" onchange="readThumb(this, 'thumb-error')" class="" accept="image/*" required="">
                                                        <div id="thumb" class="col-md-4"></div>
                                                        <div id="thumb-error" style="color: red; margin: 10px 0px 0 10px; display: none;">Please upload file having extensions .jpeg / .jpg / .png only.
                                                        </div>
                                                    </div>
                                                    
                                                </div>
                                            </div>

                                            <div class="col-lg-4">
                                                <div>
                                                    <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">Pan Card</label>
                                                        <input type="file"  class="form-control "  name="do_photo2" id="do_photo" onchange="readThumb(this, 'thumb-error')" class="" accept="image/*" required="">
                                                        <div id="thumb" class="col-md-4"></div>
                                                        <div id="thumb-error" style="color: red; margin: 10px 0px 0 10px; display: none;">Please upload file having extensions .jpeg / .jpg / .png only.
                                                        </div>
                                                    </div>
                                                    
                                                </div>
                                            </div>

                                            <div class="col-lg-4">
                                                <div>
                                                    <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">Bank Deatils</label>
                                                        <input type="file"  class="form-control "  name="do_photo3" id="do_photo" onchange="readThumb(this, 'thumb-error')" class="" accept="image/*" required="">
                                                        <div id="thumb" class="col-md-4"></div>
                                                        <div id="thumb-error" style="color: red; margin: 10px 0px 0 10px; display: none;">Please upload file having extensions .jpeg / .jpg / .png only.
                                                        </div>
                                                    </div>
                                                    
                                                </div>
                                            </div>

                                            <div class="col-lg-4">
                                                <div>
                                                    <div class="mb-3">
                                                        <label for="example-text-input" class="form-label">other Document</label>
                                                        <input type="file"  class="form-control "  name="do_photo4" id="do_photo" onchange="readThumb(this, 'thumb-error')" class="" accept="image/*" required="">
                                                        <div id="thumb" class="col-md-4"></div>
                                                        <div id="thumb-error" style="color: red; margin: 10px 0px 0 10px; display: none;">Please upload file having extensions .jpeg / .jpg / .png only.
                                                        </div>
                                                    </div>
                                                    
                                                </div>
                                            </div>




                                        </div>

                                        <div class="mt-4">
                                                            <button type="submit" class="btn btn-primary w-md">Submit</button>
                                        </div>

                                    </div>
                                </div>
                            </div> <!-- end col -->
                        </div>
                        </form>
                       <!-- end row -->
                    </div> <!-- container-fluid -->
                </div>
                <!-- End Page-content -->

                <?php include 'include/footer.php'; ?>
                
            </div>
            <!-- end main content-->

        </div>
        <!-- END layout-wrapper -->

        
        <!-- Right Sidebar -->
        <?php include 'include/rightsidebar.php'; ?>
        <!-- /Right-bar -->

        <!-- Right bar overlay-->
        <div class="rightbar-overlay"></div>

        <?php include 'include/bscript.php'; ?>

        <script type="text/javascript">
//      $(document).ready(function() {




//             $('#country').on('change', function() {
//                 var conID = $(this).val();
//                 // alert(conID);
//                 $.ajax({  
//                     type: 'POST',  
//                     url: 'Ajax/get_state.php', 
//                     data: {state: conID },
//                     success: function(response) {
//                         // alert(response);
//                          $('#sta').html(response);
//         // content.html(response);
//     }
// });
//             });
//         });
</script>
<script type="text/javascript">
     $(document).ready(function() {

        $('#sta').hide();
        $('#sta1').hide();
        


            $('#country').on('change', function() {
                var conID = $(this).val();
                // alert(conID);
                $.ajax({  
                    type: 'POST',  
                    url: 'Ajax/get_state_city.php', 
                    data: {state: conID },
                    success: function(response) {
                       if(response==1)
                        {
                            $('#sta').show();
                            $('#sta1').show();   
                        }
                        else
                        {
                            $('#sta').hide();
                        $('#sta1').hide();
                        }
    }
});
            });
        });
</script>
<script type="text/javascript">
     $(document).ready(function() {
            $('#state').on('change', function() {
                var stateID = $(this).val();
                // alert(conID);
                $.ajax({  
                    type: 'POST',  
                    url: 'Ajax/get_citys.php', 
                    data: {city: stateID },
                    success: function(response) {
                        // alert(response);
                         $('#city').html(response);
        // content.html(response);
    }
});
            });
        });
</script>


    </body>

<!-- Mirrored from themesbrand.com/minia/layouts/tables-datatable.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 20 May 2023 06:14:37 GMT -->
</html>

MMCT - 2023