Example #1
0
 function vmTheme()
 {
     parent::vmTemplate();
     vmCommonHTML::loadMooTools();
 }
*
* @version $Id: admin.function_form.php 1961 2009-10-12 20:18:00Z Aravot $
* @package VirtueMart
* @subpackage html
* @copyright Copyright (C) 2004-2008 soeren - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* 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.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName(__FILE__);
vmCommonHTML::loadMooTools();
$function_id = vmGet($_REQUEST, 'function_id');
$module_id = vmGet($_REQUEST, 'module_id');
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
if (!empty($function_id)) {
    $q = "SELECT * from #__{vm}_function where function_id='{$function_id}'";
    $db->query($q);
    $db->next_record();
}
//First create the object and let it print a form heading
$formObj = new formFactory($VM_LANG->_('PHPSHOP_FUNCTION_FORM_LBL'));
//Then Start the form
$formObj->startForm();
?>
 
  <table class="adminform">
Example #3
0
 /**
  * Function to load the javascript and stylsheet files for Slimbox,
  * a Lightbox derivate with mootools and prototype.lite
  * @author http://www.digitalia.be/software/slimbox
  *
  * @param boolean $print
  */
 function loadSlimBox()
 {
     global $mosConfig_live_site, $vm_mainframe;
     if (!defined('_SLIMBOX_LOADED')) {
         vmCommonHTML::loadMooTools();
         $vm_mainframe->addScriptDeclaration('var slimboxurl = \'' . $mosConfig_live_site . '/components/' . VM_COMPONENT_NAME . '/js/slimbox/\';');
         $vm_mainframe->addScript($mosConfig_live_site . '/components/' . VM_COMPONENT_NAME . '/js/slimbox/js/slimbox.js');
         $vm_mainframe->addStyleSheet($mosConfig_live_site . '/components/' . VM_COMPONENT_NAME . '/js/slimbox/css/slimbox.css');
         define('_SLIMBOX_LOADED', '1');
     }
 }