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

Add year2 endorsement table and specific fields.

parent 428624f1
Branches
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
-- http://www.phpmyadmin.net -- http://www.phpmyadmin.net
-- --
-- Host: localhost -- Host: localhost
-- Generation Time: Jan 05, 2010 at 02:20 PM -- Generation Time: Jan 06, 2010 at 08:24 AM
-- Server version: 5.1.39 -- Server version: 5.1.39
-- PHP Version: 5.3.0 -- PHP Version: 5.3.0
...@@ -106,3 +106,27 @@ CREATE TABLE IF NOT EXISTS `year2applications` ( ...@@ -106,3 +106,27 @@ CREATE TABLE IF NOT EXISTS `year2applications` (
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `sponsor_uid` (`sponsor_uid`) KEY `sponsor_uid` (`sponsor_uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `year2endorsements`
--
CREATE TABLE IF NOT EXISTS `year2endorsements` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uid` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`first_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`last_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`rank` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`department` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`college` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`application_id` int(10) unsigned NOT NULL,
`student_role` mediumtext COLLATE utf8_unicode_ci NOT NULL,
`student_ability` mediumtext COLLATE utf8_unicode_ci NOT NULL,
`project_relation` mediumtext COLLATE utf8_unicode_ci NOT NULL,
`datesubmitted` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `uid` (`uid`,`application_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
...@@ -44,16 +44,25 @@ function checkForm() ...@@ -44,16 +44,25 @@ function checkForm()
<div class="element"> <div class="element">
<textarea id="student_role" name="student_role" cols="60" rows="5"><?php echo getValue($this, 'student_role'); ?></textarea></div> <textarea id="student_role" name="student_role" cols="60" rows="5"><?php echo getValue($this, 'student_role'); ?></textarea></div>
</li> </li>
<?php if ($year == 1): ?>
<li> <li>
<label for="second_year" class="element"><span class="required">*</span>Will working on this project help the student conceptualize a second year, more independent project?</label> <label for="second_year" class="element"><span class="required">*</span>Will working on this project help the student conceptualize a second year, more independent project?</label>
<div class="element"> <div class="element">
<textarea id="second_year" name="second_year" cols="60" rows="5"><?php echo getValue($this, 'second_year'); ?></textarea></div> <textarea id="second_year" name="second_year" cols="60" rows="5"><?php echo getValue($this, 'second_year'); ?></textarea></div>
</li> </li>
<?php endif; ?>
<li> <li>
<label for="student_ability" class="element"><span class="required">*</span>Please comment on the ability of the student to carry out this research.</label> <label for="student_ability" class="element"><span class="required">*</span>Please comment on the ability of the student to carry out this research.</label>
<div class="element"> <div class="element">
<textarea id="student_ability" name="student_ability" cols="60" rows="5"><?php echo getValue($this, 'student_ability'); ?></textarea></div> <textarea id="student_ability" name="student_ability" cols="60" rows="5"><?php echo getValue($this, 'student_ability'); ?></textarea></div>
</li> </li>
<?php if ($year == 2): ?>
<li>
<label for="project_relation" class="element"><span class="required">*</span>Please indicate if the student's project is closely related to your own and how it might contribute to your own research. If it is not, please indicate the significance of the project to your discipline as a whole.</label>
<div class="element">
<textarea id="project_relation" name="project_relation" cols="60" rows="5"><?php echo getValue($this, 'project_relation'); ?></textarea></div>
</li>
<?php endif; ?>
</ol> </ol>
</fieldset> </fieldset>
<p class="submit"><input id="submit" name="submit" value="Submit My Endorsement" type="submit"></p> <p class="submit"><input id="submit" name="submit" value="Submit My Endorsement" type="submit"></p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment