]][ahhhhhhhfgfgdsfstrrrttrfwerwerwerdgdgrrreeteetffwerwerwerwerdsddfgh
במ12[aspddfsdfsdfdretetdfgioifngttrtrtrtrtrgsd g ggk ffghdsfaswerwerwerwerwvbnvfdgdgfbnasd asdaioioidgh;';';'
/
home
/
diginqyo
/
public_html
/
natanamstudio.in
/
stud-admin
/
Upload FileeE
HOME
<?php session_start(); if(!isset($_SESSION['un'])){ header("Location:login.php"); exit; } include'include/config.php'; $show=$conn->query('select * from grand_contact'); if(isset($_POST['save'])){ $heading=$_POST["heading"]; $nm1=$_POST["nm1"]; $nm2=$_POST["nm2"]; $em1=$_POST["em1"]; $em2=$_POST["em2"]; $conn->query("insert into grand_contact(heading,nm1,nm2,em1,em2) values ('$heading','$nm1','$nm2','$em1','$em2')"); if ($conn->affected_rows>0) { echo"<script>alert('Contact Successfully Inserted'); window.location='contact.php'</script>"; } else { echo "Error: " . $conn->error; } } include'include/header.php'; ?> <div class="content-wrapper"> <div class="container-fluid"> <!-- Breadcrumbs--> <ol class="breadcrumb"> <li class="breadcrumb-item"> <a href="contact.php">Contact</a> </li> <!--<li class="breadcrumb-item active">images</li>--> </ol> <!-- Icon Cards--> <!-- Area Chart Example--> <div class="card mb-3"> <div class="card-header"> Add Name or Number:</div> <div class="card-body"> <form method="post" enctype="multipart/form-data"> <div id="txtHint"></div> <div class="form-group"> <label for="Heading"><b> Heading:</b></label> <input type="text" class="form-control" name="heading" placeholder="Enter Form Heading" id="Heading" required> </div> <div class="form-group"> <label for="nm1"><b> Name/Phone1:</b></label> <input type="text" class="form-control" name="nm1" placeholder="Enter Name/Phone 1" id="nm1" > </div> <div class="form-group"> <label for="nm1"><b> Name/Phone2:</b></label> <input type="text" class="form-control" name="nm2" placeholder="Enter Name/Phone2" id="nm1" > </div> <div class="form-group"> <label for="em1"><b> Email 1:</b></label> <input type="text" class="form-control" name="em1" placeholder="Enter Email 1" id="em1" > </div> <div class="form-group"> <label for="em2"><b> Email 2:</b></label> <input type="text" class="form-control" name="em2" placeholder="Enter Email 2" id="em2" > </div> <button type="submit" name="save" class="btn btn-success">Save</button> </form> </div> </div> <!-- Example DataTables Card--> <div class="card mb-3"> <div class="card-header"> All images</div> <div class="card-body"> <div class="table-responsive"> <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0"> <thead> <tr> <th>SNo</th> <th>Heading</th> <th>Name/Phone 1</th> <th>Name/Phone 2</th> <th>Email 1</th> <th>Email 2</th> <th>Action</th> </thead> <tbody> <?php while($sql1=$show->fetch_assoc()){ ?> <tr> <td><?php echo $sql1['id'];?></td> <td><?php echo $sql1['heading'];?></td> <td><?php echo $sql1['nm1'];?></td> <td><?php echo $sql1['nm2'];?></td> <td><?php echo $sql1['em1'];?></td> <td><?php echo $sql1['em2'];?></td> <td><a href="contact_edit.php?id=<?php echo $sql1['id'];?>"><input type="submit" value="Edit" title="Edit" class="btn btn-warning"></a> <a href="javascript:;" onClick="deleteMe('<?php echo $sql1['id']?>')"><input type="submit" title="Delete" value="Delete" class="btn btn-danger"></a></td> </tr> <?php }?> </tbody> </table> </div> </div> </div> </div> <script> function deleteMe(id) { var i = confirm("Are you sure?"); if (i == true) { window.location.href = "contact_delete.php?id=" + id; } return false; } </script> <?php include'include/footer.php';?>