Server : LiteSpeed System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : alsaif ( 1057) PHP Version : 7.4.33 Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/alsaif/public_html/administrator/components/com_falang/views/translate/tmpl/ |
<?php
/**
* @package Falang for Joomla!
* @author Stéphane Bouey <stephane.bouey@faboba.com> - http://www.faboba.com
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
* @copyright Copyright (C) 2010-2017. Faboba.com All rights reserved.
*/
// No direct access to this file
defined('_JEXEC') or die;
$message = $this->get('message');
$state = $this->get('state');
$message1 = $state->get('message') == null ? $message : $state->get('message');
$message2 = $state->get('extension.message');
?>
<table class="adminform">
<tbody>
<?php if($message1) : ?>
<tr>
<th><?php echo JText::_($message1) ?></th>
</tr>
<?php endif; ?>
<?php if($message2) : ?>
<tr>
<td><?php echo $message2; ?></td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php
$user = JFactory::getUser();
$db = JFactory::getDBO();
$filterOptions = '<table align="right"><tr>';
$filterOptions .= '<td nowrap="nowrap" align="center">' .JText::_('Languages'). ':<br/>' .$this->langlist. '</td>';
$filterOptions .= '<td nowrap="nowrap" align="center">' .JText::_('Content elements'). ':<br/>' .$this->clist. '</td>';
$filterOptions .= '</tr></table>';
if (isset($this->filterlist) && count($this->filterlist)>0){
$filterOptions .= '<table align="right" style="clear:both"><tr>';
foreach ($this->filterlist as $fl){
if (is_array($fl)) $filterOptions .= "<td nowrap='nowrap' align='center'>".$fl["title"].":<br/>".$fl["html"]."</td>";
}
$filterOptions .= '</tr></table>';
}
?>
<form action="index.php" method="post" name="adminForm">
<?php echo $filterOptions; ?>
<table class="adminlist" cellspacing="1">
<thead>
<tr>
<th width="20"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($this->rows); ?>);" /></th>
<th class="title" width="20%" align="left" nowrap="nowrap"><?php echo JText::_('COM_FALANG_TRANSLATE_TITLE_TITLE');?></th>
<th width="10%" align="left" nowrap="nowrap"><?php echo JText::_('COM_FALANG_TRANSLATE_TITLE_LANGUAGE');?></th>
<th width="20%" align="left" nowrap="nowrap"><?php echo JText::_('COM_FALANG_TRANSLATE_TITLE_TRANSLATION');?></th>
<th width="15%" align="left" nowrap="nowrap"><?php echo JText::_('COM_FALANG_TRANSLATE_TITLE_DATECHANGED');?></th>
<th width="15%" nowrap="nowrap" align="center"><?php echo JText::_('COM_FALANG_TRANSLATE_TITLE_STATE');?></th>
<th align="center" nowrap="nowrap"><?php echo JText::_('COM_FALANG_TRANSLATE_TITLE_PUBLISHED');?></th>
</tr>
</thead>
<tfoot>
<tr>
<td align="center" colspan="7">
<?php echo $this->pageNav->getListFooter(); ?>
</td>
</tr>
</tfoot>
<tbody>
<?php
if( !isset($this->catid) || $this->catid == "" || $this->language_id==-1) {
?>
<tr><td colspan="8"><p><?php echo JText::_('COM_FALANG_NOELEMENT_SELECTED');?></p></td></tr>
<?php
}
else {
?>
<?php
$k=0;
$i=0;
foreach ($this->rows as $row ) {
?>
<tr class="<?php echo "row$k"; ?>">
<td width="20">
<?php if ($row->checked_out && $row->checked_out != $user->id) { ?>
<?php } else { ?>
<input type="checkbox" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row->translation_id."|".$row->id."|".$row->language_id; ?>" onclick="isChecked(this.checked);" />
<?php } ?>
</td>
<td>
<a href="#edit" onclick="hideMainMenu(); return listItemTask('cb<?php echo $i;?>','translate.edit');"><?php echo $row->title; ?></a>
</td>
<td nowrap><?php echo $row->language ? $row->language : JText::_('COM_FALANG_NOTRANSLATIONYET') ; ?></td>
<td><?php echo $row->titleTranslation ? $row->titleTranslation : ' '; ?></td>
<td><?php echo $row->lastchanged ? JHTML::_('date', $row->lastchanged, JText::_('DATE_FORMAT_LC2')):"" ;?></td>
<?php
switch( $row->state ) {
case 1:
$img = 'status_g.png';
break;
case 0:
$img = 'status_y.png';
break;
case -1:
default:
$img = 'status_r.png';
break;
}
?>
<td align="center"><img src="components/com_falang/assets/images/<?php echo $img;?>" width="12" height="12" border="0" alt="" /></td>
<?php
if (isset($row->published) && $row->published) {
$img = 'publish_g.png';
} else {
$img = 'publish_x.png';
}
$href='';
if( $row->state>=0 ) {
$href = '<a href="javascript: void(0);" ';
$href .= 'onclick="return listItemTask(\'cb' .$i. '\',\'' .($row->published ? 'translate.unpublish' : 'translate.publish'). '\')">';
$href .= '<img src="images/' .$img. '" width="12" height="12" border="0" alt="" />';
$href .= '</a>';
}
else {
$href = '<img src="images/' .$img. '" width="12" height="12" border="0" alt="" />';
}
?>
<td align="center"><?php echo $href;?></td>
<?php
$k = 1 - $k;
$i++;
}
?>
</tr>
</tbody>
</table>
<br />
<table cellspacing="0" cellpadding="4" border="0" align="center">
<tr align="center">
<td> <img src="components/com_falang/assets/images/status_g.png" width="12" height="12" border=0 alt="<?php echo JText::_('STATE_OK');?>" />
</td>
<td> <?php echo JText::_('COM_FALANG_TRANSLATION_UPTODATE');?> |</td>
<td> <img src="components/com_falang/assets/images/status_y.png" width="12" height="12" border=0 alt="<?php echo JText::_('STATE_CHANGED');?>" />
</td>
<td> <?php echo JText::_('COM_FALANG_TRANSLATION_INCOMPLETE');?> |</td>
<td> <img src="components/com_falang/assets/images/status_r.png" width="12" height="12" border=0 alt="<?php echo JText::_('STATE_NOTEXISTING');?>" />
</td>
<td> <?php echo JText::_('COM_FALANG_TRANSLATION_NOT_EXISTING');?></td>
</tr>
<tr align="center">
<td>
<?php if (FALANG_J30) { ?>
<i class="icon-publish"></i>
<?php } else {
echo JHTML::_('image.administrator', 'admin/tick.png', NULL, NULL, NULL, JText::_('COM_FALANG_TRANSLATION_PUBLISHED'),array('style' => 'width:12px;height:12px'));
} ?>
</td>
<td> <?php echo JText::_('COM_FALANG_TRANSLATION_PUBLISHED');?> |</td>
<td>
<?php if (FALANG_J30) { ?>
<i class="icon-unpublish"></i>
<?php } else {
echo JHTML::_('image.administrator', 'admin/publish_x.png', NULL, NULL, NULL, JText::_('COM_FALANG_TRANSLATION_NOT_PUBLISHED'),array('style' => 'width:12px;height:12px'));
} ?>
</td>
<td> <?php echo JText::_('COM_FALANG_TRANSLATION_NOT_PUBLISHED');?></td>
<td>
<?php if (FALANG_J30) { ?>
<i class="icon-unpublish disabled"></i>
<?php } else {
echo JHTML::_('image.administrator', 'admin/publish_r.png', NULL, NULL, NULL, JText::_('COM_FALANG_STATE_TOGGLE'),array('style' => 'width:12px;height:12px'));
} ?>
</td>
<td> <?php echo JText::_('COM_FALANG_STATE_TOGGLE');?></td>
</tr>
</table>
<?php } ?>
</form>