Пример #1
0
 * @author        Open Source Excellence (R) {@link  http://www.opensource-excellence.com}
 * @author        Created on 15-Nov-2010
 * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
 *
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *  @Copyright Copyright (C) 2010- Open Source Excellence (R)
 */
defined('_JEXEC') or die("Direct Access Not Allowed");
class oseMscViewMembers extends oseMscView
{
    function display($tpl = null)
    {
        $tmpl = JRequest::getVar('tmpl');
        if (empty($tmpl)) {
Пример #2
0
 function display($tpl = null)
 {
     $tmpl = JRequest::getVar('tmpl');
     if (empty($tmpl)) {
         JRequest::setVar('tmpl', 'component');
     }
     if (JOOMLA16 == false) {
         require_once OSEMSC_B_PATH . DS . 'helpers' . DS . "extLanguage.php";
         oseHTML::script(OSEMSC_F_URL . '/libraries/joomla.core.js', '1.5');
         $strings = oseJson::encode(oseText::jsStrings());
         $document = JFactory::getDocument();
         $document->addScriptDeclaration('(function(){var strings=' . $strings . ';Joomla.JText.load(strings)})()');
     }
     $com = OSECPU_PATH_JS . '/com_ose_cpu/extjs';
     oseHTML::initScript();
     oseHTML::script($com . '/ose/app.msg.js', '1.5');
     oseHTML::script(OSEMSC_F_URL . '/libraries/init.js', '1.5');
     require_once OSEMSC_B_PATH . DS . 'helpers' . DS . "extLanguage.php";
     $OSESoftHelper = new OSESoftHelper();
     $footer = $OSESoftHelper->renderOSETM();
     $this->assignRef('footer', $footer);
     $preview_menus = $OSESoftHelper->getPreviewMenus();
     $this->assignRef('preview_menus', $preview_menus);
     $this->assignRef('OSESoftHelper', $OSESoftHelper);
     $title = JText::_('OSE Membership™ Profile Management');
     $this->assignRef('title', $title);
     parent::display($tpl);
 }
Пример #3
0
 function display($tpl = null)
 {
     $tmpl = JRequest::getVar('tmpl');
     if (empty($tmpl)) {
         JRequest::setVar('tmpl', 'component');
     }
     $list = $this->get('Items');
     $this->assignRef('list', $list);
     oseHTML::initScript();
     $com = OSECPU_PATH_JS . '/com_ose_cpu/extjs';
     oseHTML::script($com . '/grid/SearchField.js');
     oseHTML::script($com . '/grid/expander.js');
     oseHTML::script($com . '/ose/app.msg.js');
     oseHTML::script($com . '/grid/limit.js');
     require_once OSEMSC_B_PATH . DS . 'helpers' . DS . "extLanguage.php";
     $OSESoftHelper = new OSESoftHelper();
     $footer = $OSESoftHelper->renderOSETM();
     $this->assignRef('footer', $footer);
     $preview_menus = $OSESoftHelper->getPreviewMenus();
     $this->assignRef('preview_menus', $preview_menus);
     $this->assignRef('OSESoftHelper', $OSESoftHelper);
     $title = JText::_('OSE Membership™ Orders Management');
     $this->assignRef('title', $title);
     parent::display($tpl);
 }
Пример #4
0
 function display($tpl = null)
 {
     JToolBarHelper::title(JText::_('OSE Membership™ Update Member Info.') . ' <small><small>[ ' . OSEMSCVERSION . ' ]</small></small>', 'logo');
     $doc = JFactory::getDocument();
     // init table
     $db =& JFactory::getDBO();
     // ACL Info;
     $tables = $db->getTableList();
     $jConfig = JFactory::getConfig();
     $this->checkFixTable();
     //$doc->addScript(JURI::root().'media/system/js/core.js');
     $com = OSECPU_PATH_JS . '/com_ose_cpu/extjs';
     oseHtml::script('media/system/js/core.js');
     oseHTML::initScript();
     oseHTML::script($com . '/ose/app.msg.js');
     oseHTML::script($com . '/ose/func.js');
     $com = OSECPU_PATH_JS . '/com_ose_cpu/extjs';
     $this->items = $this->get('Items');
     $this->modules = $this->get('Modules');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     parent::display($tpl);
 }
Пример #5
0
 function display($tpl = null)
 {
     JToolBarHelper::title(JText::_('OSE Membership™ Reporter - Member List Export') . ' <small><small>Version ' . COMPONENTVER . '</small></small>', 'logo');
     $com = OSECPU_PATH_JS . '/com_ose_cpu/extjs';
     oseHTML::initScript();
     oseHTML::script($com . '/ose/app.msg.js');
     oseHTML::script($com . '/grid/limit.js');
     parent::display($tpl);
 }
Пример #6
0
	function display($tpl = null) {
		$tpl = null;
		$config = oseMscConfig::getConfig('global', 'obj');
		$com = OSECPU_PATH_JS . '/com_ose_cpu/extjs';
		oseHTML::initScript();
		oseHTML::script($com . '/ose/app.msg.js', '1.5');
		oseHTML::script($com . '/grid/expander.js', '1.5');
		oseHTML::script(OSEMSC_F_URL . '/libraries/init.js', '1.5');
		oseHTML::stylesheet(OSEMSC_F_URL . '/assets/css/' . $config->frontend_style . '.css', (JOOMLA16) ? '1.6' : '1.5');
		$mainframe = JFactory::getApplication('SITE');
		$session = JFactory::getSession();
		$user = JFactory::getUser();
		if ($user->guest) {
			$ItemID = JRequest::getInt("Itemid");
			$return = base64_encode(str_replace("&amp;", "&", JRoute::_("index.php?option=com_osemsc&view=addons&Itemid=" . $ItemID)));
			if (JOOMLA16 == true) {
				$red = str_replace("&amp;", "&", JRoute::_("index.php?option=com_users&view=login&return=" . $return));
			} else {
				$red = str_replace("&amp;", "&", JRoute::_("index.php?option=com_user&view=login&return=" . $return));
			}
			$mainframe->redirect($red, "Please login first.");
		}
		$menu = &JSite::getMenu();
		$item = $menu->getActive();
		$addon_type = '';
		if (!empty($item)) {
			$params = &$menu->getParams($item->id);
			$addon_type = $params->get('addon_type');
		}
		$model = $this->getModel('addons');
		$items = array();
		switch ($addon_type) {
		case 'phoca':
			$items = $model->getAddonCats($addon_type);
			$link = 'index.php?option=com_phocadownload&view=category&id=';
			break;
		case 'roku':
			$items = $model->getAddonInfo($addon_type);
			$link = '';
			break;
		}
		$params = &$mainframe->getParams();
		$page_title = $params->get('page_title');
		$document = &JFactory::getDocument();
		$document->setTitle($params->get('page_title'));
		$this->assignRef('page_title', $page_title);
		$this->assignRef('addon_type', $addon_type);
		$this->assignRef('items', $items);
		$this->assignRef('link', $link);
		$this->prepareDocument();
		parent::display($tpl);
	}
Пример #7
0
 public static function loadAddon($obj, $type = null)
 {
     $path = null;
     if (empty($type)) {
         $type = $obj->type;
     }
     $path = oseMscMethods::getAddonPath("{$obj->name}.js", $type);
     if (JFile::exists(JPATH_SITE . DS . $path)) {
         if (!empty($obj->addon_name)) {
             oseHTML::script($path, '1.5');
         }
     }
 }
Пример #8
0
  * @author        Open Source Excellence {@link 
http://www.opensource-excellence.co.uk}
  * @author        EasyJoomla {@link http://www.easy-joomla.org 
Easy-Joomla.org}
  * @author        SSRRN {@link http://www.ssrrn.com}
  * @author        Created on 15-Sep-2008
  * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
  *
  *
  *  This program is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
Пример #9
0
 function display($tpl = null)
 {
     JToolBarHelper::title(JText::_('OSE Membership™ Reporter - Additional Info Export') . ' <small><small>Version ' . COMPONENTVER . '</small></small>', 'logo');
     $com = OSECPU_PATH_JS . '/com_ose_cpu/extjs';
     oseHTML::initScript();
     oseHTML::script($com . '/ose/app.msg.js');
     oseHTML::script($com . '/grid/limit.js');
     $model = $this->getModel();
     $columns = $model->getColumns();
     $store = $model->getStore();
     //$columns = trim($columns,"[");
     //$columns = trim($columns,"]");
     //print_r($columns);exit;
     //print_r($fields);exit;
     $redirectUrl = 'TEST';
     $document = JFactory::getDocument();
     $document->addScriptDeclaration('var column = ' . $columns . '; var store = ' . $store . ';');
     parent::display($tpl);
 }
Пример #10
0
	function display($tpl = null) {
		$config = oseRegistry::call('msc')->getConfig('global', 'obj');
		$frontend_style = $config->frontend_style;
		$config = oseRegistry::call('msc')->getConfig('register', 'obj');
		if ($this->isMobile) {
			// Any mobile device.
			$this->setLayout('mobile');
			JRequest::setvar('tmpl', 'component');
		} else {
			$com = OSECPU_PATH_JS . '/com_ose_cpu/extjs';
			oseHTML::initScript();
			oseHTML::script($com . '/ose/app.msg.js', '1.5');
			oseHTML::script(OSEMSC_F_URL . '/libraries/init.js', '1.5');
			oseHTML::stylesheet(OSEMSC_F_URL . '/assets/css/' . $frontend_style . '.css', (JOOMLA16) ? '1.6' : '1.5');
		}
		$this->assignRef('enable_fblogin', $config->enable_fblogin);
		$this->assignRef('facebookapiid', $config->facebookapiid);
		$this->prepareDocument();
		parent::display($tpl);
	}
Пример #11
0
	function display($tpl = null) {
		$tpl = null;
		$this->set('_layout', 'default');
		oseHTML::initCss();
		$com = OSECPU_PATH_JS . '/com_ose_cpu/extjs';
		oseHTML::initScript();
		oseHTML::script($com . '/ose/app.msg.js', '1.5');
		oseHTML::script($com . '/grid/expander.js', '1.5');
		oseHTML::script(OSEMSC_F_URL . '/libraries/init.js', '1.5');
		$config = oseMscConfig::getConfig('global', 'obj');
		oseHTML::stylesheet(OSEMSC_F_URL . '/assets/css/' . $config->frontend_style . '.css', (JOOMLA16) ? '1.6' : '1.5');
		$user = JFactory::getUser();
		$app = JFactory::getApplication('SITE');
		$session = JFactory::getSession();
		$db = oseDB::instance();
		$order_id = JRequest::getInt('order_id');
		$payment = oseRegistry::call('payment');
		$where = array();
		$where[] = "`order_id` = " . $db->quote($order_id);
		$order = $payment->getOrder($where, 'obj');
		$orderInfoParams = oseJson::decode($order->params);
		$redirectUrl = urldecode($orderInfoParams->returnUrl);
		$config = oseMscConfig::getConfig('thirdparty', 'obj');
		$account = oseObject::getValue($config, 'gag_account');
		$standard_type = oseObject::getValue($config, 'gag_domain_mode');
		$domain = oseObject::getValue($config, 'gag_domain');
		$htmlTrack = oseMscPublic::htmlTrack($account, $standard_type, $domain, $order_id);
		$code = oseMscPublic::ajaxOrderTrack($account, $order_id);
		if (empty($code)) {
			$code = false;
		} else {
			$code = implode("", $code);
		}
		$document = JFactory::getDocument();
		$document->addScriptDeclaration('var redirectUrl = "' . $redirectUrl . '";');
		$document->addScriptDeclaration($htmlTrack);
		$document->addScriptDeclaration($code);
		$this->assignRef('orderInfo', $order);
		$this->prepareDocument();
		parent::display($tpl);
	}
Пример #12
0
	function display($tpl = null) {
		$user = oseMscPublic::getUser();
		$mainframe = JFactory::getApplication();
		$params = clone ($mainframe->getParams('com_osemsc'));
		$msc_id = $params->get('msc');
		$status = $params->get('status', 'all');
		if (empty($msc_id)) {
			$mainframe->redirect('index.php', 'Please choose a membership to show');
		}
		oseHTML::stylesheet(OSEMSC_F_URL . '/assets/css/msc5backend.css', '1.5');
		$com = OSECPU_PATH_JS . '/com_ose_cpu/extjs';
		oseHTML::script($com . '/grid/SearchField.js');
		$document = JFactory::getDocument();
		$document->addScriptDeclaration('var osememlist_msc_id = ' . $msc_id . '; var osememlist_status = \'' . $status . '\';');
		$this->prepareDocument();
		if (!empty($tpl)) {
			parent::display($tpl);
		} else {
			parent::display();
		}
	}
Пример #13
0
	function display($tpl = null) {
		$tpl = null;
		$this->set('_layout', 'default');
		oseHTML::initCss();
		$com = OSECPU_PATH_JS . '/com_ose_cpu/extjs';
		oseHTML::initScript();
		oseHTML::script($com . '/ose/app.msg.js', '1.5');
		oseHTML::script($com . '/grid/expander.js', '1.5');
		oseHTML::script(OSEMSC_F_URL . '/libraries/init.js', '1.5');
		$config = oseMscConfig::getConfig('global', 'obj');
		oseHTML::stylesheet(OSEMSC_F_URL . '/assets/css/' . $config->frontend_style . '.css', (JOOMLA16) ? '1.6' : '1.5');
		$user = JFactory::getUser();
		$app = JFactory::getApplication('SITE');
		$session = JFactory::getSession();
		$db = oseDB::instance();
		$token = (isset($_REQUEST['token'])) ? urlencode($_REQUEST['token']) : "";
		$payment = oseRegistry::call('payment');
		$payment_mode = JRequest::getVar('mode');
		$orderID = JRequest::getInt('orderID');
		if (empty($orderID) || !is_numeric($orderID)) {
			echo "Order data is interrupted, payment process is terminated.";
		}
		if ($payment_mode == 'm') {
			$orderInfo = $payment->PaypalAPIPay($orderID, $token);
		} else {
			$orderInfo = $payment->PaypalAPICreateProfile($orderID, $token);
		}
		$where = array();
		$where[] = "`order_id` = " . $db->quote($orderID);
		$order = $payment->getOrder($where, 'obj');
		$orderInfoParams = oseJson::decode($order->params);
		$redirectUrl = urldecode($orderInfoParams->returnUrl);
		$document = JFactory::getDocument();
		$document->addScriptDeclaration('var redirectUrl = "' . $redirectUrl . '";');
		$this->assignRef('orderInfo', $orderInfo);
		$this->prepareDocument();
		parent::display($tpl);
	}
Пример #14
0
	function display($tpl = null) {
		$model = $this->getModel('memberships');
		$items = $model->getMemberships();
		$session = JFactory::getSession();
		$osePaymentCurrency = $session->get('osePaymentCurrency', oseRegistry::call('msc')->getConfig('currency', 'obj')->primary_currency);
		$cards = array();
		$com = OSECPU_PATH_JS . '/com_ose_cpu/extjs';
		oseHTML::initScript();
		oseHTML::script($com . '/ose/app.msg.js', '1.5');
		oseHTML::script(OSEMSC_F_URL . '/libraries/init.js', '1.5');
		$register_form = oseRegistry::call('msc')->getConfig('register', 'obj')->register_form;
		$layout = JRequest::getCmd("layout");
		if (empty($register_form) || $register_form == 'default') {
			$layout = (!empty($layout) && ($layout == 'detail' || $layout == 'cartdetail')) ? "cartdetail" : 'cart';
			$this->setLayout($layout);
			$type = 'cart';
		} else {
			$layout = (!empty($layout) && ($layout == 'detail')) ? $layout : 'default';
			$this->setLayout($layout);
			$user = JFactory::getUser();
			$tpl = null;
			$type = 'os';
		}
		if ($layout == 'default' || $layout == 'cart') {
			$cards = $model->drawMscList($osePaymentCurrency, $items, $type);
		} else {
			foreach ($items as $item) {
				$msc_id = JRequest::getInt('msc_id', oseObject::getValue($item, 'id'));
				$cards = $model->getMembershipCard($msc_id);
				break;
			}
		}
		$config = oseMscConfig::getConfig('global', 'obj');
		oseHTML::stylesheet(OSEMSC_F_URL . '/assets/css/' . $config->frontend_style . '.css', (JOOMLA16) ? '1.6' : '1.5');
		$this->assignRef('cards', $cards);
		$this->prepareDocument();
		parent::display($tpl);
	}
Пример #15
0
  *  This program is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
  *  This program is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *  @Copyright Copyright (C) 2010- Open Source Excellence (R)
*/
defined('_JEXEC') or die("Direct Access Not Allowed");
oseHTML::script("administrator/" . OSEMSCFOLDER . "/views/addons/js/js.addons.simple.js", '1.5');
?>
<div id="oseheader">
	<div class="container">
		<div class="logo-labels">
			<h1>
				<a href="http://www.opensource-excellence.com" target="_blank"><?php 
echo JText::_("Open Source Excellence");
?>
				</a>
			</h1>
			<?php 
echo $this->preview_menus;
?>
		</div>
		<?php 
Пример #16
0
  *
  *  This program is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
  *  This program is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *  @Copyright Copyright (C) 2010- Open Source Excellence (R)
*/
defined('_JEXEC') or die('Restricted access');
oseHTML::script("administrator/components/com_osereporter/views/memlist/js/ext.memlist.js", '1.6');
?>
<script type="text/javascript">
Ext.onReady(function(){
	Ext.QuickTips.init();

	oseReporter.panel = new Ext.Panel({
		//activeItem: 0
		renderTo: 'ose-reporter'
		,width: Ext.get('ose-reporter').getWidth() - 15
		,items:	oseReporter.Memlistgrid
	});
});
</script>
<div id="ose-reporter" class="com-content"></div>
Пример #17
0
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *  @Copyright Copyright (C) 2010- Open Source Excellence (R)
*/
defined('_JEXEC') or die("Direct Access Not Allowed");
$user= JFactory :: getUser();
$Itemid= JRequest :: getVar("Itemid");
$params= JComponentHelper :: getParams('com_osemsc');
if($user->guest) {
	$user_name= 'Guest';
} else {
	$user_name= $user->name;
}
oseHTML :: script(OSEMSCFOLDER.'/views/member/js/js.member.os.js', '1.5');
oseHTML :: script(oseMscMethods :: getJsModPath('staff', 'member'), '1.5');
?>
<?php
	if($this->menuParams->get('show_page_heading') || $this->menuParams->get('show_page_title'))
	{
?>
		<div class='componentheading <?php echo $this->menuParams->get('pageclass_sfx'); ?>'><?php echo $this->menuParams->get('page_heading'); ?></div>
<?php
	}
?>
<script type="text/javascript">
Ext.ns('oseMemMsc');
Ext.onReady(function(){
	Ext.QuickTips.init();
	oseMemMsc.success = function(form,action)	{
        var msg = action.result;
Пример #18
0
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *  @Copyright Copyright (C) 2010- Open Source Excellence (R)
*/
defined('_JEXEC') or die("Direct Access Not Allowed");
echo $this->initJS();
oseHTML::script(oseMscMethods::getJsModPath('global', 'config'), '1.6');
oseHTML::script(oseMscMethods::getJsModPath('payment', 'config'), '1.6');
oseHTML::script(oseMscMethods::getJsModPath('email', 'config'), '1.6');
oseHTML::script(oseMscMethods::getJsModPath('register', 'config'), '1.6');
oseHTML::script(oseMscMethods::getJsModPath('currency', 'config'), '1.6');
oseHTML::script(oseMscMethods::getJsModPath('3rdparty', 'config'), '1.6');
oseHTML::script(oseMscMethods::getJsModPath('tax', 'config'), '1.6');
oseHTML::script(oseMscMethods::getJsModPath('locale', 'config'), '1.6');
$db = oseDB::instance();
$query = " SELECT id,subject,type FROM `#__osemsc_email`";
$db->SetQUery($query);
$list = oseDB::loadList();
$result = array('total' => count($list), 'results' => $list);
$document = JFactory::getDocument();
$document->addScriptDeclaration("var getEmails = function()\t{return " . oseJson::encode($result) . "};");
?>
<script type="text/javascript">
Ext.onReady(function(){
	oseMsc.config.globalInit = new oseMsc.config.globalInit();
	oseMsc.config.globalInit = oseMsc.config.globalInit.init();
	oseMsc.config.paymentInit = new oseMsc.config.paymentInit();
	oseMsc.config.paymentInit = oseMsc.config.paymentInit.init();
	oseMsc.config.emailInit = new oseMsc.config.emailInit();
Пример #19
0
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *  @Copyright Copyright (C) 2010- Open Source Excellence (R)
 */
defined('_JEXEC') or die("Direct Access Not Allowed");
$user = JFactory::getUser();
if ($user->guest) {
	oseHTML::script(oseMscMethods::getJsModPath('login', 'login'), '1.5');
} else {
	oseHTML::script(oseMscMethods::getJsModPath('logout', 'login'), '1.5');
}
$link = JRoute::_('');
?>
<?php
if ($this->menuParams->get('show_page_heading')) {
?>
		<div class='componentheading <?php echo $this->menuParams->get('pageclass_sfx'); ?>'><?php echo $this->menuParams->get('page_heading'); ?></div>
<?php
}
?>
<?php if ($user->guest) : ?>
<?php
	if ($this->enable_fblogin == true) {
?>
<script>
Пример #20
0
  *  it under the terms of the GNU General Public License as published by
  *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
  *  This program is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *  @Copyright Copyright (C) 2010- Open Source Excellence (R)
*/
defined('_JEXEC') or die("Direct Access Not Allowed");
//oseHTML::script(oseMscMethods::getJsModPath('memberships','memberships'),'1.5');
oseHTML::script(OSEMSCFOLDER."/views/memberships/js/js.memberships.cart.js",'1.5');
//$mView = new oseMembershipView();
$cards = $this->cards;
?>
<?php
	if($this->menuParams->get('show_page_heading') || $this->menuParams->get('show_page_title'))
	{
?>
		<div class='componentheading <?php echo $this->menuParams->get('pageclass_sfx'); ?>'><?php echo $this->menuParams->get('page_heading'); ?></div>
<?php
	}
?>
<div id="osemsc-list">
<?php
	foreach ($cards as $card)
	{
Пример #21
0
 static function matchScript($file, $app)
 {
     $mainframe = JFactory::getApplication();
     $path = $mainframe->isSite() == true ? JPATH_SITE : JPATH_ADMINISTRATOR;
     switch ($app) {
         case 'msc':
             $com = 'com_ose' . $app;
             break;
         default:
             $com = 'com_ose_' . $app;
             break;
     }
     $replace = $mainframe->isSite() == true ? 'components/' . $com . '/' : 'administrator/components/' . $com . '/';
     $rFile = str_replace($replace, '', $file);
     $rFile = str_replace(array('/', '\\'), DS, $rFile);
     if (JFile::exists($path . DS . 'ose' . DS . $app . DS . $rFile)) {
         if ($mainframe->isSite() == true) {
             oseHTML::script("ose/{$app}/{$rFile}");
         } else {
             oseHTML::script("administrator/ose/{$app}/{$rFile}");
         }
     } else {
         if (JFile::exists(JPATH_SITE . DS . $file)) {
             oseHTML::script($file);
         }
     }
 }
Пример #22
0
<?php
/**
  * @version     5.0 +
  * @package        Open Source Membership Control - com_osemsc
  * @subpackage    Open Source Access Control - com_osemsc
  * @author        Open Source Excellence (R) {@link  http://www.opensource-excellence.com}
  * @author        Created on 15-Nov-2010
  * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
  *
  *
  *  This program is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
  *  This program is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *  @Copyright Copyright (C) 2010- Open Source Excellence (R)
*/
defined('_JEXEC') or die("Direct Access Not Allowed");
oseHTML::script(oseMscMethods::getJsModPath('memberships','memberships'),'1.5');
//oseHTML::script(OSEMSCFOLDER."/views/memberships/js/js.memberships_detail.js",'1.5');
oseHTML::script(OSEMSCFOLDER."/views/memberships/js/js.memberships.js",'1.5');
$cards = $this->cards;
$Itemid = JRequest::getInt('Itemid', null);
Пример #23
0
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *  @Copyright Copyright (C) 2010- Open Source Excellence (R)
*/
defined('_JEXEC') or die("Direct Access Not Allowed");
$user= JFactory :: getUser();
$Itemid= JRequest :: getVar("Itemid");
$params= JComponentHelper :: getParams('com_osemsc');
if($user->guest) {
	$user_name= 'Guest';
} else {
	$user_name= $user->name;
}
oseHTML :: script(OSEMSCFOLDER.'/views/member/js/js.member.os.js', '1.5');
echo $this->initJs();
?>
<script type="text/javascript">
Ext.ns('oseMemMsc');
Ext.onReady(function(){
	Ext.QuickTips.init();
	oseMemMsc.loadAddon('member_user',"<?php echo JText::_('MEMBER_USER_ACCOUNT'); ?>").render('ose-member_user');
	oseMemMsc.loadAddon('member_msc',"<?php echo JText::_('MY_MEMBERSHIP'); ?>").render('ose-member_msc');
});
</script>
<?php
	if($this->menuParams->get('show_page_heading'))
	{
?>
		<div class='componentheading <?php echo $this->menuParams->get('pageclass_sfx'); ?>'><?php echo $this->menuParams->get('page_heading'); ?></div>
Пример #24
0
  *  it under the terms of the GNU General Public License as published by
  *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
  *  This program is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *  @Copyright Copyright (C) 2010- Open Source Excellence (R)
*/
defined('_JEXEC') or die("Direct Access Not Allowed");
oseHTML::script(oseMscMethods::getJsModPath('payment.vm','payment'),'1.5');
oseHTML::script(OSEMSCFOLDER."/views/payment/js/js.payment.vm.js",'1.5');
?>
<div id="osemsc-payment-view-button"></div>
<div id="osemsc-payment"></div>
<div id="osemsc-payment-mode"></div>
<div id="osemsc-payment-confirm"></div>
<style type="text/css">
.msc-sub {padding: 0 0 0 10px}
</style>
<script type="text/javascript">
Ext.onReady(function(){
	<?php if(count($this->oseMscPayment) > 0): ?>
	var pay_msc_id = <?php echo $this->oseMscPayment['msc_id'];?>;
	var pay_payment_mode = '<?php echo $this->oseMscPayment['payment_mode'];?>';
	if(pay_msc_id > 0)	{
		Ext.Ajax.request({
Пример #25
0
  *  (at your option) any later version.
  *
  *  This program is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *  @Copyright Copyright (C) 2010- Open Source Excellence (R)
*/
defined('_JEXEC') or die("Direct Access Not Allowed");
oseHTML::script(oseMscMethods::getJsModPath('setting', 'member'), '1.5');
oseHTML::script(oseMscMethods::getJsModPath('mscTree', 'member'), '1.5');
oseHTML::script(oseMscMethods::getJsModPath('members', 'member'), '1.5');
oseHTML::script("administrator/" . OSEMSCFOLDER . "/views/members/js/js.members.js", '1.5');
echo $this->initJS();
?>
<div id="oseheader">
	<div class="container">
		<div class="logo-labels">
			<h1>
				<a href="http://www.opensource-excellence.com" target="_blank"><?php 
echo JText::_("Open Source Excellence");
?>
				</a>
			</h1>
			<?php 
echo $this->preview_menus;
?>
		</div>
Пример #26
0
  *  This program is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
  *  This program is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *  @Copyright Copyright (C) 2010- Open Source Excellence (R)
*/
defined('_JEXEC') or die("Direct Access Not Allowed");
oseHTML::script("administrator/" . OSEMSCFOLDER . "/views/activation/js/script.js", '1.5');
?>
<div id="oseheader">
	<div class="container">
		<div class="logo-labels">
			<h1>
				<a href="http://www.opensource-excellence.com" target="_blank"><?php 
echo JText::_("Open Source Excellence");
?>
				</a>
			</h1>
			<?php 
echo $this->preview_menus;
?>
		</div>
		<?php 
Пример #27
0
  *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
  *  This program is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *  @Copyright Copyright (C) 2010- Open Source Excellence (R)
*/

defined('_JEXEC') or die("Direct Access Not Allowed");
$error_msg = "";
oseHTML::script(oseMscMethods::getJsModPath('reg','reg'),'1.5');
echo $this->initJs();
?>
<style type="text/css">
	.combo-left	{
		text-align: left
	}
</style>

<script type="text/javascript">
Ext.onReady(function(){
	var headerObjs = <?php echo oseJson::encode($this->registerOS_header);?>;
	var bodyObjs = <?php echo oseJson::encode($this->registerOS_body);?>;
	var footerObjs = <?php echo oseJson::encode($this->registerOS_footer);?>;

	var oseViewRegfp = oseMsc.reg.buildForm2c.buildForm(Ext.get('osemsc-reg').getWidth());
Пример #28
0
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *  @Copyright Copyright (C) 2010- Open Source Excellence (R)
 */
defined('_JEXEC') or die("Direct Access Not Allowed");
oseHTML::script(OSEMSCFOLDER . "/views/addons/js/js.addons.js", '1.5');
$mscID = 0;
?>
<?php
if ($this->menuParams->get('show_page_heading')) {
?>
		<div class='componentheading <?php echo $this->menuParams->get('pageclass_sfx'); ?>'><?php echo $this->menuParams->get('page_heading'); ?></div>
<?php
}
?>
<?php
if (!empty($this->addon_type)) {
	include_once($this->addon_type . "_tpl.php");
} else {
	echo JText::_("Please choose a addon page first.");
}
Пример #29
0
 public function loadMultiSelect()
 {
     $com = OSECPU_PATH_JS . '/com_ose_cpu/extjs';
     oseHTML::script($com . '/multiselect/MultiSelect.js');
     oseHTML::stylesheet($com . '/multiselect/MultiSelect.css');
 }
Пример #30
0
  *  it under the terms of the GNU General Public License as published by
  *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
  *  This program is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *  @Copyright Copyright (C) 2010- Open Source Excellence (R)
*/
defined('_JEXEC') or die("Direct Access Not Allowed");
oseHTML::script(oseMscMethods::getJsModPath('emails', 'email'), '1.5');
oseHTML::script("administrator/" . OSEMSCFOLDER . "/views/emails/js/js.emails.js", '1.5');
?>
<div id="oseheader">
	<div class="container">
		<div class="logo-labels">
			<h1>
				<a href="http://www.opensource-excellence.com" target="_blank"><?php 
echo JText::_("Open Source Excellence");
?>
				</a>
			</h1>
			<?php 
echo $this->preview_menus;
?>
		</div>
		<?php