Şuanki Dizin: /home/wwwdreamtechnolo/www/panel.atsevairag.com/atse_admin_panel007/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/panel.atsevairag.com/atse_admin_panel007/edit-prices-for-winners.php |
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); require_once("../lib/class/functions.php"); $db = new functions(); $current_page = ""; if(!isset($_SESSION['current_admn_email'])) { header("Location:/atse_admin_panel007/index.php"); } $current_edt_id = ""; if(isset($_GET['edt_id'])) { $current_edt_id = $_GET['edt_id']; $_SESSION['edt_id'] = $current_edt_id; } else if(isset($_SESSION['edt_id'])) { $current_edt_id = $_SESSION['edt_id']; } $standard_error = ""; $serial_no_error = ""; $prices_amount_error= ""; $certificate_material_error = ""; $standard = ""; $price_number = ""; $prices_amount = ""; $certificate_material = ""; $flag = 0; $success_msg = 0; if(isset($_POST['update_prices'])) { $standard = $_POST['standard']; $price_number = $_POST['price_number']; $prices_amount = $_POST['prices_amount']; $certificate_material = $_POST['certificate_material']; if($standard=="इयत्ता निवडा") { $standard_error = "कृपया इयत्ता निवडा"; $flag = 1; } if($price_number=="क्रमांक निवडा") { $serial_no_error = "कृपया क्रमांक निवडा"; $flag = 1; } if($prices_amount=="") { $prices_amount_error = "कृपया बक्षिसाची रक्कम लिहा"; $flag = 1; } else if(!is_numeric($prices_amount)) { $prices_amount_error = "कृपया बक्षिसाची रक्कम अंकामध्ये लिहा"; $flag = 1; } if($certificate_material=="") { $certificate_material_error = "कृपया प्रमाणपत्र किवा ट्रोफी असेल तर लिहा "; $flag = 1; } if($flag==0) { $db->update_prices_from_id($standard,$price_number,$prices_amount,$certificate_material,$current_edt_id); $success_msg = 1; } } ?> <html> <head> <meta charset="UTF-8"> <title>ATSE Vairag</title> <link rel="stylesheet" type="text/css" href="/css/stylesheet.css" /> <script type="text/javascript" src="/js/jquery-1.9.1.min.js"></script> <script type="text/javascript" src="/js/site.js"></script> </head> <body> <?php require_once('header.php'); ?> <div style="min-height:570px;"> <div class="admin-mid-section"> <a href="add-prices-for-winners.php" class="center_list_back_link"><< रोख पारितोषिके लिस्ट</a> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> <div class="add_centre_container"> <br /> <center><strong>रोख पारितोषिके अपडेट करा</strong></center> <br /> <?php if($success_msg=="1") { ?> <div class="add_centre_success"> रोख पारितोषिके अपडेट केली आहे. </div> <br /> <?php } ?> <?php $data = array(); $data = $db->get_prices_data_from_id($current_edt_id); if(!empty($data)) { $res_standard = $data[0]; $res_price_no = $data[1]; $res_price_amount = $data[2]; $res_certificate_material = $data[3]; } ?> <select name="standard" id="standard_val" class="order_txt"> <?php if($res_standard!="") { ?> <option value="<?php echo $res_standard; ?>"><?php echo $res_standard; ?></option> <?php } ?> <option value="इयत्ता निवडा">इयत्ता निवडा</option> <option value="इ. २ री ते ४ थी">इ. २ री ते ४ थी</option> <option value="इ. ५ वी ते ९ वी">इ. ५ वी ते ९ वी</option> <option value="इ. १ ली ते ९ वी">इ. १ ली ते ९ वी</option> <option value="इ. १ ली">इ. १ ली</option> </select> <span class="error_indicator"><?php echo $standard_error; ?></span> <select name="price_number" id="price_number" class="order_txt" style="margin-top:15px;"> <?php if($res_price_no!="") { ?> <option value="<?php echo $res_price_no; ?>"><?php echo $res_price_no; ?></option> <?php } ?> <option value="क्रमांक निवडा">क्रमांक निवडा</option> <option value="प्रथम क्रमांक">प्रथम क्रमांक</option> <option value="द्वितीय क्रमांक ">द्वितीय क्रमांक</option> <option value="तृतीय क्रमांक ">तृतीय क्रमांक </option> </select> <span class="error_indicator"><?php echo $serial_no_error; ?></span> <input type="text" id="prices_amount" name="prices_amount" class="txtflds" placeholder="बक्षीस रु." value="<?php echo $res_price_amount;?>" /> <span class="error_indicator"><?php echo $prices_amount_error; ?></span> <input type="text" id="certificate_material" name="certificate_material" class="txtflds" placeholder="प्रमाणपत्र व ट्रोफी" value="<?php echo $res_certificate_material;?>" /> <span class="error_indicator"><?php echo $certificate_material_error; ?></span> <br /> <center><input type="submit" name="update_prices" value="अपडेट करा" id="update_prices" class="reg_btn_form" style="width:140px;" /></center> </div> </form> </div> </div> <?php require_once('footer.php'); ?> </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