MMCT TEAM
Server IP : 2a02:4780:11:1359:0:1d43:a566:2  /  Your IP : 216.73.216.199
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/gsmps/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u490972518/domains/ppschool.org.in/public_html/gsmps/admin/user_add.php
<html>
			<head>
				<?php include("../link/admin_headconnection.php");
				include("../link/databaseconnection.php"); 
				session_start();
			$lg=$_SESSION['admin'];
			if(!$lg)
			{
				header("location:index.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"/>
					<style>
					body
{
	background-image:url(../image/back3.jpg);
}
.work
{
	min-height:200px;
}
.gap
{
	height:100px;
}
					
					</style>
			<script>
			$(document).ready(function(){
				show();
				$("#regform").submit(function(e){
					
					e.preventDefault();
					$.ajax({
						url:"../code/user_code.php?flag=1",
						type:"POST",
						data: new FormData(this),
						contentType:false,
						processData:false,
						
						
						success:function(res){
							alert(res);
							show();
							$("#regform").trigger("reset");
						},
						error:function(){
							alert("error");
						}
					});
					
					
				});
			});
			function show()
			{
				$("#show").load("../code/user_code.php?flag=2");
			}
			
			
		function deleterow(id)
			{
				//alert(id);
				var a=confirm("Are you sure");
				if(a==true)
				{
					$.ajax({
						url:"../code/user_code.php?flag=3",
						type:"POST",
						data:{rowid:id},
						
						success:function(res){
							alert(res);
							show();
						},
						error:function(){
							alert("error");
						}
					});
				}
				
			}
			</script>
			</head>
<body>
<div class="container-fluid">
		<div class="row">
			<?php include("../link/admin_dashboardmenu .php");?>
		</div>
		<div class="row">
		<!--menu-->
		<div class="col-sm-2">
			<?php include("../link/student_details_side_menu.php");?>
		
		</div>
		<!--menu--close-->
		<div class="col-sm-10">
		<div class="panel-group">
				<div class="panel panel-primary">
				<div class="panel-heading"><center><h4>User Add</h4></center></div>
				<form  class="form-inline" id="regform" method="post">
				<br/>
				
				<div class="form-group">

				<label class=" col-sm-6 label-control">Area<span style="color:red">*</span></label>
				<div class="col-sm-6">
				<select class='form-control' name='area'>
				<option>Cashier</option>
				<option>Admin</option>
				</select></div>
				
				
				
				
				<br/>
  
  
			</div>
			<div class="form-group">
    <label  class="col-sm-4 control-label">Name<span style="color:red"></span></label>
    <div class="col-sm-8">
      <input type="text" class="form-control"  placeholder=" Name" name="name" title="name" >
    </div>
  </div>
			<div class="form-group">
    <label  class="col-sm-4 control-label">email Id<span style="color:red"></span></label>
    <div class="col-sm-8">
      <input type="email" class="form-control"  placeholder=" Email" name="email" title="Email" >
    </div>
  </div>
		<div class="form-group">
    <label  class="col-sm-4 control-label">Password<span style="color:red"></span></label>
    <div class="col-sm-8">
      <input type="password" class="form-control"  placeholder=" Password" name="password" title="Pass" >
    </div>
  </div>	
			
			<center>
			<br/><br/>
		<button class="btn btn-success">Add</button></center>
	</form>
	<div id="show"></div>
		</div>
		</div>
		
		
		
		</div>
	
		</div>
		
		</div>
		</html>

MMCT - 2023