Logo Search packages:      
Sourcecode: bamboo version File versions

edit.php

<script language="JavaScript">
function submitform(formname,action,value) {
  f = document.forms[formname]; 
  f.elements[action].value = value;
  f.selectionstart.value = f.data.selectionStart;
  f.selectionend.value = f.data.selectionEnd;
  f.scrolltop.value = f.data.scrollTop;
  f.submit();
}
</script>

<form name=contentform action="<?=$action?>" method="POST">
  <input type=hidden name=action value=edit>
  <input type=hidden name="eaction" value="saveedit">
  <input type=hidden name="selectionstart" value="0">
  <input type=hidden name="selectionend" value="0">
  <input type=hidden name="scrolltop" value="0">
  <input type=hidden name="lang" value="<?=$_SESSION['lang']?>">
  <table>
    <tr>
      <td>
        <a class=button href="javascript:submitform('contentform','eaction','saveedit')" style="text-decoration: none" accesskey='s'><u>S</u>ave</a>
        <a class=button href="javascript:submitform('contentform','eaction','saveview')" style="text-decoration: none" accesskey='n'>Save A<u>n</u>d View</a>
      </td>
      <td align=right>
        <a href="<?=$action?>?action=edit&eaction=guide" target="new">view text guide</a>
      </td>
    </tr>
    <tr><td colspan=2>
      <textarea id=data class=textinput name=data cols=90 rows=30 style="font-family: monospace;"><?= $e->text ?></textarea>
    </td></tr>
    <tr><td>
      <a class=button href="javascript:submitform('contentform','eaction','saveedit')" style="text-decoration: none" accesskey='s'><u>S</u>ave</a>
      <a class=button href="javascript:submitform('contentform','eaction','saveview')" style="text-decoration: none" accesskey='n'>Save A<u>n</u>d View</a>
    </td>
    <td align=right>
       <label>
          <input type=checkbox name="view_in_same_window" value=true <?= $_SESSION['view_in_same_window'] ? 'CHECKED' : ''; ?> >
          View in this window
       </label>
    </td></tr>
  </table>
</form>
<script language="JavaScript">
      document.forms['contentform'].data.focus();
      document.forms['contentform'].data.setSelectionRange(<?= get('selectionstart') ?>, <?= get('selectionend') ?>);
      document.forms['contentform'].data.scrollTop = <?= get('scrolltop',0) ?>;
      <?php if (get('eaction') == 'saveview') echo "open ('$action', 'bamboopreview');"; ?>
</script>

Generated by  Doxygen 1.6.0   Back to index