Skip to content
Permalink
Browse files

Merged changes from STABLE to add new collapsible sections to mod edi…

…t forms
  • Loading branch information...
moodler
moodler committed Aug 27, 2004
1 parent f874527 commit f79fface79cfeba1af1097487eec0eb8d03ec427
Showing with 91 additions and 19 deletions.
  1. +2 −1 mod/resource/type/file/file.html
  2. +44 −10 mod/resource/type/html/html.html
  3. +45 −8 mod/resource/type/text/text.html
@@ -108,8 +108,9 @@
</table>
</td></tr>
</div>
</td></tr>
<tr>
<td align="right"><p><b><?php print_string("parameters", "resource") ?>:</b></p></td>
@@ -1,3 +1,19 @@
<script language="javascript">
function showhide (id) {
divobj = document.getElementById(id);
butobj = document.getElementById(id+'button');
if (divobj.style.display != 'none') {
divobj.style.display = 'none';
butobj.value = '<?php print_string("showsettings") ?>';
} else {
divobj.style.display = 'block';
butobj.value = '<?php print_string("hidesettings") ?>';
}
}
</script>



<tr valign="top">
<td align="right" nowrap>
<p><b><?php print_string("fulltext", "resource") ?>:</b></p><br />
@@ -14,31 +30,38 @@

<tr><td colspan="2"><hr /></td></tr>

<tr valign="top">
<td align="right" nowrap>
<p><b><?php print_string("pagewindow", "resource") ?>:</b></p>
<tr>
<td align="right"><p><b><?php print_string("display", "resource") ?>:</b></p></td>
<td>
<input type="button" value="hide settings" id="windowsettingsbutton" onClick="javascript: return showhide('windowsettings');" />
</td>
</tr>
<tr><td colspan="2">

<td>
<div id="windowsettings">

<table align="center">


<tr valign="top">

<td colspan="2">
<script>
var popupitems = [<?php echo $popupoptions; ?>];
var allitems = [<?php echo $alloptions; ?>];
</script>
<input type="radio" name="windowpopup" value=0 <?php echo ($windowtype != "popup") ? "checked" : "" ?>
onClick="return lockoptions('form', 'windowpopup[1]', popupitems);">
<?php print_string("pagedisplay", "resource") ?>
<b title="<?php print_string("pagedisplay", "resource") ?>"><?php print_string("pagewindow", "resource") ?></b>
</td>
</tr>
<tr valign="top">
<td align="right" nowrap>
<p><b><?php p($strnewwindow) ?>:</b></p>
</td>
<td>
<td colspan="2">
<input name="windowpopup" type=radio value=1 <?php echo ($windowtype == "popup") ? "checked" : "" ?>
onclick=" return lockoptions('form', 'windowpopup[1]', popupitems);">
<?php p($strnewwindowopen) ?>
<b title="<?php p($strnewwindowopen) ?>"><?php p($strnewwindow) ?></b>
<ul>
<?php
foreach ($window as $name => $value) {
@@ -70,3 +93,14 @@
</td>
</tr>
</table>
</div>
</td></tr>
<script language="javascript">
showhide('windowsettings');
</script>
@@ -1,3 +1,19 @@
<script language="javascript">
function showhide (id) {
divobj = document.getElementById(id);
butobj = document.getElementById(id+'button');
if (divobj.style.display != 'none') {
divobj.style.display = 'none';
butobj.value = '<?php print_string("showsettings") ?>';
} else {
divobj.style.display = 'block';
butobj.value = '<?php print_string("hidesettings") ?>';
}
}
</script>



<tr valign="top">
<td align="right" nowrap>
<p><b><?php print_string("fulltext", "resource") ?>:</b></p><br />
@@ -24,30 +40,40 @@

<tr><td colspan="2"><hr /></td></tr>

<tr valign="top">
<td align="right" nowrap>
<p><b><?php print_string("pagewindow", "resource") ?>:</b></p>
</td>

<tr>
<td align="right"><p><b><?php print_string("display", "resource") ?>:</b></p></td>
<td>
<input type="button" value="hide settings" id="windowsettingsbutton" onClick="javascript: return showhide('windowsettings');" />
</td>
</tr>
<tr><td colspan="2">

<div id="windowsettings">

<table align="center">


<tr valign="top">

<td colspan="2">
<script>
var popupitems = [<?php echo $popupoptions; ?>];
var allitems = [<?php echo $alloptions; ?>];
</script>
<input type="radio" name="windowpopup" value=0 <?php echo ($windowtype != "popup") ? "checked" : "" ?>
onClick="return lockoptions('form', 'windowpopup[1]', popupitems);">
<b title="<?php print_string("pagedisplay", "resource") ?>"><?php print_string("pagewindow", "resource") ?></b>
<?php print_string("pagedisplay", "resource") ?>
</td>
</tr>
<tr valign="top">
<td align="right" nowrap>
<p><b><?php p($strnewwindow) ?>:</b></p>
</td>
<td>
<td colspan="2">
<input name="windowpopup" type=radio value=1 <?php echo ($windowtype == "popup") ? "checked" : "" ?>
onclick=" return lockoptions('form', 'windowpopup[1]', popupitems);">
<b title="<?php p($strnewwindowopen) ?>"><?php p($strnewwindow) ?></b>
<?php p($strnewwindowopen) ?>
<ul>
<?php
@@ -80,3 +106,14 @@
</td>
</tr>
</table>
</div>
</td></tr>
<script language="javascript">
showhide('windowsettings');
</script>

0 comments on commit f79ffac

Please sign in to comment.
You can’t perform that action at this time.