| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/newsite/plugins/system/jagooglemap/assets/elements/ |
Upload File : |
<?php
/**
* ------------------------------------------------------------------------
* JA System Google Map plugin for Joomla 2.5 & J3.4
* ------------------------------------------------------------------------
* Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
* @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
* Author: J.O.O.M Solutions Co., Ltd
* Websites: http://www.joomlart.com - http://www.joomlancers.com
* ------------------------------------------------------------------------
*/
defined('JPATH_PLATFORM') or die;
class JFormFieldOpts extends JFormField
{
/**
* The form field type.
*
* @var string
* @since 11.1
*/
protected $type = 'Opts';
/**
* Flag to tell the field to always be in multiple values mode.
*
* @var boolean
* @since 11.1
*/
protected $forceMultiple = true;
protected function getLabel()
{
return '';
}
/**
* Method to get the field input markup for check boxes.
*
* @return string The field input markup.
*
* @since 11.1
*/
protected function getInput()
{
$k = 0;
$html = '';
// Initialize some field attributes.
$class = $this->element['class'] ? ' class="checkboxes ' . (string) $this->element['class'] . '"' : ' class="checkboxes"';
// Start the checkbox field output.
$html[] = '<fieldset id="' . $this->id . '"' . $class . '>';
$cols = intval($this->element['cols']);
if($cols == 0){
$cols = 1;
}
$width = floor(100/$cols);
$style = ' style="float:left; width:'.$width.'%;"';
if($this->element->children()){
foreach ($this->element->children() as $option)
{
$group = isset($option['group'])?intval($option['group']):0;
$odesc = isset($option['description'])?JText::_($option['description']):'';
$otext = JText::_(trim((string) $option));
$tooltip = addslashes(htmlspecialchars($odesc, ENT_QUOTES, 'UTF-8'));
$titletip = addslashes(htmlspecialchars($otext, ENT_QUOTES, 'UTF-8'));
if($titletip) {
$titletip = $titletip.'::';
}
if($group) {
$html[] = "<div class=\"group_title\" style=\"clear:both; margin:5px 0 0 0; color:#AAA;\"><span class=\"hasTip\" title=\"{$titletip}{$tooltip}\">$otext</span></div>";
} else {
$oval = $option['value'];
$children = $option['children'];
$alt = ($children) ? ' alt="'.$children.'"' : '';
$extra = '';
if (is_array( $this->value ))
{
foreach ($this->value as $val)
{
$val2 = is_object( $val ) ? $val->$key : $val;
if ($oval == $val2)
{
$extra .= ' checked="checked"';
break;
}
}
} else {
$extra .= ( (string)$oval == (string)$this->value ? ' checked="checked"' : '' );
}
$html[] = "<div class=\"group_item\" $style>";
$html[] = "<input type=\"checkbox\" class=\"jacheckbox\" name=\"{$this->name}\" id=\"{$this->id}{$k}\" value=\"$oval\"$extra $alt /> ";
$html[] = "<label id=\"{$this->id}{$k}-label\" class=\"hasTip\" title=\"{$titletip}{$tooltip}\" for=\"{$this->id}{$k}\">$otext</label>";
$html[] = "</div>";
$k++;
}
}
}
return implode("\r\n", $html);
}
}