[system] / trunk / wwmoodle / wwassignment / index.php Repository:
ViewVC logotype

Diff of /trunk/wwmoodle/wwassignment/index.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 5108 Revision 5109
1<?php 1<?php
2// $Id: index.php,v 1.4 2007-06-28 20:09:32 mleventi Exp $ 2// $Id: index.php,v 1.5 2007-07-01 20:44:13 mleventi Exp $
3 3
4 4
5/// This page lists all the instances of wwassignment in a particular course 5/// This page lists all the instances of wwassignment in a particular course
6/// Replace wwassignment with the name of your module 6/// Replace wwassignment with the name of your module
7 7
42 $timenow = time(); 42 $timenow = time();
43 $strname = get_string("name"); 43 $strname = get_string("name");
44 $strweek = get_string("week"); 44 $strweek = get_string("week");
45 $strtopic = get_string("topic"); 45 $strtopic = get_string("topic");
46 46
47 $strOpenDate = get_string("openDate", "wwassignment"); 47 $strOpenDate = get_string("open_date", "wwassignment");
48 $strDueDate = get_string("dueDate", "wwassignment"); 48 $strDueDate = get_string("due_date", "wwassignment");
49 49
50 if ($course->format == "weeks") { 50 if ($course->format == "weeks") {
51 $table->head = array ($strweek, $strname, $strOpenDate, $strDueDate); 51 $table->head = array ($strweek, $strname, $strOpenDate, $strDueDate);
52 $table->align = array ("center", "left", "left", "left"); 52 $table->align = array ("center", "left", "left", "left");
53 } else if ($course->format == "topics") { 53 } else if ($course->format == "topics") {
82 82
83 echo "<br />"; 83 echo "<br />";
84 84
85 print_table($table); 85 print_table($table);
86 if( isteacher($course->id) ) { 86 if( isteacher($course->id) ) {
87 print("<p style='font-size: smaller; color: #aaa; text-align: center;'><a style='color: #666;text-decoration:underline' href='".WWASSIGNMENT_WEBWORK_URL."/$course->shortname/instructor' target='_webwork_edit'>".get_string("goToWeBWorK", "wwassignment")."</a></p>"); 87 print("<p style='font-size: smaller; color: #aaa; text-align: center;'><a style='color: #666;text-decoration:underline' href='".WWASSIGNMENT_WEBWORK_URL."/$course->shortname/instructor' target='_webwork_edit'>".get_string("go_to_webwork", "wwassignment")."</a></p>");
88 } 88 }
89/// Finish the page 89/// Finish the page
90 print_footer($course); 90 print_footer($course);
91 91
92?> 92?>

Legend:
Removed from v.5108  
changed lines
  Added in v.5109

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9