當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Technology::getPath方法代碼示例

本文整理匯總了PHP中Technology::getPath方法的典型用法代碼示例。如果您正苦於以下問題:PHP Technology::getPath方法的具體用法?PHP Technology::getPath怎麽用?PHP Technology::getPath使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Technology的用法示例。


在下文中一共展示了Technology::getPath方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: foreach

    $iCnt = 3;
    // Go ahead and set it to the max to kick of a new div
    $iTotalInView = 3;
    $cClass = ' active';
    foreach ($oTechnology as $technology) {
        if ($technology->IsActive == '1') {
            $iCnt++;
            if ($iCnt > $iTotalInView) {
                if ($cClass == '') {
                    $this_content .= '</div>';
                }
                $this_content .= '<div class="item' . $cClass . '">';
                $iCnt = 1;
            }
            $this_content .= '<div class="menu-item col-sm-4">';
            $this_content .= '	<a data-id="/' . $objTechnology->getPath() . $technology->TechnologyButtonActiveImageUrl . '" href="' . $technology->LinkUrl . '?id=' . $technology->Id . '" class="icon-mousedown"><img src="/' . $objTechnology->getPath() . $technology->TechnologyButtonImageUrl . '" alt="' . $technology->TechnologyName . '"></a>';
            $this_content .= '	<a href="' . $technology->LinkUrl . '?id=' . $technology->Id . '">' . $technology->TechnologyName . '</a>';
            $this_content .= '</div>';
            $cClass = '';
            // Turn off active after first item
        }
    }
    $this_content .= '</div>';
    $tech_content[$cat->Id] = $this_content;
    echo "            technology_content[" . $cat->Id . "] = '" . $this_content . "';\n";
}
?>
			var current_cat = <?php 
echo $_SESSION['sessCategory'];
?>
;
開發者ID:brandfeverinc,項目名稱:coke-cooler,代碼行數:31,代碼來源:flyout-menu.php

示例2: Technology

				</div>
				<div class="menu-item menu-nav-item col-sm-3">
					<a href="eqp-menu.html"><img src="assets/img/eqp-1.png" alt="Equipment"></a>
					<a href="eqp-menu.html">Title</a>
				</div>
				-->
			</div>
			<div class="row row3">
				<div class="section white-border-top">
					<h2>Equipment Technology</h2>
					<?php 
$objTechnology = new Technology();
$oTechnology = $objTechnology->GetAllTechnology('sort_order');
foreach ($oTechnology as $technology) {
    echo '<div class="menu-item col-sm-4">' . PHP_EOL;
    echo '	<a data-id="/' . $objTechnology->getPath() . $technology->TechnologyButtonActiveImageUrl . '" href="' . $technology->LinkUrl . '" class="icon-mousedown"><img src="' . $objTechnology->getPath() . $technology->TechnologyButtonImageUrl . '" alt="' . $technology->TechnologyName . '"></a>' . PHP_EOL;
    echo '	<a href="' . $technology->LinkUrl . '">' . $technology->TechnologyName . '</a>' . PHP_EOL;
    echo '</div>' . PHP_EOL;
}
?>
					<!--
					<div class="menu-item col-sm-4">
						<a data-id="tech-sound" href="tech-sound.html" class="icon-mousedown"><img src="assets/img/tech-sound.png" alt="Audio"></a>
						<a href="tech-sound.html">Audio Reduction</a>
					</div>
					<div class="menu-item col-sm-4">
						<a data-id="tech-ibeacon" href="tech-ibeacon.html" class="icon-mousedown"><img src="assets/img/tech-ibeacon.png" alt="Ibeacon"></a>
						<a href="tech-ibeacon.html">iBeacon</a>
					</div>
					<div class="menu-item col-sm-4">
						<a data-id="tech-light" href="tech-light.html" class="icon-mousedown"><img src="assets/img/tech-light.png" alt="Light"></a>
開發者ID:brandfeverinc,項目名稱:coke-cooler,代碼行數:31,代碼來源:eqp-menu_prev.php


注:本文中的Technology::getPath方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。