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


PHP header::all方法代码示例

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


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

示例1:

<?php

include 'core.php';
?>
    
    <?php 
header::all("view-shell");
?>

<div class="container-fluid view-top-box">
    <div class="container">
        <div class="row">
            <div class="col-md-2 col-md-push-10 right status-shell">
                <span class="status numbers">8908908 &nbsp;<i class="fa fa-map-pin"></i></span>
                <span class="status">Open &nbsp;<i class="fa fa-square-o"></i></span>
                <span class="status">3 days &nbsp;<i class="fa fa-clock-o"></i></span>
            </div>
            <div class="col-md-10 col-md-pull-2">
                <h1>Broken Washing Machine</h1>
                <p><i class="fa fa-home"></i> &nbsp;Flat 1, High Street, Cheltenham, Glos, GL51 A12</p>
                <span class="user-info"><i class="fa fa-user"></i>&nbsp; John Smith &nbsp;&nbsp;</span> <span class="user-info"><i class="fa fa-envelope"></i>&nbsp; john.smith@email.com &nbsp;&nbsp;</span> <span class="user-info"><i class="fa fa-phone"></i>&nbsp; <span class="numbers">07123 456789</span></span>
            </div>
            <!--
            <div class="col-md-10 col-md-pull-2">
                            <h1>Broken Washing Machine Broken Washing Machine Broken Washing</h1>
                            <p><i class="fa fa-home"></i> &nbsp;2 Timperley Way, Up Hatherley, Cheltenham, GL51 3RH 2 Timperley Way, Up Hatherley, Cheltenham, GL51 3RH 2 Timperley Way, Up Hatherley, Cheltenham, GL51 3RH 2 Timperley Way, Up Hatherley, Cheltenham</p>
                            <span class="user-info"><i class="fa fa-user"></i>&nbsp; Robert Tribe Robert Tribe Robert Tribe Robert Trib &nbsp;&nbsp;</span> <span class="user-info"><i class="fa fa-envelope"></i>&nbsp; rob@robtribe.co.ukrob@robtribe.co.ukrob@robtribe.co.ukrob@robtribe.co.ukrob@robtribe.co.ukrobtribe12 &nbsp;&nbsp;</span> <span class="user-info"><i class="fa fa-phone"></i>&nbsp; <span class="numbers">07857772976</span></span>
                        </div>
            -->
        </div>
    </div>
开发者ID:tribey2,项目名称:mendhub,代码行数:31,代码来源:viewticket.php

示例2: MysqliDb

<?php

include 'core.php';
?>
    
    <?php 
header::all();
?>

    <?php 
// Generate new unique ticket ID by fetching the primary ID of the last ticket &
// using a substring of the time() function to avoid duplicates
// New DB Connection
$db = new MysqliDb($dbserver, $dbusername, $dbpassword, $dbdatabase);
// Order by primary ID descending to ensure we fetch the final table row.
$db->orderBy("primary_id", "desc");
// Fetch the primary ID of the last ticket in the database
$last_ticket = $db->getValue("tickets", "primary_id");
// Create new unique ticket number for this ticket
$new_ticket_number = $last_ticket . substr(time(), 7, 10);
// Get current time in PHP - we use this as a simple method of catching spambots
$spambot_time = time();
?>

<h1 class='mendhub-logo corner-logo'><a href='http://<?php 
echo $_SERVER[HTTP_HOST];
?>
 '>Mend<span class='mendhub-sub-logo'>Hub</span></a></h1>
    
<div class="container-fluid">
    <div class="row">
开发者ID:tribey2,项目名称:mendhub,代码行数:31,代码来源:index.php


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