function edit($row, $lists) { ?> <style type="text/css"> .editbox {border: 1px solid #ccc;padding: 2px;} .short {width: 60px;} .long {width: 450px;} </style> <script language="javascript" type="text/javascript"> <!-- function jc_insertText(id,text) { var ta=document.getElementById(id); if(typeof(ta.caretPos)!="undefined"&&ta.createTextRange){ta.focus();var sel=document.selection.createRange();sel.text=sel.text+text;ta.focus();} else if(typeof(ta.selectionStart)!="undefined"){ var ss=ta.value.substr(0, ta.selectionStart); var se=ta.value.substr(ta.selectionEnd),sp=ta.scrollTop; ta.value=ss+text+se; if(ta.setSelectionRange){ta.focus();ta.setSelectionRange(ss.length+text.length,ss.length+text.length);} ta.scrollTop=sp; } else {ta.value+=text;ta.focus(ta.value.length-1);} } function submitbutton(pressbutton) { var form = document.adminForm; if (pressbutton == 'cancel') { submitform( pressbutton ); return; } submitform( pressbutton ); } //--> </script> <form action="<?php echo JCOMMENTS_INDEX; ?> " method="post" name="adminForm"> <?php if (JCOMMENTS_JVERSION == '1.0') { ?> <table class="adminheading"> <tr> <th style="background-image: none; padding: 0;"><img src="./components/com_jcomments/assets/custombbcode48x48.png" width="48" height="48" align="middle"> <?php echo JText::_('EDIT'); ?> </th> </tr> </table> <?php } ?> <table cellpadding="4" cellspacing="1" border="0" width="100%" class="adminform"> <tr valign="top" align="left"> <td> <fieldset> <legend><?php echo JText::_('A_COMMON'); ?> </legend> <table width="100%"> <tr valign="top" align="left"> <td width="10%"><?php echo JText::_('name'); ?> </td> <td><input type="text" class="editbox long" size="35" name="name" onChange="return generate_tag();" value="<?php echo $row->name; ?> "></td> </tr> <tr valign="top" align="left"> <td><?php echo JText::_('A_PUBLISHING'); ?> </td> <td><?php echo JCommentsHTML::yesnoRadioList('published', 'class="inputbox"', $row->published, JText::_('A_YES'), JText::_('A_NO')); ?> </td> <td></td> </tr> </table> </fieldset> </td> </tr> <tr valign="top" align="left"> <td> <fieldset> <legend><?php echo JText::_('Pattern'); ?> </legend> <?php $tabs = new JCommentsTabs(1); $tabs->startPane('com_jcomments_custom_bbcode_pattern'); $tabs->startTab(JText::_('Simple'), "simple_pattern_tab"); ?> <table width="100%"> <tr valign="top" align="left"> <td width="30%"> <textarea class="editbox long" rows="4" id="simple_pattern" name="simple_pattern"><?php echo $row->simple_pattern; ?> </textarea> <br /> <?php echo JText::_('Available tokens'); ?> <abbr onclick="jc_insertText('simple_pattern', '{SIMPLETEXT}');" title="<?php echo JText::_('TOKEN SIMPLETEXT'); ?> ">{SIMPLETEXT}</abbr>, <abbr onclick="jc_insertText('simple_pattern', '{TEXT}');" title="<?php echo JText::_('TOKEN TEXT'); ?> ">{TEXT}</abbr>, <abbr onclick="jc_insertText('simple_pattern', '{IDENTIFIER}');" title="<?php echo JText::_('TOKEN IDENTIFIER'); ?> ">{IDENTIFIER}</abbr> <abbr onclick="jc_insertText('simple_pattern', '{NUMBER}');" title="<?php echo JText::_('TOKEN NUMBER'); ?> ">{NUMBER}</abbr> </td> <td align="left"><?php echo JText::_('Simple pattern description'); ?> <br /> <br /><?php echo JText::_('Example'); ?> [highlight={SIMPLETEXT1}]{SIMPLETEXT2}[/highlight] </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab(JText::_('Advanced (Regular Expression)'), "regexp_pattern_tab"); ?> <table width="100%"> <tr valign="top" align="left"> <td width="30%"> <textarea class="editbox long" rows="4" name="pattern"><?php echo $row->pattern; ?> </textarea> </td> <td align="left"> <?php echo JText::_('PATTERN_DESC'); ?> <br /> <br /><?php echo JText::_('Example'); ?> \[highlight\=([a-zA-Z0-9].?)\](*.?)\[\/highlight\] </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> </fieldset> </td> </tr> <tr valign="top" align="left"> <td> <fieldset> <legend><?php echo JText::_('Replacement'); ?> (<?php echo JText::_('HTML'); ?> )</legend> <?php $tabs2 = new JCommentsTabs(1); $tabs2->startPane('com_jcomments_custom_bbcode_replacement_html'); $tabs2->startTab(JText::_('Simple'), "simple_replacement_html_tab"); ?> <table width="100%"> <tr valign="top" align="left"> <td width="30%"> <textarea class="editbox long" rows="4" id="simple_replacement_html" name="simple_replacement_html"><?php echo $row->simple_replacement_html; ?> </textarea> <br /> <?php echo JText::_('Available tokens'); ?> <abbr onclick="jc_insertText('simple_replacement_html', '{SIMPLETEXT}');" title="<?php echo JText::_('TOKEN SIMPLETEXT'); ?> ">{SIMPLETEXT}</abbr>, <abbr onclick="jc_insertText('simple_replacement_html', '{TEXT}');" title="<?php echo JText::_('TOKEN TEXT'); ?> ">{TEXT}</abbr>, <abbr onclick="jc_insertText('simple_replacement_html', '{IDENTIFIER}');" title="<?php echo JText::_('TOKEN IDENTIFIER'); ?> ">{IDENTIFIER}</abbr> <abbr onclick="jc_insertText('simple_replacement_html', '{NUMBER}');" title="<?php echo JText::_('TOKEN NUMBER'); ?> ">{NUMBER}</abbr> </td> <td align="left"> <?php echo JText::_('Simple html replacement description'); ?> <br /> <br /><?php echo JText::_('Example'); ?> <span style="background-color: {SIMPLETEXT1};">{SIMPLETEXT2}</span> </td> </tr> </table> <?php $tabs2->endTab(); $tabs2->startTab(JText::_('Advanced (Regular Expression)'), "regexp_replacement_html_tab"); ?> <table width="100%"> <tr valign="top" align="left"> <td width="30%"> <textarea class="editbox long" rows="4" name="replacement_html"><?php echo $row->replacement_html; ?> </textarea> </td> <td align="left"> <?php echo JText::_('PATTERN_DESC'); ?> <br /> <br /><?php echo JText::_('Example'); ?> <span style="background-color: ${1};">${2}</span> </td> </tr> </table> <?php $tabs2->endTab(); $tabs2->endPane(); ?> </fieldset> </td> </tr> <tr valign="top" align="left"> <td> <fieldset> <legend><?php echo JText::_('Replacement'); ?> (<?php echo JText::_('Plain text'); ?> )</legend> <?php $tabs2 = new JCommentsTabs(1); $tabs2->startPane('com_jcomments_custom_bbcode_replacement_text'); $tabs2->startTab(JText::_('Simple'), "simple_replacement_text_tab"); ?> <table width="100%"> <tr valign="top" align="left"> <td width="30%"> <textarea class="editbox long" rows="3" id="simple_replacement_text" name="simple_replacement_text"><?php echo $row->simple_replacement_text; ?> </textarea> <br /> <?php echo JText::_('Available tokens'); ?> <abbr onclick="jc_insertText('simple_replacement_text', '{SIMPLETEXT}');" title="<?php echo JText::_('TOKEN SIMPLETEXT'); ?> ">{SIMPLETEXT}</abbr>, <abbr onclick="jc_insertText('simple_replacement_text', '{TEXT}');" title="<?php echo JText::_('TOKEN TEXT'); ?> ">{TEXT}</abbr>, <abbr onclick="jc_insertText('simple_replacement_text', '{IDENTIFIER}');" title="<?php echo JText::_('TOKEN IDENTIFIER'); ?> ">{IDENTIFIER}</abbr> <abbr onclick="jc_insertText('simple_replacement_text', '{NUMBER}');" title="<?php echo JText::_('TOKEN NUMBER'); ?> ">{NUMBER}</abbr> </td> <td align="left"> <?php echo JText::_('Simple text replacement description'); ?> <br /> <br /><?php echo JText::_('Example'); ?> {SIMPLETEXT2} </td> </tr> </table> <?php $tabs2->endTab(); $tabs2->startTab(JText::_('Advanced (Regular Expression)'), "regexp_replacement_text_tab"); ?> <table width="100%"> <tr valign="top" align="left"> <td width="30%"> <textarea class="editbox long" rows="3" name="replacement_text"><?php echo $row->replacement_text; ?> </textarea> </td> <td align="left"> <?php echo JText::_('PATTERN_DESC'); ?> <br /> <br /><?php echo JText::_('Example'); ?> ${2} </td> </tr> </table> <?php $tabs2->endTab(); $tabs2->endPane(); ?> </fieldset> </td> </tr> <tr valign="top" align="left"> <td> <fieldset> <legend><?php echo JText::_('Button'); ?> </legend> <table width="100%"> <tr valign="top" align="left"> <td width="10%"><label for="button_title"><?php echo JText::_('Title'); ?> </label></td> <td><input type="text" class="editbox long" size="35" id="button_title" name="button_title" value="<?php echo $row->button_title; ?> "></td> <td><?php echo JText::_('Title for this button'); ?> </td> </tr> <tr valign="top" align="left"> <td><label for="button_prompt"><?php echo JText::_('Help line'); ?> </label></td> <td><input type="text" class="editbox long" size="35" id="button_prompt" name="button_prompt" value="<?php echo $row->button_prompt; ?> "></td> <td><?php echo JText::_('Help line for this button'); ?> </td> </tr> <tr valign="top" align="left"> <td><label for="button_image"><?php echo JText::_('Icon'); ?> </label></td> <td><input type="text" class="editbox long" size="35" id="button_image" name="button_image" value="<?php echo $row->button_image; ?> "></td> <td><?php echo JText::_('Path to button icon'); ?> </td> </tr> <tr valign="top" align="left"> <td><label for="button_css"><?php echo JText::_('CSS class'); ?> </label></td> <td><input type="text" class="editbox short" size="35" id="button_css" name="button_css" value="<?php echo $row->button_css; ?> "></td> <td><?php echo JText::_('CSS class name for this button'); ?> </td> </tr> <tr valign="top" align="left"> <td><label for="button_open_tag"><?php echo JText::_('Open tag'); ?> </label></td> <td><input type="text" class="editbox short" size="35" id="button_open_tag" name="button_open_tag" value="<?php echo $row->button_open_tag; ?> "></td> <td><?php echo JText::_('The opening tag for this BBCode'); ?> </td> </tr> <tr valign="top" align="left"> <td><label for="button_close_tag"><?php echo JText::_('Close tag'); ?> </label></td> <td><input type="text" class="editbox short" size="35" id="button_close_tag" name="button_close_tag" value="<?php echo $row->button_close_tag; ?> "></td> <td><?php echo JText::_('The closing tag of the BBCode'); ?> </td> </tr> <tr valign="top" align="left"> <td><?php echo JText::_('Enable button'); ?> </td> <td><?php echo JCommentsHTML::yesnoRadioList('button_enabled', 'class="inputbox"', $row->button_enabled, JText::_('A_YES'), JText::_('A_NO')); ?> </td> <td></td> </tr> </table> </fieldset> </td> </tr> <tr valign="top" align="left"> <td> <fieldset> <legend><?php echo JText::_('Permissions'); ?> </legend> <table width="100%"> <tr valign="top" align="left"> <td> <?php foreach ($lists['groups'] as $k => $v) { ?> <input type="checkbox" name="button_acl[]" value="<?php echo $k; ?> " <?php echo $v == '1' ? 'checked' : ''; ?> /> <label for="<?php echo $k; ?> "><?php echo $k; ?> </label> <br /> <?php } ?> </td> </tr> </table> </fieldset> </td> </tr> </table> <input type="hidden" name="option" value="com_jcomments" /> <input type="hidden" name="id" value="<?php echo $row->id; ?> " /> <input type="hidden" name="task" value="" /> </form> <?php }
public static function edit($row, $lists) { $pcreText = JText::_('A_CUSTOM_BBCODE_ADVANCED_PATTERN_PCRE'); $pcreLink = JText::_('A_CUSTOM_BBCODE_ADVANCED_PATTERN_PCRE_LINK'); $patternLink = '<a href="' . $pcreLink . '">' . $pcreText . '</a>'; $patternDescription = JText::sprintf('A_CUSTOM_BBCODE_ADVANCED_PATTERN_DESC', $patternLink); ?> <style type="text/css"> .editbox {border: 1px solid #ccc;padding: 2px;} .short {width: 100px;} .middle {width: 250px;} .long {width: 450px;} .adminform fieldset label {display: inline; clear: none; float: none; font-size: 1em;} .adminform fieldset input {float: none} .adminform fieldset p {margin: 5px 0; } </style> <script language="javascript" type="text/javascript"> <!-- function jc_insertText(id,text) { var ta=document.getElementById(id); if(typeof(ta.caretPos)!="undefined"&&ta.createTextRange){ta.focus();var sel=document.selection.createRange();sel.text=sel.text+text;ta.focus();} else if(typeof(ta.selectionStart)!="undefined"){ var ss=ta.value.substr(0, ta.selectionStart); var se=ta.value.substr(ta.selectionEnd),sp=ta.scrollTop; ta.value=ss+text+se; if(ta.setSelectionRange){ta.focus();ta.setSelectionRange(ss.length+text.length,ss.length+text.length);} ta.scrollTop=sp; } else {ta.value+=text;ta.focus(ta.value.length-1);} } <?php if (JCOMMENTS_JVERSION == '1.7') { ?> Joomla.submitbutton = function(task) { Joomla.submitform(task, document.getElementById('adminForm')); }; <?php } else { ?> function submitbutton(task) { submitform(task); } <?php } ?> //--> </script> <form action="<?php echo JCOMMENTS_INDEX; ?> " method="post" name="adminForm" id="adminForm"> <?php if (JCOMMENTS_JVERSION == '1.0') { ?> <table class="adminheading"> <tr> <th style="background-image: none; padding: 0;"><img src="components/com_jcomments/assets/icon-48-custombbcodes.png" width="48" height="48" align="middle" alt="<?php echo JText::_('A_CUSTOM_BBCODE_EDIT'); ?> "> <?php echo JText::_('A_CUSTOM_BBCODE_EDIT'); ?> </th> </tr> </table> <?php } ?> <table class="adminform" width="100%" cellpadding="4" cellspacing="1" border="0"> <tr valign="top" align="left"> <td> <fieldset> <legend><?php echo JText::_('A_COMMON'); ?> </legend> <table width="100%"> <tr valign="top" align="left"> <td width="10%"><label for="name"><?php echo JText::_('A_CUSTOM_BBCODE_NAME'); ?> </label></td> <td><input type="text" class="editbox middle" size="35" id="name" name="name" onChange="return generate_tag();" value="<?php echo $row->name; ?> "></td> </tr> <tr valign="top" align="left"> <td><?php echo JText::_('A_PUBLISHING'); ?> </td> <td><?php echo JCommentsHTML::yesnoRadioList('published', 'class="inputbox"', $row->published, JText::_('A_YES'), JText::_('A_NO')); ?> </td> <td></td> </tr> </table> </fieldset> </td> </tr> <tr valign="top" align="left"> <td> <fieldset> <legend><?php echo JText::_('A_CUSTOM_BBCODE_PATTERN'); ?> </legend> <?php $tabs = new JCommentsTabs(1); $tabs->startPane('com_jcomments_custom_bbcode_pattern'); $tabs->startTab(JText::_('A_CUSTOM_BBCODE_SIMPLE'), "simple_pattern_tab"); ?> <table width="100%"> <tr valign="top" align="left"> <td width="30%"> <textarea class="editbox long" rows="4" cols="50" id="simple_pattern" name="simple_pattern"><?php echo $row->simple_pattern; ?> </textarea> <p><?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_TOKENS'); ?> </p> <p> <abbr onclick="jc_insertText('simple_pattern', '{SIMPLETEXT}');" title="<?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_TOKEN_SIMPLETEXT'); ?> ">{SIMPLETEXT}</abbr>, <abbr onclick="jc_insertText('simple_pattern', '{TEXT}');" title="<?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_TOKEN_TEXT'); ?> ">{TEXT}</abbr>, <abbr onclick="jc_insertText('simple_pattern', '{IDENTIFIER}');" title="<?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_TOKEN_IDENTIFIER'); ?> ">{IDENTIFIER}</abbr> <abbr onclick="jc_insertText('simple_pattern', '{ALPHA}');" title="<?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_TOKEN_ALPHA'); ?> ">{ALPHA}</abbr> <abbr onclick="jc_insertText('simple_pattern', '{NUMBER}');" title="<?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_TOKEN_NUMBER'); ?> ">{NUMBER}</abbr> </p> </td> <td align="left"> <label for="simple_pattern"><?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_PATTERN_DESC'); ?> </label><br /> <br /><?php echo JText::_('A_CUSTOM_BBCODE_EXAMPLE'); ?> [highlight={SIMPLETEXT1}]{SIMPLETEXT2}[/highlight] </td> </tr> </table> <?php $tabs->endTab(); $tabs->startTab(JText::_('A_CUSTOM_BBCODE_ADVANCED'), "regexp_pattern_tab"); ?> <table width="100%"> <tr valign="top" align="left"> <td width="30%"> <textarea class="editbox long" rows="4" cols="50" id="pattern" name="pattern"><?php echo $row->pattern; ?> </textarea> </td> <td align="left"> <label for="pattern"><?php echo $patternDescription; ?> </label><br /> <br /><?php echo JText::_('A_CUSTOM_BBCODE_EXAMPLE'); ?> \[highlight\=([a-zA-Z0-9].?)\](*.?)\[\/highlight\] </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); ?> </fieldset> </td> </tr> <tr valign="top" align="left"> <td> <fieldset> <legend><?php echo JText::_('A_CUSTOM_BBCODE_REPLACEMENT'); ?> (<?php echo JText::_('A_CUSTOM_BBCODE_HTML'); ?> )</legend> <?php $tabs2 = new JCommentsTabs(1); $tabs2->startPane('com_jcomments_custom_bbcode_replacement_html'); $tabs2->startTab(JText::_('A_CUSTOM_BBCODE_SIMPLE'), "simple_replacement_html_tab"); ?> <table width="100%"> <tr valign="top" align="left"> <td width="30%"> <textarea class="editbox long" rows="4" cols="50" id="simple_replacement_html" name="simple_replacement_html"><?php echo $row->simple_replacement_html; ?> </textarea> <p><?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_TOKENS'); ?> </p> <p> <abbr onclick="jc_insertText('simple_replacement_html', '{SIMPLETEXT}');" title="<?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_TOKEN_SIMPLETEXT'); ?> ">{SIMPLETEXT}</abbr>, <abbr onclick="jc_insertText('simple_replacement_html', '{TEXT}');" title="<?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_TOKEN_TEXT'); ?> ">{TEXT}</abbr>, <abbr onclick="jc_insertText('simple_replacement_html', '{IDENTIFIER}');" title="<?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_TOKEN_IDENTIFIER'); ?> ">{IDENTIFIER}</abbr> <abbr onclick="jc_insertText('simple_replacement_html', '{ALPHA}');" title="<?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_TOKEN_ALPHA'); ?> ">{ALPHA}</abbr> <abbr onclick="jc_insertText('simple_replacement_html', '{NUMBER}');" title="<?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_TOKEN_NUMBER'); ?> ">{NUMBER}</abbr> </p> </td> <td align="left"> <label for="simple_replacement_html"><?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_REPLACEMENT_HTML_DESC'); ?> </label><br /> <br /><?php echo JText::_('A_CUSTOM_BBCODE_EXAMPLE'); ?> <span style="background-color: {SIMPLETEXT1};">{SIMPLETEXT2}</span> </td> </tr> </table> <?php $tabs2->endTab(); $tabs2->startTab(JText::_('A_CUSTOM_BBCODE_ADVANCED'), "regexp_replacement_html_tab"); ?> <table width="100%"> <tr valign="top" align="left"> <td width="30%"> <textarea class="editbox long" rows="4" cols="50" id="replacement_html" name="replacement_html"><?php echo $row->replacement_html; ?> </textarea> </td> <td align="left"> <label for="replacement_html"><?php echo $patternDescription; ?> </label><br /> <br /><?php echo JText::_('A_CUSTOM_BBCODE_EXAMPLE'); ?> <span style="background-color: ${1};">${2}</span> </td> </tr> </table> <?php $tabs2->endTab(); $tabs2->endPane(); ?> </fieldset> </td> </tr> <tr valign="top" align="left"> <td> <fieldset> <legend><?php echo JText::_('A_CUSTOM_BBCODE_REPLACEMENT'); ?> (<?php echo JText::_('A_CUSTOM_BBCODE_PLAIN_TEXT'); ?> )</legend> <?php $tabs2 = new JCommentsTabs(1); $tabs2->startPane('com_jcomments_custom_bbcode_replacement_text'); $tabs2->startTab(JText::_('A_CUSTOM_BBCODE_SIMPLE'), "simple_replacement_text_tab"); ?> <table width="100%"> <tr valign="top" align="left"> <td width="30%"> <textarea class="editbox long" rows="3" cols="50" id="simple_replacement_text" name="simple_replacement_text"><?php echo $row->simple_replacement_text; ?> </textarea> <p><?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_TOKENS'); ?> </p> <p> <abbr onclick="jc_insertText('simple_replacement_text', '{SIMPLETEXT}');" title="<?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_TOKEN_SIMPLETEXT'); ?> ">{SIMPLETEXT}</abbr>, <abbr onclick="jc_insertText('simple_replacement_text', '{TEXT}');" title="<?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_TOKEN_TEXT'); ?> ">{TEXT}</abbr>, <abbr onclick="jc_insertText('simple_replacement_text', '{IDENTIFIER}');" title="<?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_TOKEN_IDENTIFIER'); ?> ">{IDENTIFIER}</abbr> <abbr onclick="jc_insertText('simple_replacement_text', '{ALPHA}');" title="<?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_TOKEN_ALPHA'); ?> ">{ALPHA}</abbr> <abbr onclick="jc_insertText('simple_replacement_text', '{NUMBER}');" title="<?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_TOKEN_NUMBER'); ?> ">{NUMBER}</abbr> </p> </td> <td align="left"> <label for="simple_replacement_text"><?php echo JText::_('A_CUSTOM_BBCODE_SIMPLE_REPLACEMENT_TEXT_DESC'); ?> </label><br /> <br /><?php echo JText::_('A_CUSTOM_BBCODE_EXAMPLE'); ?> {SIMPLETEXT2} </td> </tr> </table> <?php $tabs2->endTab(); $tabs2->startTab(JText::_('A_CUSTOM_BBCODE_ADVANCED'), "regexp_replacement_text_tab"); ?> <table width="100%"> <tr valign="top" align="left"> <td width="30%"> <textarea class="editbox long" rows="3" cols="50" id="replacement_text" name="replacement_text"><?php echo $row->replacement_text; ?> </textarea> </td> <td align="left"> <label for="replacement_text"><?php echo $patternDescription; ?> </label><br /> <br /><?php echo JText::_('A_CUSTOM_BBCODE_EXAMPLE'); ?> ${2} </td> </tr> </table> <?php $tabs2->endTab(); $tabs2->endPane(); ?> </fieldset> </td> </tr> <tr valign="top" align="left"> <td> <fieldset> <legend><?php echo JText::_('A_CUSTOM_BBCODE_BUTTON'); ?> </legend> <table class="adminform" width="100%"> <tr valign="top" align="left"> <td width="20%"><label for="button_title"><?php echo JText::_('A_CUSTOM_BBCODE_BUTTON_TITLE'); ?> </label></td> <td width="30%"><input type="text" class="editbox middle" size="35" id="button_title" name="button_title" value="<?php echo $row->button_title; ?> "></td> <td><?php echo JText::_('A_CUSTOM_BBCODE_BUTTON_TITLE_DESC'); ?> </td> </tr> <tr valign="top" align="left"> <td><label for="button_prompt"><?php echo JText::_('A_CUSTOM_BBCODE_BUTTON_HELP_LINE'); ?> </label></td> <td><input type="text" class="editbox middle" size="35" id="button_prompt" name="button_prompt" value="<?php echo $row->button_prompt; ?> "></td> <td><?php echo JText::_('A_CUSTOM_BBCODE_BUTTON_HELP_LINE_DESC'); ?> </td> </tr> <tr valign="top" align="left"> <td><label for="button_image"><?php echo JText::_('A_CUSTOM_BBCODE_BUTTON_ICON'); ?> </label></td> <td><input type="text" class="editbox middle" size="35" id="button_image" name="button_image" value="<?php echo $row->button_image; ?> "></td> <td><?php echo JText::_('A_CUSTOM_BBCODE_BUTTON_ICON_DESC'); ?> </td> </tr> <tr valign="top" align="left"> <td><label for="button_css"><?php echo JText::_('A_CUSTOM_BBCODE_BUTTON_CSS_CLASS'); ?> </label></td> <td><input type="text" class="editbox short" size="35" id="button_css" name="button_css" value="<?php echo $row->button_css; ?> "></td> <td><?php echo JText::_('A_CUSTOM_BBCODE_BUTTON_CSS_CLASS_DESC'); ?> </td> </tr> <tr valign="top" align="left"> <td><label for="button_open_tag"><?php echo JText::_('A_CUSTOM_BBCODE_BUTTON_OPEN_TAG'); ?> </label></td> <td><input type="text" class="editbox short" size="35" id="button_open_tag" name="button_open_tag" value="<?php echo $row->button_open_tag; ?> "></td> <td><?php echo JText::_('A_CUSTOM_BBCODE_BUTTON_OPEN_TAG_DESC'); ?> </td> </tr> <tr valign="top" align="left"> <td><label for="button_close_tag"><?php echo JText::_('A_CUSTOM_BBCODE_BUTTON_CLOSE_TAG'); ?> </label></td> <td><input type="text" class="editbox short" size="35" id="button_close_tag" name="button_close_tag" value="<?php echo $row->button_close_tag; ?> "></td> <td><?php echo JText::_('A_CUSTOM_BBCODE_BUTTON_CLOSE_TAG_DESC'); ?> </td> </tr> <tr valign="top" align="left"> <td><?php echo JText::_('A_CUSTOM_BBCODE_BUTTON_ENABLE'); ?> </td> <td><?php echo JCommentsHTML::yesnoRadioList('button_enabled', 'class="inputbox"', $row->button_enabled, JText::_('A_YES'), JText::_('A_NO')); ?> </td> <td></td> </tr> </table> </fieldset> </td> </tr> <tr valign="top" align="left"> <td> <fieldset> <legend><?php echo JText::_('A_CUSTOM_BBCODE_PERMISSIONS'); ?> </legend> <table class="adminform" width="100%"> <tr valign="top" align="left"> <td> <?php foreach ($lists['groups'] as $group) { $inputId = 'button_' . $row->id . '_acl_' . $group->id; $inputValue = $group->id; $prefix = trim(str_repeat('|— ', $group->level) . ' '); $text = ($prefix != '' ? '<span style="color: #ccc;">' . $prefix . '</span> ' : '') . $group->text; ?> <input type="checkbox" id="<?php echo $inputId; ?> " name="button_acl[]" value="<?php echo $inputValue; ?> " <?php echo $group->enabled == '1' ? 'checked="checked"' : ''; ?> /> <label for="<?php echo $inputId; ?> "><?php echo $text; ?> </label> <br /> <?php } ?> </td> </tr> </table> </fieldset> </td> </tr> </table> <input type="hidden" name="option" value="com_jcomments" /> <input type="hidden" name="id" value="<?php echo $row->id; ?> " /> <input type="hidden" name="task" value="" /> <?php echo JCommentsSecurity::formToken(); ?> </form> <?php }