View site source code
index.php | header.inc | leftside.inc | rightside.inc | footer.inc | style.css | Account tools | Logout page | Email page | Create account | File upload | Schedule | View code | Forgot password | View homework | Project details | Monthly Poll Form Ajax files => Display uploads | Change password | Create account | Login code | New password | Send email | View comments | Display HW | Show grades | Display assigns | show_poll_results.php
Source code of show_ups_ajax.php
<script type="text/javascript">
$("document").ready(function() {
$(".show_link").click(function() {
var href = $(this);
var id = $(this).attr("id").substring(6);
if( href.html() == "view comment" )
{
$.ajax( {
url: "ajax_files/view_comment_ajax.php",
type: "POST",
data: "comment_id=" + id + "&caller=comment",
success: function(msg) {
$("#feature_" + id).html(msg);
$("#feature_" + id).show('blind');
href.html("hide comment");
}
} );
}
else
{
$("#feature_" + id).hide('blind');
href.html("view comment");
}
} );
$(".log_class").click(function() {
var act = $(this).attr("id").substring(0,1);
var fileid = $(this).attr("id").substring(1);
var id = <?php echo $_POST['idnum']; ?>;
$.ajax( {
url: "ajax_files/add_to_log_ajax.php",
type: "POST",
data: "idnum=" + id + "&file_id=" + fileid + "&action=" + act,
} );
} );
$(".no_credit_link").click(function() {
var assignid = $(this).attr("id").substring(10);
if (!$("#no_credit_div_" + assignid).is(":hidden"))
{
$("#no_credit_div_" + assignid).hide('blind');
$("#no_credit_" + assignid).html("Read why");
}
else
{
$.ajax( {
url: "ajax_files/view_comment_ajax.php",
type: "POST",
data: "assign=" + assignid + "&caller=nonsubmit",
success: function(msg) {
$("#no_credit_div_" + assignid).html(msg);
$("#no_credit_div_" + assignid).show('blind');
$("#no_credit_" + assignid).html("Hide");
}
} );
}
} );
$(".comment_link").click(function() {
var href_html = $(this);
var assignid = $(this).attr("id").substring(13);
var userid = $("#id_div_"+assignid).html();
if( $(this).html() == "Comment on this file" )
{
$("#comment_div_"+assignid).html("");
$.ajax( {
url: "ajax_files/admin_ajax/comment_form_ajax.php",
type: "POST",
data: "user_id=" + userid + "&assign_id=" + assignid,
success: function(msg) {
$("#comment_div_"+assignid).html(msg);
$("#comment_div_"+assignid).show('blind');
$("#error_display").show('blind');
href_html.html("hide comment");
}
} );
}
else
{
$("#comment_div_"+assignid).hide('blind');
$("#comment_div_"+assignid).html(userid);
$("#error_display").hide('blind');
$(this).html( "Comment on this file");
}
} );
$(".compile_link").click(function() {
var href_html = $(this);
var uploadid = $(this).attr("id").substring(13);
if( $(this).html() == "Compile File" )
{
$("#compile_link_"+uploadid).html("");
$.ajax( {
url: "ajax_files/admin_ajax/compile_file_ajax.php",
type: "POST",
data: "upload_id=" + uploadid,
success: function(msg) {
$("#compile_div_"+uploadid).html(msg);
$("#compile_div_"+uploadid).show('blind');
$("#compile_link_"+uploadid).html("Hide Compile");
}
} );
}
else
{
$("#compile_div_"+uploadid).hide('blind');
$("#compile_link_"+uploadid).html("Compile File");
}
} );
} );
</script>
<?php
function timeRemaining( $duedate )
{
$time_left = $duedate - time();
$days = floor( $time_left / 86400 );
$time_left = $time_left - $days * 86400;
$hours = floor( $time_left / 3600 );
$time_left = $time_left - $hours * 3600;
$minutes = floor( $time_left / 60 );
$seconds = $time_left - $minutes * 60;
$time_remaining = "";
if( $days == 1 )
$time_remaining .= $days ." day, ";
if( $days > 1 )
$time_remaining .= $days ." days, ";
if( $hours == 1 )
$time_remaining .= $hours ." hour, ";
if( $hours > 1 )
$time_remaining .= $hours ." hours, ";
if( $minutes == 1 )
$time_remaining .= $minutes ." minute";
if( $minutes > 1 )
$time_remaining .= $minutes ." minutes";
if( $seconds == 1 )
$time_remaining .= ", and ". $seconds ." second";
if( $seconds > 1 )
$time_remaining .= ", and ". $seconds ." seconds";
return $time_remaining;
}
if( isset( $_POST['idnum'] ) )
{
require_once( '../main_includes/.htpasswd' );
//echo "<div class=\"featurebox_center\">\n";
// *************************
// show homework assignments
// *************************
if( $_POST['caller'] == "viewhw" || $_POST['caller'] == "admin" )
{
echo "<div class=\"featurebox_center\">\n";
$assign_query = "select * from master_assigns where coursenum=";
$assign_query .= "(select course from auth where idnum=". mysql_real_escape_string( $_POST['idnum'] ) .")";
$assign_query .= " and assign_stamp <=". time();
$assign_query .= " and assign_type=". mysql_real_escape_string( $_POST['assigntype'] ) ." order by idnum desc";
$assign_result = mysql_query( $assign_query )
or die( 'Could not connect: '. mysql_error() );
if( mysql_num_rows( $assign_result ) != 0 )
{
$hw_credit = 0;
echo "<table id=\"myTable\" cellspacing=\"0\" border=\"0\" width=\"100%\">\n";
echo "<thead>\n";
echo "<tr bgcolor=\"#4E7DD1\" text=\"#FFFFFF\">\n";
echo "<th><font color=\"#FFFFFF\">Assignment</font></th>\n";
echo "<th><font color=\"#FFFFFF\">Date assigned</font></th>\n";
echo "<th><font color=\"#FFFFFF\">Date due</font></th>\n";
echo "<th><font color=\"#FFFFFF\">Submission date</font></th>\n";
echo "<th><font color=\"#FFFFFF\">Status</font></th>\n";
echo "</tr>\n";
echo "</thead>\n";
echo "<tbody>\n";
for( $i = 0; $i < mysql_num_rows( $assign_result ); $i++ )
{
$assign_row = mysql_fetch_row( $assign_result );
$status_query = "select * from homework where studentid = ". mysql_real_escape_string( $_POST['idnum'] );
$status_query .= " and assign_id=". $assign_row[0];
$status_query .= " order by idnum desc";
$status_result = mysql_query( $status_query )
or die( 'Could not connect: '. mysql_error() );
$status_row = mysql_fetch_row( $status_result );
if( $i % 2 != 0 )
echo "<tr>\n";
else
echo "<tr bgcolor=\"#F1F6FE\">\n";
echo "<td><b>". $assign_row[4] ."</b></td>\n";
echo "<td><font color=\"#2153AA\">". date( 'm/d/y h:i:sa', $assign_row[5] ) ."</font></td>\n";
echo "<td><font color=\"#2153AA\">". date( 'm/d/y h:i:sa', $assign_row[6] ) ."</font></td>\n";
if( mysql_num_rows( $status_result ) !=0 ) // submission found, handle within here
{
$up_log_query = "select * from user_uploads where useridnum = ". mysql_real_escape_string( $_POST['idnum'] );
$up_log_query .= " and assign_id=". $assign_row[0];
$up_log_query .= " order by idnum desc";
$up_log_result = mysql_query( $up_log_query )
or die( 'Could not connect: '. mysql_error() );
for( $x = 0; $x < mysql_num_rows( $up_log_result ); $x++ )
{
if( $x == mysql_num_rows( $up_log_result ) - 1 )
{
$up_log_row = mysql_fetch_row( $up_log_result );
if( $status_row[4] == 0 ) // file not accepted
{
echo "<td><font color=\"#603311\">";
if( $status_row[5] != 0 && $assign_row[6] < time() )
echo "<font color=\"#FF0000\">Due date passed</font>\n";
else
{
if( mysql_num_rows( $up_log_result ) > 1 )
echo "Re-submitted (". mysql_num_rows( $up_log_result ) ." times total) on<br />\n";
echo date( 'm/d/y h:i:sa', $up_log_row[6] ) ."</font></td>\n";
}
if( $status_row[5] != 0 && $assign_row[6] > time() )
echo "<td><table border=\"0\"><tr><td valign=\"top\"><img src='img/exc_pt.jpg'></td><td><font color=\"#FF0000\"><b>Not accepted, must re-submit.<br />Read comment for more info.</b></font></td></tr></table></td>\n";
if( $status_row[5] != 0 && $assign_row[6] < time() )
{
echo "<td><img src='img/error.gif'> <font color=\"#FF0000\">No credit given <a id=\"no_credit_". $assign_row[0] ."\" class=\"no_credit_link\" href=\"javascript:void(0)\" style=\"font-size:9px;\">Read why</a></td>\n";
echo "</tr>\n";
if( $i % 2 != 0 )
echo "<tr>\n";
else
echo "<tr bgcolor=\"#F1F6FE\">\n";
echo "<td colspan =\"5\">";
echo "<div id=\"no_credit_div_". $assign_row[0] ."\" style=\"display:none;\">no_credit_div_". $assign_row[3] ."</div>\n";
echo "</td>\n";
}
}
if( $status_row[4] == 2 ) // file accepted, full credit awarded
{
echo "<td><font color=\"#603311\">". date( 'm/d/y h:i:sa', $up_log_row[6] ) ."</font></td>\n";
echo "<td><img src=\"img/check.gif\"> <font color=\"#397D02\">Complete. Full credit given.</font></td>\n";
$hw_credit++;
}
if( $status_row[4] == 0 && $status_row[5] == 0 )
{
echo "<td><font color=\"#FF0000\">Not yet viewed by Prof. Ganson</font></td>\n";
}
echo "</tr>\n";
if( $i % 2 != 0 )
echo "<tr>\n";
else
echo "<tr bgcolor=\"#F1F6FE\">\n";
if( $status_row[5] != 0 ) // file not commented
echo "<td colspan=\"5\">\n";
else
echo "<td colspan=\"5\" style=\"border-bottom:1px solid #CDCDCD;\">\n";
if ( ereg( "(\.php|\.html|\.css|\.htm|\.shtml\.net|\.js|\.java|\.inc|\.HTML)$", $up_log_row[5] ) )
echo " <a href=\"index.php?location=viewcode&file_id=". $up_log_row[0] ."&comment_id=". $status_row[5] ."\" class=\"log_class\" id=\"v". $up_log_row[4] ."\" style=\"font-size:9px;\">view code</a>\n";
else
if ( ereg( "(\.txt)$", $up_log_row[5] ) )
echo " <a href=\"index.php?location=viewcode&file_id=". $up_log_row[0] ."&comment_id=". $status_row[5] ."\" class=\"log_class\" id=\"v". $up_log_row[4] ."\" style=\"font-size:9px;\">view txt file</a>\n";
else
echo " <a href=\"". $up_log_row[5] ."\" class=\"log_class\" id=\"d". $up_log_row[4] ."\" style=\"font-size:9px;\">download file</a>\n";
if ( ereg( "(\.html|\.htm|\.HTML)$", $up_log_row[5] ) )
echo " | <a href=\"". $up_log_row[5] ."\" target=\"_new\" style=\"font-size:9px;\">run file</a>\n";
if ( ( ereg( "(\.php)$", $up_log_row[5] ) ) && ( $_POST['caller'] == "admin" ) )
echo " | <a href=\"". $up_log_row[5] ."\" target=\"_new\" style=\"font-size:9px;\">run file</a>\n";
if( $status_row[5] != 0 )
echo " | <a href=\"javascript:void(0)\" id=\"slink_". $status_row[5] ."\" class=\"show_link\" style=\"font-size:9px;\">view comment</a>\n";
if( $_POST['caller'] == "admin" )
{
if( $status_row[5] == 0 )
{
echo " | <a href=\"javascript:void(0);\" id=\"comment_link_". $up_log_row[7] ."\" class=\"comment_link\" style=\"font-size:9px;\">Comment on this file</a>\n";
echo"<div id=\"error_display\"></div>\n";
echo"<div id=\"id_div_". $up_log_row[7] ."\" style=\"display:none;\">". $up_log_row[1] ."</div>\n";
echo"<div id=\"comment_div_". $up_log_row[7] ."\" style=\"display:none;\"></div>\n";
}
if ( ereg( "(\.java)$", $up_log_row[5] ) )
{
echo " | <a href=\"javascript:void(0);\" id=\"compile_link_". $up_log_row[0] ."\" class=\"compile_link\" style=\"font-size:9px;\">Compile File</a>\n";
echo"<div id=\"compile_div_". $up_log_row[0] ."\" style=\"display:none;\"></div>\n";
}
}
echo "</td>\n";
echo "</tr>\n";
if( $status_row[5] != 0 ) // file not commented
{
if( $i % 2 != 0 )
echo "<tr>\n";
else
echo "<tr bgcolor=\"#F1F6FE\">\n";
echo "<td colspan =\"5\" style=\"border-bottom:1px solid #CDCDCD;\"><div id=\"feature_". $status_row[5] ."\" style=\"display:none;\"></div></td>\n";
echo "</tr>\n";
}
}
}
}
else // submission not found, handle case
{
if( time() > $assign_row[6] ) // assignment due date expired, file not submitted
{
echo "<td><font color=\"#FF0000\">Due date passed</font></td>\n";
echo "<td><img src='img/error.gif'> <font color=\"#FF0000\">No credit given <a id=\"no_credit_". $assign_row[0] ."\" class=\"no_credit_link\" href=\"javascript:void(0)\" style=\"font-size:9px;\">Read why</a></td>\n";
echo "</tr>\n";
if( $i % 2 != 0 )
echo "<tr>\n";
else
echo "<tr bgcolor=\"#F1F6FE\">\n";
echo "<td colspan =\"5\" style=\"border-bottom:1px solid #CDCDCD;\">\n";
echo "<div id=\"no_credit_div_". $assign_row[0] ."\" style=\"display:none;\">no_credit_div_". $assign_row[3] ."</div>\n";
echo "</td>\n";
}
else // time remaining for submission, work not submitted
{
echo "<td>Not yet submitted</td>\n";
echo "<td>No credit given until submission</td>\n";
echo "</tr>\n";
if( $i % 2 != 0 )
echo "<tr>\n";
else
echo "<tr bgcolor=\"#F1F6FE\">\n";
echo "<td colspan=\"5\" style=\"border-bottom:1px solid #CDCDCD;\">\n";
echo "<font color=\"#397D02\">Time remaining for submission: ";
echo timeRemaining( $assign_row[6] );
echo "</font>";
echo "</td>\n";
}
echo "</tr>\n";
}
}
echo "</tbody>\n";
echo "</table>\n";
}
else // no assigments found for this class
echo "No assignments as of ". date('m/d/y g:i:sa') ."\n";
echo "</div>\n";
}
// *************************
// show project grades
// *************************
if( $_POST['caller'] == "viewproj" )
{
$assign_query = "select * from master_assigns where coursenum=";
$assign_query .= "(select course from auth where idnum=". mysql_real_escape_string( $_POST['idnum'] ) .")";
$assign_query .= "and assign_stamp <=". time();
$assign_query .= " and assign_type=2 order by idnum desc";
$assign_result = mysql_query( $assign_query )
or die( 'Could not connect: '. mysql_error() );
if( mysql_num_rows( $assign_result ) != 0 )
{
echo "<table id=\"myTable\" cellspacing=\"0\" border=\"0\" width=\"100%\">\n";
echo "<thead>\n";
echo "<tr bgcolor=\"#4E7DD1\" text=\"#FFFFFF\">\n";
echo "<td style=\"font-weight:bold;\"><font color=\"#FFFFFF\">Assignment</font></th>\n";
echo "<td style=\"font-weight:bold;\"><font color=\"#FFFFFF\">Date assigned</font></th>\n";
echo "<td style=\"font-weight:bold;\"><font color=\"#FFFFFF\">Date due</font></th>\n";
echo "<td style=\"font-weight:bold;\"><font color=\"#FFFFFF\">Submission date</font></th>\n";
echo "<td style=\"font-weight:bold;\"><font color=\"#FFFFFF\">Grade</font></th>\n";
echo "</tr>\n";
echo "</thead>\n";
echo "<tbody>\n";
for( $i = 0; $i < mysql_num_rows( $assign_result ); $i++ )
{
$assign_row = mysql_fetch_row( $assign_result );
$grade_query = "select * from master_grades where assign_id=". $assign_row[0];
$grade_query .= " and student_id=". mysql_real_escape_string( $_POST['idnum'] );
$grade_result = mysql_query( $grade_query )
or die( 'Could not connect: '. mysql_error() );
if( $i % 2 != 0 )
echo "<tr>\n";
else
echo "<tr bgcolor=\"#F1F6FE\">\n";
echo "<td><b>". $assign_row[4] ."</b></td>\n";
echo "<td><font color=\"#2153AA\">". date( 'm/d/y h:i:sa', $assign_row[5] ) ."</font></td>\n";
echo "<td><font color=\"#2153AA\">". date( 'm/d/y h:i:sa', $assign_row[6] ) ."</font></td>\n";
$filequery = "select * from user_uploads";
$filequery .= " where assign_id=". $assign_row[0];
$filequery .= " and useridnum=". mysql_real_escape_string( $_POST['idnum'] ) ." order by idnum desc";
$fileresult = mysql_query( $filequery )
or die( 'Could not connect: '. mysql_error() );
if( mysql_num_rows( $fileresult ) != 0 )
{
$filerow = mysql_fetch_row( $fileresult );
echo "<td><font color=\"#603311\">";
$resubmit = false;
if( mysql_num_rows( $fileresult ) > 1 )
{
echo "Re-submitted (". mysql_num_rows( $fileresult ) ." times total) on</font>";
$resubmit = true;
}
else
echo date( 'm/d/y h:i:sa', $filerow[6] ) ."</font>";
echo "</td>\n";
echo "<td>\n";
if( mysql_num_rows( $grade_result ) != 0 )
{
$grade_row = mysql_fetch_row( $grade_result );
if( $grade_row[3] >= 65 )
echo "<font color=\"#397D02\">";
else
echo "<font color=\"#FF0000\">";
echo $grade_row[3] ."</font>\n";
if( $grade_row[3] == 100 )
echo " ( <img src=\"img/check.gif\"> <font color=\"#397D02\">Excellent!</font> )\n";
if( $grade_row[3] > 90 && $grade_row[3] < 100 )
echo " ( <img src=\"img/check.gif\"> <font color=\"#397D02\">Good job!</font> )\n";
echo " | <a href=\"index.php?location=grade_details&assign_id=". $assign_row[0] ."\" style=\"font-size:9px;\">View grade details</a>\n";
}
else
echo "Grade not posted yet\n";
echo "</td>\n";
echo "</tr>\n";
if( $i % 2 != 0 )
echo "<tr>\n";
else
echo "<tr bgcolor=\"#F1F6FE\">\n";
$colspan = 5;
if( $resubmit )
$colspan = 3;
echo "<td colspan=\"". $colspan ."\" style=\"border-bottom:1px solid #CDCDCD;\">\n";
if ( ereg( "(\.php|\.html|\.css|\.htm|\.shtml\.net|\.js|\.java|\.inc|\.txt)$", $filerow[5] ) )
echo " <a href=\"index.php?location=viewcode&file_id=". $filerow[0] ."&comment_id=none\" style=\"font-size:9px;\">view code</a>\n";
else
echo "<a href=\"". $filerow[5] ."\" style=\"font-size:9px;\">download file</a>\n";
if ( ereg( "(\.html|\.htm|\.php)$", $filerow[5] ) )
echo " | <a href=\"". $filerow[5] ."\" target=\"_new\" style=\"font-size:9px;\">run file</a>\n";
echo "</td>\n";
if( $resubmit )
{
echo "<td colspan=\"2\" style=\"border-bottom:1px solid #CDCDCD;\">\n";
echo "<font color=\"#603311\">". date( 'm/d/y h:i:sa', $filerow[6] ) ."</font>";
echo "</td>\n";
}
}
else
{
if( time() > $assign_row[6] ) // assignment due date expired, file not submitted
{
echo "<td><img src='img/error.gif'> <font color=\"#FF0000\">Due date passed</font></td>\n";
echo "<td><font color=\"#FF0000\">0 ( zero ) <a id=\"no_credit_". $assign_row[0] ."\" class=\"no_credit_link\" href=\"javascript:void(0)\" style=\"font-size:9px;\">Read why</a></td>\n";
echo "</tr>";
if( $i % 2 != 0 )
echo "<tr>\n";
else
echo "<tr bgcolor=\"#F1F6FE\">\n";
echo "<td colspan =\"5\" style=\"border-bottom:1px solid #CDCDCD;\">\n";
echo "<div id=\"no_credit_div_". $assign_row[0] ."\" style=\"display:none;\">no_credit_div_". $assign_row[3] ."</div>\n";
echo "</td>";
}
else
{
echo "<td>Not yet submitted</td>\n";
echo "<td>-----</td>\n";
echo "</tr>\n";
if( $i % 2 != 0 )
echo "<tr>\n";
else
echo "<tr bgcolor=\"#F1F6FE\">\n";
echo "<td colspan =\"5\" style=\"border-bottom:1px solid #CDCDCD;\">";
echo "<font color=\"#397D02\">Time remaining for submission: ";
echo timeRemaining( $assign_row[6] );
echo "</font>";
echo "</td>\n";
}
}
echo "</tr>\n";
}
echo "</tbody>\n";
echo "</table>\n";
}
else
echo "There are no project assignments either assigned nor/or graded as of ". date('m/d/y');
echo "</div>\n";
}
// *************************
// show all uploaded files
// *************************
if( $_POST['caller'] == "showups" )
{
echo "<div class=\"featurebox_center\">\n";
$up_log_query = "select * from user_uploads where useridnum = ". mysql_real_escape_string( $_POST['idnum'] ) ." order by idnum desc";
$up_log_result = mysql_query( $up_log_query )
or die( 'Could not connect: '. mysql_error() );
if( mysql_num_rows( $up_log_result ) !=0 )
{
echo "<table id=\"myTable\" cellspacing=\"0\" border=\"0\" width=\"100%\">\n";
echo "<thead>\n";
echo "<tr bgcolor=\"#4E7DD1\" text=\"#FFFFFF\">\n";
echo "<th><font color=\"#FFFFFF\">File name</font></th>\n";
echo "<th><font color=\"#FFFFFF\">Upload date</font></th>\n";
echo "<th><font color=\"#FFFFFF\">Assignment</font></th>\n";
echo "<th><font color=\"#FFFFFF\">Attempts</font></th>\n";
echo "<th><font color=\"#FFFFFF\">Action</font></th>\n";
echo "</tr>\n";
echo "</thead>\n";
echo "<tbody>\n";
for( $i = 0; $i < mysql_num_rows( $up_log_result ); $i++ )
{
if( $i % 2 == 0 )
echo "<tr>\n";
else
echo "<tr bgcolor=\"#F1F6FE\">\n";
$up_log_row = mysql_fetch_row( $up_log_result );
echo "<td><b>". $up_log_row[4] ."</b></td>\n";
echo "<td>". date( 'm/d/y h:i:sa', $up_log_row[6] ) ."</td>\n";
if( $up_log_row[7] == 0 )
{
echo "<td><font color=\"#603311\">None</font></td>\n";
echo "<td><font color=\"#603311\">------</font></td>\n";
}
else
{
echo "<td>";
$file_assign_query = "select * from master_assigns where idnum=". $up_log_row[7];
$file_assign_result = mysql_query( $file_assign_query )
or die( 'Could not connect: '. mysql_error() );
$file_assign_row = mysql_fetch_row( $file_assign_result );
echo "<font color=\"#603311\">";
if( $file_assign_row[2] == 1 )
echo "HW #";
else
if( $file_assign_row[2] == 2 )
echo "Proj #";
else
echo "Exam #";
echo $file_assign_row[3];
echo "</font>\n";
echo " </td>\n";
echo " <td>\n";
echo "<font color=\"#603311\">";
echo $up_log_row[9];
if( $up_log_row[9] == 1 || ( ( ($up_log_row[9] - 1) % 10 ) == 0 ) && $up_log_row[9] != 11 )
echo "st";
else
if( $up_log_row[9] == 2 || ( ( ($up_log_row[9] - 2) % 10 ) == 0 ) && $up_log_row[9] != 12 )
echo "nd";
else
if( $up_log_row[9] == 1 || ( ( ($up_log_row[9] - 3) % 10 ) == 0 ) && $up_log_row[9] != 13 )
echo "rd";
else
echo "th";
echo " attempt ";
echo "</font>\n";
echo "</td>\n";
}
echo "<td>";
if ( ereg( "(\.php|\.html|\.css|\.htm|\.shtml\.net|\.js|\.java|\.inc|\.txt)$", $up_log_row[5] ) )
echo "<a href=\"index.php?location=viewcode&file_id=". $up_log_row[0] ."&comment_id=none\" style=\"font-size:9px;\" class=\"log_class\" id=\"v". $up_log_row[4] ."\">view code</a>\n";
else
echo " <a href=\"". $up_log_row[5] ."\" style=\"font-size:9px;\" class=\"log_class\" id=\"d". $up_log_row[4] ."\">download file</a>\n";
if ( ereg( "(\.html|\.htm|\.HTML)$", $up_log_row[5] ) )
echo " | <a href=\"". $up_log_row[5] ."\" target=\"_new\" style=\"font-size:9px;\">run file</a>\n";
//if( $file_assign_row[2] == 2 || $file_assign_row[2] == 3 )
// echo " | <a href=\"index.php?location=grade_details&assign_id=". $file_assign_row[0] ."\" style=\"font-size:9px;\">grade details</a>\n";
//else
if( $up_log_row[8] != 0 )
echo " | <a href=\"javascript:void(0)\" id=\"slink_". $up_log_row[8] ."\" class=\"show_link\" style=\"font-size:9px;\">view comment</a>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td colspan=\"5\" style=\"border-bottom:1px solid #CDCDCD;\">\n";
echo "<div id=\"feature_". $up_log_row[8] ."\" style=\"display:none;\"></div>\n";
echo "</td>\n";
echo "</tr>\n";
}
echo "</tbody>\n";
echo "</table>\n";
}
else
echo "No files uploaded as of ". date('m/d/y g:i:sa') ."\n";
echo "</div>\n";
}
//echo "</div>\n";
}
?>

You must be logged in to view this content.
