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

PHP getTimeZoneDateTime函数代码示例

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

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



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

示例1: while

 do {
     $s[] = $row_stewards['uid'];
 } while ($row_stewards = mysql_fetch_assoc($stewards));
 do {
     $st[] = $row_staff['uid'];
 } while ($row_staff = mysql_fetch_assoc($staff));
 do {
     $o[] = $row_organizer['uid'];
 } while ($row_organizer = mysql_fetch_assoc($organizer));
 $filename = str_replace(" ", "_", $_SESSION['contestName']) . "_BJCP_Points_Report.xml";
 $output = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n";
 $output .= "<OrgReport>\n";
 $output .= "\t<CompData>\n";
 $output .= "\t\t<CompID>" . $_SESSION['contestID'] . "</CompID>\n";
 $output .= "\t\t<CompName>" . $_SESSION['contestName'] . "</CompName>\n";
 $output .= "\t\t<CompDate>" . getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_judging['judgingDate'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "system", "date-no-gmt") . "</CompDate>\n";
 $output .= "\t\t<CompEntries>" . $total_entries . "</CompEntries>\n";
 $output .= "\t\t<CompDays>" . $total_days . "</CompDays>\n";
 $output .= "\t\t<CompSessions>" . total_sessions() . "</CompSessions>\n";
 $output .= "\t\t<CompFlights>" . total_flights() . "</CompFlights>\n";
 $output .= "\t</CompData>\n";
 $output .= "\t<BJCPpoints>\n";
 //$st_running_total[] = 0;
 // Judges with a properly formatted BJCP IDs in the system
 foreach (array_unique($j) as $uid) {
     $judge_info = explode("^", brewer_info($uid));
     $judge_points = judge_points($uid, $judge_info['5']);
     if ($judge_points > 0) {
         $bos_judge = bos_points($uid);
         if ($bos_judge) {
             $assignment = "Judge+BOS";
开发者ID:anigeluk,项目名称:brewcompetitiononlineentry,代码行数:31,代码来源:export.output.php


示例2: str_replace

     $header1_400 .= "<h4 class=\"panel-title\">Judging Location/Date</h4>";
 }
 $header1_400 .= "</div>";
 $page_info400 .= "<div class=\"panel-body\">";
 if ($totalRows_judging == 0) {
     $page_info400 .= "<p>Competition judging dates are yet to be determined. Please check back later.</p>";
 } else {
     do {
         $page_info400 .= "<p>";
         if ($row_judging['judgingLocation'] != "") {
             $page_info400 .= "<a href=\"" . $base_url . "output/maps.output.php?section=driving&amp;id=" . str_replace(' ', '+', $row_judging['judgingLocation']) . "\" target=\"_blank\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"Map to " . $row_judging['judgingLocName'] . " at " . $row_judging['judgingLocation'] . "\">" . $row_judging['judgingLocName'] . "</a> <span class=\"fa fa-map-marker\"></span>";
         } else {
             $page_info400 .= $row_judging['judgingLocName'];
         }
         if ($row_judging['judgingDate'] != "") {
             $page_info400 .= "<br />" . getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_judging['judgingDate'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "short", "date-time");
         }
         $page_info400 .= "</p>";
     } while ($row_judging = mysql_fetch_assoc($judging));
 }
 $page_info400 .= "</div>";
 $page_info400 .= "</div>";
 // --------------------------------------------------------------
 // Display
 // --------------------------------------------------------------
 if ($_SESSION['contestLogo'] != "" && file_exists(USER_IMAGES . $_SESSION['contestLogo'])) {
     echo $competition_logo;
 }
 echo $page_info;
 if ($_SESSION['prefsUseMods'] == "Y") {
     include INCLUDES . 'mods_sidebar_top.inc.php';
开发者ID:anigeluk,项目名称:brewcompetitiononlineentry,代码行数:31,代码来源:sidebar.sec.php


示例3: getTimeZoneDateTime

    if ($section == "brew") {
        include SECTIONS . 'brew.sec.php';
    }
    if ($section == "pay") {
        include SECTIONS . 'pay.sec.php';
    }
    if ($section == "list") {
        include SECTIONS . 'list.sec.php';
    }
}
?>
    </div>
</div>
<div id="footer">
	<div id="footer-inner">Printed <?php 
echo getTimeZoneDateTime($_SESSION['prefsTimeZone'], time(), $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time");
?>
.</div>
</div>
</div>
<!--
<script src="<?php 
echo $base_url;
?>
js_includes/jQuery.print.js"></script> 
<script type='text/javascript'>
	$(function() {
		$("#printable").find('.print').on('click', function() {
			$.print("#printable");
		}); 
	});
开发者ID:dducrest,项目名称:brewcompetitiononlineentry,代码行数:31,代码来源:print.php


示例4: table_choose

									<button class="btn btn-default dropdown-toggle" type="button" id="cardsMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">For Table...<span class="caret"></span>
									</button>
									<ul class="dropdown-menu" aria-labelledby="cardsMenu1">
										<?php 
    echo table_choose("table-cards", "judging_tables", $action, $filter, $view, "output/print.output.php", "thickbox");
    ?>
									</ul>
								</div>
								<div class="dropdown bcoem-admin-dashboard-select">
									<button class="btn btn-default dropdown-toggle" type="button" id="cardsMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">For Location...<span class="caret"></span>
									</button>
									<ul class="dropdown-menu" aria-labelledby="cardsMenu2">
										<?php 
    do {
        for ($round = 1; $round <= $row_judging2['judgingRounds']; $round++) {
            $location_date = getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_judging2['judgingDate'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "short", "date-time-no-gmt");
            ?>
											<li class="small"><a id="modal_window_link" href="<?php 
            echo $base_url;
            ?>
output/print.output.php?section=table-cards&amp;go=judging_locations&amp;location=<?php 
            echo $row_judging2['id'];
            ?>
&amp;round=<?php 
            echo $round;
            ?>
" data-toggle="tooltip" data-placement="top" title="Print Table Cards for <?php 
            echo $row_judging2['judgingLocName'] . " - " . $location_date . ", Round " . $round;
            ?>
"><?php 
            echo $row_judging2['judgingLocName'] . " - " . $location_date . ", Round " . $round;
开发者ID:anigeluk,项目名称:brewcompetitiononlineentry,代码行数:31,代码来源:default.admin.php


示例5: table_assignments

function table_assignments($uid, $method, $time_zone, $date_format, $time_format, $method2 = 0)
{
    // Gather and output the judging or stewarding assignments for a user
    require CONFIG . 'config.php';
    mysql_select_db($database, $brewing);
    $output = "";
    $query_table_assignments = sprintf("SELECT assignTable FROM %s WHERE bid='%s' AND assignment='%s'", $prefix . "judging_assignments", $uid, $method);
    $table_assignments = mysql_query($query_table_assignments, $brewing) or die(mysql_error());
    $row_table_assignments = mysql_fetch_assoc($table_assignments);
    $totalRows_table_assignments = mysql_num_rows($table_assignments);
    if ($totalRows_table_assignments > 0) {
        do {
            $table_info = explode("^", get_table_info(1, "basic", $row_table_assignments['assignTable'], "default", "default"));
            $location = explode("^", get_table_info($table_info[2], "location", $row_table_assignments['assignTable'], "default", "default"));
            //$output .= "\t<table class='dataTableCompact' style='margin-left: -5px'>\n";
            $output .= "\t\t<tr>\n";
            if ($method2 == 0) {
                $output .= "\t\t\t<td class='dataList'>" . $location[2] . "</td>\n";
                $output .= "\t\t\t<td class='dataList'>" . getTimeZoneDateTime($time_zone, $location[0], $date_format, $time_format, "long", "date-time") . "</td>\n";
                $output .= "\t\t\t<td class='dataList'>Table #" . $table_info[0] . " - " . $table_info[1] . "</td>\n";
            } else {
                $output .= "\t\t\t<td class='dataList bdr1B'>" . $location[2] . "</td>\n";
                $output .= "\t\t\t<td class='dataList bdr1B'>" . getTimeZoneDateTime($time_zone, $location[0], $date_format, $time_format, "long", "date-time") . "</td>\n";
                $output .= "\t\t\t<td class='dataList bdr1B'>Table #" . $table_info[0] . " - " . $table_info[1] . "</td>\n";
            }
            $output .= "\t\t</tr>\n";
            //$output .= "\t</table>\n";
        } while ($row_table_assignments = mysql_fetch_assoc($table_assignments));
    }
    return $output;
}
开发者ID:jimpdx,项目名称:brewcompetitiononlineentry,代码行数:31,代码来源:common.lib.php


示例6: getTimeZoneDateTime

	<h4>Table <?php 
            echo $row_tables['tableNumber'] . " <small>&ndash; " . $row_tables['tableName'];
            ?>
 <a href="<?php 
            echo $base_url;
            ?>
index.php?section=admin&amp;go=judging_flights&amp;filter=define&amp;action=edit&amp;id=<?php 
            echo $flight_table;
            ?>
" data-toggle="tooltip" data-placement="top" title="Define/Edit the <?php 
            echo $row_tables['tableName'];
            ?>
 Flights"><span class="fa fa-pencil-square-o"></span></a></small></h4>

	<p><strong>Location:</strong> <?php 
            echo $row_table_location['judgingLocName'] . " &ndash; " . getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_table_location['judgingDate'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time");
            ?>
 (<?php 
            echo $row_table_location['judgingRounds'];
            ?>
 rounds <a href="<?php 
            echo $base_url;
            ?>
index.php?section=admin&amp;go=judging&amp;action=edit&amp;id=<?php 
            echo $row_table_location['id'];
            ?>
" title="Edit the <?php 
            echo $row_table_location['judgingLocName'];
            ?>
 location">defined for this location</a>).</p>
	<?php 
开发者ID:anigeluk,项目名称:brewcompetitiononlineentry,代码行数:31,代码来源:judging_flights.admin.php


示例7: getTimeZoneDateTime

   <td class="data">

   <select name="judge_loc" id="judge_loc" onchange="jumpMenu('self',this,0)">

	<option value=""></option>

    <?php 
    do {
        ?>

	<option value="index.php?section=admin&amp;go=styles&amp;filter=judging&amp;bid=<?php 
        echo $row_judging['id'];
        ?>
"><?php 
        echo $row_judging['judgingLocName'] . " (";
        echo getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_judging['judgingDate'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time") . ")";
        ?>
</option>

    <?php 
    } while ($row_judging = mysql_fetch_assoc($judging));
    ?>

  </select>

  </td>

</tr>

</table>
开发者ID:dducrest,项目名称:brewcompetitiononlineentry,代码行数:30,代码来源:styles.admin.php


示例8: styles_active

    include 'judge_closed.sec.php';
    include DB . 'winners.db.php';
    $style_types_active = styles_active(1);
    if ($style_types_active > 0) {
        $header1_1 .= "<h2>Best of Show Winners";
        if ($section == "past_winners") {
            $header1_1 .= ": " . $trimmed;
        }
        $header1_1 .= "</h2>";
    }
    $header1_2 .= "<h2>Winning Entries";
    if ($section == "past_winners") {
        $header1_2 .= ": " . $trimmed;
    }
    $header1_2 .= "</h2>";
    $page_info .= sprintf("<h2>Winning Entries</h2><p>Winners will be posted on or after %s.</p>", getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_check['judgingDate'] + $delay, $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time"));
} else {
    if (!isset($_SESSION['loginUsername'])) {
        $page_info .= "<p>You only need to register your information once and can return to this site to enter more brews or edit the brews you've entered.";
        if ($_SESSION['prefsPaypal'] == "Y") {
            $page_info .= " You can even pay your entry fees online if you wish.";
        }
        $page_info .= "</p>";
    }
    if ($_SESSION['prefsSponsors'] == "Y" && $totalRows_sponsors > 0) {
        $header1_1 .= "<h2>Sponsors</h2>";
        $page_info1 .= sprintf("<p>%s is proud to have the following ", $_SESSION['contestHost']);
        if ($_SESSION['prefsSponsorLogos'] == "Y") {
            $page_info1 .= sprintf("<a href='%s'>sponsors</a>", build_public_url("sponsors", "default", "default", $sef, $base_url));
        } else {
            $page_info1 .= "sponsors";
开发者ID:dducrest,项目名称:brewcompetitiononlineentry,代码行数:31,代码来源:default.sec.php


示例9: date_created

function date_created($uid, $date_format, $time_format, $timezone, $dbTable)
{
    include CONFIG . 'config.php';
    mysql_select_db($database, $brewing);
    if ($dbTable != "default") {
        $dbTable = $dbTable;
    } else {
        $dbTable = $prefix . "users";
    }
    $result1 = mysql_query(sprintf("SHOW COLUMNS FROM %s LIKE 'userCreated'", $dbTable));
    $exists = mysql_num_rows($result1) ? TRUE : FALSE;
    if ($exists) {
        $query_user = sprintf("SELECT userCreated FROM %s WHERE id = '%s'", $dbTable, $uid);
        $user = mysql_query($query_user, $brewing) or die(mysql_error());
        $row_user = mysql_fetch_assoc($user);
        $totalRows_user = mysql_num_rows($user);
        if ($totalRows_user == 1 && $row_user['userCreated'] != "") {
            $result = getTimeZoneDateTime($timezone, strtotime($row_user['userCreated']), $date_format, $time_format, "short", "date-time-no-gmt");
        } else {
            $result = "&nbsp;";
        }
    } else {
        $result = "&nbsp;";
    }
    return $result;
}
开发者ID:anigeluk,项目名称:brewcompetitiononlineentry,代码行数:26,代码来源:admin.lib.php


示例10: elseif

     $reg_panel_display = "panel-default";
 }
 if ($entry_window_open == 0) {
     $entry_panel_display = "panel-default";
 } elseif ($entry_window_open == 1) {
     $entry_panel_display = "panel-success";
 } elseif ($entry_window_open == 2) {
     $entry_panel_display = "panel-danger";
 } else {
     $entry_panel_display = "panel-default";
 }
 // Competition Status Panel
 $header1_100 .= "<div class=\"panel panel-info\">";
 $header1_100 .= "<div class=\"panel-heading\">";
 $header1_100 .= "<h4 class=\"panel-title\">Competition Status<span class=\"fa fa-bar-chart text-info pull-right\"></span></h4>";
 $header1_100 .= "<span class=\"small text-muted\">As of " . getTimeZoneDateTime($_SESSION['prefsTimeZone'], time(), $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "short", "date-time") . "</span>";
 $header1_100 .= "</div>";
 $page_info100 .= "<div class=\"panel-body\">";
 $page_info100 .= "<div class=\"bcoem-sidebar-panel\">";
 $page_info100 .= "<strong class=\"text-info\">Confirmed Entries</strong>";
 $page_info100 .= "<span class=\"pull-right\"><a href=\"" . $base_url . "index.php?section=admin&amp;go=entries\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"View all entries\">" . $totalRows_log_confirmed . "</a>";
 if (!empty($row_limits['prefsEntryLimit'])) {
     $page_info100 .= " of " . $row_limits['prefsEntryLimit'];
 }
 $page_info100 .= "</span>";
 $page_info100 .= "</div>";
 $page_info100 .= "<div class=\"bcoem-sidebar-panel\">";
 $page_info100 .= "<strong class=\"text-info\">Unconfirmed Entries</strong>";
 $page_info100 .= "<span class=\"pull-right\">" . $entries_unconfirmed . "</span>";
 $page_info100 .= "</div>";
 $page_info100 .= "<div class=\"bcoem-sidebar-panel\">";
开发者ID:anigeluk,项目名称:brewcompetitiononlineentry,代码行数:31,代码来源:sidebar.admin.php


示例11: sprintf

    $page_info1 .= sprintf("<p>There are <strong>%s</strong> registered entries and <strong>%s</strong> registered participants, judges, and stewards.</p>", get_entry_count('none'), get_participant_count('default'));
    $page_info1 .= sprintf("<p>There are <strong>%s</strong> received and processed entries (this number will update as entries are picked up from drop-off locations and organized for judging).</p>", get_entry_count('received'));
}
$header1_2 .= "<h2>Judging Date";
if ($totalRows_judging > 1) {
    $header1_2 .= "s";
}
$header1_2 .= "</h2>";
if ($totalRows_judging == 0) {
    $page_info2 .= "<p>Competition judging dates are yet to be determined. Please check back later.</p>";
} else {
    do {
        $page_info2 .= "<p>";
        $page_info2 .= "<strong>" . $row_judging['judgingLocName'] . "</strong>";
        if ($row_judging['judgingLocation'] != "") {
            $page_info2 .= "<br />" . $row_judging['judgingLocation'];
        }
        if ($row_judging['judgingLocation'] != "" && $action != "print") {
            $page_info2 .= "&nbsp;&nbsp;<span class='icon'><a id='modal_window_link' href='" . $base_url . "output/maps.php?section=map&amp;id=" . str_replace(' ', '+', $row_judging['judgingLocation']) . "' title='Map to " . $row_judging['judgingLocName'] . "'><img src='" . $base_url . "images/map.png'  border='0' alt='Map " . $row_judging['judgingLocName'] . "' title='Map " . $row_judging['judgingLocName'] . "' /></a></span>";
            $page_info2 .= "<span class='icon'><a href='" . $base_url . "output/maps.php?section=driving&amp;id=" . str_replace(' ', '+', $row_judging['judgingLocation']) . "' title='Driving Directions to " . $row_judging['judgingLocName'] . "' target='_blank'><img src='" . $base_url . "images/car.png'  border='0' alt='Driving Directions to " . $row_judging['judgingLocName'] . "' title='Driving Direcitons to " . $row_judging['judgingLocName'] . "' /></a></span>";
        }
        if ($row_judging['judgingDate'] != "") {
            $page_info2 .= "<br />" . getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_judging['judgingDate'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time") . "<br />";
        }
        $page_info2 .= "</p>";
    } while ($row_judging = mysql_fetch_assoc($judging));
}
echo $header1_1;
echo $page_info1;
echo $header1_2;
echo $page_info2;
开发者ID:dducrest,项目名称:brewcompetitiononlineentry,代码行数:31,代码来源:reg_closed.sec.php


示例12: arsort

arsort($a);
foreach ($a as $value) {
    if ($value != "0-0") {
        $b = substr($value, 2);
        $judging_location_info = judging_location_info($b);
        $judging_location_info = explode("^", $judging_location_info);
        if ($judging_location_info[0] > 0) {
            $steward_info .= "<tr>\n";
            $steward_info .= "<td>";
            $steward_info .= yes_no(substr($value, 0, 1), $base_url);
            $steward_info .= "</td>\n";
            $steward_info .= "<td>";
            $steward_info .= $judging_location_info[1];
            $steward_info .= "</td>\n";
            $steward_info .= "<td>";
            $steward_info .= getTimeZoneDateTime($_SESSION['prefsTimeZone'], $judging_location_info[2], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "short", "date-time");
            $steward_info .= "</tr>";
        }
    } else {
        $steward_info .= "";
    }
}
if ($action == "print") {
    $table_assign_judge = table_assignments($_SESSION['user_id'], "J", $_SESSION['prefsTimeZone'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], 1);
} else {
    $table_assign_judge = table_assignments($_SESSION['user_id'], "J", $_SESSION['prefsTimeZone'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], 0);
}
if ($action == "print") {
    $table_assign_steward = table_assignments($_SESSION['user_id'], "S", $_SESSION['prefsTimeZone'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], 1);
} else {
    $table_assign_steward = table_assignments($_SESSION['user_id'], "S", $_SESSION['prefsTimeZone'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], 0);
开发者ID:anigeluk,项目名称:brewcompetitiononlineentry,代码行数:31,代码来源:brewer_info.sec.php


示例13: session_start

<?php

session_start();
require '../paths.php';
require CONFIG . 'bootstrap.php';
require LIB . 'output.lib.php';
include CLASSES . 'tiny_but_strong/tbs_class_php5.php';
include DB . 'output_entry.db.php';
$entry_closed = getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_contest_dates['contestEntryDeadline'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-no-gmt");
if (NHC && $prefix == "final_") {
    $contest_name = date('Y') . " NHC Final Round";
} else {
    $contest_name = $contest_info['contestName'];
}
// Check access restrictions
if ($brewer_info['brewerEmail'] != $_SESSION['loginUsername'] && $row_logged_in_user['userLevel'] > 1) {
    echo "<html><head><title>Error</title></head><body>";
    echo "<p>You do not have sufficient access priveliges to view this page.</p>";
    echo "</body>";
    exit;
}
if (!pay_to_print($_SESSION['prefsPayToPrint'], $brewing_info['brewPaid']) && $go != "recipe") {
    echo "<html><head><title>Error</title></head><body>";
    echo "<p>You must pay for your entry to print its entry form and bottle labels.</p>";
    echo "</body>";
    exit;
}
if ($_SESSION['prefsStyleSet'] == "BJCP2008") {
    $category_end = 23;
} else {
    $category_end = 34;
开发者ID:dducrest,项目名称:brewcompetitiononlineentry,代码行数:31,代码来源:entry.php


示例14: sprintf

    $header1_13 .= "<a name='awards'></a><h2>Awards</h2>";
    $page_info13 .= $row_contest_info['contestAwards'];
}
if ($_SESSION['contestAwardsLocName'] != "") {
    $header1_14 .= "<a name='ceremony'></a><h2>Award Ceremony</h2>";
    $page_info14 .= "<p>";
    $page_info14 .= sprintf("<strong>%s</strong>", $_SESSION['contestAwardsLocName']);
    if ($_SESSION['contestAwardsLocation'] != "") {
        $page_info14 .= sprintf("<br />%s", $_SESSION['contestAwardsLocation']);
    }
    if ($_SESSION['contestAwardsLocation'] != "" && $action != "print") {
        $page_info14 .= "&nbsp;<span class='icon'><a id='modal_window_link' href='" . $base_url . "output/maps.php?section=map&amp;id=" . str_replace(' ', '+', $_SESSION['contestAwardsLocation']) . "' title='Map to " . $_SESSION['contestAwardsLocName'] . "'><img src='" . $base_url . "images/map.png'  border='0' alt='Map " . $_SESSION['contestAwardsLocName'] . "' title='Map " . $_SESSION['contestAwardsLocName'] . "' /></a></span>";
        $page_info14 .= "<span class='icon'><a href='" . $base_url . "output/maps.php?section=driving&amp;id=" . str_replace(' ', '+', $_SESSION['contestAwardsLocation']) . "' target='_blank' title='Map to " . $_SESSION['contestAwardsLocName'] . "'><img src='" . $base_url . "images/car.png'  border='0' alt='Map " . $_SESSION['contestAwardsLocName'] . "' title='Map " . $_SESSION['contestAwardsLocName'] . "' /></a></span>";
    }
    if ($_SESSION['contestAwardsLocTime'] != "") {
        $page_info14 .= sprintf("<br />%s", getTimeZoneDateTime($_SESSION['prefsTimeZone'], $_SESSION['contestAwardsLocTime'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time"));
    }
    $page_info14 .= "</p>";
}
// Circuit Qualification
if ($row_contest_info['contestCircuit'] != "") {
    $header1_15 .= "<a name='circuit'></a><h2>Circuit Qualification</h2>";
    $page_info15 .= $row_contest_info['contestCircuit'];
}
// --------------------------------------------------------------
// Display
// --------------------------------------------------------------
if ($action != "print" && $msg != "default") {
    echo $msg_output;
}
if ($_SESSION['contestLogo'] != "" && file_exists($_SERVER['DOCUMENT_ROOT'] . $sub_directory . '/user_images/' . $_SESSION['contestLogo']) && (judging_date_return() > 0 || NHC)) {
开发者ID:dducrest,项目名称:brewcompetitiononlineentry,代码行数:31,代码来源:entry_info.sec.php


示例15: table_assignments

function table_assignments($uid, $method, $time_zone, $date_format, $time_format, $method2 = 0)
{
    // Gather and output the judging or stewarding assignments for a user
    require CONFIG . 'config.php';
    mysql_select_db($database, $brewing);
    $output = "";
    $output_extend = "";
    $query_table_assignments = sprintf("SELECT assignTable FROM %s WHERE bid='%s' AND assignment='%s'", $prefix . "judging_assignments", $uid, $method);
    $table_assignments = mysql_query($query_table_assignments, $brewing) or die(mysql_error());
    $row_table_assignments = mysql_fetch_assoc($table_assignments);
    $totalRows_table_assignments = mysql_num_rows($table_assignments);
    if ($totalRows_table_assignments > 0) {
        do {
            $table_info = explode("^", get_table_info(1, "basic", $row_table_assignments['assignTable'], "default", "default"));
            $location = explode("^", get_table_info($table_info[2], "location", $row_table_assignments['assignTable'], "default", "default"));
            //$output .= "\t<table class='dataTableCompact' style='margin-left: -5px'>\n";
            if ($method2 == 0) {
                $output .= "\t\t<tr>\n";
                $output .= "\t\t\t<td class='dataList'>" . $location[2] . "</td>\n";
                $output .= "\t\t\t<td class='dataList'>" . getTimeZoneDateTime($time_zone, $location[0], $date_format, $time_format, "long", "date-time") . "</td>\n";
                $output .= "\t\t\t<td class='dataList'>Table #" . $table_info[0] . " - " . $table_info[1] . "</td>\n";
                $output .= "\t\t</tr>\n";
            } elseif ($method2 == "1") {
                if ($method == "J") {
                    $output .= "<a href='" . $base_url . "index.php?section=admin&amp;action=assign&amp;go=judging_tables&amp;filter=judges&id=" . $table_info[3] . "' title='Assign/Unassign Judges to " . $table_info[0] . " - " . $table_info[1] . "'>" . $table_info[0] . "</a>,&nbsp;";
                }
                if ($method == "S") {
                    $output .= "<a href='" . $base_url . "index.php?section=admin&amp;action=assign&amp;go=judging_tables&amp;filter=stewards&id=" . $table_info[3] . "' title='Assign/Unassign Stewards to " . $table_info[0] . " - " . $table_info[1] . "'>" . $table_info[0] . "</a>,&nbsp;";
                }
            } else {
                $output .= "\t\t\t<td class='dataList bdr1B'>" . $location[2] . "</td>\n";
                $output .= "\t\t\t<td class='dataList bdr1B'>" . getTimeZoneDateTime($time_zone, $location[0], $date_format, $time_format, "long", "date-time") . "</td>\n";
                $output .= "\t\t\t<td class='dataList bdr1B'>Table #" . $table_info[0] . " - " . $table_info[1] . "</td>\n";
                $output .= "\t\t</tr>\n";
            }
            //$output .= "\t</table>\n";
        } while ($row_table_assignments = mysql_fetch_assoc($table_assignments));
    }
    if ($totalRows_table_assignments == 0 && $method2 == "1") {
        $output_extend = "No assignment(s)";
    }
    return $output . $output_extend;
}
开发者ID:dducrest,项目名称:brewcompetitiononlineentry,代码行数:43,代码来源:common.lib.php


示例16: getTimeZoneDateTime

 }
 if ($_SESSION['contestBOSAward'] != "") {
     $output .= "<h2>Best of Show</h2>\n";
 }
 $output .= "<p>" . $_SESSION['contestBOSAward'] . "</p>\n";
 if ($_SESSION['contestAwards'] != "") {
     $output .= "<h2>Awards</h2>\n";
     $output .= "<p>" . $_SESSION['contestAwards'] . "</p>\n";
 }
 if ($_SESSION['contestAwardsLocName'] != "") {
     $output .= "<h3>Award Ceremony</h3>\n";
     $output .= "<p>";
     if ($_SESSION['contestAwardsLocDate'] != "") {
         $output .= "<strong>" . $_SESSION['contestAwardsLocName'] . "</strong><br />";
     }
     $output .= getTimeZoneDateTime($_SESSION['prefsTimeZone'], $_SESSION['contestAwardsLocTime'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "long", "date-time");
     if ($_SESSION['contestAwardsLocation'] != "") {
         $output .= "<br />" . $_SESSION['contestAwardsLocation'];
     }
     $output .= "</p>\n";
 }
 if ($action != "bbcode") {
     $output .= "</body>\n";
     $output .= "</html>\n";
 }
 if ($action == "bbcode") {
     $html = array("<p>", "</p>", "<strong>", "</strong>", "<ul>", "</ul>", "<ol>", "</ol>", "<li>", "</li>", "<h1>", "</h1>", "<h2>", "</h2>", "<h3>", "</h3>", "<h4>", "</h4>", "<body>", "</body>", "<html>", "</html>", "<br />", "<em>", "</em>", "&amp;", "&mdash;");
     $bbcode = array("[left]", "[/left]\r\n\r", "[b]", "[/b]", "[list type=disc]\r", "[/list]\r\n\r", "[list type=upper-roman]\r", "[/list]\r\n\r", "[li]", "[/li]\r", "[size=xx-large]", "[/size]\r\n\r", "[size=x-large]", "[/size]\r\n\r", "[size=large]", "[/size]\r\n\r", "[b]", "[/b]", "", "", "", "", "\n", "[i]", "[/i]", "&", "-");
     $output = str_replace($html, $bbcode, $output);
 }
 echo $output;
开发者ID:dducrest,项目名称:brewcompetitiononlineentry,代码行数:31,代码来源:promo_export.php


示例17: getTimeZoneDateTime

    <td class="data">
    <select name="tableLocation" id="tableLocation">
          <?php 
    do {
        ?>
          <option value="<?php 
        echo $row_judging1['id'];
        ?>
" <?php 
        if ($row_tables_edit['tableLocation'] == $row_judging1['id']) {
            echo "selected";
        }
        ?>
><?php 
        echo $row_judging1['judgingLocName'] . " (";
        echo getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_judging1['judgingDate'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "short", "date-time-no-gmt") . ")";
        ?>
</option>
          <?php 
    } while ($row_judging1 = mysql_fetch_assoc($judging1));
    ?>
    </select>
    </td>
  </tr>
  <tr>
    <td class="dataLabel">Style(s):</td>
    <td class="data">
    <?php 
    if ($row['count'] > 0) {
        ?>
    	<table class="dataTable" id="sortable">
开发者ID:jimpdx,项目名称:brewcompetitiononlineentry,代码行数:31,代码来源:judging_tables.admin.php


示例18: getTimeZoneDateTime

            }
        } else {
            echo "&nbsp;";
        }
        ?>
<br /><?php 
        echo "<a href='mailto:" . $brewer_info[6] . "'>" . $brewer_info[6] . "</a>";
        ?>
</td>
  <td class="dataList "><?php 
        echo $brewer_info[8];
        ?>
</td>
  <td class="dataList "><?php 
        if ($row_log['brewUpdated'] != "") {
            echo getTimeZoneDateTime($_SESSION['prefsTimeZone'], strtotime($row_log['brewUpdated']), $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "short", "date-time-no-gmt");
        } else {
            echo "&nbsp;";
        }
        ?>
</td>
  <td nowrap="nowrap" class="dataList "><?php 
        if ($action != "print" && $dbTable == "default") {
            ?>
<input id="brewPaid" name="brewPaid<?php 
            echo $row_log['id'];
            ?>
" type="checkbox" value="1" <?php 
            if ($row_log['brewPaid'] == "1") {
                echo "checked";
            } else {
开发者ID:jimpdx,项目名称:brewcompetitiononlineentry,代码行数:31,代码来源:entries.admin.php


示例19: getTimeZoneDateTime

                <span class="help-block">Are you willing to serve as a steward in this competition?</span>
            </div>
        </div><!-- ./Form Group -->
        <?php 
            if ($totalRows_judging > 1) {
                ?>
        <div class="form-group"><!-- Form Group NOT REQUIRED Select -->
            <label for="brewerStewardLocation" class="col-lg-2 col-md-3 col-sm-4 col-xs-12 control-label">Stewarding Location Availability</label>
            <div class="col-lg-10 col-md-9 col-sm-8 col-xs-12">
            <!-- Input Here -->
            <?php 
                do {
                    ?>
            <p class="bcoem-form-info"><?php 
                    echo $row_stewarding['judgingLocName'] . " (";
                    echo getTimeZoneDateTime($_SESSION['prefsTimeZone'], $row_stewarding['judgingDate'], $_SESSION['prefsDateFormat'], $_SESSION['prefsTimeFormat'], "short", "date-time") . ")";
                    ?>
</p>
            <select class="selectpicker" name="brewerStewardLocation[]" id="brewerStewardLocation" data-width="auto">
                <option value="<?php 
                    echo "N-" . $row_stewarding['id'];
                    ?>
"   <?php 
                    $a = explode(",", $row_brewer['brewerStewardLocation']);
                    $b = "N-" . $row_stewarding['id'];
                    foreach ($a as $value) {
                        if ($value == $b) {
                            echo "SELECTED";
                        }
                    }
                    ?>
开发者ID:anigeluk,项目名称:brewcompetitiononlineentry,代码行数:31,代码来源:brewer.sec.php


示例20: getTimeZoneDateTime

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getTimestamp函数代码示例发布时间:2022-05-15
下一篇:
PHP getTimeStamp函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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