PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Jeremy Stansfield   Scale It   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script to use class
Class: Scale It
Calculate measures converted between scales
Author: By
Last change: Change require to scaleit.class.php
Date: 9 years ago
Size: 1,518 bytes
 

Contents

Class file image Download
<?php
/**
 * index.php
 */

require 'scaleit.class.php';
$s = new scaleit();

?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title id="page_title">Scale It</title>
<style>
html {
  height:100%;
  width:100%;
}
a,a:link {
  color:#F8F8F8;
}

body {
  height:100%;
  width:100%;
  margin:0px;
  padding:0px;
  background-color:#171717;
  font-family:"Lucida Console", Monaco, monospace;
}
input {
  border-radius:5px;
  font-family:"Lucida Console", Monaco, monospace;
  padding:5px;
  border:1px solid grey;
  margin-bottom:5px;
}
#page_content {
  border-radius:5px;
  min-height:100%;
  width:90%;
  background-color:#313131;
  margin-top:10px;
  margin-bottom:0px;
  margin-left: auto;
  margin-right:auto;
  padding:10px;
  color:#BABABA;
}

/* login form */
#login_form {
  width:250px;
  margin: 50px auto;
}

#login_form p {
  padding:0px;
  margin:0px;
  text-align:center;
}
#your_ip {
  text-align:right;
  font-size:85%;
}
#content {
  display:block;
  min-height:90%;
  width:300px;
  margin:20px auto;
  text-align:center;
}
#result {
  padding:20px;
  font-size:120%;

}
</style>
</head>
<body>

  <div id="page_content">
      <div id="html">

        <div id="content">
          <h1>Scale It</h1>
          <?php echo $s;?></div>

      </div>
  </div>
</body>
</html>