<?php

session_start();


if (!isset($_SESSION['admin_userName'])) {
    header('Location: login.php');
    }
?>
<?php include 'header.php';?>
<body>
<div class="card" style=" border-radius: 8px; margin-top: 10px">
    <div id="row" style="margin-top: 10px">
        <div class="col-md-12"> 
        	
            <div class="table-title">
                <div class="row">
                    <div class="col-sm-12 " style="text-align: center;"><h3><b>Edit Charges</b></h3></div>
                </div>
                <p class="solid1" style="outline-style: solid; margin-top: 5px;  color: #00AC8B"></p>
            </div>

            <!--Main Cards-->
            <div class="row" style="margin-left: 60px; margin-right: 60px;">
                <!--Hidden Card-->
                <div id="addBranchDiv" class="col-md-4 card_pos">
                     <div class="addBranch text-center overlay_card">
                            <form action="../Admin_modules/edit_branch.php" method="post">
                                <div class="wrap">
                                    <p class="head">Branch Name: <b><?php echo $_GET['name']?></b></p>
                                    <p class="head">Courier Parcel Charges: <b><?php echo $_GET['cc']?></b></p>
                                    <p class="head">Courier Documents Charges: <b><?php echo $_GET['docs']?></b></p>
                                    <p class="head">Courier VVP Charges: <b><?php echo $_GET['vvp']?></b></p>
                                </div>
                                <hr style="background: #272727;">
                                <div class="wrap" id="imgCheck">
                                    <p class="head">Enter New Parcel Charges (in Rs/Kg)</p>
                                    <input type="text" id="new_cc" name="new_cc" required>
                                </div>
                                <div class="wrap" id="imgCheck">
                                    <p class="head">Enter New Document Charges (in Rs/Kg)</p>
                                    <input type="text" id="new_docs" name="new_docs" required>
                                </div>
                                <div class="wrap" id="imgCheck">
                                    <p class="head">Enter New Courier VVP Charges (in Rs/Rs1000)</p>
                                    <input type="text" id="new_cc_vvp" name="new_cc_vvp" placeholder="Enter Old value if same" required>
                                </div>
                                <input type="hidden" id="branch" name="branch" value="<?php echo $_GET['name']?>">
                                <div class="wrap">
                                    <button name="submit" type="submit" class="btn btn-info">SUBMIT</button>
                                </div>
                            </form>
                     </div>
                </div> 
           </div>
        </div>
    </div>
</div>
</body>
</html>