$title = $editable == TRUE ? _("Edit node: {$node_name} ") : _("Show node: {$node_name} "); ?> <div id='edit_container'> <table id='header_rule'> <tbody> <tr><td class='sec_title'><?php echo $title; ?> </td></tr> </tbody> </table> <form name='form_m' id='form_m'> <table class='er_container' id='erc1'> <tbody id='erb_c1'> <?php echo Ossec_utilities::print_subheader('attributes', $editable); $at_data = array('data' => $attributes, 'img_path' => 'images', 'is_editable' => $editable, 'lk_name' => $lk_name); echo Ossec_utilities::print_attributes($at_data); ?> </tbody> </table> <?php echo Ossec_utilities::print_subfooter($sf_data, $editable); ?> </form> </div>
<?php echo Ossec_utilities::print_subheader('attributes', $editable); $at_data = array('data' => $attributes, 'img_path' => 'images', 'is_editable' => $editable, 'lk_name' => $lk_name); echo Ossec_utilities::print_attributes($at_data); ?> </tbody> </table> <?php } ?> <table class='er_container' id='erc2'> <tbody id='erb_c2'> <?php $show_actions = $editable == TRUE ? TRUE : FALSE; echo Ossec_utilities::print_subheader('txt_nodes', $editable, $show_actions); if ($editable == TRUE) { ?> <tr id='<?php echo $lk_value; ?> '> <td class='n_name'> <input type='text' class='n_input auto_c' name='tn_label-<?php echo $lk_value; ?> ' id='tn_label_<?php echo $lk_value; ?> ' value='<?php echo $child['node'];
<table class='er_container' id='erc1'> <tbody id='erb_c1'> <?php echo Ossec_utilities::print_subheader('attributes', $editable); $at_data = array('data' => $attributes, 'img_path' => 'images', 'is_editable' => $editable, 'lk_name' => $lk_name); echo Ossec_utilities::print_attributes($at_data); ?> </tbody> </table> <input id='sep' name='sep' type='hidden' value='1'/> <table class='er_container' id='erc2'> <tbody id='erb_c2'> <?php echo Ossec_utilities::print_subheader('txt_nodes', $editable); $n_data = array('data' => $txt_nodes, 'img_path' => 'images', 'is_editable' => $editable, 'lk_name' => $lk_name); echo Ossec_utilities::print_txt_nodes($n_data); ?> </tbody> </table> <?php echo Ossec_utilities::print_subfooter($sf_data, $editable); ?> </form> </div>
</table> <table class='er_container' id='erc1'> <tbody id='erb_c1'> <?php echo Ossec_utilities::print_subheader('attributes', $editable); $at_data = array('data' => $attributes, 'img_path' => '/ossim/ossec/images', 'is_editable' => $editable, 'lk_name' => $lk_name); echo Ossec_utilities::print_attributes($at_data); ?> </tbody> </table> <input id='sep' name='sep' type='hidden' value='1'/> <table class='er_container' id='erc2'> <tbody id='erb_c2'> <?php echo Ossec_utilities::print_subheader('rules', $editable); $c_data = array('data' => $children, 'img_path' => '/ossim/ossec/images', 'is_editable' => $editable, 'lk_name' => $lk_name); echo Ossec_utilities::print_children($c_data); ?> </tbody> </table> <?php echo Ossec_utilities::print_subfooter($sf_data, $editable); ?> </form> </div>