This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.
MatritumCantat_Web/www/administrator/components/com_docman/includes/logs.html.php

88 lines
3.3 KiB
PHP
Raw Permalink Normal View History

<?php
/**
* DOCman 1.4.x - Joomla! Document Manager
* @version $Id: logs.html.php 765 2009-01-05 20:55:57Z mathias $
* @package DOCman_1.4
* @copyright (C) 2003-2009 Joomlatools
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link http://www.joomlatools.eu/ Official website
**/
defined('_VALID_MOS') or die('Restricted access');
class HTML_DMLogs {
function showLogs($option, $rows, $search, $pageNav)
{
global $database, $my, $mosConfig_absolute_path, $mosConfig_live_site;
?>
<form action="index2.php" method="post" name="adminForm">
<?php dmHTML::adminHeading( _DML_DOWNLOAD_LOGS, 'logs' )?>
<div class="dm_filters">
<?php echo _DML_FILTER;?>
<input type="text" name="search" value="<?php echo $search;?>" class="inputbox" onChange="document.adminForm.submit();" />
</div>
<table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist">
<thead>
<tr>
<th width="2%" class="title"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows);?>);" /></th>
<th class="title" width="10%" nowrap="nowrap"><div align="center"><?php echo _DML_DATE;?></div></th>
<th class="title" width="20%" nowrap="nowrap"><div align="center"><?php echo _DML_USER;?></div></th>
<th class="title" width="20%" nowrap="nowrap"><div align="center"><?php echo _DML_IP;?></div></th>
<th class="title" width="20%" nowrap="nowrap"><div align="center"><?php echo _DML_DOCUMENT;?></div></th>
<th class="title" width="10%" nowrap="nowrap"><div align="center"><?php echo _DML_BROWSER;?></div></th>
<th class="title" width="10%" nowrap="nowrap"><div align="center"><?php echo _DML_OS;?></div></th>
</tr>
</thead>
<tfoot><tr><td colspan="11"><?php echo $pageNav->getListFooter();?></td></tr></tfoot>
<tbody>
<?php
$k = 0;
for ($i = 0, $n = count($rows);$i < $n;$i++) {
$row = &$rows[$i];
echo "<tr class=\"row$k\">";
echo "<td width=\"20\">";
?>
<input type="checkbox" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row->id;?>" onclick="isChecked(this.checked);" />
</td>
<td align="center">
<?php echo $row->log_datetime;?>
</td>
<td align="center">
<?php echo $row->user;?>
</td>
<td align="center">
<a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php echo $row->log_ip;?>" target="_blank"><?php echo $row->log_ip;?></a>
</td>
<td align="center">
<?php echo $row->dmname;?>
</td>
<td align="center">
<?php echo $row->log_browser;?>
</td>
<td align="center">
<?php echo $row->log_os;?>
</td>
</tr>
<?php
$k = 1 - $k;
}
?>
</tbody>
</table>
<input type="hidden" name="option" value="com_docman" />
<input type="hidden" name="section" value="logs" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<?php echo DOCMAN_token::render();?>
</form>
<?php include_once($mosConfig_absolute_path."/components/com_docman/footer.php");
}
}