Exemple #1
0
            // Finished.
            $_SESSION["message"] = "Video positions updated!";
            redirect_to("index.php?redirect=videos");
        }
    }
}
?>

<?php 
compress_table($active_page);
echo form_errors($errors);
?>

<?php 
if (isset($_SESSION["message"])) {
    generate_prompt("Notification", message(), 'videos');
    echo "<script type=\"text/javascript\">prompt_popup('videos', true);</script>";
}
?>

<?php 
if ($admin) {
    ?>
<form action="videos.php" method="post">
<?php 
}
?>
<table class="maincontenttable">
	<?php 
// For every 2 movies, make a row.
$query = "SELECT * FROM videos";
Exemple #2
0
<?php 
$query = "SELECT * FROM contact WHERE id = 1 LIMIT 1";
$result = mysqli_query($connection, $query);
confirm_query($result);
$emailaddress = mysqli_fetch_assoc($result)["email"];
?>

<div style="display:none;" id="nicksemail"><?php 
echo $emailaddress;
?>
</div>
<?php 
$eventdisplaybody = "<div id=\"eventdisplayrow\"></div>" . "<div id=\"eventdisplayinfo\"></div>" . "<div class=\"eventdisplaybutton hvr-fade\" onclick=\"prep_email();remove_prompt_popup('eventinfo');prompt_popup('email')\">Let Nick Know You Are Coming!</div>";
generate_prompt("Event Information", $eventdisplaybody, "eventinfo");
$formbody = "<div class=\"emailinputwrap\"><input id=\"emailtitle\" class=\"default noborderfocus\" type=\"text\" value=\"Title...\" /></div>\n\t\t\t\t\t\t<div class=\"emailinputwrap\"><input id=\"emailuser\" class=\"default noborderfocus\"  type=\"text\" value=\"Your Email... (Optional)\" /></div>\n\t\t\t\t\t\t<div class=\"emailinputwrap\"><textarea id=\"emailbody\" class=\"default noborderfocus\">Message...</textarea></div>\n\t\t\t\t\t\t<div onclick=\"construct_email();\" id=\"promptsubmit\" class=\"emailinputwrap hvr-sweep-to-right\">Send Email!</div> <div id='#clientemail' style='display: none'><?php echo {$emailaddress} ?></div>";
generate_prompt("Send Nick a Message!", $formbody, "email");
?>

<div id="eventheader" class="eventrow">
	<?php 
if ($admin) {
    ?>
	<div class="eventcell shortrow emphasis">Options</div>
	<?php 
}
?>
	<div class="eventcell shortrow emphasis">Date</div>
	<div class="eventcell shortrow emphasis">Event</div>
	<div class="eventcell shortrow emphasis">Location</div>
	<div class="eventcell shortrow emphasis mobiledeleteme">Time</div>
	<?php 
Exemple #3
0
}
// Delete a song.
if (isset($_GET["deleteid"]) && $admin) {
    remove_from_table($_GET["deleteid"], $active_page, $active_page);
    $_SESSION["message"] = "Song removed!";
}
?>


<?php 
if (isset($_SESSION["message"])) {
    generate_prompt("Notification", message(), 'songs');
    echo "<script type=\"text/javascript\">prompt_popup('songs');</script>";
} else {
    if (isset($_SESSION["errors"])) {
        generate_prompt("Notification", errors(), 'songs');
        echo "<script type=\"text/javascript\">prompt_popup('songs');</script>";
    }
}
?>

<table id="maincontent">
	<?php 
// Obtain all songs.
$query = "SELECT * FROM songs";
$result = mysqli_query($connection, $query);
// Display all songs.
while ($song = mysqli_fetch_assoc($result)) {
    display_song($song, $admin);
}
?>
Exemple #4
0
            // Failure.
            $_SESSION["message"] = "Content failed to update!";
        }
    }
    redirect_to("index.php?redirect=main");
}
?>

<?php 
$errors = errors();
echo form_errors($errors);
?>

<?php 
if (isset($_SESSION["message"])) {
    generate_prompt("Notification", message(), 'main');
    echo "<script type=\"text/javascript\">prompt_popup('main',true);</script>";
}
?>

<?php 
// Collect content.
$query = "SELECT * FROM main ";
$query .= "WHERE id = 1 ";
$query .= "LIMIT 1";
$result = mysqli_query($connection, $query);
$mainpagedata = mysqli_fetch_assoc($result);
?>

<div id="mobileportrait" class="mobileshowme"> 
	<img src="nickpics/nickcoloreditoptimized4.png">
Exemple #5
0
        confirm_query($result);
        $_SESSION["message"] = "About Page has been updated!";
    } else {
        $_SESSION["message"] = "About Page has failed to update! Not sure what happened. Try again?";
    }
    redirect_to("index.php?redirect=about");
}
?>

<?php 
echo form_errors($errors);
?>

<?php 
if (isset($_SESSION["message"])) {
    generate_prompt("Notification", message(), 'about');
    echo "<script type=\"text/javascript\">prompt_popup('about',true);</script>";
}
?>

<?php 
$query = "SELECT * FROM about";
$result = mysqli_query($connection, $query);
$data = mysqli_fetch_assoc($result);
?>

<?php 
if ($admin) {
    ?>
<form action="about.php" method="post"> 
<?php