Logo Search packages:      
Sourcecode: bamboo version File versions  Download package

newedit.php

<?php
$newpage = &$GLOBALS['newpage'];
$parent = $page->path;
if ($parent == "") $parent = "(Home)";
$tabindex=0;
?>

<script language="JavaScript">
function submitform(formname,action,value) {
  f = document.forms[formname]; 
  f.elements[action].value = value;
  f.submit();
}
</script>

<form name=createform action="<?=$action?>" method="POST">
  <input type=hidden name=action value=edit>
  <input type=hidden name="eaction" value="create">

<table>

    <tr>
      <td>
        <a class=button href="javascript:submitform('createform','eaction','create')" style="text-decoration: none" accesskey='s'><u>S</u>ave New Page</a>
      </td>
    </tr>

<tr>
  <td align=right>Parent Page:</td>
  <td>
    <input class=textinput type=text name=name value="<?=$parent?>" size=40 disabled>
  </td>
</tr>

<tr>
  <td align=right>Name:</td>
  <td>
    <input class=textinput type=text name=name value="<?=$newpage->get('name')?>" size=40 />
  </td>
</tr>

<tr>
 <td align=right>Title:</td>
 <td>
    <input class=textinput type=text name=title value="<?=$newpage->get('title')?>" size=40 tabindex=<?=$tabindex++?>>
 </td>
</tr>

<tr>
 <td align=right>Subject:</td>
 <td>
    <input class=textinput type=text name=subject value="<?=$newpage->get('subject')?>" size=40 tabindex=<?=$tabindex++?>>
 </td>
</tr>

<tr>
 <td align=right valign=top>Description:</td>
 <td><textarea class=textinput name=description cols=40 rows=2 tabindex=<?=$tabindex++?>><?=$newpage->get('description')?></textarea></td>
</tr>

<tr>
 <td align=right>Keywords:</td>
 <td>
    <input class=textinput type=text name=keywords value="<?=$newpage->get('keywords')?>" size=40 tabindex=<?=$tabindex++?>>
 </td>
</tr>

<tr>
      <td>Content:</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;"></textarea>
    </td></tr>
    <tr><td>
      <a class=button href="javascript:submitform('createform','eaction','create')" style="text-decoration: none" accesskey='s'><u>S</u>ave New Page</a>
    </td></tr>
  </table>
</form>

Generated by  Doxygen 1.6.0   Back to index