</style>
<form name="treeform" action="view.php" method="POST">
<input type="hidden" name="id" value="<?php 
p($cm->id);
?>
" />
<input type="hidden" name="operator" value="<?php 
p($page);
?>
" />
<input type="hidden" name="what" value="" />
<table width="80%">
<?php 
if ($tree) {
    if ($action == 'printindeepness') {
        hierarchize_print_levelindeepness($brainstorm->id, $cm, null, 0, 0);
        ?>
</table>
<table width="80%">
    <tr>
        <td align="center">
            <br/><input type="button" name="printdeep_btn" value="<?php 
        print_string('printbyline', 'brainstorm');
        ?>
" onclick="document.forms['treeform'].what.value='printbyline';document.forms['treeform'].submit();" />
        </td>
    </tr>
<?php 
    } else {
        $i = 0;
        $indent = 25;
/**
*
*
*/
function hierarchize_display(&$brainstorm, $userid, $groupid)
{
    $tree = hierarchize_get_childs($brainstorm->id, $userid, $groupid);
    ?>
<center>
<style>
.response{ font-size : 1.2em ; border : 1px solid gray }
.subtree{ font-size : 1.0em ; border : 1px solid gray }
</style>
<?php 
    if ($tree) {
        echo '<table width="80%">';
        hierarchize_print_levelindeepness($brainstorm->id, $brainstorm->cm, $userid, $groupid, 0);
        echo '</table>';
    } else {
        echo get_string('notreeset', 'brainstorm');
    }
    ?>
</center>
<?php 
}