@SuppressWarnings("resource")
	public void searchEngineMenu2(DataSource ds) {
		System.out
				.println("Enter doctor info (employee no or name), start date (DD/MM/YYYY), end date (DD/MM/YYYY): ");
		System.out
				.println("eg. 1, 01/01/2013, 31/12/2014 or eg. yuri, 01/01/2013, 31/12/2014");
		Scanner s = new Scanner(System.in);
		String input[] = null;
		try {
			input = s.nextLine().split(", ");
			if (input[1].matches("\\d{2}/\\d{2}/\\d{4}")
					&& input[2].matches("\\d{2}/\\d{2}/\\d{4}")) {
				try {
					ResultSet rs = ds.checkDoctor(input[0]);
					Vector<Doctor> doctors = ds.getDoctorList(rs);
					int emp_no = 0;
					if(doctors.size() > 1){
						Helper.printDoctors(doctors);
						try{
							System.out.print("Enter employee no from the list: ");
							emp_no = new Scanner(System.in).nextInt();
						}catch(Exception e){System.out.println("Does not exist.");}
					} else {
						emp_no = doctors.get(0).getEmployee_no();
					}
					System.out.println(">>" + emp_no);
						ds.listRecordByPrescribedDate(input[1], input[2],
								emp_no);
				} catch (Exception e) {
					e.printStackTrace();
				}
			} else {
				System.out.println("Wrong date format.");
			}
		} catch (Exception e) {
			System.out.println("Format input is wrong.");
		}
	}