Skip to content
Snippets Groups Projects
Commit 9d7b6c48 authored by Brett Bieber's avatar Brett Bieber
Browse files

Import yns_forms to svn

parent d390edcd
No related branches found
No related tags found
No related merge requests found
<?php
require_once 'DB/DataObject.php';
require_once 'DB/DataObject/FormBuilder.php';
require_once 'HTML/QuickForm/Renderer/Tableless.php';
$options = &PEAR::getStaticProperty('DB_DataObject','options');
$options = array(
'database' => 'mysql://yns:yns@localhost/yns',
'schema_location' => dirname(__FILE__).'/YNS',
'class_location' => dirname(__FILE__).'/YNS',
'require_prefix' => 'YNS/',
'class_prefix' => 'YNS_',
'db_driver' => 'MDB2', //Use this if you wish to use MDB2 as the driver
'quote_identifiers' => true
);
set_include_path(dirname(__FILE__).PATH_SEPARATOR.get_include_path());
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Young Nebraska Scientists | Home</title>
<!-- TemplateEndEditable -->
<link rel="stylesheet" type="text/css" media="screen" href="http://yns.nebraska.edu/yns_css.css" />
<script type="text/javascript">
var aRandomPromo;
wraphandler.addEvent(window,"load",function(){
aRandomPromo = new XMLrandomPromo('../promos.xml', 10, 'aRandomPromo');
});
</script>
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
</head>
<body>
<div id="page">
<div id="logo"><a href="../index.shtml"><img src="http://yns.nebraska.edu/images/yns_logo.png" alt="logo" width="119" height="196" border="0"/></a></div>
<div id="search" align="right">
<table cellpadding="3"><tr><td style="font-size:small;">search</td><td style="background-color:#FFFFFF;width:100px; height:10px;"></td></tr></table>
</div>
<!--begin navigation-->
<div id="navigation">
<a href="http://yns.nebraska.edu/index.shtml"><img src="http://yns.nebraska.edu/images/title.png" alt="title" border="0" /></a>
<div style="height:10px;"></div>
<div id="mainlinks">
<table> <tr align="center"><td class="beginning"><a href="http://yns.nebraska.edu/index.shtml">home</a></td><td class="beginning">overview</td><td class="beginning">organization</td><td class="beginning">contact</td><td class="beginning">forms</td><td class="beginning">schedules</td>
<!--<td id="last">gallery</td>-->
</tr></table>
</div>
<div style="height:5px;"></div>
<div id="audience_links">
<table><tr><td id="middle_school"></td><td id="high_school"><a href="http://yns.nebraska.edu/highschool.shtml"><img src="http://yns.nebraska.edu/images/buttons/high_schoollinked.png" alt="high school" /></a></td><td id="teachers"></td><td id="faculty"></td></tr></table>
</div>
</div>
<!-- end navigation-->
<br />
<!-- begin main content-->
<div id="maincontent">
<img src="../images/main_graphic.png" width="798px" alt="main graphic" />
<div class="col right"> <div class="header yellow">calendar</div>
<div id="monthwidget" align="center"><div class="header_text">
<iframe src="http://www.google.com/calendar/embed?title=YNS&amp;showTitle=0&amp;showTabs=0&amp;showCalendars=0&amp;height=250&amp;wkst=1&amp;bgcolor=%23ffffff&amp;src=elarsen2%40unl.edu&amp;color=%23BE6D00&amp;ctz=America%2FChicago" style=" border-width:0 " width="225" height="225" frameborder="0" scrolling="no"></iframe>
<br />
</div>
</div>
</div>
<div class="two_col left"> <div class="header blue">announcements</div>
<div class="header_text">The YNS Summer Camp Application Deadline has passed
Check out our live <a href="http://yns.nebraska.edu/gallery.shtml">photo gallery</a> to see all the action as it happens!</div>
</div>
<div class="clear"></div>
<div class="col left"> <div class="header green">funded by</div>
<div class="header_text"><a href="http://epscor.unl.edu/">Nebraska EPSCoR<br />
<br />
<img src="http://yns.nebraska.edu/images/epscor_logo.jpg" alt="epscor logo" />
</a></div>
</div>
<!--partners begin-->
<div class="two_col right" style="border:#33A02C 1px solid; background-color:#FFFFFF;">
<div class="header green">partners</div>
<div class="header_text"><table><tr><td width="233">><a href="http://www2.creighton.edu/">Creighton University</a></td>
<td width="245">><a href="http://www.unk.edu/">University of Nebraska Kearney</a></td>
</tr>
<tr><td>><a href="http://www.nscs.edu/">Nebraska State College System</a></td>
<td>><a href="http://www.unl.edu/">University of Nebraska - Lincoln</a></td>
</tr>
<tr><td>><a href="http://www.unomaha.edu/main.php">University of Nebraska Omaha</a></td><td>><a href="http://www.unmc.edu/">University of Nebraska Medical Center</a></td>
</tr>
</table></div>
</div>
<div class="clear"></div></div>
<!--end main content-->
</div>
</body>
</html>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Young Nebraska Scientists | Home</title>
<!-- TemplateEndEditable -->
<link rel="icon" type="image/png" href="http://yns.nebraska.edu/images/favicon.png" />
<!--<link rel="stylesheet" type="text/css" media="screen" href="../yns_css.css" />-->
<link rel="stylesheet" type="text/css" media="screen" href="http://yns.nebraska.edu/sharedcode/all.css" />
<script type="text/javascript" src="http://yns.nebraska.edu/yns.js"></script>
<script type="text/javascript" src="http://yns.nebraska.edu/sharedcode/wdn.js"></script>
<script type="text/javascript" src="http://yns.nebraska.edu/sharedcode/jquery.js"></script>
<script type="text/javascript">
WDN.jQuery = $;
</script>
<!-- TemplateBeginEditable name="head" -->
<!--Place optional elements here-->
<!-- TemplateEndEditable -->
</head>
<body id="red" onload="preloadImgs();randomImages();">
<div id="page"><a href="http://yns.nebraska.edu/"><img src="http://yns.nebraska.edu/images/yns-site-title-head.png" alt="title" height="100" width="940" border="0" /></a>
<div id="logo"><a href="http://yns.nebraska.edu/"><img src="http://yns.nebraska.edu/images/yns_logo.png" alt="logo" width="133" height="210" border="0"/></a></div>
<!--begin navigation-->
<div id="navigation"><!-- TemplateBeginEditable name="navigation" --><?php echo file_get_contents('http://yns.nebraska.edu/sharedcode/navigation.html'); ?><!-- TemplateEndEditable --></div>
<!-- end navigation-->
<div id="titlegraphic"><!-- TemplateBeginEditable name="titlegraphic" --> <!-- TemplateEndEditable --></div>
<div id="pagetitle"><!-- TemplateBeginEditable name="pagetitle" --> <!-- TemplateEndEditable --></div>
<!-- begin main content-->
<div id="maincontent" class="clear">
<!-- TemplateBeginEditable name="main content" -->
<div>
<div>
<h1>Welcome!</h1>
<h2>Welcome!</h2>
<h3>Welcome!</h3>
<h4>Welcome!</h4>
<h5>Welcome!</h5>
<h6>Welcome!</h6>
<p>Welcome!</p>
<ul>
<li>Welcome</li>
<li>Welcome</li>
</ul>
</div>
</div>
<!-- TemplateEndEditable -->
</div>
<!--end main content-->
<!-- begin footer-->
<div id="footer" align="center"><!-- TemplateBeginEditable name="footer" --><?php echo file_get_contents('http://yns.nebraska.edu/sharedcode/footer.html'); ?><!-- TemplateEndEditable --></div>
<!-- End footer -->
</div>
</body>
</html>
\ No newline at end of file
<?php
/**
* Table Definition for applicant_camps
*/
require_once 'DB/DataObject.php';
class YNS_Applicant_camps extends DB_DataObject
{
###START_AUTOCODE
/* the code below is auto generated do not remove the above tag */
public $__table = 'applicant_camps'; // table name
public $id; // int(10) not_null primary_key unsigned auto_increment
public $applicant_id; // int(10) not_null multiple_key unsigned
public $camp_id; // int(10) not_null unsigned
/* Static get */
function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('YNS_Applicant_camps',$k,$v); }
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
}
<?php
/**
* Table Definition for applicants
*/
require_once 'DB/DataObject.php';
class YNS_Applicants extends DB_DataObject
{
###START_AUTOCODE
/* the code below is auto generated do not remove the above tag */
public $__table = 'applicants'; // table name
public $id; // int(10) not_null primary_key unsigned auto_increment
public $first_name; // string(255) not_null
public $middle_initial; // string(10)
public $last_name; // string(255) not_null
public $address; // string(255) not_null
public $city; // string(255) not_null
public $state; // string(100) not_null
public $zip; // string(25) not_null
public $phone; // string(25) not_null
public $previously_attended; // int(1) not_null unsigned
public $gender; // string(3) not_null
public $ethnicity; // string(255) not_null
public $other_ethnicity; // string(255)
public $grade; // string(10) not_null
public $school; // string(255) not_null
public $endorser; // string(255) not_null
public $multiple_camps; // int(1) not_null unsigned
public $parent_first; // string(255) not_null
public $parent_mi; // string(10)
public $parent_last; // string(255) not_null
public $parent_address; // string(255) not_null
public $parent_city; // string(255) not_null
public $parent_state; // string(100) not_null
public $parent_zip; // string(25) not_null
public $parent_phone; // string(25) not_null
public $parent_work; // string(25) not_null
public $parent_email; // string(255) not_null
public $student_essay; // blob(16777215) blob
public $approves; // int(1) not_null unsigned
public $comments; // blob(16777215) blob
public $datecreated; // timestamp(19) not_null unsigned zerofill binary timestamp
/* Static get */
function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('YNS_Applicants',$k,$v); }
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
public $fb_formHeaderText = 'student information';
public $fb_fieldLabels = array(
'grade'=>'Student is currently in the',
'school'=>'Name of School Currently Attending',
'endorser'=>'Name of Science Teacher Endorser',
'parent_first' =>'First Name',
'parent_mi' =>'Middle Initial',
'parent_last' =>'Last Name',
'parent_address'=>'Address',
'parent_city' =>'City',
'parent_state' =>'State',
'parent_zip' =>'Zip',
'parent_phone' =>'Home Phone',
'parent_work' =>'Work Phone',
'parent_email' =>'Email',
'approves' =>'<span class="required">*</span>Check to confirm your consent',
'__crossLink_applicant_camps_applicant_id_camp_id' => 'Available Camps',
'multiple_camps'=>'I am interested in attending both camps',
'previously_attended'=>'I have previously attended a YNS camp'
);
public $fb_textFields = array('student_essay', 'Comments');
public $fb_hiddenFields = array(
'datecreated',
);
public $fb_enumFields = array('gender','ethnicity','grade');
public $fb_enumOptions = array('gender'=>array('',
'M'=>'Male',
'F'=>'Female'),
'ethnicity'=>array('',
'Asian'=>'Asian',
'African American'=>'African American',
'Hispanic'=>'Hispanic',
'Native American'=>'Native American',
'Pacific Islander'=>'Pacific Islander',
'Caucasian'=>'Caucasian',
'Other'=>'Other'),
'grade'=>array('',
7=>'7th Grade',
8=>'8th Grade',
9=>'9th Grade',
10=>'10th Grade'));
var $fb_crossLinks = array(array('table' => 'applicant_camps'));
var $fb_fieldAttributes = array(
'student_essay' => array('rows' => 15,'cols'=>70),
'comments' => array('rows' => 3,'cols'=>50));
function preGenerateForm(&$fb)
{
foreach ($this->fb_hiddenFields as $el) {
$this->fb_preDefElements[$el] = HTML_QuickForm::createElement('hidden', $fb->elementNamePrefix.$el.$fb->elementNamePostfix);
}
$this->fb_preDefElements['previously_attended'] = HTML_QuickForm::createElement('checkbox', $fb->elementNamePrefix.'previously_attended'.$fb->elementNamePostfix,'','I have previously attended a YNS camp');
$this->fb_preDefElements['multiple_camps'] = HTML_QuickForm::createElement('checkbox', $fb->elementNamePrefix.'multiple_camps'.$fb->elementNamePostfix,'','I am interested in attending both camps');
}
function prepareLinkedDataObject(&$do)
{
if ($do->tableName() == 'camps') {
$do->whereAdd('start_date > "'.date('Y-m-d').'"');
$do->orderBy('middle_school DESC,high_school');
}
}
function postGenerateForm(&$form)
{
$el =& $form->removeElement('__crossLink_applicant_camps_applicant_id_camp_id');
$form->insertElementBefore($el, 'multiple_camps');
$el =& HTML_QuickForm::createElement('header','camp_header','camp selection');
$form->insertElementBefore($el, '__crossLink_applicant_camps_applicant_id_camp_id');
$el =& HTML_QuickForm::createElement('html','<li>
<div align="center"style="background:url(http://yns.nebraska.edu/images/icons/asterik.png) left center repeat-x;color:#FFF;height:40px; width:840px; margin-bottom:10px;border-bottom:#B40025 3px dotted; padding-bottom:20px;"><h1 style="word-spacing:5px;width:358px; padding:13px 0px 0px 2px; background-color:#CA113D;"><span style="font-weight:bold; color:# !important; line-height:40px; letter-spacing:2px; text-transform:uppercase;">Please Read Carefully</span></h1></div>
<h4>Please indicate which camp(s) you are interested in attending.</h4> <!-- <p>Space in each camp is limited, so if you are able to participate in either camp, please choose both. If you are only able to participate in one camp, or you are only interested in one of the camps, please choose that camp. If you are interested in attending both camps (camp fee would be required for each), please check the box after the camp selections. </p>-->
<h5 class="left" style="padding-right:3px; width:270px;"><span style="color:#810900; font-size: 1.3em; font-weight: bold; line-height: 1.8em;">Energy in the 21st Century</span><br /><sup>[ <a href="http://yns.nebraska.edu/participate/energy_21st_century.shtml">View Detailed Camp Description</a> ]</sup></h5>
<h4 class="middle"><span style="font-size: 1.8em; font-weight: bold;">{</span>&nbsp;<span style="color:#810900; font-size: 1.8em; font-weight: bold; line-height:1.5em; vertical-align:middle;">OR</span>&nbsp;<span style="font-size: 1.8em; font-weight: bold;">}</span></h4>
<h5 class="right" style="padding-left:5px;"><span style="color:#810900; font-size: 1.3em; font-weight: bold; line-height: 1.8em;">The Sky\'s the Limit -<em style="font-size: 0.6em ! important;">The Science &amp; Design of Near Space Exploration</em></span><br /><sup>[ <a href="http://yns.nebraska.edu/participate/sky_the_limit.shtml">View Detailed Camp Description</a> ]</sup></h5>
<div class="clear"></div>
<h5 style="background:url(http://yns.nebraska.edu/images/icons/asterik_small.png) left center no-repeat; padding:5px 0px 5px 25px; margin:0px 0px 0px 10px; border-bottom:#B40025 3px dotted;">Middle School camps are for current 7th and 8th graders</h5>
<h5 style="background:url(http://yns.nebraska.edu/images/icons/asterik_small.png) left center no-repeat; padding:5px 0px 5px 25px; margin:0px 0px 0px 10px; border-bottom:#B40025 3px dotted;">High School camps are for current 9th and 10th graders</h5>
</li>');
$form->insertElementBefore($el, '__crossLink_applicant_camps_applicant_id_camp_id');
$el =& HTML_QuickForm::createElement('header','bio_header','biographic/demographic information');
$form->insertElementBefore($el, 'gender');
$el =& HTML_QuickForm::createElement('header','academic_header','student\'s academic information');
$form->insertElementBefore($el, 'grade');
$el =& HTML_QuickForm::createElement('header','parent_header','parent information');
$form->insertElementBefore($el, 'parent_first');
$el =& HTML_QuickForm::createElement('header','essay_header','student essay (not to exceed 250 words)');
$form->insertElementBefore($el, 'student_essay');
$el =& HTML_QuickForm::createElement('html','<li><p>
In your essay, tell the selection committee why you are interested in attending a 2010 Young Nebraska Scientist summer camp. Include
in your essay what you hope to gain from this experience and how you think it will help you in the future. Consider also including any
additional information about yourself that may be helpful to the selection committee. The essay should not exceed 250 words.
<br />
<em>*If you are unable to use this form to submit your essay, you may submit a separate sheet that is typed or neatly hand written. Be sure to write
your name and the date at the top of your essay. You can email, mail, or fax your essay using the information at the end of this form.
</em>
</p></li>');
$form->insertElementBefore($el, 'student_essay');
$el =& HTML_QuickForm::createElement('header','consent_header','parental consent');
$form->insertElementBefore($el, 'approves');
$el =& HTML_QuickForm::createElement('html','<li><p>As the parent(s)/guardian(s) of a student applying to the NE EPSCoR YNSI Summer Camp, I/we certify
that, if selected, my/our son/daughter/ward has my/our permission to fully participate in this program. It is my/our
understanding that he/she will be subject to the rules and regulations of the host institution and the program. I/we
understand that if my/our son/daughter/ward is accepted into YNSI, I/we will be required to sign releases of
liability, program contracts, financial responsibility forms, medical consent and other legally binding agreements.
I/we also understand that I/we will be responsible for the assessed program cost, and that no refunds of program
costs will be made after the check-in date. I/we understand that the deposit is non-refundable. I/we certify that the
information contained in all application materials is true, complete, and correct with no material omissions of
fact(s) that are or should be known to me/us.</p>
<div align="center"style="background:url(http://yns.nebraska.edu/images/icons/asterik.png) left center repeat-x;color:#FFF;height:95px; width:840px; margin-bottom:10px;border-bottom:#B40025 3px dotted;border-top:#B40025 3px dotted; padding-bottom:10px;"><h1 style="word-spacing:3px;width:758px; padding:13px 0px 0px 2px; background-color:#CA113D;"><span style="font-weight:bold; color:# !important; letter-spacing:1px; text-transform:uppercase;">It is with these understandings that my/our son/daughter/ward applies to participate in the
YNS Summer Camp.</span></h1></div>
</p></li>');
$form->insertElementBefore($el, 'approves');
$el =& HTML_QuickForm::createElement('html','<li><p><br />
If necessary, please provide any additional information about your childs participation in a YNS summer camp:
</p></li>');
$form->insertElementBefore($el, 'comments');
$defaults = array();
$defaults['datecreated'] = date('Y-m-d H:i:s');
$form->setDefaults($defaults);
}
}
<?php
/**
* Table Definition for camps
*/
require_once 'DB/DataObject.php';
class YNS_Camps extends DB_DataObject
{
###START_AUTOCODE
/* the code below is auto generated do not remove the above tag */
public $__table = 'camps'; // table name
public $id; // int(10) not_null primary_key unsigned auto_increment
public $title; // string(255) not_null
public $description; // blob(16777215) blob
public $middle_school; // int(1) not_null
public $high_school; // int(1) not_null
public $start_date; // date(10) not_null binary
public $end_date; // date(10) not_null binary
public $formatted_date; // string(255)
public $location; // string(255)
/* Static get */
function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('YNS_Camps',$k,$v); }
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
var $fb_linkDisplayFields = array('title','formatted_date', 'location');
}
<?php
/**
* Table Definition for endorsements
*/
require_once 'DB/DataObject.php';
class YNS_Endorsements extends DB_DataObject
{
###START_AUTOCODE
/* the code below is auto generated do not remove the above tag */
public $__table = 'endorsements'; // table name
public $id; // int(10) not_null primary_key unsigned auto_increment
public $student_name; // string(255) not_null
public $first_name; // string(255) not_null
public $middle_initial; // string(10)
public $last_name; // string(255) not_null
public $school; // string(255) not_null
public $work_phone; // string(25) not_null
public $home_phone; // string(25) not_null
public $email; // string(255) not_null
public $how_long; // string(255) not_null
public $what_capacity; // string(255) not_null
public $subject_areas; // string(255) not_null
public $curiosity; // int(2) not_null
public $independent; // int(2) not_null
public $respect; // int(2) not_null
public $maturity; // int(2) not_null
public $interpersonal; // int(2) not_null
public $attendance; // string(50) not_null
public $effort; // string(50) not_null
public $work_quality; // string(50) not_null
public $work_turned_in; // string(50) not_null
public $work_timeliness; // string(50) not_null
public $overall_recommendation; // string(50) not_null
public $comments; // blob(16777215) blob
public $datecreated; // timestamp(19) not_null unsigned zerofill binary timestamp
/* Static get */
function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('YNS_Endorsements',$k,$v); }
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
public $fb_formHeaderText = 'student information';
public $fb_fieldLabels = array(
'how_long' =>'How long have you known this student?',
'what_capacity' =>'In what capacity have you known this student?',
'subject_areas' =>'Subject area(s) you teach:',
'curiosity' =>'The student has a high degree of curiosity and interest in science.',
'independent' => 'The student works well independently and is capable of being productive with limited supervision.',
'respect' =>'The student shows respect and appreciation for others, and in general, works well with others.',
'maturity' =>'The student has the maturity and sense of responsibility necessary to work in a high-level research setting.',
'interpersonal' =>'The student has well-developed interpersonal skills, will ask for help when needed and offer an opinion when asked.',
'attendance' =>'Attendance',
'effort' =>'Effort in the classroom',
'work_quality' =>'Classwork and Homework Quality',
'work_turned_in' =>'Classwork and Homework turned in',
'work_timeliness' =>'Classwork and Homework timeliness',
'overall_recommendation'=>'What is your overall recommendation for this applicant?',
);
public $fb_textFields = array('comments');
public $fb_hiddenFields = array(
'datecreated',
);
public $fb_enumFields = array('curiosity',
'independent',
'respect',
'maturity',
'interpersonal',
'attendance',
'effort',
'work_quality',
'work_turned_in',
'work_timeliness',
'overall_recommendation');
public $fb_enumOptions = array(
'curiosity'=>array( 1=>'1 Disagree',
2=>2,
3=>3,
4=>4,
5=>'5 Agree'),
'independent'=>array( 1=>'1 Disagree',
2=>2,
3=>3,
4=>4,
5=>'5 Agree'),
'respect'=>array( 1=>'1 Disagree',
2=>2,
3=>3,
4=>4,
5=>'5 Agree'),
'maturity'=>array( 1=>'1 Disagree',
2=>2,
3=>3,
4=>4,
5=>'5 Agree'),
'interpersonal'=>array(1=>'1 Disagree',
2=>2,
3=>3,
4=>4,
5=>'5 Agree'),
'attendance'=>array('',
'Perfect'=>'Perfect',
'Missed 1-2 days'=>'Missed 1-2 days',
'Missed 3-9 days'=>'Missed 3-9 days',
'Missed 1-2 days/week'=>'Missed 1-2 days/week',
'Missed >2 days/week'=>'Missed >2 days/week'),
'effort'=>array('',
'Maximum effort'=>'Maximum effort',
5=>5,
4=>4,
3=>3,
2=>2,
1=>1,
'Minimum effort'=>'Minimum effort'),
'work_quality'=>array('',
'Very high quality'=>'Very high quality',
5=>5,
4=>4,
3=>3,
2=>2,
1=>1,
'Very poor quality'=>'Very poor quality'),
'work_turned_in'=>array('',
'All turned in'=>'All turned in',
5=>5,
4=>4,
3=>3,
2=>2,
1=>1,
'No work turned in'=>'No work turned in',),
'work_timeliness'=>array('',
'All work on time'=>'All work on time',
5=>5,
4=>4,
3=>3,
2=>2,
1=>1,
'Work always late'=>'Work always late'),
'overall_recommendation'=>array('',
'Strongly Recommend'=>'Strongly Recommend',
'Recommend'=>'Recommend',
'Recommend with reservations'=>'Recommend with reservations',
'Do not recommend'=>'Do not recommend')
);
var $fb_fieldAttributes = array('comments' => array('rows' => 3,'cols'=>50),
'middle_initial'=>array('size'=>1),
'school'=>array('size'=>50),
'email'=>array('size'=>50),
'student_name'=>array('size'=>50));
var $fb_linkElementTypes = array('curiosity'=>'radio','independent'=>'radio','respect'=>'radio','maturity'=>'radio','interpersonal'=>'radio');
function preGenerateForm(&$fb)
{
foreach ($this->fb_hiddenFields as $el) {
$this->fb_preDefElements[$el] = HTML_QuickForm::createElement('hidden', $fb->elementNamePrefix.$el.$fb->elementNamePostfix);
}
}
function postGenerateForm(&$form)
{
$el =& HTML_QuickForm::createElement('header','relation_header','relation info');
$form->insertElementBefore($el, 'how_long');
$el =& HTML_QuickForm::createElement('header','impression_header','student impressions');
$form->insertElementBefore($el, 'curiosity');
$el =& HTML_QuickForm::createElement('html','<li>
<h4 style="background:url(http://yns.nebraska.edu/images/icons/asterik_small.png) left center no-repeat; padding:5px 0px 5px 25px; margin:0px 0px 0px 10px; font-weight:bold;">Please indicate your impression of the student in the following areas </h4>
<h5 style="padding:5px 0px 5px 25px; margin:0px 0px 0px 10px; border-bottom:#B40025 3px dotted;">[ <strong>1</strong> = Disagree&nbsp;&nbsp;<span style="color:#810900;">&bull;</span>&nbsp;&nbsp;<strong>3</strong> = Agree <strong>nor</strong> Disagree&nbsp;&nbsp;<span style="color:#810900;">&bull;</span>&nbsp;&nbsp;<strong>5 </strong>= Agree ]</h5></li>');
$form->insertElementBefore($el, 'curiosity');
$el =& HTML_QuickForm::createElement('header','experiences_header','student experiences');
$form->insertElementBefore($el, 'attendance');
$el =& HTML_QuickForm::createElement('html','<li><h4 style="background:url(http://yns.nebraska.edu/images/icons/asterik_small.png) left center no-repeat; padding:5px 0px 5px 25px; margin:0px 0px 0px 10px; font-weight:bold; border-bottom:#B40025 3px dotted;">Please indicate your experiences with the student in the following areas:</h4></li>');
$form->insertElementBefore($el, 'attendance');
$el =& HTML_QuickForm::createElement('header','overall_header','overall recommendation');
$form->insertElementBefore($el, 'overall_recommendation');
$el =& HTML_QuickForm::createElement('html','<li><br />
<h4 style="background:url(http://yns.nebraska.edu/images/icons/asterik_small.png) left center no-repeat; padding:5px 0px 5px 25px; margin:0px 0px 0px 10px; font-weight:bold; border-top:#B40025 3px dotted;">The above named student is applying for selection in a <strong>YNSI Summer Camp</strong> and has requested your endorsement for his/her candidacy.</h4>
<h6 style="padding:5px 0px 5px 25px; margin:0px 0px 0px 10px;"><em>The deadline for all application materials and teacher endorsements is <strong>April 16, 2010</strong>.</em></h6></li>');
$form->insertElementBefore($el, 'first_name');
$el =& HTML_QuickForm::createElement('header','teacher_header','teacher endorser information');
$form->insertElementBefore($el, 'first_name');
$defaults = array();
$defaults['datecreated'] = date('Y-m-d H:i:s');
$form->setDefaults($defaults);
}
}
[applicant_camps]
id = 129
applicant_id = 129
camp_id = 129
[applicant_camps__keys]
id = N
[applicants]
id = 129
first_name = 130
middle_initial = 2
last_name = 130
address = 130
city = 130
state = 130
zip = 130
phone = 130
previously_attended = 145
gender = 130
ethnicity = 130
other_ethnicity = 2
grade = 130
school = 130
endorser = 130
multiple_camps = 145
parent_first = 130
parent_mi = 2
parent_last = 130
parent_address = 130
parent_city = 130
parent_state = 130
parent_zip = 130
parent_phone = 130
parent_work = 130
parent_email = 130
student_essay = 66
approves = 145
comments = 66
datecreated = 384
[applicants__keys]
id = N
[camps]
id = 129
title = 130
description = 66
middle_school = 145
high_school = 145
start_date = 134
end_date = 134
formatted_date = 2
location = 2
[camps__keys]
id = N
[endorsements]
id = 129
student_name = 130
first_name = 130
middle_initial = 2
last_name = 130
school = 130
work_phone = 130
home_phone = 130
email = 130
how_long = 130
what_capacity = 130
subject_areas = 130
curiosity = 129
independent = 129
respect = 129
maturity = 129
interpersonal = 129
attendance = 130
effort = 130
work_quality = 130
work_turned_in = 130
work_timeliness = 130
overall_recommendation = 130
comments = 66
datecreated = 384
[endorsements__keys]
id = N
[applicant_camps]
applicant_id = applicants:id
camp_id = camps:id
\ No newline at end of file
<?php
require_once dirname(__FILE__).'/../../config.inc.php';
require_once 'YNS/Applicants.php';
$do = DB_DataObject::factory('applicants');
$fb =& DB_DataObject_FormBuilder::create($do);
$form =& $fb->getForm();
?>
<!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"><!-- InstanceBegin template="/Templates/interior_pages.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Young Nebraska Scientists | Summer Camp Application</title>
<!-- InstanceEndEditable -->
<link rel="icon" type="image/png" href="http://yns.nebraska.edu/images/favicon.png" />
<!--<link rel="stylesheet" type="text/css" media="screen" href="../yns_css.css" />-->
<link rel="stylesheet" type="text/css" media="screen" href="http://yns.nebraska.edu/sharedcode/all.css" />
<script type="text/javascript" src="http://yns.nebraska.edu/yns.js"></script>
<script type="text/javascript" src="http://yns.nebraska.edu/sharedcode/wdn.js"></script>
<script type="text/javascript" src="http://yns.nebraska.edu/sharedcode/jquery.js"></script>
<script type="text/javascript">
WDN.jQuery = $;
</script>
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
form {
margin: 0;
padding: 0;
min-width: 820px;
max-width: 920px;
display:block;
overflow:auto;
}
form fieldset {
clear: both;
float: left;
padding-left:30px;
padding-bottom:10px;
padding-right:10px;
width:880px;
border-bottom:#851818 3px dotted;
margin-bottom:15px;
}
form fieldset.hidden {
border: 0;
}
form fieldset legend {
text-transform:capitalize;
border-bottom:2px solid #B40025;
margin-bottom:1.03em;
padding-bottom:0;
font-size:1.8em;
color:#FFD00B;
font-family:Helvetica,Arial,sans-serif;
font-weight:normal;
line-height:1.2;
padding-top:10px;
white-space: nowrap;
display: block;
width:100%;
}
form fieldset ol {
margin: 0;
padding: 0;
}
form fieldset li {
display: block;
list-style: none;
margin: 0;
clear: both;
}
form label {
margin: 0 0 0 5px;
}
form label.element {
display: block;
float: left;
width:240px;
padding: 0;
margin: 5px 0 0 0;
font-weight: bold;
text-align: right;
}
form input, form textarea, form :focus {
background-color:#B40025 !important;
border-color:#FFD00B !important;
}
form input, form textarea, form select {
width: auto;
background-color:#CA113D !important;
border-color:#810900 #B40025 #B40025 #810900 !important;
border-style:solid !important;
border-width:2px !important;
color:#FFF;
}
form textarea {
overflow: auto;
}
form textarea#student_essay {
float:right;
}
form br {
clear: left;
}
form div.element {
display: inline;
float: left;
margin: 5px 0 0 10px;
padding: 0;
}
form li.reqnote {
font-size: 80%;
margin: 5px 0 0 10px;
}
form span.error, form span.required {
color:#FFD00B;
padding-right:3px;
}
form div.error {
border: 1px solid red;
padding: 5px;
}
#footer {clear:both;}
</style>
<!-- InstanceEndEditable -->
</head>
<body id="red" onload="preloadImgs();randomImages();">
<div id="page"><a href="http://yns.nebraska.edu/"><img src="http://yns.nebraska.edu/images/yns-site-title-head.png" alt="title" height="100" width="940" border="0" /></a>
<div id="logo"><a href="http://yns.nebraska.edu/"><img src="http://yns.nebraska.edu/images/yns_logo.png" alt="logo" width="133" height="210" border="0"/></a></div>
<!--begin navigation-->
<div id="navigation"><!-- InstanceBeginEditable name="navigation" --><?php echo file_get_contents('http://yns.nebraska.edu/sharedcode/navigation.html'); ?><!-- InstanceEndEditable --></div>
<!-- end navigation-->
<div id="titlegraphic"><!-- InstanceBeginEditable name="titlegraphic" --><img src="http://yns.nebraska.edu/images/headers/hdr_indexred.png" alt="header home" width="940" height="161" /><!-- InstanceEndEditable --></div>
<div id="pagetitle"><!-- InstanceBeginEditable name="pagetitle" --> <!-- InstanceEndEditable --></div>
<!-- begin main content-->
<div id="maincontent" class="clear">
<!-- InstanceBeginEditable name="main content" -->
<div class="four_col left">
<h1 class="special_sec_header" style="font-size:3em;">NE EPSCoR Young Nebraska Scientist Initiative<br /><span style="color:#810900; font-weight:bolder; font-size:1.8em;">2010</span> Summer Camp Application Form</h1>
<h4 class="app_dead">Application Deadline = Friday, April 16th! <span style="color:#810900; font-size:smaller; font-weight:500; float:right;">[ Online application submission preferred &bull; Also available for <a href="http://yns.nebraska.edu/documents/2010YNSISummerCampsApplicationForm.pdf">download</a> ]</span></h4>
<div class="two_col left">
<h4 style="padding-left:10px;"><span style="color:#810900; font-size: 1.5em; font-weight: bold; line-height: 1.5em;">Cost = $250 / 1 week camp</span><br />A $50 non-refundable deposit will be required for those admitted to the camp. Full payment must be made prior to camp check-in. More details will be provided upon notification of acceptance.</h4>
</div>
<div class="two_col right">
<h4 style="padding-left:10px;"><span style="color:#810900; font-size: 1.5em; font-weight: bold; line-height: 1.5em;">Process =</span> Applications will be reviewed on an ongoing basis and members will be selected by <strong>Friday, April 23, 2010</strong>. Notifications will be made through the mail and additional camp information and forms will be provided at that time.</h4>
</div>
<div class="clear" style="border-bottom: #851818 3px dotted; height:20px; margin-bottom:10px;"></div>
<!-- <p><span class="blue" style="color:#FFF;"><strong>A limited number of scholarships are available from NE EPSCoR.</strong></span> Please download and complete the <a href="http://yns.nebraska.edu/documents/2009YNSIFinancialAidApplicationwebvsn.pdf">Financial Aid Application</a> and return it to NE EPSCoR by the application deadline.</p> -->
</div>
<?php
if ($form->validate()) {
$form->process(array(&$fb,'processForm'), false);
$form->removeElement('__submit__');
echo '<div class="intro">
<div class="intro_text">
<h3>Thank you!</h3>
<p>Thank you for submitting your application. A copy of your submission is below.</p>
<p>Additional information will be mailed to you after student admission to the
camp. If you have any questions, please call Sarah Zulkoski-Benson:
(402) 472-8946 or email: <a href="mailto:szulkoski-benson2@unl.edu">szulkoski-benson2@unl.edu</a></p>
</div>
</div>';
$form->freeze();
}
$renderer = new HTML_QuickForm_Renderer_Tableless();
$form->accept($renderer);
echo $renderer->toHtml();
?>
<!-- InstanceEndEditable -->
</div>
<!--end main content-->
<!-- begin footer-->
<div id="footer" align="center"><!-- InstanceBeginEditable name="footer" --><?php echo file_get_contents('http://yns.nebraska.edu/sharedcode/footer.html'); ?><!-- InstanceEndEditable --></div>
<!-- End footer -->
</div>
</body>
<!-- InstanceEnd --></html>
<?php
require_once dirname(__FILE__).'/../../config.inc.php';
require_once 'YNS/Endorsements.php';
$do = DB_DataObject::factory('endorsements');
$fb =& DB_DataObject_FormBuilder::create($do);
$form =& $fb->getForm();
?>
<!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"><!-- InstanceBegin template="/Templates/interior_pages.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Young Nebraska Scientists | Summer Camp Student Endorsement</title>
<!-- InstanceEndEditable -->
<link rel="icon" type="image/png" href="http://yns.nebraska.edu/images/favicon.png" />
<!--<link rel="stylesheet" type="text/css" media="screen" href="../yns_css.css" />-->
<link rel="stylesheet" type="text/css" media="screen" href="http://yns.nebraska.edu/sharedcode/all.css" />
<script type="text/javascript" src="http://yns.nebraska.edu/yns.js"></script>
<script type="text/javascript" src="http://yns.nebraska.edu/sharedcode/wdn.js"></script>
<script type="text/javascript" src="http://yns.nebraska.edu/sharedcode/jquery.js"></script>
<script type="text/javascript">
WDN.jQuery = $;
</script>
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
form {
margin: 0;
padding: 0;
min-width: 820px;
max-width: 920px;
display:block;
overflow:auto;
}
form fieldset {
clear: both;
float: left;
padding-left:30px;
padding-bottom:10px;
padding-right:10px;
width:880px;
border-bottom:#851818 3px dotted;
margin-bottom:15px;
}
form fieldset.hidden {
border: 0;
}
form fieldset legend {
text-transform:capitalize;
border-bottom:2px solid #B40025;
margin-bottom:1.03em;
padding-bottom:0;
font-size:1.8em;
color:#FFD00B;
font-family:Helvetica,Arial,sans-serif;
font-weight:normal;
line-height:1.2;
padding-top:10px;
white-space: nowrap;
display: block;
width:100%;
}
form fieldset ol {
margin: 0;
padding: 0;
}
form fieldset li {
display: block;
list-style: none;
margin: 0;
clear: both;
}
form label {
margin: 0 0 0 5px;
}
form label.element {
display: block;
float: left;
width:240px;
padding: 0;
margin: 5px 0 0 0;
font-weight: bold;
text-align: right;
}
form input, form textarea, form :focus {
background-color:#B40025 !important;
border-color:#FFD00B !important;
}
form input, form textarea, form select {
width: auto;
background-color:#CA113D !important;
border-color:#810900 #B40025 #B40025 #810900 !important;
border-style:solid !important;
border-width:2px !important;
color:#FFF;
}
form textarea {
overflow: auto;
}
form textarea#student_essay {
float:right;
}
form br {
clear: left;
}
form div.element {
display: inline;
float: left;
margin: 5px 0 0 10px;
padding: 0;
}
form li.reqnote {
font-size: 80%;
margin: 5px 0 0 10px;
}
form span.error, form span.required {
color:#FFD00B;
padding-right:3px;
}
form div.error {
border: 1px solid red;
padding: 5px;
}
#footer {clear:both;}
</style>
</style>
<!-- InstanceEndEditable -->
</head>
<body id="red" onload="preloadImgs();randomImages();">
<div id="page"><a href="http://yns.nebraska.edu/"><img src="http://yns.nebraska.edu/images/yns-site-title-head.png" alt="title" height="100" width="940" border="0" /></a>
<div id="logo"><a href="http://yns.nebraska.edu/"><img src="http://yns.nebraska.edu/images/yns_logo.png" alt="logo" width="133" height="210" border="0"/></a></div>
<!--begin navigation-->
<div id="navigation"><!-- InstanceBeginEditable name="navigation" --><?php echo file_get_contents('http://yns.nebraska.edu/sharedcode/navigation.html'); ?><!-- InstanceEndEditable --></div>
<!-- end navigation-->
<div id="titlegraphic"><!-- InstanceBeginEditable name="titlegraphic" --><img src="http://yns.nebraska.edu/images/headers/hdr_indexred.png" alt="header home" width="940" height="161" /><!-- InstanceEndEditable --></div>
<div id="pagetitle"><!-- InstanceBeginEditable name="pagetitle" --> <!-- InstanceEndEditable --></div>
<!-- begin main content-->
<div id="maincontent" class="clear">
<!-- InstanceBeginEditable name="main content" -->
<div class="four_col left">
<h1 class="special_sec_header" style="font-size:3em;">NE EPSCoR Young Nebraska Scientist Initiative (YNSI)<br /><span style="color:#810900; font-weight:bolder; font-size:1.8em;">2010</span> Summer Camp Endorsement Form</h1>
<h4 class="app_dead">Application Deadline = Friday, April 16th! <span style="color:#810900; font-size:smaller; font-weight:500; float:right;">[ Online application submission preferred &bull; Also available for <a href="http://yns.nebraska.edu/documents/2010YNSISummerCampsEndorsementForm.pdf">download</a> ]</span></h4>
<h4 class="sec_header" style="padding-left:10px;"><span style="color:#810900; font-size: 1.5em; font-weight: bold; line-height: 1.5em;">Endorsement</span> &nbsp;must be completed by a science teacher!</h4>
</div>
<?php
if ($form->validate()) {
$form->process(array(&$fb,'processForm'), false);
$form->removeElement('__submit__');
echo '<div class="intro">
<div class="intro_text">
<h3>Thank you!</h3>
<p>Thank you for submitting your endorsement. A copy of your submission is below.</p>
</div>
</div>';
$form->freeze();
}
$renderer = new HTML_QuickForm_Renderer_Tableless();
$form->accept($renderer);
echo $renderer->toHtml();
?>
</div>
<!-- InstanceEndEditable -->
</div>
<!--end main content-->
<!-- begin footer-->
<div id="footer" align="center"><!-- InstanceBeginEditable name="footer" --><?php echo file_get_contents('http://yns.nebraska.edu/sharedcode/footer.html'); ?><!-- InstanceEndEditable --></div>
<!-- End footer -->
</div>
</body>
<!-- InstanceEnd --></html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment