<?php
ob_start();
error_reporting(0);
include("connect.php");
session_start();
$ver = $_SESSION['distributor_user_id'];
$user_role= $_SESSION['user_role']; 
if(!isset($_SESSION["distributor_user_id"])){
   header('location:https://tarkashcorp.appexperts.net/index.php');
}
?>
<!DOCTYPE html>
<html lang="en">
    <head>
    <?php include("link_head.php");?>  
	  
	<script>
	function myFunction() {
		var txt;
		var r = confirm("Are you sure to cancel!");
		if (r == true) {
			window.location.href="brand-master.php";
		} 
	}
	</script>

	<style>
	::-webkit-scrollbar {
		display: none;
		overflow: hidden;
	}
	</style>
	<script>
	window.onscroll = function () {
	window.scrollTo(0,0);
	}
	</script>
	
	<!-- END HEAD -->
	</head>
	
    <body class="" onload="changecolor12();">
        <!-- BEGIN HEADER -->
		<?php include("header.php");?>
        <!-- END HEADER -->
		
        <!-- BEGIN CONTAINER -->
        <div class="container-fluid">
            <div class="page-content page-content-popup">
                <div class="page-content-fixed-header">
                    <!-- BEGIN BREADCRUMBS
                    <ul class="page-breadcrumb">
                        <li>
                            <a href="#">Dashboard</a>
                        </li>
                        <li>Admin Dashboard</li>
                    </ul>
                    <!-- END BREADCRUMBS -->  
                </div>
                <div class="page-sidebar-wrapper">
                    <!-- BEGIN SIDEBAR -->
                    <?php include("menu.php");?> 
				    <!-- END SIDEBAR -->
                </div>
                <div class="page-fixed-main-content">
                        <div class="row">
                            <div class="col-md-12">
                                <!-- BEGIN SAMPLE TABLE PORTLET-->
                                <div class="portlet">
                                    <div class="portlet-title">
                                        <div class="caption">
                                            <i class="fa fa-bell-o"></i>Add Brand</div>
											<div class="actions">
										
										   <div class="form-group">
										   <a href="brand-master.php"><button type="submit" style="padding:3px 10px;" class="btn btn-outline btn-circle blue btn-sm blue" name="searchd">Back </button></a>
											</div>
                                            </div>
                                    </div>
									
                                    <div class="portlet-body form" >
                                        <form method="post" name="form1" action="add-brand-confirmation.php" onsubmit="return Uploadfxn();" enctype="multipart/form-data">
                                            <div class="form-body">
											<div class="form-group">
											
											<div class="col-md-4">
											<label>BRAND NAME <span style="color:red;">*</span></label>
                                             <input type="text" class="form-control" required placeholder="BRAND NAME" name="brand_name" onkeypress='return (event.charCode >= 95 && event.charCode <= 122) || (event.charCode >= 65 && event.charCode <= 90)'>
											</div>
											
											</div>
											<br clear="all"><br>
											<??>
                                            <div class="form-actions">
											<?php if($user_role=="Admin") { ?>
                                                <button type="submit" name="sub" class="btn blue">Submit</button>
                                                <button type="button" onclick="myFunction()" name="subcancel" class="btn blue">Cancel</button>
											<?php } ?>
                                            </div>
                                            </div>
                                        </form>
                                </div>
                                <!-- END SAMPLE TABLE PORTLET-->
                            </div>
						</div>
                    </div>
                    <div class="clearfix"></div>
                    <!-- END DASHBOARD STATS 1-->
                    <!-- END PAGE BASE CONTENT -->
                </div>		
		    <!-- END CONTAINER -->
            <!-- BEGIN FOOTER 
			<a href="#index" class="go2top">
                    <i class="icon-arrow-up"></i>
                </a>
                <!-- END FOOTER -->
            </div>
			<div class="copyright-v2" style="padding:3px; margin-top:-18px;"> 
		    <?=date("Y")?> &copy; Tarkashcorp Developed By <a target="_blank" href="http://www.belltechnology.in">Bell Technology</a>
           </div>
        </div>
        <!-- END CONTAINER -->
        <!-- BEGIN QUICK SIDEBAR -->
        <a href="javascript:;" class="page-quick-sidebar-toggler">
            <i class="icon-login"></i>
        </a>
        
        <!-- END QUICK SIDEBAR -->
        <!-- BEGIN QUICK NAV -->
        
        <div class="quick-nav-overlay"></div>
        <!-- END QUICK NAV -->
        
        <!-- BEGIN CORE PLUGINS -->
        <?php include("link_script.php");?>  
        <!-- END THEME LAYOUT SCRIPTS -->
        <script>
            $(document).ready(function()
            {
                $('#clickmewow').click(function()
                {
                    $('#radio1003').attr('checked', 'checked');
                });
            })
        </script>
    </body>
</html>
            