2009-06-25 16:53:17 +00:00
< ? php
2011-12-24 15:37:20 +00:00
require_once ( " ../inc/translation.inc " );
2009-06-25 16:53:17 +00:00
$bbcode_js = " <script type= \" text/javascript \" src= \" bbcode_toolbar.js \" ></script> " ;
2011-12-24 15:37:20 +00:00
$bbcode_html = '
2010-12-21 17:15:57 +00:00
< table width = " 40% " border = " 0 " cellspacing = " 0 " cellpadding = " 2 " class = " bbcode_buttons " >
2010-11-04 18:20:57 +00:00
< tr align = " center " valign = " middle " >
< td >< span class = " genmed " >
2011-12-24 15:37:20 +00:00
< input type = " button " class = " button " accesskey = " b " name = " addbbcode0 " value = " B " style = " font-weight:bold; width: 30px " onClick = " bbstyle(0) " title = " '.tra( " Bold text : [ b ] text [ / b ] ( alt + b ) " ).' " />
2010-11-04 18:20:57 +00:00
</ span ></ td >
< td >< span class = " genmed " >
2011-12-24 15:37:20 +00:00
< input type = " button " class = " button " accesskey = " i " name = " addbbcode2 " value = " i " style = " font-style:italic; width: 30px " onClick = " bbstyle(2) " title = " '.tra( " Italic text : [ i ] text [ / i ] ( alt + i ) " ).' " />
2010-11-04 18:20:57 +00:00
</ span ></ td >
< td >< span class = " genmed " >
2011-12-24 15:37:20 +00:00
< input type = " button " class = " button " accesskey = " u " name = " addbbcode4 " value = " u " style = " text-decoration: underline; width: 30px " onClick = " bbstyle(4) " title = " '.tra( " Underline text : [ u ] text [ / u ] ( alt + u ) " ).' " />
2010-11-04 18:20:57 +00:00
</ span ></ td >
< td >< span class = " genmed " >
2011-12-24 15:37:20 +00:00
< input type = " button " class = " button " accesskey = " q " name = " addbbcode6 " value = " Quote " style = " width: 50px " onClick = " bbstyle(6) " title = " '.tra( " Quote text : [ quote ] text [ / quote ] ( alt + q ) " ).' " />
2010-11-04 18:20:57 +00:00
</ span ></ td >
< td >< span class = " genmed " >
2011-12-24 15:37:20 +00:00
< input type = " button " class = " button " accesskey = " c " name = " addbbcode8 " value = " Code " style = " width: 40px " onClick = " bbstyle(8) " title = " '.tra( " Code display : [ code ] code [ / code ] ( alt + c ) " ).' " />
2010-11-04 18:20:57 +00:00
</ span ></ td >
< td >< span class = " genmed " >
2011-12-24 15:37:20 +00:00
< input type = " button " class = " button " accesskey = " l " name = " addbbcode10 " value = " List " style = " width: 40px " onClick = " bbstyle(10) " title = " '.tra( " List : [ list ] text [ / list ] ( alt + l ) " ).' " />
2010-11-04 18:20:57 +00:00
</ span ></ td >
< td >< span class = " genmed " >
2011-12-24 15:37:20 +00:00
< input type = " button " class = " button " accesskey = " o " name = " addbbcode12 " value = " List= " style = " width: 40px " onClick = " bbstyle(12) " title = " '.tra( " Ordered list : [ list = ] text [ / list ] ( alt + o ) " ).' " />
2010-11-04 18:20:57 +00:00
</ span ></ td >
< td >< span class = " genmed " >
2011-12-24 15:37:20 +00:00
< input type = " button " class = " button " accesskey = " p " name = " addbbcode14 " value = " Img " style = " width: 40px " onClick = " bbstyle(14) " title = " '.tra( " Insert image : [ img ] http :// image_url [ / img ] ( alt + p ) " ).' " />
2010-11-04 18:20:57 +00:00
</ span ></ td >
< td >< span class = " genmed " >
2011-12-24 15:37:20 +00:00
< input type = " button " class = " button " accesskey = " w " name = " addbbcode16 " value = " URL " style = " text-decoration: underline; width: 40px " onClick = " bbstyle(16) " title = " '.tra( " Insert URL : [ url ] http :// url [ / url ] or [ url = http :// url ] URL text [ / url ] ( alt + w ) " ).' " />
2010-11-04 18:20:57 +00:00
</ span ></ td >
</ tr >
< tr >
< td colspan = " 9 " >
< table width = " 100% " border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
< tr >
2011-12-24 15:37:20 +00:00
< td >< nobr >< span class = " genmed " >& nbsp ; '.tra("Font color").' :
< select name = " addbbcode22 " onChange = " bbfontstyle( \ '[color= \ ' + this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value + \ '] \ ', \ '[/color] \ ');this.selectedIndex=0; " title = " '.tra( " Font color : [ color = red ] text [ / color ] Tip : you can also use color = #FF0000").'" >
< option style = " color:black " value = " #000000 " class = " genmed " > '.tra("Default").' </ option >
< option style = " color:darkred " value = " darkred " class = " genmed " > '.tra("Dark Red").' </ option >
< option style = " color:red " value = " red " class = " genmed " > '.tra("Red").' </ option >
< option style = " color:orange " value = " orange " class = " genmed " > '.tra("Orange").' </ option >
< option style = " color:brown " value = " brown " class = " genmed " > '.tra("Brown").' </ option >
< option style = " color:yellow " value = " yellow " class = " genmed " > '.tra("Yellow").' </ option >
< option style = " color:green " value = " green " class = " genmed " > '.tra("Green").' </ option >
< option style = " color:olive " value = " olive " class = " genmed " > '.tra("Olive").' </ option >
< option style = " color:cyan " value = " cyan " class = " genmed " > '.tra("Cyan").' </ option >
< option style = " color:blue " value = " blue " class = " genmed " > '.tra("Blue").' </ option >
< option style = " color:darkblue " value = " darkblue " class = " genmed " > '.tra("Dark Blue").' </ option >
< option style = " color:indigo " value = " indigo " class = " genmed " > '.tra("Indigo").' </ option >
< option style = " color:violet " value = " violet " class = " genmed " > '.tra("Violet").' </ option >
</ select >& nbsp ; '.tra("Font size").' :
< select name = " addbbcode24 " onChange = " bbfontstyle( \ '[size= \ ' + this.form.addbbcode24.options[this.form.addbbcode24.selectedIndex].value + \ '] \ ', \ '[/size] \ ');this.selectedIndex=0; " title = " '.tra( " Font size : [ size = x - small ] small text [ / size ] " ).' " >
< option value = " 12 " selected class = " genmed " > '.tra("Default").' </ option >
< option value = " 9 " class = " genmed " > '.tra("Small").' </ option >
< option value = " 12 " class = " genmed " > '.tra("Normal").' </ option >
< option value = " 18 " class = " genmed " > '.tra("Large").' </ option >
2010-11-04 18:20:57 +00:00
</ select >
</ span ></ nobr ></ td >
2011-12-24 15:37:20 +00:00
< td nowrap = " nowrap " align = " right " >< span class = " gensmall " >< a href = " javascript:bbstyle(-1) " class = " genmed " title = '.tra("Close all open bbCode tags").' > '.tra("Close Tags").' </ a ></ span ></ td >
2010-11-04 18:20:57 +00:00
</ tr >
</ table >
</ td >
</ tr >
</ table >
2011-12-24 15:37:20 +00:00
' ;