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(); }
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--> '; }
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 --> '; }
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(); }
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> '; }
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(); }