PageRenderTime 41ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/administrator/components/com_admin/views/help/tmpl/default.php

https://github.com/joebushi/joomla
PHP | 74 lines | 61 code | 5 blank | 8 comment | 5 complexity | f6281ec6cc8736e3b3dffad0497fc7dd MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
  1. <?php
  2. /**
  3. * @version $Id$
  4. * @package Joomla.Administrator
  5. * @subpackage com_admin
  6. * @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
  7. * @license GNU General Public License version 2 or later; see LICENSE.txt
  8. */
  9. // no direct access
  10. defined('_JEXEC') or die;
  11. jimport('joomla.language.help');
  12. ?>
  13. <form action="<?php echo JRoute::_('index.php?option=com_admin&amp;view=help'); ?>" method="post" name="adminForm">
  14. <div class="width-40 fltlft">
  15. <fieldset class="adminform">
  16. <legend><?php echo JText::_('Admin_Search'); ?></legend>
  17. <input class="textarea" type="hidden" name="option" value="com_admin" />
  18. <input type="text" name="helpsearch" size="40" value="<?php echo $this->help_search;?>" class="inputbox" />
  19. <input type="submit" value="<?php echo JText::_('Admin_Go'); ?>" class="button" />
  20. <input type="button" value="<?php echo JText::_('Admin_Clear_Results'); ?>" class="button" onclick="f=document.adminForm;f.helpsearch.value='';f.submit()" />
  21. </fieldset>
  22. </div>
  23. <div class="width-50 fltrt helplinks">
  24. <ul class="helpmenu">
  25. <?php if ($this->help_url):?>
  26. <li><?php echo JHtml::_('link', JHelp::createUrl('joomla.glossary'), JText::_('Admin_Glossary'), array('target' => 'helpFrame')) ?></li>
  27. <li><?php echo JHtml::_('link', JHelp::createUrl('joomla.credits'), JText::_('Admin_Credits'), array('target' => 'helpFrame')) ?></li>
  28. <li><?php echo JHtml::_('link', JHelp::createUrl('joomla.support'), JText::_('Admin_Support'), array('target' => 'helpFrame')) ?></li>
  29. <?php else:?>
  30. <li><?php echo JHtml::_('link', JURI::base() .'help/'.$this->lang_tag.'/joomla.glossary.html', JText::_('Admin_Glossary'), array('target' => 'helpFrame')) ?></li>
  31. <li><?php echo JHtml::_('link', JURI::base() .'help/'.$this->lang_tag.'/joomla.credits.html', JText::_('Admin_Credits'), array('target' => 'helpFrame')) ?></li>
  32. <li><?php echo JHtml::_('link', JURI::base() .'help/'.$this->lang_tag.'/joomla.support.html', JText::_('Admin_Support'), array('target' => 'helpFrame')) ?></li>
  33. <?php endif;?>
  34. <li><?php echo JHtml::_('link', 'http://www.gnu.org/licenses/gpl-2.0.html', JText::_('Admin_License'), array('target' => 'helpFrame')) ?></li>
  35. <li><?php echo JHtml::_('link', $this->latest_version_check, JText::_('Admin_Latest_Version_Check'), array('target' => 'helpFrame')) ?></li>
  36. </ul>
  37. </div>
  38. <div class="clr"> </div>
  39. <div id="treecellhelp" class="width-20 fltleft">
  40. <fieldset class="adminform whitebg" title="<?php echo JText::_('Admin_Alphabetical_Index'); ?>">
  41. <legend><?php echo JText::_('Admin_Alphabetical_Index'); ?></legend>
  42. <div class="helpIndex">
  43. <ul class="subext">
  44. <?php foreach ($this->toc as $k=>$v):?>
  45. <li>
  46. <?php if ($this->help_url):?>
  47. <?php echo JHtml::_('link', JHelp::createUrl($k), $v, array('target' => 'helpFrame'));?>
  48. <?php else:?>
  49. <?php echo JHtml::_('link', JURI::base() .'help/'.$this->lang_tag.'/'.$k, $v, array('target' => 'helpFrame'));?>
  50. <?php endif;?>
  51. </li>
  52. <?php endforeach;?>
  53. </ul>
  54. </div>
  55. </fieldset>
  56. </div>
  57. <div id="datacellhelp" class="width-80 fltrt">
  58. <fieldset title="<?php echo JText::_('Admin_View'); ?>">
  59. <legend>
  60. <?php echo JText::_('Admin_View'); ?>
  61. </legend>
  62. <?php if ($this->help_url && $this->page != 'joomla.whatsnew.html'):?>
  63. <iframe name="helpFrame" src="<?php echo $this->full_help_url .preg_replace('#\.xml$|\.html$#', '', $this->page);?>" class="helpFrame" frameborder="0"></iframe>
  64. <?php else:?>
  65. <iframe name="helpFrame" src="<?php echo JURI::base() .'help/' .$this->lang_tag. '/' . $this->page;?>" class="helpFrame" frameborder="0"></iframe>
  66. <?php endif;?>
  67. </fieldset>
  68. </div>
  69. </form>