本文整理汇总了PHP中end_block函数的典型用法代码示例。如果您正苦于以下问题:PHP end_block函数的具体用法?PHP end_block怎么用?PHP end_block使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了end_block函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: begin_block
$HTMLOUT .= begin_block("seat_info", $caption_t = "Seat Information", $per = 98, $tdcls = "colhead5", $img = "<img src='{$TK3GRE['pic_base_url']}status.png' style=' height:28px;' alt='' title='' />", $title = 'Seat Information');
//seat info data..
if (mysql_num_rows($seats) > 0) {
//make table design
$HTMLOUT .= "<table width='100%' cellspacing='0' cellpadding='5'><tr> \n <td class=\"colhead3\"style='text-align:center;'><b>Seat Number</b></td> \n\t\t<td class=\"colhead3\"style='text-align:center;'><b>Seat Tag</b></td>\n <td class=\"colhead3\"style='text-align:center;'><b>Current Status</b></td> \n <td class=\"colhead3\"style='text-align:center;'><b>History</b></td></tr>";
//populate table
while ($seat = mysql_fetch_assoc($seats)) {
$seatID = $seat["seat_id"];
$occupied = $seat["occupied"];
if ($occupied == 0) {
$current_stat_text = "Empty/Free to sit";
} else {
$current_stat_text = "Filled up";
}
$seattag = $seat["tags"];
$seat_history = "<span class='btn'><a href='seat_history.php?room_id={$room_id}&seat_no={$seatID}'><font color=#FFFFFF>History for seat {$seatID}</font></a></span>";
//$seat_history = "<a href='seat_history.php?room_id=$room_id&seat_no=$seatID'>Details for seat $seatID</a>\n";
$HTMLOUT .= "<tr>\n\t\t\t\t\t\t<td style='text-align:center;'><b>{$seatID}</b></td>\n\t\t\t\t\t\t<td style='text-align:center;'><b>{$seattag}</b></td>\n\t\t\t\t\t\t<td style='text-align:center;'>{$current_stat_text}</td>\n\t\t\t\t\t\t<td style='text-align:center;'>{$seat_history}</td></tr>";
}
$HTMLOUT .= "</table>";
} else {
$HTMLOUT .= "No Seat info found";
}
$HTMLOUT .= end_block();
$HTMLOUT .= "<br />";
} else {
$HTMLOUT = "";
$HTMLOUT .= "<div class='notification error2 autoWidth' style='width: 957px;'><span></span>\n <div class='text'><p style='font-size: 12px;'><strong>Error!</strong>Invalid room ID. Please go back.</p>\n </div>\n </div>";
}
//Now, make the page
print stdhead("Room Details for " . $roomName) . $HTMLOUT . stdfoot();
开发者ID:pranay22,项目名称:tu-darmstadt-TK3,代码行数:31,代码来源:room_stat.php
示例2: extend
<? extend('frix/admin/base') ?>
<? block('contents') ?>
<div id="message">
<p>Are you sure you want to delete <strong>"<?php
echo $file_name;
?>
"</strong>?</p>
</div>
<form action="./?<?php
echo $_SERVER['QUERY_STRING'];
?>
" method="post">
<p class="buttons">
<span class="button"><input type="submit" name="delete" value="Yes" /></span>
<span class="button"><a href="./">No</a></span>
</p>
</form>
<? end_block() ?>
开发者ID:ricobl,项目名称:frix,代码行数:20,代码来源:delete.php
示例3: begin_block
<?php
begin_block("Powered By");
?>
<p class="center-block"><img src="blocks/images/dev_page_badges.png" width="250px"></p>
<?php
end_block();
开发者ID:nonconforme,项目名称:TorrentTrader-Bootstrap,代码行数:9,代码来源:poweredby_block.php
示例4: url
<h1><a href="<?php
echo url($root);
?>
"><?php
echo Frix::config('PROJECT_TITLE');
?>
</a></h1>
</div>
<? if ($msg): ?>
<div id="message"<? if ($msg_type): ?> class="<?php
echo $msg_type;
?>
"<? endif; ?>>
<a href="./"><?php
echo $msg;
?>
</a>
</div>
<? endif; ?>
<div id="main">
<div id="splash_box">
<? block('contents') ?><? end_block() ?>
</div>
</div>
</div>
</body>
</html>
开发者ID:ricobl,项目名称:frix,代码行数:30,代码来源:splash.php
注:本文中的end_block函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论