Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
emrickj authored Apr 14, 2018
1 parent f33b270 commit 7391d32
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 119 deletions.
33 changes: 16 additions & 17 deletions themew2.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
<html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<?php
ini_set('display_errors', 'On');
error_reporting(E_ALL);
Expand All @@ -14,8 +8,7 @@
require 'dspcnt.php';

$xml=simplexml_load_file("data/website".$b.".xml") or die("Error: Cannot create object");
//print_r($xml);
//echo $xml->image[1];
$page = $xml->xpath('/website/page');

function ic_html($pname) {
if (strpos(" ".$pname,chr(0xef))==1) $rt = '<i class="fa">'.substr($pname,0,3).'</i> '.substr($pname,4);
Expand All @@ -25,6 +18,12 @@ function ic_html($pname) {

//if($_SERVER['HTTPS']) $mps="https://"; else $mps="http://";
?>
<html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title><?php echo strip_tags($xml->title) ?></title>
<style>
body,h1,h2,h3,h4,h5 {font-family: "Poppins", sans-serif}
Expand All @@ -43,8 +42,8 @@ function ic_html($pname) {
<div class="w3-bar-block">
<?php
for($i=1;$i<=6;$i++) {
if(strlen($xml->page[$i-1]->name)>2)
echo "<a href='#".$i."' onclick='w3_close()' class='w3-bar-item w3-button w3-hover-white'>" . ic_html($xml->page[$i-1]->name) . "</a>";
if(strlen($page[$i-1]->name)>2)
echo "<a href='#".$i."' onclick='w3_close()' class='w3-bar-item w3-button w3-hover-white'>" . ic_html($page[$i-1]->name) . "</a>";
}
?>
</nav>
Expand All @@ -66,24 +65,24 @@ function ic_html($pname) {
</div>
<?php
for($i=1;$i<=6;$i++) {
if(strlen($xml->page[$i-1]->name)>2) {
if(strlen($page[$i-1]->name)>2) {
echo "<div class='w3-container' style='margin-top:80px' id='".$i."'>";
echo "<h1 class='w3-xxxlarge w3-text-red'><b>".$xml->page[$i-1]->name.".</b></h1>";
echo "<h1 class='w3-xxxlarge w3-text-red'><b>".$page[$i-1]->name.".</b></h1>";
echo "<hr style='width:50px;border:5px solid red' class='w3-round'>";
}
if(strlen($xml->page[$i-1]->image)>4)
echo "<img class='w3-image' src='".$xml->page[$i-1]->image."' style='width:100%'>\n";
echo trim($xml->page[$i-1]->contents);
if(strlen($page[$i-1]->image)>4)
echo "<img class='w3-image' src='".$page[$i-1]->image."' style='width:100%'>\n";
echo trim($page[$i-1]->contents);
echo "</div>";
if($xml->page[$i-1]['type']=="comments") {
if($page[$i-1]['type']=="comments") {
?>
<!-- begin htmlcommentbox.com -->
<div class="w3-container" id="HCB_comment_box"><a href="https://www.htmlcommentbox.com">HTML Comment Box</a> is loading comments...</div>
<link rel="stylesheet" type="text/css" href="https://www.htmlcommentbox.com/static/skins/default/skin.css" />
<script type="text/javascript" language="javascript" id="hcb"> /*<!--*/ if(!window.hcb_user){hcb_user={ };} (function(){s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src", "https://www.htmlcommentbox.com/jread?page="+escape((window.hcb_user && hcb_user.PAGE)||(""+window.location)).replace("+","%2B")+"&opts=470&num=10");if (typeof s!="undefined") document.getElementsByTagName("head")[0].appendChild(s);})(); /*-->*/ </script>
<!-- end htmlcommentbox.com --><?php
}
if($xml->page[$i-1]['type']=="form") {
if($page[$i-1]['type']=="form") {
?>
<form action="#alert" class="w3-container" role="form" method="post">
<div class="w3-row">
Expand Down
33 changes: 16 additions & 17 deletions themew3.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<?php
ini_set('display_errors', 'On');
error_reporting(E_ALL);
Expand All @@ -15,8 +8,7 @@
require 'dspcnt.php';

$xml=simplexml_load_file("data/website".$b.".xml") or die("Error: Cannot create object");
//print_r($xml);
//echo $xml->image[1];
$page = $xml->xpath('/website/page');

function ic_html($pname) {
if (strpos(" ".$pname,chr(0xef))==1) $rt = '<i class="fa">'.substr($pname,0,3).'</i> '.substr($pname,4);
Expand All @@ -26,6 +18,13 @@ function ic_html($pname) {

//if($_SERVER['HTTPS']) $mps="https://"; else $mps="http://";
?>
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title><?php echo strip_tags($xml->title) ?></title>
<style>
html,body,h1,h2,h3,h4 {font-family:"Lato", sans-serif}
Expand All @@ -40,9 +39,9 @@ function ic_html($pname) {
<div class="w3-row w3-large w3-light-grey">
<?php
for($i=1;$i<=4;$i++) {
if(strlen($xml->page[$i-1]->name)>2) {
if(strlen($page[$i-1]->name)>2) {
echo "<div class='w3-col s3'>";
echo "<a href='#".$i."' class='w3-button w3-block'>" . ic_html($xml->page[$i-1]->name) . "</a>";
echo "<a href='#".$i."' class='w3-button w3-block'>" . ic_html($page[$i-1]->name) . "</a>";
echo "</div>";
}
}
Expand All @@ -62,28 +61,28 @@ function ic_html($pname) {

<?php
for($i=1;$i<=6;$i++) {
if(strlen($xml->page[$i-1]->image)>4)
echo "<img class='mySlides' src='".$xml->page[$i-1]->image."' style='width:100%'>\n";
if(strlen($page[$i-1]->image)>4)
echo "<img class='mySlides' src='".$page[$i-1]->image."' style='width:100%'>\n";
}
?>
</div>

<?php
for($i=1;$i<=4;$i++) {
if(strlen($xml->page[$i-1]->name)>2) {
if(strlen($page[$i-1]->name)>2) {
echo "<div class='w3-padding-64' id='".$i."'>";
echo trim($xml->page[$i-1]->contents);
echo trim($page[$i-1]->contents);
echo "</div>";
}
if($xml->page[$i-1]['type']=="comments") {
if($page[$i-1]['type']=="comments") {
?>
<!-- begin htmlcommentbox.com -->
<div class="w3-container" id="HCB_comment_box"><a href="https://www.htmlcommentbox.com">HTML Comment Box</a> is loading comments...</div>
<link rel="stylesheet" type="text/css" href="https://www.htmlcommentbox.com/static/skins/default/skin.css" />
<script type="text/javascript" language="javascript" id="hcb"> /*<!--*/ if(!window.hcb_user){hcb_user={ };} (function(){s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src", "https://www.htmlcommentbox.com/jread?page="+escape((window.hcb_user && hcb_user.PAGE)||(""+window.location)).replace("+","%2B")+"&opts=470&num=10");if (typeof s!="undefined") document.getElementsByTagName("head")[0].appendChild(s);})(); /*-->*/ </script>
<!-- end htmlcommentbox.com --><?php
}
if($xml->page[$i-1]['type']=="form") {
if($page[$i-1]['type']=="form") {
?>
<form action="#alert" class="w3-container" role="form" method="post">
<div class="w3-row">
Expand Down
41 changes: 20 additions & 21 deletions themew4.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
<!DOCTYPE html>
<html>
<title>W3.CSS Template</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<?php
ini_set('display_errors', 'On');
error_reporting(E_ALL);
Expand All @@ -16,8 +8,7 @@
require 'dspcnt.php';

$xml=simplexml_load_file("data/website".$b.".xml") or die("Error: Cannot create object");
//print_r($xml);
//echo $xml->image[1];
$page = $xml->xpath('/website/page');

function ic_html($pname) {
if (strpos(" ".$pname,chr(0xef))==1) $rt = '<i class="fa">'.substr($pname,0,3).'</i> '.strtoupper(substr($pname,4));
Expand All @@ -33,6 +24,14 @@ function ic_strip($pname) {

//if($_SERVER['HTTPS']) $mps="https://"; else $mps="http://";
?>
<!DOCTYPE html>
<html>
<title>W3.CSS Template</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title><?php echo strip_tags($xml->title) ?></title>
<style>
body,h1,h2,h3,h4,h5,h6 {font-family: "Raleway", sans-serif}
Expand All @@ -44,7 +43,7 @@ function ic_strip($pname) {
.bgimg-1 {
background-position: center;
background-size: cover;
background-image: url("<?php echo $xml->page[0]->image ?>");
background-image: url("<?php echo $page[0]->image ?>");
background-color: #C0C0C0;
min-height: 100%;
}
Expand All @@ -62,8 +61,8 @@ function ic_strip($pname) {
<div class="w3-right w3-hide-small">
<?php
for($i=1;$i<=6;$i++) {
if(strlen($xml->page[$i-1]->name)>2) {
echo "<a href='#p".$i."' class='w3-bar-item w3-button'>" . ic_html($xml->page[$i-1]->name) . "</a>";
if(strlen($page[$i-1]->name)>2) {
echo "<a href='#p".$i."' class='w3-bar-item w3-button'>" . ic_html($page[$i-1]->name) . "</a>";
}
}
?>
Expand All @@ -81,8 +80,8 @@ function ic_strip($pname) {
<a href="javascript:void(0)" onclick="w3_close()" class="w3-bar-item w3-button w3-large w3-padding-16">Close &#xD7;</a>
<?php
for($i=1;$i<=6;$i++) {
if(strlen($xml->page[$i-1]->name)>2) {
echo "<a href='#p".$i."' onclick='w3_close()' class='w3-bar-item w3-button'>" . ic_strip($xml->page[$i-1]->name) . "</a>";
if(strlen($page[$i-1]->name)>2) {
echo "<a href='#p".$i."' onclick='w3_close()' class='w3-bar-item w3-button'>" . ic_strip($page[$i-1]->name) . "</a>";
}
}
?>
Expand All @@ -108,13 +107,13 @@ function ic_strip($pname) {

<?php
for($i=1;$i<=6;$i++) {
if($xml->page[$i-1]['type']=="page")
if(strlen($xml->page[$i-1]->name)>2) {
if($page[$i-1]['type']=="page")
if(strlen($page[$i-1]->name)>2) {
echo "<div class='w3-container' style='padding:128px 16px' id='p".$i."'>";
echo trim($xml->page[$i-1]->contents);
echo trim($page[$i-1]->contents);
echo "</div>";
}
if($xml->page[$i-1]['type']=="comments") {
if($page[$i-1]['type']=="comments") {

// begin htmlcommentbox.com -->
echo "<div id='p".$i."'></div>";
Expand All @@ -124,10 +123,10 @@ function ic_strip($pname) {
<script type="text/javascript" language="javascript" id="hcb"> /*<!--*/ if(!window.hcb_user){hcb_user={ };} (function(){s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src", "https://www.htmlcommentbox.com/jread?page="+escape((window.hcb_user && hcb_user.PAGE)||(""+window.location)).replace("+","%2B")+"&opts=470&num=10");if (typeof s!="undefined") document.getElementsByTagName("head")[0].appendChild(s);})(); /*-->*/ </script>
<!-- end htmlcommentbox.com --><?php
}
if($xml->page[$i-1]['type']=="form") {
if($page[$i-1]['type']=="form") {

echo "<div class='w3-container w3-light-grey' style='padding:128px 16px' id='p".$i."'>";
echo trim($xml->page[$i-1]->contents);
echo trim($page[$i-1]->contents);
?> <div class="w3-row-padding" style="margin-top:64px">
<div class="w3-half">
<form action="#alert" class="w3-container" role="form" method="post">
Expand Down
47 changes: 23 additions & 24 deletions themew5.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<?php
ini_set('display_errors', 'On');
error_reporting(E_ALL);
Expand All @@ -15,8 +8,7 @@
require 'dspcnt.php';

$xml=simplexml_load_file("data/website".$b.".xml") or die("Error: Cannot create object");
//print_r($xml);
//echo $xml->image[1];
$page = $xml->xpath('/website/page');

function icon($pname) {
if (strpos(" ".$pname,chr(0xef))==1) $rt = substr($pname,0,3);
Expand All @@ -32,6 +24,13 @@ function ic_strip($pname) {

//if($_SERVER['HTTPS']) $mps="https://"; else $mps="http://";
?>
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title><?php echo strip_tags($xml->title) ?></title>
<style>
body, h1,h2,h3,h4,h5,h6 {font-family: "Montserrat", sans-serif}
Expand All @@ -48,16 +47,16 @@ function ic_strip($pname) {
<!-- Icon Bar (Sidebar - hidden on small screens) -->
<nav class="w3-sidebar w3-bar-block w3-small w3-hide-small w3-center">
<!-- Avatar image in top left corner -->
<img src="<?php echo $xml->page[0]->image ?>" style="width:100%">
<img src="<?php echo $page[0]->image ?>" style="width:100%">
<a href="#p1" class="w3-bar-item w3-button w3-padding-large w3-black">
<i class="fa w3-xxlarge"><?php echo icon($xml->page[0]->name) ?></i>
<p><?php echo ic_strip($xml->page[0]->name) ?></p>
<i class="fa w3-xxlarge"><?php echo icon($page[0]->name) ?></i>
<p><?php echo ic_strip($page[0]->name) ?></p>
</a>
<?php
for($i=2;$i<=4;$i++) {
if(strlen($xml->page[$i-1]->name)>2) {
if(strlen($page[$i-1]->name)>2) {
echo "<a href='#p".$i."' class='w3-bar-item w3-button w3-padding-large w3-hover-black'><i class='fa w3-xxlarge'>"
. icon($xml->page[$i-1]->name) . "</i><p>" . ic_strip($xml->page[$i-1]->name) . "</p></a>";
. icon($page[$i-1]->name) . "</i><p>" . ic_strip($page[$i-1]->name) . "</p></a>";
}
}
?>
Expand All @@ -68,9 +67,9 @@ function ic_strip($pname) {
<div class="w3-bar w3-black w3-opacity w3-hover-opacity-off w3-center w3-small">
<?php
for($i=1;$i<=4;$i++) {
if(strlen($xml->page[$i-1]->name)>2) {
if(strlen($page[$i-1]->name)>2) {
echo "<a href='#p".$i."' class='w3-bar-item w3-button' style='width:25% !important'>"
. ic_strip($xml->page[$i-1]->name) . "</a>";
. ic_strip($page[$i-1]->name) . "</a>";
}
}
?>
Expand All @@ -82,20 +81,20 @@ function ic_strip($pname) {
<!-- Header/Home -->
<header class="w3-container w3-padding-32 w3-center w3-black" id="p1">
<?php
echo trim($xml->page[0]->contents);
echo trim($page[0]->contents);
?>
<img src="<?php echo $xml->page[0]->image ?>" class="w3-image" width="992" height="1108">
<img src="<?php echo $page[0]->image ?>" class="w3-image" width="992" height="1108">
</header>

<?php
for($i=2;$i<=4;$i++) {
if($xml->page[$i-1]['type']=="page")
if(strlen($xml->page[$i-1]->name)>2) {
if($page[$i-1]['type']=="page")
if(strlen($page[$i-1]->name)>2) {
echo "<div class='w3-padding-64 w3-content' id='p".$i."'>";
echo trim($xml->page[$i-1]->contents);
echo trim($page[$i-1]->contents);
echo "</div>";
}
if($xml->page[$i-1]['type']=="comments") {
if($page[$i-1]['type']=="comments") {

// begin htmlcommentbox.com -->
echo "<div id='p".$i."'></div>";
Expand All @@ -105,10 +104,10 @@ function ic_strip($pname) {
<script type="text/javascript" language="javascript" id="hcb"> /*<!--*/ if(!window.hcb_user){hcb_user={ };} (function(){s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src", "https://www.htmlcommentbox.com/jread?page="+escape((window.hcb_user && hcb_user.PAGE)||(""+window.location)).replace("+","%2B")+"&opts=470&num=10");if (typeof s!="undefined") document.getElementsByTagName("head")[0].appendChild(s);})(); /*-->*/ </script>
<!-- end htmlcommentbox.com --><?php
}
if($xml->page[$i-1]['type']=="form") {
if($page[$i-1]['type']=="form") {

echo "<div class='w3-padding-64 w3-content' id='p".$i."'>";
echo trim($xml->page[$i-1]->contents);
echo trim($page[$i-1]->contents);
?> <div class="w3-row-padding">
<div class="w3-half">
<form action="#alert" class="w3-container" role="form" method="post">
Expand Down
Loading

0 comments on commit 7391d32

Please sign in to comment.