本文整理汇总了PHP中Checkout::getTitle方法的典型用法代码示例。如果您正苦于以下问题:PHP Checkout::getTitle方法的具体用法?PHP Checkout::getTitle怎么用?PHP Checkout::getTitle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Checkout
的用法示例。
在下文中一共展示了Checkout::getTitle方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: printHeader
<!DOCTYPE html>
<html lang="en">
<head>
<!-- INCLUDE BS HEADER INFO -->
<?php
include 'templates/bs-head.php';
?>
<title>Checkout</title>
</head>
<body>
<!-- IMPORT NAVIGATION & HEADER-->
<?php
include 'templates/bs-nav.php';
echo printHeader($checkout->getTitle(), NULL);
?>
<div class="container">
<div class="row">
<div class="col-sm-8 col-sm-offset-2">
<?php
echo "<a href='checkouts.php'><span class='glyphicon glyphicon-chevron-left'></span> Back to Checkouts</a>";
?>
<br /><br />
<div class="panel panel-default">
<div class="panel-heading text-center">Checkout Details</div>
<div class="panel-body text-center">
<p>
<?php
printf("<strong>Checkout ID:</strong> %s<br /><br />", $checkout->getID());
示例2: htmlspecialchars
<hr />
<form role="form" action="<?php
echo htmlspecialchars($_SERVER["PHP_SELF"]);
?>
" method="POST">
<input type="hidden" name="step" value="1" />
<input type="hidden" name="co_id" value="<?php
echo $co_id;
?>
" />
<div class="form-group"> <!-- TITLE -->
<label class="control-label" for="title">Event Title:</label>
<input type="text" class="form-control" name="title" value="<?php
echo $co->getTitle();
?>
">
</div>
<div class="form-group"> <!-- DESC -->
<label class="control-label" for="description">Description:</label>
<textarea class="form-control" name="description" rows="3"><?php
echo $co->getDescription();
?>
</textarea>
</div>
<div class="form-group"> <!-- LOCATION -->
<label class="control-label" for="location">Location:</label>
<input type="text" class="form-control" name="location" value="<?php
echo $co->getLocation();
?>