<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from get value $id = $_GET['o_id']; //updating the selected values if (isset($id)) { $result1 = $manageData->deleteValue("purchase_log", "order_id", $id); $result2 = $manageData->deleteValue("purchase_info", "order_id", $id); } header("Location: ../../duePayment.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from form if ($_SERVER['REQUEST_METHOD'] == 'POST') { $category = $_POST['category']; } //setting category status if (isset($category) && !empty($category)) { $status = 1; } //setting the current date //getting current date/time and expiration date $getdate = getdate(); $date = $getdate['year'] . "-" . $getdate['mon'] . "-" . $getdate['mday']; //insert values to database $result = $manageData->insertCategory($category, $date, $status); header("Location: ../../addCategory.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //include the library for uploading the files include '../library/class.upload_file.php'; $uploadFile = new FileUpload(); //taking the values from form if ($_SERVER['REQUEST_METHOD'] == 'POST') { $coupon_name = $_POST['coupon_name']; $description = $_POST['description']; $references = $_POST['references']; $coupon_code = $_POST['coupon_code']; $old_price = $_POST['old_price']; $price_guest = $_POST['price_guest']; $price_members = $_POST['price_members']; $tax = $_POST['tax']; $discount = $_POST['discount']; $stock = $_POST['stock']; $expiration_date = $_POST['expiration_date']; $maxpick = $_POST['maxpick']; $photo = $_FILES['photo']['name']; $photo1 = $_FILES['photo1']['name']; $photo2 = $_FILES['photo2']['name']; $photo3 = $_FILES['photo3']['name']; $photo4 = $_FILES['photo4']['name']; } /* creating coupon id for new product */ //getting last value of coupon id
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from form if ($_SERVER['REQUEST_METHOD'] == 'POST') { $category_id = $_POST['id']; $category = $_POST['category']; } //updating the selected values if (isset($category)) { $result = $manageData->updateValueWhere("product_category", "category", $category, "id", $category_id); } header("Location: ../../categoryList.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //include the library for uploading the files include '../library/class.upload_file.php'; $uploadFile = new FileUpload(); //taking the values from form if ($_SERVER['REQUEST_METHOD'] == 'POST') { $product_id = $_POST['product_id']; $product_name = $_POST['product_name']; $description = $_POST['description']; $references = $_POST['references']; $old_price = $_POST['old_price']; $price_guest = $_POST['price_guest']; $price_members = $_POST['price_members']; $tax = $_POST['tax']; $discount = $_POST['discount']; $stock = $_POST['stock']; $expiration_date = $_POST['expiration_date']; $maxpick = $_POST['maxpick']; $photo = $_FILES['photo']['name']; $photo1 = $_FILES['photo1']['name']; $photo2 = $_FILES['photo2']['name']; $photo3 = $_FILES['photo3']['name']; $photo4 = $_FILES['photo4']['name']; } //varriable which will contain the category in string format $category_string = "";
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); if ($_SERVER['REQUEST_METHOD'] == 'POST') { $status = 1; $pageName = $_POST['category']; $pageContent = $_POST['description']; $insertPage = $manageData->insertPage($pageName, $pageContent, $status); } header("Location: ../../mypage.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //include the library for uploading the files include '../library/class.upload_file.php'; $uploadFile = new FileUpload(); //taking the values from form if ($_SERVER['REQUEST_METHOD'] == 'POST') { $heading1 = $_POST['heading1']; $link1 = $_POST['link1']; $description1 = $_POST['description1']; $heading2 = $_POST['heading2']; $link2 = $_POST['link2']; $description2 = $_POST['description2']; $heading3 = $_POST['heading3']; $link3 = $_POST['link3']; $description3 = $_POST['description3']; $photo1 = $_FILES['photo1']['name']; $photo2 = $_FILES['photo2']['name']; $photo3 = $_FILES['photo3']['name']; } if (!empty($photo1)) { //1st other image upload $result_upload_1st = $uploadFile->upload_file('slider_1st', 'photo1', '../../../img/'); //photo_name variable saves the image location $photo_name1 = "img/" . $result_upload_1st; } else { $photo_name1 = "";
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from get value $id = $_GET['id']; //updating the selected values if (isset($id)) { $result = $manageData->updateValueWhere("product_table", "status", 0, "id", $id); } header("Location: ../../listProducts.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from get value $id = $_GET['id']; //updating the selected values if (isset($id)) { $result = $manageData->updateValueWhere("coupon_table", "status", 0, "id", $id); } header("Location: ../../listCoupon.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from form if (isset($GLOBALS['_GET'])) { $id = $_GET['id']; } //updating the selected values $result = $manageData->deleteValue("mypage", "id", $id); header("Location: ../../listmypage.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from form $id = $_GET['id']; $action = $_GET['action']; //action for enable or disable $result = $manageData->updateValueWhere("footer_content", "status", $action, "id", $id); header("Location:../../listFooterLinks.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from form $membership_id = $_GET['m_id']; $validiation_value = $_GET['validiation']; //terminate membership validiation $result = $manageData->updateValueWhere("member_table", "membership_activation", $validiation_value, "membership_id", $membership_id); header("Location:../../upgradeMembershipValidiation.php?membership_id=" . $membership_id);
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from get value $category_id = $_GET['c_id']; //updating the selected values if (isset($category_id)) { $result = $manageData->deleteValue("product_category", "id", $category_id); } header("Location: ../../categoryList.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //include the mail class to send the mails to new sign up include '../../../v-includes/class.mail.php'; $mail = new Mail(); //getting values from signup page if ($_SERVER['REQUEST_METHOD'] == 'POST') { $firstname = $_POST['f_name']; $lastname = $_POST['l_name']; $email_id = $_POST['email_id']; $dob = $_POST['dob']; $gender = $_POST['gender']; $contact_no = $_POST['contact_no']; $Senior_id = $_POST['Senior_id']; $address1 = $_POST['address1']; $address2 = $_POST['address2']; $city = $_POST['city']; $postal_code = $_POST['postal_code']; $state = $_POST['state_id']; $country = $_POST['country_id']; $password = $_POST['password']; } //make the name,address by concatening f_name,l_name AND address1, address2 $name = $firstname . " " . $lastname; $address = $address1 . "<br>" . $address2; //creting memebership id using unique id with prefix member $membership_id = uniqid('member');
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //include the library for uploading the files include '../library/class.upload_file.php'; $uploadFile = new FileUpload(); //taking the values from form if ($_SERVER['REQUEST_METHOD'] == 'POST') { $product_name = $_POST['product_name']; $description = $_POST['description']; $price = $_POST['price']; $discount = $_POST['discount']; $stock = $_POST['stock']; $photo = $_FILES['photo']['name']; } /* creating product id for new product */ //getting last value of product id $p_id = $manageData->getLastValue("membership_product", "product_id", "product_id"); if ($p_id[0]['product_id'] != "") { //setting the new product id increamented by 1 $new_p_id = substr($p_id[0]['product_id'], 2) + 1; //product id for new product $product_id = "M_" . $new_p_id; } else { $product_id = "M_1001"; } /* product id is set*/ if (!empty($photo)) {
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from form if ($_SERVER['REQUEST_METHOD'] == 'POST') { $id = $_POST['id']; $text = $_POST['bottom_text']; } //updating the selected values if (isset($text)) { $result = $manageData->updateValueWhere("footer_content", "bottom_text", $text, "id", $id); } header("Location: ../../editFooterBottomText.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from get value $id = $_GET['id']; //updating the selected values if (isset($id)) { $result = $manageData->deleteValue("addmoney_info", "id", $id); } header("Location: ../../pending_add_money.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from url $withdraw_order_id = $_GET['w_id']; //approve the withdrawal request $result = $manageData->updateValueWhere("withdraw_log", "status", 1, "withdraw_order_id", $withdraw_order_id); header("Location: ../../pendingWithdrawal.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //include class mail include '../library/class.mail.php'; $mail = new Mail(); //taking the values from form $m_id = $_POST['m_id']; $mail_body = $_POST['mail_body']; //getting member details $member_details = $manageData->getValueWhere("member_table", "*", "membership_id", $m_id); //sending mail to the member $mailsent = $mail->membershipExtendationMail($member_details[0]['email_id'], $mail_body); header("Location: ../../membership_extendation.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from form if ($_SERVER['REQUEST_METHOD'] == 'POST') { $name = $_POST['name']; $link = $_POST['link']; $column_name = $_POST['column']; } //setting category status if (isset($name) && !empty($name) && isset($column_name) && !empty($column_name)) { $status = 1; } //insert values to database $result = $manageData->insertFooterLinks($name, $link, $column_name, $status); header("Location: ../../addFooterLinks.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //include class mail include '../library/class.mail.php'; $mail = new Mail(); //taking the values from form if (isset($GLOBALS['_POST'])) { $id = $_POST['id']; $amount = $_POST['amount']; } //getting member details $member_id = $manageData->getValueWhere("addmoney_info", "*", "id", $id); $member_details = $manageData->getValueWhere("member_table", "*", "membership_id", $member_id[0]['membership_id']); //updating the selected values $result = $manageData->updateValueWhere("addmoney_info", "amount", $amount, "id", $id); $result1 = $manageData->updateValueWhere("addmoney_info", "status", 1, "id", $id); //sending mail to the member $mailsent = $mail->confirmationOfAddMoney($member_details[0]['email_id'], $member_id[0]['money_id'], $amount); header("Location: ../../pending_add_money.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from url $order_id = $_GET['o_id']; if (!empty($order_id)) { //calling method for undo payment confirmation $result = $manageData->updateValueWhere("purchase_log", "delivery_status", 1, "order_id", $order_id); } header("Location: ../../orderDetails.php?o_id={$order_id}");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from form if ($_SERVER['REQUEST_METHOD'] == 'POST') { $old_password = $_POST['old_password']; $new_password = $_POST['new_password']; $confirm_new_password = $_POST['confirm_new_password']; } //checking the values with database values if ($new_password == $confirm_new_password) { $database_pass = $manageData->getValueWhere("admin_info", "*", "id", 1); if ($old_password == $database_pass[0]['password']) { //update password field $update = $manageData->updateValueWhere("admin_info", "password", $new_password, "id", 1); $_SESSION['p_msg'] = 'Password Changes Successfully'; header("Location: ../../changePwd.php"); } else { $_SESSION['p_msg'] = 'old password does not match'; header("Location: ../../changePwd.php"); } } else { $_SESSION['p_msg'] = 'password and confirm password field do not match'; header("Location: ../../changePwd.php"); }
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from form if ($_SERVER['REQUEST_METHOD'] == 'GET') { $m_id = $GLOBALS['_GET']['member_id']; } //create money id $money_id = uniqid('money'); //getting new date $curdate = getdate(); $date = $curdate['year'] . "-" . $curdate['mon'] . "-" . $curdate['mday']; echo $date; //inserting values to add money table $column_name = array("membership_id", "money_id", "date"); $column_value = array($m_id, $money_id, $date); $insert = $manageData->insertValue("addmoney_info", $column_name, $column_value); header("Location: ../../pending_add_money.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //include class mail include '../library/class.mail.php'; $mail = new Mail(); //taking the values from url $order_id = $_GET['o_id']; if (!empty($order_id)) { //setting payment request value $value = "Progressing"; //calling method for money distribution $result = $manageData->updateValueWhere("purchase_info", "payment_request", $value, "order_id", $order_id); } //getting current date $getdate = getdate(); $date = $getdate['year'] . "-" . $getdate['mon'] . "-" . $getdate['mday']; //change date format $change_date = explode("-", $date); $curdate = $change_date[2] . "-" . $change_date[1] . "-" . $change_date[0]; $year = $getdate['year']; //getting invoice no $invoice = $manageData->getLastValue("purchase_log", "*", "invoice_no"); //separating year from invoice no and increase the value by 1 $new_no = sprintf("%05s", substr($invoice[0]['invoice_no'], 5) + 1); $new_invoice_no = $year . "-" . $new_no; //update invoice no and date $updateinvoice = $manageData->updateValueWhere("purchase_log", "invoice_no", $new_invoice_no, "order_id", $order_id);
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from get value $value = $_GET['value']; $id = $_GET['id']; //getting current date $getdate = getdate(); $date = $getdate['year'] . "-" . $getdate['mon'] . "-" . $getdate['mday']; //updating the selected values if (isset($id)) { if ($value == 1) { $result = $manageData->updateValueWhere("product_table", "expiration_date", $date, "id", $id); } else { $result = $manageData->updateValueWhere("product_table", "expiration_date", "0000-00-00", "id", $id); } } header("Location: ../../listProducts.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from url $order_id = $_GET['o_id']; if (!empty($order_id)) { //calling method for undo payment confirmation $result = $manageData->updateValueWhere("purchase_info", "payment_request", "Undo", "order_id", $order_id); $delilvery_status = $manageData->updateValueWhere("purchase_log", "delivery_status", 0, "order_id", $order_id); } header("Location: ../../finalConfirmationByPaypal.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from form if ($_SERVER['REQUEST_METHOD'] == 'POST') { $category_id = $_POST['id']; $category = $_POST['category']; } //updating the selected values if (isset($category)) { $result = $manageData->updateValueWhere("coupon_category", "category", $category, "id", $category_id); } header("Location: ../../couponCategoryList.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from get value $category_id = $_GET['c_id']; //updating the selected values if (isset($category_id)) { $result = $manageData->deleteValue("coupon_category", "id", $category_id); } header("Location: ../../couponCategoryList.php");
<?php session_start(); //include the DAL library for the method to insert the details include '../library/library.DAL.php'; $manageData = new manageContent_DAL(); //taking the values from form if ($_SERVER['REQUEST_METHOD'] == 'POST') { $product_id = $_POST['product_id']; $product_name = $_POST['product_name']; $description = $_POST['description']; $price = $_POST['price']; $discount = $_POST['discount']; $stock = $_POST['stock']; } //fetching the id value of database $table_id = $manageData->getValueWhere("membership_product", "id", "product_id", $product_id); $id = $table_id[0]['id']; //updating the selected values if (isset($product_name)) { $result = $manageData->updateValueWhere("membership_product", "product_name", $product_name, "id", $id); } if (isset($description)) { $result = $manageData->updateValueWhere("membership_product", "product_description", $description, "id", $id); } if (isset($price)) { $result = $manageData->updateValueWhere("membership_product", "price", $price, "id", $id); } if (isset($discount)) { $result = $manageData->updateValueWhere("membership_product", "discount", $discount, "id", $id); }