<!DOCTYPE html>
<html>
<body bgcolor="#E6E6FA"> 

<!--#Include file="header1.ssi"-->
<!--#Include file="ModuleName.ssi"-->
<!--#Include file="header2.ssi"-->


<?php $myfile = fopen("ModuleName.ssi", "r") or die("Unable to open file!");
$name=fread($myfile,filesize("ModuleName.ssi"));
fclose($myfile);
?>

<h1> Mathematical Studies Web Instructor Page</h1>
<h1><?php echo $name; ?></h1>









<form method="post" action=""> 

<font size="4"><B>
Click here </B></font>
<input type="submit" name="SUBMIT" value="update basic information">
<font size="4"><B>to update basic module information.</B></font>
<br><br>
<?php if (isset($_POST["SUBMIT"]))    echo "<META HTTP-EQUIV ='Refresh' Content ='0; URL =ChangeModuleInfo.php'>"; ?>
</form>

<form method="post" action="">
<font size="4"><B>
Click here </B></font>
<input type="submit" name="subMIT" value="upload problem sheet">
<font size="4"><B>
to upload the module problem sheet.</B></font>
<br><br>
<?php if (isset($_POST["subMIT"]))  echo "<META HTTP-EQUIV ='Refresh' Content ='0; URL =ChangeProblems.php'>"; ?>
</form>

<form method="post" action="">
<font size="4"><B>
Click here </B></font>
<input type="submit" name="SubMIT" value="upload exam paper">
<font size="4"><B>
to upload a sample exam paper.</B></font>
<br><br>
<?php if (isset($_POST["SubMIT"]))  echo "<META HTTP-EQUIV ='Refresh' Content ='0; URL =ChangeExamPaper.php'>"; ?>
</form>















<?php
$tnumber = $_POST["number"];
if (empty($tnumber)){}
else {
$L=strval($tnumber);
$myfile = fopen("LectureNumber.txt", "w") or die("Unable to open file!");
fwrite($myfile,$L);
fclose($myfile);}
?>




 <form method="post" action=" ">
<font size="4"><B> Choose a lecture number&nbsp;</B></font>
<textarea name="number" rows="1" cols="3" id="update">
</textarea>
 <font size="4"><B> and 
 click here <input type="submit" name="sub" value="update lecture">
 to update the chosen lecture.</B></font>
<br><br>
<?php if (!empty($tnumber))   echo "<META HTTP-EQUIV ='Refresh' Content ='0; URL =ChangeLecture.php'>"; ?>
</form>




</body>
</html>


