Commit 09dd9866 authored by Robert Ricci's avatar Robert Ricci

If making a mote image, put a link to the correct documentation at

the top.
parent b4434d36
...@@ -25,11 +25,20 @@ if ($nodetype == "mote") { ...@@ -25,11 +25,20 @@ if ($nodetype == "mote") {
'hide_opmode' => 1, 'hide_footnotes' => 1); 'hide_opmode' => 1, 'hide_footnotes' => 1);
$nodeclass = "mote"; $nodeclass = "mote";
$title = "Mote Form"; $title = "Mote Form";
$help_message =
"See the
<a href=doc/docwrapper.php3?docname=emotes.html#PROGRAMMING>
mote documentation</a> for more info on creating/using custom
mote images.";
} else { } else {
# Defaults to PC view # Defaults to PC view
$view = array('hide_upload' => 1); $view = array('hide_upload' => 1);
$nodeclass = "pc"; $nodeclass = "pc";
$title = "EZ Form"; $title = "EZ Form";
$help_message =
"See the
<a href=tutorial/docwrapper.php3?docname=tutorial.html#CustomOS>
tutorial</a> for more info on creating/using custom Images.";
} }
# #
...@@ -74,7 +83,7 @@ $types_result = DBQueryFatal($types_querystring); ...@@ -74,7 +83,7 @@ $types_result = DBQueryFatal($types_querystring);
function SPITFORM($formfields, $errors) function SPITFORM($formfields, $errors)
{ {
global $uid, $projlist, $isadmin, $types_result, $osid_oslist, $osid_opmodes, global $uid, $projlist, $isadmin, $types_result, $osid_oslist, $osid_opmodes,
$osid_featurelist, $nodetype, $filename_extension; $osid_featurelist, $nodetype, $filename_extension, $help_message;
global $TBDB_OSID_OSNAMELEN, $TBDB_NODEIDLEN; global $TBDB_OSID_OSNAMELEN, $TBDB_NODEIDLEN;
global $TBDB_OSID_VERSLEN, $TBBASE; global $TBDB_OSID_VERSLEN, $TBBASE;
...@@ -87,11 +96,9 @@ function SPITFORM($formfields, $errors) ...@@ -87,11 +96,9 @@ function SPITFORM($formfields, $errors)
# field from $formfields # field from $formfields
# #
echo "<center><b> if ($help_message) {
See the echo "<center><b>$help_message</b></center>\n";
<a href=tutorial/docwrapper.php3?docname=tutorial.html#CustomOS> }
tutorial</a> for more info on creating/using custom Images.
</b></center>\n";
if ($isadmin) { if ($isadmin) {
echo "<center> echo "<center>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment