primo commit
This commit is contained in:
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@ -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')); ?>
|
||||
@ -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('&','&',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'));
|
||||
?>
|
||||
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@ -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¤t_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>
|
||||
@ -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>
|
||||
@ -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>
|
||||
@ -0,0 +1,231 @@
|
||||
<?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');
|
||||
|
||||
jimport( 'joomla.application.component.view' );
|
||||
|
||||
class tabulizerViewRulesetarchives extends JViewLegacy
|
||||
{
|
||||
function __construct(){
|
||||
// add tabulizer CSS to override form styling
|
||||
$doc= JFactory::getDocument();
|
||||
$cssfile = TabulizerPath::getURLPath('tabulizer.css', 'admin_css');
|
||||
$doc->addStyleSheet($cssfile);
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
function display($tpl = null){
|
||||
$jinput = JFactory::getApplication()->input;
|
||||
$option = $jinput->getCmd('option');
|
||||
$return_urls = null;
|
||||
|
||||
$model = $this->getModel();
|
||||
$ruleset_archives = $model->getRulesetArchives();
|
||||
$ruleset_conflicts = $model->getRulesetConflicts();
|
||||
$model->getReturnURLs($return_urls);
|
||||
$pagination = $model->getPagination();
|
||||
|
||||
$this->assignRef('ruleset_archives', $ruleset_archives);
|
||||
$this->assignRef('ruleset_conflicts', $ruleset_conflicts);
|
||||
$this->assignRef('return_urls', $return_urls);
|
||||
$this->assignRef('pagination', $pagination);
|
||||
|
||||
parent::display($tpl);
|
||||
}
|
||||
|
||||
function displayUserPreferences($tpl = null) {
|
||||
$model = $this->getModel();
|
||||
$user_preferences = $model->getUserPreferences();
|
||||
$return_urls = null;
|
||||
|
||||
$model->getReturnURLs($return_urls);
|
||||
|
||||
$lists = array();
|
||||
|
||||
// column separator
|
||||
$options = TabulizerUtils::getSeparatorListLabels();
|
||||
$lists['column_separator'] = TabulizerForm::getSelectCtrl('column_separator',$user_preferences['column_separator'],$options);
|
||||
|
||||
// column enclosure
|
||||
$options = array(ENCLOSURE_NONE=>JText::_('COM_TABULIZER_NO_ENCLOSURE'),
|
||||
ENCLOSURE_DOUBLE_QUOTES=>JText::_('COM_TABULIZER_DOUBLE_QUOTES_ENCLOSURE'),
|
||||
ENCLOSURE_SINGLE_QUOTES=>JText::_('COM_TABULIZER_SINGLE_QUOTES_ENCLOSURE'));
|
||||
$lists['column_enclosure'] = TabulizerForm::getSelectCtrl('column_enclosure',$user_preferences['column_enclosure'],$options);
|
||||
|
||||
// column consistency
|
||||
$options = array(1=>JText::_('COM_TABULIZER_COLUMN_CONSISTENCY_STRICT'),
|
||||
0=>JText::_('COM_TABULIZER_COLUMN_CONSISTENCY_LOOSE'));
|
||||
$lists['column_consistency'] = TabulizerForm::getSelectCtrl('column_consistency',$user_preferences['column_consistency'],$options);
|
||||
|
||||
// when retabulize, remove leftovers
|
||||
$options = array(1=>JText::_('COM_TABULIZER_YES'),
|
||||
0=>JText::_('COM_TABULIZER_NO'));
|
||||
$lists['retabulize_remove_leftovers'] = TabulizerForm::getSelectCtrl('retabulize_remove_leftovers',$user_preferences['retabulize_remove_leftovers'],$options);
|
||||
|
||||
// ruleset archives and names
|
||||
TabulizerPath::requireLib('ruleset','admin');
|
||||
$rs = new Ruleset();
|
||||
$ruleset_archive_options = array(0=>JText::_('COM_TABULIZER_NONE'));
|
||||
$ruleset_name_options = array();
|
||||
$archive_to_rulesets = '';
|
||||
|
||||
$ruleset_archives = $rs->loadRulesets(null, 0, 0, $total_count);
|
||||
if ($total_count) {
|
||||
$ruleset_archives = $rs->getRulesets(null, 0, 0, $total_count);
|
||||
foreach ($ruleset_archives as $ruleset_archive) {
|
||||
$ruleset_archive_options[$ruleset_archive['filename']] = $ruleset_archive['title'];
|
||||
if (!empty($ruleset_archive['rulesets'])) {
|
||||
$archive_to_ruleset_entries = array();
|
||||
foreach ($ruleset_archive['rulesets'] as $ruleset_name => $ruleset) {
|
||||
if ($user_preferences['ruleset_archive'] == $ruleset_archive['filename']) {
|
||||
$ruleset_name_options[$ruleset['name']] = $ruleset['title'];
|
||||
}
|
||||
$archive_to_ruleset_entries[] = '"'.$ruleset['name'].'": "'.htmlspecialchars($ruleset['title'],ENT_COMPAT,'UTF-8'). '"';
|
||||
}
|
||||
if (!empty($archive_to_ruleset_entries)) $archive_to_rulesets .= ' archive_to_rulesets["'.$ruleset_archive['filename'].'"] = {'.implode(',',$archive_to_ruleset_entries).'};' . "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (empty($ruleset_name_options)) $ruleset_name_options = array(0=>JText::_('COM_TABULIZER_NONE'));
|
||||
$this->assignRef('archive_to_rulesets', $archive_to_rulesets);
|
||||
|
||||
$lists['ruleset_archive'] = TabulizerForm::getSelectCtrl('ruleset_archive', $user_preferences['ruleset_archive'], $ruleset_archive_options, array('onchange'=>'TabulizerUpdateRulesetArchive(this)', 'class'=>'ds_param_wide'));
|
||||
|
||||
$lists['ruleset_name'] = TabulizerForm::getSelectCtrl('ruleset_name', $user_preferences['ruleset_name'], $ruleset_name_options, array('class'=>'ds_param_wide'));
|
||||
|
||||
// Excel reading
|
||||
$lists['excel_font_color'] = TabulizerForm::getCheckboxCtrl('excel_font_color',1,$user_preferences['excel_font_color']);
|
||||
$lists['excel_background_color'] = TabulizerForm::getCheckboxCtrl('excel_background_color',1,$user_preferences['excel_background_color']);
|
||||
$lists['excel_font_size'] = TabulizerForm::getCheckboxCtrl('excel_font_size',1,$user_preferences['excel_font_size']);
|
||||
$lists['excel_font_bold'] = TabulizerForm::getCheckboxCtrl('excel_font_bold',1,$user_preferences['excel_font_bold']);
|
||||
$lists['excel_font_italic'] = TabulizerForm::getCheckboxCtrl('excel_font_italic',1,$user_preferences['excel_font_italic']);
|
||||
$lists['excel_font_strikethrough'] = TabulizerForm::getCheckboxCtrl('excel_font_strikethrough',1,$user_preferences['excel_font_strikethrough']);
|
||||
$lists['excel_font_underline'] = TabulizerForm::getCheckboxCtrl('excel_font_underline',1,$user_preferences['excel_font_underline']);
|
||||
$lists['excel_font_superscript'] = TabulizerForm::getCheckboxCtrl('excel_font_superscript',1,$user_preferences['excel_font_superscript']);
|
||||
$lists['excel_font_subscript'] = TabulizerForm::getCheckboxCtrl('excel_font_subscript',1,$user_preferences['excel_font_subscript']);
|
||||
|
||||
// Datasources
|
||||
$lists['datasources_display_warning'] = TabulizerForm::getCheckboxCtrl('datasources_display_warning',1,$user_preferences['datasources_display_warning']);
|
||||
$lists['datasources_refresh_keyphrase'] = TabulizerForm::getInputCtrl('datasources_refresh_keyphrase', $user_preferences['datasources_refresh_keyphrase']);
|
||||
if (!empty($user_preferences['datasources_refresh_keyphrase'])) {
|
||||
$refresh_url = JURI::root().'index.php?option=com_tabulizer&task=refreshDataSources&keyphrase='.$user_preferences['datasources_refresh_keyphrase'];
|
||||
$lists['datasources_refresh_keyphrase'] .= '<span class="cache_tip">'.JText::_('COM_TABULIZER_DATASOURCES_REFRESH_URL').': '.$refresh_url.'</span>';
|
||||
}
|
||||
|
||||
// Archive Help
|
||||
$options = array('none'=>JText::_('COM_TABULIZER_ARCHIVE_HELP_DISPLAY_NONE'),'text'=>JText::_('COM_TABULIZER_ARCHIVE_HELP_DISPLAY_TEXT'),'html'=>JText::_('COM_TABULIZER_ARCHIVE_HELP_DISPLAY_HTML'));
|
||||
$lists['archive_help_display'] = TabulizerForm::getSelectCtrl('archive_help_display',$user_preferences['archive_help_display'],$options);
|
||||
|
||||
// Email cloaking auto disable
|
||||
$lists['email_cloaking_auto_disable'] = TabulizerForm::getCheckboxCtrl('email_cloaking_auto_disable',1,$user_preferences['email_cloaking_auto_disable']);
|
||||
|
||||
// Safe mode
|
||||
$lists['safe_mode_enabled'] = TabulizerForm::getCheckboxCtrl('safe_mode_enabled',1,$user_preferences['safe_mode_enabled']);
|
||||
|
||||
// Pagination
|
||||
$lists['pagination_length_menu'] = TabulizerForm::getInputCtrl('pagination_length_menu', $user_preferences['pagination_length_menu']);
|
||||
|
||||
// JQuery libraries support
|
||||
$options = array(0=>JText::_('COM_TABULIZER_NO'), 1=>JText::_('COM_TABULIZER_YES'));
|
||||
$lists['jquery_include'] = TabulizerForm::getSelectCtrl('jquery_include', $user_preferences['jquery_include'], $options);
|
||||
$lists['jqplot_include'] = TabulizerForm::getSelectCtrl('jqplot_include', $user_preferences['jqplot_include'], $options);
|
||||
$lists['datatable_include'] = TabulizerForm::getSelectCtrl('datatable_include', $user_preferences['datatable_include'], $options);
|
||||
$lists['scroll_library_enabled'] = TabulizerForm::getCheckboxCtrl('scroll_library_enabled', '1', $user_preferences['scroll_library_enabled']);
|
||||
$lists['scroll_library_name'] = TabulizerForm::getHiddenCtrl('scroll_library_name', empty($user_preferences['scroll_library_name'])?'nicescroll':$user_preferences['scroll_library_name']);
|
||||
$lists['scroll_library_options'] = TabulizerForm::getInputCtrl('scroll_library_options', $user_preferences['scroll_library_options']);
|
||||
$lists['scroll_library_adjust_datatables'] = TabulizerForm::getCheckboxCtrl('scroll_library_adjust_datatables', '1', $user_preferences['scroll_library_adjust_datatables']);
|
||||
|
||||
$this->assignRef('lists', $lists);
|
||||
$this->assignRef('return_urls', $return_urls);
|
||||
|
||||
parent::display($tpl);
|
||||
}
|
||||
|
||||
function displayUserPermissions($tpl = null) {
|
||||
$model = $this->getModel();
|
||||
$user_permissions = $model->getAccessPermissions();
|
||||
$return_urls = null;
|
||||
|
||||
$model->getReturnURLs($return_urls);
|
||||
|
||||
$lists = array();
|
||||
|
||||
$role_options = array('administrator' => JText::_('COM_TABULIZER_ROLE_ADMINISTRATOR'),
|
||||
'editor' => JText::_('COM_TABULIZER_ROLE_EDITOR'),
|
||||
'author' => JText::_('COM_TABULIZER_ROLE_AUTHOR'),
|
||||
'contributor' => JText::_('COM_TABULIZER_ROLE_CONTRIBUTOR'),
|
||||
'subscriber' => JText::_('COM_TABULIZER_ROLE_SUBSCRIBER'));
|
||||
|
||||
$capabilities = array('ruleset-use' => JText::_('COM_TABULIZER_RULESET_USE_PERMISSION_LABEL'),
|
||||
'ruleset-view' => JText::_('COM_TABULIZER_RULESET_VIEW_PERMISSION_LABEL'),
|
||||
'ruleset-edit' => JText::_('COM_TABULIZER_RULESET_EDIT_PERMISSION_LABEL'),
|
||||
'ruleset-import' => JText::_('COM_TABULIZER_RULESET_IMPORT_PERMISSION_LABEL'),
|
||||
'ruleset-export' => JText::_('COM_TABULIZER_RULESET_EXPORT_PERMISSION_LABEL'),
|
||||
'data-source-view' => JText::_('COM_TABULIZER_DATA_SOURCE_VIEW_PERMISSION_LABEL'),
|
||||
'data-source-edit' => JText::_('COM_TABULIZER_DATA_SOURCE_EDIT_PERMISSION_LABEL'),
|
||||
'data-source-import' => JText::_('COM_TABULIZER_DATA_SOURCE_IMPORT_PERMISSION_LABEL'),
|
||||
'data-source-export' => JText::_('COM_TABULIZER_DATA_SOURCE_EXPORT_PERMISSION_LABEL'),
|
||||
'data-import' => JText::_('COM_TABULIZER_DATA_IMPORT_PERMISSION_LABEL'));
|
||||
|
||||
foreach ($capabilities as $key => $label) {
|
||||
$lists[$key] = array('value'=> TabulizerForm::getSelectCtrlMultiple($key,$user_permissions[$key],$role_options), 'label'=>$label);
|
||||
}
|
||||
|
||||
$this->assignRef('lists', $lists);
|
||||
$this->assignRef('return_urls', $return_urls);
|
||||
|
||||
parent::display($tpl);
|
||||
}
|
||||
|
||||
function displayStatus($tpl = null) {
|
||||
$model = $this->getModel();
|
||||
$status = $model->getStatus();
|
||||
$return_urls = null;
|
||||
|
||||
$model->getReturnURLs($return_urls);
|
||||
|
||||
$this->assignRef('status', $status);
|
||||
$this->assignRef('return_urls', $return_urls);
|
||||
|
||||
parent::display($tpl);
|
||||
}
|
||||
|
||||
function displayExport($tpl = null) {
|
||||
$model = $this->getModel();
|
||||
$css_code = $model->getRulesetArchivesSkeletonCSSCode();
|
||||
$return_urls = null;
|
||||
|
||||
$model->getReturnURLs($return_urls);
|
||||
|
||||
$this->assignRef('css_code', $css_code);
|
||||
$this->assignRef('return_urls', $return_urls);
|
||||
|
||||
parent::display($tpl);
|
||||
}
|
||||
|
||||
function displayImport($tpl = null) {
|
||||
$model = $this->getModel();
|
||||
$return_urls = null;
|
||||
|
||||
$model->getReturnURLs($return_urls);
|
||||
|
||||
$this->assignRef('return_urls', $return_urls);
|
||||
|
||||
parent::display($tpl);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user