b27a489c2b2df829ac7b999e5e12e5e521e5ef8b
[atutor.git] / docs / include / html / code_picker.inc.php
1 <?php
2 /****************************************************************/
3 /* ATutor                                                                                                               */
4 /****************************************************************/
5 /* Copyright (c) 2002-2010                                      */
6 /* Inclusive Design Institute                                   */
7 /* http://atutor.ca                                                                                             */
8 /*                                                              */
9 /* This program is free software. You can redistribute it and/or*/
10 /* modify it under the terms of the GNU General Public License  */
11 /* as published by the Free Software Foundation.                                */
12 /****************************************************************/
13 if (!defined('AT_INCLUDE_PATH')) { exit; }
14
15 ?>
16 <table border="0" cellspacing="0" cellpadding="0" width="100%">
17 <tr>
18         <td colspan="2"><small><?php echo _AT('click_code'); ?></small></td>
19 </tr>
20 <tr>
21         <td align="right"><small><strong><?php echo _AT('emoticons'); ?>:</strong></small></td>
22         <td><small><?php
23                 echo '<a href="javascript:smilie(\':)\')" title=":)">'.smile_replace(':)').'</a> ';
24                 echo '<a href="javascript:smilie(\';)\')" title=";)">'.smile_replace(';)').'</a> ';
25                 echo '<a href="javascript:smilie(\':(\')" title=":(">'.smile_replace(':(').'</a> ';
26                 echo '<a href="javascript:smilie(\'::ohwell::\')" title=":\\">'.smile_replace('::ohwell::').'</a> ';
27
28                 echo '<a href="javascript:smilie(\':P\')" title=":P">'.smile_replace(':P').'</a> ';
29                 echo '<a href="javascript:smilie(\'::angry::\')" title="::angry::">'.smile_replace('::angry::').'</a> ';
30
31                 echo '<a href="javascript:smilie(\'::evil::\')" title="::evil::">'.smile_replace('::evil::').'</a> ';
32                 echo '<a href="javascript:smilie(\'::lol::\')" title="::lol::">'.smile_replace('::lol::').'</a> ';
33                 echo '<a href="javascript:smilie(\'::confused::\')" title="::confused::">'.smile_replace('::confused::').'</a> ';
34                 echo '<a href="javascript:smilie(\'::crazy::\')" title="::crazy::">'.smile_replace('::crazy::').'</a> ';
35
36                 echo '<a href="javascript:smilie(\'::tired::\')" title="::tired::">'.smile_replace('::tired::').'</a> ';
37                 echo '<a href="javascript:smilie(\'::muah::\')" title="::muah::">'.smile_replace('::muah::').'</a>';
38         ?></small></td>
39 </tr>
40 <tr>
41         <td align="right"><small><strong><?php echo _AT('codes'); ?>:</strong></small></td>
42         <td> <small><a href="javascript:smilie('[b] [/b]')" title="[b] [/b]"><?php echo _AT('bold'); ?></a>,
43         <a href="javascript:smilie('[i] [/i]')" title="[i] [/i]"><?php echo _AT('italic'); ?></a>,
44         <a href="javascript:smilie('[u] [/u]')" title="[u] [/u]"><?php echo _AT('underline'); ?></a>,
45         <a href="javascript:smilie('[center] [/center]')" title="[center] [/center]"><?php echo _AT('center'); ?></a>,
46         <a href="javascript:smilie('[quote] [/quote]')" title="[quote] [/quote]"><?php echo _AT('quote'); ?></a>,
47         <a href="javascript:smilie('http://')" title="http://"><?php echo _AT('link'); ?></a>,
48         <a href="javascript:smilie('[image|alt text][/image]')" title="[image|alt text][/image]"><?php echo _AT('image'); ?></a>,
49         <a href="javascript:smilie('[media][/media]')" title="[media] [/media]"><?php echo _AT('media'); ?></a><?php
50         if (isset($current_tab)) {
51                 echo ', <a href="javascript:smilie(\' [?][/?]\')" title="[?][/?]">',_AT('add_term'), '</a>';
52                 echo '<a href="javascript:smilie(\' [code][/code]\')" title="[code][/code]" onclick="document.form.formatting.html.checked=true;">',_AT('add_code'), '</a>';
53         } ?></small></td>
54 </tr>
55 <tr>
56         <td align="right"><small><strong><?php echo _AT('colors'); ?>:</strong></small></td>
57         <td><table border="0" cellspacing="2" cellpadding="0" summary="">
58         <tr>
59                 <td style="background:blue;"><a href="javascript:smilie('[blue] [/blue]')" title="[blue] [/blue]" style="color:white; margin:.5em;"><?php echo _AT('blue'); ?></a></td>
60                 
61                 <td  style="background:red;"><a href="javascript:smilie('[red] [/red]')" title="[red] [/red]" style="color:white;margin:.5em;"><?php echo _AT('red'); ?></a></td>
62                 
63                 <td  style="background:green;"><a href="javascript:smilie('[green] [/green]')" title="[green] [/green]" style="color:white;margin:.5em;"><?php echo _AT('green'); ?></a></td>
64                 
65                 <td  style="background:orange;" style="color:white;margin:.5em;"><a href="javascript:smilie('[orange] [/orange]')" title="[orange] [/orange]" style="color:white;margin:.5em;"> <?php echo _AT('orange'); ?></a></td>
66                 
67                 <td  style="background:purple;"><a href="javascript:smilie('[purple] [/purple]')" title="[purple] [/purple]" style="color:white;margin:.5em;"><?php echo _AT('purple'); ?></a></td>
68                 
69                 <td style="background:gray;"><a href="javascript:smilie('[gray] [/gray]')" title="[gray] [/gray]" style="color:white;margin:.5em;"><?php echo _AT('gray'); ?></a></td>
70         </tr>
71         </table></td>
72 </tr>
73 </table>
74         <script type="text/javascript">
75         //<!--
76         function smilie(thesmilie) {
77                 // inserts smilie text
78                 document.form.body.value += thesmilie+" ";
79                 document.form.body.focus();
80         }
81
82         //-->
83         </script>