1 <?php global $stripslashes; ?>
2 <?php debug($result_related);?>
3 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
4 <input type="hidden" name="gid" value="<?php echo $this->gid; ?>" />
6 <div class="input-form">
7 <fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit_glossary'); ?></legend>
9 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('glossary_term'); ?></label><br/ >
10 <input type="text" name="word" size="40" id="title" value="<?php echo htmlentities_utf8($stripslashes($row['word'])); ?>" />
14 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body"><?php echo _AT('glossary_definition'); ?></label><br />
15 <textarea name="definition" cols="55" rows="7" id="body"><?php echo htmlentities_utf8($row['definition']); ?></textarea>
19 <?php echo _AT('glossary_related'); ?><br />
22 if ($row_g = mysql_fetch_array($this->result_related)) {
23 echo '<select name="related_term">';
24 echo '<option value="0"></option>';
26 if ($row_g['word_id'] == $row['word_id']) {
30 echo '<option value="'.$row_g['word_id'].'"';
32 if ($row_g['word_id'] == $row['related_word_id']) {
33 echo ' selected="selected" ';
36 echo '>'.htmlentities_utf8($row_g['word']).'</option>';
37 } while ($row_g = mysql_fetch_array($result));
42 echo _AT('no_glossary_items');
46 <div class="row buttons">
47 <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
48 <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />