<div id="accoes_bg">
    <div id="titulo_accao"><?php echo $section_singular; ?></div>
</div>

<div id="conteudo">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top" width="180" id="tr_tree">
        <div id="tree">
            <?php foreach($modulos as $modulo => $paginas): ?>
            <fieldset>
                <legend><?php echo $modulo; ?></legend>
                <?php foreach ($paginas as $pagina): ?>
                <a href="<?php echo $this->link('/cms/edit_sistema/section/paginas/id/' . $pagina->id); ?>"><?php echo $pagina->titulo; ?></a><br />
                <?php endforeach; ?>
            </fieldset>
            <?php endforeach; ?>
        </div>
    </td>
    <td align="center" valign="top" id="manutencaodisplay">
        <?php echo $form->start(); ?>
        <div class="acessibilidade">
        	<span>
            <?/*
            <img src="/admin/media/images/previsualizar.gif"  border="0" align="absmiddle" hspace="3" title="<?php echo translateAdmin('Pr&eacute-Visualizar');?>" /><a href="#" class="linksacessibilidade"><?php echo translateAdmin('Pr&eacute;-Visualizar');?></a>&nbsp;
            <img src="/admin/media/images/permissoes.gif"  border="0" align="absmiddle" hspace="3" title="<?php echo translateAdmin('Permiss&otilde;es');?>" /><a href="#" class="linksacessibilidade"><?php echo translateAdmin('Permiss&otilde;es');?></a>&nbsp;
            */?>
            <?php if (isset($id) && $id > 0): ?>
            <input type="button"  value="<?php echo translateAdmin('Remover P&aacute;gina de Sistema');?>" name="delete" id="delete" onClick="location='<?php echo $this->link('/cms/delete_sistema/section/paginas/id/' . $id); ?>';" class="form_delete"/>&nbsp;&nbsp;
            <?php endif; ?>
            <?php echo $form->submit_and_continue->input; ?>
			<?php echo $form->submit->input; ?>
            </span>
        </div>
        <div id="rte">
        <table border="0">
            <?php foreach ($form->getElementsNames() as $element): ?>
            <?php if ($form->{$element}->type != 'submit' && $form->{$element}->type != 'button'): ?>
            <tr>
                <td><?php echo $form->{$element}->label; ?></td>
                <td><?php if ($form->{$element}->getErrorMessage()): ?><div class="error_message"><?php echo $form->{$element}->getErrorMessage(); ?></div><?php endif; ?><?php echo $form->{$element}->input; ?>
                </td>
            </tr>
            <?php endif; ?>
            <?php endforeach; ?>
        </table>
        <div align="right"></div>
        <br />
        <div class="acessibilidade">
        	<span>
            <?/*
            <img src="/admin/media/images/previsualizar.gif"  border="0" align="absmiddle" hspace="3" title="<?php echo translateAdmin('Pr&eacute-Visualizar');?>" /><a href="#" class="linksacessibilidade"><?php echo translateAdmin('Pr&eacute;-Visualizar');?></a>&nbsp;
            <img src="/admin/media/images/permissoes.gif"  border="0" align="absmiddle" hspace="3" title="<?php echo translateAdmin('Permiss&otilde;es');?>" /><a href="#" class="linksacessibilidade"><?php echo translateAdmin('Permiss&otilde;es');?></a>&nbsp;
            */?>
            <?php if (isset($id) && $id > 0): ?>
            <input type="button"  value="<?php echo translateAdmin('Remover P&aacute;gina de Sistema');?>" name="delete" id="delete" onClick="location='<?php echo $this->link('/cms/delete_sistema/section/paginas/id/' . $id); ?>';" class="form_delete"/>&nbsp;&nbsp;
            <?php endif; ?>
            <?php echo $form->submit_and_continue->input; ?>&nbsp;&nbsp;<?php echo $form->submit->input; ?>
            </span>
        </div>
        
        </div>
        <?php echo $form->end(); ?>        
    </td>
  </tr>
</table>
</div>
