Ejemplo n.º 1
0
 protected function generateCountryStateData()
 {
     $country = oseMscMethods::getCountry();
     $state = oseMscMethods::getState();
     $result = array();
     $result['country'] = $country;
     $result['state'] = $state;
     return $result;
 }
Ejemplo n.º 2
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');
         }
     }
 }
Ejemplo n.º 3
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;
Ejemplo n.º 4
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>
Ejemplo n.º 5
0
 function getAddon()
 {
     $result = array();
     $addon_name = JRequest::getCmd('addon_name', null);
     $type = JRequest::getCmd('addon_type', null);
     echo '<script type="text/javascript">' . "\r\n";
     require_once JPATH_SITE . DS . oseMscMethods::getAddonPath($addon_name . '.js', 'member');
     echo "\r\n" . '</script>';
     oseExit();
 }
Ejemplo n.º 6
0
  * @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('addons', 'addon'), '1.5');
oseHTML::script("administrator/" . OSEMSCFOLDER . "/views/addons/js/js.addons.advanced.js", '1.5');
?>
<script type="text/javascript">
Ext.onReady(function(){
});
</script>
<div id="ose-addon-list"><!-- Emails List Panel --></div>
Ejemplo n.º 7
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(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>
Ejemplo n.º 8
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(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)	{
Ejemplo n.º 9
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(oseMscMethods::getJsModPath('orders', 'order'), '1.5');
?>
<script type="text/javascript">
Ext.onReady(function(){
	Ext.QuickTips.init();
	oseMscOrders.gridInit = new oseMscOrders.gridInit();
	oseMscOrders.gridInit = oseMscOrders.gridInit.init();
	oseMscOrders.panel = new Ext.Panel({
		items: [oseMscOrders.grid]
		,renderTo: 'osemsc-order'
		,border: false
		,width: Ext.get('osemsc-order').getWidth() - 15
	})
});
</script>
<div id="oseheader">
Ejemplo n.º 10
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");
JHTML::_('behavior.modal');
oseHTML::script(oseMscMethods::getJsModPath('setting', 'membership'), '1.5');
oseHTML::script(oseMscMethods::getJsModPath('memberships', 'membership'), '1.5');
oseHTML::script("administrator/" . OSEMSCFOLDER . "/views/memberships/js/js.memberships.js", '1.5');
echo $this->initJs();
$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) . "};");
?>
<div id="oseheader">
	<div class="container">
		<div class="logo-labels">
			<h1>
				<a href="http://www.opensource-excellence.com" target="_blank"><?php 
Ejemplo n.º 11
0
	protected function generateCountryStateJS() {
		//$model = $this->getModel('register');
		$country = oseMscMethods::getCountry();
		$state = oseMscMethods::getState();
		$output = "\r\n";
		$output .= "var getCountry = function()	{return " . oseJson::encode($country) . "};";
		$output .= "\r\n";
		$output .= "var getState = function()	{return " . oseJson::encode($state) . "};";
		return $output;
	}
Ejemplo n.º 12
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);
Ejemplo n.º 13
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();
Ejemplo n.º 14
0
	private function loadAddon($obj, $type) {
		$path = null;
		$path = oseMscMethods::getAddonPath("{$obj->name}.js", $type);
		if (!empty($obj->addon_name)) {
			oseHTML::matchScript($path, 'msc');
		}
	}
Ejemplo n.º 15
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());
Ejemplo n.º 16
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
*/
defined('_JEXEC') or die("Direct Access Not Allowed");
oseHTML::script(oseMscMethods::getJsModPath('level', 'level'), '1.5');
oseHTML::script(oseMscMethods::getJsModPath('levels', 'level'), '1.5');
oseHTML::script("administrator/" . OSEMSCFOLDER . "/views/levels/js/js.levels.js", '1.5');
//oseMscAddon::loadAddons($this->objs);
?>

<script type="text/javascript">
Ext.onReady(function(){
	<?php 
//echo oseMscAddon::addAddons('oseMemMsc.edit.tabs',$this->objs);
?>
	//oseMemMsc.edit.tabs.doLayout();
	
	
});

</script>
Ejemplo n.º 17
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('payment','payment'),'1.5');
?>
<div id="ose-payment"></div>
<script type="text/javascript">
Ext.onReady(function(){
	Ext.QuickTips.init();