<?
page_open(array("sess" => "Poe_Session", "auth" => "Poe_Challenge_Auth", "perm" => "Cat_Perm", "user" => "Poe_User"));
$perm->check( "student" );
?>
<?
include "cat_header_code.inc";
include "date.inc";
include "UpdateOrInsert.inc";
?>
<?
include "setup_quickstart.inc";
$NumSkills = 4;
$input_form = setup_personal();
// Check if the user posted the form, and that the form checks out.
// It looks like I'm checking that the form is NOT valid, but actually,
// validate() returns an error string if it's not valid, and nothing if
// it is valid.
$error = $input_form->validate();
if( ( $submit_item or $Next ) and !$error ) {
$HTTP_POST_VARS['contact_info_firstname'] = $HTTP_POST_VARS['user_firstname'];
$HTTP_POST_VARS['contact_info_lastname'] = $HTTP_POST_VARS['user_lastname'];
$HTTP_POST_VARS['contact_info_email'] = $HTTP_POST_VARS['user_email'];
$ckey = array( "contact_infoid" );
// take the contact_infoid returned from the insert into contact_info and use it for the 'user' table.
$HTTP_POST_VARS['user_contact_infoid'] = UpdateOrInsert("contact_info", 0, $ckey);
$HTTP_POST_VARS['user_name'] = $HTTP_POST_VARS['user_email'];
$ukey = array( "userid" );
$HTTP_POST_VARS['student_userid'] = UpdateOrInsert( "user", 0, $ukey );
$key = array( "studentid" );
addDateToPost( "student_birth" );
$studentid = UpdateOrInsert( "student", 0, $key );
printf("school=%s",$HTTP_POST_VARS[student_school_schoolid]);
addDateToPost( "student_school_start_date" );
addDateToPost( "student_school_end_date" );
$schoolkey = array( "student_school_schoolid" );
UpdateOrInsert( "student_school", $schoolkey );
}
?>
<?
$PAGE_TITLE = "Catalyst Recruiting Quick Start";
include "cat_header_layout.inc";
?>
<table border="0" cellpadding="3" cellspacing="0" frame width="100%">
<tr>
<td width="112" colspan="3" bgcolor="#3130CE">
<img src="headerImages/personalHeader.gif">
</tr>
</table>
<?
$help = "personal";
?>
<? $input_form->start( "personalForm", "post", "quickstart.php3" ); ?>
<table border="0" cellpadding="2" cellspacing="2" width="100%" height="507">
<tr height="18">
<td>
<font color="<? echo $cat_textOnLightBKG; ?>">
<b>General Info</b>
</font>
</td>
<td>
<!--<a href="javascript:help('personalGeneral')">
<font color="<? echo $cat_textOnLightBKG; ?>" size="2">
For help with general information click here.
</font>
</a>-->
</td>
</tr>
<tr>
<td height="18" width="20%" align="right" align="right">
<font color="<? echo $cat_textOnLightBKG; ?>">First Name</font></td>
<td height="18" width="79%">
<?
$input_form->show_element( "user_firstname" );
?>
</td>
</tr>
<tr height="18">
<td height="18" width="20%" align="right">
<font color="<? echo $cat_textOnLightBKG; ?>">
Last Name
</font></td>
<td height="18" width="79%">
<?
$input_form->show_element( "user_lastname" );
?>
</td>
</tr>
<tr height="18">
<td height="18" width="20%" align="right">
<font color="<? echo $cat_textOnLightBKG; ?>">E-mail</font></td>
<td height="18" width="79%">
<?
$input_form->show_element( "user_email" );
?>
</td>
</tr>
<tr height="18">
<td height="18" width="20%" align="right">
<font color="<? echo $cat_textOnLightBKG; ?>">
Gender
</font>
</td>
<td height="18" width="79%">
<?
$input_form->show_element( "student_gender" );
?>
<font color="<? echo $cat_textOnLightBKG; ?>">
Ethnicity
</font> <!--<img src="../student/images/shim.gif" height="1" width="4">--> <?
$input_form->show_element( "student_ethnicityid" );
?>
</td>
</tr>
<tr>
<td width="20%" align="right">
<font color="<? echo $cat_textOnLightBKG; ?>">
Name of School
</font>
</td>
<td width="79%" align="left">
<?
$input_form->show_element( "student_school_schoolid" );
?>
</td>
</tr>
<tr>
<td width="20%" align="right">
<font color="<? echo $cat_textOnLightBKG; ?>">
GPA
</font>
</td>
<td width="79%" align="left">
<?
$input_form->show_element( "student_school_gpa" );
?>
</td>
</tr>
<tr>
<td width="20%" align="right">
<font color="<? echo $cat_textOnLightBKG; ?>">
<br>Enrollment Date
</font>
<br><br>
</td>
<td>
<br>
<?
$input_form->show_element("student_school_start_date");
?>
<br><br>
</td>
</tr>
<tr>
<td width="20%" align="right">
<font color="<? echo $cat_textOnLightBKG; ?>">
Graduation Date (expected)
</font>
<br><br>
</td>
<td>
<?
$input_form->show_element("student_school_end_date");
?>
<br><br>
</td>
</tr>
<tr>
<td width="20%" align="right">
<font color="<? echo $cat_textOnLightBKG; ?>">
(Expected) Degree
</font>
</td>
<td width="79%" align="left">
<?
$input_form->show_element( "student_degree_degreeid" );
?>
</td>
</tr>
<tr>
<td width="20%" align="right">
<font color="<? echo $cat_textOnLightBKG; ?>">
Major
</font>
</td>
<td width="79%" align="left">
<?
$input_form->show_element( "student_concentration_concentrationid" );
?>
</td>
</tr>
<tr>
<td width="20%" align="right">
</td>
<td width="79%" allign="left">
<font color="<? echo $cat_textOnLightBKG; ?>">
GPA in major
</font>
<?
$input_form->show_element( "student_concentration_gpa" );
?>
</td>
</tr>
<tr>
<td width="20%" align="right">
<font color="<? echo $cat_textOnLightBKG; ?>">
Additional
<? $input_form->show_element( "student_concentration_isminor2", "N") ?>
Major
<? $input_form->show_element( "student_concentration_isminor2", "Y") ?>
Minor
</font>
</td>
<td width="79%" align="left">
<?
$input_form->show_element( "student_concentration_concentrationid2" );
?>
</td>
</tr>
<tr>
<td width="20%" align="right">
</td>
<td width="79%" align="left">
<font color="<? echo $cat_textOnLightBKG; ?>">
GPA in 2nd major / minor
</font>
<?
$input_form->show_element( "student_concentration_gpa2" );
?>
</td>
</tr>
<?
for($i = 0; $i < $NumSkills; $i++) {
?>
<tr>
<td width="20%" align="right">
<font color="<? echo $cat_textOnLightBKG; ?>">
Skill Name
</font>
</td>
<td width="79%" align="left">
<?
$input_form->show_element( "student_skill_skillid_$i" );
?>
Proficiency
<?
$input_form->show_element( "student_skill_proficiency_$i" );
?>
</td>
</tr>
<?
}
?>
<tr>
<td width="20%" align="right">
<font color="<? echo $cat_textOnLightBKG; ?>">
SAT Math
</font>
</td>
<td width="79%" align="left">
<?
$input_form->show_element( "student_test_score_satm" );
?>
</td>
</tr>
<tr>
<td width="20%" align="right">
<font color="<? echo $cat_textOnLightBKG; ?>">
SAT Verbal
</font>
</td>
<td width="79%" align="left">
<?
$input_form->show_element( "student_test_score_satv" );
?>
</td>
</tr>
<br><br>
</td>
</tr>
</table>
<? include( "navBarBottom.inc" ); ?>
<?// $persform->finish() ?>
<!-- BEGIN CAT_FOOTER.INC -->
<? include( "cat_footer.inc" ); ?>