package page.com.jfilerecovery;

import org.wikiwebserver.core.WareHouse;
import org.wikiwebserver.handler.http.interfaces.*;

import page.config.SiteTemplatedPage;

import static org.wikiwebserver.html.HTMLHelper.*;

public class Download extends SiteTemplatedPage implements HTTPResponder {
    
    public void generate() {
        addResourceRoot("/templates/com/jfilerecovery/");
        addCSSLink("jfilerecovery.css"); 
        
        setTitle("Download - JFileRecovery");
        
        String launcher = WareHouse.getUrlPathForClass(JNLP.class);
        append(h(1, "Download JFileRecovery") +
               a(launcher, image("launch.gif", "Launch JFileRecovery", "align='right'")) +
               p("JFileRecovery is a Java application that recovers files from damaged" +
               	 " hard drives, CDs, DVDs and Flash media quickly and efficently." +
                 " JFileRecovery can be launched directly from this web page and will run on Windows," +
                 " Linux, Mac and other operating systems supporting <b>Java 1.5 or higher</b>.") +
                 getGoogleAdsenseBlock("pub-7253309958196609", "3266833229", 468, 60) +
               h(2, "Application Links") +
                 "<!-- <a target='_blank' href='http://www.shareasale.com/r.cfm?b=177957&u=378675&m=22450&urllink=&afftrack='>" +
                 "<img src='http://www.shareasale.com/image/468x60filessafe.png' alt='Keep Your Files Safe.  Backup Online with SafeCopyBackup.com' border='0'></a> -->" +
               ul(new String[] {
                       a("/JFileRecovery.jnlp", "Java Web Start Application") + " (JFileRecovery.jnlp)",
                       a("/JFileRecovery.jar", "Standalone Java Application") + " (JFileRecovery.jar)",
                       a("/JFileRecovery.pad.xml", "Portable Application Description") + " (JFileRecovery.pad.xml)",
               }) +
               h(2, "JFileRecovery deluxe") +
               p("JFileRecovery deluxe has just been released.") +
               p("The deluxe version is based on the same core idea, but is more versatile and fault resilient. " +
                 "It supports recovering multiple files, can intelligently modify block size to maximize the data " +
                 "recovered and can resume recovery after reboot / fatal crash. Highly recommended!") +
               p(a("http://www.jads.co.uk/file-recovery/jfilerecovery-deluxe","Read more about JFileRecovery deluxe")));
        
              
        /*
               table(new String[][] { 
                       { null,             "Free BETA version", "Future version" },
                       { "Transfer mode",  "Single file",  "Multiple files"   },
                       { "Max file size",  "256MB",        "64GB"             },
                       { "Max bad blocks", "4",            "10,000"           },
                       { "Online support", "No",           "Yes"              } },
                       HTMLHelper.TableHeading.TOP_AND_LEFT_HEADING)
        */
        
    }
}

