<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; } ?> <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 echo $_SERVER['REQUEST_URI']; ?> "> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="col-sm-2 control-label" for="inputName">Name</label>
<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; } $parent = $categoryData->parentid; $title = $categoryData->title;
<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) { ?> <input type="hidden" class="form-control" id="olympaidInformationId" name="olympaidInformationId" placeholder="Category name" value="<?php
<!-- 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 if ($edit) { ?> <input type="hidden" class="form-control" id="aboutId" name="aboutId" placeholder="Category name" value="<?php
<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; } $parent = $categoryData->parentId; $title = $categoryData->CategoryName;