"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <link rel="stylesheet" href="<?php 
echo GFCommon::get_base_url();
?>
/css/print.css" type="text/css" />
    <link rel='stylesheet' href='<?php 
echo PDF_PLUGIN_URL . 'initialisation/template.css';
?>
' type='text/css' />
    <title>Gravity PDF</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
    <body>
        <div class="no-style">
            <?php 
/*
 * Loop through the entries
 * There is usually only one but you can pass more IDs through the lid URL parameter
 */
foreach ($lead_ids as $lead_id) {
    /* load the lead information */
    $lead = RGFormsModel::get_lead($lead_id);
    /* generate the entry HTML */
    GFPDFEntryDetail::lead_detail_grid($form, $lead, $config_data['empty_field'], $config_data['html_field'], $config_data['page_names']);
}
?>
        </div>
    </body>
</html>
 */
$form = RGFormsModel::get_form_meta($form_id);
$stylesheet_location = file_exists(PDF_TEMPLATE_LOCATION . 'template.css') ? PDF_TEMPLATE_URL_LOCATION . 'template.css' : PDF_PLUGIN_URL . 'styles/template.css';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <link rel='stylesheet' href='<?php 
echo GFCommon::get_base_url();
?>
/css/print.css' type='text/css' />
    <link rel='stylesheet' href='<?php 
echo $stylesheet_location;
?>
' type='text/css' />
    <title>Gravity Forms PDF Extended</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
	<body>
    	<div class="no-style">
			<?php 
foreach ($lead_ids as $lead_id) {
    $lead = RGFormsModel::get_lead($lead_id);
    GFPDFEntryDetail::lead_detail_grid($form, $lead, $show_empty_fields, $show_html_fields, $show_page_names);
}
?>
        </div>
	</body>
</html>