| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/icd/administrator/components/com_attachments/views/entity/tmpl/ |
Upload File : |
<?php
/**
* Attachments component
*
* @package Attachments
* @subpackage Attachments_Component
*
* @copyright Copyright (C) 2007-2011 Jonathan M. Cameron, All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @link http://joomlacode.org/gf/project/attachments/frs/
* @author Jonathan M. Cameron
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
global $mainframe, $option;
// Add the plugins stylesheet to style the list of attachments
$document =& JFactory::getDocument();
$document->addStyleSheet( $mainframe->getSiteURL() . 'plugins/content/attachments.css',
'text/css', null, array() );
$document->addStyleSheet( JURI::base(true) . '/components/com_attachments/attachments.css',
'text/css', null, array() );
//global $mainframe;
$lang =& JFactory::getLanguage();
if ( $lang->isRTL() ) {
$document->addStyleSheet( $mainframe->getSiteURL() . 'plugins/content/attachments_rtl.css',
'text/css', null, array() );
}
$lists = $this->lists;
?>
<form class="attachmentsBackend" enctype="multipart/form-data"
name="adminForm" id="adminForm"
action="<?php echo $this->post_url ?>" method="post">
<div class="attachments_filter">
<?php echo JText::_( 'FILTER' ); ?>:
<input type="text" name="search" id="search" value="<?php echo $lists['search'];?>"
class="text_area" onchange="document.adminForm.submit();" />
<button onclick="this.form.submit();"><?php echo JText::_( 'GO' ); ?></button>
<button onclick="document.getElementById('search').value='';this.form.submit();"><?php echo JText::_('RESET') ?></button>
</div>
<fieldset class="adminform">
<legend><?php echo JText::sprintf('SELECT_ENTITY_S', JText::_($this->entity_name)) ?></legend>
<table class="adminlist" cellspacing="1">
<thead>
<tr>
<th width="5"><?php echo JText::_( 'Num' ); ?></th>
<th class="title">
<?php echo JHTML::_('grid.sort', 'Title', 'title', @$lists['order_Dir'], @$lists['order'] ); ?>
</th>
<th width="2%" class="title">
<?php echo JHTML::_('grid.sort', 'ID', 'id', @$lists['order_Dir'], @$lists['order'] ); ?>
</th>
</tr>
</thead>
<tbody>
<?php
$k = 0;
for ($i=0, $n=count( $this->items ); $i < $n; $i++) {
$item =& $this->items[$i];
?>
<tr class="<?php echo "row$k" ?>">
<td><?php echo $i ?></td>
<td>
<a style="cursor: pointer;" onclick="window.parent.jSelectArticle('<?php echo $item->id; ?>', '<?php echo str_replace(array("'", "\""), array("\\'", ""),$item->title); ?>', '<?php echo JRequest::getVar('object'); ?>');">
<?php echo htmlspecialchars($item->title, ENT_QUOTES, 'UTF-8'); ?></a>
</td>
<td><?php echo $item->id; ?></td>
</tr>
<?php
$k = 1 - $k;
}
?>
</tbody>
</table>
</fieldset>
<input type="hidden" name="parent_type" value="<?php echo $this->parent_type ?>" />
<input type="hidden" name="parent_entity" value="<?php echo $this->parent_entity ?>" />
<input type="hidden" name="option" value="<?php echo $option;?>" />
<input type="hidden" name="task" value="selectEntity" />
<input type="hidden" name="from" value="<?php echo $this->from; ?>" />
<input type="hidden" name="filter_order" value="<?php echo $lists['order']; ?>" />
<input type="hidden" name="filter_order_Dir" value="<?php echo $lists['order_Dir']; ?>" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<?php
?>