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


PHP Header::renderHeader方法代码示例

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


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

示例1: renderPage

    public function renderPage()
    {
        print '

        <link href="css/bootstrap.css" rel="stylesheet">
        <link href="css/half-slider.css" rel="stylesheet">
        <link href="css/morris.css" rel="stylesheet">
        <title>Hardloopuitslagen.nl - Home</title>
       ';
        require_once "/Classes/header.php";
        $Header = new Header();
        $Header->renderHeader();
    }
开发者ID:WouterDoornbos,项目名称:Run2Day,代码行数:13,代码来源:home.php

示例2: render

    public function render()
    {
        $loginFailedBlock = '';
        if ($this->loginFailed) {
            $loginFailedBlock = '<h6 id="login_fail"><i class="glyphicon glyphicon-alert"></i>  Some of your information isn\'t correct. Please try again.</h6></span>';
        }
        Header::renderHeader(false);
        echo '
<div id="login" class="container">
            <div class="well well-small">
                <div class="center">
                    <h1>BidBucket</h1>
                    <i><h6 id="loginSubheader">Where cool items hang out</h6></i>
                    <img src="/assets/img/logo.png" height="80" alt="logo">
                </div>
                <div>
                    <h3 style="margin-left:5%;">Sign in</h3>
                </div>
                <form action="/auction/login" style="" class="login-form" id="UserLoginForm" method="post" accept-charset="utf-8">
                    <div class="form-group">
                        <div class="input-group">
                            <div class="input-group-addon"><i class="glyphicon glyphicon-user"></i></div>
                            <input name="username" class="form-control" required="required" placeholder="username" maxlength="255" type="text" id="UserUsername">
                        </div>
                        <div class="input-group">
                            <div class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></div>
                            <input name="password" class="form-control" required="required" placeholder="Password" type="password" id="UserPassword">
                        </div>
                    </div>
                    ' . $loginFailedBlock . '
                    <div class="form-group">
                    <script>
                        function passwordAlert() {
                            alert("Please contact our team at info@bidbucket.me and we will get back to you as soon as posisble!");
                        }
                    </script>
                    <a href=""><div onclick="passwordAlert();"><p>Forgot password?</p></div></a>
                    <div class="form-group">
                        <input class="btn btn-primary btn-large btn-block" type="submit" value="Sign in">
                        <div class="register">
                            <a href="/auction/register">New here? Create an account!</a>
                        </div>
                    </div>

                </form>
            </div><!--/.login-->
</div><!--/.container-->
';
    }
开发者ID:melindafekete,项目名称:AuctionSystem_COMPGC06,代码行数:49,代码来源:LoginView.php

示例3: render

    public function render()
    {
        $registerFailedBlock = '';
        if ($this->registerFailed) {
            $registerFailedBlock = '<h6 id="register_fail"><i class="glyphicon glyphicon-alert"></i>  Some of your information did not match</h6></span>';
        }
        Header::renderHeader(false);
        echo '

        <div id="register" class="container">
            <div class="row-fluid">
                <div class="span12">
                    <div class="well well-small">
                        <form action="/auction/registerForm" class="register-form" id="UserRegisterForm" method="post" accept-charset="utf-8">
                            <div class="form-group">
                            <h3>Create an account</h3>
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
                                    <input name="username" class="form-control" required="required" placeholder="Username" maxlength="255" type="text" id="UserUsername">
                                </div>
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
                                    <input name="first_name" class="form-control" required="required" placeholder="First Name" maxlength="255" type="text" id="UserFirstName">
                                </div>
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
                                    <input name="last_name" class="form-control" required="required" placeholder="Last Name" maxlength="255" type="text" id="UserLastName">
                                </div>
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
                                    <input name="email" class="form-control" required="required" placeholder="Email" maxlength="255" type="text" id="UserEmail">
                                </div>
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>

                                    <input name="email_check" class="form-control" required="required" onkeyup="checkEmail(); return false;" placeholder="Confirm email" maxlength="255" type="text" id="UserEmailCheck">
                                    <span id="confirmEmailMessage" class="confirmEmailMessage"></span>

                                </div>
                                <select class="form-control" id="rolesDropBox" name="role_id" id="UserRole" required="required">
                                    <option value="">Account Type</option>
                                    <option value="1">Buyer</option>
                                    <option value="2">Seller</option>
                                </select>
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
                                    <input name="description" class="form-control" required="required" placeholder="Bio" maxlength="250" type="text" id="description">
                                </div>
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
                                    <input name="password" class="form-control" required="required" placeholder="Password" maxlength="10" type="password" id="UserPassword">
                                </div>
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
                                    <input name="password_check" class="form-control" required="required" onkeyup="checkPass(); return false;" placeholder="Confirm Password" maxlength="10" type="password" id="UserPasswordCheck" >
                                    <span id="confirmMessage" class="confirmMessage"></span>
                                </div>
                            </div>
                             ' . $registerFailedBlock . '
                            <div class="form-group">
                                <button class="btn btn-primary btn-large btn-block" name="submit" type="submit" value="submit"> Submit </button>
                                <a href="/auction/login">Already a member? Log in here!</a>
                            </div>
                            <hr>
                      </form>
                    </div> <!-- register -->
                </div> <!-- span12 -->
            </div> <!-- row fluid -->
        </div> <!-- container -->

';
    }
开发者ID:melindafekete,项目名称:AuctionSystem_COMPGC06,代码行数:72,代码来源:RegisterView.php

示例4: RenderPage

    public function RenderPage()
    {
        print '
    <link href="css/bootstrap.css" rel="stylesheet">
    <link href="css/half-slider.css" rel="stylesheet">
    <title>Wedstrijden - Hardloopuitslagen.nl</title>';
        require_once "/Classes/header.php";
        $Header = new Header();
        $Header->renderHeader();
        print '
    <div id="clickTable" class="container">
    <h1> Wedstrijden </h1>
        <table id = "myTable"class="table">
         <thead>
         <tr>
         <th>Naam <i class="fa fa-sort" ></i></th>
         <th>Datum <i class="fa fa-sort" ></i></th>
         <th>Locatie <i class="fa fa-sort" ></i></th>
         <th>Media</th>
         <th>Open</th>
         </tr></thead>';
        require_once "/Classes/databaseHandler.class.php";
        $Database = new Database();
        foreach ($this->wedstrijden as $key) {
            $Database->query('SELECT video, foto, cert, stats FROM wedstrijden WHERE wedstrijdID=?');
            $Database->bind(1, $key['wedstrijdID']);
            $media = $Database->single();
            print '<tr><td><img src="img/runner.png" height="25" width="30"> ' . $key['name'] . ' </td>';
            print '<td>' . $key['date'] . ' </td>';
            print '<td>' . $key['location'] . ' </td><td>';
            if (!empty($media['stats'])) {
                print " <i class='fa fa-line-chart'></i>";
            }
            if (!empty($media['video'])) {
                print " <i class='fa fa-video-camera'></i>";
            }
            if (!empty($media['foto'])) {
                print " <i class='fa fa-camera'</a>";
            }
            if (!empty($media['cert'])) {
                print " <i class='fa fa-certificate''></a></td>";
            }
            print ' <td><a class="fa fa-folder-open-o"  href="?wedstrijd&show=' . $key['wedstrijdID'] . '"</td></tr>';
        }
        print '
            </table>
            </div>

            <script>
                $(".carousel").carousel({
                    interval: 5000 //changes the speed
                })

                $(document).ready(function() {
    $("#clickTable tr").click(function() {
        var href = $(this).find("a").attr("href");
        if(href) {
            window.location = href;
        }
    });

});
            </script>

            <script language="JavaScript" type="text/javascript">
        $(document).ready(function()
        {
            $("#myTable").tablesorter();
        }
        );
</script>
            ';
        require_once "/Classes/footer.php";
        $Footer = new Footer();
        $Footer->renderFooter();
    }
开发者ID:WouterDoornbos,项目名称:Run2Day,代码行数:76,代码来源:wedstrijden.php

示例5: renderHeader

    public function renderHeader()
    {
        require_once "/Classes/databaseHandler.class.php";
        $Database = new Database();
        $Database->query('SELECT *  FROM wedstrijden WHERE wedstrijdID=?');
        if (!isset($_GET['show'])) {
            $Database->bind(1, $_GET['id']);
        } else {
            $Database->bind(1, $_GET['show']);
        }
        $resultSet = $Database->single();
        print '
        <link href="css/bootstrap.css" rel="stylesheet">
        <link href="css/half-slider.css" rel="stylesheet">
        <link href="css/morris.css" rel="stylesheet">
        <title>Run2Day - Home</title>';
        if (empty($resultSet['videoHeader'])) {
            require_once "/Classes/header.php";
            $Header = new Header();
            $Header->renderHeader();
        } else {
            require_once "/Classes/videoHeader.php";
            $videoHeader = new videoHeader();
            $videoHeader->renderHeader();
        }
        print '

        <div class="container">
            <h1>Uitslagen ' . $resultSet['name'] . ' ' . $resultSet['date'] . '</h1>
            <p>Zoek een deelnummer op naam of startnummer.
            <br>Klik op een uitslag om de statistieken van een deelnemer te bekijken.</p>

            <script language="JavaScript" type="text/javascript">
                    $(document).ready(function()
                    {
                        $("#myTable").tablesorter();
                    }
                    );
            </script>

            <script>
                     $(document).ready(function() {
                        $("#clickTable tr").click(function() {
                             var href = $(this).find("a").attr("href");
                              if(href) {
                                   window.location = href;
                              }
                           });
                            });
            </script>
        ';
    }
开发者ID:WouterDoornbos,项目名称:Run2Day,代码行数:52,代码来源:wedstrijd.php

示例6: RenderPage

    public function RenderPage()
    {
        require_once "/Classes/databaseHandler.class.php";
        $Database = new Database();
        $Database->query('SELECT camName, videoID, camID  FROM cams WHERE fk_wedstrijdID=?');
        $Database->bind(1, $_GET['eventid']);
        $cams = $Database->resultset();
        $url = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
        print '

<head>
    <title>' . "Run2Day video - " . $this->Naam . " - " . $this->Wedstrijdnaam . '</title>
    <!-- Bootstrap Core CSS -->
    <link href="css/bootstrap.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="css/half-slider.css" rel="stylesheet">
</head>
<body>';
        require_once "/Classes/header.php";
        $Header = new Header();
        $Header->renderHeader();
        print '
    <!-- Page Content -->
    <div class="container">
    <h1 class=text-center>' . $this->Startnummer . ' - ' . $this->Naam;
        if ($this->Geslacht == "M") {
            echo ' <i class="fa fa-male"></i>';
        }
        if ($this->Geslacht == "V") {
            echo ' <i class="fa fa-female"></i>';
        }
        print '
    </h1>
    <p class=text-center>' . $this->Woonplaats . ' <br> ' . $this->Wedstrijdnaam . '</p>
    <hr>
    <div class="row">
    <div class="col-lg-12">


   <div class="text-center">
   Beschikbare videos:<br>';
        foreach ($cams as $data) {
            print '<a type="button" class="btn btn-default" href="?newplayer&eventid=' . $_GET['eventid'] . '&startnummer=' . $_GET['startnummer'] . '&video=' . $data['camID'] . '" >' . $data['camName'] . '</a>';
        }
        print '<hr></div>


       <div class="container">
          <div class="col-md-8 col-md-offset-2">
             <div class="embed-responsive embed-responsive-16by9">
                <iframe class="embed-responsive-item" src="https://player.vimeo.com/video/';
        echo $this->VideoID;
        print '?autoplay=true#t=';
        echo $this->VideoTijd;
        print '" frameborder="0"  webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
             </div>
             <h1 class="text-center">  <i class="fa fa-video-camera"></i>
                ' . "{$this->CamName}" . ' camera
             </h1>
          </div>
       </div>
       <hr>
       <div class="centered text-center">
          <p><a class="btn btn-primary btn-lg" href="?search" role="button">Zoek een andere video</a></p>
          <h3>Deel je video op Facebook!</h3>
          <div class="fb-share-button" data-href="http://hardlopen.wouterd.nl?player&wedstrijd=' . $_GET['wedstrijd'] . '&naam=' . $_GET['naam'] . '&startnummer=' . $_GET['startnummer'] . '" data-layout="box_count"></div>
          <div class="col-md-4 col-md-offset-4">
             <br>Of gebruik de link: <input class="form-control" type="text" id="formGroupInputSmall" placeholder="Small input" value= ' . $url . ' >
          </div>
          <!-- Footer -->
       </div>
<!-- /.container -->
</div>
<!-- jQuery -->
<script src="js/jquery.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</div>
</div>
';
        require_once "/Classes/footer.php";
        $Footer = new Footer();
        $Footer->renderFooter();
    }
开发者ID:WouterDoornbos,项目名称:Run2Day,代码行数:85,代码来源:newplayer.php


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