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_jce/languages/languages.html.php

120 lines
3.1 KiB
PHP
Raw Normal View History

<?php
/**
* @version $Id: admin.languages.html.php 85 2005-09-15 23:12:03Z eddieajau $
* @package Joomla
* @subpackage Languages
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
/**
* @package Joomla
* @subpackage Languages
*/
class JCE_languages {
function showLanguages( $cur_lang, &$rows, &$pageNav, $option ) {
global $my, $database, $mainframe;
$database->setQuery( "SELECT lang FROM #__jce_langs WHERE published= '1'" );
$lang = $database->loadResult();
require_once( $mainframe->getCfg('absolute_path') . "/administrator/components/com_jce/language/".$lang.".php" );
?>
<form action="index2.php" method="post" name="adminForm">
<table class="adminheading">
<tr>
<th class="langmanager">
<?php echo _JCE_LANG_HEADING;?> <small><small>[ Site ]</small></small>
</th>
</tr>
</table>
<table class="adminlist">
<tr>
<th width="20">
#
</th>
<th width="30">&nbsp;
</th>
<th width="25%" class="title">
<?php echo _JCE_LANG_LANG;?>
</th>
<th width="5%">
<?php echo _JCE_PUBLISHED;?>
</th>
<th width="10%">
<?php echo _JCE_VERSION;?>
</th>
<th width="10%">
<?php echo _JCE_DATE;?>
</th>
<th width="20%">
<?php echo _JCE_AUTHOR;?>
</th>
<th width="25%">
<?php echo _JCE_AUTHOR_EMAIL;?>
</th>
</tr>
<?php
$k = 0;
for ($i=0, $n=count( $rows ); $i < $n; $i++) {
$row = &$rows[$i];
?>
<tr class="<?php echo "row$k"; ?>">
<td width="20"><?php echo $pageNav->rowNumber( $i ); ?></td>
<td width="20">
<input type="radio" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row->language; ?>" onClick="isChecked(this.checked);" />
</td>
<td width="25%">
<?php echo $row->name;?></td>
<td width="5%" align="center">
<?php
if ($row->published == 1) { ?>
<img src="images/tick.png" alt="Published"/>
<?php
} else {
?>
&nbsp;
<?php
}
?>
</td>
<td align=center>
<?php echo $row->version; ?>
</td>
<td align=center>
<?php echo $row->creationdate; ?>
</td>
<td align=center>
<?php echo $row->author; ?>
</td>
<td align=center>
<?php echo $row->authorEmail; ?>
</td>
</tr>
<?php
}
?>
</table>
<?php echo $pageNav->getListFooter(); ?>
<input type="hidden" name="option" value="<?php echo $option;?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="hidemainmenu" value="0" />
<input type="hidden" name="boxchecked" value="0" />
</form>
<?php
}
}
?>