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


PHP Tienda::getURL方法代码示例

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


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

示例1:

        		<?php 
        if (strtolower(@$state->filter_dir) == 'asc') {
            $dir = 'desc';
            $img_dir = 'arrow_down.png';
        } else {
            $dir = 'asc';
            $img_dir = 'arrow_up.png';
        }
        ?>
    		
        		<a href="<?php 
        echo JRoute::_("&limitstart=" . $state->limitstart . "&filter_sortby=" . $state->filter_sortby . "&filter_dir=" . $dir);
        ?>
">
        			<img src="<?php 
        echo Tienda::getURL('images') . $img_dir;
        ?>
" alt="filter_direction"/>
        		</a>
        	</span>
    	</div>
        <?php 
        echo $this->form['validate'];
        ?>
    </form>   
    <?php 
    }
    ?>
    
      
        <div id="tienda_products" class="dsc-wrap">
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:default.php

示例2: foreach

    echo JText::_('COM_TIENDA_COMPARE');
    ?>
				</td>
					<?php 
    foreach ($items as $item) {
        ?>
				<td align="center" valign="top" class="border-left">
					<a title="<?php 
        echo JText::_('COM_TIENDA_REMOVE_PRODUCT_COMPARISON');
        ?>
" class="close-img" href="<?php 
        echo JRoute::_('index.php?index.php?option=com_tienda&view=productcompare&task=remove&id=' . $item->productcompare_id);
        ?>
">
						<img src="<?php 
        echo Tienda::getURL('images');
        ?>
closebox.gif">
					</a>
						<?php 
        echo TiendaHelperProduct::getImage($item->product_id, '', $item->product_name);
        ?>
				</td>
						<?php 
    }
    ?>
			</tr>	
			<tr valign="top"  class="row0">
				<td></td>
					<?php 
    foreach ($items as $item) {
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:default.php

示例3:

            $alt = JText::_('COM_TIENDA_POOR');
            $title = JText::_('COM_TIENDA_POOR');
            $name = JText::_('COM_TIENDA_POOR');
            break;
        case "1.5":
            $src = Tienda::getURL('ratings') . "one_half.png";
            $alt = JText::_('COM_TIENDA_POOR');
            $title = JText::_('COM_TIENDA_POOR');
            $name = JText::_('COM_TIENDA_POOR');
            break;
        case "1":
            $src = Tienda::getURL('ratings') . "one.png";
            $alt = JText::_('COM_TIENDA_UNSATISFACTORY');
            $title = JText::_('COM_TIENDA_UNSATISFACTORY');
            $name = JText::_('COM_TIENDA_UNSATISFACTORY');
            break;
        case "0.5":
            $src = Tienda::getURL('ratings') . "zero_half.png";
            $alt = JText::_('COM_TIENDA_UNSATISFACTORY');
            $title = JText::_('COM_TIENDA_UNSATISFACTORY');
            $name = JText::_('COM_TIENDA_UNSATISFACTORY');
            break;
        default:
            $src = Tienda::getURL('ratings') . "zero.png";
            $alt = JText::_('COM_TIENDA_UNRATED');
            $title = JText::_('COM_TIENDA_UNRATED');
            $name = JText::_('COM_TIENDA_UNRATED');
            break;
    }
    echo "<img src='" . $src . "' alt='" . $alt . "' title='" . $title . "' name='" . $name . "' align='center' border='0' />";
}
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:product_rating.php

示例4:

        default:
            $downloadable = $item->productdownload_max;
    }
    ?>
        <tr class="row<?php 
    echo $k;
    ?>
">
        	<td style="text-align: center;">
                <span class="productfile_image">
                    <a href="<?php 
    echo JRoute::_('index.php?option=com_tienda&view=products&task=downloadfile&format=raw&id=' . $item->productfile_id . "&product_id=" . $item->product_id);
    ?>
">
                        <img src="<?php 
    echo Tienda::getURL('images') . "download.png";
    ?>
" alt="<?php 
    echo JText::_('COM_TIENDA_DOWNLOAD');
    ?>
" style="height: 24px; padding: 5px; vertical-align: middle;" />
                    </a>
                </span>
        	</td>
        	<td style="text-align: left;">
        		<?php 
    if ($item->productdownload_max != 0) {
        ?>
			        <div class="productfile">
			            <span class="productfile_link" style="vertical-align: middle;" >
			                <a href="<?php 
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:default.php

示例5: display


//.........这里部分代码省略.........
			</th>
			<th class="title"><?php 
        echo JText::_('COM_TIENDA_QTY');
        ?>
</th>
		</tr>
	</thead>
	<tfoot>
		<tr>
			<td colspan="15"><?php 
        echo $page->getListFooter();
        ?>
</td>
		</tr>
	</tfoot>
	<tbody>
	<?php 
        $k = 0;
        for ($i = 0, $n = count($rows); $i < $n; $i++) {
            $row =& $rows[$i];
            $onclick = "\r\n\t\t\t\t\twindow.parent.jSelectProducts(\r\n\t\t\t\t\t'{$row->product_id}', '" . str_replace(array("'", "\""), array("\\'", ""), $row->product_name) . "', '" . JRequest::getVar('object') . "'\r\n\t\t\t\t\t);";
            ?>
		<tr class="<?php 
            echo "row{$k}";
            ?>
">
			<td><?php 
            echo $page->getRowOffset($i);
            ?>
</td>
			<td style="text-align: center;"><?php 
            echo TiendaGrid::checkedout($row, $i, 'product_id');
            ?>
			</td>
			<td style="text-align: center;"><a style="cursor: pointer;"
				onclick="<?php 
            echo $onclick;
            ?>
"> <?php 
            echo $row->product_id;
            ?>
 </a>
			</td>
			<td>
			<?php 
            jimport('joomla.filesystem.file');
            if (!empty($row->product_thumb_image) && JFile::exists(Tienda::getPath('products_thumbs') . DS . $row->product_thumb_image)) {
                ?>
					<img src="<?php 
                echo Tienda::getURL('products_thumbs') . $row->product_thumb_image;
                ?>
" style="display: block;" />
					<?php 
            }
            ?>
	
			</td>				
			<td><a style="cursor: pointer;"
				onclick="<?php 
            echo $onclick;
            ?>
"> <?php 
            echo htmlspecialchars($row->product_name, ENT_QUOTES, 'UTF-8');
            ?>
			</a></td>
			<td style="text-align: center;"><a style="cursor: pointer;"
				onclick="<?php 
            echo $onclick;
            ?>
"> <?php 
            echo $row->product_price;
            ?>
			</a></td>
			<td style="text-align: center;"><input id="<?php 
            echo "qty{$i}";
            ?>
" name="<?php 
            echo "qty{$i}";
            ?>
" type="text" value="1" style="width: 30px;" /></td>
		</tr>
		<?php 
            $k = 1 - $k;
        }
        ?>
	</tbody>
</table>

<input type="hidden" name="boxchecked" value="0" /> <input type="hidden"
	name="filter_order" value="<?php 
        echo $lists['order'];
        ?>
" /> <input
	type="hidden" name="filter_order_Dir"
	value="<?php 
        echo $lists['order_Dir'];
        ?>
" /></form>
	<?php 
    }
开发者ID:annggeel,项目名称:tienda,代码行数:101,代码来源:view.php

示例6:

					<a href="<?php 
    echo $item->link_view;
    ?>
">
						<?php 
    echo $item->subscription_id;
    ?>
					</a>
				</td>
                <td style="text-align: center; width: 50px;">
                    <a href="<?php 
    echo $item->link;
    ?>
">
                        <img src="<?php 
    echo Tienda::getURL('images') . 'page_edit.png';
    ?>
" title="<?php 
    echo JText::_('COM_TIENDA_EDIT');
    ?>
"/>
                    </a>
                </td>
                <td style="text-align: center;">
                    <a href="<?php 
    echo $item->link_view;
    ?>
">
                        <?php 
    echo $item->product_name;
    ?>
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:default.php

示例7: jimport

						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="key">
							<?php 
echo JText::_('COM_TIENDA_CURRENT_IMAGE');
?>
:
						</td>
						<td>
							<?php 
jimport('joomla.filesystem.file');
if (!empty($row->product_full_image) && JFile::exists(Tienda::getPath('products_images') . DS . $row->product_full_image)) {
    ?>
								<img src="<?php 
    echo Tienda::getURL('products_images') . $row->product_full_image;
    ?>
" style="display: block;" />
								<?php 
}
?>
						</td>
					</tr>
				</table>
		</fieldset>
		
            <?php 
$modules = JModuleHelper::getModules("tienda_product_dashboard_main");
$document = JFactory::getDocument();
$renderer = $document->loadRenderer('module');
$attribs = array();
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:view.php

示例8: defined

<?php

/**
 * @version    1.5
 * @package    Tienda
 * @author     Dioscouri
 * @link     http://www.dioscouri.com
 * @copyright Copyright (C) 2010 Dioscouri. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*/
/** ensure this file is being included by a parent file */
defined('_JEXEC') or die('Restricted access');
$doc->addStyleSheet(Tienda::getURL() . "/css/admin.css");
?>
<div class="tcpanel">
<div style="float:<?php 
echo $lang->isRTL() ? 'right' : 'left';
?>
;">
<div class="icon"><a href="index.php?option=com_tienda">
<img src="<?php 
echo $img;
?>
" style="width: 96px;" />
<span><?php 
echo $text;
?>
</span> </a></div>
</div>
</div>
开发者ID:annggeel,项目名称:tienda,代码行数:30,代码来源:default.php

示例9: defined

<?php

/**
 * @package	Tienda
 * @author 	Dioscouri
 * @link 	http://www.dioscouri.com
 * @copyright Copyright (C) 2010 Dioscouri. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*/
/** ensure this file is being included by a parent file */
defined('_JEXEC') or die('Restricted access');
// if DSC is not loaded all is lost anyway
if (!defined('_DSC')) {
    return;
}
$text = $params->get('text', 'Tienda Dashboard');
$doc = JFactory::getDocument();
// Check the registry to see if our Tienda class has been overridden
if (!class_exists('Tienda')) {
    JLoader::register("Tienda", JPATH_ADMINISTRATOR . "/components/com_tienda/defines.php");
}
$img = Tienda::getURL() . "images/tienda.png";
require JModuleHelper::getLayoutPath('mod_tienda_quickicon', $params->get('layout', 'default'));
开发者ID:annggeel,项目名称:tienda,代码行数:23,代码来源:mod_tienda_quickicon.php


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