Modify a Grant

"; $strSQL="SELECT * FROM attribute_types order by id"; $result=mysql_query($strSQL); $num_entries=mysql_num_rows($result); //$strSQL="SELECT * FROM attribute_"; //$result_values=mysql_query($strSQL); //$num_entries=mysql_num_rows($result); for($i=0; $i<$num_entries; $i++){ $id = mysql_result($result, $i, "id"); $type = mysql_result($result, $i, "type"); $strSQL2="SELECT * FROM attribute_values where type_id=$id and grant_id=$grant_id order by type_id"; $result2=mysql_query($strSQL2); $num_entries2=mysql_num_rows($result2); // this is where we need to print if($num_entries2 > 0){ for($z=0; $z < $num_entries2; $z++){ $g_value = mysql_result($result2, $z, "value"); switch($id){ case "1": echo " "; break; case "2": echo " "; break; case "3": echo " "; break; case "4": echo " "; break; case "5": echo " "; break; case "6": echo " "; break; case "7": echo " "; break; case "8": echo " "; break; case "9": echo " "; break; case "10": echo " "; break; case "11": echo " "; break; case "13": echo " "; break; default: echo " "; break; } } } //else{ $g_value = "";} //echo $strSQL2; } $strSQL="SELECT * FROM attribute_types"; $result=mysql_query($strSQL); $num_entries=mysql_num_rows($result); echo "
Title
Organization
Summary A HTML parser is used to format text. You may add any HTML tags, however theas the parser will register paragraphs, new lines, ect.
Amount
Award Id Number
Program
Start Date MMDDYYYY (no spaces)
End Date MMDDYYYY (no spaces)
Principal Investigator
Co-Principal Investigator
Proposal Number
Account Number
If there is no account number, the grant has not yet been awarded.
".$type."

 [+] Click Here to Add Addition Information Click Here to Add Addition Information
This might be information such as multiple Co-Principal Investigators, more than one organization assocaited with this grant, or more than one amount associated with this grant.


 [+] Click Here to Attach Files to Your Grant
All grants are encouraged to have actually files representing them attached as reference for others to use. If you have any type of file that might be useful to another please attach it. If you are attaching a version of your grant please include the date in the file name for reference.





"; include ('components/footer.php'); ?>