/exchange/code/trunk/administrator/components/com_exchange/views/export/tmpl/default.php
PHP | 156 lines | 127 code | 20 blank | 9 comment | 2 complexity | e6bd86a787315b787af9d88b71387a8b MD5 | raw file
- <?php
- /**
- * @version $Id: default.php 280 2010-09-18 02:14:15Z eddieajau $
- * @package NewLifeInIT
- * @subpackage com_exchange
- * @copyright Copyright 2005 - 2010 New Life in IT Pty Ltd. All rights reserved.
- * @license GNU General Public License version 2 or later.
- * @link http://www.theartofjoomla.com
- */
- // no direct access
- defined('_JEXEC') or die;
- JHTML::_('behavior.tooltip');
- JHTML::script('checkall.js', 'administrator/components/com_exchange/media/js/');
- JHTML::stylesheet('export.css', 'administrator/components/com_exchange/media/css/');
- ?>
- <form action="<?php echo JRoute::_('index.php?option=com_exchange');?>" method="post" name="adminForm">
- <fieldset>
- <legend><?php echo JText::_('JX Export Options'); ?></legend>
- <table width="100%">
- <tr>
- <td width="250" valign="top">
- <fieldset>
- <legend><?php echo JText::_('JX Select Table(s)'); ?></legend>
- <div class="framed" style="width:250px;height:450px;">
- <table class="adminlist" style="width:225px">
- <thead>
- <tr>
- <td colspan="2">
- <input type="checkbox" name="toggle" value="" onclick="checkAll(this, 'tables')" />
- <strong>
- <?php echo JText::_('JX Select All'); ?>
- </strong>
- </td>
- </tr>
- </thead>
- <tbody>
- <?php
- $k = 0;
- foreach ($this->tables as $table) :
- ?>
- <tr class="row<?php echo $k;?>">
- <td>
- <input type="checkbox" name="tables[]" id="table_<?php echo $table;?>" value="<?php echo $table;?>" onclick="isChecked(this);" />
- </td>
- <td>
- <label for="table_<?php echo $table;?>"><?php echo $table;?></label>
- </td>
- </tr>
- <?php
- $k = 1 - $k;
- endforeach;
- ?>
- </tbody>
- </table>
- </div>
- </fieldset>
- </td>
- <td valign="top">
- <fieldset class="options">
- <legend><?php echo JText::_('JX Export Source'); ?></legend>
- <div>
- <input id="options_source_s" type="radio" checked="checked" name="options[source]" value="s" />
- <label for="options_source_s">
- <?php echo JText::_('JX Export Structure Only'); ?>
- </label>
- <input id="options_source_d" type="radio" name="options[source]" value="d" />
- <label for="options_source_d">
- <?php echo JText::_('JX Export Data Only'); ?>
- </label>
- <input id="options_source_sd" type="radio" name="options[source]" value="sd" />
- <label for="options_source_sd">
- <?php echo JText::_('JX Export Both'); ?>
- </label>
- </div>
- <div>
- <label for="options_limit">
- <?php echo JText::_('JX Export Limit'); ?>
- </label>
- <input id="options_limit" type="text" name="options[limit]" value="0" size="6" />
- <label for="options_limitstart">
- <?php echo JText::_('JX Export Limit Start'); ?>
- </label>
- <input id="options_limitstart" type="text" name="options[limitstart]" value="0" size="6" title="The record offset" />
- </div>
- </fieldset>
- <fieldset class="options">
- <legend><?php echo JText::_('JX Export Format'); ?></legend>
- <div>
- <?php foreach ($this->adapters as $adapter => $meta) : ?>
- <input type="radio" id="options_format_<?php echo $adapter;?>" name="options[format]" value="<?php echo $adapter;?>">
- <label for="options_format_<?php echo $adapter;?>">
- <?php if ($meta) : ?>
- <span class="hasTip" title="<?php echo $meta->name;?>::<?php echo $meta->description; ?>">
- <?php echo $meta->name;?></span>
- <?php else : ?>
- <?php echo $adapter;?>
- <?php endif; ?></label>
- <? endforeach; ?>
- </div>
- </fieldset>
- <fieldset class="options">
- <legend><?php echo JText::_('JX Export Output'); ?></legend>
- <div>
- <input id="options_output_screen" type="radio" checked="checked" name="options[output]" value="screen" />
- <label for="options_output_screen">
- <?php echo JText::_('JX Export Screen'); ?>
- </label>
- <input id="options_output_html" type="radio" checked="checked" name="options[output]" value="html" />
- <label for="options_output_html">
- <?php echo JText::_('JX Export HTML'); ?>
- </label>
- <input id="options_output_text" type="radio" name="options[output]" value="text" />
- <label for="options_output_text">
- <?php echo JText::_('JX Export Text'); ?>
- </label>
- <input id="options_output_tar" type="radio" name="options[output]" value="tar" />
- <label for="options_output_tar">
- <?php echo JText::_('JX Export TAR'); ?>
- </label>
- <input id="options_output_gz" type="radio" name="options[output]" value="gz" />
- <label for="options_output_gz">
- <?php echo JText::_('JX Export GZIP'); ?>
- </label>
- </div>
- </fieldset>
- <fieldset class="options">
- <legend><?php echo JText::_('JX Export Comment'); ?></legend>
- <textarea name="options[comment]" rows="5" cols="40"></textarea>
- </fieldset>
- </td>
- </tr>
- </table>
- </fieldset>
- <input type="hidden" name="task" value="" />
- <input type="hidden" name="boxchecked" value="0" />
- </form>