ok
Direktori : /proc/thread-self/root/home/shopnoc1/www/ |
Current File : //proc/thread-self/root/home/shopnoc1/www/edit.php |
<?php include ('db.php'); include ('header.php'); if (isset($_GET['sid'])) { $id=$_GET['sid']; $sqlstd = "SELECT * FROM admittedstudentinfo where id =$id"; $resultstd = $conn->query($sqlstd); } if ($resultstd->num_rows > 0) { // output data of each row while($row = $resultstd->fetch_assoc()) { ?> <div class="container"> <div class="row"> <div class="col-sm-12"> <h1 class="btn bg-primary text-white text-center"> Edit Student's Information </h1> </div> <div class="col-sm-12"> <form class="form-vertical" action="update.php" method="post" enctype="multipart/form-data"> <input type="hidden" name="entrydate" value="<?php echo date("jS \ M Y"); ?>" readonly="readonly"> <input type="hidden" name="id" value="<?php echo $row['id'];?>"> <div class="form-group"> <label class=" col-sm-2" for="admissiondate">Admission Date</label> <div class="col-sm-10"> <input type="text" class="form-control" id="admissiondate" name="admissiondate" value="<?php echo $row['admissiondate'];?>"> </div> </div> <div class="form-group"> <label class=" col-sm-2" for="stdid">Student ID</label> <div class="col-sm-10"> <input type="text" class="form-control" id="stdid" name="stdid" value="<?php echo $row['stdid'];?>"> </div> </div> <div class="form-group"> <label class=" col-sm-2" for="stdid">Name</label> <div class="col-sm-10"> <input type="text" class="form-control" id="name" name="nm" value="<?php echo $row['name'];?>"> </div> </div> <div class="form-group"> <label class=" col-sm-2" for="stdid">Father's Name</label> <div class="col-sm-10"> <input type="text" class="form-control" id="fname" name="fnm" value="<?php echo $row['fathername'];?>"> </div> </div> <div class="form-group"> <label class=" col-sm-2" for="mnm">Mother's Name</label> <div class="col-sm-10"> <input type="text" class="form-control" id="mname" name="mnm" value="<?php echo $row['mothername'];?>"> </div> </div> <div class="form-group"> <label class=" col-sm-2" for="mnm">Date of Birth</label> <div class="col-sm-10"> <input type="text" class="form-control" id="dob" name="dob" value="<?php echo $row['dob'];?>"> </div> </div> <div class="form-group"> <label class=" col-sm-2" for="email">Email</label> <div class="col-sm-10"> <input type="text" class="form-control" id="email" name="email" value="<?php echo $row['email'];?>"> </div> </div> <div class="form-group"> <label class=" col-sm-2" for="div">Division</label> <div class="col-sm-10"> <input type="text" class="form-control" id="division" name="div" value="<?php echo $row['division'];?>"> </div> </div> <div class="form-group"> <label class=" col-sm-2" for="dis">District</label> <div class="col-sm-10"> <input type="text" class="form-control" id="division" name="dis" value="<?php echo $row['district'];?>"> </div> </div> <div class="form-group"> <label class=" col-sm-2" for="upz">Upazilla</label> <div class="col-sm-10"> <input type="text" class="form-control" id="upz" name="upz" value="<?php echo $row['upazilla'];?>"> </div> </div> <div class="form-group"> <div class="col-sm-10"> <label class=" col-sm-2" for="gen">Gender</label> <select class="form-control" id="course" name="gen" required> <option value="0" <?php if($row['gender']=='0'){echo "selected";} ?>>--Select Gender--</option> <option value="Male" <?php if($row['gender']=='Male'){echo "selected";} ?>>Male</option> <option value="Female" <?php if($row['gender']=='Female'){echo "selected";} ?>>Female</option> </select> </div> </div> <div class="form-group"> <div class="col-sm-10"> <label class=" col-sm-2" for="course">Change Course</label> <select class="form-control" id="course" name="course" required> <option value="0" <?php if($row['course']=='0'){echo "selected";} ?>>--Select Course--</option> <option value="Academic Course" <?php if($row['course']=='Academic Course'){echo "selected";} ?>>Academic Course</option> <option value="Kids Spoken English" <?php if($row['course']=='Kids Spoken English'){echo "selected";} ?>>Kid's Spoken English</option> <option value="Junior Spoken English"<?php if($row['course']=='Junior Spoken English'){echo "selected";} ?>>Junior Spoken English</option> <option value="Basic English Grammar" <?php if($row['course']=='Basic English Grammar'){echo "selected";} ?>>Basic English Grammar</option> <option value="Phonics" <?php if($row['course']=='Phonics'){echo "selected";} ?>>Phonics</option> <option value="Microsoft Office Program" <?php if($row['course']=='Microsoft Office Program'){echo "selected";} ?>>Microsoft Office Program</option> <option value="Graphics Design" <?php if($row['course']=='Graphics Design'){echo "selected";} ?>>Graphics Design</option> <option value="Web Design" <?php if($row['course']=='Web Design'){echo "selected";} ?>>Web Design</option> <option value="AutoCAD" <?php if($row['course']=='AutoCAD'){echo "selected";} ?>>AutoCAD (2D & 3D)</option> <option value="Digital Marketing" <?php if($row['course']=='Digital Marketing'){echo "selected";} ?>>Digital Marketing</option> <option value="Freelancing"<?php if($row['course']=='Freelancing'){echo "selected";} ?>>Freelancing</option> <option value="Arabic & Quran" <?php if($row['course']=='Arabic and Quran'){echo "selected";} ?>>Quran and Arabic Language</option> <option value="Fashion and Dress"<?php if($row['course']=='Fashion and Dress'){echo "selected";} ?>>Fashiom Design and Dress Making</option> <option value="Electrical" <?php if($row['course']=='Electrical'){echo "selected";} ?>>Electrical Work</option> <option value="Plumbing" <?php if($row['course']=='Plumbing'){echo "selected";} ?>>Plumbing</option> <option value="Driving" <?php if($row['course']=='Driving'){echo "selected";} ?>>Driving</option> </select> </div> </div> <div class="form-group"> <div class="col-sm-10"> <label class=" col-sm-2" for="ctime">Change Class Time</label> <select class="form-control" id="ctime" name="ctime" required> <option value="0" <?php if($row['classtime']=='0'){echo "selected";} ?>>--Select Class Time--</option> <option value="8:00 AM" <?php if($row['classtime']=='8:00 AM'){echo "selected";} ?>>8:00 AM</option> <option value="9:00 AM" <?php if($row['classtime']=='9:00 AM'){echo "selected";} ?>>9:00 AM</option> <option value="10:00 AM" <?php if($row['classtime']=='10:00 AM'){echo "selected";} ?>>10:00 AM</option> <option value="11:00 AM" <?php if($row['classtime']=='11:00 AM'){echo "selected";} ?>>11:00 AM</option> <option value="12:00 PM" <?php if($row['classtime']=='12:00 AM'){echo "selected";} ?>>12:00 PM</option> <option value="1:00 PM" <?php if($row['classtime']=='1:00 PM'){echo "selected";} ?>>1:00 PM</option> <option value="2:00 PM" <?php if($row['classtime']=='2:00 PM'){echo "selected";} ?>>2:00 PM</option> <option value="3:00 PM" <?php if($row['classtime']=='3:00 PM'){echo "selected";} ?>>3:00 PM</option> <option value="4:00 PM" <?php if($row['classtime']=='4:00 PM'){echo "selected";} ?>>4:00 PM</option> <option value="5:00 PM" <?php if($row['classtime']=='5:00 PM'){echo "selected";} ?>>5:00 PM</option> <option value="6:00 PM" <?php if($row['classtime']=='6:00 PM'){echo "selected";} ?>>6:00 PM</option> <option value="7:00 PM" <?php if($row['classtime']=='7:00 PM'){echo "selected";} ?>>7:00 PM</option> <option value="8:00 PM" <?php if($row['classtime']=='8:00 PM'){echo "selected";} ?>>8:00 PM</option> </select> </div> </div> <div class="form-group"> <label class=" col-sm-2" for="Phone">Change Phone Number</label> <div class="col-sm-10"> <input type="text" class="form-control" id="phone" name="phone" value="<?php echo $row['phone'];?>"> </div> </div> <div class="form-group"> <div class="col-sm-10"> <label class="col-sm-2" for="pic">Change Picture</label> <img src="<?php echo $row['picture']; ?>" width='50'> <input type="file" class="form-control" id="file" name="file" > </div> </div> <div class="form-group"> <div class="col-sm-10"> <label class="col-sm-2" for="stdstatus">Change Student Status</label> <select class="form-control" id="stdstatus" name="stdstatus" required> <option value="0" <?php if($row['classtime']=='0'){echo "selected";} ?>>--Select Student Status--</option> <option value="Admitted" <?php if($row['stdstatus']=='Admitted'){echo "selected";} ?>>Admitted</option> <option value="Completed" <?php if($row['stdstatus']=='Completed'){echo "selected";} ?>>Completed</option> </select> </div> </div> <div class="form-group"> <div class="col-sm-10"> <label class="col-sm-2" for="cerstatus">Change Certificate Status</label> <select class="form-control" id="cerstatus" name="cerstatus" required> <option value="0" <?php if($row['certstatus']=='0'){echo "selected";} ?>>--Select Certificate Status--</option> <option value="Not Apply" <?php if($row['certstatus']=='Not Apply'){echo "selected";} ?>>Not Apply</option> <option value="Applied" <?php if($row['certstatus']=='Applied'){echo "selected";} ?>>Applied</option> <option value="Issued" <?php if($row['certstatus']=='Issued'){echo "selected";} ?>>Issued</option> </select> </div> </div> <div class="form-group"> <label class="col-sm-2" for="docstatus">Change Document Submission Status</label> <div class="col-sm-10"> <select class="form-control" id="docstatus" name="docstatus" required> <option value="0" <?php if($row['docsub']=='0'){echo "selected";} ?>>--Select Document Submission Status--</option> <option value="Submitted" <?php if($row['docsub']=='Submitted'){echo "selected";} ?>>Submitted</option> <option value="Not Submitted" <?php if($row['docsub']=='Not Submitted'){echo "selected";} ?>>Not Submitted</option> </select> </div> </div> <div class="form-group"> <label class="col-sm-2" for="cfee">Change Course Fee</label> <div class="col-sm-10"> <input type="text" class="form-control" id="cfee" name="cfee" value="<?php echo $row['coursefee'];?>"> </div> </div> <div class="form-group"> <label class="col-sm-2" for="tpay">Change Total Payment</label> <div class="col-sm-10"> <input type="text" class="form-control" id="tpay" name="tpay" value="<?php echo $row['totalpayment'];?>"> </div> </div> <div class="form-group"> <label class="col-sm-2" for="tpay">Change Due Amount</label> <div class="col-sm-10"> <input type="text" class="form-control" id="due" name="due" value="<?php echo $row['due'];?>"> </div> </div> <div class="form-group"> <div class="col-sm-10"> <label class="col-sm-2" for="examstatus">Change Examination Status</label> <select class="form-control" id="examstatus" name="examstatus" required> <option value="0" <?php if($row['examstatus']=='0'){echo "selected";} ?>>--Select Examination Status--</option> <option value="Taken" <?php if($row['examstatus']=='Taken'){echo "selected";} ?>>Taken</option> <option value="Not Taken" <?php if($row['examstatus']=='Not Taken'){echo "selected";} ?>>Not Taken</option> </select> </div> </div> <div class="form-group"> <label class="col-sm-2" for="tpay">Update Result</label> <div class="col-sm-10"> <input type="text" class="form-control" id="result" name="result" value="<?php echo $row['result'];?>"> </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <input type="submit" class="btn btn-primary py-2 m-2" name="changeinfo" value="Update Student Data"> </div> </div> </form> </div> </div> </div> </div> <?php }} include ('footer.php'); ?>