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


PHP Breadcrumbs函數代碼示例

本文整理匯總了PHP中Breadcrumbs函數的典型用法代碼示例。如果您正苦於以下問題:PHP Breadcrumbs函數的具體用法?PHP Breadcrumbs怎麽用?PHP Breadcrumbs使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


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

示例1: header

     $eventTypeID = $table_row[2];
     $eventIntroText = $table_row[3];
     $eventText = $table_row[4];
     $eventImagePathname = $table_row[5];
 }
 if ($num_rows < 1) {
     header('HTTP/1.1 301 Moved Permanently');
     header('Location: http://www.mongotickets.com/');
     exit;
 }
 $keywords = BuildEventKeywordList($categoryID, $eventName, $eventTypeID, $id);
 $keywords = AmpersandToAnd($keywords);
 $smarty->assign("SeoKeywords", $keywords);
 $descr = "Buy {$eventName} Tickets at great prices. Discount {$eventName} tickets.";
 $url = make_event_url($eventName, $id);
 $breadcrumb_str = Breadcrumbs($categoryID, 0);
 $breadcrumb_str = AppendBreadcrumb($breadcrumb_str, "{$url}", $eventName);
 # if category is theater, list venues first.
 $disp_home_away = 0;
 if ($eventTypeID == 4) {
     $title = "{$eventName} Tickets, {$eventName} Schedule, {$eventName} Dates, Discounted {$eventName} Tickets";
     $smarty->assign("title", $title);
     $smarty->assign("MetaDescr", $descr);
     $smarty->display('main.tpl');
     $venues = GetVenueList($id);
     $smarty->assign("Breadcrumbs", $breadcrumb_str);
     $smarty->assign("EventName", $eventName);
     $smarty->assign("EventIntroText", $eventIntroText);
     if (strlen($eventText) > 2) {
         $smarty->assign("EventText", $eventText);
     }
開發者ID:jassenm,項目名稱:mongotickets_php,代碼行數:31,代碼來源:productions.new.php

示例2: array

         } else {
             $vsplits = $getTicketsResult->TicketGroup->ValidSplits->int;
         }
         $tickets[] = array("TicketID" => "{$tid}", "Available" => "{$avail}", "SeatSection" => "{$sec}", "SeatRow" => "{$srow}", "TicketPrice" => "\${$tprice}", "Descr" => "{$sdescr}", "SeatFrom" => "{$sfrom}", "SeatThru" => "{$sthru}", "ValidSplits" => $vsplits);
     }
     #		handle_error_no_exit ("tickets.tnd.php: No result from web services");
     // kill object
     unset($soapclient);
 }
 # end if $event_found
 $origEventName = $eventName;
 ######
 #$categoryID = 15;
 if ($eventID != "") {
     $url = make_event_url($eventName);
     $breadcrumb_str = Breadcrumbs($tn_cat_id, 0);
     $breadcrumb_str = AppendBreadcrumb($breadcrumb_str, "{$url}", $eventName . " Tickets");
 }
 if ($eventID == 1124) {
     $eventName .= " {$shortNote}";
     $fullEventName = $eventName;
     $breadcrumb_str = AppendBreadcrumbNoAnchor($breadcrumb_str, "&nbsp;{$fullEventName} Tickets");
     $title = "{$fullEventName} Tickets, {$fullEventName} Schedule, {$fullEventName} Dates";
     $heading1 = $fullEventName;
     $subheading = "<strong>{$eventName} Tickets</strong>";
 } else {
     $meta_descr = "{$eventName} - Buy {$eventName} tickets for {$shortDate} at {$venueName} in {$city}, {$regionCode} at MongoTickets!";
     $breadcrumb_str = AppendBreadcrumbNoAnchor($breadcrumb_str, " {$eventName} Tickets");
     $title = "{$gameName} Tickets at {$venueName} {$regionCode} on {$shortDate}";
     $heading1 = "{$gameName} Tickets";
     $subheading = "<strong>{$gameName} Tickets</strong>";
開發者ID:jassenm,項目名稱:mongotickets_php,代碼行數:31,代碼來源:tickets.tnd.php


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