3 $title = sprintf(_('Edit Layout Template for %s'), $ath->getName()) ;
4 $ath->adminHeader(array('title'=>$title, 'modal'=>1));
7 $params['body'] = '<table>'.$ath->getRenderHTML(array(), 'DETAIL').'</table>';
8 $params['height'] = "500";
9 $params['group'] = $group_id;
10 $params['content'] = '<textarea name="body" rows="30" cols="80">' . $params['body'] . '</textarea>';
11 plugin_hook_by_reference("text_editor",$params);
18 <li>Keep the one table format with two columns table layout, do not add strings before or after the table.</li>
19 <li>All template variables (named like {$...}) should be left untouched.</li>
20 <li>Once a template model in use, if you add/remove custom fields, you'll have to update the template yourself.</li>
23 <form action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&atid='.$ath->getID(); ?>" method="post">
24 <input type="hidden" name="update_template" value="y" />
25 <p><?php echo $params['content']; ?></p>
26 <p><input type="submit" name="post_changes" value="<?php echo _('Submit') ?>" /></p>
30 $ath->footer(array());
34 // c-file-style: "bsd"