function update() { JToolBarHelper::Title('Trieda'); JToolBarHelper::save('ziaciForm.edit'); $this->input = JFactory::getApplication()->input->get('cid', array(), 'array'); jimport('joomla.utilities.arrayhelper'); JArrayHelper::toInteger($this->input); // $input = JFactory::getApplication()->input->getInt('ziak_id', 0); $model = $this->getModel(); $form = $model->getForm(); $table = $model->getTable(); $table->load($this->input[0]); $form->setValue('meno', null, $table->meno); $form->setValue('priezvisko', null, $table->priezvisko); $form->setValue('trieda', null, $table->trieda); echo "<form action='index.php?option=com_absolventi' method='post' name='adminForm' id='adminForm'>"; foreach ($form->getFieldset() as $field) { echo "<dt>" . $field->label . "</dt>"; echo "<dd>" . $field->input . "</dd>"; } echo "<input type='hidden' name='task' value='' />"; echo "<input type='hidden' name='trieda_id' value=" . $this->input[0] . "/>"; echo JHtml::_('form.token'); echo "</form>"; }
function upravTriedu($tpl = null) { JToolBarHelper::Title('Trieda - update'); JToolBarHelper::save('triedyForm.edit'); $this->input = JFactory::getApplication()->input->get('cid', array(), 'array'); jimport('joomla.utilities.arrayhelper'); JArrayHelper::toInteger($this->input); $model = $this->getModel(); $table = $model->getTable(); $this->form = $model->getFormUpdate(); $table->load($this->input[0]); // $this->form->setValue('rok_nastupu', null, $table->rok_nastupu); // $this->form->setValue('rok_vystupu', null, $table->rok_vystupu); // $this->form->setValue('trieda', null, $table->trieda); // $this->form->setValue('triedny', null, $table->triedny); $this->form->bind($table); echo "<form action='index.php?option=com_absolventi' method='post' name='adminForm' id='adminForm' enctype='multipart/form-data'>"; foreach ($this->form->getFieldset() as $field) { echo "<dt>" . $field->label . "</dt>"; echo "<dd>" . $field->input . "</dd>"; } echo "<input type='hidden' name='task' value='' />"; echo "<input type='hidden' name='trieda_id' value=" . $this->input[0] . ">"; echo JHtml::_('form.token'); echo "</form>"; }
function display($tpl = null) { JToolBarHelper::Title('Trieda'); JToolBarHelper::addNew('ziaciForm.create'); JToolBarHelper::editList('ziaciForm.update'); JToolBarHelper::deleteList('Ozaj chcete zmazat tychto ziakov?', 'ziaciAdmin.delete'); $this->input = JFactory::getApplication()->input->getInt('trieda_id', 0); $this->items = $this->get('Items'); parent::display($tpl); }
defined('_JEXEC') or die; $document = JFactory::getDocument(); JHTMLOPC::script('toggle_langs.js', 'administrator/components/com_onepage/views/config/tmpl/js/', false); $video = OPCVideoHelp::get('COM_ONEPAGE_TRACKING_GENERAL'); $document->setTitle(JText::_('COM_ONEPAGE_TRACKING_PANEL')); JHTMLOPC::script('toggle_langs.js', 'administrator/components/com_onepage/views/config/tmpl/js/', false); JHTML::_('behavior.tooltip'); ?> <script type="text/javascript"> window.addEvent('domready', function(){ var JTooltips = new Tips($$('.hasTip'), { maxTitleChars: 50, fixed: false}); }); </script> <?php JToolBarHelper::Title(JText::_('COM_ONEPAGE_TRACKING_PANEL') . $video, 'generic.png'); // JToolBarHelper::install(); JToolBarHelper::apply(); jimport('joomla.html.pane'); jimport('joomla.utilities.utility'); jimport('joomla.html.html.bootstrap'); JHtml::_('behavior.keepalive'); $document = JFactory::getDocument(); $selectText = JText::_('COM_ONEPAGE_TAXES_DONOT_DELETE_GIFTS_STATUSES'); $vm2string = "editImage: 'edit image',select_all_text: '" . JText::_('Select All') . "',select_some_options_text: '" . JText::_($selectText) . "'"; if (!class_exists('VmConfig')) { require JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'config.php'; } VmConfig::loadConfig(); if (method_exists('vmJsApi', 'js')) { $app = JFactory::getApplication();
if (!defined('OPCVERSION')) { if (file_exists(JPATH_SITE . DS . 'components' . DS . 'com_onepage' . DS . 'config' . DS . 'version.php')) { include JPATH_SITE . DS . 'components' . DS . 'com_onepage' . DS . 'config' . DS . 'version.php'; } } JHTMLOPC::stylesheet('bootstrap.min.css', 'components/com_onepage/themes/extra/bootstrap/', array()); jimport('joomla.html.html.bootstrap'); JHTMLOPC::stylesheet('order_export.css', 'administrator/components/com_onepage/views/order_export/tmpl/', false); JHTMLOPC::script('toggle_langs.js', 'administrator/components/com_onepage/views/config/tmpl/js/', false); JHtml::_('behavior.keepalive'); //JHtml::_('formbehavior.chosen', 'select'); if (OPCVERSION != '{OPCVERSION}') { $version = ' (' . OPCVERSION . ')'; } defined('_JEXEC') or die('Restricted access'); JToolBarHelper::Title(JText::_('COM_ONEPAGE_CONFIGURATION_TITLE') . $version, 'generic.png'); JToolBarHelper::apply(); $document = JFactory::getDocument(); $selectText = JText::_('COM_ONEPAGE_TAXES_DONOT_DELETE_GIFTS_STATUSES'); $vm2string = "editImage: 'edit image',select_all_text: '" . JText::_('Select All') . "',select_some_options_text: '" . JText::_($selectText) . "'"; if (!class_exists('VmConfig')) { require JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'config.php'; } VmConfig::loadConfig(); if (method_exists('vmJsApi', 'js')) { $app = JFactory::getApplication(); $jq = $app->get('jquery'); if (empty($jq) && !OPCJ3) { vmJsApi::js('jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.6.4', '', TRUE); vmJsApi::js('jquery-ui', '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16', '', TRUE); }
<?php /** * Document Description * * Document Long Description * * PHP4/5 * * Created on Jul 8, 2008 * * @package package_name * @author Your Name <*****@*****.**> * @author Toowoomba Regional Council Information Management Branch * @license GNU/GPL http://www.gnu.org/licenses/gpl.html * @copyright 2008 Toowoomba Regional Council/Developer Name * @version SVN: $Id: admin.gamma.php 20528 2011-02-03 07:52:56Z pasamio $ * @see http://joomlacode.org/gf/project/ JoomlaCode Project: */ JToolBarHelper::Title(JText::_('COM_GAMMA_TITLE')); echo '<p>'. JText::_('COM_GAMMA_TESTING_COMPONENT_BACKEND') .'</p>';
* * @package One Page Checkout for VirtueMart 2 * @subpackage opc * @author stAn * @author RuposTel s.r.o. * @copyright Copyright (C) 2007 - 2012 RuposTel - All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * One Page checkout is free software released under GNU/GPL and uses some code from VirtueMart * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * */ defined('_JEXEC') or die; JToolBarHelper::Title(JText::_('COM_ONEPAGE_ROUTE_CONFIG'), 'generic.png'); JToolBarHelper::apply(); $select = '<select name="route_{n}">'; $app = JFactory::getApplication(); $jq = $app->get('jquery'); $document = JFactory::getDocument(); $base = JURI::base(); $document->addStylesheet($base . 'components/com_onepage/views/pickup/tmpl/pickup.css'); $jbase = str_replace('/administrator', '', $base); $document->addStylesheet($jbase . 'components/com_onepage/assets/js/datetimepicker-master/jquery.datetimepicker.css'); if (empty($jq) && !OPCJ3) { $document->addScript($jbase . 'components/com_onepage/assets/js/datetimepicker-master/jquery.js'); } else { if (OPCJ3) { JHtml::_('jquery.framework'); JHtml::_('jquery.ui');
* * @package One Page Checkout for VirtueMart 2 * @subpackage opc * @author stAn * @author RuposTel s.r.o. * @copyright Copyright (C) 2007 - 2012 RuposTel - All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * One Page checkout is free software released under GNU/GPL and uses some code from VirtueMart * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * */ defined('_JEXEC') or die; JToolBarHelper::Title(JText::_('COM_ONEPAGE_THEME_CONFIG') . $version, 'generic.png'); JToolBarHelper::apply(); JHTML::script('toggle_langs.js', 'administrator/components/com_onepage/views/config/tmpl/js/', false); ?> <form action="<?php echo JURI::base(); ?> index.php?option=com_onepage&controller=themeconfig" method="post" name="adminForm" id="adminForm"> <?php if (!empty($this->form)) { if (!empty($this->form['description'])) { echo '<fieldset class="adminform">'; echo '<legend>' . JText::_('JGLOBAL_DESCRIPTION') . '</legend>'; echo '<p>' . $this->form['description'] . '</p>'; echo '</fieldset>'; }
<?php /** * Document Description * * Document Long Description * * PHP4/5 * * Created on Jul 8, 2008 * * @package package_name * @author Your Name <*****@*****.**> * @author Toowoomba Regional Council Information Management Branch * @license GNU/GPL http://www.gnu.org/licenses/gpl.html * @copyright 2008 Toowoomba Regional Council/Developer Name * @version SVN: $Id: admin.alpha.php 16687 2010-05-03 07:44:11Z pasamio $ * @see http://joomlacode.org/gf/project/ JoomlaCode Project: */ JToolBarHelper::Title(JText::_('COM_ALPHA_TITLE')); echo '<p>'. JText::_('COM_ALPHA_TESTING_COMPONENT_BACKEND') .'</p>';
} require_once JPATH_SITE . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_onepage' . DIRECTORY_SEPARATOR . 'helpers' . DIRECTORY_SEPARATOR . 'javascript.php'; OPCJavascript::loadJquery(); ?> <script type="text/javascript"> window.addEvent('domready', function(){ var JTooltips = new Tips($$('.hasTip'), { maxTitleChars: 50, fixed: false}); }); </script> <?php $default_config = array('vm_lang' => 0, 'vm_menu_en_gb' => 0, 'selected_menu' => 0, 'menu_' => 0, 'tojlanguage' => '*'); $session = JFactory::getSession(); $config = $session->get('opc_utils', $default_config); include JPATH_SITE . DS . "components" . DS . "com_onepage" . DS . "config" . DS . "onepage.cfg.php"; JToolBarHelper::Title(JText::_('COM_ONEPAGE_XML_EXPORT'), 'generic.png'); // JToolBarHelper::install(); JToolBarHelper::apply(); if (!version_compare(JVERSION, '2.5.0', 'ge')) { $j15 = true; } jimport('joomla.html.pane'); jimport('joomla.utilities.utility'); $pane = OPCPane::getInstance('tabs', array('startOffset' => 0, 'active' => 'paneladw'), 'toptabs'); if (!empty($j15)) { echo '<div>' . JText::_('COM_ONEPAGE_ONLY_J25') . '</div>'; } if (!empty($j15)) { echo '<div style="display: none;">'; } ?>
<?php /** * @version $Id: default.php 21837 2011-07-12 18:12:35Z dextercowley $ * @package Joomla.Administrator * @subpackage com_banners * @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // no direct access defined('_JEXEC') or die; $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_ONEPAGE_OPC_THEME_EDITOR')); JToolBarHelper::Title(JText::_('COM_ONEPAGE_OPC_THEME_EDITOR'), 'generic.png'); JHTMLOPC::script('translation_helper.js', 'administrator/components/com_onepage/assets/'); JHTMLOPC::script('colorPicker.js', 'administrator/components/com_onepage/assets/colorPicker/'); JHTMLOPC::stylesheet('edittheme.css', 'administrator/components/com_onepage/assets/css/'); $javascript = ' var op_secureurl = "' . JURI::base() . 'index.php?option=com_onepage&view=edittheme&format=raw&tmpl=component&task=ajax"; var op_css = true; var changedColors = new Array(); var origColors = new Array(); '; foreach ($this->colors as $idcolor => $color) { $javascript .= ' origColors.push(\'' . str_replace('#', '', $idcolor) . '\');'; } $document->addScriptDeclaration($javascript); if (!empty($this->msgs)) { echo '<div style="color: red; clear: both;">' . $this->msgs . '</div>'; } ?> <input type="hidden" name="current_template" id="current_template" value="<?php if (file_exists(JPATH_SITE . DS . 'components' . DS . 'com_onepage' . DS . 'config' . DS . 'onepage.cfg.php')) {
/* * * @copyright Copyright (C) 2007 - 2010 RuposTel - All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * One Page checkout is free software released under GNU/GPL and uses code from VirtueMart * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * */ defined('_JEXEC') or die('Restricted access'); if (!defined('_VALID_MOS') && !defined('_JEXEC')) { die('Direct Access to ' . basename(__FILE__) . ' is not allowed.'); } JToolBarHelper::Title('OPC Order Management', 'generic.png'); JToolBarHelper::save(); JToolBarHelper::cancel(); jimport('joomla.html.pane'); $pane = OPCPane::getInstance('tabs', array('active' => 'px', 'startOffset' => 0)); if (!empty($_SESSION['msg'])) { ?> <div style="width:100%; border: solid 1px;"> <?php $txt = $_SESSION['msg']; unset($_SESSION['msg']); $txt = str_replace('<div class="shop_info">', '', $txt); $txt = str_replace('</div>', '', $txt); $txt = str_replace('<div >', '', $txt); echo $txt; //$txt = str_replace('<br>', '', $txt);