* @version $Id: admin.usergroup_form.php 1961 2009-10-12 20:18:00Z Aravot $
* @package VirtueMart
* @subpackage html
* @copyright Copyright (C) 2004-2007 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__);
require_once CLASSPATH . 'usergroup.class.php';
$usergroup = new vmUserGroup();
$group_id = (int) vmGet($_REQUEST, 'group_id', 0);
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
if (!empty($group_id)) {
    $db = $usergroup->get_group($group_id);
} else {
}
$funcname = !empty($group_id) ? "usergroupUpdate" : "usergroupAdd";
// Create the Form Control Object
$formObj = new formFactory($VM_LANG->_('VM_USERGROUP_FORM_LBL'));
// Start the the Form
$formObj->startForm();
// Add necessary hidden fields
$formObj->hiddenField('group_id', $group_id);
?>
<table class="adminform">
Example #2
0
* @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__);
require_once CLASSPATH . "pageNavigation.class.php";
require_once CLASSPATH . "htmlTools.class.php";
require_once CLASSPATH . "usergroup.class.php";
$vmUserGroup = new vmUserGroup();
// Get module ID
$module_id = vmGet($_REQUEST, 'module_id', 0);
$q = "SELECT module_name FROM #__{vm}_module WHERE module_id='{$module_id}'";
$db->query($q);
$db->next_record();
$title = $VM_LANG->_('PHPSHOP_FUNCTION_LIST_LBL') . ": " . $db->f("module_name");
if (!empty($keyword)) {
    $list = "SELECT * FROM #__{vm}_function WHERE ";
    $count = "SELECT count(*) as num_rows FROM #__{vm}_function WHERE ";
    $q = "(function_name LIKE '%{$keyword}%' OR ";
    $q .= "function_perms LIKE '%{$keyword}%' ";
    $q .= ") ";
    $q .= "AND module_id='{$module_id}' ";
    $q .= "ORDER BY function_name ";
    $list .= $q . " LIMIT {$limitstart}, " . $limit;