Java HTML htmlContentHeaderGen(String providerNo, String output, String errorMsg)

Here you can find the source of htmlContentHeaderGen(String providerNo, String output, String errorMsg)

Description

html Content Header Gen

License

Open Source License

Declaration

public static String htmlContentHeaderGen(String providerNo, String output, String errorMsg) 

Method Source Code

//package com.java2s;
/**//from  w  w  w  .j a  v a  2s .  c  o m
 * Copyright (c) 2001-2002. Department of Family Medicine, McMaster University. All Rights Reserved.
 * This software is published under the GPL GNU General Public License.
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version. 
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 * This software was written for the
 * Department of Family Medicine
 * McMaster University
 * Hamilton
 * Ontario, Canada
 */

public class Main {
    public static String htmlContentHeaderGen(String providerNo, String output, String errorMsg) {
        StringBuilder htmlContentHeader = new StringBuilder();
        htmlContentHeader.append(
                "<html><body><style type='text/css'><!-- .bodytext{  font-family: Tahoma, Arial, Helvetica, sans-serif;  font-size: 12px; font-style: normal;  line-height: normal;  font-weight: normal;  font-variant: normal;  text-transform: none;  color: #003366;  text-decoration: none; --></style>");
        htmlContentHeader.append("<table width='100%' border='0' cellspacing='0' cellpadding='0'>");
        htmlContentHeader.append("<tr>");
        htmlContentHeader
                .append("<td colspan='4' class='bodytext'>Billing Invoice for Billing No." + providerNo + "</td>");
        htmlContentHeader.append("<td colspan='7' class='bodytext'>Payment date of " + output + "</td>");
        htmlContentHeader.append("</tr>");
        htmlContentHeader.append("<tr>");
        htmlContentHeader.append("<td width='9%' class='bodytext'>INVOICE</td>");
        htmlContentHeader.append("<td width='19%' class='bodytext'>NAME</td>");
        htmlContentHeader.append("<td width='12%' class='bodytext'>HEALTH #</td>");
        htmlContentHeader.append("<td width='10%' class='bodytext'>BILLDATE</td>");
        htmlContentHeader.append("<td width='8%' class='bodytext'>CODE</td>");
        htmlContentHeader.append("<td width='14%' align='right' class='bodytext'>BILLED</td>");
        htmlContentHeader.append("<td width='4%' align='right' class='bodytext'>DX</td>");
        htmlContentHeader.append("<td width='5%' align='right' class='bodytext'>DX2</td>");
        htmlContentHeader.append("<td width='6%' align='right' class='bodytext'>DX3</td>");
        htmlContentHeader.append("<td width='8%' align='right' class='bodytext'>SEQUENCE</td>");
        htmlContentHeader.append("<td width='5%' align='right' class='bodytext'>COMMENT</td>");
        htmlContentHeader.append("</tr>");
        htmlContentHeader.append(errorMsg);
        return htmlContentHeader.toString();
    }
}

Related

  1. htmlButton(String value, String action, int width)
  2. HTMLcheck(String doc)
  3. htmlCode(char tok)
  4. htmlcodeToSpecialchars(String str)
  5. htmlcodeToSpecialchars(String str)
  6. htmlConvert(String htmlStr)
  7. HTMLEnc(String s)
  8. htmlEnclose(String html)
  9. htmlFilenameForClass(Class c)