예제 #1
0
        //Student information subpage
        public static string studentInformation(string id)
        {
            //Check if ID is formatted correctly

            return(string.Format(
                       "<HTML><BODY>" +

                       "<head> <title>Stranahan Detention System</title> </head>" +

                       "Hello User. {0}<br>{1}<br>" +
                       "{2}" +

                       "</BODY></HTML>"

                       , DateTime.Now
                       , db.getName(id)
                       , DatabaseMain.formatHTMLTable(db.getDetentionList(id))
                       ));
        }
예제 #2
0
        public ServerRecorder()
        {
            InitializeComponent();

            db = new DatabaseMain();
        }
예제 #3
0
        public MainDetention(long authnKey)
        {
            InitializeComponent();

            database = new DatabaseMain();
        }