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