<?php if (isset($_POST['changeStatus']) && isset($_POST['status'])) { foreach ($_POST['status'] as $status) { $updateStatus = new dataInfo(); $res = $updateStatus->updateStatus($status); } }
<?php if (isset($_POST['updateContactus'])) { try { if (isset($_POST['title'])) { $contactData = new stdClass(); $contactData->title = $_POST['title']; $contactData->description = $_POST['description']; $contactData->email = $_POST['email']; $contactData->mobile = $_POST['mobile']; $contactData->twitter = $_POST['twitter']; $contactData->facebook = $_POST['facebook']; $contactData->google = $_POST['google']; $contactData->pin = $_POST['pin']; $contactData->address = $_POST['address']; if (isset($_POST['contactId'])) { $contactData->state = 2; $contactData->contactId = $_POST['contactId']; } else { throw new Exception("fill required field."); } $registrationInfo = new dataInfo(); $response = $registrationInfo->updateContactus($contactData); $succesMsg = $response; } else { throw new Exception("fill required field."); } } catch (Exception $e) { $msg = $e->getMessage(); } }
<!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <section class="content"> <div class="row"> <!-- left column --> <div class="col-md-12"> <!-- general form elements --> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">Slider</h3> </div> <!-- /.box-header --> <!-- form start --> <?php $sliderInfo = new dataInfo(); $sliderInfoData = $sliderInfo->selectAll("slider"); $mSliderHeading = $sliderInfo->selectAll("msliderhead"); foreach ($mSliderHeading as $mSliderHeadingData) { } // var_dump($sliderInfoData); ?> <table width="100%" border="1" align="center"> <tbody> <tr> <td colspan="5"><h1 align="center"> Main Slider</h1></td> </tr> <tr> <th scope="col">Sr. no</th> <!--<th scope="col">Text</th>--> <th scope="col">Image</th>
<th>Sr. no.</th> <th>Notes Subject</th> <th>Notes title</th> <!--<th>Notes description</th>--> <th>Seo title</th> <th>Meta</th> <th>Keyword</th> <th>Status</th> <th>Edit</th> <th>Delete</th> </tr> </thead> <tbody> <?php $pagination = new pagination(); $selectCategory = new dataInfo(); $tbl_name = "notesdetail"; $targetpage = "viewNotes.php"; $selectCategoryData = $pagination->selectAll($tbl_name); if (isset($_REQUEST['page'])) { if ($_REQUEST['page'] > 1) { $sr = $_REQUEST['page'] * LIMIT; $sr = $sr - LIMIT + 1; } else { $sr = 1; } } else { $sr = 1; } if ($selectCategoryData) { foreach ($selectCategoryData as $category) {
$aboutData->uploads = $_FILES["aboutFile"]["name"]; $aboutData->tmp_name = $_FILES["aboutFile"]["tmp_name"]; $aboutData->sort_order = $_POST['sort_order']; $aboutData->state = 1; //var_dump($aboutData); $aboutInfo = new dataInfo(); $response = $aboutInfo->addAbout($aboutData); $succesMsg = $response; header("location:viewAbout.php"); } else { throw new Exception("fill required field."); } } catch (Exception $e) { $msg = $e->getMessage(); } } elseif (isset($_POST['updateAboutDesc'])) { try { if (isset($_POST['aboutdescId'])) { $aboutData = new stdClass(); $aboutData->aboutDes = $_POST['aboutDes']; $aboutData->aboutdescId = $_POST['aboutdescId']; $aboutInfo = new dataInfo(); $response = $aboutInfo->updateAboutDesc($aboutData); $succesMsg = $response; } else { throw new Exception("fill required field."); } } catch (Exception $e) { $msg = $e->getMessage(); } }
if (isset($_FILES["notesFile"]["name"]) && !empty($_FILES["notesFile"]["name"])) { $notesDetailData->uploads = $_FILES["notesFile"]["name"]; $notesDetailData->tmp_name = $_FILES["notesFile"]["tmp_name"]; $notesDetailData->newFile = true; } else { $notesDetailData->uploads = $_POST['oldFile']; $notesDetailData->newFile = false; } $notesDetailData->seoTitle = $_POST['seoTitle']; $notesDetailData->metaTag = $_POST['metaTag']; $notesDetailData->keyWord = $_POST['keyWord']; $notesDetailData->sort_order = $_POST['sort_order']; $notesDetailData->status = $_POST['status']; $notesDetailData->notesCategoryId = $_POST['notesCategoryId']; if (isset($_POST['notesId'])) { $notesDetailData->notesId = $_POST['notesId']; $notesDetailData->state = 2; } else { $notesDetailData->state = 1; } $categoryInfo = new dataInfo(); $response = $categoryInfo->addNotesDetail($notesDetailData); $succesMsg = $response; header("location:viewNotes.php?msg=" . $succesMsg); } else { throw new Exception("fill required field."); } } catch (Exception $e) { $msg = $e->getMessage(); } }
<?php if (isset($_POST['addNotesCategory'])) { try { if (isset($_POST['categoryName'])) { $categoryInfo = new dataInfo(); $matchNotesCategory = false; $notesCategoryId = ""; $categoryData = new stdClass(); if (isset($_POST['parentCategory'])) { $categoryData->parentCategory = $_POST['parentCategory']; $notesCategoryData = $categoryInfo->getNotesCategoryDataByCategoryId($_POST['parentCategory']); $getParentCategory = $notesCategoryData->parentId; } else { $categoryData->parentCategory = 0; } $categoryData->categoryName = $_POST['categoryName']; $categoryData->categoryDescription = $_POST['categoryDescription']; $categoryData->seoTitle = $_POST['seoTitle']; $categoryData->examDate = $_POST['examDate']; $categoryData->metaTag = $_POST['metaTag']; $categoryData->keyWord = $_POST['keyWord']; $categoryData->sort_order = $_POST['sort_order']; $categoryData->status = $_POST['status']; if (isset($_POST['notesCategoryId'])) { if ($getParentCategory == $_POST['notesCategoryId']) { echo $getParentCategory . "_" . $_POST['notesCategoryId']; $matchNotesCategory = true; } $categoryData->notesCategoryId = $_POST['notesCategoryId']; $categoryData->state = 2;
if (isset($_POST['sliderId'])) { $sliderData = new stdClass(); $sliderData->text = $_POST['text']; $sliderData->sliderId = $_POST['sliderId']; if (!empty($_FILES['sliderImage']['name'])) { $sliderData->sliderImage = $_FILES['sliderImage']['name']; $sliderData->tmp_name = $_FILES["sliderImage"]["tmp_name"]; $sliderData->newFile = true; //var_dump($sliderData); } else { $sliderData->newFile = false; $sliderData->sliderImage = $_POST['oldSliderImage']; } $sliderInfo = new dataInfo(); $response = $sliderInfo->updateSlider($sliderData); $succesMsg = $response; //header("location:viewPages.php?msg=".$succesMsg); } elseif (isset($_POST['mSliderHeadId'])) { $sliderHeadData = new stdClass(); $sliderHeadData->title = $_POST['title']; $sliderHeadData->mSliderHeadId = $_POST['mSliderHeadId']; $sliderInfo = new dataInfo(); $response = $sliderInfo->updatemSliderHeading($sliderHeadData); $succesMsg = $response; } else { throw new Exception("fill required field."); } } catch (Exception $e) { $msg = $e->getMessage(); } }
<?php if (isset($_POST['changePassword'])) { try { if (isset($_POST['password']) && isset($_POST['rPassword'])) { if ($_POST['password'] == $_POST['rPassword']) { $changePassword = new stdClass(); $changePassword->password = md5($_POST['password']); $loggedUserInfo = $_SESSION['userInfo']; if ($loggedUserInfo->userType == "admin") { $changePassword->userId = $loggedUserInfo->userId; $changePassInfo = new dataInfo(); //var_dump($changePassword); $response = $changePassInfo->changePassword($changePassword); header("location:logout.php"); } else { throw new Exception("invalid User."); } } else { throw new Exception("Passwords Don't Match."); } } else { throw new Exception("fill required field."); } } catch (Exception $e) { $msg = $e->getMessage(); } }
$aboutPofData->description = $_POST['description']; if (!empty($_FILES["aboutFile"]["name"])) { $aboutPofData->upload = $_FILES["aboutFile"]["name"]; $aboutPofData->tmp_name = $_FILES["aboutFile"]["tmp_name"]; $aboutPofData->newFile = true; } else { $aboutPofData->upload = $_POST['oldFile']; $aboutPofData->newFile = false; } $aboutPofData->seoTitle = $_POST['seoTitle']; $aboutPofData->metaTag = $_POST['metaTag']; $aboutPofData->keyWord = $_POST['keyWord']; $aboutPofData->sort_order = $_POST['sort_order']; if (isset($_POST['aboutId'])) { $aboutPofData->aboutId = $_POST['aboutId']; $aboutPofData->state = 2; } else { throw new Exception("fill required field."); } //var_dump($aboutPofData); $aboutpfInfo = new dataInfo(); $response = $aboutpfInfo->updateAboutPof($aboutPofData); $succesMsg = $response; header("location:viewAboutPof.php"); } else { throw new Exception("fill required field."); } } catch (Exception $e) { $msg = $e->getMessage(); } }
<div class="row"> <!-- left column --> <div class="col-md-12"> <!-- general form elements --> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">Olympiad Information</h3> </div> <form role="form" action="<?php $_SERVER['PHP_SELF']; ?> " method="post" enctype="multipart/form-data"> <div class="box-body"> <?php $edit = ""; $updateOlympaidInfo = new dataInfo(); if (isset($_REQUEST['olympaidInformationId'])) { $updateOlympaidData = $updateOlympaidInfo->getDataById("olympaidinformation", "olympaidInformationId", $_REQUEST['olympaidInformationId']); $edit = true; } ?> <div class="form-group"> <label for="title">Title</label> <input type="text" class="form-control" id="title" name="title" placeholder="Title" value="<?php if ($edit) { echo $updateOlympaidData->title; } ?> " required /> <?php if ($edit) {
<p>Bounce Rate</p> </div> <div class="icon"> <i class="ion ion-stats-bars"></i> </div> <a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> </div> </div><?php */ ?> <div class="col-lg-4 col-xs-6"> <!-- small box --> <div class="small-box bg-yellow"> <div class="inner"> <h3><?php $selectCategory = new dataInfo(); $tbl_name = "studentregistration"; $selectCategoryData = $selectCategory->selectAll($tbl_name); echo count($selectCategoryData); ?> </h3> <p>User Registrations</p> </div> <div class="icon"> <i class="ion ion-person-add"></i> </div> <a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> </div> </div><!-- ./col --> <div class="col-lg-4 col-xs-6"> <!-- small box -->
$registrationData->email = $_POST['email']; $registrationData->city = $_POST['city']; $registrationData->addressState = $_POST['addressState']; $registrationData->pinCode = $_POST['pinCode']; $registrationData->schoolName = $_POST['schoolName']; $registrationData->schoolCode = $_POST['schoolCode']; $registrationData->principalName = $_POST['principalName']; $registrationData->principalMobile = $_POST['principalMobile']; if (isset($_POST['studentId'])) { $registrationData->state = 2; $registrationData->studentId = $_POST['studentId']; } else { $registrationData->state = 1; $registrationData->status = 1; } $registrationInfo = new dataInfo(); $response = $registrationInfo->addstudent($registrationData); $succesMsg = $response; //var_dump($succesMsg); if (isset($_POST['url'])) { header("location:" . $_POST['url']); } else { header("location:viewRegistration.php"); } } else { throw new Exception("fill required field."); } } catch (Exception $e) { $msg = $e->getMessage(); } }
} $categoryData->categoryName = $_POST['categoryName']; $categoryData->seoTitle = $_POST['seoTitle']; $categoryData->meta = $_POST['meta']; $categoryData->keyword = $_POST['keyword']; $categoryData->sort_order = $_POST['sort_order']; $categoryData->status = $_POST['status']; if (isset($_POST['category_id'])) { if ($getParentCategory == $_POST['category_id']) { $matchCategory = true; } $categoryData->category_id = $_POST['category_id']; $categoryData->state = 2; } else { $categoryData->state = 1; } $categoryInfo = new dataInfo(); if (!$matchCategory) { $response = $categoryInfo->addCategory($categoryData); $succesMsg = $response; header("location:viewCategory.php?msg=" . $succesMsg); } else { throw new Exception("Please select different category."); } } else { throw new Exception("fill required field."); } } catch (Exception $e) { $msg = $e->getMessage(); } }
<!-- <th>Parent category</th> --> <th>Subject</th> <th>Subject description</th> <th>Seo title</th> <th>Examination Date</th> <th>Meta</th> <th>Keyword</th> <th>Status</th> <th>Edit</th> <th>Delete</th> </tr> </thead> <tbody> <?php $pagination = new pagination(); $selectCategory = new dataInfo(); $tbl_name = "notescategory"; $targetpage = "viewNotesCategory.php"; $selectCategoryData = $pagination->selectAll($tbl_name); if (isset($_REQUEST['page'])) { if ($_REQUEST['page'] > 1) { $sr = $_REQUEST['page'] * LIMIT; $sr = $sr - LIMIT + 1; } else { $sr = 1; } } else { $sr = 1; } if ($selectCategoryData) { foreach ($selectCategoryData as $category) {
<th>Name</th> <th>User Name</th> <th>Date of Birth</th> <th>Subject</th> <th>Class</th> <th>Email</th> <th>City</th> <th>School Name</th> <th>Edit</th> <th>Delete</th> </tr> </thead> <tbody> <?php $pagination = new pagination(); $registrationInfo = new dataInfo(); $tbl_name = "studentregistration"; $targetpage = "viewRegistration.php"; $registrationData = $pagination->selectAllStudent($tbl_name); if (isset($_REQUEST['page'])) { if ($_REQUEST['page'] > 1) { $sr = $_REQUEST['page'] * LIMIT - 1; } else { $sr = 1; } } else { $sr = 1; } if ($registrationData) { foreach ($registrationData as $registration) { if ($registration->status == 0) {
if (isset($_POST['addPages'])) { try { if (isset($_POST['pageTitle'])) { $pageDetailData = new stdClass(); $pageDetailData->pageTitle = $_POST['pageTitle']; $pageDetailData->pageDescription = $_POST['pageDescription']; $pageDetailData->specialNote = $_POST['specialNote']; $pageDetailData->seoTitle = $_POST['seoTitle']; $pageDetailData->metaTag = $_POST['metaTag']; $pageDetailData->keyWord = $_POST['keyWord']; $pageDetailData->sort_order = $_POST['sort_order']; $pageDetailData->status = $_POST['status']; $pageDetailData->categoryId = $_POST['categoryId']; if (isset($_POST['pageId'])) { $pageDetailData->pageId = $_POST['pageId']; $pageDetailData->state = 2; } else { $pageDetailData->state = 1; } $pageDetailInfo = new dataInfo(); $response = $pageDetailInfo->addPageDetail($pageDetailData); $succesMsg = $response; header("location:viewPages.php?msg=" . $succesMsg); } else { throw new Exception("fill required field."); } } catch (Exception $e) { $msg = $e->getMessage(); } }
<div class="row"> <!-- left column --> <div class="col-md-12"> <!-- general form elements --> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">About pof</h3> </div> <form role="form" action="<?php $_SERVER['PHP_SELF']; ?> " method="post" enctype="multipart/form-data"> <div class="box-body"> <?php $edit = ""; $selectCategory = new dataInfo(); $selectCategoryData = $selectCategory->selectAll("aboutpof"); if (isset($_REQUEST['aboutId'])) { $notesDteailData = $selectCategory->getDataById("aboutpof", "aboutId", $_REQUEST['aboutId']); $edit = true; } ?> <div class="form-group"> <label for="title">Title</label> <input type="text" class="form-control" id="title" name="title" placeholder="Title" value="<?php if ($edit) { echo $notesDteailData->title; } ?> " required /> <?php
<?php if (isset($_POST['addCity'])) { try { if (isset($_POST['cityName'])) { $cityData = new stdClass(); $cityData->name = $_POST['cityName']; $cityData->tableName = $_POST['tableName']; $cityData->sort_order = $_POST['sort_order']; $cityData->state = 1; $cityInfo = new dataInfo(); $response = $cityInfo->insertField($cityData); $succesMsg = $response; header("location:view" . ucfirst($_POST['tableName']) . ".php?msg=" . $succesMsg); } else { throw new Exception("fill required field."); } } catch (Exception $e) { $msg = $e->getMessage(); } }
<!-- general form elements --> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">Pages Detail</h3> </div><!-- /.box-header --> <!-- form start --> <form role="form" action="<?php $_SERVER['PHP_SELF']; ?> " method="post" enctype="multipart/form-data"> <div class="box-body"> <div class="form-group"> <label>Category</label> <?php $edit = ""; $selectCategory = new dataInfo(); $selectCategoryData = $selectCategory->selectAll("category"); if (isset($_REQUEST['pageId'])) { $pagesDetail = $selectCategory->getDataById("pages", "pageId", $_REQUEST['pageId']); $edit = true; } ?> <select class="form-control" name="categoryId" id="categoryId" required> <option value="0" >Select category</option> <?php if ($selectCategoryData) { foreach ($selectCategoryData as $categoryData) { if ($categoryData->status == 0) { $seletedCategoryid = ""; if (isset($_REQUEST['pageId']) && $pagesDetail->categoryId == $categoryData->category_id) { $seletedCategoryid = $categoryData->category_id;
echo $registrationData->dob; } ?> " /> <span class="input-group-addon"> <span class="glyphicon glyphicon-calendar"></span> </span> </div> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="subject">Subject</label> <div class="col-sm-10"> <select id="subject" name="subject[]" class="form-control" required > <?php $selectCategory = new dataInfo(); $selectCategoryData = $selectCategory->selectAll("notescategory"); ?> <option disabled >Select notes Subject</option> <?php if ($selectCategoryData) { foreach ($selectCategoryData as $categoryData) { //var_dump( $selectCategoryData); if ($categoryData->status == 0) { $seletedCategoryid = ""; if ($edit) { $subjects = explode(",", $registrationData->subject); foreach ($subjects as $subject) { if ($subject == $categoryData->notesCategoryId) { $seletedCategoryid = $categoryData->notesCategoryId; }
<?php if (isset($_POST['addMoreInformation'])) { try { if (isset($_POST['title'])) { $moreInformationData = new stdClass(); $moreInformationData->title = $_POST['title']; $moreInformationData->upload = $_FILES["moreFile"]["name"]; $moreInformationData->tmp_name = $_FILES["moreFile"]["tmp_name"]; $moreInformationData->link = $_POST['link']; $moreInformationData->state = 1; //var_dump($moreInformationData); $moreInformationInfo = new dataInfo(); $response = $moreInformationInfo->addMoreInformation($moreInformationData); $succesMsg = $response; header("location:viewMoreInformation.php"); } else { throw new Exception("fill required field."); } } catch (Exception $e) { $msg = $e->getMessage(); } }
<?php if (isset($_POST['addTestimonial'])) { try { if (isset($_POST['title'])) { $testimonialData = new stdClass(); $testimonialData->title = $_POST['title']; $testimonialData->description = $_POST['description']; $testimonialData->upload = $_FILES["testimonialFile"]["name"]; $testimonialData->tmp_name = $_FILES["testimonialFile"]["tmp_name"]; $testimonialData->sort_order = $_POST['sort_order']; $testimonialData->state = 1; //var_dump($testimonialData); $testimonialInfo = new dataInfo(); $response = $testimonialInfo->addTestimonial($testimonialData); $succesMsg = $response; header("location:viewTestimonial.php"); } else { throw new Exception("fill required field."); } } catch (Exception $e) { $msg = $e->getMessage(); } }
include "controller/studentRegistration_controller.php"; $menuType = "registration"; ?> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Student Registration </h1> </section> <!-- Main content --> <section class="content"> <div class="row"> <?php $registrationInfo = new dataInfo(); $objectInfoData = new objectInfo(); $classData = $objectInfoData->getClass(); $subjectData = $objectInfoData->getSubject(); if (isset($_REQUEST['studentId'])) { $registrationData = $registrationInfo->getDataById("studentregistration", "studentId", $_REQUEST['studentId']); $edit = true; } if (isset($_POST["submitRegistrationCsv"])) { $file = $_FILES['excelFile']['tmp_name']; $handle = fopen($file, "r"); $c = 0; while (($filesop = fgetcsv($handle, 1000, ",")) !== false) { $studentName = $filesop[0]; $fatherName = $filesop[1]; $mobileNoStudent = $filesop[2];
include "controller/contactus_controller.php"; $menuType = "contactus"; ?> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Contact us </h1> </section> <!-- Main content --> <section class="content"> <div class="row"> <?php $contactInfo = new dataInfo(); $contactDatas = $contactInfo->selectAll("contactus"); $edit = true; //var_dump($contactDatas); foreach ($contactDatas as $contactData) { } ?> <div class="col-md-12"> <div class="nav-tabs-custom"> <div class="tab-content"> <div id="settings" class="tab-pane active"> <form class="form-horizontal" method="post" action="<?php $_SERVER['PHP_SELF']; ?> "> <div class="row">
<!-- general form elements --> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">Notes Detail</h3> </div><!-- /.box-header --> <!-- form start --> <form role="form" action="<?php $_SERVER['PHP_SELF']; ?> " method="post" enctype="multipart/form-data"> <div class="box-body"> <div class="form-group"> <label>Notes Subject</label> <?php $edit = ""; $selectCategory = new dataInfo(); $selectCategoryData = $selectCategory->selectAll("notescategory"); if (isset($_REQUEST['notesId'])) { $notesDteailData = $selectCategory->getDataById("notesdetail", "notesId", $_REQUEST['notesId']); $edit = true; } ?> <select class="form-control" name="notesCategoryId" id="notesCategoryId" required> <option value="" >Select notes Subject</option> <?php if ($selectCategoryData) { foreach ($selectCategoryData as $categoryData) { if ($categoryData->status == 0) { $seletedCategoryid = ""; if (isset($_REQUEST['notesId']) && $notesDteailData->notesCategoryId == $categoryData->notesCategoryId) { $seletedCategoryid = $notesDteailData->notesCategoryId;