本文整理汇总了PHP中GFPDFEntryDetail::lead_detail_grid方法的典型用法代码示例。如果您正苦于以下问题:PHP GFPDFEntryDetail::lead_detail_grid方法的具体用法?PHP GFPDFEntryDetail::lead_detail_grid怎么用?PHP GFPDFEntryDetail::lead_detail_grid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GFPDFEntryDetail
的用法示例。
在下文中一共展示了GFPDFEntryDetail::lead_detail_grid方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
"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>
示例2: file_exists
*/
$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>