Revision: 229
http://hw4mdl.svn.sourceforge.net/hw4mdl/?rev=229&view=rev
Author: trollinger
Date: 2008-01-18 13:50:05 -0800 (Fri, 18 Jan 2008)
Log Message:
-----------
update the path of the files due to the new structure
Modified Paths:
--------------
branches/team/Thomas/moodle/mod/voicetools/getXmlChoicePage.php
branches/team/Thomas/moodle/mod/voicetools/getXmlListPanel.php
branches/team/Thomas/moodle/mod/voicetools/getXmlNewPanel.php
branches/team/Thomas/moodle/mod/voicetools/index.php
branches/team/Thomas/moodle/mod/voicetools/lib.php
branches/team/Thomas/moodle/mod/voicetools/manageAction.php
branches/team/Thomas/moodle/mod/voicetools/manageActionBlock.php
branches/team/Thomas/moodle/mod/voicetools/mod.html
branches/team/Thomas/moodle/mod/voicetools/version.php
branches/team/Thomas/moodle/mod/voicetools/view.php
branches/team/Thomas/moodle/mod/voicetools/voicerecorder.php
branches/team/Thomas/moodle/mod/voicetools/welcome.php
Modified: branches/team/Thomas/moodle/mod/voicetools/getXmlChoicePage.php
===================================================================
--- branches/team/Thomas/moodle/mod/voicetools/getXmlChoicePage.php 2008-01-17 21:18:29 UTC (rev 228)
+++ branches/team/Thomas/moodle/mod/voicetools/getXmlChoicePage.php 2008-01-18 21:50:05 UTC (rev 229)
@@ -32,10 +32,10 @@
require_once("../../config.php");
// require_once("lib.php");
-require_once("lib/common/WimbaXml.php");
-require_once("lib/common/WimbaCommons.php");
+require_once("lib/php/common/WimbaXml.php");
+require_once("lib/php/common/WimbaCommons.php");
if (version_compare(PHP_VERSION,'5','>=')) {
- require_once('lib/common/domxml-php4-php5.php');
+ require_once('lib/php/common/domxml-php4-php5.php');
}
// Variables needed
Modified: branches/team/Thomas/moodle/mod/voicetools/getXmlListPanel.php
===================================================================
--- branches/team/Thomas/moodle/mod/voicetools/getXmlListPanel.php 2008-01-17 21:18:29 UTC (rev 228)
+++ branches/team/Thomas/moodle/mod/voicetools/getXmlListPanel.php 2008-01-18 21:50:05 UTC (rev 229)
@@ -34,12 +34,12 @@
require_once("../../config.php");
require_once("lib.php");
-require_once("lib/common/WimbaXml.php");
-require_once("lib/common/WimbaCommons.php");
-require_once("lib/common/WimbaUI.php");
-require_once("lib/common/XmlResource.php");
-require_once('lib/vt/WimbaVoicetools.php');
-require_once('lib/vt/WimbaVoicetoolsAPI.php');
+require_once("lib/php/common/WimbaXml.php");
+require_once("lib/php/common/WimbaCommons.php");
+require_once("lib/php/common/WimbaUI.php");
+require_once("lib/php/common/XmlResource.php");
+require_once('lib/php/vt/WimbaVoicetools.php');
+require_once('lib/php/vt/WimbaVoicetoolsAPI.php');
set_time_limit(30);
Modified: branches/team/Thomas/moodle/mod/voicetools/getXmlNewPanel.php
===================================================================
--- branches/team/Thomas/moodle/mod/voicetools/getXmlNewPanel.php 2008-01-17 21:18:29 UTC (rev 228)
+++ branches/team/Thomas/moodle/mod/voicetools/getXmlNewPanel.php 2008-01-18 21:50:05 UTC (rev 229)
@@ -30,21 +30,21 @@
/* $Id: getXmlNewPanel.php 52710 2007-08-20 19:54:04Z thomasr $ */
/// This page is to generate the list of VT
-error_reporting(E_ERROR);
+
global $CFG;
require_once("../../config.php");
require_once("lib.php");
-require_once("lib/vt/WimbaVoicetoolsAPI.php");
-require_once("lib/vt/WimbaVoicetools.php");
-require_once("lib/common/WimbaCommons.php");
-require_once("lib/common/WimbaXml.php");
-require_once("lib/common/WimbaUI.php");
+require_once("lib/php/vt/WimbaVoicetoolsAPI.php");
+require_once("lib/php/vt/WimbaVoicetools.php");
+require_once("lib/php/common/WimbaCommons.php");
+require_once("lib/php/common/WimbaXml.php");
+require_once("lib/php/common/WimbaUI.php");
set_time_limit(30);
if (version_compare(PHP_VERSION,'5','>=')) {
- require_once('lib/common/domxml-php4-php5.php');
+ require_once('lib/php/common/domxml-php4-php5.php');
}
Modified: branches/team/Thomas/moodle/mod/voicetools/index.php
===================================================================
--- branches/team/Thomas/moodle/mod/voicetools/index.php 2008-01-17 21:18:29 UTC (rev 228)
+++ branches/team/Thomas/moodle/mod/voicetools/index.php 2008-01-18 21:50:05 UTC (rev 229)
@@ -32,6 +32,7 @@
require_once("../../config.php");
require_once("lib.php");
+require_once("lib/php/common/WimbaLib.php");
$id = optional_param('id', 0, PARAM_INT); // course
$course = optional_param('course', 0, PARAM_INT);
Modified: branches/team/Thomas/moodle/mod/voicetools/lib.php
===================================================================
--- branches/team/Thomas/moodle/mod/voicetools/lib.php 2008-01-17 21:18:29 UTC (rev 228)
+++ branches/team/Thomas/moodle/mod/voicetools/lib.php 2008-01-18 21:50:05 UTC (rev 229)
@@ -31,8 +31,8 @@
error_reporting(0);
require_once($CFG->libdir.'/datalib.php');
require_once($CFG->dirroot.'/course/lib.php');
-require_once('lib/vt/WimbaVoicetoolsAPI.php');
-require_once('lib/common/WimbaCommons.php');
+require_once('lib/php/vt/WimbaVoicetoolsAPI.php');
+require_once('lib/php/common/WimbaCommons.php');
define("VOICETOOLS_MODULE_VERSION", "3.1.2");
$VOICETOOLS_LOGS = "logs.php"; //file use to the logs
Modified: branches/team/Thomas/moodle/mod/voicetools/manageAction.php
===================================================================
--- branches/team/Thomas/moodle/mod/voicetools/manageAction.php 2008-01-17 21:18:29 UTC (rev 228)
+++ branches/team/Thomas/moodle/mod/voicetools/manageAction.php 2008-01-18 21:50:05 UTC (rev 229)
@@ -34,10 +34,10 @@
error_reporting(E_ERROR);
require_once ('../../config.php');
require_once ('lib.php');
-
-require_once ("lib/common/WimbaCommons.php");
-require_once ('lib/vt/WimbaVoicetools.php');
-require_once ('lib/vt/WimbaVoicetoolsAPI.php');
+require_once ("lib/php/common/WimbaLib.php");
+require_once ("lib/php/common/WimbaCommons.php");
+require_once ('lib/php/vt/WimbaVoicetools.php');
+require_once ('lib/php/vt/WimbaVoicetoolsAPI.php');
global $CFG;
$list_attributes = array ();
Modified: branches/team/Thomas/moodle/mod/voicetools/manageActionBlock.php
===================================================================
--- branches/team/Thomas/moodle/mod/voicetools/manageActionBlock.php 2008-01-17 21:18:29 UTC (rev 228)
+++ branches/team/Thomas/moodle/mod/voicetools/manageActionBlock.php 2008-01-18 21:50:05 UTC (rev 229)
@@ -33,9 +33,9 @@
require_once('lib.php');
-require_once("lib/common/WimbaCommons.php");
-require_once('lib/vt/WimbaVoicetools.php');
-require_once('lib/vt/WimbaVoicetoolsAPI.php');
+require_once("lib/php/common/WimbaCommons.php");
+require_once('lib/php/vt/WimbaVoicetools.php');
+require_once('lib/php/vt/WimbaVoicetoolsAPI.php');
global $CFG;
Modified: branches/team/Thomas/moodle/mod/voicetools/mod.html
===================================================================
--- branches/team/Thomas/moodle/mod/voicetools/mod.html 2008-01-17 21:18:29 UTC (rev 228)
+++ branches/team/Thomas/moodle/mod/voicetools/mod.html 2008-01-18 21:50:05 UTC (rev 229)
@@ -30,162 +30,91 @@
/* $Id: mod.html 200 2008-01-09 11:37:50Z trollinger $ */
error_reporting(E_ERROR);
-require_once('lib/vt/WimbaVoicetoolsAPI.php');
-require_once('lib/vt/WimbaVoicetools.php');
+require_once("../config.php");
+require_once('lib/php/vt/WimbaVoicetoolsAPI.php');
+require_once('lib/php/vt/WimbaVoicetools.php');
+require_once('lib/php/common/WimbaLib.php');
require_once($CFG->dirroot.'/calendar/lib.php');
require_once($CFG->dirroot.'/mod/voicetools/lib.php');
-require_once("../config.php");
+require_once($CFG->dirroot.'/version.php');
-
-$id = optional_param('id', 0, PARAM_INT);
-$roomId = optional_param('roomId',null, PARAM_RAW);
-$update = optional_param('update', false, PARAM_INT);
-require_login($course->id);
-
-function txt($string){
- $result = str_replace("<br />", "" ,$string);
- $result = str_replace("<p>", "" ,$result);
- $result = str_replace("</p>", "" ,$result);
- return $result;
-}
-
-
+//test if the current user can see this page
+require_login($course->id);
if (!isteacher($course->id, $USER->id)) { //to Be sure
error("You need to be a teacher in this course to create an instance");
}
+//get the required parameters
+$id = optional_param('id', 0, PARAM_INT);
+$roomId = optional_param('roomId',null, PARAM_RAW);
+$update = optional_param('update', null, PARAM_INT);
+$sectionId = optional_param('section', null, PARAM_INT);
/// First we check that form variables have been initialised
if (!isset($form->name)) {
$form->name = '';
}
if (!isset($form->type)) {
- $form->type = '';
+ $form->type = '';
}
if (!isset($form->intro)) {
- $form->intro = '';
+ $form->intro = '';
}
if (!isset($form->descrption)) {
- $form->descrption = '';
+ $form->descrption = '';
}
if (!isset($form->section)) {
$form->section = '';
}
-if (empty($form->timeopen)) {
- $form->timeopen = "";
- $form->timerestrict = 0;
-} else {
- $form->timerestrict = 1;
-}
-
-//get the number of the section
-if ($update!=false) { // update instance
-
-}
-else
-{
- $sectionId = optional_param('section', 0, PARAM_INT);
-}
-
-
$event=false;
$description="";
+$stringDate="";
//check if a calendar event exist
-if($update!=false){ //update
+if(isset($update)){ //update
//get the information of the activity
if (! $cmVT = get_record("course_modules", "id", $update)) {
return false;
}
$activity = get_record("voicetools", "id", $cmVT->instance );
+
$sectionId=$activity->section;
$action = "update";
- $id=$cmVT->course;
+ $id=$cmVT->course;//get the id of the course
- $event=voicetools_get_event_calendar($activity->id) ;
+ $event=liveclassroom_get_event_calendar($activity->id);
- if(empty($event) || $event==false)//no event
+ if($event==true)//no event
{
- $checked= "";
- if($course->format == "social" || $course->format == "topics" || $sectionId != 0){
- $disableAllElements="disabled";
- $disabledCheckbox="";
- }else{
- $disabledCheckbox="disabled";
- $disableAllElements="disabled";
- }
-
- }
- else
- {//there is a event
$checked ="checked";
- if($course->format == "social" || $course->format == "topics" || $sectionId != 0){
- $disabledCheckbox="";
- $disableAllElements="";
- }
- else
- {
- $disabledCheckbox="disabled";
- $disableAllElements="disabled";
- }
list($description,$link)=split("<br>",$event->description);
- }
- $name="";
- if(isset($action) && $action=="update") {
- $completeName=explode(" - ", $activity->name);
- $name=$completeName[1];
+ $stringDate=date('m',$event->timestart)."/".date('d',$event->timestart)."/".date('Y',$event->timestart);
+
}
-
-
+ $name= $activity->name; //get the name
}
else
{//new
$checked ="checked";
- if($course->format == "social" || $course->format == "topics" || $sectionId != 0){
- $disabledCheckbox="";
- $disableAllElements="";
- }
- else
- {
- $disabledCheckbox="disabled";
- $disableAllElements="disabled";
- }
+
$name="";
}
-
-$weekdate = $course->startdate; // this should be 0:00 Monday of that week
-$weekdate += 7200; // Add two hours to avoid possible DST problems
- $section = 0;
-// $sectionmenu = array();
-$weekofseconds = 604800;
-$course->enddate = $course->startdate + ($weekofseconds * $course->numsections);
-$list_weeks[0]= "Introduction section"; //For first section
-$k=1;
-while ($weekdate < $course->enddate) {
- $nextweekdate = $weekdate + ($weekofseconds);
- $weekday = userdate($weekdate, '%d %b') ;
- $endweekday = userdate($weekdate+518400, '%d %b');
- $list_weeks[$k] = $weekday.' - '.$endweekday;
- $k++;
- $section++;
- $weekdate = $nextweekdate;
-}
-
-$stringDate="";
-if($course->format == "topics" || $course->format == "social"){
-
+//manage the state of the calendar form
+//it is disabled for the Introduction section (week 0) of a weekly course
+if($course->format == "week" && $sectionId != 0){
+ $disabledCheckbox="disabled";
+ $disableAllElements="disabled";
+ $eventDate=mktime(0,0,0,1,date('z',$course->startdate)+($sectionId-1)*7+1,date('y',$course->startdate)) ;
+ $stringDate=date('m',$eventDate)."/".date('d',$eventDate)."/".date('Y',$eventDate);
}
-else if(isset($event) && $event!=false)
+else
{
- $stringDate=date('m',$event->timestart)."/".date('d',$event->timestart)."/".date('Y',$event->timestart);
-}
-else if($sectionId != 0)
-{
- $eventDate=mktime(0,0,0,1,date('z',$course->startdate)+($sectionId-1)*7+1,date('y',$course->startdate)) ;
- $stringDate=date('m',$eventDate)."/".date('d',$eventDate)."/".date('Y',$eventDate);
-}
+ $disabledCheckbox="";
+ $disableAllElements="";
+}
+
// Visible to students or not
if ($form->coursemodule) {
@@ -204,222 +133,35 @@
if ($hiddensection) {
$visible = false;
}
-
-
?>
+<link rel="STYLESHEET" href="<?php p($CFG->wwwroot) ?>/mod/liveclassroom/css/StyleSheet.css"" type="text/css" />
<style>
-#headerBar table
-{
- width: 700px;
- background:white url( "<?php echo $CFG->wwwroot;?>/mod/voicetools/pictures/backgrounds/headerbar.png" ) repeat-x bottom left;
-
- height: 32px;
- border-bottom: solid 1px Black;
+body{
+ font-size:14px;
}
-
-
-/*contextBar*/
-#contextBar table
-{
- background-image: url( "<?php echo $CFG->wwwroot;?>/mod/voicetools/pictures/backgrounds/toolbar.png" );
- height: 30px;
- width: 700px;
- border-bottom: solid 1px #C7D3E1;
-}
-
-
-.contextBarRight
-{
- padding-left:10px;
- font-family: Verdana;
-
- font-size: 12px;
-}
-
-.roomNameForSettings
-{
- font-family: Verdana;
- font-weight: bold;
- font-size: 12px;
-}
-
-.fontCurrent
-{
- font-family:Verdana;
- font-size:10px;
-
-}
-.nameElement {
- font-family: Verdana;
- font-weight: bold;
- font-size: 12px;
-}
-.nameTools {
- font-family: Verdana;
-
- font-size: 12px;
-}
-
.content
{
- margin:-5px;
+ margin:-5px;
}
-a.list
-{
-
- font-family:Verdana;
- font-size:10px;
- color : #0000FF ;
- text-decoration : underline ;
+div.Table_01 {
+ position:absolute;
+ left:0px;
+ top:0px;
+ width:350px;
+ height:150px;
+ z-index: 50;
+ font-family:Verdana;
+ padding: 2px;
+ margin: 2px;
+ left: 40%;
+ top: 30%;
+ font-size:9px;
+ display:none;
+
+
}
-a.list:hover
-{
- color : #0000FF ;
- text-decoration : none ;
-}
-a.list:visited
-{
- color : #0000FF ;
- text-decoration : underline ;
-}
-a.list:active
-{
- color : #0000FF ;
- text-decoration : none ;
-}
-
-.opac
-{
- width: 100%;
- z-index:5;
- filter:alpha(opacity=33);-moz-opacity:.33;opacity:.33;
-
- height:100%;
- left: 0px;
- top: 0px;
- position:absolute;
- background-color:black;
- display:none;
-
-
-
-}
-.opac iframe
-{
-display:none;/*sorry for IE5*/
-display/**/:block;/*sorry for IE5*/
-position:absolute;/*must have*/
-top:0;/*must have*/
-left:0;/*must have*/
-z-index:5;/*must have*/
-filter:mask();/*must have*/
-width: 100%;/*must have for any big value*/
-height: 100%;/*must have for any big value*/;
-}
-
-
-
-div.Table_01 {
- position:absolute;
- left:0px;
- top:0px;
- width:350px;
- height:150px;
- z-index: 50;
- font-family:Verdana;
- padding: 2px;
- margin: 2px;
- left: 40%;
- top: 30%;
- font-size:9px;
- display:none;
-
-
-}
-
-div.window-left {
- position:absolute;
- left:0px;
- top:0px;
- width:10px;
- height:150px;
- background-image: url( "<?php echo $CFG->wwwroot;?>/mod/voicetools/pictures/items/window-left.png" );
- background-repeat:none;
-}
-
-div.window-middle {
- position:absolute;
- left:10px;
- top:0px;
- width:330px;
- height:150px;
- background-image: url( "<?php echo $CFG->wwwroot;?>/mod/voicetools/pictures/items/window-middle.png" );
-
-}
-
-div.window-right {
- position:absolute;
- left:340px;
- top:0px;
- width:10px;
- height:150px;
- background-image: url( "<?php echo $CFG->wwwroot;?>/mod/voicetools/pictures/items/window-right.png" );
- background-repeat:none;
-}
-
-.popupText
-{
- font-size:12px;
-
- font-family: helvetica;
-}
-
-.popupTitle
-{
- font-size:14px;
- font-weight:bold;
- text-decoration:underline;
- font-family: helvetica;
-}
-.label_settings
-{
-
- text-align:right;
-}
-.page_title
-{
-font-family: Verdana, Arial, Helvetica, sans-serif;
-font-size:18px;
-font-weight:bold;
-color:#3c4b5b;
-vertical-align: middle;
-}
-td.action, input.action
-{
- background-image: url("<?php echo $CFG->wwwroot;?>/mod/voicetools/pictures/buttons/general-empty.png");
- background-repeat: no-repeat;
-
- background-position: center;
- text-decoration: none;
- color: Black;
- text-align: center;
- cursor: pointer;
- width:75px;
-}
-td.action:hover, input.action:hover
-{
- background-image: url("<?php echo $CFG->wwwroot;?>/mod/voicetools/pictures/buttons/general-empty-over.png");
-}
-
-.action label
-{
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-size:12px;
- cursor: pointer;
-}
-
</style>
<script type="text/javascript">
@@ -476,7 +218,9 @@
<?php
$listTools = voicetools_get_voicetools_list($course->id);
if($listTools==NULL) { //no voice tools available
- ?>
+ ?>
+
+
document.getElementById("hiddenDiv").style.height=document.documentElement.clientHeight
document.getElementById("hiddenDiv").style.width=document.documentElement.clientWidth
document.getElementById("popup").style.display="block";
@@ -484,6 +228,7 @@
<?php
}
?>
+
}
function popupCancel(){
@@ -732,16 +477,7 @@
<td align="left">
<select name="section" id="section" onchange="change()">
<?php
- for($l=0;$l<sizeof($list_weeks);$l++){
- if($sectionId==$l)
- {
- echo '<OPTION selected value='.$l.'>'."Week ".$l." : ".$list_weeks[$l].'</OPTION>';
- }
- else
- {
- echo '<OPTION value='.$l.'>'."Week ".$l." : ".$list_weeks[$l].'</OPTION>';
- }
- }
+ echo getListOfWeeks($course,$sectionId);
?>
</select>
</td>
@@ -757,32 +493,7 @@
<td colspan="2" align="left">
<select name="section" id="section">
<?php
- $section = 0;
- while ($section <= $course->numsections) {
- if (!$thissection = get_record('course_sections', 'course',$course->id, 'section', $section)) {
- notify('Error getting course_sections!');
- }
- $desc = format_text($thissection->summary, FORMAT_MOODLE, NULL, $course->id);
- $descTxt = txt($desc);
- $minidesc = substr($descTxt, 0, 20);
-
- if ( ($thissection->summary != NULL) && (strlen($descTxt)>20) ) {
- $minidesc .= "...";
- }
- else if ($thissection->summary == NULL){
- $minidesc = "Topic";
- }
- if($sectionId==$section)
- {
- echo '<OPTION selected value='.$section.'>'.$section.". ".$minidesc.'</OPTION>';
- }
- else
-
- {
- echo '<OPTION value='.$section.'>'.$section.". ".$minidesc.'</OPTION>';
- }
- $section++;
- }
+ echo getListOfTopics($course,$sectionId);
?>
</select>
</td>
Modified: branches/team/Thomas/moodle/mod/voicetools/version.php
===================================================================
--- branches/team/Thomas/moodle/mod/voicetools/version.php 2008-01-17 21:18:29 UTC (rev 228)
+++ branches/team/Thomas/moodle/mod/voicetools/version.php 2008-01-18 21:50:05 UTC (rev 229)
@@ -33,7 +33,7 @@
/// This fragment is called by moodle_needs_upgrading() and /admin/index.php
/////////////////////////////////////////////////////////////////////////////////
-$module->version = 2006041500; // The current module version (Date: YYYYMMDDXX)
+$module->version = 2009010100; // The current module version (Date: YYYYMMDDXX)
$module->cron = 0; // Period for cron to check this module (secs)
?>
Modified: branches/team/Thomas/moodle/mod/voicetools/view.php
===================================================================
--- branches/team/Thomas/moodle/mod/voicetools/view.php 2008-01-17 21:18:29 UTC (rev 228)
+++ branches/team/Thomas/moodle/mod/voicetools/view.php 2008-01-18 21:50:05 UTC (rev 229)
@@ -32,10 +32,12 @@
/// (Replace voicedirect with the name of your module)
error_reporting(E_ERROR^E_NOTICE);
require_once('../../config.php');
-require_once('lib.php');
-require_once('lib/vt/WimbaVoicetools.php');
-require_once('lib/vt/WimbaVoicetoolsAPI.php');
-require_once('lib/common/WimbaCommons.php');
+require_once('lib.php');
+
+require_once ("lib/php/common/WimbaLib.php");
+require_once('lib/php/vt/WimbaVoicetools.php');
+require_once('lib/php/vt/WimbaVoicetoolsAPI.php');
+require_once('lib/php/common/WimbaCommons.php');
global $CFG;
$id = optional_param('id', 0, PARAM_INT); // Course Module ID, or
Modified: branches/team/Thomas/moodle/mod/voicetools/voicerecorder.php
===================================================================
--- branches/team/Thomas/moodle/mod/voicetools/voicerecorder.php 2008-01-17 21:18:29 UTC (rev 228)
+++ branches/team/Thomas/moodle/mod/voicetools/voicerecorder.php 2008-01-18 21:50:05 UTC (rev 229)
@@ -33,15 +33,15 @@
<head id="Head1">
<title>Recorder</title>
-<script language="javascript" src="js/dojo/dojo.js"></script>
-<script language="javascript" src="js/ajax.js"></script>
-<script language="javascript" src="js/constants.js"></script>
-<script language="javascript" src="js/pngfix.js"></script>
+<script language="javascript" src="lib/web/js/dojo/dojo.js"></script>
+<script language="javascript" src="lib/web/js/ajax.js"></script>
+<script language="javascript" src="lib/web/js/constants.js"></script>
+<script language="javascript" src="lib/web/js/pngfix.js"></script>
<link rel="STYLESHEET" href="css/StyleSheet.css" type="text/css" />
- <script language="javascript" src="js/xmldom.js"></script>
+ <script language="javascript" src="lib/web/js/xmldom.js"></script>
@@ -52,8 +52,8 @@
require_once("../../config.php");
require_once("lib.php");
- require_once('lib/vt/WimbaVoicetools.php');
- require_once('lib/vt/WimbaVoicetoolsAPI.php');
+ require_once('lib/php/vt/WimbaVoicetools.php');
+ require_once('lib/php/vt/WimbaVoicetoolsAPI.php');
global $CFG;
$vtAction=new vtAction(null);
Modified: branches/team/Thomas/moodle/mod/voicetools/welcome.php
===================================================================
--- branches/team/Thomas/moodle/mod/voicetools/welcome.php 2008-01-17 21:18:29 UTC (rev 228)
+++ branches/team/Thomas/moodle/mod/voicetools/welcome.php 2008-01-18 21:50:05 UTC (rev 229)
@@ -36,18 +36,18 @@
<head>
<title>Voice Tools</title>
<link rel="STYLESHEET" href="css/StyleSheet.css" type="text/css" />
-<script language="javascript" src="js/dojo/dojo.js"></script>
-<script language="javascript" src="js/ajax.js"></script>
-<script language="javascript" src="js/verifForm.js"></script>
-<script language="javascript" src="js/constants.js"></script>
-<script type="text/javascript" src="js/ajaxslt/xslt.js"></script>
-<script type="text/javascript" src="js/pngfix.js"></script>
-<script src="js/ajaxslt/util.js" type="text/javascript"></script>
-<script src="js/ajaxslt/xmltoken.js" type="text/javascript"></script>
-<script src="js/ajaxslt/dom.js" type="text/javascript"></script>
-<script src="js/ajaxslt/xpath.js" type="text/javascript"></script>
-<script src="js/hwCommons.js" type="text/javascript"></script>
- <script src="js/xmldom.js" type="text/javascript"></script>
+<script language="javascript" src="lib/web/js/dojo/dojo.js"></script>
+<script language="javascript" src="lib/web/js/ajax.js"></script>
+<script language="javascript" src="lib/web/js/verifForm.js"></script>
+<script language="javascript" src="lib/web/js/constants.js"></script>
+<script type="text/javascript" src="lib/web/js/ajaxslt/xslt.js"></script>
+<script type="text/javascript" src="lib/web/js/pngfix.js"></script>
+<script src="lib/web/js/ajaxslt/util.js" type="text/javascript"></script>
+<script src="lib/web/js/ajaxslt/xmltoken.js" type="text/javascript"></script>
+<script src="lib/web/js/ajaxslt/dom.js" type="text/javascript"></script>
+<script src="lib/web/js/ajaxslt/xpath.js" type="text/javascript"></script>
+<script src="lib/web/js/hwCommons.js" type="text/javascript"></script>
+ <script src="lib/web/js/xmldom.js" type="text/javascript"></script>
<script type="text/javascript">
@@ -66,7 +66,7 @@
display+= "<td width='130'></td>";
return display;
}
-
+initPath('lib/web/js/xsl/wimba.xsl','lib/web/pictures');
</script>
<?php
if(isset($_GET["createWorkflow"]) && $_GET["type"]!=""){
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|