function template_edit($id)
{
    debug_msg("FUNCTION: " . __FUNCTION__, 3);
    html_header("Edit Template Data");
    $result = db_read_templates($id);
    $name = $result['name'];
    $description = $result['description'];
    $template = html_entity_decode($result['template'], ENT_COMPAT, LANG_CHARSET);
    ?>
<div align="center">
<h1>Edit Template</h1>
<br />

<?php 
    template_form('update', $id, $name, $description, $template);
    ?>
</div>
<?php 
    html_footer();
}
Beispiel #2
0
function template_search_params(&$args)
{
    $reporter = $args['reporter'];
    $field_defs = $reporter->focus->field_defs;
    ?>
<table cellpadding="0" cellspacing="0" border="1">
<?php 
    foreach ($field_defs as $field) {
        ?>
<tr>
<td>
<?php 
        template_field_name($field);
        ?>
</td>
<td>
<?php 
        template_form($field);
        ?>
</td>
</tr>
<?php 
    }
    ?>
</table>

<?php 
}