示例#1
0
<!DOCTYPE html>

<?php 
session_start();
include 'initclasses.php';
$crag = new Crag();
//jos ei ole aloitettu reeniä, niin aloitetaan
if (!isset($_SESSION['practice_start_time'])) {
    $practice = new Practice();
    $practice->start(1);
    //parametri: 1=ulkona, 0=sisällä
    $practice = NULL;
}
?>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1  user-scalable=no">
        <link href='http://fonts.googleapis.com/css?family=Droid+Sans:700' rel='stylesheet' type='text/css'>
        <link rel="stylesheet" type="text/css" href="styles/normalize.css">
        <link rel="stylesheet" type="text/css" href="styles/ulko.css">
        <script src="libraries/jquery-2.1.3.js"></script>
        <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAHM5-PHCencLLC0cgbV74whHNPoFDu0uE"></script>
        <script src="libraries/geolocationmarker-compiled.js"></script>    
        <script src="scripts/ulko.js"></script>
        
        <title>ulko</title>
    </head>
    <body>
        <div id="map-canvas"></div>
        <div id="container">
示例#2
0
<!DOCTYPE html>
<?php 
include 'initclasses.php';
$practice = new Practice();
if (!isset($_SESSION['practice_start_time'])) {
    $practice->start(0);
    //parametri: 1=ulkona, 0=sisällä
}
?>
<html>
    <head>
        <title>Climbingtime - sisäharjoittelu</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1 user-scalable=no">
        <link type="text/css" rel="stylesheet" href="styles/normalize.css">
        <link type="text/css" rel="stylesheet" href="styles/main.css">
        <link type="text/css" rel="stylesheet" href="styles/sisa.css">
        <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
        <link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
        <script src="libraries/jquery-2.1.3.js"></script>
    </head>
    <body>
        <div id="container">
<?php 
include "navbar.php";
?>
            <div id="content">
                <div id="toppaus">
                    <h3>Toppaus</h3>
<?php 
echo $practice->printAddForm('top');