| Current Path : /home/cbequiperp/www/administrator/components/com_flexicontent/views/flexicontent/tmpl/ |
| Current File : /home/cbequiperp/www/administrator/components/com_flexicontent/views/flexicontent/tmpl/import.php |
<?php
/**
* @version 1.5 stable $Id: import.php 1577 2012-12-02 15:10:44Z ggppdk $
* @package Joomla
* @subpackage FLEXIcontent
* @copyright (C) 2009 Emmanuel Danan - www.vistamedia.fr
* @license GNU/GPL v2
*
* FLEXIcontent is a derivative work of the excellent QuickFAQ component
* @copyright (C) 2008 Christoph Lukes
* see www.schlu.net for more information
*
* FLEXIcontent is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
defined('_JEXEC') or die('Restricted access');
$close_popup_js = FLEXI_J16GE ? "window.parent.SqueezeBox.close();" : "window.parent.document.getElementById('sbox-window').close();";
?>
<script>
window.addEvent('domready', function(){
$('import').addEvent('click', function(e) {
e = new Event(e).stop();
var url = "index.php?option=com_flexicontent&controller=items&task=import&<?php echo JSession::getFormToken();?>=1&<?php echo FLEXI_J16GE ? 'format=raw' : 'tmpl=component';?>";
if (MooTools.version>="1.2.4") {
$('import-log').set('html','<img src="components/com_flexicontent/assets/images/ajax-loader.gif" style="vertical-align: middle;">');
new Request.HTML({
url: url,
method: 'get',
update: $('import-log')
}).send();
} else {
$('import-log').setHTML('<p class="centerimg"><img src="components/com_flexicontent/assets/images/ajax-loader.gif" style="vertical-align: middle;"><\/p>');
var ajax = new Ajax(url, {
method: 'get',
update: $('import-log')
});
ajax.request.delay(300, ajax);
}
});
});
</script>
<div id="import-log">
<div class="alert-modalbox">
<?php echo JText::_( 'FLEXI_IMPORT_WARNING' ); ?>
</div
<table width="100%">
<tr>
<td width="50%" align="right">
<input id="import" type="button" class="fc_button" value="<?php echo JText::_( 'FLEXI_IMPORT_BUTTON' ); ?>" />
</td>
<td width="50%" align="left">
<input type="button" class="fc_button" onclick="<?php echo $close_popup_js;?>" value="<?php echo JText::_( 'FLEXI_CANCEL' ); ?>" />
</td>
</tr>
</table>
</div>