Skip to content
Snippets Groups Projects
Commit 39c1b078 authored by Kyle Powers's avatar Kyle Powers
Browse files

adding UNL template and refactoring code, some formatting of form

parent d64405d7
No related branches found
No related tags found
No related merge requests found
<?php
// Sample configuration file for the ucomm webforms project
set_include_path(dirname(__FILE__).'/lib/php'.PATH_SEPARATOR.get_include_path());
function myautoload($class)
{
$file = str_replace('_', '/', $class).'.php';
require_once $file;
}
spl_autoload_register('myautoload');
require_once '../../../../UNL_WDN_Emailer/src/UNL/WDN/Emailer/Main.php';
if (!empty($_POST)) {
$mailer = new UNL_WDN_Emailer_Main();
// $mailer->html_body = 'this is the body';
// $mailer->to_address = 'kylepowers@gmail.com';
// $mailer->from_address = 'test@test.com';
// $mailer->subject = 'this is the subject';
// if (!empty($_GET['submit'])) {
// echo "BEFORE SEND...<br>";
// $mailer->send();
// echo "IT WORKS!";
// }
}
\ No newline at end of file
File moved
<?php
require_once '../../../../UNL_WDN_Emailer/src/UNL/WDN/Emailer/Main.php';
if (!empty($_POST)) {
$mailer = new UNL_WDN_Emailer_Main();
$mailer->html_body = 'this is the body';
$mailer->to_address = 'desertstorm365@gmail.com';
$mailer->from_address = 'test@test.com';
$mailer->subject = 'this is the subject';
if (!empty($_GET['submit'])) {
echo "BEFORE SEND...<br>";
$mailer->send();
echo "IT WORKS!";
}
}
//$survey = new EPSCoR_Survey();
?>
require_once dirname(__FILE__).'/../../config.inc.php';
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<link rel="stylesheet" type="text/css" media="screen" href="/wdn/templates_3.0/css/zenform.css" />
<!--
Membership and regular participation in the UNL Web Developer Network
is required to use the UNL templates. Visit the WDN site at
http://wdn.unl.edu/. Click the WDN Registry link to log in and
register your unl.edu site.
All UNL template code is the property of the UNL Web Developer Network.
The code seen in a source code view is not, and may not be used as, a
template. You may not use this code, a reverse-engineered version of
this code, or its associated visual presentation in whole or in part to
create a derivative work.
This message may not be removed from any pages based on the UNL site template.
$Id: php.fixed.dwt.php 536 2009-07-23 15:47:30Z bbieber2 $
-->
<link rel="stylesheet" type="text/css" media="screen" href="/wdn/templates_3.0/css/all.css" />
<link rel="stylesheet" type="text/css" media="print" href="/wdn/templates_3.0/css/print.css" />
<script type="text/javascript" src="/wdn/templates_3.0/scripts/all.js"></script>
<script type="text/javascript">
//<![CDATA[
......@@ -29,10 +27,45 @@ if (!empty($_POST)) {
});
//]]>
</script>
<?php virtual('/wdn/templates_3.0/includes/browserspecifics.html'); ?>
<?php virtual('/wdn/templates_3.0/includes/metanfavico.html'); ?>
<!-- TemplateBeginEditable name="doctitle" -->
<title>UNL | Department of Physics and Astronomy | Ribbon Cutting Proposal</title>
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" -->
<!-- Place optional header elements here -->
<!-- TemplateEndEditable -->
</head>
<body class="fixed">
<p class="skipnav"> <a class="skipnav" href="#maincontent">Skip Navigation</a> </p>
<div id="wdn_wrapper">
<div id="header"> <a href="http://www.unl.edu/" title="UNL website"><img src="/wdn/templates_3.0/images/logo.png" alt="UNL graphic identifier" id="logo" /></a>
<h1>University of Nebraska&ndash;Lincoln</h1>
<?php virtual('/wdn/templates_3.0/includes/wdnTools.html'); ?>
</div>
<div id="wdn_navigation_bar">
<div id="breadcrumbs">
<!-- WDN: see glossary item 'breadcrumbs' -->
<!-- TemplateBeginEditable name="breadcrumbs" -->
<ul>
<li><a href="http://www.unl.edu/" title="University of Nebraska&ndash;Lincoln">UNL</a></li>
<li>Department</li>
</ul>
<!-- TemplateEndEditable --></div>
<div id="wdn_navigation_wrapper">
<div id="navigation"><!-- TemplateBeginEditable name="navlinks" -->
<?php include '../sharedcode/navigation.html'; ?>
<!-- TemplateEndEditable --></div>
</div>
</div>
<div id="wdn_content_wrapper">
<div id="titlegraphic"><!-- TemplateBeginEditable name="titlegraphic" -->
<!-- TemplateEndEditable --></div>
<div id="pagetitle"><!-- TemplateBeginEditable name="pagetitle" --> <!-- TemplateEndEditable --></div>
<div id="maincontent">
<h3 class="zenform">Physics Department Extreme Ribbon-cutting Contest</h3>
<form class='zenform' action="index.php?submit=true" method="post" name="physics" id="physics" target="_self">
<!--THIS IS THE MAIN CONTENT AREA; WDN: see glossary item 'main content area' -->
<!-- TemplateBeginEditable name="maincontentarea" -->
<h3 class="zenform">Physics Department Extreme Ribbon-Cutting Contest</h3>
<form class='zenform' action="?submit=true" method="post" name="physics" id="physics" target="_self">
<fieldset style="width: 96%">
<legend>Ribbon-cutting proposal</legend>
<p>The UNL Physics Department is inviting proposals from students, faculty, staff, alumni and friends on how to add some physics-related drama to a ribbon cutting. The department will dedicate UNL's new physical sciences building, Jorgensen Hall, at a ceremony scheduled for 4 p.m. on Friday, Oct. 29.</p>
......@@ -40,33 +73,63 @@ if (!empty($_POST)) {
<p>Proposals should be submitted in writing to UNL Physics Department Chair Dan Claes. A faculty committee will select the top three proposals. The top three candidates will be invited to post a video demonstration of the proposal on YouTube so that interested parties can vote for their favorite proposal. </p>
<p>The winning proposal will be used to open Jorgensen Hall. UNL Chancellor Harvey Perlman and special guest speaker Alan Heeger, a UNL alum and Nobel laureate, will be present for the ceremony. </p>
<p>Rules: </p>
<ol>
<ul>
<li>No humans or animals may be harmed.</li>
<li>No harm may be caused to the building.</li>
<li>Proposals will be accepted until 5 p.m. Oct 15, 2010.</li>
</ol>
</ul>
<p>There may be minor amounts of funding to purchase supplies for the implementation of the winning proposal.</p>
<p>The creator of the winning submission will receive an iPod as a prize.</p>
<hr>
<hr/>
<ol>
<li><label for="first_name" class="element">Name</label><div class="element"><input id="name" name="name" type="text" /></div></li>
<li><label for="first_name" class="element">Email Address</label><div class="element"><input id="email" name="email" type="text" /></div></li>
<li><label for="first_name" class="element">Phone Number</label><div class="element"><input id="phone" name="phone" type="text" /></div></li>
<li><label for="first_name" class="element"><span class="required">*</span>Name<span class="helper">Enter Your Full Name</span></label><div class="element"><input id="name" name="name" type="text" /></div></li>
<li><label for="first_name" class="element"><span class="required">*</span>Email Address</label><div class="element"><input id="email" name="email" type="text" /></div></li>
<li><label for="first_name" class="element"><span class="required">*</span>Phone Number<span class="helper">Format: 402-123-1234</span></label><div class="element"><input id="phone" name="phone" type="text" /></div></li>
<li><label class="element">Check One</label><div class="element">
<li><label class="element"><span class="required">*</span>You are a:</label><div class="element">
<ol>
<li><input name="type" value="UNL student" type="radio" id="type" /><label for="type">UNL student</label></li>
<li><input name="type" value="High school student" type="radio" id="type" /><label for="type">High school student</label></li>
<li><input name="type" value="UNL faculty" type="radio" id="type" /><label for="type">UNL faculty</label></li>
<li><input name="type" value="UNL Alum" type="radio" id="type" /><label for="type">UNL Alum</label></li>
<li><input name="type" value="Other" type="radio" id="type" /><label for="type">Other</label></li>
<li><input name="type" value="UNL student" type="radio" id="unlstudent" /><label for="unlstudent">UNL student</label></li>
<li><input name="type" value="High school student" type="radio" id="hsstudent" /><label for="hsstudent">High school student</label></li>
<li><input name="type" value="UNL faculty" type="radio" id="faculty" /><label for="faculty">UNL faculty</label></li>
<li><input name="type" value="UNL Alum" type="radio" id="alum" /><label for="alum">UNL Alum</label></li>
<li><input name="type" value="Other" type="radio" id="other" /><label for="other">Other</label></li>
</ol>
</div></li>
<li><label for="proposal" class="element">Describe your proposal for using physics for the official opening of Jorgensen Hall (500 word limit): </label><div class="element"><textarea id="proposal" name="proposal" rows="10"></textarea></div></li>
<li><label for="proposal" class="element"><span class="required">*</span>Describe your proposal for using physics for the official opening of Jorgensen Hall (500 word limit): </label><div class="element"><textarea id="proposal" name="proposal" rows="10"></textarea></div></li>
</ol>
</fieldset>
<input type="submit" name="submit" value="Submit" />
</form>
<!-- TemplateEndEditable -->
<div class="clear"></div>
<?php virtual('/wdn/templates_3.0/includes/noscript.html'); ?>
<!--THIS IS THE END OF THE MAIN CONTENT AREA.-->
</div>
<div id="footer">
<div id="footer_floater"></div>
<div class="footer_col">
<?php virtual('/wdn/templates_3.0/includes/feedback.html'); ?>
</div>
<div class="footer_col"><!-- TemplateBeginEditable name="leftcollinks" -->
<?php include '../sharedcode/relatedLinks.html'; ?>
<!-- TemplateEndEditable --></div>
<div class="footer_col"><!-- TemplateBeginEditable name="contactinfo" -->
<?php include '../sharedcode/footerContactInfo.html'; ?>
<!-- TemplateEndEditable --></div>
<div class="footer_col">
<?php virtual('/wdn/templates_3.0/includes/socialmediashare.html'); ?>
</div>
<!-- TemplateBeginEditable name="optionalfooter" --> <!-- TemplateEndEditable -->
<div id="wdn_copyright"><!-- TemplateBeginEditable name="footercontent" -->
<?php include '../sharedcode/footer.html'; ?>
<!-- TemplateEndEditable -->
<?php virtual('/wdn/templates_3.0/includes/wdn.html'); ?>
| <a href="http://validator.unl.edu/check/referer">W3C</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer?profile=css3">CSS</a> <a href="http://www.unl.edu/" title="UNL Home" id="wdn_unl_wordmark"><img src="/wdn/templates_3.0/css/footer/images/wordmark.png" alt="UNL's wordmark" /></a> </div>
</div>
</div>
<div id="wdn_wrapper_footer"> </div>
</div>
</body>
</html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment