__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/*
* @package Joomla.Framework
* @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
* @component Phoca Component
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License version 2 or later;
*/
defined('_JEXEC') or die();
use Joomla\CMS\Form\FormField;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper;
if (! class_exists('PhocaGalleryLoader')) {
require_once( JPATH_ADMINISTRATOR.'/components/com_phocagallery/libraries/loader.php');
}
phocagalleryimport('phocagallery.render.renderadmin');
class JFormFieldPhocaSelectFbUser extends FormField
{
protected $type = 'PhocaSelectFbUser';
protected function getInput() {
$db = Factory::getDBO();
//build the list of categories
$query = 'SELECT a.id AS value, '
. ' CASE WHEN CHAR_LENGTH(a.name) THEN a.name ELSE a.appid END as text'
. ' FROM #__phocagallery_fb_users AS a'
. ' WHERE a.published = 1'
. ' ORDER BY a.ordering';
$db->setQuery( $query );
$items = $db->loadObjectList();
// TO DO - check for other views than category edit
/*$view = JFactory::getApplication()->input->get( 'view' );
$catId = -1;
if ($view == 'phocagalleryc') {
$id = $this->form->getValue('id'); // id of current category
if ((int)$id > 0) {
$catId = $id;
}
}*/
$fieldId = $this->element['fieldid'] ? $this->element['fieldid'] : '';
$link = 'index.php?option=com_phocagallery&view=phocagalleryfba&tmpl=component&field=jform_'.$fieldId.'&uid=';
$js = 'document.getElementById(\'pglinktoalbum\').href = \''.$link.'\' + this.value';
array_unshift($items, HTMLHelper::_('select.option', '', '- '.Text::_('COM_PHOCAGALLERY_SELECT_FB_USER').' -', 'value', 'text'));
return HTMLHelper::_('select.genericlist', $items, $this->name, 'class="form-control" onchange="'.$js.'"', 'value', 'text', $this->value, $this->id );
}
}
?>
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| index.html | File | 44 B | 0664 |
|
| phocaaccesslevel.php | File | 2.91 KB | 0664 |
|
| phocacolortext.php | File | 3.28 KB | 0664 |
|
| phocagallerycategory.php | File | 5.44 KB | 0664 |
|
| phocagalleryordering.php | File | 3.31 KB | 0664 |
|
| phocahead.php | File | 1.57 KB | 0664 |
|
| phocainfotext.php | File | 899 B | 0664 |
|
| phocalongtext.php | File | 3.04 KB | 0664 |
|
| phocaselectfbalbum.php | File | 3.65 KB | 0664 |
|
| phocaselectfbuser.php | File | 2.09 KB | 0664 |
|
| phocaselectfilename.php | File | 5.37 KB | 0664 |
|
| phocaselectfolder.php | File | 4.02 KB | 0664 |
|
| phocaselectitem.php | File | 3.89 KB | 0664 |
|
| phocaselectmap.php | File | 4.41 KB | 0664 |
|
| phocaselectytb.php | File | 5.52 KB | 0664 |
|
| phocatags.php | File | 1.1 KB | 0664 |
|
| phocatext.php | File | 2.8 KB | 0664 |
|
| phocatextarea.php | File | 2.91 KB | 0664 |
|
| phocausers.php | File | 2.46 KB | 0664 |
|