<div class="cc_hubadm_content">
    <div class="cc_hubadm_box cc_hubadm_full">
    <div class="cc_hubadm_boxtitle">Write a new Document</div>
    <form method="post" class="cc_hubopsform" action="<?php echo SITE_URL ?>/<?php echo $mloc ?>.php/HubOps/savedoc">
           <table class="cc_hubadm_formtable">
               <tr>
                   <td>Document Title:</td>
                   <td>
                   <input type="text" name="title" value="<?php echo $document->title; ?>" />
                   </td>
               </tr>
               <tr>
                   <td>Text:</td>
                   <td>
                       <textarea id="editor" name="doccontent"><?php echo $document->doccontent; ?></textarea>
                   </td></tr>
               <tr><td></td><td>
                   <input type="hidden" name="id" value="<?php echo $document->id; ?>" />
                   <input type="submit" value="Save Document" /></td></tr>
           </table>
    </form>
    </div>
</div>