version 1.20, 2003/08/17 18:50:12
|
version 1.23, 2003/09/05 01:06:45
|
Line 54 built-in functions.
|
Line 54 built-in functions.
|
package Apache::lonspreadsheet; |
package Apache::lonspreadsheet; |
|
|
use strict; |
use strict; |
|
use warnings FATAL=>'all'; |
|
no warnings 'uninitialized'; |
use Apache::classcalc(); |
use Apache::classcalc(); |
use Apache::studentcalc(); |
use Apache::studentcalc(); |
use Apache::assesscalc(); |
use Apache::assesscalc(); |
Line 165 END
|
Line 167 END
|
} |
} |
$load_dialog .= '>'.$sheetfilename."</option>\n"; |
$load_dialog .= '>'.$sheetfilename."</option>\n"; |
} |
} |
$load_dialog .= "</td><td> </td></tr>\n</table>\n"; |
$load_dialog .= "</select>\n</td><td> </td></tr>\n</table>\n"; |
# |
# |
$result .=<<END; |
$result .=<<END; |
|
<!-- |
|
<fieldset title="File Dialogs" > |
|
<legend>File Dialogs</legend> |
|
--> |
<!-- load / save dialogs --> |
<!-- load / save dialogs --> |
<table cellspacing="2"> |
<table cellspacing="2"> |
<tr> |
<tr> |
Line 180 END
|
Line 186 END
|
</td> |
</td> |
</tr> |
</tr> |
</table> |
</table> |
|
<!-- |
|
</fieldset> |
|
--> |
END |
END |
return ($result,$message); |
return ($result,$message); |
} |
} |
Line 451 END
|
Line 460 END
|
$r->print('<td><input type="submit" value="Generate Spreadsheet" />'. |
$r->print('<td><input type="submit" value="Generate Spreadsheet" />'. |
'</td>'); |
'</td>'); |
} |
} |
# if ($allowed_to_view) { |
if ($allowed_to_view) { |
# $r->print('<td>'. |
$r->print('<td>'. |
# &Apache::loncommon::help_open_topic("Spreadsheet_About", |
&Apache::loncommon::help_open_topic("Spreadsheet_About", |
# 'Spreadsheet Help'). |
'Spreadsheet Help'). |
# '</td>'); |
'</td>'); |
# } |
} |
# if ($allowed_to_edit) { |
if ($allowed_to_edit) { |
# $r->print('<td>'. |
$r->print('<td>'. |
# &Apache::loncommon::help_open_topic("Spreadsheet_Editing", |
&Apache::loncommon::help_open_topic("Spreadsheet_Editing", |
# 'Editing Help'). |
'Editing Help'). |
# '</td>'); |
'</td>'); |
# } |
} |
$r->print('</tr></table>'); |
$r->print('</tr></table>'); |
# |
# |
# Keep track of the filename |
# Keep track of the filename |