PageRenderTime 53ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/administrator/components/com_flexicontent/views/type/tmpl/default.php

http://flexicontent.googlecode.com/
PHP | 155 lines | 126 code | 12 blank | 17 comment | 5 complexity | 18625edeefe0cd115eea9b2a7a5a9101 MD5 | raw file
Possible License(s): MIT, GPL-2.0, Apache-2.0
  1. <?php
  2. /**
  3. * @version 1.5 stable $Id: default.php 1694 2013-07-12 09:42:03Z ggppdk $
  4. * @package Joomla
  5. * @subpackage FLEXIcontent
  6. * @copyright (C) 2009 Emmanuel Danan - www.vistamedia.fr
  7. * @license GNU/GPL v2
  8. *
  9. * FLEXIcontent is a derivative work of the excellent QuickFAQ component
  10. * @copyright (C) 2008 Christoph Lukes
  11. * see www.schlu.net for more information
  12. *
  13. * FLEXIcontent is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. */
  18. defined('_JEXEC') or die('Restricted access');
  19. ?>
  20. <form action="index.php" method="post" name="adminForm" id="adminForm">
  21. <table cellspacing="0" cellpadding="0" border="0" width="100%">
  22. <tr>
  23. <td valign="top">
  24. <table class="admintable">
  25. <tr>
  26. <td class="key">
  27. <label for="name">
  28. <?php echo JText::_( 'FLEXI_TYPE_NAME' ).':'; ?>
  29. </label>
  30. </td>
  31. <td>
  32. <input id="name" name="name" class="required" value="<?php echo $this->row->name; ?>" size="50" maxlength="100" />
  33. </td>
  34. </tr>
  35. <tr>
  36. <td class="key">
  37. <label for="published">
  38. <?php echo JText::_( 'FLEXI_PUBLISHED' ).':'; ?>
  39. </label>
  40. </td>
  41. <td>
  42. <?php
  43. $html = JHTML::_('select.booleanlist', 'published', 'class="inputbox"', $this->row->published );
  44. echo $html;
  45. ?>
  46. </td>
  47. </tr>
  48. <tr>
  49. <td class="key">
  50. <label for="name">
  51. <?php echo JText::_( 'FLEXI_ALIAS' ).':'; ?>
  52. </label>
  53. </td>
  54. <td>
  55. <input id="name" name="alias" value="<?php echo $this->row->alias; ?>" size="50" maxlength="100" />
  56. </td>
  57. </tr>
  58. <?php if (FLEXI_ACCESS || FLEXI_J16GE) : ?>
  59. <tr>
  60. <td class="key">
  61. <label for="access" class="hasTip" title="<?php echo JText::_('FLEXI_PERMIT_SUBMISSION').'::'.JText::_('FLEXI_PERMIT_SUBMISSION_DESC');?>">
  62. <?php echo JText::_( 'FLEXI_PERMIT_SUBMISSION' ); ?>
  63. </label>
  64. </td>
  65. <td>
  66. <?php echo $this->lists['itemscreatable']; ?>
  67. </td>
  68. </tr>
  69. <?php endif; ?>
  70. <?php if (!FLEXI_ACCESS || FLEXI_J16GE) : ?>
  71. <tr>
  72. <td class="key">
  73. <label for="access" class="hasTip" title="<?php echo JText::_('FLEXI_ACCESS_LEVEL').'::'.JText::_('FLEXI_FIELD_ACCESSLEVEL_DESC');?>">
  74. <?php echo JText::_( 'FLEXI_ACCESS_LEVEL' ); ?>
  75. </label>
  76. </td>
  77. <td>
  78. <?php echo $this->lists['access']; ?>
  79. </td>
  80. </tr>
  81. <?php endif; ?>
  82. </table>
  83. <?php
  84. if (FLEXI_ACCESS) :
  85. $this->document->addScriptDeclaration("
  86. window.addEvent('domready', function() {
  87. var slideaccess = new Fx.Slide('tabacces');
  88. var slidenoaccess = new Fx.Slide('notabacces');
  89. slideaccess.hide();
  90. $$('fieldset.flexiaccess legend').addEvent('click', function(ev) {
  91. slideaccess.toggle();
  92. slidenoaccess.toggle();
  93. });
  94. });
  95. ");
  96. ?>
  97. <fieldset class="flexiaccess">
  98. <legend><?php echo JText::_( 'FLEXI_RIGHTS_MANAGEMENT' ); ?></legend>
  99. <table id="tabacces" class="admintable" width="100%">
  100. <tr>
  101. <td>
  102. <div id="access"><?php echo $this->lists['access']; ?></div>
  103. </td>
  104. </tr>
  105. </table>
  106. <div id="notabacces">
  107. <?php echo JText::_( 'FLEXI_RIGHTS_MANAGEMENT_DESC' ); ?>
  108. </div>
  109. </fieldset>
  110. <?php endif; ?>
  111. </td>
  112. <td valign="top" width="600" style="padding: 7px 0 0 5px" align="left" valign="top">
  113. <?php
  114. echo JText::_('FLEXI_ITEM_PARAM_OVERRIDE_ORDER_DETAILS');
  115. $title = JText::_( 'FLEXI_PARAMETERS' );
  116. echo $this->pane->startPane( 'det-pane' );
  117. echo $this->pane->startPanel( $title, "params-page" );
  118. echo $this->form->render('params');
  119. echo $this->pane->endPanel();
  120. echo '<h3 class="themes-title">' . JText::_( 'FLEXI_PARAMETERS_LAYOUT_THEMES' ) . '</h3>';
  121. echo $this->form->render('params', 'themes');
  122. foreach ($this->tmpls as $tmpl) {
  123. $title = JText::_( 'FLEXI_PARAMETERS_THEMES_SPECIFIC' ) . ' : ' . $tmpl->name;
  124. echo $this->pane->startPanel( $title, "params-".$tmpl->name );
  125. echo $tmpl->params->render();
  126. echo $this->pane->endPanel();
  127. }
  128. echo $this->pane->endPane();
  129. ?>
  130. </td>
  131. </tr>
  132. </table>
  133. <?php echo JHTML::_( 'form.token' ); ?>
  134. <input type="hidden" name="option" value="com_flexicontent" />
  135. <input type="hidden" name="id" value="<?php echo $this->row->id; ?>" />
  136. <input type="hidden" name="controller" value="types" />
  137. <input type="hidden" name="view" value="type" />
  138. <input type="hidden" name="task" value="" />
  139. </form>
  140. <?php
  141. //keep session alive while editing
  142. JHTML::_('behavior.keepalive');
  143. ?>