当前位置: 首页>>代码示例>>PHP>>正文


PHP ShopFunctions::altText方法代码示例

本文整理汇总了PHP中ShopFunctions::altText方法的典型用法代码示例。如果您正苦于以下问题:PHP ShopFunctions::altText方法的具体用法?PHP ShopFunctions::altText怎么用?PHP ShopFunctions::altText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ShopFunctions的用法示例。


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

示例1: SetViewTitle

 function SetViewTitle($view = '', $msg = '')
 {
     if ($view == '') {
         $view = $this->getName();
     }
     if ($msg) {
         $msg = ' <span style="font-size:90%">' . $msg . '</span>';
     }
     //$text = strtoupper('COM_VIRTUEMART_'.$name );
     $viewText = JText::_('COM_VIRTUEMART') . ' : ' . ShopFunctions::altText($view);
     if (!($task = JRequest::getWord('task'))) {
         $task = 'list';
     }
     $taskName = ShopFunctions::altText($task);
     $taskName = ' <small><small>[ ' . $taskName . ' ]</small></small>';
     if ($task === 'add') {
         $task = 'new';
     } elseif ($task === 'editshop') {
         $task = 'edit';
     }
     JToolBarHelper::title($viewText . ' ' . $taskName . $msg, $task . ' head vm_' . $view . '_48');
     $document = JFactory::getDocument();
     $title = $document->getTitle();
     $document->setTitle(trim(strip_tags($title)));
     $this->viewName = $viewText;
     //was $viewName?
 }
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:27,代码来源:vmview.php

示例2: in_array

    $checked = JHTML::_('grid.id', $i, $row->virtuemart_orderstate_id);
    $coreStatus = in_array($row->order_status_code, $this->lists['vmCoreStatusCode']);
    $checked = $coreStatus ? '<span class="hasTooltip" title="' . JText::_('COM_VIRTUEMART_ORDER_STATUS_CODE_CORE') . '">' . $image . '</span>' : JHTML::_('grid.id', $i, $row->virtuemart_orderstate_id);
    ?>
			<tr >
				<td width="10">
					<?php 
    echo $checked;
    ?>
				</td>
				<td align="left">
					<?php 
    echo $this->editLink($row->virtuemart_orderstate_id, $row->order_status_name, 'virtuemart_orderstate_id');
    ?>
					<?php 
    echo " (" . ShopFunctions::altText($row->order_status_name, 'COM_VIRTUEMART_ORDER_STATUS') . ")";
    ?>
					<?php 
    if ($row->order_status_description) {
        echo '<div class="small">' . JText::_($row->order_status_description) . '</div>';
    }
    ?>
				</td>
				<td align="left">
					<?php 
    echo $row->order_status_code;
    ?>
				</td>
				<td align="left">
					<?php 
    echo JText::_($this->stockHandelList[$row->order_stock_handle]);
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:31,代码来源:default_results.php

示例3: renderOrderstatesList

    public function renderOrderstatesList()
    {
        $orderstates = JRequest::getVar('order_status_code', 'C');
        //print_r($orderstates);
        $query = 'SELECT `order_status_code` as value, `order_status_name` as text
			FROM `#__virtuemart_orderstates`
			WHERE published=1 ';
        $this->_db->setQuery($query);
        $list = $this->_db->loadObjectList();
        foreach ($list as $state) {
            $state->text = ShopFunctions::altText($state->text, 'COM_VIRTUEMART_ORDER_STATUS');
        }
        //$html = VmHTML::select ('order_status_code[]', $list, $orderstates, 'size="7" class="inputbox" onchange="this.form.submit();" multiple="multiple"');
        $html = VmHTML::select('order_status_code[]', $list, $orderstates, 'size="7" class="input-xlarge"  multiple="multiple"');
        return $html;
    }
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:16,代码来源:report.php

示例4: getTotalOrdersByStatus

 /**
  * Gets the total number of orders with the given status
  *
  * @author Patrick Kohl
  * @author RickG
  * @return int Total number of orders with the given status
  */
 function getTotalOrdersByStatus()
 {
     $query = 'SELECT s.`order_status_name`, s.`order_status_code` as code, s.`order_stock_handle`, ';
     $query .= '(SELECT count(*) FROM `#__virtuemart_orders` WHERE `#__virtuemart_orders`.`order_status` = code ) as order_count ';
     $query .= 'FROM `#__virtuemart_orderstates` as s';
     $this->_db->setQuery($query);
     $status = $this->_db->loadObjectList('code');
     foreach ($status as $state) {
         $state->order_status_name = ShopFunctions::altText($state->order_status_name, 'COM_VIRTUEMART_ORDER_STATUS');
     }
     return $status;
 }
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:19,代码来源:virtuemart.php


注:本文中的ShopFunctions::altText方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。