uawdijnntqw1x1x1
IP : 216.73.216.84
Hostname : webm003.cluster107.gra.hosting.ovh.net
Kernel : Linux webm003.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
opticamezl
/
www
/
newok
/
tmp
/
..
/
libraries
/
allediaframework
/
..
/
xef
/
.
/
fields
/
categoriesmultiple.php
/
/
<?php /** * @package Xpert Captions * @version 2.5 * @author ThemeXpert http://www.themexpert.com * @copyright Copyright (C) 2009 - 2011 ThemeXpert * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only * */ // no direct access defined('_JEXEC') or die('Restricted access'); if( file_exists( JPATH_SITE .'/components/com_k2/k2.php') ) { jimport('joomla.form.formfield'); class JFormFieldCategoriesMultiple extends JFormField { var $type = 'categoriesmultiple'; function getInput(){ $params = JComponentHelper::getParams('com_k2'); $db = JFactory::getDBO(); $query = 'SELECT m.* FROM #__k2_categories m WHERE published=1 AND trash = 0 ORDER BY parent, ordering'; $db->setQuery( $query ); $mitems = $db->loadObjectList(); $children = array(); if ($mitems){ foreach ( $mitems as $v ){ $v->title = $v->name; $v->parent_id = $v->parent; $pt = $v->parent; $list = @$children[$pt] ? $children[$pt] : array(); array_push( $list, $v ); $children[$pt] = $list; } } $attr = 'class="inputbox chzn-select"'; $attr .= 'style="width:280px;"'; $attr .= 'multiple="multiple"'; $attr .= 'data-placeholder="Click here to select categories"'; $list = JHTML::_('menu.treerecurse', 0, '', array(), $children, 9999, 0, 0 ); $mitems = array(); foreach ( $list as $item ) { $item->treename = JString::str_ireplace(' ', '- ', $item->treename); $mitems[] = JHTML::_('select.option', $item->id, ' '.$item->treename ); } $fieldName = $this->name.'[]'; $output= JHTML::_('select.genericlist', $mitems, $fieldName, trim($attr), 'value', 'text', $this->value ); return $output; } } }
/home/opticamezl/www/newok/tmp/../libraries/allediaframework/../xef/./fields/categoriesmultiple.php