• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP JROUTE类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中JROUTE的典型用法代码示例。如果您正苦于以下问题:PHP JROUTE类的具体用法?PHP JROUTE怎么用?PHP JROUTE使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了JROUTE类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: getData

	function getData() {

		$id = JRequest::getInt('id');
		$db = & JFactory::getDBO();
		$query = "SELECT * FROM #__k2_items WHERE id={$id}";
		$db->setQuery($query, 0, 1);
		$row = $db->loadObject();

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// OSE Added - OSE and Open Source Excellence is the registered trade mark of the Open Source Excellence PTE LTD.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		require_once(JPATH_SITE.DS.'components'.DS.'com_osemsc'.DS.'init.php');

		$content_ids = oseRegistry::call('content')->getRestrictedContent('k2','article');

		if(in_array($id,$content_ids))
		{
			$row->introtext = $row->introtext.'<br /> This content is members only, please <a href="'.JROUTE::_('index.php?option=com_osemsc&view=register').'">subscribe a membership plan first</a>';
			$row->fulltext = '';
			$row->mscControlled = true;
			$row->mscControlClass = 'osemsc-control';
		}
		else
		{
			$row->mscControlClass = 'osemsc-free';
			$row->mscControlled = false;
		}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// OSE Added - OSE and Open Source Excellence is the registered trade mark of the Open Source Excellence PTE LTD.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////

		return $row;
	}
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:34,代码来源:item.php


示例2: render

    function render($position = "")
    {
        global $gantry;
        ob_start();
        ?>
		<div class="rt-block">
			<div id="rt-accessibility">
				<div class="rt-desc"><?php 
        echo JText::_('TEXT_SIZE');
        ?>
</div>
				<div id="rt-buttons">
					<a href="<?php 
        echo JROUTE::_($gantry->addQueryStringParams($gantry->getCurrentUrl(array('reset-settings')), array('font-size' => 'smaller')));
        ?>
" title="<?php 
        echo JText::_('DEC_FONT_SIZE');
        ?>
" class="small"><span class="button"></span></a>
					<a href="<?php 
        echo JROUTE::_($gantry->addQueryStringParams($gantry->getCurrentUrl(array('reset-settings')), array('font-size' => 'larger')));
        ?>
" title="<?php 
        echo JText::_('INC_FONT_SIZE');
        ?>
" class="large"><span class="button"></span></a>
				</div>
			</div>
			<div class="clear"></div>
		</div>
		<?php 
        return ob_get_clean();
    }
开发者ID:atikahmed,项目名称:joomla-probid,代码行数:33,代码来源:fontsizer.php


示例3: render

    function render($position = "")
    {
        global $gantry;
        ob_start();
        ?>
		<div class="rt-block">
			<div id="rt-accessibility">
				<div class="rt-desc"><?php 
        echo JText::_('TEXT_SIZE');
        ?>
</div>
				<div id="rt-buttons">
					<a href="<?php 
        echo JROUTE::_($gantry->getCurrentUrl() . "font-size=larger");
        ?>
" title="<?php 
        echo JText::_('INC_FONT_SIZE');
        ?>
" class="large"><span class="button"></span></a>
					<a href="<?php 
        echo JROUTE::_($gantry->getCurrentUrl() . "font-size=smaller");
        ?>
" title="<?php 
        echo JText::_('DEC_FONT_SIZE');
        ?>
" class="small"><span class="button"></span></a>
				</div>
			</div>
			<div class="clear"></div>
		</div>
		<?php 
        return ob_get_clean();
    }
开发者ID:KIZI,项目名称:sewebar-cms,代码行数:33,代码来源:fontsizer.php


示例4: display

 function display($cachable = false, $urlparams = false)
 {
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $menuItem = $app->getMenu()->getActive();
     if (is_object($menuItem)) {
         $mcatid = $menuItem->params->get('mcatid', '');
         $filter_category = !is_array($mcatid) ? array($mcatid) : $mcatid;
     } else {
         $filter_category = '';
     }
     $items = $this->get('Records');
     //		$Itemid		= $app->input->getInt('Itemid');
     $Itemid = JRequest::getInt('Itemid');
     foreach ($items as $item) {
         if (!in_array('', $filter_category) && !in_array('0', $filter_category) && in_array($item->catid, $filter_category) || in_array('', $filter_category) || in_array('0', $filter_category)) {
             // Load individual item creator class.
             $feeditem = new JFeedItem();
             $feeditem->title = $item->title . ' (' . $item->category . ')';
             $feeditem->link = JROUTE::_('index.php?option=com_icagenda&view=list&layout=event&Itemid=' . (int) $Itemid . '&id=' . (int) $item->id . ':' . $item->alias);
             $feeditem->image = icagendaThumb::sizeMedium($item->image);
             $feeditem->description = '<img src="' . $feeditem->image . '" alt="" style="margin: 5px; float: left;">' . $item->desc;
             $feeditem->date = $item->next;
             $feeditem->category = $item->category;
             // Loads item information into RSS array
             $document->addItem($feeditem);
         }
     }
 }
开发者ID:esorone,项目名称:efcpw,代码行数:29,代码来源:view.feed.php


示例5: plgVmConfirmedOrder

 function plgVmConfirmedOrder($cart, $order)
 {
     if (!($method = $this->getVmPluginMethod($order["details"]["BT"]->virtuemart_paymentmethod_id))) {
         return null;
     }
     if (!$this->selectedThisElement($method->payment_element)) {
         return false;
     }
     $this->logInfo('plgVmOnConfirmedOrderGetPaymentForm order number: ' . $order['details']['BT']->order_number, 'message');
     $lang = JFactory::getLanguage();
     $lang->load('plg_vmpayment_epay', JPATH_ADMINISTRATOR);
     if (!class_exists('VirtueMartModelOrders')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'orders.php';
     }
     if (!class_exists('VirtueMartModelCurrency')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'currency.php';
     }
     $new_status = '';
     $usrBT = $order['details']['BT'];
     $address = isset($order['details']['ST']) ? $order['details']['ST'] : $order['details']['BT'];
     $vendorModel = new VirtueMartModelVendor();
     $vendorModel->setId(1);
     $vendor = $vendorModel->getVendor();
     $this->getPaymentCurrency($method);
     $q = ' SELECT `currency_numeric_code` FROM `#__virtuemart_currencies` WHERE `virtuemart_currency_id`="' . $method->payment_currency . '" ';
     $db =& JFactory::getDBO();
     $db->setQuery($q);
     $currency_numeric_code = $db->loadResult();
     $paymentCurrency = CurrencyDisplay::getInstance($method->payment_currency);
     $totalInPaymentCurrency = round($paymentCurrency->convertCurrencyTo($method->payment_currency, $order['details']['BT']->order_total, false), 2);
     $cd = CurrencyDisplay::getInstance($cart->pricesCurrency);
     $session = JFactory::getSession();
     $post_variables = array('merchantnumber' => $method->epay_merchant, 'instantcapture' => $method->epay_instantcapture, 'ownreceipt' => $method->epay_ownreceipt, 'group' => $method->epay_group, 'mailreceipt' => $method->epay_authmail, 'language' => $this->_getEpayLanguage(), 'orderid' => $order['details']['BT']->order_number, "amount" => $totalInPaymentCurrency * 100, "currency" => $currency_numeric_code, "accepturl" => JROUTE::_(JURI::root() . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&pm=' . $order['details']['BT']->virtuemart_paymentmethod_id), "callbackurl" => JROUTE::_(JURI::root() . 'index.php?callback=1&option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&pm=' . $order['details']['BT']->virtuemart_paymentmethod_id), "cancelurl" => JROUTE::_(JURI::root() . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginUserPaymentCancel&on=' . $order['details']['BT']->order_number . '&pm=' . $order['details']['BT']->virtuemart_paymentmethod_id), "windowstate" => $method->epay_windowstate);
     $hash = md5(implode($post_variables, "") . $method->epay_md5key);
     // Prepare data that should be stored in the database
     $dbValues['payment_name'] = $this->renderPluginName($method, $order);
     $dbValues['order_number'] = $order['details']['BT']->order_number;
     $dbValues['virtuemart_paymentmethod_id'] = $cart->virtuemart_paymentmethod_id;
     $this->storePSPluginInternalData($dbValues);
     // add spin image
     $html = '<script type="text/javascript" src="https://ssl.ditonlinebetalingssystem.dk/integration/ewindow/paymentwindow.js" charset="UTF-8"></script>';
     $html .= '<script type="text/javascript">';
     $html .= 'paymentwindow = new PaymentWindow({';
     foreach ($post_variables as $name => $value) {
         $html .= '\'' . $name . '\': "' . $value . '",';
     }
     $html .= '\'hash\': "' . $hash . '"';
     $html .= '});';
     $html .= '</script><input type="button" onclick="javascript: paymentwindow.open()" value="Go to payment" />';
     $html .= ' <script type="text/javascript">';
     $html .= ' paymentwindow.open();';
     $html .= ' </script>';
     // 	2 = don't delete the cart, don't send email and don't redirect
     $cart->_confirmDone = false;
     $cart->_dataValidated = false;
     $cart->setCartIntoSession();
     JRequest::setVar('html', $html);
 }
开发者ID:ePay,项目名称:virtuemart3,代码行数:58,代码来源:epay.php


示例6: PayFastOneOffPostForm

 function PayFastOneOffPostForm($orderInfo, $params = array())
 {
     $pConfig = oseMscConfig::getConfig('payment', 'obj');
     $merchantId = $pConfig->payfast_merchant_id;
     $merchantKey = $pConfig->payfast_merchant_key;
     $html = array();
     $test_mode = $pConfig->payfast_testmode;
     if (!$test_mode) {
         if (empty($merchantId) || empty($merchantKey)) {
             $html['form'] = "";
             $html['url'] = "";
             return $html;
         }
     }
     if ($test_mode == true) {
         $merchantId = '10000100';
         $merchantKey = '46f0cd694581a';
         $url = "https://sandbox.payfast.co.za/eng/process";
     } else {
         $url = "https://www.payfast.co.za/eng/process";
     }
     $db = oseDB::instance();
     $member = oseRegistry::call('member');
     $member->instance($orderInfo->user_id);
     $payment = oseRegistry::call('payment');
     $paymentOrder = $payment->getInstance('Order');
     $billinginfo = $paymentOrder->getBillingInfo($orderInfo->user_id);
     $amount = $orderInfo->payment_price;
     $currency = $orderInfo->payment_currency;
     $order_id = $orderInfo->order_id;
     $order_number = $orderInfo->order_number;
     $user =& JFactory::getUser($orderInfo->user_id);
     $orderInfoParams = oseJson::decode($orderInfo->params);
     $cancelUrl = JURI::base() . "index.php";
     $notifyUrl = JURI::base() . "components/com_osemsc/ipn/payfast_notify.php";
     $returnUrl = urldecode(JROUTE::_(JURI::base() . "index.php?option=com_osemsc&view=thankyou&order_id=" . $orderInfo->order_id));
     $returnUrl = $returnUrl ? $returnUrl : JURI::base() . "index.php?option=com_osemsc&view=member&result=success&amount={$amount}&ordernumber={$order_number}";
     // Create description
     $description = '';
     $vendor_image_url = "";
     $app =& JFactory::getApplication();
     $currentSession = JSession::getInstance('none', array());
     $stores = $currentSession->getStores();
     $html['form'] = '<form action="' . $url . '" method="post">';
     // Construct variables for post
     $post_variables = array('merchant_id' => $merchantId, 'merchant_key' => $merchantKey, 'return_url' => $returnUrl, 'cancel_url' => $cancelUrl, 'notify_url' => $notifyUrl, 'name_first' => substr($billinginfo->firstname, 0, 100), 'name_last' => substr($billinginfo->lastname, 0, 100), 'email_address' => substr($billinginfo->email, 0, 255), 'item_name' => JText::_('Order ID: ') . $order_id, 'item_description' => $description, 'amount' => number_format($amount, 2, '.', ''), 'm_payment_id' => $order_id, 'currency_code' => $currency, 'custom_str1' => $order_number, 'user_agent' => 'Open Source Membership Control V5');
     $html['form'] .= '<input type="image" id="payfast_image" name="cartImage" src="' . "components/com_osemsc/assets/images/checkout.png" . '" alt="' . JText::_('Click to pay with PayFast') . '" />';
     // Process payment variables;
     $html['url'] = $url . "?";
     foreach ($post_variables as $name => $value) {
         $html['form'] .= '<input type="hidden" name="' . $name . '" value="' . htmlspecialchars($value) . '" />';
         $html['url'] .= $name . "=" . urlencode($value) . "&";
     }
     $html['form'] .= '</form>';
     return $html;
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:56,代码来源:osePaymentOrderpayfast.php


示例7: panelButton

 /**
  * Display an image icon for the given image and create a link to the given link.
  *
  * @param string $link Link to use in the href tag
  * @param string $image Name of the image file to display
  * @param string $text Text to use for the image alt text and to display under the image.
  * @param string $route internal links.
  */
 public function panelButton($link, $imageclass, $text, $route = true)
 {
     if ($route === true) {
         $link = JROUTE::_('index.php?option=com_virtuemart&view=' . $link . $this->tmpl);
     }
     $button = '<a class="span12 hasTooltip" title="' . $text . '" href="' . $link . '">';
     $button .= '<i class="' . $imageclass . '"></i> ';
     $button .= $text . '</a>';
     echo $button;
 }
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:18,代码来源:view.html.php


示例8: init

 function init()
 {
     global $gantry;
     if ($this->get('enabled')) {
         $gantry->addScript('gantry-morearticles.js');
         $queryUrl = JROUTE::_($gantry->addQueryStringParams($gantry->getCurrentUrl($gantry->_setbyurl), array('tmpl' => 'component', 'type' => 'raw')));
         $gantry->addInlineScript("window.addEvent('domready', function() { new GantryMoreArticles({'leadings': " . $this->_getCurrentLeadingArticles() . ", 'moreText': '" . addslashes($this->get('text')) . "', 'url': '" . $queryUrl . "'}); })");
         if ($gantry->get('morearticles-pagination')) {
             $gantry->addInlineStyle('.rt-pagination {display: none;}');
         }
     }
 }
开发者ID:resmun,项目名称:template-hawk1-j25,代码行数:12,代码来源:morearticles.php


示例9: render

	function render($position="") {
		global $gantry;
	    ob_start();
	    ?>
		<div class="rt-block">
			<span  id="gantry-resetsettings">
				<a href="<?php echo JROUTE::_($gantry->addQueryStringParams($gantry->getCurrentUrl($gantry->_setbyurl),array('reset-settings'=>''))); ?>"><?php echo $this->get('text'); ?></a>
			</span>
		</div>
		<?php
	    return ob_get_clean();
	}
开发者ID:rkern21,项目名称:videoeditor,代码行数:12,代码来源:resetsettings.php


示例10: QuickpayOneOffPay

 function QuickpayOneOffPay($orderInfo, $params = array())
 {
     $pConfig = oseMscConfig::getConfig('payment', 'obj');
     $merchant = $pConfig->quickpay_merchant;
     $secret = $pConfig->quickpay_secret;
     $test_mode = $pConfig->quickpay_testmode;
     $cardtypelock = $pConfig->quickpay_cardtypelock;
     $autocapture = $pConfig->quickpay_autocapture;
     $autofee = $pConfig->quickpay_autofee;
     $lang = empty($pConfig->quickpay_lang) ? 'en' : $pConfig->quickpay_lang;
     $db = oseDB::instance();
     $member = oseRegistry::call('member');
     $member->instance($orderInfo->user_id);
     $payment = oseRegistry::call('payment');
     $paymentOrder = $payment->getInstance('Order');
     $billinginfo = $paymentOrder->getBillingInfo($orderInfo->user_id);
     $amount = $orderInfo->payment_price * 100;
     $currency = $orderInfo->payment_currency;
     $order_id = $orderInfo->order_id;
     $order_number = $orderInfo->order_number;
     $desc = self::generateDesc($order_id);
     $user =& JFactory::getUser($orderInfo->user_id);
     $order_id = sprintf("%04d", $order_id);
     $orderInfoParams = oseJson::decode($orderInfo->params);
     //$cancelUrl = JURI :: base()."index.php";
     $notifyUrl = JURI::base() . "components/com_osemsc/ipn/quickpay_notify.php";
     $returnUrl = urldecode(JROUTE::_(JURI::base() . "index.php?option=com_osemsc&view=thankyou&order_id=" . $orderInfo->order_id));
     $returnUrl = $returnUrl ? $returnUrl : JURI::base() . "index.php?option=com_osemsc&view=member&result=success&amount={$amount}&ordernumber={$order_number}";
     $date = oseHTML::getDateTime();
     $url = "https://secure.quickpay.dk/form/";
     $html['form'] = '<form action="' . $url . '" method="post">';
     // Construct variables for post
     $post_variables = array('protocol' => 5, 'msgtype' => 'authorize', 'merchant' => $merchant, 'language' => $lang, 'ordernumber' => $order_id, 'amount' => $amount, 'currency' => $currency, 'continueurl' => $returnUrl, 'continueurl' => $returnUrl, 'cancelurl' => $returnUrl, 'callbackurl' => $notifyUrl, 'autocapture' => $autocapture, 'autofee' => $autofee, 'cardtypelock' => $cardtypelock, 'description' => $desc, 'testmode' => $test_mode);
     $md5String = '';
     foreach ($post_variables as $name => $value) {
         $md5String .= $value;
     }
     $md5String .= $secret;
     $post_variables['md5check'] = md5($md5String);
     //print_r($post_variables);exit;
     $html['form'] .= '<input type="image" id="quickpay_image" name="cartImage" src="' . "components/com_osemsc/assets/images/checkout.png" . '" alt="' . JText::_('Click to pay with Quickpay') . '" />';
     // Process payment variables;
     $html['url'] = $url . "?";
     foreach ($post_variables as $name => $value) {
         $html['form'] .= '<input type="hidden" name="' . $name . '" value="' . htmlspecialchars($value) . '" />';
         $html['url'] .= $name . "=" . urlencode($value) . "&";
     }
     $html['form'] .= '</form>';
     return $html;
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:50,代码来源:osePaymentOrderQuickpay.php


示例11: PagSeguroOneOffPay

 function PagSeguroOneOffPay($orderInfo, $params = array())
 {
     require_once OSEMSC_B_LIB . DS . 'PagSeguroLibrary' . DS . 'PagSeguroLibrary.php';
     $pConfig = oseMscConfig::getConfig('payment', 'obj');
     $account = $pConfig->pagseguro_account;
     $token = $pConfig->pagseguro_token;
     $paymentRequest = new PaymentRequest();
     $payment = oseRegistry::call('payment');
     $paymentOrder = $payment->getInstance('Order');
     $billinginfo = $paymentOrder->getBillingInfo($orderInfo->user_id);
     $address = $billinginfo->addr1 . ' ' . $billinginfo->addr2;
     $orderInfoParams = oseJson::decode($orderInfo->params);
     $redirectUrl = urldecode(JROUTE::_(JURI::base() . "index.php?option=com_osemsc&view=thankyou&order_id=" . $orderInfo->order_id));
     $redirectUrl = $redirectUrl ? $redirectUrl : JURI::root() . "index.php?option=com_osemsc&view=member";
     $des = $this->generateDesc($orderInfo->order_id);
     // Sets the currency
     $paymentRequest->setCurrency($orderInfo->payment_currency);
     // Add an item for this payment request
     $paymentRequest->addItem($orderInfo->order_id, $des, 1, $orderInfo->payment_price);
     // Sets a reference code for this payment request, it is useful to identify this payment in future notifications.
     $paymentRequest->setReference($orderInfo->order_number);
     // Sets shipping information for this payment request
     $CODIGO_SEDEX = ShippingType::getCodeByType('SEDEX');
     $paymentRequest->setShippingType($CODIGO_SEDEX);
     $paymentRequest->setShippingAddress('', $address, $billinginfo->telephone, null, null, $billinginfo->city, $billinginfo->state, $billinginfo->country);
     // Sets your customer information.
     $paymentRequest->setSender($billinginfo->firstname . ' ' . $billinginfo->lastname, $billinginfo->email, null, null);
     $redirectUrl = str_replace('https://', '', $redirectUrl);
     $redirectUrl = str_replace('http://', '', $redirectUrl);
     $paymentRequest->setRedirectUrl($redirectUrl);
     $result = array();
     $result['payment_method'] = 'pagseguro';
     try {
         $credentials = new AccountCredentials($account, $token);
         $url = $paymentRequest->register($credentials);
         $result['success'] = true;
         $result['url'] = $url;
     } catch (PagSeguroServiceException $e) {
         $result['success'] = false;
         $result['title'] = 'Error';
         $result['content'] = $e->getMessage();
         //$result['url'] = '';
     }
     return $result;
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:45,代码来源:osePaymentOrderPagSeguro.php


示例12: render

    function render($position = "")
    {
        global $gantry;
        ob_start();
        ?>
		<div class="clear"></div>
		<span  id="gantry-resetsettings">
			[ <a href="<?php 
        echo JROUTE::_($gantry->getCurrentUrl() . "reset-settings");
        ?>
"><?php 
        echo $this->get('text');
        ?>
</a> ]
		</span>
		<div class="clear"></div>
		<?php 
        return ob_get_clean();
    }
开发者ID:KIZI,项目名称:sewebar-cms,代码行数:19,代码来源:resetsettings.php


示例13: render

    function render($position)
    {
        /** @var $gantry Gantry */
        global $gantry;
        ob_start();
        ?>
	<div class="clear"></div>
	<span id="gantry-resetsettings">
			[ <a href="<?php 
        echo JROUTE::_($gantry->addQueryStringParams($gantry->getCurrentUrl($gantry->_setbyurl), array('reset-settings' => '')));
        ?>
" rel="nofollow"><?php 
        echo $this->get('text');
        ?>
</a> ]
		</span>
	<div class="clear"></div>
	<?php 
        return ob_get_clean();
    }
开发者ID:bobozhangshao,项目名称:HeartCare,代码行数:20,代码来源:resetsettings.php


示例14: createHtml

 public function createHtml(Email $email, $contato)
 {
     $html = file_get_contents($email->file_url);
     preg_match_all('#<img.*?src="(.+?)".*?/>#', $html, $result);
     for ($i = 0; $i < count($result[0]); $i++) {
         $img = $result[0][$i];
         $file = $result[1][$i];
         $fileNew = $email->base_url . '/' . $file;
         $imgNew = str_replace($file, $fileNew, $img);
         $html = str_replace($img, $imgNew, $html);
     }
     $u =& JURI::getInstance();
     $host = $u->getScheme() . '://' . $u->getHost();
     $sid = $this->getSID($email->id, $contato);
     preg_match('#<body.*?>#', $html, $result);
     $link = $host . JROUTE::_('index.php?option=com_edesktop&view=mailing&layout=exibir&id=' . $email->id . '&e=' . $contato . '&sid=' . $sid . '&Itemid=200');
     $linkTopo = $result[0] . '<center><font size="1" color="#000000" face="Arial">Caso não consiga visualizar este e-mail corretamente, <a href="' . $link . '" style="color:#0000ff;">clique aqui!</a></font></center><br />' . "\n";
     $html = str_replace($result[0], $linkTopo, $html);
     return $html;
 }
开发者ID:eliasrosa,项目名称:eJoomla,代码行数:20,代码来源:mailing.php


示例15: display

 function display($cachable = false, $urlparams = false)
 {
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $items = $this->get('Records');
     //		$Itemid		= $app->input->getInt('Itemid');
     $Itemid = JRequest::getInt('Itemid');
     foreach ($items as $item) {
         // Load individual item creator class.
         $feeditem = new JFeedItem();
         $feeditem->title = $item->title;
         $feeditem->link = JROUTE::_('index.php?option=com_icagenda&view=list&layout=event&Itemid=' . (int) $Itemid . '&id=' . (int) $item->id);
         //			$feeditem->image		= iCagendaThumb::sizeMedium($item->image);
         //			$feeditem->description	= '<img src="' . $feeditem->image . '" alt="" style="margin: 5px; float: left;">' . $item->desc;
         $feeditem->description = $item->desc;
         $feeditem->date = $item->next;
         $feeditem->category = $item->catid;
         // Loads item information into RSS array
         $document->addItem($feeditem);
     }
 }
开发者ID:richardgarcia7,项目名称:apc-softdev-gd121mi122-06,代码行数:21,代码来源:view.feed.php


示例16: onShowUserDisplayUserfield

 function onShowUserDisplayUserfield($userId, $fieldName)
 {
     if ($userId == 0) {
         return;
     }
     $html = '';
     if (!class_exists('VmHTML')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'html.php';
     }
     $view = vRequest::getString('view', '');
     $this->loadJLang('plg_vmpayment_realex_hpp_api', 'vmpayment');
     if ($view == 'user') {
         $storedCreditCards = $this->getStoredCreditCards($userId);
         if (empty($storedCreditCards)) {
             return vmText::_('VMUSERFIELD_REALEX_HPP_API_NO_CARD_SAVED');
         }
         //$storedCreditCards = $this->isValidExpiredDate($storedCreditCards);
         $deleteUpdateAuthorized = true;
         $html = $this->renderByLayout("creditcardlist", array("storedCreditCards" => $storedCreditCards, 'deleteUpdateAuthorized' => $deleteUpdateAuthorized));
     } elseif ($view == 'order') {
         $userlink = JROUTE::_('index.php?option=com_virtuemart&view=user&task=edit&virtuemart_user_id[]=' . $userId, FALSE);
         $html = JHTML::_('link', JRoute::_($userlink, FALSE), JText::_('VMUSERFIELD_REALEX_HPP_API_MANAGE_CARDS'), array('title' => JText::_('VMUSERFIELD_REALEX_HPP_API_MANAGE_CARDS')));
     }
     return $html;
 }
开发者ID:juanmcortez,项目名称:Lectorum,代码行数:25,代码来源:realex_hpp_api.php


示例17: count

                </thead>
                <?php 
$k = 0;
$add_new = $show_edit_in_line == 1 && count($cid) == 0;
if ($add_new) {
    $item = new stdClass();
    $item->published = 1;
    array_unshift($this->items, $item);
}
for ($i = 0, $n = count($this->items); $i < $n; $i++) {
    $row = $this->items[$i];
    $checked = JHtml::_('grid.id', $i, $row->tsmart_cityarea_id);
    $published = $this->gridPublished($row, $i);
    $editlink = JROUTE::_('index.php?option=com_tsmart&view=cityarea&task=edit_in_line&cid[]=' . $row->tsmart_cityarea_id);
    $edit = $this->gridEdit($row, $i, 'tsmart_cityarea_id', $editlink);
    $save_link = JROUTE::_('index.php?option=com_tsmart&view=cityarea&task=save_in_line&cid[]=' . $row->tsmart_cityarea_id);
    $save = $this->grid_save_in_line($row, $i, 'tsmart_cityarea_id', $save_link);
    $delete = $this->grid_delete_in_line($row, $i, 'tsmart_cityarea_id');
    $cancel = $this->grid_cancel_in_line($row, $i, 'tsmart_cityarea_id');
    $show_edit = $show_edit_in_line == 1 && in_array($row->tsmart_cityarea_id, $cid) || $show_edit_in_line == 1 && count($cid) == 0 && $i == 0;
    ?>
                    <tr class="row<?php 
    echo $k;
    ?>
">
                        <td class="admin-checkbox">
                            <?php 
    if ($show_edit) {
        ?>
                                <?php 
        echo VmHTML::inputHidden(array(tsmart_cityarea_id => $row->tsmart_cityarea_id));
开发者ID:cuongnd,项目名称:etravelservice,代码行数:31,代码来源:default.php


示例18: plgVmConfirmedOrder

	/**
	 * @param $cart
	 * @param $order
	 * @return bool|null
	 */
	function plgVmConfirmedOrder ($cart, $order) {

		if (!($method = $this->getVmPluginMethod ($order['details']['BT']->virtuemart_paymentmethod_id))) {
			return NULL; // Another method was selected, do nothing
		}
		if (!$this->selectedThisElement ($method->payment_element)) {
			return FALSE;
		}
		$session = JFactory::getSession ();
		$return_context = $session->getId ();
		$this->_debug = $method->debug;
		$this->logInfo ('plgVmConfirmedOrder order number: ' . $order['details']['BT']->order_number, 'message');

		if (!class_exists ('VirtueMartModelOrders')) {
			require(JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'orders.php');
		}
		if (!class_exists ('VirtueMartModelCurrency')) {
			require(JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'currency.php');
		}

		$address = ((isset($order['details']['ST'])) ? $order['details']['ST'] : $order['details']['BT']);

		if (!class_exists ('TableVendors')) {
			require(JPATH_VM_ADMINISTRATOR . DS . 'table' . DS . 'vendors.php');
		}
		$vendorModel = VmModel::getModel ('Vendor');
		$vendorModel->setId (1);
		$vendor = $vendorModel->getVendor ();
		$vendorModel->addImages ($vendor, 1);
		$this->getPaymentCurrency ($method);
		$q = 'SELECT `currency_code_3` FROM `#__virtuemart_currencies` WHERE `virtuemart_currency_id`="' . $method->payment_currency . '" ';
		$db = JFactory::getDBO ();
		$db->setQuery ($q);
		$currency_code_3 = $db->loadResult ();

		$paymentCurrency = CurrencyDisplay::getInstance ($method->payment_currency);
		$totalInPaymentCurrency = round ($paymentCurrency->convertCurrencyTo ($method->payment_currency, $order['details']['BT']->order_total, FALSE), 2);
		$cd = CurrencyDisplay::getInstance ($cart->pricesCurrency);
		if ($totalInPaymentCurrency <= 0) {
			vmInfo (JText::_ ('VMPAYMENT_PAYPAL_PAYMENT_AMOUNT_INCORRECT'));
			return FALSE;
		}
		$merchant_email = $this->_getMerchantEmail ($method);
		if (empty($merchant_email)) {
			vmInfo (JText::_ ('VMPAYMENT_PAYPAL_MERCHANT_EMAIL_NOT_SET'));
			return FALSE;
		}

		$post_variables = Array(
			'cmd'              => '_ext-enter',
			'redirect_cmd'     => '_xclick',
			'upload'           => '1', //Indicates the use of third-party shopping cart
			'business'         => $merchant_email, //Email address or account ID of the payment recipient (i.e., the merchant).
			'receiver_email'   => $merchant_email, //Primary email address of the payment recipient (i.e., the merchant
			'order_number'     => $order['details']['BT']->order_number,
			"invoice"          => $order['details']['BT']->order_number,
			'custom'           => $return_context,
			'item_name'        => JText::_ ('VMPAYMENT_PAYPAL_ORDER_NUMBER') . ': ' . $order['details']['BT']->order_number,
			"amount"           => $totalInPaymentCurrency,
			"currency_code"    => $currency_code_3,
			/*
					 * 1 – L'adresse spécifiée dans les variables pré-remplies remplace l'adresse de livraison enregistrée auprès de PayPal.
					 * Le payeur voit l'adresse qui est transmise mais ne peut pas la modifier.
					 * Aucune adresse n'est affichée si l'adresse n'est pas valable
					 * (par exemple si des champs requis, tel que le pays, sont manquants) ou pas incluse.
					 * Valeurs autorisées : 0, 1. Valeur par défaut : 0
					 */
			"address_override" => isset($method->address_override) ? $method->address_override : 0, // 0 ??   Paypal does not allow your country of residence to ship to the country you wish to
			"first_name"       => $address->first_name,
			"last_name"        => $address->last_name,
			"address1"         => $address->address_1,
			"address2"         => isset($address->address_2) ? $address->address_2 : '',
			"zip"              => $address->zip,
			"city"             => $address->city,
			"state"            => isset($address->virtuemart_state_id) ? ShopFunctions::getStateByID ($address->virtuemart_state_id) : '',
			"country"          => ShopFunctions::getCountryByID ($address->virtuemart_country_id, 'country_2_code'),
			"email"            => $order['details']['BT']->email,
			"night_phone_b"    => $address->phone_1,
			"return"           => JROUTE::_ (JURI::root () . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&on=' . $order['details']['BT']->order_number . '&pm=' . $order['details']['BT']->virtuemart_paymentmethod_id . '&Itemid=' . JRequest::getInt ('Itemid')),
			// Keep this line, needed when testing
			//"return" => JROUTE::_(JURI::root() . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component'),
			"notify_url"       => JROUTE::_ (JURI::root () . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component'),
			"cancel_return"    => JROUTE::_ (JURI::root () . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginUserPaymentCancel&on=' . $order['details']['BT']->order_number . '&pm=' . $order['details']['BT']->virtuemart_paymentmethod_id . '&Itemid=' . JRequest::getInt ('Itemid')),
			//"undefined_quantity" => "0",
			"ipn_test"         => $method->debug,
			"rm"               => '2', // the buyer’s browser is redirected to the return URL by using the POST method, and all payment variables are included
			//"pal" => "NRUBJXESJTY24",
			"image_url"        => JURI::root () . $vendor->images[0]->file_url,
			"no_shipping"      => isset($method->no_shipping) ? $method->no_shipping : 0,
			"no_note"          => "1");


		/*
			  $i = 1;
			  foreach ($cart->products as $key => $product) {
//.........这里部分代码省略.........
开发者ID:srbsnkr,项目名称:sellingonlinemadesimple,代码行数:101,代码来源:paypal.php


示例19:

?>
			</th>
			   <th><?php 
echo $this->sort('tsmart_manufacturercategories_id', 'com_tsmart_ID');
?>
</th>
		</tr>
		</thead>
		<?php 
$k = 0;
for ($i = 0, $n = count($this->manufacturerCategories); $i < $n; $i++) {
    $row = $this->manufacturerCategories[$i];
    $checked = JHtml::_('grid.id', $i, $row->tsmart_manufacturercategories_id);
    $published = $this->gridPublished($row, $i);
    $editlink = JROUTE::_('index.php?option=com_tsmart&view=manufacturercategories&task=edit&tsmart_manufacturercategories_id=' . $row->tsmart_manufacturercategories_id);
    $manufacturersList = JROUTE::_('index.php?option=com_tsmart&view=manufacturer&tsmart_manufacturercategories_id=' . $row->tsmart_manufacturercategories_id);
    ?>
			<tr class="row<?php 
    echo $k;
    ?>
">
				<td class="admin-checkbox">
					<?php 
    echo $checked;
    ?>
				</td>
				<td align="left">
					<a href="<?php 
    echo $editlink;
    ?>
"><?php 
开发者ID:cuongnd,项目名称:etravelservice,代码行数:31,代码来源:default.php


示例20: plgVmConfirmedOrder


//.........这里部分代码省略.........
         $toCheck = array('last_name', 'first_name', 'middle_name', 'phone_1', 'phone_2', 'fax', 'address_1', 'address_2', 'city', 'virtuemart_state_id', 'virtuemart_country_id', 'zip');
         $bsError = false;
         foreach ($toCheck as $val) {
             if (isset($order['details']['ST']->{$val})) {
                 if ($order['details']['ST']->{$val} != $order['details']['BT']->{$val}) {
                     $bsError = true;
                     $errorVal = $val;
                     break;
                 }
             }
         }
         if ($bsError) {
             $msg = vmText::_('VMPAYMENT_HEIDELPAY_TECHNICAL_ERROR') . "<br />" . vmText::_('VMPAYMENT_HEIDELPAY_BILLSAFE_ERROR') . "<br />";
             $app = JFactory::getApplication();
             $app->redirect('index.php?option=com_virtuemart&view=cart', $msg);
         }
         $params['PAYMENT.CODE'] = "IV.PA";
         $params['ACCOUNT.BRAND'] = "BILLSAFE";
         $params = array_merge($params, $this->getBasketDetails());
     }
     /*
      *  User account information
      */
     $params['ACCOUNT.HOLDER'] = $address->first_ 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP JRegistry类代码示例发布时间:2022-05-23
下一篇:
PHP JProfiler类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap