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


PHP time2str函数代码示例

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


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

示例1: formatDepartures

 /**
  * Format the next departures list
  * @param array $departures
  * @return array
  */
 public function formatDepartures($departures)
 {
     $return = array();
     if (isset($departures['values'])) {
         foreach ($departures['values'] as $row) {
             if (!in_array(trim($row['platform']['direction']['line']['line_name']), $this->Provider->ignore_routes)) {
                 $Date = new DateTime($row['time_timetable_utc']);
                 $Date->setTimezone(new DateTimeZone($this->Place->Region->timezone));
                 $key = $Date->getTimestamp();
                 $Now = new DateTime();
                 $Now->setTimezone(new DateTimeZone($this->Place->Region->timezone));
                 $item = array("to" => array("stop_id" => $row['run']['destination_id'], "stop_name" => $row['run']['destination_name']), "leaving" => array("utc" => $row['time_timetable_utc'], "local" => $Date->format(DateTime::ISO8601), "local_nice" => $Date->format("F j, g:i a"), "relative" => time2str($Date->getTimestamp(), $Now->getTimestamp())), "route" => array("name" => $row['platform']['direction']['line']['line_name'], "id" => $row['platform']['direction']['line']['line_id'], "number" => $row['platform']['direction']['line']['line_number']), "direction" => array("id" => $row['platform']['direction']['direction_id'], "name" => $row['platform']['direction']['direction_name']));
                 $return[$key] = $item;
             }
         }
     }
     return $return;
 }
开发者ID:railpage,项目名称:railpagecore,代码行数:23,代码来源:Stop.php

示例2: getAssignedItems

 /**
  * Get feedback items assigned to this user
  * @since Version 3.9
  * @return array
  */
 public function getAssignedItems()
 {
     if (!$this->Staff instanceof User) {
         throw new Exception("You must assign a valid User object before fetching assigned feedback items");
     }
     $query = "SELECT f.*, fs.name AS status_text, fa.feedback_title AS area_text\r\n                FROM feedback AS f \r\n                INNER JOIN feedback_status AS fs ON f.status = fs.id\r\n                INNER JOIN feedback_area AS fa ON f.area = fa.feedback_id\r\n                WHERE f.assigned_to = ?\r\n                ORDER BY f.time DESC";
     $return = array();
     foreach ($this->db->fetchAll($query, $this->Staff->id) as $row) {
         $date = new DateTime(sprintf("@%s", $row['time']));
         $data = array("id" => $row['id'], "message" => $row['message'], "date" => array("absolute" => $date->format("Y-m-d H:i:s"), "relative" => time2str($row['time'])), "area" => array("id" => $row['area'], "text" => $row['area_text']), "status" => array("id" => $row['status'], "text" => $row['status_text']), "author" => array("id" => false, "username" => false, "realname" => false, "email" => $row['email']));
         if (filter_var($row['user_id'], FILTER_VALIDATE_INT) && $row['user_id'] > 0) {
             $Author = new User($row['user_id']);
             $data['author']['id'] = $Author->id;
             $data['author']['username'] = $Author->username;
             $data['author']['realname'] = $Author->real_name;
             $data['author']['url'] = $Author->url->url;
             $data['author']['avatar'] = array("large" => format_avatar($Author->avatar, 120), "small" => format_avatar($Author->avatar, 40));
         }
         $return[] = $data;
     }
     return $return;
 }
开发者ID:railpage,项目名称:railpagecore,代码行数:27,代码来源:Feedback.php

示例3: time2str

"><?php 
    echo time2str($t->dt);
    ?>
</a>
                                        </td>
                                        <td>
                                            <?php 
    echo twitterfy($t->body);
    ?>
<br>
                                            <span style="font-size:80%;">
                                            <?php 
    if ($t->replied_to) {
        ?>
                                            Replied to <?php 
        echo time2str($t->reply_date);
        ?>
                                            <?php 
    } else {
        ?>
                                            <a href="tweets.php?id=<?php 
        echo $app_id;
        ?>
&amp;reply=<?php 
        echo $t->id;
        ?>
">Reply</a>
                                            <?php 
    }
    ?>
                                            </span>
开发者ID:yuantw,项目名称:Shine,代码行数:31,代码来源:tweets.php

示例4: explode

$ticketInformation = "Information: To use this card, please connect <br/>" . "your device to the nearest ssid. Open your web <br/>" . "browser and enter each needed field.";
$ticketLogoFile = "/images/daloradius_small.png";
if (isset($_REQUEST['type']) && $_REQUEST['type'] == "batch") {
    $format = $_REQUEST['format'];
    $plan = $_REQUEST['plan'];
    // accounts is a string with the format of "username1,password1||username2,password2||..."
    $accounts_temp = $_REQUEST['accounts'];
    $accounts = explode("||", $accounts_temp);
    include_once '../../library/opendb.php';
    include_once '../management/pages_common.php';
    $sql = "SELECT " . $configValues['CONFIG_DB_TBL_DALOBILLINGPLANS'] . ".planCost AS planCost, " . $configValues['CONFIG_DB_TBL_DALOBILLINGPLANS'] . ".planTimeBank AS planTimeBank, " . $configValues['CONFIG_DB_TBL_DALOBILLINGPLANS'] . ".planCurrency AS planCurrency " . " FROM " . $configValues['CONFIG_DB_TBL_DALOBILLINGPLANS'] . " WHERE " . $configValues['CONFIG_DB_TBL_DALOBILLINGPLANS'] . ".planName=" . " '{$plan}' ";
    $res = $dbSocket->query($sql);
    $row = $res->fetchRow(DB_FETCHMODE_ASSOC);
    $ticketCurrency = $row['planCurrency'];
    $ticketCost = $row['planCost'] . " " . $ticketCurrency;
    $ticketTime = time2str($row['planTimeBank']);
    printTicketsHTMLTable($accounts, $ticketCost, $ticketTime);
}
function printTicketsHTMLTable($accounts, $ticketCost, $ticketTime)
{
    $output = "";
    global $ticketInformation;
    global $ticketLogoFile;
    // the $accounts array contain the username,password|| first element as it's originally
    // used to be a for CSV table header
    array_shift($accounts);
    // we align 3 tables for each row (each line)
    // for each 4th entry of a new ticket table we put it in a new row of it's own
    $trCounter = 0;
    foreach ($accounts as $userpass) {
        list($user, $pass) = split(",", $userpass);
开发者ID:fevenor,项目名称:Dockerfile,代码行数:31,代码来源:printTickets.php

示例5: while

                    </thead>
                    <tbody>
                    <?php 
$query = $dbConn->prepare("SELECT `id`, `name`, `hidden`, `rank`, `lastMatch`, `teamCount`, `team1`, `team2`, `team3`, `team4`, `team5`" . "FROM `player_information`" . $conditions . "ORDER BY {$orderByVal} {$orderByOrder} " . "LIMIT {$lowerLimit}, {$upperLimit}");
$query->execute();
$result = $query->get_result();
while ($row = $result->fetch_assoc()) {
    print "<tr class=\"tableRow\" id=\"tableRow{$row['id']}\">";
    print '<td>' . "<a target=\"_blank\" href=\"http://lan.op.gg/summoner/userName={$row['name']}\">" . $row['name'] . '</td>';
    print '<td>' . $row['rank'] . '</td>';
    ?>
                            <?php 
    if ($row['lastMatch'] == "0000-00-00 00:00:00") {
        print '<td><a data-toggle="tooltip" data-placement="top" title="No games on record">Not available</a></td>';
    } else {
        print '<td><a data-toggle="tooltip" data-placement="top" title="' . date("F j, Y, g:i a", strtotime($row['lastMatch'])) . '">' . time2str($row['lastMatch']) . '</a></td>';
    }
    ?>
                            <td>
                                <?php 
    if ($row['teamCount'] > 0) {
        ?>
                                <ul>
                                    <?php 
        for ($i = 1; $i <= $row['teamCount']; $i++) {
            print "<li>{$row["team{$i}"]}</li>";
        }
        ?>
                                </ul>
                                <?php 
    } else {
开发者ID:nimashoghi,项目名称:LolStatBot,代码行数:31,代码来源:searchPlayers.php

示例6: strLastReleaseDate

 public function strLastReleaseDate()
 {
     $db = Database::getDatabase();
     $dt = $db->getValue("SELECT dt FROM shine_versions WHERE app_id = '{$this->id}' ORDER BY dt DESC LIMIT 1");
     return time2str($dt);
 }
开发者ID:johnnye,项目名称:Shine,代码行数:6,代码来源:class.objects.php

示例7: countdown

                $content .= '<tr align="left"><td>' . $rak[$row[type]][name] . '</td><td style="width:55px"><center>' . countdown($row[fertigstellung] - date(U)) . '</center></td></tr>';
                $stop = $row[fertigstellung];
            }
        } else {
            if ($row[type] >= 1 and $row[type] <= 15) {
                $content .= '<tr align="left"><td>' . $einh[$row[type]][name] . '</td><td style="width:55px"><center>' . time2str($row[fertigstellung] - date(U)) . '</center></td></tr>';
                $stop = $row[fertigstellung];
            }
            if ($row[type] >= 1001 and $row[type] <= 1011) {
                $row[type] -= 1000;
                $content .= '<tr align="left"><td>' . $def[$row[type]][name] . '</td><td style="width:55px"><center>' . time2str($row[fertigstellung] - date(U)) . '</center></td></tr>';
                $stop = $row[fertigstellung];
            }
            if ($row[type] >= 2001 and $row[type] <= 2006) {
                $row[type] -= 2000;
                $content .= '<tr align="left"><td>' . $rak[$row[type]][name] . '</td><td style="width:55px"><center>' . time2str($row[fertigstellung] - date(U)) . '</center></td></tr>';
                $stop = $row[fertigstellung];
            }
        }
        $row = mysql_fetch_array($result);
    } while ($row);
    $content .= '</table>';
}
// forschungen
for ($i = $forschung['feuerwaffen']; $i > 0; $i--) {
    $content = str_replace('Feuerwaffen ' . $forschung['feuerwaffen'] . '/' . $i . ' ', '<font color="green">Feuerwaffen ' . $forschung['feuerwaffen'] . '/' . $i . ' </font>', $content);
}
for ($i = $forschung['sprengstoff']; $i > 0; $i--) {
    $content = str_replace('Sprengstoff ' . $forschung['sprengstoff'] . '/' . $i . ' ', '<font color="green">Sprengstoff ' . $forschung['sprengstoff'] . '/' . $i . ' </font>', $content);
}
for ($i = $forschung['raketen']; $i > 0; $i--) {
开发者ID:o-wars,项目名称:o-wars,代码行数:31,代码来源:raketen.php

示例8: addToolTipBalloon

 $content .= '<br/><br/><b>' . $l['all']['NASMAC'] . ':</b> ' . $row['mac'];
 $str = addToolTipBalloon(array('content' => $content, 'onClick' => '', 'value' => '<b>' . $row['hotspotname'] . '</b>', 'divId' => ''));
 echo "\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\t{$str}\n\t\t\t\t</td>\n\t\t\t\n\t\t\t\t<td>" . $row['firmware'] . "\n\t\t\t\t\t<br/>" . $row['firmware_revision'] . "\n\t\t\t\t</td>\n\t\t\t";
 $content = '<b>' . $l['all']['WanIface'] . ":</b> " . $row['wan_iface'] . "<br/>" . '<b>' . $l['all']['WanMAC'] . ":</b> " . $row['wan_mac'] . "<br/>" . '<b>' . $l['all']['WanIP'] . ":</b> " . $row['wan_ip'] . "<br/>" . '<b>' . $l['all']['WanGateway'] . ":</b> " . $row['wan_ip'];
 $value = '<b>' . $l['all']['WanIP'] . ":</b> " . $row['wan_ip'];
 $str = addToolTipBalloon(array('content' => $content, 'onClick' => '', 'value' => $value, 'divId' => ''));
 echo "<td> {$str} </td>";
 $content = $l['all']['LanIface'] . ":</b> " . $row['lan_iface'] . "<br/><b>" . $l['all']['LanMAC'] . ":</b> " . $row['lan_mac'] . "<br/><b>" . $l['all']['LanIP'] . ":</b> " . $row['lan_ip'];
 $value = '<b>' . $l['all']['LanIP'] . ":</b> " . $row['lan_ip'];
 $str = addToolTipBalloon(array('content' => $content, 'onClick' => '', 'value' => $value, 'divId' => ''));
 echo "<td> {$str} </td>";
 $content = $l['all']['WifiIface'] . ":</b> " . $row['wifi_iface'] . "<br/><b>" . $l['all']['WifiMAC'] . ":</b> " . $row['wifi_mac'] . "<br/><b>" . $l['all']['WifiIP'] . ":</b> " . $row['wifi_ip'] . "<br/><b>" . $l['all']['WifiSSID'] . ":</b> " . $row['wifi_ssid'] . "<br/><b>" . $l['all']['WifiKey'] . ":</b> " . $row['wifi_key'] . "<br/><b>" . $l['all']['WifiChannel'] . ":</b> " . $row['wifi_channel'];
 $value = '<b>' . $l['all']['WifiSSID'] . ":</b> " . $row['wifi_ssid'] . "<br/><b>" . $l['all']['WifiKey'] . ":</b> " . $row['wifi_key'];
 $str = addToolTipBalloon(array('content' => $content, 'onClick' => '', 'value' => $value, 'divId' => ''));
 echo "<td> {$str} </td>";
 echo "\n\t\t\t\t<td>" . time2str($row['uptime']) . "\n\t\t\t\t</td>\n\n\t\t\t\t<td>" . $row['memfree'] . "\n\t\t\t\t</td>\n\n\t\t\t\t<td>" . toxbyte($row['wan_bup']) . "\n\t\t\t\t</td>\n\n\t\t\t\t<td>" . toxbyte($row['wan_bdown']) . "\n\t\t\t\t</td>\n\n\t\t\t\t<td>" . $row['time'] . "\n\t\t\t\t</td>\n\t\t\t\t\n\t\t\t</tr>\n\t\t";
 /*
 printqn("
 	<td> <input type='checkbox' name='username[]' value='$row[0]'>$row[2]</td>
 	<td> 
 ");
 
 
 if ( ($row[1] == "Reject") && ($row[4] == "Auth-Type") )
 	echo "<img title='user is disabled' src='images/icons/userStatusDisabled.gif' alt='[disabled]'>";
 else
 	echo "<img title='user is enabled' src='images/icons/userStatusActive.gif' alt='[enabled]'>";
 
 
 printqn("
 		<a class='tablenovisit' href='javascript:return;'
开发者ID:JWynegar,项目名称:daloradius,代码行数:31,代码来源:rep-hb-dashboard.php

示例9: getPhotosAsArray

 /**
  * Get photos as an associative array
  * @since Version 3.9.1
  * @return array
  * @param boolean $force
  */
 public function getPhotosAsArray($force = null)
 {
     $key = sprintf("railpage:comp=%d;images.array", $this->id);
     $this->Memcached = AppCore::getMemcached();
     if ($force == null && ($photos = $this->Memcached->fetch($key))) {
         return $photos;
     }
     $photos = array();
     foreach ($this->getPhotos() as $Submission) {
         $photos[] = array("id" => $Submission->id, "url" => $Submission->url->getURLs(), "image" => $Submission->Image->getArray(), "author" => array("id" => $Submission->Author->id, "username" => $Submission->Author->username, "url" => $Submission->Author->url instanceof Url ? $Submission->Author->url->getURLs() : array("url" => $Submission->Author->url)), "dateadded" => array("absolute" => $Submission->DateAdded->format("Y-m-d H:i:s"), "relative" => function_exists("time2str") ? time2str($Submission->DateAdded->getTimestamp()) : null));
     }
     $this->Memcached->save($key, $photos);
     return $photos;
 }
开发者ID:railpage,项目名称:railpagecore,代码行数:20,代码来源:Competition.php

示例10: while

    }
}
echo "<thread> <tr>\n\t\t<th scope='col'>\n\t\t<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?orderBy=username&orderType={$orderTypeNextPage}\">\n\t\t" . $l['all']['Username'] . "</a>\n\t\t</th>\n\t\t<th scope='col'>\n\t\t<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?orderBy=attribute&orderType={$orderTypeNextPage}\">\n\t\t" . $l['all']['Attribute'] . "</a>\n\t\t</th>\n\t\t<th scope='col'>\n\t\t<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?orderBy=maxtimeexpiration&orderType={$orderTypeNextPage}\">\n\t\t" . $l['all']['MaxTimeExpiration'] . "</a>\n\t\t</th>\n\t\t<th scope='col'>\n\t\t<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?orderBy=usedtime&orderType={$orderTypeNextPage}\">\n\t\t" . $l['all']['UsedTime'] . "</a>\n\t\t</th>\n\t\t<th scope='col'> " . $l['all']['Status'] . " </th>\n\t\t<th scope='col'> " . $l['all']['Usage'] . " </th>\n\t\t</tr> </thread>";
while ($row = $res->fetchRow()) {
    $status = "Active";
    if ($row[1] == "Expiration") {
        if (datediff('d', $row[2], "{$currdate}", false) > 0) {
            $status = "Expired";
        }
    }
    if ($row[1] == "Max-All-Session") {
        if ($row[3] >= $row[2]) {
            $status = "End";
        }
    }
    printqn("<tr>\n                        <td> <a class='tablenovisit' href='javascript:return;'\n                                onClick='javascript:ajaxGeneric(\"include/management/retUserInfo.php\",\"retBandwidthInfo\",\"divContainerUserInfo\",\"username={$row['0']}\");\n                                        javascript:__displayTooltip();'\n                                tooltipText='\n                                        <a class=\"toolTip\" href=\"mng-edit.php?username={$row['0']}\">\n                                                {$l['Tooltip']['UserEdit']}</a>\n                                        <br/><br/>\n\n                                        <div id=\"divContainerUserInfo\">\n                                                Loading...\n                                        </div>\n                                        <br/>'\n                                >{$row['0']}</a>\n                        </td>\n\n                        <td> {$row['1']} </td>\n                        <td> {$row['2']} </td>\n                        <td>" . time2str($row[3]) . "</td>\n                        <td> {$status} </td>\n\t\t\t<td> ");
    if ($row[1] == "Expiration") {
        $difference = datediff('d', $row[2], "{$currdate}", false);
        if ($difference > 0) {
            echo "<h100> " . " {$difference} days since expired" . "</h100> ";
        } else {
            echo substr($difference, 1) . " days until expiration";
        }
    }
    if ($row[1] == "Max-All-Session") {
        if ($status == "End") {
            echo "<h100> " . abs($row[2] - $row[3]) . " seconds overdue credit" . "</h100>";
        } else {
            echo $row[2] - $row[3];
            echo " left on credit";
        }
开发者ID:fortitudezhang,项目名称:daloradius,代码行数:31,代码来源:acct-active.php

示例11: while

    $orderTypeNextPage = "desc";
} else {
    if ($orderType == "desc") {
        $orderTypeNextPage = "asc";
    }
}
echo "<thread> <tr>\n\t\t<th scope='col'> \n\t\t<br/>\n\t\t<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?username={$username}&ratename={$ratename}&startdate={$startdate}&enddate={$enddate}&orderBy=username&orderType={$orderTypeNextPage}\">\n\t\t" . $l['all']['Username'] . "</a>\n\t\t</th>\n\t\t<th scope='col'> \n\t\t<br/>\n\t\t<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?username={$username}&ratename={$ratename}&startdate={$startdate}&enddate={$enddate}&orderBy=nasipaddress&orderType={$orderTypeNextPage}\">\n\t\t" . $l['all']['NASIPAddress'] . "</a>\n\t\t</th>\n\t\t<th scope='col'> \n\t\t<br/>\n\t\t<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?username={$username}&ratename={$ratename}&startdate={$startdate}&enddate={$enddate}&orderBy=acctstarttime&orderType={$orderTypeNextPage}\">\n\t\t" . $l['all']['LastLoginTime'] . "</a>\n\t\t</th>\n\t\t<th scope='col'> \n\t\t<br/>\n\t\t<a class='novisit' href=\"" . $_SERVER['PHP_SELF'] . "?username={$username}&ratename={$ratename}&startdate={$startdate}&enddate={$enddate}&orderBy=acctsessiontime&orderType={$orderTypeNextPage}\">\n\t\t" . $l['all']['TotalTime'] . "</a>\n\t\t</th>\n\t\t<th scope='col'>\n\t\t<br/>\n\t\t " . $l['all']['Billed'] . "\n\t\t</th>\n                </tr> </thread>";
$sumBilled = 0;
$sumSession = 0;
while ($row = $res->fetchRow()) {
    $sessionTime = $row[3];
    $rateCost = $row[4];
    $billed = $sessionTime / $rateDivisor * $rateCost;
    $sumBilled += $billed;
    $sumSession += $sessionTime;
    echo "<tr>\n\t\t\t\t<td> {$row['0']} </td>\n\t\t\t\t<td> {$row['1']} </td>\n\t\t\t\t<td> {$row['2']} </td>\n\t\t\t\t<td> " . time2str($row[3]) . " </td>\n\t\t\t\t<td> " . number_format($billed, 2) . " </td>\n\t\t</tr>";
}
echo "\n                                        <tfoot>\n                                                        <tr>\n                                                        <th colspan='12' align='left'>\n        ";
setupLinks($pageNum, $maxPage, $orderBy, $orderType, "&username={$username}&ratename={$ratename}&startdate={$startdate}&enddate={$enddate}");
echo "\n                                                        </th>\n                                                        </tr>\n                                        </tfoot>\n                ";
echo "</table>";
include 'library/closedb.php';
?>
			
		</div>


<?php 
include 'include/config/logging.php';
?>
开发者ID:fevenor,项目名称:Dockerfile,代码行数:30,代码来源:bill-rates-date.php

示例12: round

							I\'m sorry, but my premium account isn\'t active anymore.<br />
							Please try again later, maybe I have then premium again.';
        }
    }
    echo '
			<div class="ui-widget" style="width:500px;">
				<div class="ui-state-error ui-corner-all" style="padding: 0 .7em;">
					<p>
						<span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>
						' . $alertmsg . '
					</p>
				</div>
			</div>
			';
} else {
    echo 'Traffic left: ' . round($info['traffic'] / 1024 / 1024 / 1024, 2) . ' GB &nbsp; &bull; &nbsp; Premium expires on <span title="' . time2str($info['expire'] - time()) . ' left">' . date("d.m.Y H:i", $info['expire']) . '</span><br /><hr style="width:400px;">';
    ?>

				<br />
				<span id="message">
<?php 
    if (count($dlFiles) > 0) {
        if (true) {
            echo '<font color="green">Great, your Batch download is Ready!<br />';
            foreach ($dlFiles as $dlFile) {
                $link = $dlFile[0];
                $name = $dlFile[1];
                if (strpos($link, "#F#") === false) {
                    echo '<a style="color: green" target="_blank" href="' . $link . '" onclick="started();">' . $name . '</a></font><br>' . "\n";
                } else {
                    echo '<a style="color: red">' . $name . ' failed!</a></font><br>' . "\n";
开发者ID:thebigben,项目名称:uploaded.net-direct-premium-downloader,代码行数:31,代码来源:index.php

示例13: foreach

    					    <table class="lines">
    					        <thead>
    					            <tr>
    					                <td>Date</td>
    					                <td>Name</td>
    					                <td>Email</td>
    					                <td>App Name</td>
    					            </tr>
    					        </thead>
    					        <tbody>
        							<?php 
foreach ($orders as $o) {
    ?>
        							<tr>
        							    <td><?php 
    echo time2str($o->dt);
    ?>
</td>
        							    <td><a href="order.php?id=<?php 
    echo $o->id;
    ?>
"><?php 
    echo utf8_encode($o->first_name);
    ?>
 <?php 
    echo utf8_encode($o->last_name);
    ?>
</a></td>
        							    <td><a href="mailto:<?php 
    echo $o->payer_email;
    ?>
开发者ID:yuantw,项目名称:Shine,代码行数:31,代码来源:index.php

示例14: tag2value

            }
            if (!$clan1) {
                $clan1['tag'] = '<font class="red">aufgel&ouml;st</font>';
            }
            if (!$clan2) {
                $clan2['tag'] = '<font class="red">aufgel&ouml;st</font>';
            }
            if ($clan1['aufgeloest'] >= 1) {
                $clan1['tag'] = '<font class="red">' . $clan1['tag'] . '</font>';
            }
            if ($clan2['aufgeloest'] >= 1) {
                $clan2['tag'] = '<font class="red">' . $clan2['tag'] . '</font>';
            }
            $i++;
            $newpiece = tag2value('id', $row['id'], $piece);
            $newpiece = tag2value('start', time2str($row['ended'] - $row['started']), $newpiece);
            $newpiece = tag2value('clan1', '<a href="claninfo.php?' . SID . '&clan=' . $clan1['clanid'] . '">' . $clan1['tag'] . '</a>', $newpiece);
            $newpiece = tag2value('kp1', $row['kampfpunkte1'], $newpiece);
            $newpiece = tag2value('pluenderung1', $row['ressis1'], $newpiece);
            $newpiece = tag2value('clan2', '<a href="claninfo.php?' . SID . '&clan=' . $clan2['clanid'] . '">' . $clan2['tag'] . '</a>', $newpiece);
            $newpiece = tag2value('kp2', $row['kampfpunkte2'], $newpiece);
            $newpiece = tag2value('pluenderung2', $row['ressis2'], $newpiece);
            $ranking2 .= $newpiece;
        }
    } while ($row);
} else {
    $ranking2 = '<tr><td colspan="8"><center><a href="clanwars.php?archiv=1&amp;' . SID . '">Klicke hier um die beendeten Clanwars anzuzeigen.</a></center></td></tr>';
}
// get page html
$template .= template('clanwars');
$template = tag2value('ranking', $ranking, $template);
开发者ID:o-wars,项目名称:o-wars,代码行数:31,代码来源:clanwars.php

示例15: time2str

	<tr align="center"><td style="width:150px">Geschwindigkeit</td><td style="width:150px"><select name="speed" size="1" style="border:0; width:150px; height:20px" onchange="berechne()">
					<option value="100" ' . $speedstep100 . '>100%</option>
	 				<option value="90" ' . $speedstep90 . '>90%</option>
					<option value="80" ' . $speedstep80 . '>80%</option>
					<option value="70" ' . $speedstep70 . '>70%</option>	
					<option value="60" ' . $speedstep60 . '>60%</option>	
					<option value="50" ' . $speedstep50 . '>50%</option>	
					<option value="40" ' . $speedstep40 . '>40%</option>
					<option value="30" ' . $speedstep30 . '>30%</option>	
					<option value="20" ' . $speedstep20 . '>20%</option>	
					<option value="10" ' . $speedstep10 . '>10%</option>	
				</select></td></tr>
	<tr align="center"><td style="width:150px">Einheiten</td><td style="width:150px">' . $anzahl . '</td></tr>
	<tr align="center"><td style="width:150px">Entfernung</td><td style="width:150px"><a id="entfernung" name="entfernung">' . $entfernung * 2.5 . '</a> km</td></tr>
	<tr align="center"><td style="width:150px">Geschwindigkeit</td><td style="width:150px"><div id="s">' . $maxspeed . '.00 km/h</div></td></tr>
	<tr align="center"><td style="width:150px">Dauer</td><td style="width:150px"><div id="d">' . time2str(felder2time($entfernung * 10 / $maxspeed) - 3600) . '<br />+1:00:00<br />=' . time2str(felder2time($entfernung * 10 / $maxspeed)) . '</div></td></tr>
	<tr align="center"><td style="width:150px">Gesamtplatz</td><td style="width:150px">' . $platz . '</td></tr>
	<tr align="center"><td style="width:150px">Verbrauch in Liter</td><td style="width:150px"><div id="v1">' . $verbrauch . ' Liter</div></td></tr>
	<tr align="center"><td style="width:150px">Verbrauch in Einh.</td><td style="width:150px"><div id="v2">' . $verbrauch_einh . ' Einh.</div></td></tr>
	<tr align="center"><td style="width:150px">Eisen</td><td class="input"><input onChange="berechne();" onkeyup="berechne();" type="text" name="eisen" value="' . $_POST['eisen'] . '" style="border:0; width:150px; height:14px;"></td></tr>
	<tr align="center"><td style="width:150px">Titan</td><td class="input"><input onChange="berechne();" onkeyup="berechne();" type="text" name="titan" value="' . $_POST['titan'] . '" style="border:0; width:150px; height:14px"></td></tr>
	<tr align="center"><td style="width:150px">Oel</td><td class="input"><input onChange="berechne();" onkeyup="berechne();" type="text" name="oel" value="' . $_POST['oel'] . '" style="border:0; width:150px; height:14px"></td></tr>
	<tr align="center"><td style="width:150px">Uran</td><td class="input"><input onChange="berechne();" onkeyup="berechne();" type="text" name="uran" value="' . $_POST['uran'] . '" style="border:0; width:150px; height:14px"></td></tr>
	<tr align="center"><td style="width:150px">Gold</td><td class="input"><input onChange="berechne();" onkeyup="berechne();" type="text" name="gold" value="' . $_POST['gold'] . '" style="border:0; width:150px; height:14px"></td></tr>
	<tr align="center"><td style="width:150px">Chanje</td><td class="input"><input onChange="berechne();" onkeyup="berechne();" type="text" name="chanje" value="' . $_POST['chanje'] . '" style="border:0; width:150px; height:14px"></td></tr>	
	<tr align="center"><td style="width:150px">Restplatz</td><td style="width:150px;' . $red . '"><div id="w">' . round($restplatz, 0) . '</div></td></tr>
	</table>
	<br />
	<input type="submit" name="starten" value="Mission starten">
	<input type="hidden" name="action" value="mission" />
	<input type="hidden" name="anz1" value="' . $_POST['anz1'] . '" />
开发者ID:o-wars,项目名称:o-wars,代码行数:31,代码来源:mission.php


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