function get_patient_and_sample_data()
{
    echo '<table   style="background:light;"><form method=post>
					<tr  style="background:lightpink;">
						<td colspan=10 >Patient Name: <input  type=text name=name> MRD: SUR/' . date("y") . '/<input type=number id=mrd name=mrd size=10 maxlength=8></td>
					</tr>
					<tr>';
    //echo 	'<td style="background:lightgreen;">Department</td>';
    echo '<td  style="background:lightgreen;">
							<input type=hidden readonly id="selected_department" name="selected_department"/>';
    list_department();
    echo '</td>';
    //echo 	'<td   style="background:lightgray;">Unit</td>';
    echo '<td   style="background:lightgray;">
							<input type=hidden readonly id="selected_unit" name="selected_unit"/>';
    list_unit();
    echo '</td>';
    //				<td   style="background:lightgray;">location</td>
    echo '				<td   style="background:lightgray;">
							<input type=hidden readonly id="selected_location" name="selected_location"/>';
    list_location();
    echo '</td>';
    /*							
    		echo 	'<td   style="background:lightgray;">
    							<input type=hidden readonly id="selected_sample_type" name="selected_sample_type"/>';
    							list_sample_type();
    		echo 			'</td>';
    		echo 	'<td   style="background:lightgray;">
    							<input type=hidden readonly id="selected_preservative" name="selected_preservative"/>';
    							list_preservative();
    		echo 			'</td>';									
    */
    echo '</tr><tr>';
    echo '</td>';
    //<td   style="background:lightgray;">Sample Type</td>
    echo '<tr><td colspan=10>';
    //======================
    echo '<table><tr>';
    echo '<td style="background:lightgray;">
							<input type=hidden readonly id="selected_sample_details" name="selected_sample_details"/>';
    list_sample_details();
    //echo			'<td   style="background:lightgray;">Profile</td>';
    echo '				<td   colspan=10 style="background:lightgray;">';
    list_profile();
    echo '				<td   style="background:lightblue;"><h1><button type=input style="height:100%;width:100%;padding:0;margin:0;" type=submit name=action value=insert_new><h1>Submit</button></h1></td>';
    echo '</tr></table>';
    //========================
    echo '</td></tr>';
    echo '</tr>
						<tr>
							<td   colspan=10 style="background:lightgray;">';
    list_scope();
    echo '</td>
						</tr>
						</table></form>';
}
function get_patient_data()
{
    echo '<table   style="background:light;"><form method=post>
					<tr  style="background:lightpink;">
						<td colspan=10 >Patient Name: <input  type=text name=name> MRD: SUR/' . date("y") . '/<input onblur="checkInp(\'mrd\')" type=number id=mrd name=mrd size=10 maxlength=8></td>
					</tr>
					<tr>';
    //echo 	'<td style="background:lightgreen;">Department</td>';
    echo '<td  style="background:lightgreen;">
							<input type=hidden readonly id="selected_department" name="selected_department"/>';
    list_department();
    echo '</td>';
    //echo 	'<td   style="background:lightgray;">Unit</td>';
    echo '<td   style="background:lightgray;">
							<input type=hidden readonly id="selected_unit" name="selected_unit"/>';
    list_unit();
    echo '</td>';
    //				<td   style="background:lightblue;">location</td>
    echo '				<td   style="background:lightblue;">
							<input type=hidden readonly id="selected_location" name="selected_location"/>';
    list_location();
    echo '</td></tr><tr>';
    echo '				<td   style="background:lightyellow;">
								<h1><button type=input style="height:100%;width:100%;padding:0;margin:0;" 
								type=submit name=action value=insert_new_1><h1>Submit</button>
								</h1>
							</td>';
    echo '</tr></table>';
    //========================
    echo '</form>';
}
function get_patient_data()
{
    echo '<table   style="background:light;"><form method=post>';
    echo '<tr>';
    echo '				<td>
								<button type=submit name=action value=insert_new_1 style="font-size:200%;">Submit</button>
							</td>';
    echo '</tr>		
					<tr  style="background:lightpink;">
					<td colspan=10>
						<table><tr>
						<td colspan=3 >Patient Name: <input  type=text name=name> MRD: SUR/' . date("y") . '/<input onblur="checkInp(\'mrd\')" type=number id=mrd name=mrd size=10 maxlength=8></td>
						<td colspan=10 >request_id:<input onblur="checkInp(\'mrd\')" type=number id=request_id name=request_id size=10 maxlength=8></td>
						<td colspan=10 >extra:<textarea id=extra name=extra rows=1 cols=40></textarea></td>
						</tr></table>
					</td>
					</tr>
					<tr>';
    //echo 	'<td style="background:lightgreen;">Department</td>';
    echo '<td  style="background:lightgreen;">
							<input type=hidden readonly id="selected_department" name="selected_department"/>';
    list_department();
    echo '</td>';
    //echo 	'<td   style="background:lightgray;">Unit</td>';
    echo '<td   style="background:lightgray;">
							<input type=hidden readonly id="selected_unit" name="selected_unit"/>';
    list_unit();
    echo '</td>';
    echo '				<td   style="background:lightblue;">
							<input type=hidden readonly id="selected_location" name="selected_location"/>';
    list_location();
    echo '</td>';
    echo '				<td   style="background:lightyellow;">
							<input type=hidden readonly id="selected_sample_details" name="selected_sample_details"/>';
    list_sample_details();
    echo '</td>';
    echo '</tr></table>';
    //========================
    echo '</form>';
}