<?php
include('db_connection.php');

$Mainclass=new DB_Controller();

$Order_Id=base64_decode($_REQUEST['o']);
$Get_Donation_value=$Mainclass->Fetch_individual_data('gold_billing_order_master',"Donation","Order_No='".$Order_Id."'");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>

<link href="https://fonts.googleapis.com/css?family=Quicksand&display=swap" rel="stylesheet">

<script type="text/javascript" src="files/bower_components/jquery/js/jquery.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.6.2/chosen.css">

<style type="text/css">

body{

margin:0px;

padding:0px;

font-family: quicksand, sans-serif !important;

}

.chosen-container-single .chosen-single{
width:460px;    
} 

.wrapper{

float:left;

width:100%;

height:auto;

}



.header_div{

float:left;

width:100%;

height:auto;

padding: 15px 0%;

border-bottom: 1px solid #e9ecef;

font-size:20px;

color:#000000;
font-weight:600;

text-transform:uppercase;

}



.body_maindiv{

float:left;

width:100%;

height:auto;

padding:5% 0%;

}

.title{
float:left;
width:100%;
text-align:left;
color:#000;
font-weight:700;
margin-bottom:10px;
}



.heading_maindiv{

float:left;

width:100%;

height:auto;

text-align:left;

font-size:15px;

color:#000000;

padding-bottom:6px;

}



.dropdown_div{

display: block;

    width: 95%;

    height: 28px;

    padding: 2px 2%;

    background-color: #fff;

    border: 1px solid #ccc;

    border-radius: 4px;

    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);

    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;

	    font-size: 12px;

    border-radius: 2px;

    border: 1px solid #ccc;

	outline:0px;

}

.table_header {

    background-color: #263544;

    text-align: center;

    color: #FFFFFF;

    font-size: 13px;

    padding: 4px 0px;

}



.table_body {

    background-color: #e7eef6;

    text-align: center;

    color: #000000;

    font-size: 13px;

    padding: 4px 0px;

}



.btn{

float:right;

border-radius: 2px;

text-transform: capitalize;

font-size: 15px;

padding: 10px 19px;

text-align:center;

color:#FFFFFF;

background-color:#4099ff;

border:0;

cursor:pointer;

	

}



</style>

<script>

function add_donation()

{



var order=$('#order').val();

var Donation=$('#donation').val();


$.ajax({
    url: 'ajx_upd_donation.php',
    type: 'post',
    data: { order: order, donation: Donation }, 
    success: function(f) {
    window.parent.location.href='billing.php?o='+btoa(order);
    }
});


}

</script>

</head>



<body>

<div class="wrapper">

<div class="header_div">ADD PRODUCT SIZE</div>

<div class="body_maindiv">





<div class="heading_maindiv" style="margin-bottom:5px;">
    <div class="title">Product Category <span style="color:crimson;font-weight:bold;">*</span></div>




          <select data-placeholder="--- please select---" class="chosen-select" tabindex="2">
            <?php
$fetch_p_cate=$Mainclass->Fetch_multiple_data("gold_product_category_master","*","SLN!='' order by Category");
foreach ($fetch_p_cate as $get_p_cate)
{
?>
<option value="<?php echo $get_p_cate['SLN']?>*<?php echo $get_p_cate['Code']?>*<?php echo strtoupper($get_p_cate['Category'])?>"><?php echo strtoupper($get_p_cate['Category'])?></option>
<?php
}
?>
          </select>



</div>



<div class="heading_maindiv" style="margin-bottom:5px;">
    <div class="title">Product Size <span style="color:crimson;font-weight:bold;">*</span></div>




   <input name="donation" id="donation" type="text" class="dropdown_div" placeholder="Enter Donation Amount" value="10.00" autocomplete="off" oninput="this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\..*)\./g, '$1');">    



</div>



<div class="heading_maindiv">

<input name="submit11" type="button" value="Submit" class="btn" style="width:100%;"  onclick="add_donation()" />







</div>



<div class="heading_maindiv" style="text-align:center; color:#FF0000;"><span id="vou_err"></span></div>



</div>

</div>

</body>
<script src="https://ik.imagekit.io/hrizthxfy/js/chosen.jquery.js" type="text/javascript"></script>

<script type="text/javascript" nonce="3879a90f1bfded72a0c17af17cb92ee6">


var config = {
  '.chosen-select'           : {},
  '.chosen-select-deselect'  : { allow_single_deselect: true },
  '.chosen-select-no-single' : { disable_search_threshold: 10 },
  '.chosen-select-no-results': { no_results_text: 'Oops, nothing found!' },
  '.chosen-select-rtl'       : { rtl: true },
  '.chosen-select-width'     : { width: '95%' }
}
for (var selector in config) {
  $(selector).chosen(config[selector]);
}

</script>
</html>