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_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 onblur="checkInp(\'mrd\')" type=number id=mrd name=mrd size=10 maxlength=8></td>
					</tr>
					<tr>
						<td   style="background:lightgreen;">Department</td>
						<td  style="background:lightgreen;">
							<input type=hidden readonly id="selected_department" name="selected_department"/>';
    list_department();
    echo '</td>
						<td   style="background:lightgray;">Sample Type</td>
						<td   style="background:lightgray;">
							<input type=hidden readonly id="selected_sample_details" name="selected_sample_details"/>';
    list_sample_details();
    echo '</tr><tr>
						<td   style="background:lightgray;">Profile</td>
						<td   colspan=10 style="background:lightgray;">';
    list_profile();
    echo '</tr>
						<tr>
							<td   colspan=10 style="background:lightgray;">';
    list_scope();
    echo '</td>
							<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>
						</tr>
						</table></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 >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>';
    //For OPD unit=-
    //echo 	'<td   style="background:lightgray;">Unit</td>';
    //echo 	'<td   style="background:lightgray;">';
    echo '					<input type=hidden readonly value=\'-\' id="selected_unit" name="selected_unit"/>';
    //list_unit();
    //echo 			'</td>';
    //For OPD location=OPD
    //echo '				<td   style="background:lightblue;">';
    echo '					<input type=hidden readonly value=\'OPD\' 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>';
}