Evaluation Sheet Database

Hello Members and Administrators,

I just want to check the feasibility of my plan.

I’m planning to build a simple EVALUATION database page for my students.
It consists basically of 4 important pages:

  1. MAIN PAGE: A webform to be filled out by the teachers which includes name of students, dates, comments and evaluation remarks.
    There would be 2 “Actions” for the submit button:
    a. create a single page of all the entries(html / php?).
    b. transfer the data in a database.
  2. A DATABASE of the names of students with the ability to view or edit them via hyperlink or delete them.
  3. A SUB DATABASE or list of hyperlinks of the evaluation entries of the chosen student.
  4. A SINGLE PAGE of the evaluation entry (HTML or PHP) created thru the form.

I would also like to give a username and a password for the evaluators.

I have a sufficient background in HTML and Excel functions so php scripting or mysql is perhaps not a big problem for me.
Last night, I had spent almost 5 hours watching php tuts on youtube including WAMPs.

I really want to help my fellow teachers by giving them the convenience of having a centralized evaluation database.

Your replies are much appreciated.

Thanks,

Brian

Well, it sounds like you have it planned out already, which helps alot. First, you’ll need to plan out the data base, which from what i can see, would be at least 3 tables.

1 - student info (grade, classes, etc)
2 - teacher info (name, login info, etc)
3 - evaluation info (student_id, teacher_id, etc)

on the main page, i would start out with a simple listing of the students and maybe some of the their info. You can list which teachers have already evaluated the student too in that area. You can either use a url to get to the different areas and still use the same page and form using actions and GETs.

I do something just like this for our support tickets, the code is below.
[php]
if(isset($_POST[‘close’])) {
for($i = 0; $i < count($_POST[‘ck’]); $i++) {
//echo $_POST[‘ck’][$i]."
";
$rid = $_POST[‘ck’][$i];
mysql_query(“UPDATE venzo_contactus SET status = 0 WHERE req_id = ‘$rid’”) or die(mysql_error());
}
}

$query = mysql_query(“SELECT * FROM venzo_contactus WHERE status <> 0 ORDER BY date DESC”) or die(mysql_error());
$numrows = mysql_num_rows($query);
?>

<?php $date = date("Y-m-d"); $CurDate = strtotime($date); $yesterday = strtotime("-1 day", $CurDate);

for($i = 0; $i < $numrows; $i++) {
$r = mysql_fetch_array($query);
$compare = strtotime($r[‘date’]);

if($compare > $yesterday) {
	$new = "<span style='color: red;'>$r[req_id]</span>";
} else {
	$new = $r['req_id'];
}
				
if($r['status'] == 0) {
	$status = "Closed";
} else if($r['status'] == 1) {
	$status = "On Hold";
} else if($r['status'] == 2) {
	$status = "New";
} else if($r['status'] == 3) {
	$status = "A.C.R";
} else if($r['status'] == 4) {
	$status = "Updated";
}
							
if($r['subject'] == "") {
	$r['subject'] = "Test";
}
				
if($r['last_answered_by'] == "") {
	$ans = "<span style='color: red;'>Open</span>";
} else {
	$ans = $r['last_answered_by'];
}
							
if($i % 2) {
	echo "<tr bgcolor='#FFE6CC'>\n";
} else {
	echo "<tr bgcolor='white'>\n";
}
							
if(empty($r['last_answered_by'])) {
	$ans = "";
} else {
	$val = explode(', ', $r['last_answered_by']);
	$ans = end($val);
}

?>










<?php } ?>









Req ID Submitted Status From Topic Updated On Ans'd by
<?php echo $new; ?> <?=date('m/d/Y', strtotime($r['createdon']))?> <?php echo $status; ?> <?php echo $r['email']; ?> <?php echo truncate(stripslashes($r['subject'])); ?> <?=date('m/d/Y', strtotime($r['date']))?> @ <?=date('h:i:s a', strtotime($r['date']))?> <?php echo $ans; ?>

[/php]

I use both url’s and buttons to control user actions. I can click on the ticket topic to view the question, or if its an old ticket that hasn’t been updated in a while, i can check the box and hit close to close the ticket.

As far as editing goes, that all depends on how and what you want to edit. I would suggest first getting the evaluation form converted to html, get all the fields named and then go from there. Its alot easier to troubleshoot if its all on one page though.

Thank you for your response richei.

I haven’t started the actual thing yet but your code is very useful.

I really appreciate it.

Thanks. :smiley:

Sponsor our Newsletter | Privacy Policy | Terms of Service