<?php
/****************************************************************************************/
/* ACollab */
/****************************************************************************************/
/* Copyright (c) 2002-2003 Adaptive Technology Resource Centre / University of Toronto */
/* */
/* http://atutor.ca/acollab */
/* */
/* This program is free software. You may redistribute it and/or */
/* modify it under the terms of the GNU General Public License */
/* as published by the Free Software Foundation; either version 2 of the License, */
/* or (at your option) any later version. */
/* */
/* This program is distributed in the hope that it will be useful, but */
/* WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */
/* See the GNU General Public License for more details. */
/* */
/* You may access the GNU General Public License at: */
/* http://www.opensource.org/licenses/gpl-license.php */
/* */
/* You may contact the Adaptive Technology Resource Centre at */
/* Robarts Library, University of Toronto */
/* 130 St. George Street, Toronto, Ontario, Canada M5S 1A5 */
/* Further contact information is available at http://www.utoronto.ca/atrc/ */
/****************************************************************************************/
/* Programmer: */
/* Joel Kronenberg - ATRC */
/****************************************************************************************/
require_once(AC_INCLUDE_PATH.'lib/forum_codes.inc.php');
?>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><small><?php echo _AC('code_picker'); ?></small></td>
</tr>
<tr>
<td align="right"><small><b><?php echo _AC('emoticons'); ?>:</b></small></td>
<td><small><?php
echo '<a href="javascript:smilie(\':)\')" title=":)" onfocus="this.className=\'highlight\'" onblur="this.className=\'\'">'.smile_replace(':)').'</a> ';
echo '<a href="javascript:smilie(\';)\')" title=";)" onfocus="this.className=\'highlight\'" onblur="this.className=\'\'">'.smile_replace(';)').'</a> ';
echo '<a href="javascript:smilie(\':(\')" title=":(" onfocus="this.className=\'highlight\'" onblur="this.className=\'\'">'.smile_replace(':(').'</a> ';
echo '<a href="javascript:smilie(\':D\')" title=":D" onfocus="this.className=\'highlight\'" onblur="this.className=\'\'">'.smile_replace(':D').'</a> ';
echo '<a href="javascript:smilie(\':\\\ \')" title=":\\" onfocus="this.className=\'highlight\'" onblur="this.className=\'\'">'.smile_replace(':\\').'</a> ';
echo '<a href="javascript:smilie(\':P\')" title=":P" onfocus="this.className=\'highlight\'" onblur="this.className=\'\'">'.smile_replace(':P').'</a> ';
echo '<a href="javascript:smilie(\'::angry::\')" title="::angry::" onfocus="this.className=\'highlight\'" onblur="this.className=\'\'">'.smile_replace('::angry::').'</a> ';
echo '<a href="javascript:smilie(\'::evil::\')" title="::evil::" onfocus="this.className=\'highlight\'" onblur="this.className=\'\'">'.smile_replace('::evil::').'</a> ';
echo '<a href="javascript:smilie(\'::confused::\')" title="::confused::" onfocus="this.className=\'highlight\'" onblur="this.className=\'\'">'.smile_replace('::confused::').'</a> ';
echo '<a href="javascript:smilie(\'::muah::\')" title="::muah::" onfocus="this.className=\'highlight\'" onblur="this.className=\'\'">'.smile_replace('::muah::').'</a> ';
?></small></td>
</tr>
<tr>
<td align="right"><small><b><?php echo _AC('codes'); ?>:</b></small></td>
<td><small><a href="javascript:smilie('[b] [/b]')" title="[b] [/b]" onfocus="this.className='highlight'" onblur="this.className=''"><?php echo _AC('bold'); ?></a>
<a href="javascript:smilie('[i] [/i]')" title="[i] [/i]" onfocus="this.className='highlight'" onblur="this.className=''"><?php echo _AC('italic'); ?></a>,
<a href="javascript:smilie('[u] [/u]')" title="[u] [/u]" onfocus="this.className='highlight'" onblur="this.className=''"><?php echo _AC('underline'); ?></a>,
<a href="javascript:smilie('[center] [/center]')" title="[center] [/center]" onfocus="this.className='highlight'" onblur="this.className=''"><?php echo _AC('center'); ?></a>,
<a href="javascript:smilie('[quote] [/quote]')" title="[quote] [/quote]" onfocus="this.className='highlight'" onblur="this.className=''"><?php echo _AC('quote'); ?></a>,
<a href="javascript:smilie('http://')" title="http://" onfocus="this.className='highlight'" onblur="this.className=''"><?php echo _AC('link'); ?></a>,
<a href="javascript:smilie('[image|alt text][/image]')" title="[image|alt text][/image]" onfocus="this.className='highlight'" onblur="this.className=''"><?php echo _AC('image'); ?></a></small></td>
</tr>
<tr>
<td align="right"><small><b><?php echo _AC('colours'); ?>:</b></small></td>
<td><table border="0" cellspacing="2" cellpadding="0" summary="">
<tr>
<td bgcolor="blue"><a href="javascript:smilie('[blue] [/blue]')" title="[blue] [/blue]"><img src="images/clr.gif" alt="<?php echo _AC('blue'); ?>" height="15" width="15" border="0" /></a></td>
<td bgcolor="red"><a href="javascript:smilie('[red] [/red]')" title="[red] [/red]"><img src="images/clr.gif" alt="<?php echo _AC('red'); ?>" height="15" width="15" border="0" /></a></td>
<td bgcolor="green"><a href="javascript:smilie('[green] [/green]')" title="[green] [/green]"><img src="images/clr.gif" alt="<?php echo _AC('green'); ?>" height="15" width="15" border="0" /></a></td>
<td bgcolor="orange"><a href="javascript:smilie('[orange] [/orange]')" title="[orange] [/orange]"><img src="images/clr.gif" alt="<?php echo _AC('orange'); ?>" height="15" width="15" border="0" /></a></td>
<td bgcolor="purple"><a href="javascript:smilie('[purple] [/purple]')" title="[purple] [/purple]"><img src="images/clr.gif" alt="<?php echo _AC('purple'); ?>" height="15" width="15" border="0" /></a></td>
<td bgcolor="gray"><a href="javascript:smilie('[gray] [/gray]')" title="[gray] [/gray]"><img src="images/clr.gif" alt="<?php echo _AC('gray'); ?>" height="15" width="15" border="0" /></a></td>
</tr>
</table></td>
</tr>
</table>
<script type="text/javascript">
<!--
function smilie(thesmilie) {
// inserts smilie text
document.form.body.value += thesmilie+"";
document.form.body.focus();
}
//-->
</script>