PageRenderTime 131ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/exchange/code/trunk/administrator/components/com_exchange/views/export/tmpl/default.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 156 lines | 127 code | 20 blank | 9 comment | 2 complexity | e6bd86a787315b787af9d88b71387a8b MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: default.php 280 2010-09-18 02:14:15Z eddieajau $
  4. * @package NewLifeInIT
  5. * @subpackage com_exchange
  6. * @copyright Copyright 2005 - 2010 New Life in IT Pty Ltd. All rights reserved.
  7. * @license GNU General Public License version 2 or later.
  8. * @link http://www.theartofjoomla.com
  9. */
  10. // no direct access
  11. defined('_JEXEC') or die;
  12. JHTML::_('behavior.tooltip');
  13. JHTML::script('checkall.js', 'administrator/components/com_exchange/media/js/');
  14. JHTML::stylesheet('export.css', 'administrator/components/com_exchange/media/css/');
  15. ?>
  16. <form action="<?php echo JRoute::_('index.php?option=com_exchange');?>" method="post" name="adminForm">
  17. <fieldset>
  18. <legend><?php echo JText::_('JX Export Options'); ?></legend>
  19. <table width="100%">
  20. <tr>
  21. <td width="250" valign="top">
  22. <fieldset>
  23. <legend><?php echo JText::_('JX Select Table(s)'); ?></legend>
  24. <div class="framed" style="width:250px;height:450px;">
  25. <table class="adminlist" style="width:225px">
  26. <thead>
  27. <tr>
  28. <td colspan="2">
  29. <input type="checkbox" name="toggle" value="" onclick="checkAll(this, 'tables')" />
  30. <strong>
  31. <?php echo JText::_('JX Select All'); ?>
  32. </strong>
  33. </td>
  34. </tr>
  35. </thead>
  36. <tbody>
  37. <?php
  38. $k = 0;
  39. foreach ($this->tables as $table) :
  40. ?>
  41. <tr class="row<?php echo $k;?>">
  42. <td>
  43. <input type="checkbox" name="tables[]" id="table_<?php echo $table;?>" value="<?php echo $table;?>" onclick="isChecked(this);" />
  44. </td>
  45. <td>
  46. <label for="table_<?php echo $table;?>"><?php echo $table;?></label>
  47. </td>
  48. </tr>
  49. <?php
  50. $k = 1 - $k;
  51. endforeach;
  52. ?>
  53. </tbody>
  54. </table>
  55. </div>
  56. </fieldset>
  57. </td>
  58. <td valign="top">
  59. <fieldset class="options">
  60. <legend><?php echo JText::_('JX Export Source'); ?></legend>
  61. <div>
  62. <input id="options_source_s" type="radio" checked="checked" name="options[source]" value="s" />
  63. <label for="options_source_s">
  64. <?php echo JText::_('JX Export Structure Only'); ?>
  65. </label>
  66. <input id="options_source_d" type="radio" name="options[source]" value="d" />
  67. <label for="options_source_d">
  68. <?php echo JText::_('JX Export Data Only'); ?>
  69. </label>
  70. <input id="options_source_sd" type="radio" name="options[source]" value="sd" />
  71. <label for="options_source_sd">
  72. <?php echo JText::_('JX Export Both'); ?>
  73. </label>
  74. </div>
  75. <div>
  76. <label for="options_limit">
  77. <?php echo JText::_('JX Export Limit'); ?>
  78. </label>
  79. <input id="options_limit" type="text" name="options[limit]" value="0" size="6" />
  80. <label for="options_limitstart">
  81. <?php echo JText::_('JX Export Limit Start'); ?>
  82. </label>
  83. <input id="options_limitstart" type="text" name="options[limitstart]" value="0" size="6" title="The record offset" />
  84. </div>
  85. </fieldset>
  86. <fieldset class="options">
  87. <legend><?php echo JText::_('JX Export Format'); ?></legend>
  88. <div>
  89. <?php foreach ($this->adapters as $adapter => $meta) : ?>
  90. <input type="radio" id="options_format_<?php echo $adapter;?>" name="options[format]" value="<?php echo $adapter;?>">
  91. <label for="options_format_<?php echo $adapter;?>">
  92. <?php if ($meta) : ?>
  93. <span class="hasTip" title="<?php echo $meta->name;?>::<?php echo $meta->description; ?>">
  94. <?php echo $meta->name;?></span>
  95. <?php else : ?>
  96. <?php echo $adapter;?>
  97. <?php endif; ?></label>
  98. <? endforeach; ?>
  99. </div>
  100. </fieldset>
  101. <fieldset class="options">
  102. <legend><?php echo JText::_('JX Export Output'); ?></legend>
  103. <div>
  104. <input id="options_output_screen" type="radio" checked="checked" name="options[output]" value="screen" />
  105. <label for="options_output_screen">
  106. <?php echo JText::_('JX Export Screen'); ?>
  107. </label>
  108. <input id="options_output_html" type="radio" checked="checked" name="options[output]" value="html" />
  109. <label for="options_output_html">
  110. <?php echo JText::_('JX Export HTML'); ?>
  111. </label>
  112. <input id="options_output_text" type="radio" name="options[output]" value="text" />
  113. <label for="options_output_text">
  114. <?php echo JText::_('JX Export Text'); ?>
  115. </label>
  116. <input id="options_output_tar" type="radio" name="options[output]" value="tar" />
  117. <label for="options_output_tar">
  118. <?php echo JText::_('JX Export TAR'); ?>
  119. </label>
  120. <input id="options_output_gz" type="radio" name="options[output]" value="gz" />
  121. <label for="options_output_gz">
  122. <?php echo JText::_('JX Export GZIP'); ?>
  123. </label>
  124. </div>
  125. </fieldset>
  126. <fieldset class="options">
  127. <legend><?php echo JText::_('JX Export Comment'); ?></legend>
  128. <textarea name="options[comment]" rows="5" cols="40"></textarea>
  129. </fieldset>
  130. </td>
  131. </tr>
  132. </table>
  133. </fieldset>
  134. <input type="hidden" name="task" value="" />
  135. <input type="hidden" name="boxchecked" value="0" />
  136. </form>