Şuanki Dizin: /home/wwwdreamtechnolo/public_html/b2bflight.com/B2BFlight/project/dashboard/ |
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/b2bflight.com/B2BFlight/project/dashboard/receipt.php |
<?php require_once('lib/functions.php'); $db = new class_functions(); $flag = 0; if(isset($_GET['delete_id'])) { $delete_id = $_GET['delete_id']; if($db->delete_add_measurement($delete_id)) { $flag = 3; } } $res_view_id = ""; if(isset($_GET['view_id'])){ $res_view_id = $_GET['view_id']; $_SESSION['view_id'] = $res_view_id; } $res_view_id = $_SESSION['view_id']; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>ए वन मेन्स वेअर</title> <style> body { font-family: Arial, Helvetica, sans-serif; } .container{ width: 750px; /* margin: 0% 10% 0% 20%; */ border: 2px solid #DFDFDF; margin : auto; padding: 15px; /* border-radius: 10px; */ border-image: linear-gradient(to right,#2f80c1) 1; /* border-radius: */ /* align-items: center; */ } table{ /* border: 2px solid black; */ border-collapse: collapse; width: 100%; } table thead { background-color: #666; color: #FFFFFF; padding: 8px; font-size: 10px; } table thead th{ padding: 5px; font-size: 12px !important; font-weight: 100; } table tr td{ padding: 5px; font-size: 12px !important; font-weight: 100; text-align: center; } .table2 td{ padding: 3px; padding-top: 5px; padding-bottom: 5px; text-align: center; } .table2 th{ padding-top: 5px; padding-bottom: 5px; } .no_border{ border: none !important; } .top_tbl{ border: none; text-align: left; font-size: 14px; font-weight: 100; } td{ border: 1px solid grey; border-collapse: collapse; } td{ padding-left: 2px; font-style: bold; font-size: 15px; } th{ border: 1px solid grey; } span{ font-size: 14px; } .sub-head{ border-radius: none; text-align: left; } .left-text{ text-align: left; padding-left: 25px; /* background-color: #2f80c1;; */ } .right-border{ border-right: hidden; } .left-border{ border-left: hidden; } .bottom-border{ border-bottom: hidden; } .top-border{ border-top: hidden; } .inbox{ margin-top: 6px; margin-bottom: 6px; } .top-space{ padding-top: 10px; } .btm-space{ padding-bottom: 10px; } .headings{ /* background-image: linear-gradient(orange, orangered, orange); */ /* background-color: orange; */ /* color: white; */ } .tbl2 tr{ background-color: #2f80c1;; border: 1px solid white; } .tbl2 th{ padding: 3px; } .aside{ /* padding-left: 200px; */ } h2{ /* color: #2f80c1; */ font-size: 20px; padding: -20px 0px; } h3{ margin-top: -20px; margin-bottom: 30px; } hr{ height: 1px; background-color: #2f80c1;; } .footer-txt{ text-align: center; } .inline-block1 { display: inline-block; width: 37%; font-size: 14px; } .inline-block2 { display: inline-block; width: 33%; margin-left: 130px; font-size: 14px; /* margin: 5px; */ } .inline-block3 { display: inline-block; width: 20%; float: right; /* margin: 5px; */ } .flogo{ margin-top: 10px; margin-left: 10px; } .Measurement-tbl th, td{ padding: 4px; } .top-table{ border: hidden; } .address{ /* font-size: 19px; */ margin-top: -20px; margin-bottom:10px; font-size: 20px; } .receipt b{ font-size: 20px; color: black; } .table1{ width: 100%; } .receipt_head { background-color: #EFEFEF; margin: 0px; padding: 7px; font-size: 18px; margin-bottom: 10px; } .inside_table{ border: 1px solid red !important; } .transaction_display_table { margin-top: 25px; } .transaction_display_table thead tr th { font-size: 14px;; } .transaction_display_table td { font-size: 14px;; } h4{ margin-top: -10px; } .footer-txt{ font-size: 14px; } p{ margin: 5px; } </style> </head> <body> <?php $users_data = array(); $users_data = $db->get_measurement_data_from_id($res_view_id); //print_r($users_data); if(!empty($users_data)) { $res_id = $users_data['id']; // $measurement_for = $users_data['measurement_for']; $customer_name = $users_data['customer_name']; $address = $users_data['address']; $shirt1 = $users_data['shirt1']; $shirt2 = $users_data['shirt2']; $shirt3 = $users_data['shirt3']; $shirt4 = $users_data['shirt4']; $shirt5 = $users_data['shirt5']; $shirt6 = $users_data['shirt6']; $shirt7 = $users_data['shirt7']; $shirt8 = $users_data['shirt8']; $shirt9 = $users_data['shirt9']; $shirt10 = $users_data['shirt10']; $shirt11 = $users_data['shirt11']; $shirt12 = $users_data['shirt12']; $shirt13 = $users_data['shirt13']; $shirt14 = $users_data['shirt14']; $shirt15 = $users_data['shirt15']; $shirt16 = $users_data['shirt16']; $shirt17 = $users_data['shirt17']; $shirt18 = $users_data['shirt18']; $cup_size = $users_data['cup_size']; $cup_style = $users_data['cup_style']; $shirt_style = $users_data['shirt_style']; $shirt_size = $users_data['shirt_size']; $patti = $users_data['patti']; $shirt_design = $users_data['shirt_design']; $collar = $users_data['collar']; $shirt_remark = $users_data['shirt_remark']; $pant1 = $users_data['pant1']; $pant2 = $users_data['pant2']; $pant3 = $users_data['pant3']; $pant4 = $users_data['pant4']; $pant5 = $users_data['pant5']; $pant6 = $users_data['pant6']; $pant7 = $users_data['pant7']; $pant8 = $users_data['pant8']; $pant9 = $users_data['pant8']; $pant10 = $users_data['pant10']; $pant11 = $users_data['pant11']; $pant12 = $users_data['pant12']; $pocket_size = $users_data['pocket_size']; $back_pocket = $users_data['back_pocket']; $watch_pocket = $users_data['watch_pocket']; $mobile_pocket = $users_data['mobile_pocket']; $bottom_style = $users_data['bottom_style']; $plate = $users_data['plate']; $pocket = $users_data['pocket']; $iron = $users_data['iron']; $stitching = $users_data['stitching']; $pant_remark = $users_data['pant_remark']; $mobile_number = $users_data['mobile_number']; $delivery_date = $users_data['delivery_date']; $total_amount = $users_data['total_amount']; $discount = $users_data['discount']; $payable_amount = $users_data['payable_amount']; $paid_amount = $users_data['paid_amount']; $balance_amount = $users_data['balance_amount']; $delivery_status = $users_data['delivery_status']; $payment_method = $users_data['payment_method']; $res_date = $users_data['date']; $res_time = $users_data['time']; $cup_size = $db->get_title_from_category_id($cup_size); $cup_style = $db->get_title_from_category_id($cup_style); $shirt_size = $db->get_title_from_category_id($shirt_size); $patti = $db->get_title_from_category_id($patti); // $shirt_style = $db->get_title_from_category_id($shirt_style); $shirt_design = $db->get_title_from_category_id($shirt_design); $back_pocket = $db->get_title_from_category_id($back_pocket); $watch_pocket = $db->get_title_from_category_id($watch_pocket); // $pocket_size = $db->get_title_from_category_id($pocket_size); $mobile_pocket = $db->get_title_from_category_id($mobile_pocket); $bottom_style = $db->get_title_from_category_id($bottom_style); $plate = $db->get_title_from_category_id($plate); $pocket = $db->get_title_from_category_id($pocket); $iron = $db->get_title_from_category_id($iron); $stitching = $db->get_title_from_category_id($stitching); $collar = $db->get_title_from_category_id($collar); } ?> </tbody> </table> </div> </div> </div> <div class="container"> <center> <p style="padding-top: 7px; margin-bottom: -5px;"> || श्री गुरुदेव दत्त प्रसन्न ||</p> <h2>ए वन मेन्स वेअर</h2> <p style="font-size: 14px; margin-top: -10px;">पत्ता : बाबाहरी कॉम्प्लेक्स, श्री गजानन महाराज मठासमोर, पंढरपूर</p> </center> <center><h1 class="receipt_head">Receipt</h1></center> <table class="no_border" cellpadding="5"> <tr> <th colspan="2" class="top_tbl">Customer Name : <?php echo $customer_name; ?></th> <th class="top_tbl">Receipt ID: <?php echo $res_view_id; ?></th> </tr> <tr> <th colspan="2" class="top_tbl">Mobile No: <?php echo $mobile_number; ?></th> <th class="top_tbl">Order Date: <?php echo $res_date; ?></th> </tr> <tr> <th colspan="2" class="top_tbl">Address: <?php echo $address; ?></th> <th class="top_tbl">Delivery Date: <?php echo $delivery_date; ?></th> </tr> </table> <h4 style="margin-top: 20px; margin-bottom:-10px; font-size:16px;">Payment History</h4> <table class="transaction_display_table"> <thead> <tr> <th>Sr No</th> <th>Total Amount</th> <th>Discount</th> <th>Payable Amount</th> <th>Paid Amount</th> <th>Balance Amount</th> <th>Payment Method</th> <th>Payment Remark</th> <th>Date</th> <th>Time</th> </tr> </thead> <tbody> <?php $users_data = array(); $users_data = $db->get_user_payment_entry_data_from_id($res_view_id); $count = 1; $counters = 0; if(!empty($users_data)) { foreach($users_data as $record){ $res_id = $users_data[$counters][0]; $receipt_id = $users_data[$counters][1]; $shirt_price = $users_data[$counters][2]; $pant_price = $users_data[$counters][3]; $total_amount = $users_data[$counters][4]; $discount_amount = $users_data[$counters][5]; $payable_amount = $users_data[$counters][6]; $paid_amount = $users_data[$counters][7]; $balance_amount = $users_data[$counters][8]; $payment_type = $users_data[$counters][9]; $payment_remark = $users_data[$counters][10]; $date = $users_data[$counters][11]; $time = $users_data[$counters][12]; ?> <tr> <td><?php echo $count; ?></td> <td><?php echo $total_amount; ?></td> <td><?php echo $discount_amount; ?></td> <td><?php echo $payable_amount; ?></td> <td><?php echo $paid_amount; ?></td> <td><?php echo $balance_amount; ?></td> <td><?php echo $payment_type; ?></td> <td><?php echo $payment_remark; ?></td> <td><?php echo $date; ?></td> <td><?php echo $time; ?></td> </tr> <?php $counters++; $count++; } } ?> <!-- <tr> <th colspan="7" class="left-text">Total</th> <th colspan="3"><?php echo $total_amount; ?></th> </tr> --> </table> <br /> <!-- <div class="mid"> <div class="row"> <div class="col-6"> <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Tenetur, esse.</p> </div> <div class="col-6"> <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis, commodi.</p> </div> </div> </div> --> <!-- <table class="transaction_display_table"> <thead> <tr> <th>Sr No</th> <th>Total Amount</th> <th>Discount</th> <th>Payable Amount</th> <th>Paid Amount</th> <th>Balance Amount</th> <th>Payment Method</th> <th>Payment Remark</th> <th>Date</th> <th>Time</th> </tr> <?php $users_data = array(); $users_data = $db->get_user_payment_entry_data_from_id($res_view_id); $count = 1; $counters = 0; if(!empty($users_data)) { foreach($users_data as $record){ $pay_res_id = $users_data[$counters][0]; $receipt_id = $users_data[$counters][1]; $shirt_price = $users_data[$counters][2]; $pant_price = $users_data[$counters][3]; $total_amount = $users_data[$counters][4]; $discount_amount = $users_data[$counters][5]; $payable_amount = $users_data[$counters][6]; $paid_amount = $users_data[$counters][7]; $balance_amount = $users_data[$counters][8]; $payment_type = $users_data[$counters][9]; $payment_remark = $users_data[$counters][10]; $date = $users_data[$counters][11]; $time = $users_data[$counters][12]; ?> <tr> <td><?php echo $count; ?></td> <td><?php echo $total_amount; ?></td> <td><?php echo $discount_amount; ?></td> <td><?php echo $payable_amount; ?></td> <td><?php echo $paid_amount; ?></td> <td><?php echo $balance_amount; ?></td> <td><?php echo $payment_type; ?></td> <td><?php echo $payment_remark; ?></td> <td><?php echo $date; ?></td> <td><?php echo $time; ?></td> </tr> <?php $counters++; $count++; } } ?> <tr> <th colspan="7" class="left-text">Total</th> <th colspan="3"><?php echo $total_amount; ?></th> </tr> </table> --> <p class="footer-txt" style="text-align:justify;">१) पावतीशिवाय कपडे मिळणार नाहीत. २) कपड्याची डिलीव्हरी दिलेल्या तारखेच्या सायंकाळी ६ नंतर मिळेल. ३) डिलीव्हरी दिलेल्या तारखेपासून ३० दिवसाच्या आत कपडे घेऊन जाणे, नंतर आम्ही जबाबदार नाही. ४) माप मेजरमेंट दिल्यानंतर परत कसलाही बदल केला जाणार नाही. ५) धुलाईनंतर फिटींगची जबाबदारी आमच्यावर राहणार नाही, याची ग्राहकांनी नोंद घ्यावी.</p> <br> <div class="footer-container"> <div class="inline-block1"><h4> कृपया ग्राहकांनी सहकार्य करावे.</h4></div> <!-- <div class="inline-block2 flogo"><p> --> <!-- </p></div> --> <div class="inline-block2"><h4> प्रो. प्रा. बी. डी. अनपट</h4></div> </div> <hr> <br> <h4 style="margin-top: 20px; margin-bottom:-10px; font-size:16px;">Measurment Details</h4><br><br> <p style="margin-top: -15px; margin-bottom: -5px; font-size: 14px;">Customer Name: <?php echo $customer_name; ?></p> <br> <!-- <table class="tb1 left-border right-border top-border bottom-border"> --> <table class="tb1 "> <tr> <td class="right-border">Receipt ID : <?php echo $res_view_id; ?></td> <td class="right-border">Order Date : <?php echo $res_date; ?></td> <td class="">Delivery Date : <?php echo $delivery_date; ?></td> </tr> </tbody> </table> <!-- <p style="float: right; margin-top: -15px;">Delivery Date: <?php echo $delivery_date; ?> </p> --> <br> <table class="no_border " style="border-right: hidden;"> <tr class="top-border bottom-border"> <td class="right-border left-border"> <table class="tb1"> <thead> <tr> <th colspan="8" class="">Shirt Measurement </th> </tr> </thead> <tbody> <tr> <td colspan="8" style="text-align: left;"> <?php $stor = explode(',',$shirt_style); foreach ($stor as $option) { $shirt_style = $db->get_title_from_category_id($shirt_style); $master_category = "shirt_style"; $data = array(); $data = $db->get_all_tailor_master_records($master_category); $counter = 1; if(!empty($data)) { foreach($data as $record) { $res_id = $record[0]; $category = $record[1]; $title = $record[2]; $date = $record[3]; $time = $record[4]; if($option == $res_id){ ?> <?php echo $title; ?> <b> | </b> <?php } } } } ?> </td> </tr> <tr> <td class="" height="30" width="50"><?php echo $shirt1; ?></td> <td class="" width="50"><?php echo $shirt2; ?></td> <td class="" width="50"><?php echo $shirt3; ?></td> <td class="" width="50"><?php echo $shirt4; ?></td> <td class="" width="50"><?php echo $shirt5; ?></td> <td class="" width="50"><?php echo $shirt6; ?></td> <td class="" width="50"><?php echo $cup_style; ?></td> <td class="" width="50"> <div class="form-group">-</td> </tr> <tr> <td class="" height="30" width="50"><?php echo $shirt7; ?></td> <td class="" width="50"><?php echo $shirt8; ?></td> <td class="" width="50"><?php echo $shirt9; ?></td> <td class="" width="50"><?php echo $shirt10; ?></td> <td class="" width="50"><?php echo $shirt11; ?></td> <td class="" width="50"><?php echo $shirt12; ?></td> <td class="" width="50"><?php echo $shirt_size; ?></td> <td class="" width="50"><?php echo $patti; ?></td> </tr> <tr> <td class="" height="30" width="50"><?php echo $shirt13; ?></td> <td class="" width="50"><?php echo $shirt14; ?></td> <td class="" width="50"></td> <td class="" width="50"><?php echo $shirt16; ?></td> <td class="" width="50"><?php echo $shirt17; ?></td> <td class="" width="50"><?php echo $shirt18; ?></td> <td class="" width="50"><?php echo $shirt_design; ?></td> <td class="" width="50"><?php echo $collar; ?></td> </tr> <tr> <td width="50" height="30"></td> <!-- <td width="50"></td> --> <td width="50"><?php echo $shirt15; ?></td> <td width="50"></td> <td width="50"></td> <td width="50"></td> <td width="50"></td> <td width="50"></td> <td width="50"></td> </tr> <tr> <td colspan="8">remark : <?php echo $shirt_remark; ?> </td> </tr> </tbody> </table> </td> <td class="right-border"> <table class="tb2" style="margin-top: -30px;"> <thead> <tr> <th colspan="8" class="">Pant Measurement</th> </tr> </thead> <tbody> <tr> <td colspan="8" style="text-align: left;"><?php $stor = explode(',',$pocket_size); foreach ($stor as $option) { $pocket_size = $db->get_title_from_category_id($pocket_size); $master_category = "pocket_size"; $data = array(); $data = $db->get_all_tailor_master_records($master_category); $counter = 1; if(!empty($data)) { foreach($data as $record) { $res_id = $record[0]; $category = $record[1]; $title = $record[2]; $date = $record[3]; $time = $record[4]; if($option == $res_id){ ?> <?php echo $title; ?> <b> | </b> <?php } } } } ?></td> </tr> <tr> <td class="" height="30" width="50"><?php echo $pant1; ?></td> <td class="" width="50"><?php echo $pant2; ?></td> <td class="" width="50"><?php echo $pant3; ?></td> <td class="" width="50"><?php echo $pant4; ?></td> <td class="" width="50"><?php echo $pant5; ?></td> <td class="" width="50"><?php echo $pant6; ?></td> <td class="" width="50"><?php echo $watch_pocket; ?></td> <td class="" width="100">-</td> </tr> <tr> <td class="" height="30" width="50"><?php echo $pant7; ?></td> <td class="" width="50"><?php echo $pant8; ?></td> <td class="" width="50"><?php echo $pant9; ?></td> <td class="" width="50"><?php echo $pant10; ?></td> <td class="" width="50"><?php echo $pant11; ?></td> <td class="" width="50"><?php echo $pant12; ?></td> <td class="" width="50"><?php echo $back_pocket; ?></td> <td class="" width="50"><?php echo $mobile_pocket; ?></td> </tr> <tr> <td class="" height="30" width="50" colspan="2"><?php echo $bottom_style; ?></td> <td class="" width="50" colspan="2"><?php echo $plate; ?></td> <td class="" width="50" colspan="2"><?php echo $pocket; ?></td> <td class="" width="50"><?php echo $iron; ?></td> <td class="" width="50"><?php echo $stitching; ?></td> </tr> <tr> <td colspan="8">remark : <?php echo $pant_remark; ?></td> </tr> </td> </tbody> </table> </tr> </table> </body> </html>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4