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


PHP client::details方法代码示例

本文整理汇总了PHP中client::details方法的典型用法代码示例。如果您正苦于以下问题:PHP client::details方法的具体用法?PHP client::details怎么用?PHP client::details使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在client的用法示例。


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

示例1: client

        <link rel="stylesheet" type="text/css" href="Login.css"/>
    </head>
    <body>
        <div id="header">
            <h1>Railway</h1>
            <p>E-Ticketing Service</p>
        </div>
        <div id="signup">
            <?php 
include "client.php";
$name = $_POST["name"];
$pass = $_POST["pass"];
$address = $_POST["address"];
$phone = $_POST["phone"];
$mail = $_POST["email"];
$client = new client();
if ($client->submit($name, $pass, $phone, $address, $mail)) {
    echo "Sign up completed";
    echo "</br>";
    $client->details($name);
} else {
    echo "User with given information already exists";
    echo "</br>";
}
echo '<a href="index.html">Go to the home page</a>.';
?>

        </div>
    </body>
</html>
开发者ID:Tahanima,项目名称:470E,代码行数:30,代码来源:signup.php

示例2: client

$class = $_SESSION["class"];
$var = 0;
if (!isset($_SESSION['schedule']) && empty($_SESSION['schedule'])) {
    $_SESSION["schedule"] = $_GET['schedule'];
}
if (!isset($_SESSION['station']) && empty($_SESSION['station'])) {
    $_SESSION["station"] = $_GET['name'];
}
$station = $_SESSION['station'];
$schedule = $_SESSION['schedule'];
$client = new client();
$clientName = $client->getName($user);
if ($client->exists($clientName)) {
    echo "<table style=\"border:1px solid black; border-collapse:collapse;\" width=\"1350\" height=\"100\"> ";
    echo "<th width=\"200\" bgcolor=\"#0000FF\">Customer Details</th>";
    $client->details($clientName);
    if (isset($_POST['submit'])) {
        $_SESSION["seats"] = $_POST['seat'];
        $var = $_SESSION["seats"];
        echo "Number of tickets : " . $var . "</br>";
        $cost = $client->CheckBooking($schedule, $class, $var);
    }
    if (isset($_POST['sub'])) {
        $client->makeBooking($schedule, $class, $_SESSION["seats"], $date, $user);
        header('Location: CustomerDet.php');
    }
}
?>

        </div>
        <div>
开发者ID:Tahanima,项目名称:470E,代码行数:31,代码来源:details.php


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