Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //--------------------------------------//
- // STEAM PROS //
- // methods.php //
- //--------------------------------------//
- // Ryan Perkins //
- // rypedesigns.com 2016 (c) //
- //--------------------------------------//
- class database {
- function connect()
- {
- if ( $_SERVER["REMOTE_ADDR"] == "127.0.0.1" )
- //{ $domain = "localhost"; } else { $domain = "mysql.rypedesigns.com"; }
- $dbuser = "rype"; $dbuser = "steampro_rype";
- $dbpass = "databasePW"; $dbpass = "k1llerthps";
- $dbname = "steampro_site"; $dbname = "steampro_site";
- $dbhost = "steampros.net"; $dbhost = "steampros.net";
- $this->id = mysql_connect($dbhost, "steampro_rype", $dbpass) or die("<br />Failed onConnect(DB); printing report..<br />" . mysql_error());
- mysql_select_db($dbname, $this->id) or die ("<br />Failed onSelect('{$dbname}'); printing report..<br />" . mysql_error());
- return $this->id;
- } // end connect()
- function query($query_input, $results = false, $result_name = false)
- {
- global $DB;
- if ( $this->qcount == 0 || $this->qcount == false ){
- $this->qcount = 1;
- } else {
- ++$this->qcount;
- }
- $result = @mysql_query($query_input, $this->id);
- if ( $result !== false && $result !== NULL ){
- $this->error = NULL;
- $this->last_query = $query_input;
- if ( !isset($result_name) || $result_name == false ){
- $this->result = $result; }
- else{ $this->$result_name = $result; }
- if ( $results == true || $results == "1" ){ $result_count = 0;
- $this->count_query = preg_replace('/LIMIT(\s*)(\d*\s*,)?(\s*)(\d*)/', '', $query_input);
- $count_result = @mysql_query($this->count_query, $this->id);
- while ( $row = mysql_fetch_row($count_result) )
- { $result_count++; }
- $this->results = $result_count;
- return @mysql_query($query_input, $this->id);
- } else {
- return true;
- }
- } else {
- $this->error = mysql_error();
- $this->last_query = $query_input;
- return $this->result = false;
- }
- } // end query
- } // end DB
- class user {
- /*
- function login($page){
- global $DB, $subpage;
- if ( isset($_POST["username"]) && isset($_POST["password"]) ) {
- $username = $_POST["username"];
- $password = md5($_POST["password"]);
- $query = "SELECT * FROM `users` WHERE `username` = '{$username}' AND `password` = '{$password}' LIMIT 1";
- $DB->query($query);
- $row = mysql_fetch_array($DB->result, MYSQL_ASSOC);
- if ( isset($row) && $DB->error == NULL ) {
- setcookie("id", $row["id"]);
- setcookie("username", $_POST["username"]);
- setcookie("password", $password);
- $this->logged_in = true;
- $this->uid = $row["id"];
- $this->username = $_POST["username"];
- $this->password = $password;
- $this->admin = $row["admin"];
- } else {
- setcookie("id", NULL);
- setcookie("username", NULL);
- setcookie("password", NULL);
- $this->logged_in = false;
- $this->uid = NULL;
- $this->username = NULL;
- $this->password = NULL;
- $this->admin = false;
- }
- }
- } // end login() ----------
- */
- function verify($source, $setcookies) {
- global $DB;
- if ( $source == "post" || $_POST["login"] == "1" ) {
- $username = $_POST["username"];
- $password = md5($_POST["password"]);
- } elseif ( $source == "cookie" || isset($_COOKIE["username"]) ) {
- $username = $_COOKIE["username"];
- $password = $_COOKIE["password"];
- }
- $query = "SELECT * FROM `users` WHERE `username` = '{$username}' AND `password` = '{$password}' LIMIT 1";
- $DB->query($query);
- $row = mysql_fetch_array($DB->result, MYSQL_ASSOC);
- if ( isset($row) && $DB->error == NULL ) {
- $this->logged_in = true;
- $this->uid = $row["id"];
- $this->username = $row["username"];
- $this->password = $row["password"];
- $this->admin = $row["admin"];
- if ( $setcookies == "true" ) {
- setcookie("id", $row["id"]);
- setcookie("username", $row["username"]);
- setcookie("password", $row["password"]);
- setcookie("time", time());
- }
- } else {
- $this->logged_in = false;
- $this->uid = NULL;
- $this->username = NULL;
- $this->password = NULL;
- $this->admin = false;
- if ( $setcookies == "true" ) {
- unset($_COOKIE["id"]);
- unset($_COOKIE["username"]);
- unset($_COOKIE["password"]);
- unset($_COOKIE["time"]);
- }
- }
- // echo "COOKIES:"; print_r($_COOKIE); echo "<br /><br /><br />";
- } // end verify() ----------
- } // end user() class ---------------
- class methods {
- function administration($page) {
- global $DB, $user, $subpage;
- $this->subHeader($page);
- if ( isset($_POST["nid"]) ) { $nid = $_POST["nid"]; }
- elseif ( isset($_GET["nid"]) ) { $nid = $_GET["nid"]; }
- // print_r($_POST);
- // echo $_COOKIE["username"] . " ==> username(cookie)<br /><br /> " . $_COOKIE["password"] . " ==> password <br /><br />";
- if ( $user->admin !== "1" ) { echo "<h2>Login Required!</h2>Please click the administors link at the bottom of any page and login properly to access this page."; }
- // CHECK LOGGED IN ---------------
- if ( $user->logged_in == true && $user->admin == "1" ) {
- echo "<h4 style=\"text-align: center\">logged in as: {$user->username}</h4>";
- // CHECK NEWS SUBMITTED ---------------
- if ( $_POST["submit_news"] == "1" && isset($_POST["title"]) && isset($_POST["body"]) ) {
- $title = addslashes($_POST["title"]);
- $body = addslashes($_POST["body"]);
- $time = time();
- $action = $_POST["action"];
- $nid = $_POST["nid"];
- $delete = $_POST["delete"];
- if ( isset($user->username) && isset($user->uid) ) {
- if ( $delete == "1" && isset($nid) ) {
- $query = "DELETE FROM `newsEntries` WHERE `id` = '{$nid}' limit 1";
- $DB->query($query);
- if ( $DB->error == NULL ) {
- echo "<h2>Successfully Deleted!</h2>The news post you requested ('<b>{$title}</b>') has been successfuly removed from the database."; }
- } elseif ( $action == "insert" || !isset($action) ) {
- $query = "INSERT INTO `newsEntries` ( `uid`, `username`, `title`, `body`, `time` ) VALUES ('{$user->uid}', '{$user->username}', '{$title}', '{$body}', '{$time}')";
- $DB->query($query);
- if ( $DB->error == NULL ) {
- echo "<h2>News Entry Added!</h2>Your news post named '<b>{$title}</b>' has been successfully added to the News database."; }
- } elseif ( $action == "update" && is_numeric($nid) ) {
- $query = "UPDATE `newsEntries` SET `title` = '{$title}', `body` = '{$body}' WHERE `id` = '{$nid}' LIMIT 1";
- $DB->query($query);
- if ( $DB->error == NULL ) {
- echo "<h2>News Entry Updated!</h2>Your news post named '<b>{$title}</b>' has been successfully updated."; }
- } else {
- echo "<h2>Sorry..</h2>There was a problem with your request. Please hit the back button and try again.";
- }
- // ECHO QUERY TROUBLESHOOTING ---------------
- echo "<!-- {$query} -->";
- } else { echo "username or uid is not set. user :: "; print_r($user); }
- // CHECK NEWS EDIT VARS ---------------
- } elseif ( $subpage == "edit" ) {
- $query = "SELECT * FROM `newsEntries` WHERE `id` = '{$nid}' LIMIT 1";
- $DB->query($query);
- $row = mysql_fetch_array($DB->result, MYSQL_ASSOC);
- if ( $DB->error !== NULL ) { echo $DB->error; return; }
- $title = $row["title"];
- $body = $row["body"];
- echo "
- <h2>Edit News Entry</h2>
- <form action=\"index.php?page=administration\" method=\"post\">
- <table cellpadding=\"0\" cellspacing=\"0\" align=\"center\" style=\"width: 70%; min-width: 400px; text-align: left; font-weight: bold; margin-left: auto; margin-right: auto\">
- <tr>
- <td colspan=\"2\" valign=\"top\" style=\"height: auto; padding-bottom: 6px; color: #93804f\">
- News Title<br />
- <input type=\"text\" name=\"title\" value=\"{$title}\" size=\"64\" style=\"width: 100%; min-width: 400px\">
- <br />
- News Body <br />
- <textarea name=\"body\" style=\"width: 100%; min-width: 400px\" rows=\"8\">{$body}</textarea>
- </td>
- </tr>
- <tr>
- <td style=\"width: 100px; color: #93804f; white-space: nowrap; vertical-align: top; text-align: center; padding-top: 0px\" valign=\"top\" nowrap>
- <span style=\"display: inline-block; background-color: #AA0A0A; border: 2px solid white; padding: 2px 10px 2px 10px; width: auto; border-radius: 4px\">
- <font style=\"color: white\">Delete?</font> <input type=\"checkbox\" name=\"delete\" value=\"1\" onClick=\"confirm('Really delete this post?')\">
- </span>
- </td>
- <td valign=\"top\" style=\"padding: 0px 2px 0px 10px; vertical-align: top; text-align: right\" nowrap>
- <input type=\"hidden\" name=\"submit_news\" value=\"1\">
- <input type=\"hidden\" name=\"action\" value=\"update\">
- <input type=\"hidden\" name=\"nid\" value=\"{$nid}\">
- <input type=\"submit\" value=\"Edit News Entry\" style=\"width: 100%; text-align: center; margin-top: 0px\">
- </td>
- </tr>
- </table>
- </form>
- ";
- // ELSE ECHO NEWS ENTRY ---------------
- } else {
- echo "
- <h2>Create News Entry</h2>
- <div style=\"width: 70%; min-width: 480px; margin-left: auto; margin-right: auto\">
- <form action=\"index.php?page=administration\" method=\"post\">
- News Title<br />
- <input type=\"text\" name=\"title\" size=\"64\" style=\"width: 100%; min-width: 400px\">
- <br />
- News Body <br />
- <textarea name=\"body\" style=\"width: 100%; min-width: 400px\" rows=\"8\"></textarea>
- <br />
- <input type=\"hidden\" name=\"submit_news\" value=\"1\">
- <input type=\"hidden\" name=\"action\" value=\"insert\">
- <div style=\"width: 100%; margin: 0px auto 0px auto; text-align: center\">
- <input type=\"submit\" value=\"Create News Entry\" style=\"width: 100%; text-align: center; margin-left: auto; margin-right: auto\">
- </div>
- <input type=\"hidden\" name=\"submit_news\" value=\"1\">
- <input type=\"hidden\" name=\"action\" value=\"insert\">
- </form>
- </div>
- ";
- }
- echo "<h2>Edit News Entries</h2>
- <div align=\"center\" style=\"width: 85%; text-align: left; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px\">
- ";
- $i = 1;
- $query = "SELECT * FROM `newsEntries` ORDER BY `id` ASC LIMIT 10";
- $DB->query($query);
- while ( $row = mysql_fetch_array($DB->result, MYSQL_ASSOC) ) {
- if ( !isset($row["title"]) || $row["title"] == NULL ) { $row["title"] = "Unnamed News Entry"; }
- $date = date('m.d.y @ h:i A', $row["time"]);
- echo "
- ".$row['id']."] <b><a href=\"?page=administration&subpage=edit&nid=".$row['id']."\">".$row['title']."</a></b> <span style=\"color: #CCCCCC\">".htmlspecialchars( substr($row['body'],0,64) )."</span> <font style=\"color: #4090D0\">by <b>".substr($row['username'],0,5)."</b></font> <font style=\"color: #AAAAAA\"> on ".substr($date,0,8)."</font>
- <br />
- ";
- ++$i;
- }
- echo "</div><br /><br />
- <h2>Troubleshooting Data</h2>
- USER ARRAY:";
- print_r($user);
- echo "<br /><br />COOKIE ARRAY:";
- print_r($_COOKIE);
- echo "<br /><br />username> ". $user->username."<br />password> ".$user->password."<br />uid> ".$user->uid." <br />";
- } else {
- echo "<h2>Administrator Login</h2>
- <form action=\"index.php?page=administration\" method=\"post\">
- Username <br />
- <input type=\"text\" maxlength=\"32\" size=\"32\" name=\"username\"><br />
- Password <br />
- <input type=\"password\" maxlength=\"32\" size=\"32\" name=\"password\"><br />
- <br />
- <input type=\"submit\" value=\"Login!\">
- <br />
- <input type=\"hidden\" name=\"login\" value=\"1\">
- </form>
- ";
- }
- }
- function news($page)
- {
- global $DB, $user, $subpage;
- $background_image_number = rand(1, 2);
- echo "<div style=\"width: 100%; background-color: #2a2a2a; height: 405px; text-align: left; vertical-align: middle; line-height: auto; font-weight: bold; font-size: 56px; font-family: 'Trebuchet MS', Tahoma, Arial; color: white; background-image: url('images/news_img_{$background_image_number}.jpg'); background-position: top center; background-repeat: no-repeat; border-bottom: 15px solid #d1d1d1\">
- <div align=\"center\" style=\"text-align: left; margin-left: auto; margin-right: auto; width: 65%; min-width: 675px; height: 100%\">
- <span style=\"vertical-align: -390px; line-height: auto; letter-spacing: 4px; word-spacing: 25px\">news</span>
- </div>
- </div>
- <div align=\"center\" style=\"text-align: left; margin-left: auto; margin-right: auto; width: 65%; min-width: 675px\">
- ";
- $i = 1;
- $query = "SELECT * FROM `newsEntries` ORDER BY `id` DESC LIMIT 3";
- $DB->query($query);
- while ( $row = mysql_fetch_array($DB->result, MYSQL_ASSOC) ) {
- $date = date('m.d.y @ h:i A', $row["time"]);
- echo "
- <h2>{$i}] <b>".$row['title']."</b> <!-- <font style=\"color: #4090D0\">by <b>".$row['username']."</b></font> --><font style=\"color: #AAAAAA; font-size: 20px\"> on ".$date."</font></h2>
- <p>".$row['body']."</p>
- ";
- ++$i;
- }
- echo "</div>";
- } // end news() ---------------
- function contact($page)
- {
- global $subpage;
- $this->subHeader($page);
- echo "
- <h2>Email Steam Pros</h2>
- <div align=\"center\" style=\"width: 100%; min-width: 480px\">
- <form action=\"?page=contact\" method=\"post\">
- <b>
- <table cellpadding=\4\" cellspacing=\"8\" align=\"left\" align=\"center\" style=\"width: 100%; min-width: 480px; margin-left: 0px; font-weight: bold; padding-left: 10%; padding-right: 10%\">
- <tr>
- <td style=\"width: 50%; text-align: right\">
- Your Name: <br>
- <input name=\"name\" type=\"text\" maxlength=\"32\" size=\"24\" style=\"text-align: left; width: 100%\"><br>
- </td>
- <td style=\"width: 50%; text-align: left\">
- Phone Number: (not required)<br>
- <input name=\"email_address\" type=\"text\" maxlength=\"48\" size=\"24\" style=\"width: 100%\"><br>
- </td>
- </tr>
- <tr>
- <td style=\"width: 50; text-align: right\">
- E-mail address: <br>
- <input name=\"email_address\" type=\"text\" maxlength=\"48\" size=\"24\" style=\"text-align: left; width: 100%\"><br>
- </td>
- <td style=\"width: 50; text-align: left\">
- Message Subject: <br>
- <input name=\"subject\" type=\"text\" maxlength=\"64\" size=\"24\" style=\"width: 100%\"><br>
- </td>
- </tr>
- <tr>
- <td colspan=\"2\" style=\"width: 100%\">
- Message to Steam Pros: <br>
- <textarea name=\"message\" rows=\"6\" style=\"width: 100%\"></textarea><br>
- </td>
- </tr>
- <tr>
- <td colspan=\"2\" style=\"width: 100%; text-align: center\">
- <input type=\"submit\" value=\"Send Message!\" style=\"width: 100%; text-align: center\"><br>
- </td>
- </tr>
- </table>
- </b>
- </form>
- </div>
- <br />
- <div style=\"width: 100%\">
- <h2>Contact Information</h2>
- Steam Pro <br />
- Wes Carollo <br />
- <br />
- Address: <br />
- 2231 Labarre St. <br />
- Mandeville <br />
- LA / St. Tammany Parish <br />
- 70448 <br />
- United States <br />
- <br />
- Telephone: 985-626-5895 <br />
- Mobile Phone Number: 985-626-5895 <br />
- http://sttammanycarpetcleaner.com <br />
- <br />
- Information: Serving: Mandeville, Madisonville, Covington, Lacombe, Abita Springs, Slidell, Folsom, Hammond, Ponchatoula, and Robert. Call for a quick quote or email and we will respond to you in a timely manner! <br />
- </div>
- ";
- } // end contact() ---------------
- function pricing($page)
- {
- global $subpage;
- $this->subHeader($page);
- echo "
- <h2>General Pricing Guide</h2>
- This is a general pricing guide to get you started. For a more detailed estimate please call. <br><br>
- MINIMUM CHARGE IS $90 <br><br>
- Carpet:<br><br>
- $35 per room (large living rooms will count as 2 rooms)<br>
- $50 per set of stairs<br>
- <br>
- Tile:<br><br>
- $150 per kitchen/utility room area<br>
- $35 per bathroom, or $45 for master bathroom<br>
- $60 per bedroom, or $150 for living room if these are tiled<br>
- <br>
- Upholstery: <br><br>
- $100 for a 3-cushion sofa, or $150+ for a sectional sofa<br>
- $75 for a 2-cushion sofa<br>
- $60 for a recliner<br>
- For a set of dining room chairs, or any other furniture, please call.<br>
- <h2>Free Estimate</h2>
- <div align=\"center\" style=\"width: 70%; min-width: 400px; text-align: left; padding-left: 15%\">
- <form action=\"\" method=\"post\">
- Email Address<br>
- <input type=\"text\" name=\"email\" size=\"32\">
- <br />
- Please tell us the exact services that you require and we will email you back with an estimate.<br>
- <textarea name=\"body\" style=\"width: 100%\" rows=\"6\"></textarea>
- <br />
- <input type=\"submit\" value=\"Get Estimate!\" style=\"width: 100%; text-align: center\">
- </form>
- </div>";
- } // end pricing() ---------------
- function about($page)
- {
- global $subpage;
- $this->subHeader($page);
- echo "
- <h2>About Wes Carollo and Steam Pro</h2>
- Wes Carollo is a resident of Mandeville, Louisiana for the past thirty-five years. Wes and Steam Pro have been a fixture in St. Tammany Parish since 1987. He is a <font style=\"color: white\"><b>certified carpet cleaning technician</b></font> and a stickler for detail.
- <br /><br />
- The cleaning process employs a powerful truck-mounted steam extraction service. The cleaning solution is an eco and environmentally friendly product:
- <br /><br />
- Safe for your family, your pets and your community.<br />
- Services are offered seven days a week.
- <br />
- <h2>Contact Information</h2>
- Steam Pro <br />
- Wes Carollo <br />
- <br />
- Address: <br />
- 2231 Labarre St. <br />
- Mandeville <br />
- LA / St. Tammany Parish <br />
- 70448 <br />
- United States <br />
- <br />
- Telephone: 985-626-5895 <br />
- Mobile Phone Number: 985-626-5895 <br />
- http://sttammanycarpetcleaner.com <br />
- <br />
- Information: Serving: Mandeville, Madisonville, Covington, Lacombe, Abita Springs, Slidell, Folsom, Hammond, Ponchatoula, and Robert. Call for a quick quote or email and we will respond to you in a timely manner! <br />
- ";
- } // end about() ---------------
- function reviews($page)
- {
- global $DB, $subpage;
- $this->subHeader($page);
- date_default_timezone_set("US/Eastern");
- if ( $_POST["submit_review"] == "1" ){
- // print_r($_POST);
- if ( isset($_POST["rating"]) && $_POST["rating"] > 0 && $_POST["rating"] < 6 ) { $rating = $_POST["rating"]; }
- else{ $rating = "5"; }
- $title = addslashes($_POST["title"]);
- $body = addslashes($_POST["body"]);
- $time = time();
- $ip = $_SERVER['REMOTE_ADDR'];
- $sql_query = "INSERT INTO userReviews ( `title`, `body`, `rating`, `time`, `ip_address` ) VALUES ( '{$title}', '{$body}', '{$rating}', '{$time}', '{$ip}' )";
- echo $sql_query ."<br />";
- if ( is_numeric($rating) && $rating >= 0 && $rating <= 5 ){
- if ( isset($body) && $body !== "" ){ $DB->query("{$sql_query}"); }
- }
- }
- $sql_limit = 7;
- $DB->query("SELECT * FROM `userReviews` ORDER BY `id` DESC LIMIT {$sql_limit}");
- echo "
- <h2>Customer Reviews</h2>
- <table style=\"width: 100%\" cellpadding=\"0\" cellspacing=\"0\">
- ";
- $i = 0;
- while ( $row = mysql_fetch_array($DB->result, MYSQL_ASSOC) ){
- ++$i;
- $title = $row["title"];
- $body = $row["body"];
- $date = date('m.d.y @ h:i A', $row["time"]);
- $rating = $row["rating"];
- $starHTML = ratingStars($rating);
- echo "
- <tr><td valign=\"bottom\" style=\"width: 36px; border-top: 1px solid #505050; border-right: 1px solid #505050; padding-right: 6px; padding-bottom: 0px; text-align: right; font-size: 16px; font-weight: bold; height: 24px\">#{$i}</td><td style=\"border-top: 1px solid #505050; padding-bottom: 0px; padding-left: 6px; font-size: 16px; font-weight: bold; height: 24px\"> <font style=\"color: #FFDD66\">{$starHTML}</font> {$title} {$date}</td></tr>
- <tr><td style=\"border-right: 1px solid #505050; padding-top: 0px\"> </td><td valign=\"top\" style=\"color: #93804f; vertical-align: top; padding-left: 6px; padding-top: 0px; padding-bottom: 18px\">{$body}</td></tr>
- ";
- }
- echo "
- </table>
- <h2>Submit Review</h2>
- <form action=\"index.php?page=reviews\" method=\"post\">
- <table cellpadding=\"0\" cellspacing=\"0\" align=\"center\" style=\"width: 50%; min-width: 400px; text-align: left; font-weight: bold; margin-left: auto; margin-right: auto\">
- <tr>
- <td colspan=\"2\" valign=\"top\" style=\"height: auto; padding-bottom: 6px; color: #93804f\">
- Review Title
- <input type=\"text\" name=\"title\" size=\"64\" style=\"width: 100%; min-width: 400px\">
- <br />
- Review Body
- <br />
- <textarea name=\"body\" style=\"width: 100%; min-width: 400px\" rows=\"4\"></textarea>
- </td>
- </tr>
- <tr>
- <td style=\"width: 100px; color: #93804f; white-space: nowrap; vertical-align: top; text-align: center; padding-top: 0px\" valign=\"top\" nowrap>
- <span style=\"display: inline-block; background-color: #104596; border: 2px solid white; padding: 8px 0px 8px 0px; width: 100%; border-radius: 7px\">
- <span class=\"rating\">
- <input type=\"radio\" class=\"rating-input\"
- id=\"rating-input-1-5\" name=\"rating\" value=\"5\">
- <label for=\"rating-input-1-5\" class=\"rating-star\"></label>
- <input type=\"radio\" class=\"rating-input\"
- id=\"rating-input-1-4\" name=\"rating\" value=\"4\">
- <label for=\"rating-input-1-4\" class=\"rating-star\"></label>
- <input type=\"radio\" class=\"rating-input\"
- id=\"rating-input-1-3\" name=\"rating\" value=\"3\">
- <label for=\"rating-input-1-3\" class=\"rating-star\"></label>
- <input type=\"radio\" class=\"rating-input\"
- id=\"rating-input-1-2\" name=\"rating\" value=\"2\">
- <label for=\"rating-input-1-2\" class=\"rating-star\"></label>
- <input type=\"radio\" class=\"rating-input\"
- id=\"rating-input-1-1\" name=\"rating\" value=\"1\">
- <label for=\"rating-input-1-1\" class=\"rating-star\"></label>
- </span>
- </span>
- <br />
- <font style=\"color: white\">Rating</font>
- </td>
- <td valign=\"top\" style=\"padding: 0px 2px 0px 10px; vertical-align: top; text-align: right\" nowrap>
- <input type=\"submit\" value=\"Submit Review!\" style=\"width: 100%; text-align: center; margin-top: 0px\">
- </td>
- </tr>
- </table>
- <input type=\"hidden\" name=\"submit_review\" value=\"1\">
- </form>
- <hr>
- <!-- <div align=\"center\" style=\"width: 50%; min-width: 400px; text-align: left; margin-left: auto; margin-right: auto\">
- <form action=\"index.php?page=reviews\" method=\"post\">
- Review Title
- <input type=\"text\" name=\"title\" size=\"64\" style=\"width: 100%; min-width: 400px\">
- <br />
- Review Body
- <br />
- <textarea name=\"body\" style=\"width: 100%; min-width: 400px\" rows=\"4\"></textarea>
- <br />
- <span style=\"display: inline-block; width: 100%; text-align: left; white-space: nowrap\">
- Rating
- <span class=\"rating\">
- <input type=\"radio\" class=\"rating-input\"
- id=\"rating-input-1-5\" name=\"rating\" value=\"5\">
- <label for=\"rating-input-1-5\" class=\"rating-star\"></label>
- <input type=\"radio\" class=\"rating-input\"
- id=\"rating-input-1-4\" name=\"rating\" value=\"4\">
- <label for=\"rating-input-1-4\" class=\"rating-star\"></label>
- <input type=\"radio\" class=\"rating-input\"
- id=\"rating-input-1-3\" name=\"rating\" value=\"3\">
- <label for=\"rating-input-1-3\" class=\"rating-star\"></label>
- <input type=\"radio\" class=\"rating-input\"
- id=\"rating-input-1-2\" name=\"rating\" value=\"2\">
- <label for=\"rating-input-1-2\" class=\"rating-star\"></label>
- <input type=\"radio\" class=\"rating-input\"
- id=\"rating-input-1-1\" name=\"rating\" value=\"1\">
- <label for=\"rating-input-1-1\" class=\"rating-star\"></label>
- </span>
- <span style=\"display: inline-block; background-color: yellow; width: 100%; white-space: nowrap; text-align: right\">
- <input type=\"submit\" value=\"Submit Review!\" style=\"width: 100%; text-align: center\">
- </span>
- </span>
- !--
- <div class=\"middle\" style=\"text-align: center\">
- <input type=\"submit\" value=\"Submit Review!\" style=\"width: 80%; text-align: center\">
- </div>
- --
- <input type=\"hidden\" name=\"submit_review\" value=\"1\">
- </form>
- -->
- </div>
- ";
- } // end reviews() ---------------
- function surfaces($page)
- {
- global $subpage;
- $this->subHeader($page);
- echo "
- <table style=\"width: 100%; height: 100%\">
- <tr>
- <td style=\"text-align: right; width: 175px; padding-right: 16px; font-size: 20px\" valign=\"top\">
- <h2 style=\"text-align: right; border-bottom-width: 1px; font-size: 24px; margin-left: auto; margin-right: auto; margin-bottom: 14px; width: 100%\">Surface Types</h2>
- <p style=\"margin-top: 0px; line-height: 26px\">
- <a href=\"?page=surfaces&subpage=upholstery\">Upholstery</a> --<br />
- <a href=\"?page=surfaces&subpage=tile\">Tile & Grout</a> --<br />
- <a href=\"?page=surfaces&subpage=carpets\">Carpets</a> --<br />
- </p>
- </td>
- <td valign=\"top\" class=\"content\">";
- if ( $subpage == "tile" ) { // TILE & GROUT
- echo "
- <h2>Steam Tile and Grout Cleaning</h2>
- Steam Pro is equipped with a powerful, truck-mounted system to clean your ceramic, porcelain, or travertine grouted tile floors.
- <br />
- <h3>I accomplish this by:</h3>
- Removing loose dirt using the best vacuuming methods
- <br /><br />
- Using an acid based tile restoring chemical especially formulated for thoroughly cleaning ceramic tiles and grout joints
- <br /><br />
- Thoroughly rinsing off surfaces a number of times in order to make sure that no cleaning materials remain
- <br /><br />
- <font style=\"color: white\">I won't leave your home until I have completed cleaning the tiles and grout joints to your satisfaction. <a href=\"?page=contact\">Contact me</a> for a FREE Estimate.</font>
- <br /><br />
- Steam Pro serves Mandeville, Covington, Slidell, Hammond, Abita Springs, Lacombe, LA and surrounding St. Tammany areas.
- <br /><br />
- Residential and Commercial.
- <br /><br />
- <font style=\"color: white\">Available for Emergencies!</font>
- ";
- } elseif ( $subpage == "carpets" ) { // CARPETS
- echo "
- <h2>Affordable Carpet Cleaning Service</h2>
- To be filled in..<br /><br />
- Steam Pro serves Mandeville, Covington, Slidell, Hammond, Abita Springs, Lacombe, LA and surrounding areas.
- ";
- } else { // UPHOLSTERY DEFAULT
- echo "
- <h2>Upholstery Cleaning Service</h2>
- Steam Pro can restore your fabric upholstered furniture to look new again, and smell fresh! Do you have an old or dingy looking couch. How about a sofa with a stain? A love seat that someone spilled their dinner on? A car that stinks after it rained or you can't get to stop smelling like your dog? This is what I have been doing for a living since 1987, let me help you. Give me a call or text at <font style=\"color: white\">985-626-5895</font> to talk to me or click here for a free estimate and I will get back to you within 24 hours.
- <br /><br />
- The cleaning process employs a powerful truck-mounted steam extraction service. The cleaning solution is an eco and environmentally friendly product:
- <br /><br />
- .: <font style=\"color: white\">Safe for your family, your pets and your community.</font><br />
- .: <font style=\"color: white\">Services are offered seven days a week</font><br />
- .: <font style=\"color: white\">Emergency flood extraction is available twenty-four hours a day</font><br />
- <br /><br />
- Regular upholstery cleaning will help extend the life of upholstered furniture by maintaining appearance and reducing wear. In most cases, spills need immediate treatment and should be blotted up with a sponge or towel. Follow the cleaning instructions attached to your upholstered furniture.
- <br /><br />
- When selecting a cleaning service, the main factor to consider is the operator's skill and ability. Upholstery cleaning professionals of long standing reputation can usually be relied upon to provide satisfactory service.
- <br />
- <h2>Dry vs. Steam Cleaning on Upholstery</h2>
- Do not use water based cleaning solution on a fabric labeled for dry cleaning only. If you are unsure, rather be safe than sorry. \"Use the professional's dry cleaning only\" type labels will require professional cleaning.
- <br /><br />
- Notwithstanding the cleaning instructions, upholstered furniture should be professionally cleaned periodically to remove soil, keep sanitary, restore freshness, preserve appearance, and protect your investment.
- <br /><br />
- Steam Pro provides upholstery cleaning services for both residential homes and commercial offices. Steam Pro also provides upholstery and carpet cleaning for your car, truck, or boat.
- <br /><br />
- <font style=\"color: white\">Upholstery Cleaning in Mandeville , Madisonville , Covington , Lacombe , Abita Springs , Slidell , Folsom, Hammond, Ponchatoula, and Robert LA.</font>
- ";
- }
- echo "
- </td>
- </tr>
- </table>
- </div>";
- } // end surfaces() ---------------
- function subHeader($page) {
- global $subpage;
- if ( isset($page) && isset($subpage) ) {
- $pageTitle = "{$page}>{$subpage}";
- } else {
- $pageTitle = $page;
- }
- // <span style=\"height: 48px; display: inline-block; vertical-align: bottom; padding-bottom: 0px; margin-bottom: 0px; margin-top: auto; line-height: auto; font-size: 36px; letter-spacing: 4px; word-spacing: 25px; border: 4px solid #d1d1d1; border-bottom-width: 0px; background-color: #505050\">{$pageTitle}</span>
- echo "
- <div style=\"width: 100%; background-color: #4A4A4A; height: 55px; text-align: center; vertical-align: middle; font-weight: bold; font-size: 36px; font-family: 'Trebuchet MS', Tahoma, Arial; color: white; background-image: url('images/tile_h5_light.png'); background-position: bottom; background-repeat: repeat-x; border-bottom: 8px solid #d1d1d1; padding-top: 0px; margin-bottom: 0px\">
- <div align=\"center\" style=\"padding: 0px 8px 0px 0px; text-align: left; background-color: transparent; margin-left: auto; margin-right: auto; width: 65%; min-width: 675px; height: 40px; padding-top: 11px;\">
- <span style=\"height: 100%; display: inline-block; margin: 0px 0px 0px 0px; padding: 0px 30px 0px 24px; background-color: #303030; color: #DDDDDD; border-width: 4px 4px 0px 4px; border-color: #d1d1d1; border-style: solid; border-radius: 10px 10px 0px 0px; vertical-align: bottom; font-size: 36px\">{$pageTitle}</span>
- </div>
- </div>
- <div align=\"center\" style=\"text-align: left; margin-left: auto; margin-right: auto; width: 65%; min-width: 675px\">
- ";
- } // end subHeader() ---------------
- } // end methods() ----------------------------------------
- if ( $launchDatabase !== "false" ) { $DB = new database(); $DB->connect(); }
- if ( $launchUser !== "false" ) { $user = new user(); }
- if ( $_POST["login"] == "1" && isset($_POST["username"]) ) {
- $user->verify("post", "true");
- } elseif ( isset($_COOKIE["username"]) ) {
- $user->verify("cookie", "false");
- } elseif ( !isset($_POST["login"]) && !isset($_COOKIE["username"]) ) {
- $user->logged_in = false;
- }
- // if ( $_POST["login"] == "1" && isset($_POST["username"]) && isset($_POST["password"]) || isset($_COOKIE["username"]) ) { $user->verify("true"); }
- if ( $launchMethods !== "false" ) { $methods = new methods(); }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement