本文整理汇总了PHP中RSMembershipHelper::isJ16方法的典型用法代码示例。如果您正苦于以下问题:PHP RSMembershipHelper::isJ16方法的具体用法?PHP RSMembershipHelper::isJ16怎么用?PHP RSMembershipHelper::isJ16使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RSMembershipHelper
的用法示例。
在下文中一共展示了RSMembershipHelper::isJ16方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getPayments
function getPayments()
{
$plugins = RSMembership::getPlugins();
$return = array();
foreach ($plugins as $paymentplugin => $name) {
if (preg_match('#rsmembershipwire([0-9]+)#', $paymentplugin, $match)) {
continue;
}
$tmp = new stdClass();
$tmp->name = $name;
$tmp->limitations = '';
$className = 'plgSystem' . $paymentplugin;
if (class_exists($className) && method_exists($className, 'getLimitations')) {
$dispatcher =& JDispatcher::getInstance();
$plugin = new $className($dispatcher, array());
$tmp->limitations = $plugin->getLimitations();
}
if (RSMembershipHelper::isJ16()) {
$this->_db->setQuery("SELECT `extension_id` FROM #__extensions WHERE `type`='plugin' AND `folder`='system' AND `client_id`='0' AND `element`='" . $this->_db->getEscaped($paymentplugin) . "' LIMIT 1");
} else {
$this->_db->setQuery("SELECT `id` FROM #__plugins WHERE `folder`='system' AND `client_id`='0' AND `element`='" . $this->_db->getEscaped($paymentplugin) . "' LIMIT 1");
}
$tmp->cid = $this->_db->loadResult();
$return[] = $tmp;
}
$return = array_merge($return, $this->getWirePayments());
return $return;
}
示例2: display
function display($tpl = null)
{
$mainframe =& JFactory::getApplication();
$params = clone $mainframe->getParams('com_rsmembership');
$this->assignRef('params', $params);
$this->assignRef('memberships', $this->get('memberships'));
$this->assignRef('pagination', $this->get('pagination'));
$this->assignRef('total', $this->get('total'));
$this->assignRef('action', JRequest::getURI());
$this->assignRef('date_format', RSMembershipHelper::getConfig('date_format'));
$this->assignRef('transactions', $this->get('transactions'));
$this->assignRef('limitstart', JRequest::getInt('limitstart', 0));
$Itemid = JRequest::getInt('Itemid', 0);
if ($Itemid > 0) {
$this->assign('Itemid', '&Itemid=' . $Itemid);
} else {
$this->assign('Itemid', '');
}
if (RSMembershipHelper::isJ16()) {
// Description
if ($params->get('menu-meta_description')) {
$this->document->setDescription($params->get('menu-meta_description'));
}
// Keywords
if ($params->get('menu-meta_keywords')) {
$this->document->setMetadata('keywords', $params->get('menu-meta_keywords'));
}
// Robots
if ($params->get('robots')) {
$this->document->setMetadata('robots', $params->get('robots'));
}
}
parent::display();
}
示例3: display
function display($tpl = null)
{
$mainframe =& JFactory::getApplication();
JToolBarHelper::title('RSMembership!', 'rsmembership');
JSubMenuHelper::addEntry(JText::_('RSM_TRANSACTIONS'), 'index.php?option=com_rsmembership&view=transactions');
JSubMenuHelper::addEntry(JText::_('RSM_MEMBERSHIPS'), 'index.php?option=com_rsmembership&view=memberships');
JSubMenuHelper::addEntry(JText::_('RSM_CATEGORIES'), 'index.php?option=com_rsmembership&view=categories');
JSubMenuHelper::addEntry(JText::_('RSM_MEMBERSHIP_EXTRAS'), 'index.php?option=com_rsmembership&view=extras');
JSubMenuHelper::addEntry(JText::_('RSM_MEMBERSHIP_UPGRADES'), 'index.php?option=com_rsmembership&view=upgrades');
JSubMenuHelper::addEntry(JText::_('RSM_COUPONS'), 'index.php?option=com_rsmembership&view=coupons');
JSubMenuHelper::addEntry(JText::_('RSM_PAYMENT_INTEGRATIONS'), 'index.php?option=com_rsmembership&view=payments');
JSubMenuHelper::addEntry(JText::_('RSM_FILES'), 'index.php?option=com_rsmembership&view=files');
JSubMenuHelper::addEntry(JText::_('RSM_FILE_TERMS'), 'index.php?option=com_rsmembership&view=terms');
JSubMenuHelper::addEntry(JText::_('RSM_USERS'), 'index.php?option=com_rsmembership&view=users');
JSubMenuHelper::addEntry(JText::_('RSM_FIELDS'), 'index.php?option=com_rsmembership&view=fields');
JSubMenuHelper::addEntry(JText::_('RSM_REPORTS'), 'index.php?option=com_rsmembership&view=reports', true);
JSubMenuHelper::addEntry(JText::_('RSM_CONFIGURATION'), 'index.php?option=com_rsmembership&view=configuration');
JSubMenuHelper::addEntry(JText::_('RSM_UPDATES'), 'index.php?option=com_rsmembership&view=updates');
$params = array();
$params['allowAllClose'] = true;
$pane =& JPane::getInstance('sliders', $params);
$this->assignRef('pane', $pane);
$date = RSMembershipHelper::getCurrentDate();
if (RSMembershipHelper::isJ16()) {
$date =& JFactory::getDate();
$date = $date->toUnix();
}
$this->assignRef('from_calendar', JHTML::_('calendar', '', 'from_date', 'rsm_from_calendar'));
$this->assignRef('to_calendar', JHTML::_('calendar', date('Y-m-d', $date), 'to_date', 'rsm_to_calendar'));
$this->assign('user_id', $this->get('userId'));
$this->assign('report', $this->get('report'));
$this->assign('count_memberships', $this->get('countMemberships'));
$color_pickers = !empty($this->report) && $this->report == 2 ? '4' : $this->count_memberships;
$this->assign('color_pickers', $color_pickers);
$lists['transaction_types'] = $this->get('transactiontypes');
$lists['memberships'] = $this->get('memberships');
$lists['memberships_transactions'] = $this->get('membershipstransactions');
$units = array();
$units[] = JHTML::_('select.option', 'day', JText::_('RSM_DAY'));
$units[] = JHTML::_('select.option', 'month', JText::_('RSM_MONTH'));
$units[] = JHTML::_('select.option', 'quarter', JText::_('RSM_QUARTER'));
$units[] = JHTML::_('select.option', 'year', JText::_('RSM_YEAR'));
$lists['unit'] = JHTML::_('select.genericlist', $units, 'unit');
$reports = array();
$reports[] = JHTML::_('select.option', 'report_1', JText::_('RSM_REPORT_1'));
$reports[] = JHTML::_('select.option', 'report_2', JText::_('RSM_REPORT_2'));
$lists['report'] = JHTML::_('select.genericlist', $reports, 'report', 'onchange="rsm_check_report(this.value);"');
$gateways = $this->assign('gateways', $this->get('gateways'));
$viewin = array();
$viewin[] = JHTML::_('select.option', 60, JText::_('RSM_MINUTES'));
$viewin[] = JHTML::_('select.option', 3600, JText::_('RSM_HOURS'));
$viewin[] = JHTML::_('select.option', 86400, JText::_('RSM_DAYS'));
$lists['viewin'] = JHTML::_('select.genericlist', $viewin, 'viewin', 'style="display: none;"');
$this->assignRef('lists', $lists);
$this->assign('customer', $this->get('customer'));
if ($this->get('ie')) {
JError::raiseWarning(500, JText::_('RSM_IE_WARNING'));
}
parent::display($tpl);
}
示例4: __construct
function __construct()
{
parent::__construct();
$document =& JFactory::getDocument();
// Add the css stylesheet
$document->addStyleSheet(JURI::root(true) . '/administrator/components/com_rsmembership/assets/css/rsmembership.css');
if (RSMembershipHelper::isJ16()) {
$document->addStyleSheet(JURI::root(true) . '/administrator/components/com_rsmembership/assets/css/rsmembership16.css');
}
// Set the database object
$this->_db =& JFactory::getDBO();
RSMembershipHelper::readConfig();
}
示例5: __construct
function __construct()
{
parent::__construct();
$user = JFactory::getUser();
if ($user->get('guest')) {
$mainframe =& JFactory::getApplication();
$link = JRequest::getURI();
$link = base64_encode($link);
$user_option = RSMembershipHelper::isJ16() ? 'com_users' : 'com_user';
$mainframe->redirect(JRoute::_('index.php?option=' . $user_option . '&view=login&return=' . $link, false));
}
$this->_execute();
}
示例6: plgSystemRSMembershipAuthorize
function plgSystemRSMembershipAuthorize(&$subject, $config)
{
parent::__construct($subject, $config);
$this->_plugin =& JPluginHelper::getPlugin('system', 'rsmembershipauthorize');
jimport('joomla.html.parameter');
$this->_params = new JParameter($this->_plugin->params);
if (!$this->canRun()) {
return;
}
RSMembership::addPlugin('Credit Card', 'rsmembershipauthorize');
$this->_db = JFactory::getDBO();
if (RSMembershipHelper::isJ16()) {
$this->joomla16prefix = 'rsmembershipauthorize/';
}
$lang =& JFactory::getLanguage();
$lang->load('plg_system_rsmembershipauthorize', JPATH_ADMINISTRATOR);
}
示例7: __construct
function __construct()
{
parent::__construct();
$mainframe =& JFactory::getApplication();
$option = 'com_rsmembership';
$user = JFactory::getUser();
if ($user->get('guest')) {
$link = JRequest::getURI();
$link = base64_encode($link);
$user_option = RSMembershipHelper::isJ16() ? 'com_users' : 'com_user';
$mainframe->redirect('index.php?option=' . $user_option . '&view=login&return=' . $link);
}
// Get pagination request variables
$limit = JRequest::getVar('limit', $mainframe->getCfg('list_limit'), '', 'int');
$limitstart = JRequest::getVar('limitstart', 0, '', 'int');
// In case limit has been changed, adjust it
$limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0;
$this->setState($option . '.memberships.limit', $limit);
$this->setState($option . '.memberships.limitstart', $limitstart);
$this->_query = $this->_buildQuery();
}
示例8: __construct
function __construct()
{
parent::__construct();
// large databases need lots of memory
ini_set('memory_limit', '128M');
$this->_db = JFactory::getDBO();
$this->_db->setQuery("SET SQL_BIG_SELECTS=1");
$this->_db->query();
$document =& JFactory::getDocument();
$document->addScript(JURI::base() . 'components/com_rsmembership/assets/js/rsmembership.js');
$document->addScript(JURI::base() . 'components/com_rsmembership/assets/js/bluff/js-class.js');
$document->addScript(JURI::base() . 'components/com_rsmembership/assets/js/bluff/bluff-min.js');
$document->addScript(JURI::base() . 'components/com_rsmembership/assets/js/bluff/excanvas.js');
$document->addScript(JURI::base() . 'components/com_rsmembership/assets/js/reports.js');
jimport('joomla.plugin.helper');
if (RSMembershipHelper::isJ16() || JPluginHelper::isEnabled('system', 'mtupgrade')) {
$document->addScript(JURI::base() . 'components/com_rsmembership/assets/js/rainbow12.js');
} else {
$document->addScript(JURI::base() . 'components/com_rsmembership/assets/js/rainbow.js');
}
$document->addStyleSheet(JURI::base() . 'components/com_rsmembership/assets/css/reports.css');
$this->_getMemberships();
}
示例9: _getRSMembershipHTML
function _getRSMembershipHTML($userName, $userId, $memberships, $Itemid)
{
ob_start();
$content = '';
if (!$memberships) {
?>
<div class="icon-nopost">
<?php
if (RSMembershipHelper::isJ16()) {
?>
<img src="<?php
echo JURI::base();
?>
plugins/community/plg_rsmembership/plg_rsmembership/favicon.png" alt="" />
<?php
} else {
?>
<img src="<?php
echo JURI::base();
?>
plugins/community/plg_rsmembership/favicon.png" alt="" />
<?php
}
?>
</div>
<div class="content-nopost">
<?php
echo JText::sprintf('RSM_NO_MEMBERSHIPS', $userName);
?>
</div>
<?php
} else {
?>
<div id="community-rsmembership-wrap">
<div class="ctitle"><?php
echo JText::_('RSM_MEMBERSHIPS');
?>
</div>
<table cellpadding="2" cellspacing="0" border="0" width="100%">
<?php
foreach ($memberships as $membership) {
?>
<tr>
<td width="15">
<?php
if (RSMembershipHelper::isJ16()) {
?>
<img src="<?php
echo JURI::base();
?>
plugins/community/plg_rsmembership/plg_rsmembership/favicon.png" alt="" />
<?php
} else {
?>
<img src="<?php
echo JURI::base();
?>
plugins/community/plg_rsmembership/favicon.png" alt="" />
<?php
}
?>
</td>
<td valign="top">
<a href="<?php
echo JRoute::_('index.php?option=com_rsmembership&view=membership&cid=' . $membership->id . ':' . JFilterOutput::stringURLSafe($membership->name) . '&Itemid=' . $Itemid);
?>
"><?php
echo $membership->name;
?>
</a>
</td>
<td align="right">
<?php
echo JText::sprintf('RSM_STARTED_EXPIRES', date(RSMembershipHelper::getConfig('date_format'), $membership->membership_start), date(RSMembershipHelper::getConfig('date_format'), $membership->membership_end));
?>
</td>
</tr>
<?php
}
?>
</table>
</div>
<?php
}
$content = ob_get_contents();
ob_end_clean();
return $content;
}
示例10: _buildQuery
function _buildQuery()
{
$layout = JRequest::getVar('layout');
$query = '';
switch ($layout) {
case 'article':
if (RSMembershipHelper::isJ16()) {
$query = "SELECT a.*, c.title AS categorytitle FROM #__content a LEFT JOIN #__categories c ON (c.id = a.catid) WHERE 1";
$filter_word = JRequest::getVar('search', '');
if (!empty($filter_word)) {
$query .= " AND a.`title` LIKE '%" . $this->_db->getEscaped($filter_word) . "%'";
}
$sortColumn = JRequest::getVar('filter_order', 'ordering');
$sortColumn = $this->_db->getEscaped($sortColumn);
$sortOrder = JRequest::getVar('filter_order_Dir', 'ASC');
$sortOrder = $this->_db->getEscaped($sortOrder);
$query .= " ORDER BY `" . $sortColumn . "` " . $sortOrder;
} else {
$query = "SELECT a.*, c.title AS categorytitle, s.title AS sectiontitle FROM #__content a LEFT JOIN #__categories c ON (c.id = a.catid) LEFT JOIN #__sections s ON (s.id = a.sectionid) WHERE 1";
$filter_word = JRequest::getVar('search', '');
if (!empty($filter_word)) {
$query .= " AND a.`title` LIKE '%" . $this->_db->getEscaped($filter_word) . "%'";
}
$sortColumn = JRequest::getVar('filter_order', 'ordering');
$sortColumn = $this->_db->getEscaped($sortColumn);
$sortOrder = JRequest::getVar('filter_order_Dir', 'ASC');
$sortOrder = $this->_db->getEscaped($sortOrder);
$query .= " ORDER BY `" . $sortColumn . "` " . $sortOrder;
}
break;
case 'section':
$query = "SELECT * FROM #__sections WHERE 1";
$filter_word = JRequest::getVar('search', '');
if (!empty($filter_word)) {
$query .= " AND `title` LIKE '%" . $this->_db->getEscaped($filter_word) . "%'";
}
$sortColumn = JRequest::getVar('filter_order', 'ordering');
$sortColumn = $this->_db->getEscaped($sortColumn);
$sortOrder = JRequest::getVar('filter_order_Dir', 'ASC');
$sortOrder = $this->_db->getEscaped($sortOrder);
$query .= " ORDER BY `" . $sortColumn . "` " . $sortOrder;
break;
case 'category':
if (RSMembershipHelper::isJ16()) {
$query = "SELECT * FROM #__categories WHERE `extension`='com_content' ";
$filter_word = JRequest::getVar('search', '');
if (!empty($filter_word)) {
$query .= " AND `title` LIKE '%" . $this->_db->getEscaped($filter_word) . "%'";
}
$sortColumn = JRequest::getVar('filter_order', 'title');
$sortColumn = $this->_db->getEscaped($sortColumn);
$sortOrder = JRequest::getVar('filter_order_Dir', 'ASC');
$sortOrder = $this->_db->getEscaped($sortOrder);
$query .= " ORDER BY `" . $sortColumn . "` " . $sortOrder;
} else {
$query = "SELECT * FROM #__categories WHERE 1";
$filter_word = JRequest::getVar('search', '');
if (!empty($filter_word)) {
$query .= " AND `title` LIKE '%" . $this->_db->getEscaped($filter_word) . "%'";
}
$sortColumn = JRequest::getVar('filter_order', 'ordering');
$sortColumn = $this->_db->getEscaped($sortColumn);
$sortOrder = JRequest::getVar('filter_order_Dir', 'ASC');
$sortOrder = $this->_db->getEscaped($sortOrder);
$query .= " ORDER BY `" . $sortColumn . "` " . $sortOrder;
}
break;
case 'module':
$query = "SELECT * FROM #__modules m WHERE 1";
$filter_word = JRequest::getVar('search', '');
if (!empty($filter_word)) {
$query .= " AND `title` LIKE '%" . $this->_db->getEscaped($filter_word) . "%' OR `module` LIKE '%" . $this->_db->getEscaped($filter_word) . "%'";
}
$sortColumn = JRequest::getVar('filter_order', 'client_id, position, ordering');
$sortColumn = $this->_db->getEscaped($sortColumn);
$sortOrder = JRequest::getVar('filter_order_Dir', 'ASC');
$sortOrder = $this->_db->getEscaped($sortOrder);
$query .= " ORDER BY " . $sortColumn . " " . $sortOrder;
break;
case 'menu':
if (RSMembershipHelper::isJ16()) {
$query = "SELECT id, title AS name, menutype, published FROM #__menu m WHERE published != '-2' AND client_id=0 AND `parent_id` > 0";
$filter_word = JRequest::getVar('search', '');
if (!empty($filter_word)) {
$query .= " AND `title` LIKE '%" . $this->_db->getEscaped($filter_word) . "%'";
}
$sortColumn = JRequest::getVar('filter_order', 'menutype, ordering');
$sortColumn = $this->_db->getEscaped($sortColumn);
$sortOrder = JRequest::getVar('filter_order_Dir', 'ASC');
$sortOrder = $this->_db->getEscaped($sortOrder);
$query .= " ORDER BY " . $sortColumn . " " . $sortOrder;
} else {
$query = "SELECT * FROM #__menu m WHERE published != '-2'";
$filter_word = JRequest::getVar('search', '');
if (!empty($filter_word)) {
$query .= " AND `name` LIKE '%" . $this->_db->getEscaped($filter_word) . "%'";
}
$sortColumn = JRequest::getVar('filter_order', 'menutype, ordering');
$sortColumn = $this->_db->getEscaped($sortColumn);
$sortOrder = JRequest::getVar('filter_order_Dir', 'ASC');
//.........这里部分代码省略.........
示例11:
?>
</span>
<span><?php
echo $this->pagination->orderDownIcon($j, $n, true, 'orderdown', 'Move Down', 'ordering');
?>
</span>
<input type="text" name="order[]" size="5" value="<?php
echo $row->ordering;
?>
" class="text_area" style="text-align:center" />
</td>
</tr>
<?php
$j++;
} else {
$link = RSMembershipHelper::isJ16() ? JRoute::_('index.php?option=com_rsmembership&task=editplugin&cid=' . $row->cid) : JRoute::_('index.php?option=com_plugins&view=plugin&client=site&task=edit&cid[]=' . $row->cid);
?>
<tr class="row<?php
echo $k;
?>
">
<td align="center"><?php
echo $i + 1;
?>
</td>
<td><a href="<?php
echo $link;
?>
"><?php
echo $this->escape($row->name);
?>
示例12: getMembership
function getMembership()
{
jimport('joomla.html.pagination');
$cid = JRequest::getVar('cid', 0);
if (is_array($cid)) {
$cid = $cid[0];
}
$cid = (int) $cid;
$row =& JTable::getInstance('RSMembership_Memberships', 'Table');
$row->load($cid);
$this->_db->setQuery("SELECT `extra_id` FROM #__rsmembership_membership_extras WHERE `membership_id`='" . $cid . "'");
$row->extras = $this->_db->loadResultArray();
$instances = RSMembership::getSharedContentPlugins();
$this->_db->setQuery("SELECT * FROM #__rsmembership_membership_shared WHERE `membership_id`='" . $cid . "' ORDER BY `ordering`");
$row->shared = $this->_db->loadObjectList();
foreach ($row->shared as $s => $shared) {
switch ($shared->type) {
default:
foreach ($instances as $instance) {
if (method_exists($instance, 'showUserFriendlyParams')) {
$instance->showUserFriendlyParams($shared);
}
}
$row->shared[$s] = $shared;
break;
case 'article':
$this->_db->setQuery("SELECT `title` FROM #__content WHERE `id`='" . (int) $shared->params . "'");
$row->shared[$s]->params = $this->_db->loadResult();
break;
case 'section':
$this->_db->setQuery("SELECT `title` FROM #__sections WHERE `id`='" . (int) $shared->params . "'");
$row->shared[$s]->params = $this->_db->loadResult();
break;
case 'category':
$this->_db->setQuery("SELECT `title` FROM #__categories WHERE `id`='" . (int) $shared->params . "'");
$row->shared[$s]->params = $this->_db->loadResult();
break;
case 'module':
$this->_db->setQuery("SELECT `title`, `module` FROM #__modules WHERE `id`='" . (int) $shared->params . "'");
$module = $this->_db->loadObject();
$row->shared[$s]->params = '(' . $module->module . ') ' . $module->title;
break;
case 'menu':
if (RSMembershipHelper::isJ16()) {
$this->_db->setQuery("SELECT `title` AS `name`, `menutype` FROM #__menu WHERE `id`='" . (int) $shared->params . "'");
} else {
$this->_db->setQuery("SELECT `name`, `menutype` FROM #__menu WHERE `id`='" . (int) $shared->params . "'");
}
$menu = $this->_db->loadObject();
$row->shared[$s]->params = '(' . $menu->menutype . ') ' . $menu->name;
break;
}
}
$row->sharedPagination = new JPagination(count($row->shared), 0, 0);
// attachments
$this->_db->setQuery("SELECT * FROM #__rsmembership_membership_attachments WHERE `membership_id`='" . $cid . "' ORDER BY `ordering`");
$attachments = $this->_db->loadObjectList();
foreach ($attachments as $attachment) {
$this->attachments[$attachment->email_type][] = $attachment;
}
foreach ($this->attachments as $email_type => $attachments) {
$this->attachmentsPagination[$email_type] = new JPagination(count($attachments), 0, 0);
}
return $row;
}
示例13: onMembershipPayment
function onMembershipPayment($plugin, $data, $extra, $membership, &$transaction)
{
if (!$this->canRun()) {
return;
}
if ($plugin != $this->_plugin->name) {
return false;
}
$this->loadLanguage('plg_system_rsmembership');
$this->loadLanguage('plg_system_rsmembershipauthorize');
$document =& JFactory::getDocument();
$document->addScript(JURI::root() . 'plugins/system/' . $this->joomla16prefix . 'rsmembershipauthorize/script.js');
$document->addStyleSheet(JURI::root() . 'plugins/system/' . $this->joomla16prefix . 'rsmembershipauthorize/style.css');
JHTML::_('behavior.tooltip');
$fields = $this->_getFields();
$transaction->gateway = 'Authorize.Net';
$html = '';
$html .= '<form method="post" class="rsmembership_form" action="' . JRoute::_('index.php?option=com_rsmembership&task=thankyou') . '" onsubmit="return rsm_check_authorize(\'' . JRoute::_('index.php?option=com_rsmembership&plugin_task=authorize') . '\');">';
$html .= '<fieldset>';
$html .= '<legend>' . JText::_('RSM_AUTHORIZE_CARD_INFO') . '</legend>';
$html .= '<table cellpadding="0" cellspacing="0" border="0" width="100%" class="rsmembership_form_table">';
$html .= '<tr>';
$html .= '<td height="40">' . $fields['cc_image'][0] . '</td>';
$html .= '<td>' . $fields['cc_image'][1] . '</td>';
$html .= '</tr>';
$html .= '<tr>';
$html .= '<td height="40">' . $fields['cc_number'][0] . '</td>';
$html .= '<td>' . $fields['cc_number'][1] . ' ' . $fields['csc_number'][0] . ' ' . $fields['csc_number'][1] . ' <span id="rsm_whats_csc" onmouseover="rsm_tooltip.show(\'rsm_tooltip\');" onmouseout="rsm_tooltip.hide();">' . JText::_('RSM_AUTHORIZE_WHATS_CSC') . '</span></td>';
$html .= '</tr>';
$html .= '<tr>';
$html .= '<td height="40">' . JText::_('RSM_AUTHORIZE_EXP_DATE') . '</td>';
$html .= '<td>' . $fields['cc_exp_mm'][0] . ' ' . $fields['cc_exp_mm'][1] . ' ' . $fields['cc_exp_yy'][0] . ' ' . $fields['cc_exp_yy'][1] . '</td>';
$html .= '</tr>';
$html .= '<tr>';
$html .= '<td height="40">' . $fields['cc_fname'][0] . '</td>';
$html .= '<td>' . $fields['cc_fname'][1] . '</td>';
$html .= '</tr>';
$html .= '<tr>';
$html .= '<td height="40">' . $fields['cc_lname'][0] . '</td>';
$html .= '<td>' . $fields['cc_lname'][1] . '</td>';
$html .= '</tr>';
$html .= '<tr>';
$html .= '<td height="40" colspan="2">' . JText::sprintf('RSM_AUTHORIZE_PRICE_DESC', RSMembershipHelper::getPriceFormat($transaction->price)) . '</td>';
$html .= '</tr>';
$html .= '</table>';
$html .= '</fieldset>';
$html .= '<input class="button" type="submit" id="rsm_pay_button" value="' . JText::_('RSM_AUTHORIZE_PAY_NOW') . '" />';
$html .= JHTML::image('components/com_rsmembership/assets/images/load.gif', 'Loading', 'id="rsm_loading" style="display: none;"');
$html .= '<input type="hidden" name="membership_id" id="membership_id" value="' . $membership->id . '" />';
$html .= '<input type="hidden" name="option" value="com_rsmembership" />';
$html .= '<input type="hidden" name="task" value="thankyou" />';
$html .= '</form>';
$html .= '<div id="rsm_response" class="rsm_response_error">';
$html .= '</div>';
$html .= '<div id="rsm_tooltip" style="display: none;">';
if (RSMembershipHelper::isJ16()) {
$html .= '<div>' . JText::_('RSM_AUTHORIZE_WHATS_CSC_DESC', true) . '</div><div align="center">' . JHTML::image('plugins/system/' . $this->joomla16prefix . 'rsmembershipauthorize/images/cc_csc.gif', 'CSC') . '</div>';
}
$html .= '</div>';
$warning = JHTML::image('plugins/system/' . $this->joomla16prefix . 'rsmembershipauthorize/images/warning.png', 'Warning', array('id' => 'rsm_warning'));
$html .= '<script type="text/javascript">';
$html .= 'function rsm_get_error_message(code) {';
$html .= 'if (code == 0) return \'' . $warning . ' ' . JText::_('RSM_AUTHORIZE_ERRORS', true) . '\';';
$html .= '}';
$html .= '</script>';
return $html;
}
示例14: defined
<?php
/**
* @version 1.0.0
* @package RSMembership! 1.0.0
* @copyright (C) 2009-2010 www.rsjoomla.com
* @license GPL, http://www.gnu.org/licenses/gpl-2.0.html
*/
defined('_JEXEC') or die('Restricted access');
?>
<?php
if (RSMembershipHelper::isJ16()) {
?>
<?php
if ($this->params->get('show_page_heading', 1)) {
?>
<h1><?php
echo $this->escape($this->params->get('page_title'));
?>
</h1>
<?php
}
} else {
?>
<?php
if ($this->params->get('show_page_title', 1)) {
?>
<div class="componentheading<?php
echo $this->escape($this->params->get('pageclass_sfx'));
?>
示例15: getMemberships
function getMemberships()
{
$return = array();
$categories = $this->_getList("SELECT name, id FROM #__rsmembership_categories ORDER BY `ordering` ASC");
$memberships = $this->_getList("SELECT id, name, category_id FROM #__rsmembership_memberships ORDER BY `ordering` ASC");
$tmp = new stdClass();
$tmp->id = 0;
$tmp->name = JText::_('RSM_NO_CATEGORY');
if (is_array($categories)) {
array_unshift($categories, $tmp);
}
foreach ($categories as $category) {
$return[] = JHTML::_('select.optgroup', $category->name);
foreach ($memberships as $membership) {
if ($membership->category_id != $category->id) {
continue;
}
$return[] = JHTML::_('select.option', $membership->id, $membership->name);
}
if (!RSMembershipHelper::isJ16()) {
$optgroup = new stdClass();
$optgroup->value = '</OPTGROUP>';
$optgroup->text = '';
$return[] = $optgroup;
}
}
return $return;
}