214ce5152c1f79cd511cbeb9c4b04aea0731613b
[atutor.git] / docs / themes / default / admin / system_preferences / language_editor.tmpl.php
1 <?php global $strlen?>
2 <?php debug($this->num_results_row);?>
3 hi
4 <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
5         <div class="input-form">
6                 <div class="row">
7                         <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
8                 </div>
9
10                 <div class="row">
11                         <?php echo _AT('type'); ?><br />
12                         <input type="radio" name="type" value="template" id="tyte" <?php if ($_GET['type'] == 'template') { echo 'checked="checked"'; } ?> /><label for="tyte"><?php echo _AT('template'); ?></label>
13                         <input type="radio" name="type" value="feedback" id="tyfe" <?php if ($_GET['type'] == 'feedback') { echo 'checked="checked"'; } ?> /><label for="tyfe"><?php echo _AT('feedback'); ?></label>
14                 </div>
15
16                 <div class="row">
17                         <input type="checkbox" name="custom" value="1" id="cus" <?php if (isset($_GET['custom'])) { echo 'checked="checked"'; } ?> /><label for="cus"><?php echo _AT('only_show_edited_terms'); ?></label>
18                 </div>
19
20                 <div class="row">
21                         <label for="search"><?php echo _AT('search'); ?></label><br />
22                         <input type="text" name="search" id="search" size="40" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
23                 </div>
24
25                 <div class="row buttons">
26                         <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
27                         <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
28                 </div>
29         </div>
30 </form>
31
32 <form name="form" method="post">
33 <div class="input-form">
34         <table cellspacing="0" cellpadding="0">
35         <tr>
36         <td valign="top">
37                 <?php if ($this->num_results): ?>
38                         <select size="<?php echo min(max($this->num_results,2), 25); ?>" name="terms" id="terms" onchange="javascript:showtext(this);">
39                                 <?php
40                                         while ($row = mysql_fetch_assoc($result)): 
41                                                 if ($strlen($row['text']) > 30) {
42                                                         $row['text'] = $substr($row['text'], 0, 28) . '...';
43                                                 }
44                                         ?>
45                                                 <option value="<?php echo $row['term']; ?>"><?php echo htmlspecialchars($row['text']); ?></option>
46                                         <?php endwhile; ?>
47                         </select>
48                 <?php else: ?>
49                         <p><?php echo _AT('none_found'); ?></p>
50                 <?php endif; ?>
51         </td>
52
53         <td valign="top">
54                 <div class="row">
55                         <iframe src="mods/_core/languages/language_term.php" frameborder="0" height="430" width="450" marginheight="0" marginwidth="0" name="tran" id="tran"></iframe>
56                 </div>
57         </td>
58         </tr>
59         </table>
60 </div>
61 </form>