Exemplo n.º 1
0
        echo 'Full Time';
        break;
    case 'PT':
        echo 'Part Time';
        break;
}
?>
</td>                     
                    </tr>
			  	</tbody>
			</table>
			
			<!-- table for programme applied details-->
            <h4 align="center" class="alert alert-success">Programme Applied Details</h4>
            <?php 
$thesis_details = Thesis::find_by_id($applicant_id);
?>
            <table class="table table-bordered table-hover">
            	<tbody>
                	<tr>
                    	<td>Programme: </td>
                        <td><?php 
echo $personal_details['faculty_name'];
?>
</td>
                    </tr>
                    <tr>
                    	<td>Course: </td>
                        <td><?php 
echo $personal_details['department_name'];
?>
require_once '../inc/initialize.php';
$thesis = new Thesis();
if ($_FILES['attach_thesis_proposal']['error'] == 2) {
    sleep(2);
    echo '<h4 class="alert alert-error">Error</h4>';
    echo '<hr>';
    echo 'Your thesis attachment is bigger than the maximum file size of 2MB';
    die;
}
$thesis->comment_on_field = $_POST['proposed_field_brief'];
$thesis->applicant_id = $session->applicant_id;
$thesis->thesis_topic = $_POST['proposed_thesis_topic'];
$thesis->proposal_on_thesis = $_POST['thesis_proposal'];
$initiafilename = $_FILES['attach_thesis_proposal']['name'];
$thesis_details = $thesis->find_by_id($session->applicant_id);
if (!empty($thesis_details)) {
    $thesis->thesis_id = $thesis_details->thesis_id;
}
if ($thesis->save()) {
    if (!empty($_FILES['attach_thesis_proposal'])) {
        $files = new Files();
        //$file_details = $files->find_by_id($session->applicant_id);
        /*find file record for proposed thesis*/
        $sql_thesis_upload_file = "SELECT * FROM files WHERE applicant_id=" . $session->applicant_id . " AND caption='Thesis Proposal'";
        $result_thesis_upload_file = Files::find_by_sql($sql_thesis_upload_file);
        foreach ($result_thesis_upload_file as $row) {
            $thesis_file_id = $row->file_id;
            $thesis_filename = $row->filename;
        }
        $files->upload_dir = "documents" . DS . "thesis";
Exemplo n.º 3
0
        echo 'Full Time';
        break;
    case 'PT':
        echo 'Part Time';
        break;
}
?>
</td>                     
                    </tr>
			  	</tbody>
			</table>
            
            <!-- table for programme applied details-->
            <h4 align="center" class="alert alert-success">Programme Applied Details</h4>
            <?php 
$thesis_details = Thesis::find_by_id($session->applicant_id);
?>
            <table class="table table-bordered table-hover">
            	<tbody>
                	<tr>
                    	<td>Programme: </td>
                        <td><?php 
echo $personal_details['faculty_name'];
?>
</td>
                    </tr>
                    <tr>
                    	<td>Course: </td>
                        <td><?php 
echo $personal_details['department_name'];
?>