Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

DoctorSelect.java

Go to the documentation of this file.
00001 
00002 public class DoctorSelect extends SelectBox
00003 {       
00004         int practice_id;
00005         
00006         public DoctorSelect(int practice_id, int rows, String prefix, Form form)
00007         {
00008           super(false, rows, prefix, form);
00009           this.practice_id = practice_id;
00010         }
00011                 
00012         public void display(boolean hidden)
00013         {
00014           if (practice_id <= 0)
00015             super.display(hidden, "SELECT doctor_id, name FROM doctors");
00016           else
00017             super.display(hidden, "SELECT doctor_id, name FROM doctors WHERE practice_id = " + practice_id);
00018         }
00019 };

Generated on Mon Mar 6 23:34:34 2006 by  doxygen 1.4.4