3 $title = sprintf(_('Edit Layout Template for %s'), $ath->getName()) ;
4 $ath->adminHeader(array('title'=>$title, 'modal'=>1));
7 $params['body'] = isset($body)? $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);
16 <li>Keep the one table format with two columns table layout, do not add strings before or after the table.</li>
17 <li>All template variables (named like {$...}) should be left untouched.</li>
18 <li>Once a template model in use, if you add/remove custom fields, you'll have to update the template yourself.</li>
21 <form action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&atid='.$ath->getID(); ?>" method="post">
22 <input type="hidden" name="update_template" value="y" />
23 <p><?php echo $params['content']; ?></p>
24 <p><input type="submit" name="post_changes" value="<?php echo _('Submit') ?>" /></p>
28 $ath->footer(array());
32 // c-file-style: "bsd"