primo commit

This commit is contained in:
2024-12-17 17:34:10 +01:00
commit e650f8df99
16435 changed files with 2451012 additions and 0 deletions

View File

@ -0,0 +1,229 @@
<?php
/**
* @version 6.2.6 tabulizer $
* @package tabulizer
* @copyright Copyright © 2011 - All rights reserved.
* @license GNU/GPL
* @author Dimitrios Mourloukos
* @author mail info@alterora.gr
* @website www.tabulizer.com
*
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$jinput = JFactory::getApplication()->input;
$option = $jinput->getCmd('option');
JHTML::_('behavior.tooltip');
JToolBarHelper::title(JText::_('COM_TABULIZER_RULESET_ARCHIVES'));
$archives_return_url = '&archives_return_url='.urlencode($this->return_urls['archives']);
$show_options = TabulizerPermissions::isAllowed('core.admin');
if (empty($this->ruleset_archives)) {
if (TabulizerPermissions::userIsAllowed('ruleset-edit')) JToolBarHelper::addNew('newRulesetArchive', JText::_('COM_TABULIZER_NEW_RULESET_ARCHIVE'));
if (TabulizerPermissions::userIsAllowed('ruleset-import')) JToolBarHelper::custom( 'importRulesetArchive', 'import_archive', 'import_archive', JText::_('COM_TABULIZER_IMPORT_RULESET_ARCHIVE'), false, false );
if (TabulizerPermissions::userIsAllowed('data-source-view')) JToolBarHelper::custom( 'viewDataSourcesStart', 'data_sources', 'data_sources', JText::_('COM_TABULIZER_DATA_SOURCES'), false, false );
JToolBarHelper::custom( 'editUserPreferences', 'user_preferences', 'user_preferences', JText::_('COM_TABULIZER_USER_PREFERENCES'), false, false );
JToolBarHelper::custom( 'viewStatus', 'status', 'status', JText::_('COM_TABULIZER_STATUS'), false, false );
if ($show_options) JToolBarHelper::preferences('com_tabulizer');
JToolBarHelper::help( 'all_topics', true );
} else {
if (TabulizerPermissions::userIsAllowed('ruleset-edit')) JToolBarHelper::addNew('newRulesetArchive', JText::_('COM_TABULIZER_NEW_RULESET_ARCHIVE'));
if (TabulizerPermissions::userIsAllowed('ruleset-import')) JToolBarHelper::custom( 'importRulesetArchive', 'import_archive', 'import_archive', JText::_('COM_TABULIZER_IMPORT_RULESET_ARCHIVE'), false, false );
if (TabulizerPermissions::userIsAllowed('ruleset-export')) JToolBarHelper::custom( 'exportRulesetArchive', 'export_archive', 'export_archive', JText::_('COM_TABULIZER_EXPORT_RULESET_ARCHIVE'), true );
if (TabulizerPermissions::userIsAllowed('ruleset-edit')) JToolBarHelper::deleteList(JText::_('COM_TABULIZER_DELETE_RULESET_ARCHIVE_CONFIRM'), 'deleteRulesetArchive', JText::_('COM_TABULIZER_DELETE_RULESET_ARCHIVE'));
if (TabulizerPermissions::userIsAllowed('data-source-view')) JToolBarHelper::custom( 'viewDataSourcesStart', 'data_sources', 'data_sources', JText::_('COM_TABULIZER_DATA_SOURCES'), false, false );
JToolBarHelper::custom( 'editUserPreferences', 'user_preferences', 'user_preferences', JText::_('COM_TABULIZER_USER_PREFERENCES'), false, false );
JToolBarHelper::custom( 'viewStatus', 'status', 'status', JText::_('COM_TABULIZER_STATUS'), false, false );
if ($show_options) JToolBarHelper::preferences('com_tabulizer');
JToolBarHelper::help( 'all_topics', true );
}
if (empty($this->ruleset_archives)) {
$msg = sprintf(JText::_('COM_TABULIZER_NO_RULESET_ARCHIVES_WERE_FOUND'), JText::_('COM_TABULIZER_NEW_RULESET_ARCHIVE'));
TabulizerUserMessage::printInfo($msg);
?>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<input type="hidden" name="option" value="<?php echo $option; ?>" />
<input type="hidden" name="task" value="viewRulesetArchives" />
<input type="hidden" name="boxchecked" value="0"/>
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<?php
}
else {
$rows = &$this->ruleset_archives;
if (CLIENT_SIDE_PAGINATION) {
?>
<link rel="stylesheet" href="<?php echo TabulizerPath::getURLPath('jquery.dataTables.css','datatables_css');?>" type="text/css" />
<link rel="stylesheet" href="<?php echo TabulizerPath::getURLPath('smoothness.css','datatables_css');?>" type="text/css" />
<script src="<?php echo TabulizerPath::getURLPath('jtquery.min.js','asset_js'); ?>" type="text/javascript"></script>
<script src="<?php echo TabulizerPath::getURLPath('jtquery.dataTables.min.js','datatables_js'); ?>" type="text/javascript"></script>
<script type="text/javascript">
window.addEvent('domready', function() {
$$('.hasTip').each(function(el) {
var title = el.get('title');
if (title) {
var parts = title.split('::', 2);
el.store('tip:title', parts[0]);
el.store('tip:text', parts[1]);
}
});
var JTooltips = new Tips($$('.hasTip'), { maxTitleChars: 50, fixed: false});
});
if (typeof(tabulizer_datatables) == "undefined") tabulizer_datatables = [];
jtQuery.noConflict();
jtQuery(document).ready(function() {
var tabulizer_datatable_id = tabulizer_datatables.length;
tabulizer_datatables[tabulizer_datatable_id] = jtQuery("#tab_admin_list").dataTable({"bPaginate": true,
"bLengthChange": true,
"bFilter": true,
"bSort": true,
"bInfo": false,
"bAutoWidth": false,
"bJQueryUI": true,
"oLanguage": <?php echo LanguageLiterals::dataTableLabels(); ?>,
"aaSorting": [[ 1, "asc" ]],
"aoColumnDefs": [ { "bSortable" : false, "aTargets" : [0,4,5 ] } ],
"sPaginationType": "full_numbers",
"iDisplayLength": 20});
} );
</script>
<?php
} // client side pagination
?>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<table id="tab_admin_list" class="adminlist tabtable-tabulizer_backend_admin">
<thead>
<tr class="tabrow tr_header1">
<th class="tabcol" width="20"><input type="checkbox" name="toggle" value="" onclick="Joomla.checkAll(this)" /></th>
<th class="tabcol"><?php echo JText::_('COM_TABULIZER_RULESET_ARCHIVE_TITLE');?></th>
<th class="tabcol"><?php echo JText::_('COM_TABULIZER_RULESET_ARCHIVE_NAME');?></th>
<th class="tabcol"><?php echo JText::_('COM_TABULIZER_RULESET_ARCHIVE_FILENAME');?></th>
<th class="tabcol"><?php echo JText::_('COM_TABULIZER_RULESET_ARCHIVE_STYLE');?></th>
<th class="tabcol" width="200"><?php echo JText::_('COM_TABULIZER_ACTIONS');?></th>
</tr>
</thead>
<?php
jimport('joomla.filter.output');
$k=0;
$i=0;
foreach ($rows as $archive_name => $row) {
$archive_name = $row['name'];
$archive_title = $row['title'];
$archive_filename = $row['filename'];
$archive_filename_url = urlencode($archive_filename);
$archive_style = $row['style'];
$return_url = $archives_return_url;
$id = $archive_filename_url;
$k=1-$k;
$checked = JHTML::_('grid.id', $i, $id);
$view_link = JFilterOutput::ampReplace ('index.php?option='.$option.'&task=viewrulesetarchive&archive_filename='.$archive_filename_url.'&cid[]='.$id.$return_url);
$preview_link = JFilterOutput::ampReplace ('index.php?option='.$option.'&task=viewrulesetarchivepreview&archive_filename='.$archive_filename_url.'&cid[]='.$id.$return_url);
$edit_link = JFilterOutput::ampReplace ('index.php?option='.$option.'&task=editrulesetarchive&archive_filename='.$archive_filename_url.'&cid[]='.$id.$return_url);
$delete_link = JFilterOutput::ampReplace ('index.php?option='.$option.'&task=deleterulesetarchive&cid[]='.$id.'&'. JSession::getFormToken() .'=1'.$return_url);
$export_link = JFilterOutput::ampReplace ('index.php?option='.$option.'&task=exportrulesetarchivecss&archive_filename='.$archive_filename_url.'&cid[]='.$id.$return_url);
$action_links = '';
$sep = '';
if (TabulizerPermissions::userIsAllowed('ruleset-view')) { $action_links .= $sep.'<a href="'.$view_link.'">'.JText::_('COM_TABULIZER_VIEW').'</a>'; $sep = ' | '; }
if (true) { $action_links .= $sep.'<a href="'.$preview_link.'">'.JText::_('COM_TABULIZER_PREVIEW').'</a>'; $sep = ' | '; }
if (TabulizerPermissions::userIsAllowed('ruleset-edit')) { $action_links .= $sep.'<a href="'.$edit_link.'">'.JText::_('COM_TABULIZER_EDIT').'</a>'; $sep = ' | '; }
if (TabulizerPermissions::userIsAllowed('ruleset-edit')) { $action_links .= $sep.'<a href="'.$delete_link.'" onclick="javascript:return confirm(\''.JText::_('COM_TABULIZER_DELETE_RULESET_ARCHIVE_CONFIRM').'\')">'.JText::_('COM_TABULIZER_DELETE').'</a>'; $sep = ' | '; }
if (empty($action_links)) $action_links = JText::_('COM_TABULIZER_NA');
if (!empty($archive_style)) {
if (TabulizerPermissions::userIsAllowed('ruleset-edit')) {
$edit_css = JFilterOutput::ampReplace('index.php?option=' . $option . '&task=editcssfile&css_filename=' . urlencode($archive_style) . '&archive_filename=' . $archive_filename_url . '&cid[]=' . $id . '&' . JSession::getFormToken() . '=1');
$archive_style = $archive_style . ' <a href="' . $edit_css . '">[' . JText::_('COM_TABULIZER_EDIT') . ']</a>';
}
}
if (!empty($archive_filename)) {
$edit_xml = JFilterOutput::ampReplace ('index.php?option='.$option.'&task=editxmlfile&filename='.urlencode($archive_filename).'&cid[]='.$id.'&'. JSession::getFormToken() .'=1');
//$archive_filename = $archive_filename.' <a href="'.$edit_xml.'">['.JText::_('COM_TABULIZER_EDIT').']</a>';
}
echo '<tr class="tabrow"><td class="tabcol tabcheck">'.$checked.'</td><td class="tabcol tabtitle"><a href="'.$view_link.'">'.$archive_title.'</a></td><td class="tabcol tabname">'.$archive_name.'</td><td class="tabcol tabfile">'.$archive_filename.'</td><td class="tabcol tabstyle">'.$archive_style.'</td><td class="tabcol tabaction">'.$action_links.'</td></tr>' ."\n";
$i++;
}
?>
<?php
// add pagination, if needed
$pagination = $this->pagination;
if ($pagination) {
?>
<tfoot>
<tr>
<td colspan="6"><?php echo $pagination->getListFooter(); ?></td>
</tr>
</tfoot>
<?php
}
?>
</table>
<input type="hidden" name="option" value="<?php echo $option; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0"/>
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<?php
if (!empty($this->ruleset_conflicts)) {
$msg = JText::_('COM_TABULIZER_RULESET_CONFLICTS_FOUND') . "<br>\n";
$msg .='<ol>';
if (!empty($this->ruleset_conflicts['rulesets']['names'])) {
$msg .='<li>';
$msg .= '<strong>'.JText::_('COM_TABULIZER_RULESET_CONFLICTS_IN_NAMES').'</strong>' . "<br/>\n";
$msg .= '<ul>';
foreach ($this->ruleset_conflicts['rulesets']['names'] as $archive_filename => $name_conflicts) {
$archive_filename .= XML_FILE_EXT;
foreach ($name_conflicts as $name_conflict) {
$msg .= '<li>'.sprintf(JText::_('COM_TABULIZER_RULESET_NAME_ALREADY_DEFINED'),$name_conflict['value'],$archive_filename,$name_conflict['already_defined'].XML_FILE_EXT).'</li>';
}
}
$msg .= '</ul>';
$msg .='</li>';
}
if (!empty($this->ruleset_conflicts['rulesets']['titles'])) {
$msg .='<li>';
$msg .= '<strong>'.JText::_('COM_TABULIZER_RULESET_CONFLICTS_IN_TITLES').'</strong>' . "<br>\n";
$msg .= '<ul>';
foreach ($this->ruleset_conflicts['rulesets']['titles'] as $archive_filename => $title_conflicts) {
$archive_filename .= XML_FILE_EXT;
foreach ($title_conflicts as $title_conflict) {
$msg .= '<li>'.sprintf(JText::_('COM_TABULIZER_RULESET_TITLE_ALREADY_DEFINED'),$title_conflict['value'],$archive_filename,$title_conflict['already_defined'].XML_FILE_EXT).'</li>';
}
}
$msg .= '</ul>';
$msg .='</li>';
}
$msg .='</ol>';
echo "<br/><br/>\n";
TabulizerUserMessage::printWarning($msg);
}
} // if (empty($this->ruleset_archives))
?>
<br/>
<?php echo TabulizerUserMessage::printPromo(JText::_('COM_TABULIZER_FIND_MORE_RULESETS_PROMO')); ?>

View File

@ -0,0 +1,127 @@
<?php
/**
* @version 6.2.6 tabulizer $
* @package tabulizer
* @copyright Copyright © 2011 - All rights reserved.
* @license GNU/GPL
* @author Dimitrios Mourloukos
* @author mail info@alterora.gr
* @website www.tabulizer.com
*
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$jinput = JFactory::getApplication()->input;
$option = $jinput->getCmd('option');
$return_url = str_replace('&amp;','&',JRoute::_('index.php?option='.$option.'&task=viewrulesetarchives'));
JHTML::_('behavior.tooltip');
$text = JText::_('COM_TABULIZER_IMPORT' );
JToolBarHelper::title( JText::_('COM_TABULIZER_RULESET_ARCHIVE' ).': <small><small>[ ' . $text.' ]</small></small>','config' );
JToolBarHelper::custom('import', 'import_archive', 'import_archive', JText::_('COM_TABULIZER_IMPORT'), false, false );
JToolBarHelper::cancel( 'cancel', JText::_('COM_TABULIZER_CLOSE') );
JToolBarHelper::help( 'all_topics', true );
$lists = array();
$lists['filename'] = '<input name="zip_filename" id="zip_filename" type="file" />';
$lists['overwrite'] = '<input type="checkbox" name="overwrite_file" id="overwrite_file" value="1" /> ' . JText::_('COM_TABULIZER_RULESET_ARCHIVE_OVERWRITE_VALUE');
if (TabulizerPermissions::canOverwriteSafemode()) $lists['overwrite'] .= '<br/>' . '<input type="checkbox" name="overwrite_safemode" id="overwrite_safemode" value="1" /> ' . JText::_('COM_TABULIZER_RULESET_ARCHIVE_OVERWRITE_SAFEMODE');
?>
<script language="javascript" type="text/javascript">
function isValidFilename(filename) {
regex = /[a-zA-Z0-9\._\-]{2,128}\.zip$/i;
value = filename;
if (!regex.test(value)) {
return false;
}
return true;
}
function validateAndSubmit() {
var form = document.adminForm;
var value, regex, valid = true, error_msg = "";
if (form.zip_filename.value == "") {
error_msg = error_msg + "\n* <?php echo JText::_('COM_TABULIZER_FILE_UPLOAD_ERROR_NO_FILE');?>";
valid = false;
} else if (!isValidFilename(form.zip_filename.value)) {
error_msg = error_msg + "\n* <?php echo JText::_('COM_TABULIZER_INVALID_RULESET_ARCHIVE_FILENAME_IMPORT');?>";
valid = false;
}
if (valid) {
form.submit();
} else {
error_msg = "<?php echo JText::_('COM_TABULIZER_JS_ERRORS_FOUND'); ?>" + error_msg;
alert(error_msg);
}
}
<?php if(version_compare(JVERSION,'1.6.0','ge')) { ?>
Joomla.submitbutton = function(pressbutton) {
if (pressbutton == 'import') {
validateAndSubmit();
} else if (pressbutton == 'cancel') {
window.location = "<?php echo $return_url;?>";
}
}
<?php } else { ?>
function submitbutton(pressbutton) {
if (pressbutton == 'import') {
validateAndSubmit();
} else if (pressbutton == 'cancel') {
window.location = "<?php echo $return_url;?>";
}
}
<?php } ?>
</script>
<form action="index.php" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data">
<div class="col edit_frm_div">
<fieldset class="adminform">
<legend><?php echo JText::_('COM_TABULIZER_RULESET_ARCHIVE_IMPORT_DETAILS' ); ?></legend>
<table class="admintable">
<tr class="row1">
<td class="key">
<?php echo JText::_('COM_TABULIZER_RULESET_ARCHIVE_FILENAME_ZIP' ); ?>:
</td>
<td>
<?php echo $lists['filename']; ?>
</td>
</tr>
<tr class="row0">
<td class="key">
<?php echo JText::_('COM_TABULIZER_RULESET_ARCHIVE_OVERWRITE_LABEL' ); ?>:
</td>
<td>
<?php echo $lists['overwrite']; ?>
</td>
</tr>
</table>
</fieldset>
</div>
<div class="clr"></div>
<input type="hidden" name="option" value="com_tabulizer" />
<input type="hidden" name="task" value="importRulesetArchive" />
<input type="hidden" name="import_file" value="1" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<?php
TabulizerUserMessage::printHelp(JText::_('COM_TABULIZER_FORM_RULESET_ARCHIVE_IMPORT_HELP'));
echo "<br/>\n";
TabulizerUserMessage::printWarning(JText::_('COM_TABULIZER_FORM_RULESET_ARCHIVE_IMPORT_WARNING'));
?>

View File

@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>

View File

@ -0,0 +1,72 @@
<?php
/**
* @version 6.2.6 tabulizer $
* @package tabulizer
* @copyright Copyright © 2011 - All rights reserved.
* @license GNU/GPL
* @author Dimitrios Mourloukos
* @author mail info@alterora.gr
* @website www.tabulizer.com
*
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$jinput = JFactory::getApplication()->input;
$option = $jinput->getCmd('option');
JHTML::_('behavior.tooltip');
JToolBarHelper::title(JText::_('COM_TABULIZER_STATUS'));
JToolBarHelper::cancel('cancel', JText::_('COM_TABULIZER_CLOSE'));
JToolBarHelper::help( 'all_topics', true );
$status = $this->status;
$lists = $status;
if (isset($status['wordpress']['version'])) {
$cms_type = 'wordpress';
} else {
$cms_type = 'joomla';
}
$cms_version = $status[$cms_type]['version'];
?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_TABULIZER_STATUS_TABULIZER' ); ?></legend>
<table class="info_table">
<tr class="row1"><td class="key"><?php echo JText::_('COM_TABULIZER_STATUS_TABULIZER_VERSION');?></td><td ><?php echo $lists['tabulizer']['version'];?></td></tr>
<tr class="row0"><td class="key"><?php echo JText::_('COM_TABULIZER_STATUS_TABULIZER_LATEST_VERSION');?></td>
<td >
<iframe src="http://www.tabulizer.com/index.php?option=com_latestversion&task=getLatestTabulizer&tmpl=component&current_version=<?php echo $lists['tabulizer']['version'];?>&cms_type=<?php echo $cms_type; ?>&cms_version=<?php echo $cms_version; ?>" frameborder="0" height="40px"></iframe>
</td>
</tr>
</table>
</fieldset>
<?php $row_ord = 0; ?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_TABULIZER_STATUS_SYSTEM' ); ?></legend>
<table class="info_table">
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>"><td class="key"><?php echo JText::_('COM_TABULIZER_STATUS_JOOMLA_VERSION');?></td><td ><?php echo $lists['joomla']['version'];?></td></tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>"><td class="key"><?php echo JText::_('COM_TABULIZER_STATUS_PHP_VERSION');?></td><td ><?php echo $lists['php']['version'];?></td></tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>"><td class="key"><?php echo JText::_('COM_TABULIZER_STATUS_MBSTRING_LIB');?></td><td ><?php echo $lists['php']['mbstring'];?></td></tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>"><td class="key"><?php echo JText::_('COM_TABULIZER_STATUS_ZIP_LIB');?></td><td ><?php echo $lists['php']['zip'];?></td></tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>"><td class="key"><?php echo JText::_('COM_TABULIZER_STATUS_XML_LIB');?></td><td ><?php echo $lists['php']['xml'];?></td></tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>"><td class="key"><?php echo JText::_('COM_TABULIZER_STATUS_DIR_PERMISSIONS');?></td><td ><?php echo $lists['php']['file_permissions'];?></td></tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>"><td class="key"><?php echo JText::_('COM_TABULIZER_STATUS_PHP_MEMORY');?></td><td ><?php echo $lists['php']['memory_limit'];?></td></tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>"><td class="key"><?php echo JText::_('COM_TABULIZER_STATUS_PHP_MAX_EXECUTION_TIME');?></td><td ><?php echo $lists['php']['max_execution_time'];?></td></tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>"><td class="key"><?php echo JText::_('COM_TABULIZER_STATUS_PHP_UPLOAD_MAX_SIZE');?></td><td ><?php echo $lists['php']['upload_max_size'];?></td></tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>"><td class="key"><?php echo JText::_('COM_TABULIZER_STATUS_PHP_POST_MAX_SIZE');?></td><td ><?php echo $lists['php']['post_max_size'];?></td></tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>"><td class="key"><?php echo JText::_('COM_TABULIZER_STATUS_PHP_MAGIC_QUOTES');?></td><td ><?php echo $lists['php']['magic_quotes'];?></td></tr>
</table>
</fieldset>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<input type="hidden" name="option" value="<?php echo $option; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0"/>
<?php echo JHTML::_( 'form.token' ); ?>
</form>

View File

@ -0,0 +1,63 @@
<?php
/**
* @version 4.0.11 tabulizer $
* @package tabulizer
* @copyright Copyright © 2011 - All rights reserved.
* @license GNU/GPL
* @author Dimitrios Mourloukos
* @author mail info@alterora.gr
* @website www.tabulizer.com
*
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$jinput = JFactory::getApplication()->input;
$option = $jinput->getCmd('option');
JHTML::_('behavior.tooltip');
JToolBarHelper::title(JText::_('COM_TABULIZER_USER_PERMISSIONS'));
JToolBarHelper::save('saveUserPermissions', JText::_('COM_TABULIZER_USER_PERMISSIONS_SAVE'));
JToolBarHelper::cancel('cancel', JText::_('COM_TABULIZER_USER_PERMISSIONS_CANCEL'));
JToolBarHelper::help( 'all_topics', true );
$lists = $this->lists;
?>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<div class="col edit_frm_div">
<fieldset class="adminform">
<legend><?php echo JText::_('COM_TABULIZER_USER_PERMISSIONS_LEGEND_TITLE' ); ?></legend>
<table class="admintable">
<?php
$i=0;
foreach ($lists as $permission) {
$i=(1-$i);
?>
<tr class="row<?php echo $i;?>">
<td align="right" class="key">
<?php echo $permission['label']; ?>:
</td>
<td>
<?php echo $permission['value']; ?>
</td>
</tr>
<?php
}
?>
</table>
</fieldset>
</div>
<div class="clr"></div>
<input type="hidden" name="option" value="<?php echo $option; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0"/>
<?php echo JHTML::_( 'form.token' ); ?>
</form>

View File

@ -0,0 +1,329 @@
<?php
/**
* @version 6.2.6 tabulizer $
* @package tabulizer
* @copyright Copyright © 2011 - All rights reserved.
* @license GNU/GPL
* @author Dimitrios Mourloukos
* @author mail info@alterora.gr
* @website www.tabulizer.com
*
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$jinput = JFactory::getApplication()->input;
$option = $jinput->getCmd('option');
JHTML::_('behavior.tooltip');
JToolBarHelper::title(JText::_('COM_TABULIZER_USER_PREFERENCES'));
JToolBarHelper::save('saveUserPreferences', JText::_('COM_TABULIZER_USER_PREFERENCES_SAVE'));
JToolBarHelper::cancel('cancel', JText::_('COM_TABULIZER_USER_PREFERENCES_CANCEL'));
JToolBarHelper::help( 'all_topics', true );
$lists = $this->lists;
?>
<script type="text/javascript">
function TabulizerUpdateRulesetArchive(ruleset_archive_selection) {
var archive_to_rulesets = new Array();
<?php echo $this->archive_to_rulesets; ?>
var archive_filename = ruleset_archive_selection.value;
var ruleset_select = document.getElementById("ruleset_name");
var rulesets, ruleset_count = 0;
if (archive_filename) {
rulesets = archive_to_rulesets[archive_filename];
if (rulesets) {
ruleset_count = 0;
ruleset_select.options.length = 0;
for(index in rulesets) {
ruleset_select.options[ruleset_select.options.length] = new Option(rulesets[index], index);
ruleset_count++;
}
if (ruleset_count == 0) {
ruleset_select.options[ruleset_select.options.length] = new Option("<?php echo JText::_('COM_TABULIZER_NONE');?>", 0);
}
}
if (typeof jtQuery != 'undefined') {
jtQuery("#ruleset_name").trigger("liszt:updated");
}
}
}
</script>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<div class="col edit_frm_div">
<?php $row_ord = 0; ?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_TABULIZER_USER_PREFERENCES_TABULIZER_DIALOG' ); ?></legend>
<table class="admintable">
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_COLUMN_SEPARATOR' ); ?>:
</td>
<td>
<?php echo $lists['column_separator']; ?>
</td>
</tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_COLUMN_ENCLOSURE' ); ?>:
</td>
<td>
<?php echo $lists['column_enclosure']; ?>
</td>
</tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_COLUMN_CONSISTENCY' ); ?>:
</td>
<td>
<?php echo $lists['column_consistency']; ?>
</td>
</tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_ARCHIVE_NAME' ); ?>:
</td>
<td>
<?php echo $lists['ruleset_archive']; ?>
</td>
</tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_RULESET_NAME' ); ?>:
</td>
<td>
<?php echo $lists['ruleset_name']; ?>
</td>
</tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_RETABULIZE_REMOVE_LEFTOVERS' ); ?>:
</td>
<td>
<?php echo $lists['retabulize_remove_leftovers']; ?>
</td>
</tr>
</table>
</fieldset>
<?php $row_ord = 0; ?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_TABULIZER_USER_PREFERENCES_EXCEL' ); ?></legend>
<table class="admintable">
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_EXCEL_FONT_COLOR' ); ?>:
</td>
<td>
<?php echo $lists['excel_font_color']; ?>
</td>
</tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_EXCEL_BACKGROUND_COLOR' ); ?>:
</td>
<td>
<?php echo $lists['excel_background_color']; ?>
</td>
</tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_EXCEL_FONT_SIZE' ); ?>:
</td>
<td>
<?php echo $lists['excel_font_size']; ?>
</td>
</tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_EXCEL_FONT_BOLD' ); ?>:
</td>
<td>
<?php echo $lists['excel_font_bold']; ?>
</td>
</tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_EXCEL_FONT_ITALIC' ); ?>:
</td>
<td>
<?php echo $lists['excel_font_italic']; ?>
</td>
</tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_EXCEL_FONT_STRIKETHROUGH' ); ?>:
</td>
<td>
<?php echo $lists['excel_font_strikethrough']; ?>
</td>
</tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_EXCEL_FONT_UNDERLINE' ); ?>:
</td>
<td>
<?php echo $lists['excel_font_underline']; ?>
</td>
</tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_EXCEL_FONT_SUPERSCRIPT' ); ?>:
</td>
<td>
<?php echo $lists['excel_font_superscript']; ?>
</td>
</tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_EXCEL_FONT_SUBSCRIPT' ); ?>:
</td>
<td>
<?php echo $lists['excel_font_subscript']; ?>
</td>
</tr>
</table>
</fieldset>
<?php
$action = 'system-save';
$allow_save = (TabulizerPermissions::isAllowed($action))?1:0;
if ($allow_save) {
?>
<?php $row_ord = 0; ?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_TABULIZER_USER_PREFERENCES_DATASOURCES' ); ?></legend>
<table class="admintable">
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_DATASOURCES_DISPLAY_WARNING' ); ?>:
</td>
<td>
<?php echo $lists['datasources_display_warning']; ?>
</td>
</tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_DATASOURCES_REFRESH_KEYPHRASE' ); ?>:
</td>
<td>
<?php echo $lists['datasources_refresh_keyphrase']; ?>
</td>
</tr>
</table>
</fieldset>
<?php $row_ord = 0; ?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_TABULIZER_USER_PREFERENCES_ARCHIVE_HELP' ); ?></legend>
<table class="admintable">
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_ARCHIVE_HELP_DISPLAY' ); ?>:
</td>
<td>
<?php echo $lists['archive_help_display']; ?>
</td>
</tr>
</table>
</fieldset>
<?php $row_ord = 0; ?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_TABULIZER_USER_PREFERENCES_EMAIL_CLOAKING' ); ?></legend>
<table class="admintable">
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_EMAIL_CLOAKING_AUTO_DISABLE' ); ?>:
</td>
<td>
<?php echo $lists['email_cloaking_auto_disable']; ?>
</td>
</tr>
</table>
</fieldset>
<?php $row_ord = 0; ?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_TABULIZER_USER_PREFERENCES_DATATABLES' ); ?></legend>
<table class="admintable">
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_PAGINATION_LENGTH_MENU' ); ?>:
</td>
<td>
<?php echo $lists['pagination_length_menu']; ?>
</td>
</tr>
</table>
</fieldset>
<?php $row_ord = 0; ?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_TABULIZER_USER_PREFERENCES_SCROLL_LIBRARY' ); ?></legend>
<table class="admintable">
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo sprintf(JText::_('COM_TABULIZER_SCROLL_LIBRARY_ENABLED' ),strtoupper(SCROLL_LIBRARY_NAME)); ?>:
</td>
<td>
<?php echo $lists['scroll_library_enabled']; ?>
</td>
</tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_SCROLL_LIBRARY_OPTIONS' ); ?>:
</td>
<td>
<?php echo $lists['scroll_library_options']; ?>
</td>
</tr>
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_SCROLL_LIBRARY_ADJUST_DATATABLES' ); ?>:
</td>
<td>
<?php echo $lists['scroll_library_adjust_datatables']; ?>
</td>
</tr>
</table>
</fieldset>
<?php $row_ord = 0; ?>
<fieldset class="adminform">
<legend><?php echo JText::_('COM_TABULIZER_USER_PREFERENCES_SAFE_MODE' ); ?></legend>
<table class="admintable">
<tr class="row<?php $row_ord = 1 - $row_ord; echo $row_ord; ?>">
<td align="right" class="key">
<?php echo JText::_('COM_TABULIZER_SAFE_MODE_ENABLED' ); ?>:
</td>
<td>
<?php echo $lists['safe_mode_enabled']; ?>
</td>
</tr>
</table>
</fieldset>
<?php
}
?>
</div>
<div class="clr"></div>
<input type="hidden" name="option" value="<?php echo $option; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0"/>
<?php echo JHTML::_( 'form.token' ); ?>
</form>