<?php
if($user_type!=1){
?>
<div class="row " style="margin-left:-30px">
    <div class="col-lg-12 col-md-12">
        <div class="card card-shadow-danger" style="height:180px">
            <h5 class="div-head" style="font-size:14px;padding-top:15px;padding-bottom:10px"><b style="font-weight:500">Upload Files</b></h5>
            <form action="new2.php" method="post" enctype="multipart/form-data">
            <div class="row mt-5 ml-5">
                    <input type='hidden' id='user_type' name='user_type' value='<?php echo $user_type; ?>'>
                	<input type='hidden' id='dealer_code' name='dealer_code' value='<?php echo $dealer_code; ?>'>
                	<input type='hidden' id='user' name='user' value='<?php echo $user; ?>'>
                    <div class="col-lg-10">
                        <h2 id="err_msg2" style="color:red;font-size:14px;font-weight:bold;display:none;">Error : Select atleast one filter other than quarter filter to export</h2>
                        <input id="uploadFile3" type="file" name="uploadFile3" style="cursor:pointer;"/>
                    </div>
                    <div class="col-lg-2">
                        <button type="submit" name="upload3" id="upload3" class="btn-transition btn btn-outline-primary btn-sm" style="width:90px;position:absolute;top:40px"> Upload </button> 
                    </div>
                
            </div>
            </form>
        </div>
    </div>
</div>
<?php
}
else 
{ ?>

<div class="row " style="margin-left:-30px;display:none;">
    <div class="col-lg-12 col-md-12">
        <div class="card card-shadow-danger" style="height:180px">
            <h5 class="div-head" style="font-size:14px;padding-top:15px;padding-bottom:10px"><b style="font-weight:500">Upload Files</b></h5>
            <form action="new2.php" method="post" enctype="multipart/form-data">
            <div class="row mt-5 ml-5">
                    <input type='hidden' id='user_type' name='user_type' value='<?php echo $user_type; ?>'>
                	<input type='hidden' id='dealer_code' name='dealer_code' value='<?php echo $dealer_code; ?>'>
                	<input type='hidden' id='user' name='user' value='<?php echo $user; ?>'>
                    <div class="col-lg-10">
                        <h2 id="err_msg2" style="color:red;font-size:14px;font-weight:bold;display:none;">Error : Select atleast one filter other than quarter filter to export</h2>
                        <input id="uploadFile3" type="file" name="uploadFile3" style="cursor:pointer;"/>
                    </div>
                    <div class="col-lg-2">
                        <button type="submit" name="upload3" id="upload3" class="btn-transition btn btn-outline-primary btn-sm" style="width:90px;position:absolute;top:40px"> Upload </button> 
                    </div>
                
            </div>
            </form>
        </div>
    </div>
</div>

<?php } ?>


<div class="row mt-1" style="margin-left:-30px">
    <div class="col-lg-12 col-md-12">
        <div class="card card-shadow-danger" >
            <h5 class="div-head" style="font-size:14px;padding-top:15px;padding-bottom:10px"><b style="font-weight:500">Scores</b>
                <button type="button" id="KeyOverall" class="btn-transition btn btn-outline-primary btn-sm vocnot" onclick="exportExcel(this.id);" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Export Excel" style="float:right;color:white !important;border-color:white ">
                    EXPORT
                </button>
            </h5>
            <table id="allT2" class="table table-striped table-bordered no-footer text-center display" style="font-size:12px">
                <thead style="background-color:#002a5c;color:#fff;width:100%">
                    <tr>
                        <td id="first_row2">S.no</td>
                        <td>Name</td>
                        <td>All India Score</td>
                        <td>Filtered Score</td>
                        <td>Comments</td>
                        <td style="display:none;">Zone</td>
                        <td style="display:none;">Region</td>
                        <td style="display:none;">Main dealer_name</td>
                        <td style="display:none;">Dealer name</td>
                        <td style="display:none;">State</td>
                        <td style="display:none;">City</td>
                        <td style="display:none;">Quarter</td>
                        
                        
                        
                    </tr>
                </thead>
                <tbody>
                    
                </tbody>

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