Beruflich Dokumente
Kultur Dokumente
Spardha Sport
Home
<?php
session_start();
include("header.php");
include("dbconnection.php");
include("slider.php");
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<div class="rounded">
<!--
#####################################################################################
########### -->
<ul class="nospace">
<?php
$qsql = mysqli_query($con,$sql);
while($rs = mysqli_fetch_array($qsql))
?>
</ul>
<!--
#####################################################################################
########### -->
</div>
<div class="one_half">
<?php
$qsql = mysqli_query($con,$sql);
$rs = mysqli_fetch_array($qsql);
?>
<!--
#####################################################################################
########### -->
?>
</ul>
<!--
#####################################################################################
########### -->
</div>
<!--
#####################################################################################
########### -->
<div class="sdb_holder">
<h6>Quick Information</h6>
</ul>
</div>
<!--
#####################################################################################
########### -->
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
</main>
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<?php
include("footer.php");
?>
About Us
<?php
include("header.php");
include("slider.php");
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<div class="rounded">
<?php
$qsql = mysqli_query($con,$sql);
$rs = mysqli_fetch_array($qsql);
?>
<!--
#####################################################################################
########### -->
<div class="clear"></div>
</main>
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<?php
include("footer.php");
?>
Footer
<?php
include("dbconnection.php");
?>
<!--
#####################################################################################
########### -->
<div class="rounded">
<!--
#####################################################################################
########### -->
<figure class="center">
</div>
<div class="one_third">
<?php
$qsql = mysqli_query($con,$sql);
while($rs = mysqli_fetch_array($qsql))
?>
</div>
<div class="one_third">
<address>
my Sports Carnival
<br>
</address>
</div>
<!--
#####################################################################################
########### -->
</footer>
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<p class="fl_left">Copyright © - All Rights Reserved
</p>
<p class="fl_right"> </p>
<!--
#####################################################################################
########### -->
</div>
</div>
<script src="layout/scripts/jquery.min.js"></script>
<script src="layout/scripts/jquery.fitvids.min.js"></script>
<script src="layout/scripts/jquery.mobilemenu.js"></script>
<script src="layout/scripts/tabslet/jquery.tabslet.min.js"></script>
</body>
</html>
College List
<?php
session_start();
include("header.php");
include("dbconnection.php");
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<div class="rounded">
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<h1>College Details</h1>
<tr>
<th scope="col"> Description</th>
</tr>
<?php
$qsql = mysqli_query($con,$sql);
while($rs = mysqli_fetch_array($qsql))
echo "<tr>
<td> $rs[coursename] - $rs[coursetype]</td>
<td> $rs[description]</td>
</tr>";
?>
</table>
<!--
#####################################################################################
########### -->
</div>
<!--
#####################################################################################
########### -->
<div class="sdb_holder">
<h6>Quick Information</h6>
</ul>
</div>
<!--
#####################################################################################
########### -->
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
</main>
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<?php
include("footer.php");
?>
Contact php
<?php
include("header.php");
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<div class="rounded">
<!--
#####################################################################################
########### -->
<h1>Contact form</h1>
<div id="comments">
</div>
<div class="one_third">
</div>
<div class="one_third">
<label for="url">Website</label>
</div>
</div>
<div>
</div>
</form>
</div>
<!--
#####################################################################################
########### -->
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<h6>Address</h6>
<div class="sdb_holder">
<address>
Address
<br>
, <br>
pin - 261303.<br>
</address>
</div>
<!--
#####################################################################################
########### -->
</div>
<!--
#####################################################################################
########### -->
<div class="clear"></div>
</main>
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<?php
include("footer.php");
?>
Gallery
<?php
include("header.php");
include("dbconnection.php");
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<div class="rounded">
<!--
#####################################################################################
########### -->
<div id="gallery">
<figure>
$i=0;
$qsql = mysqli_query($con,$sql);
while($rs = mysqli_fetch_array($qsql))
$sql1 = "SELECT * FROM image where album_id='$rs[album_id]' ORDER BY RAND( ) LIMIT 0 , 1";
$qsql1 = mysqli_query($con,$sql1);
$rs1 = mysqli_fetch_array($qsql1);
?>
<li class="one_quarter
<?php
if($i==0)
$i++;
else
if($i>=3)
$i =0;
}
else
$i++;
?>
<?php
?>
</ul>
</figure>
</div>
<!--
#####################################################################################
########### -->
<div class="clear"></div>
</main>
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<?php
include("footer.php");
?>
<script src="backup/academic-education/layout/scripts/jquery.min.js"></script>
<script src="backup/academic-education/layout/scripts/jquery.fitvids.min.js"></script>
<script src="backup/academic-education/layout/scripts/jquery.mobilemenu.js"></script>
<script src="backup/academic-education/layout/scripts/nivo-lightbox/nivo-lightbox.min.js"></script>
Headerphp
<?php
//session_start();
include("dbconnection.php");
if(isset($_SESSION['staffid']))
$qsqlstaff = mysqli_query($con,$sqlstaff);
$rsstaff = mysqli_fetch_array($qsqlstaff);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body id="top">
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<nav>
<ul>
<p>
<?php
if(isset($_SESSION['staffid']))
?>
</p>
<li>Welcome <?php
echo $rsstaff['name'];
?></li>
<li><a href="dashboard.php">Dashboard</a></li>
<li><a href="logout.php">Logout</a></li>
<?php
else
?>
<li><a href="index.php">Home</a></li>
<?php
?>
</ul>
</nav>
<!--
#####################################################################################
########### -->
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
</div>
<div class="fl_right">
<form method="get" action="news.php">
<fieldset>
<legend>Search:</legend>
</fieldset>
</form>
</div>
<!--
#####################################################################################
########### -->
</header>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<div class="rounded">
<!--
#####################################################################################
########### -->
<ul class="clear">
<li><a href="gallery.php">Gallery</a></li>
<ul>
<li><a href="courselist.php">College</a></li>
<li><a href="searchresult.php">Result</a></li>
</ul>
</li>
</ul>
<!--
#####################################################################################
########### -->
</nav>
</div>
</div>
//session_start();
?>
<!--
#####################################################################################
########### -->
<?php
if(isset($_SESSION["staffid"]))
?>
<nav class="sdb_holder">
<ul>
<?php
if($_SESSION["staff_type"] == "Administrator")
?>
<?php
?>
</ul>
</nav>
<?php
?>
<!--
#####################################################################################
########### -->
</div>
Login
<?php
session_start();
if(isset($_SESSION["staffid"]))
header("Location: dashboard.php");
ob_start();
include("header.php");
include("dbconnection.php");
if(isset($_POST['submit']))
if(!$qsql = mysqli_query($con,$sql))
echo mysqli_error($con);
else
if(mysqli_num_rows($qsql) ==1)
$rs = mysqli_fetch_array($qsql);
$_SESSION["staffid"] = $rs[staff_id];
$_SESSION["staff_type"] = $rs[staff_type];
header("Location: dashboard.php");
else
{
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<div class="rounded">
<!--
#####################################################################################
########### -->
<?php
include("leftsidebar.php");
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<h1>Login</h1>
<tr>
<td width="76%">
<option>Select</option>
<option value="Administrator">Administrator</option>
<option value="Employee">Employee</option>
</select></td>
</tr>
<tr>
</tr>
<tr>
<td height="33">Password</td>
</tr>
<td> </td>
</tr>
</table>
</form>
</p>
<div id="comments"></div>
<!--
#####################################################################################
########### -->
</div>
<!--
#####################################################################################
########### -->
<div class="clear"></div>
</main>
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<?php
include("footer.php");
?>
Application
<?php
include("header.php");
include("dbconnection.php");
if(isset($_POST['submit']))
//4. Query
if(!$qsql=mysqli_query($con,$sql))
echo mysqli_error($con);
else
{
echo "<script>alert('Admission record inserted successfully..');</script>";
if(isset($_GET['editid']))
$qsql = mysqli_query($con,$sql);
$rs= mysqli_fetch_array($qsql);
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<div class="rounded">
<!--
#####################################################################################
########### -->
<?php
include("leftsidebar.php");
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<h1>New admission</h1>
<p>
<tr>
<td width="24%">Course</td>
<td width="76%">
<option value="">Select</option>
<?php
$qsql = mysqli_query($con,$sql);
while($rs = mysqli_fetch_array($qsql))
?>
</select>
</select></td>
</tr>
<tr>
<td>Start date</td>
</tr>
<tr>
<td>End date</td>
</tr>
<tr>
<td>Admission Fees</td>
</tr>
<tr>
<td>Note</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</form>
</p>
<div id="comments"></div>
<!--
#####################################################################################
########### -->
</div>
<!--
#####################################################################################
########### -->
<div class="clear"></div>
</main>
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<?php
include("footer.php");
?>
Sports
<?php
session_start();
if(!isset($_SESSION["staffid"]))
header("Location: login.php");
include("header.php");
include("dbconnection.php");
if(isset($_POST[submit]))
$syllabustitle = mysqli_real_escape_string($con,$_POST[syllabustitle]);
$syllabuscontents = mysqli_real_escape_string($con,$_POST[syllabuscontent]);
if(!$qsql=mysqli_query($con,$sql))
echo mysqli_error($con);
else
{
if(isset($_GET[editid]))
$qsql = mysqli_query($con,$sql);
$rs= mysqli_fetch_array($qsql);
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<div class="rounded">
<!--
#####################################################################################
########### -->
<?php
include("leftsidebar.php");
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<h1>Syllabus</h1>
<tr>
<td width="24%">Subject</td>
<td width="76%">
<option value="">Select</option>
<?php
$qsql = mysqli_query($con,$sql);
while($rs = mysqli_fetch_array($qsql))
{
echo "<option value='$rs[subject_id]'>$rs[subjectcode] - $rs[subject_name]</option>";
?>
</select></td>
</tr>
<tr>
<td>Syllabus Title</td>
</tr>
<tr>
<td>Syllabus Content</td>
</tr>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</form>
</p>
<div id="comments"></div>
<!--
#####################################################################################
########### -->
</div>
<!--
#####################################################################################
########### -->
<div class="clear"></div>
</main>
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<?php
include("footer.php");
?>
<script type="application/javascript">
function validateform()
if(document.syllabusform.syllabustitle.value=="")
{
alert("Syllabus title should not be empty..");
document.syllabusform.syllabustitle.focus();
return false;
else if(document.syllabusform.syllabuscontent.value=="")
document.syllabusform.syllabuscontent.focus();
return false;
else
return true;
</script>
Sport list
<?php
session_start();
include("header.php");
include("dbconnection.php");
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<div class="rounded">
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<h1>Sport List</h1>
<tr>
<td width="73">
<select name="course">
<option value="">Select</option>
<?php
$qsql = mysqli_query($con,$sql);
while($rs = mysqli_fetch_array($qsql))
?>
</select>
</td>
</td>
</tr>
<tr>
<td>
<select name="semester">
<?php
$arr = array("Select","Football","Hockey","Cricket","Golf","Vollyboll","Carrom");
foreach($arr as $val)
?>
</select>
</td>
</tr>
</table>
</form>
<?php
if(isset($_GET['btnsearch']))
?>
<h1>Search result</h1>
<?php
$qsql1 = mysqli_query($con,$sql1);
$rs1 = mysqli_fetch_array($qsql1);
?>
<tr>
</tr>
</table>
<?php
$qsqlsubject = mysqli_query($con,$sqlsubject);
while($rssubject = mysqli_fetch_array($qsqlsubject))
?>
<tr>
</tr>
<?php
$qsyllabus = mysqli_query($con,$sqlsyllabus);
while($rssyllabus = mysqli_fetch_array($qsyllabus))
?>
<tr>
</tr>
<?php
}
?>
</table>
<?php
?>
<?php
?>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
</main>
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<?php
include("footer.php");
?>
<script type="application/javascript">
</script>
Staff
<?php
include("header.php");
include("dbconnection.php");
if(isset($_POST[submit]))
if(!$qsql=mysqli_query($con,$sql))
echo mysqli_error($con);
else
if(isset($_GET[editid]))
{
$sql ="SELECT * FROM staff where staff_id='$_GET[editid]'";
$qsql = mysqli_query($con,$sql);
$rs= mysqli_fetch_array($qsql);
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<div class="rounded">
<!--
#####################################################################################
########### -->
<?php
include("leftsidebar.php");
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<h1>Add staff</h1>
<tr>
<td width="27%">Name</td>
</tr>
<tr>
<td>LoginId</td>
</tr>
<tr>
<td>Password</td>
</tr>
<tr>
<td>Confirm Password</td>
<td><input type="password" value="<?php echo $rs[password]; ?>" name="staffcpassword"
id="staffcpassword" size="25"></td>
</tr>
<tr>
<td>Staff Type</td>
<option>Select</option>
<option value="Administrator">Administrator</option>
<option value="Employee">Employee</option>
</select></td>
</tr>
<tr>
<td>Designation</td>
<td>
</td>
</tr>
<tr>
<td>Address</td>
</tr>
<tr>
<td>Contact no</td>
<tr>
<td>Status</td>
<option value="">Select</option>
<option value="Active">Active</option>
<option value="Inactive">Inactive</option>
</select></td>
</tr>
<p>
</select>
</p></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</form>
<div id="comments"></div>
<!--
#####################################################################################
########### -->
</div>
<!--
#####################################################################################
########### -->
<!-- / main body -->
<div class="clear"></div>
</main>
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<?php
include("footer.php");
?>
<script type="application/javascript">
function validateform()
if(document.staffform.name.value=="")
document.staffform.name.focus();
return false;
else if(document.staffform.loginid.value=="")
{
alert("Login id should not be empty..");
document.staffform.loginid.focus();
return false;
else if(document.staffform.password.value=="")
document.staffform.password.focus();
return false;
else if(document.staffform.paswrd.value=="")
document.staffform.passwrd.focus();
return false;
else if(document.staffform.designation.value=="")
document.staffform.designation.focus();
return false;
else if(document.staffform.address.value=="")
return false;
else if(document.contactno.address.value=="")
document.staffform.contactno.focus();
return false;
else
return true;
</script>
News
<?php
session_start();
include("header.php");
include("dbconnection.php");
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<div class="rounded">
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<ul class="nospace">
<?php
$qsql = mysqli_query($con,$sql);
while($rs = mysqli_fetch_array($qsql))
{
echo "<li class='btmspace-15'><a href='news-more.php?newsid=$rs[news_id]'><em
class='heading'>$rs[news_title]</em> <img class='borderedbox' src='newsimg/$rs[image]' alt=''
style='width:220px;height:95px;'></a></li>";
?>
</ul>
<!--
#####################################################################################
########### -->
</div>
<div class="one_half">
<!--
#####################################################################################
########### -->
<li class="clear">
<?php
if(isset($_GET['search']))
while($rs = mysqli_fetch_array($qsql))
?>
</li>
</ul>
<!--
#####################################################################################
########### -->
</div>
<!--
#####################################################################################
########### -->
<div class="sdb_holder">
<h6>Quick Information</h6>
</ul>
</div>
<!--
#####################################################################################
########### -->
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
</main>
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<?php
include("footer.php");
?>
Dashboard
<?php
session_start();
if(!isset($_SESSION["staffid"]))
header("Location: login.php");
include("dbconnection.php");
include("header.php");
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<div class="rounded">
<!--
#####################################################################################
########### -->
<?php
include("leftsidebar.php");
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<h1>Admin Dashboard</h1>
<div id="comments">
<?php
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2>
<?php
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2>
<?php
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2>
<?php
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2>
<?php
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2>
<?php
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2>
<?php
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2>
<?php
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2>
<?php
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2>
<?php
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2>
<?php
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2>
<?php
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2>
<!--
#####################################################################################
########### -->
</div>
<!--
#####################################################################################
########### -->
<!-- / main body -->
<div class="clear"></div>
</main>
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<?php
include("footer.php");
?>
Connection
<?php
$con = mysqli_connect("localhost","root","","college_website");
if(mysqli_connect_errno($con))
echo mysqli_connect_error();
}
?>
Slider
<?php
include("dbconnection.php");
$qsqlslider = mysqli_query($con,$sqlslider);
while($rsslider = mysqli_fetch_array($qsqlslider))
$rssliderimg[] = $rsslider['sliderimage'];
$slidertitle[] = $rsslider['slidertitle'];
$description[] = $rsslider['description'];
?>
<!--
#####################################################################################
########### -->
<div class="wrapper">
<div id="slider">
<!--
#####################################################################################
########### -->
<figure id="slide-1"><a class="view" href="#"><img src="sliderimg/<?php echo $rssliderimg[0]; ?>"
alt="" height="350" width="960"></a>
<figcaption>
</p>
</figcaption>
</figure>
<figcaption>
</figcaption>
</figure>
<figcaption>
</figcaption>
</figure>
</figcaption>
</figure>
<!--
#####################################################################################
########### -->
</ul>
<!--
#####################################################################################
########### -->
</div>
</div>
</div>
<!--
#####################################################################################
########### -->
Slider Image
<?php
include("header.php");
include("dbconnection.php");
if(isset($_POST[submit]))
$filename = rand().$_FILES["image"]["name"];
move_uploaded_file($_FILES["image"]["tmp_name"],"sliderimg/".$filename);
if($_FILES["image"]["name"] != "")
if(!$qsql = mysqli_query($con,$sql))
echo mysqli_error($con);
?><!--
#####################################################################################
########### -->
<?php
include("leftsidebar.php");
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<h1>Slider Image</h1>
<p>
<tr>
<td width="81%">
<?php
foreach($arr as $val)
{
echo "<option value='$val'>$val</option>";
?>
</select></td>
</tr>
</table>
<div id="txtHint">
</div>
<p> </p>
</form>
</p>
<div id="comments"></div>
<!--
#####################################################################################
########### -->
</div>
<!--
#####################################################################################
########### -->
<div class="clear"></div>
</main>
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<?php
include("footer.php");
?>
<script>
function changeslider(str) {
if (window.XMLHttpRequest) {
} else {
xmlhttp.onreadystatechange = function() {
document.getElementById("txtHint").innerHTML = xmlhttp.responseText;
xmlhttp.open("GET","ajaxslider.php?q="+str,true);
xmlhttp.send();
</script>
Schedule
<?php
session_start();
if(!isset($_SESSION["staffid"]))
header("Location: login.php");
include("header.php");
include("dbconnection.php");
if(isset($_POST[submit]))
if(!$qsql=mysqli_query($con,$sql))
echo mysqli_error($con);
else
{
if(isset($_GET[editid]))
$qsql = mysqli_query($con,$sql);
$rs= mysqli_fetch_array($qsql);
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<div class="rounded">
<!--
#####################################################################################
########### -->
<?php
include("leftsidebar.php");
?>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<h1>Subject</h1>
<p>
<tr>
<td width="76%">
<option value="">Select</option>
<?php
$qsql = mysqli_query($con,$sql);
while($rs = mysqli_fetch_array($qsql))
?>
</select></td>
</tr>
<tr>
<td height="38">Subject</td>
</tr>
<tr>
</tr>
<tr>
<td height="35">Semester</td>
<option value="">Select</option>
<?php
foreach($arr as $val)
?>
</select></td>
</tr>
<tr>
<td>Description</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</form>
</p>
<div id="comments"></div>
<!--
#####################################################################################
########### -->
</div>
<!--
#####################################################################################
########### -->
<div class="clear"></div>
</main>
</div>
</div>
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<!--
#####################################################################################
########### -->
<?php
include("footer.php");
?>
<script type="application/javascript">
function validateform()
if(document.subjectform.subject.value=="")
document.subjectform.subject.focus();
return false;
if(document.subjectform.semister.value=="")
document.subjectform.semister.focus();
return false;
else if(document.subjectform.description.value=="")
return false;
else
return true;
</script>