Ejemplo n.º 1
0
 function getFilterCheckbox($field, $value, $extraValue, $image, $templateImage = false, $text = null, $color = null)
 {
     $code = '<span class="cfilter" title="' . htmlspecialchars($text, ENT_QUOTES, ENCODING) . '">' . PHP_EOL;
     $code .= AHtml::getCheckbox($value, $field, $extraValue, true);
     if ($image) {
         $code .= '<img src="' . IMAGES . 'icon-16-' . $image . '.png" alt="" onclick="$(\'' . $field . '\').checked=!$(\'' . $field . '\').checked;document.adminForm.submit();" style="cursor: pointer;" />';
     } else {
         $code .= '<label for="' . $field . '" class="text" style="color: ' . $color . '">' . JText::_($text) . '</label>';
     }
     $code .= '</span>' . PHP_EOL;
     return $code;
 }