Skip to content
Snippets Groups Projects
ProfGUI.java 782 B
Newer Older
Thomas Mewily's avatar
Thomas Mewily committed
package com.uca.gui;

Thomas Mewily's avatar
Thomas Mewily committed
import com.uca.core.*;
import freemarker.template.*;
import java.io.*;
import java.util.*;
Thomas Mewily's avatar
Thomas Mewily committed

public class ProfGUI 
{
    public static String getAllProfs() throws IOException, TemplateException {

        Map<String, Object> input = new HashMap<>();
        input.put("profs", Core.Prof.getAll());
        return DefaultGUI.getDefaultGUI(input, "profsRegular.ftl");
Thomas Mewily's avatar
Thomas Mewily committed
    }
Boris's avatar
Boris committed
<<<<<<< HEAD
=======

>>>>>>> 5ec4cf8bc3d664e61a91bbf24c5be8fd9b73c1fb
    public static String getWelcomePage(ProfEntity prof)
    { 
        Map<String, Object> input = new HashMap<>();
        input.put("prof",prof);
        return DefaultGUI.getDefaultGUI(input, "welcome.ftl");
    }
Boris's avatar
Boris committed
<<<<<<< HEAD
=======

>>>>>>> 5ec4cf8bc3d664e61a91bbf24c5be8fd9b73c1fb
Thomas Mewily's avatar
Thomas Mewily committed
}