Your IP : 216.73.216.224


Current Path : /var/www/html/administrator/components/com_community/views/users/tmpl/
Upload File :
Current File : /var/www/html/administrator/components/com_community/views/users/tmpl/select.php

<?php
/**
* @copyright (C) 2013 iJoomla, Inc. - All rights reserved.
* @license GNU General Public License, version 2 (http://www.gnu.org/licenses/gpl-2.0.html)
* @author iJoomla.com <webmaster@ijoomla.com>
* @url https://www.jomsocial.com/license-agreement
* The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, manuals, cascading style sheets, and included JavaScript *are NOT GPL, and are released under the IJOOMLA Proprietary Use License v1.0
* More info at https://www.jomsocial.com/license-agreement
*/

use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;

// Disallow direct access to this file
defined('_JEXEC') or die('Restricted access');
$jinput = Factory::getApplication()->input;
$task	= $jinput->getString( 'task' , '' );


?>
<script type="text/javascript" language="javascript">
/**
 * This function needs to be here because, Joomla toolbar calls it
 **/
 Joomla.submitbutton = function(action){
 	submitbutton( action );
 }

function submitbutton( action )
{
	switch( action )
	{
	    case 'export':
			var items = new Array();
			joms.jQuery('#adminForm input[name="cid[]"]:checked').each( function(){
				items.push( joms.jQuery(this).val() );
			});
            window.open( 'index.php?option=com_community&view=users&tmpl=component&no_html=1&format=csv&task=export&cid[]=' + items.join('&cid[]=') );
			break;
		default:
	 	   submitform( action );
	 	   break;
	}

}
</script>
<form action="index.php?option=com_community" method="post" name="adminForm" id="adminForm">
<div style="margin-bottom: 10px;">
<table class="adminform" cellpadding="3">
	<tr>
		<td width="95%">
			<?php echo Text::_('COM_COMMUNITY_SEARCH');?>
			<input type="text" onchange="document.adminForm.submit();" class="text_area" value="<?php echo ($this->search) ? $this->escape( $this->search ) : ''; ?>" id="search" name="search"/>
			<button onclick="this.form.submit();"><?php echo Text::_('COM_COMMUNITY_SEARCH');?></button>
		</td>
		<td nowrap="nowrap" align="right">
			<span style="font-weight: bold;"><?php echo Text::_('COM_COMMUNITY_FILTER_USERS_BY'); ?>
			<select name="usertype" onchange="document.adminForm.submit();">
				<option value="all"<?php echo $this->usertype == 'all' ? ' selected="selected"' : '';?>><?php echo Text::_('COM_COMMUNITY_JUMP_ALL');?></option>
				<option value="joomla"<?php echo $this->usertype == 'joomla' ? ' selected="selected"' : '';?>><?php echo Text::_('COM_COMMUNITY_JOOMLA_USERS');?></option>
				<option value="facebook"<?php echo $this->usertype == 'facebook' ? ' selected="selected"' : '';?>><?php echo Text::_('COM_COMMUNITY_FACEBOOK_USERS');?></option>
			</select>
			<select name="profiletype" onchange="document.adminForm.submit();">
				<option value="all"<?php echo $this->profileType == 'all' ? ' selected="selected"' : '';?>><?php echo Text::_('COM_COMMUNITY_USERS_ALL_PROFILE_TYPES');?></option>
				<?php
				if( $this->profileTypes )
				{
					foreach( $this->profileTypes as $profile )
					{
				?>
					<option value="<?php echo $profile->id;?>"<?php echo $this->profileType == $profile->id ? ' selected="selected"' : '';?>><?php echo Text::_($profile->name);?></option>
				<?php
					}
				}
				?>
			</select>
		</td>
	</tr>
</table>

</div>
<table class="adminlist table table-striped" cellspacing="1">
	<thead>
		<tr class="title">
			<th width="1%"><?php echo Text::_('COM_COMMUNITY_NUMBER'); ?></th>

			<th width="25%" style="text-align: left;">
				<?php echo HTMLHelper::_('grid.sort',   Text::_('COM_COMMUNITY_NAME') , 'name', $this->lists['order_Dir'], $this->lists['order'] ); ?>
			</th>

			<th width="5%" style="text-align: left;">
				<?php echo HTMLHelper::_('grid.sort',   Text::_('COM_COMMUNITY_USERNAME'), 'username', $this->lists['order_Dir'], $this->lists['order'] ); ?>
			</th>

			<th width="5%">
				<?php echo HTMLHelper::_('grid.sort',   Text::_('COM_COMMUNITY_EMAIL'), 'email', $this->lists['order_Dir'], $this->lists['order'] ); ?>
			</th>

			<th width="2%" align="center">
				<?php echo HTMLHelper::_('grid.sort',   Text::_('COM_COMMUNITY_ID'), 'id', $this->lists['order_Dir'], $this->lists['order'] ); ?>
			</th>
		</tr>
	</thead>
	<?php $i = 0; ?>
	<?php
		if( $this->users )
		{
			foreach( $this->users as $row )
			{
	?>
	<tr>
		<td align="center">
			<?php echo ( $i + 1 ); ?>
		</td>

		<td>
			<a class="pointer" onclick="if (window.parent) window.parent.jSelectUser_jform_user_id_to('<?php echo $row->id;?>', '<?php echo $row->name;?>');">
				<?php echo $row->name; ?>
			</a>
		</td>

		<td>
			<?php echo $row->username; ?>
		</td>

		<td id="published<?php echo $row->id;?>">
			<?php echo $row->email;?>
		</td>

		<td align="center"><?php echo $row->id;?></td>
	</tr>
	<?php
			}
		}
		else
		{
	?>
	<tr>
		<td colspan="10" align="center"><?php echo Text::_('COM_COMMUNITY_NO_RESULT');?></td>
	</tr>
	<?php
		}
	 ?>
	<tfoot>
	<tr>
		<td colspan="15">
			<?php echo $this->pagination->getListFooter(); ?>
		</td>
	</tr>
	</tfoot>
</table>
<input type="hidden" name="view" value="users" />
<input type="hidden" name="option" value="com_community" />
<input type="hidden" name="tmpl" value="component" />
<input type="hidden" name="task" value="element" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
<input type="hidden" name="filter_order_Dir" value="<?php echo $this->lists['order_Dir']; ?>" />
<?php echo HTMLHelper::_( 'form.token' ); ?>
</form>
<?php

?>