Skip to content

Commit

Permalink
================================
Browse files Browse the repository at this point in the history
All templates brought up to date
===========  1.8  ==============

git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@263 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
juliantenney committed Mar 1, 2012
1 parent 9465c12 commit a6dd34c
Show file tree
Hide file tree
Showing 79 changed files with 2,183 additions and 95 deletions.
1 change: 0 additions & 1 deletion USER-FILES/1-guest2-Nottingham/data.xml

This file was deleted.

1 change: 0 additions & 1 deletion USER-FILES/1-guest2-Nottingham/preview.xml

This file was deleted.

1 change: 0 additions & 1 deletion USER-FILES/2-guest-Nottingham/data.xml

This file was deleted.

1 change: 0 additions & 1 deletion USER-FILES/2-guest-Nottingham/preview.xml

This file was deleted.

1 change: 0 additions & 1 deletion USER-FILES/2-guest2-Nottingham/data.xml

This file was deleted.

1 change: 0 additions & 1 deletion USER-FILES/2-guest2-Nottingham/preview.xml

This file was deleted.

1 change: 0 additions & 1 deletion USER-FILES/3-guest2-Nottingham/data.xml

This file was deleted.

1 change: 0 additions & 1 deletion USER-FILES/3-guest2-Nottingham/preview.xml

This file was deleted.

1 change: 0 additions & 1 deletion USER-FILES/4-guest-Nottingham/data.xml

This file was deleted.

1 change: 0 additions & 1 deletion USER-FILES/4-guest-Nottingham/preview.xml

This file was deleted.

1 change: 0 additions & 1 deletion USER-FILES/5-guest-Nottingham/data.xml

This file was deleted.

1 change: 0 additions & 1 deletion USER-FILES/5-guest-Nottingham/preview.xml

This file was deleted.

1 change: 0 additions & 1 deletion USER-FILES/6-guest-Nottingham/data.xml

This file was deleted.

1 change: 0 additions & 1 deletion USER-FILES/6-guest-Nottingham/preview.xml

This file was deleted.

1 change: 0 additions & 1 deletion USER-FILES/8-guest-Nottingham/data.xml

This file was deleted.

1 change: 0 additions & 1 deletion USER-FILES/8-guest-Nottingham/preview.xml

This file was deleted.

Binary file modified XMLEngine.swf
Binary file not shown.
36 changes: 36 additions & 0 deletions database.php
@@ -0,0 +1,36 @@
<?php
/**
*
* database page, has the settings for database connection
*
* @author Patrick Lockley
* @version 1.0
* @copyright Copyright (c) 2008,2009 University of Nottingham
* @package
*/

/*
* Host where database is
*/
$xerte_toolkits_site->database_host = "mysqlserver";

/*
* Username for database
*/
$xerte_toolkits_site->database_username ="dg";

/*
* Password for database
*/
$xerte_toolkits_site->database_password ="gingerdog";

/*
* Database name
*/
$xerte_toolkits_site->database_name ="xertetoolkits";

/*
* Database table prefix
*/
$xerte_toolkits_site->database_table_prefix ="";

24 changes: 20 additions & 4 deletions mapstraction/mapstraction.htm
Expand Up @@ -8,7 +8,8 @@
<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=MapstractionDemo"></script>
<script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6"></script>
<script src="http://openlayers.org/api/OpenLayers.js"></script>
<script type="text/javascript" charset="utf-8" src="http://mapstraction.googlecode.com/svn/trunk/source/mxn.js?(google, yahoo, microsoft, openlayers)"></script>
<!--<script type="text/javascript" charset="utf-8" src="http://mapstraction.googlecode.com/svn/trunk/source/mxn.js?(google, yahoo, microsoft, openlayers)"></script>-->
<script type="text/javascript" charset="utf-8" src="mxn.js?(google, yahoo, microsoft, openlayers)"></script>
<script type="text/javascript">

function getQuerystring(key, defaultVal) {
Expand Down Expand Up @@ -47,11 +48,26 @@
legend: true
});


if (overlays.length > 0){
for (var i = 0; i < overlays.length; i++){
mapstraction.addOverlay(unescape(overlays[i]));
}

if (overlays[i].indexOf('../') == 0){

var loc = window.location.pathname.split('mapstraction/mapstraction.htm');
loc = loc[0];
loc = window.location.host + loc;
loc = 'http://' + loc + overlays[i].substr(3);

mapstraction.addOverlay(loc);

}
else
{
mapstraction.addOverlay(unescape(loc));
}

}

}

//flickr search
Expand Down
Binary file modified modules/xerte/engine/wizard.swf
Binary file not shown.
2 changes: 1 addition & 1 deletion modules/xerte/parent_templates/Nottingham/Nottingham.rlt
@@ -1 +1 @@
<LO description="A flexible template for creating interactive learning objects" targetFolder="Nottingham" version="1.0" styleSheet="templatePath + 'common/styles.css'" inputColour="0xFFFFCC" selectableText="1" templateData="FileLocation + 'template.xml'" name="Xerte Online Toolkit"> <SCR name="makePages"><![CDATA[//loop through the xml and insert a page of the right type for each page typeifc = icon.nextSibling;linkIndex = -1;if (templateData.learningObject[0].navigation.indexOf('Menu') != -1 && templateData.learningObject[0].navigation != undefined ){ pgOffset = 2; newXML = new XML('<PG model="templatePath + \'models/menu.rlm\'"/>'); newChild = newXML.firstChild; newChild.attributes.title = 'Main Menu'; newChild.attributes.linkID = extXML.firstChild.childNodes[i].attributes.linkID; ifc.appendChild(newChild);} else { pgOffset = 1;}debug("-=" + templateData.learningObject[0].test);//custom interfaceif (templateData.learningObject[0].controller != undefined){ icon.nextSibling.attributes.swf = templateData.learningObject[0].controller; icon.nextSibling.attributes.visuals = 0;}//help fileif (templateData.learningObject[0].nfo != undefined){ icon.nextSibling.attributes.helpfile = templateData.learningObject[0].nfo;}//default text sizeif (templateData.learningObject[0].textSize != undefined){ STYLES.defaultSize = templateData.learningObject[0].textSize; STYLES.inputSize = templateData.learningObject[0].textSize;}for (i = 0; i < extXML.firstChild.childNodes.length; i++){ //build this file dynamically modName = extXML.firstChild.childNodes[i].nodeName; if (modName == 'xerteModel'){ newXML = new XML('<PG model="' + extXML.firstChild.childNodes[i].attributes.modelFile + '"/>'); //is there an initObject...? if (extXML.firstChild.childNodes[i].attributes.initObject != undefined){ newXML.firstChild.attributes.initObject = extXML.firstChild.childNodes[i].attributes.initObject; } } else { newXML = new XML('<PG model="templatePath + \'models/' + modName + '.rlm\'"/>'); } newChild = newXML.firstChild; newChild.attributes.title = extXML.firstChild.childNodes[i].attributes.name; newChild.attributes.linkID = extXML.firstChild.childNodes[i].attributes.linkID; if (extXML.firstChild.childNodes[i].attributes.linkID == _level0.linkID && extXML.firstChild.childNodes[i].attributes.linkID != undefined){ linkIndex = i; } ifc.appendChild(newChild);}]]></SCR> <IFC name="interface" title="My Learning Object" visuals="1"> <FW_ENT id="entryFrame" name="background"> <DIS initObject="{_alpha:15}" h="515" w="800" tabIndex="-1" id="bgImage" name="background" x="0" y="1" type="ext" url="{templateData.learningObject[0].background}"><![CDATA[]]></DIS> <SCR isFunc="1" name="navToPage"><![CDATA[for (i = 0; i < extXML.firstChild.childNodes.length; i++){ if (extXML.firstChild.childNodes[i].attributes.name == args[0]){ rootIcon.gotoPage(i); }}]]></SCR> <SCR name="setup"><![CDATA[rootIcon.loadIcon(expression(templateData.learningObject[0].ic, engine));if (templateData.learningObject[0].navigation.indexOf('Menu') != 0)[// || templateData.learningObject[0].navigation != undefined ){ icon.nextSibling.firstChild.removeNode(); } else { if (templateData.learningObject[0].navigation == 'Menu'){ rootIcon.hideControls(); rootIcon.tocBtn._visible = true; rootIcon.tocBtn._x = 740; if (templateData.learningObject[0].nfo != undefined){ rootIcon.helpBtn._visible = true; rootIcon.helpBtn._x = 690; } toc = rootIcon.tocBtn; } if (templateData.learningObject[0].navigation == 'Menu with Page Controls'){ rootIcon.hideControls(); rootIcon.backBtn._visible = true; rootIcon.backBtn._x = 640; rootIcon.tocBtn._visible = true; rootIcon.tocBtn._x = 690; rootIcon.nextBtn._visible = true; rootIcon.nextBtn._x = 740; toc = rootIcon.tocBtn; if (templateData.learningObject[0].nfo != undefined){ rootIcon.helpBtn._visible = true; rootIcon.helpBtn._x = 590; } }}]]></SCR> <INT id="myInt" name="narrationHandlers" perpetual="1"> <RES name="mainMenu" type="event" eventName="onRelease" icon="rootIcon.tocBtn" erase="1" exit="0"> <SCR name="gotoMenu"><![CDATA[rootIcon.gotoPage(0);]]></SCR> </RES> <RES name="showAudio" type="event" eventName="showAudio" icon="rootIcon" erase="1" exit="0"> <SND id="nar" controls="25,0,975" name="narration" type="ext" url="{narration}" play="0" loop="0" wait="0" /> <SCR name="setup"><![CDATA[nar._y = -14;nar._x = 0;nar._yscale = 80;nar._xscale = 80;nar.clear();nar.beginFill(STYLES.titleBarColour,100);nar.drawRect(22,0,130,20);]]></SCR> <INT name="handleAutoNaviagate" perpetual="0"> <RES name="onLoad" type="event" eventName="onLoad" icon="nar" erase="1" exit="0"> <SCR name="onLoad"><![CDATA[//play automatically?if (myXML.firstChild.attributes.playNarration == 'true'){ nar.play();}]]></SCR> </RES> <RES name="onSoundComplete" type="event" eventName="onSoundComplete" icon="nar" erase="1" exit="0"> <SCR name="moveOn"><![CDATA[if (myXML.firstChild.attributes.narrationNavigate == 'true'){ rootIcon.nextPage();}]]></SCR> </RES> </INT> </RES> <RES name="killYoutubePlayer" type="event" eventName="onClosePage" icon="rootIcon" erase="1" exit="0"> <SCR name="hideNarration"><![CDATA[if (engine[ytID] != undefined){ engine[ytID].destroy(); delete engine[ytID];}]]></SCR> </RES> <RES name="exitPreview" type="event" eventName="exitPreview" icon="rootIcon" erase="1" exit="0"> <SCR name="[Untitled]"><![CDATA[if (engine[ytID] != undefined){ engine[ytID].stopVideo(); engine[ytID].destroy(); engine[ytID].removeMovieClip()); delete engine[ytID];}]]></SCR> </RES> </INT> <INT name="onInitHandler" perpetual="0"> <RES name="onInit" type="event" eventName="onInit" icon="rootIcon" erase="1" exit="0"> <SCR name="jump"><![CDATA[rootIcon.preloadMedia();if (templateData.learningObject[0].displayMode != undefined){ rootIcon.setDisplayMode(templateData.learningObject[0].displayMode);}if (linkIndex != -1){ rootIcon.gotoPage(linkIndex);}]]></SCR> </RES> </INT> </FW_ENT> </IFC> <BIN myLongVarName="A variable for tracking the user" name="Deleted Items" /> </LO>
<LO description="A flexible template for creating interactive learning objects" targetFolder="Nottingham" version="1.0" styleSheet="templatePath + 'common/styles.css'" inputColour="0xFFFFCC" selectableText="1" templateData="FileLocation + 'template.xml'" name="Xerte Online Toolkit"> <SCR name="makePages"><![CDATA[//loop through the xml and insert a page of the right type for each page typeifc = icon.nextSibling;linkIndex = -1;if (templateData.learningObject[0].navigation.indexOf('Menu') != -1 && templateData.learningObject[0].navigation != undefined ){ pgOffset = 2; newXML = new XML('<PG model="templatePath + \'models/menu.rlm\'"/>'); newChild = newXML.firstChild; newChild.attributes.title = 'Main Menu'; newChild.attributes.linkID = extXML.firstChild.childNodes[i].attributes.linkID; ifc.appendChild(newChild); } else { pgOffset = 1;}//custom interfaceif (templateData.learningObject[0].controller != undefined){ icon.nextSibling.attributes.swf = templateData.learningObject[0].controller; icon.nextSibling.attributes.visuals = 0;}//help fileif (templateData.learningObject[0].nfo != undefined){ icon.nextSibling.attributes.helpfile = templateData.learningObject[0].nfo;}//default text sizeif (templateData.learningObject[0].textSize != undefined){ STYLES.defaultSize = templateData.learningObject[0].textSize; STYLES.inputSize = templateData.learningObject[0].textSize;}for (i = 0; i < extXML.firstChild.childNodes.length; i++){ //build this file dynamically modName = extXML.firstChild.childNodes[i].nodeName; if (modName == 'xerteModel'){ newXML = new XML('<PG model="' + extXML.firstChild.childNodes[i].attributes.modelFile + '"/>'); //is there an initObject...? if (extXML.firstChild.childNodes[i].attributes.initObject != undefined){ newXML.firstChild.attributes.initObject = extXML.firstChild.childNodes[i].attributes.initObject; } } else { newXML = new XML('<PG model="templatePath + \'models/' + modName + '.rlm\'"/>'); } newChild = newXML.firstChild; newChild.attributes.title = extXML.firstChild.childNodes[i].attributes.name; newChild.attributes.linkID = extXML.firstChild.childNodes[i].attributes.linkID; if (extXML.firstChild.childNodes[i].attributes.linkID == _level0.linkID && extXML.firstChild.childNodes[i].attributes.linkID != undefined){ linkIndex = i; } ifc.appendChild(newChild);}//glossaryif (templateData.learningObject[0].glossary != undefined){ Glossary.enabled = true; items = templateData.learningObject[0].glossary.split('||'); for (i = 0; i < items.length; i++){ Glossary.addTerm(items[i].split('|')[0], items[i].split('|')[1]); }}]]></SCR> <IFC name="interface" title="My Learning Object" visuals="1"> <FW_ENT id="entryFrame" name="background"> <SCR name="backgroundImage"><![CDATA[if (templateData.learningObject[0].background != undefined){ if(templateData.learningObject[0].backgroundopacity != undefined){ alpha = templateData.learningObject[0].backgroundopacity; } else { alpha = 15; } rootIcon.loadBackground(templateData.learningObject[0].background, alpha);}//stylesheetif (templateData.learningObject[0].stylesheet != undefined){ rootIcon.loadStyleSheet(expression(templateData.learningObject[0].stylesheet, this));}]]></SCR> <SCR isFunc="1" name="navToPage"><![CDATA[for (i = 0; i < extXML.firstChild.childNodes.length; i++){ if (extXML.firstChild.childNodes[i].attributes.name == args[0]){ if (pgOffset == 2){ rootIcon.gotoPage(i+1); } else { rootIcon.gotoPage(i); } }}]]></SCR> <SCR name="setup"><![CDATA[if (templateData.learningObject[0].ic != undefined){ rootIcon.loadIcon(expression(templateData.learningObject[0].ic, engine));}entryFrame.swapDepths(999);if (templateData.learningObject[0].navigation.indexOf('Menu') != 0)[// || templateData.learningObject[0].navigation != undefined ){ icon.nextSibling.firstChild.removeNode(); } else { if (templateData.learningObject[0].navigation == 'Menu'){ rootIcon.hideControls(); rootIcon.tocBtn._visible = true; rootIcon.tocBtn._x = 740; if (templateData.learningObject[0].nfo != undefined){ rootIcon.helpBtn._visible = true; rootIcon.helpBtn._x = 690; } toc = rootIcon.tocBtn; } if (templateData.learningObject[0].navigation == 'Menu with Page Controls'){ rootIcon.hideControls(); rootIcon.backBtn._visible = true; rootIcon.backBtn._x = 640; rootIcon.tocBtn._visible = true; rootIcon.tocBtn._x = 690; rootIcon.nextBtn._visible = true; rootIcon.nextBtn._x = 740; toc = rootIcon.tocBtn; if (templateData.learningObject[0].nfo != undefined){ rootIcon.helpBtn._visible = true; rootIcon.helpBtn._x = 590; } }}]]></SCR> <INT id="myInt" name="narrationHandlers" perpetual="1"> <RES name="mainMenu" type="event" eventName="onRelease" icon="rootIcon.tocBtn" erase="1" exit="0"> <SCR name="gotoMenu"><![CDATA[rootIcon.gotoPage(0);]]></SCR> </RES> <RES name="showAudio" type="event" eventName="showAudio" icon="rootIcon" erase="1" exit="0"> <SND id="nar" controls="25,0,975" name="narration" type="ext" url="{narration}" play="0" loop="0" wait="0" /> <SCR name="setup"><![CDATA[nar._y = -14;nar._x = 0;nar._yscale = 80;nar._xscale = 80;nar.clear();nar.beginFill(STYLES.titleBarColour,100);nar.drawRect(22,0,130,20);]]></SCR> <INT name="handleAutoNaviagate" perpetual="0"> <RES name="onLoad" type="event" eventName="onLoad" icon="nar" erase="1" exit="0"> <SCR name="onLoad"><![CDATA[//play automatically?if (myXML.firstChild.attributes.playNarration == 'true'){ nar.play();}]]></SCR> </RES> <RES name="onSoundComplete" type="event" eventName="onSoundComplete" icon="nar" erase="1" exit="0"> <SCR name="moveOn"><![CDATA[if (myXML.firstChild.attributes.narrationNavigate == 'true'){ rootIcon.nextPage();}]]></SCR> </RES> </INT> </RES> <RES name="killYoutubePlayer" type="event" eventName="onClosePage" icon="rootIcon" erase="1" exit="0"> <SCR name="hideNarration&killYouTube"><![CDATA[if (engine[ytID] != undefined){ engine[ytID].stopVideo(); //engine[ytID].destroy(); engine[ytID].removeMovieClip(); engine[ytID] = 6; delete engine[ytID];}if (popupActive == true){ callJS("killPopUp"); popupActive = false;}]]></SCR> </RES> <RES name="exitPreview" type="event" eventName="exitPreview" icon="rootIcon" erase="1" exit="0"> <SCR name="killYouTube"><![CDATA[if (engine[ytID] != undefined){ engine[ytID].stopVideo(); //engine[ytID].destroy(); engine[ytID].removeMovieClip(); // remove it engine[ytID] = 6; //force it not to be a movieClip anymore - set it to something else delete engine[ytID]; //this should kill it for good}]]></SCR> </RES> </INT> <COM id="cpad" name="characterPad" url="templatePath + 'common/charPad.swf'" initObject="{language: templateData.learningObject[0].language}" /> <INT name="onInitHandler" perpetual="0"> <RES name="onInit" type="event" eventName="onInit" icon="rootIcon" erase="1" exit="0"> <SCR name="jump"><![CDATA[rootIcon.preloadMedia();if (templateData.learningObject[0].displayMode != undefined){ rootIcon.setDisplayMode(templateData.learningObject[0].displayMode);}if (linkIndex != -1){ rootIcon.gotoPage(linkIndex);}]]></SCR> </RES> </INT> </FW_ENT> </IFC> <BIN myLongVarName="A variable for tracking the user" name="Deleted Items" /> </LO>
Expand Down

0 comments on commit a6dd34c

Please sign in to comment.