本文整理汇总了PHP中GFPDFEntryDetail::lead_detail_grid_array方法的典型用法代码示例。如果您正苦于以下问题:PHP GFPDFEntryDetail::lead_detail_grid_array方法的具体用法?PHP GFPDFEntryDetail::lead_detail_grid_array怎么用?PHP GFPDFEntryDetail::lead_detail_grid_array使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GFPDFEntryDetail
的用法示例。
在下文中一共展示了GFPDFEntryDetail::lead_detail_grid_array方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
echo 'N/A';
}
?>
</div>
<div></div>
<hr></hr>
<div></div>
<?php
// loop through all the returned results
$e_id = 0;
foreach ($all_entries as $entry) {
$time_form = RGFormsModel::get_form_meta($the_form);
$time_lead = RGFormsModel::get_lead($entry['id']);
$time_form_data = GFPDFEntryDetail::lead_detail_grid_array($time_form, $time_lead);
$time_lead_id = $_GET['lid'];
$array = $time_form_data['list']['1'];
//list field ID
foreach ($array as $element) {
if ($time_lead_id == $element['project']) {
$task = $element['task'];
if ($task == $_GET['task']) {
$employees[$entry[2]]['name'] = $entry[2];
$employees[$entry[2]]['date'][$element['date']] = $element['hours'];
$employees[$entry[2]]['total_hours'] += $element['hours'];
$e_id++;
}
}
}
}
示例2: foreach
font-family: DejaVuSansCondensed; margin-top: 6pt; margin-bottom: ;
text-align: ; page-break-after:avoid; }
</style>
<title>Gravity Forms PDF Extended</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<?php
foreach ($lead_ids as $lead_id) {
$lead = RGFormsModel::get_lead($lead_id);
do_action("gform_print_entry_header", $form, $lead);
$form_data = GFPDFEntryDetail::lead_detail_grid_array($form, $lead);
/*
* Add &data=1 when viewing the PDF via the admin area to view the $form_data array
*/
PDF_Common::view_data($form_data);
/* get all the form values */
/*$date_created = $form_data['date_created'];
$first_name = $form_data['1.Name']['first'];
$last_name = $form_data['1.Name']['last'];*/
//echo print_r($form_data['field'], true);
$fundName = $form_data['field']['Fund Name'];
$trusteeType = $form_data['field']['Trustee Type'];
$attendedBy = "";
$trusteeTrustees = "";
$trusteesDirectors = "";
示例3: setup_form_data
/**
* Our software takes the $form and $entry details and converts it to the $form_data array
* Set this up so all our functions have access
* @group entry-detail
*/
private function setup_form_data()
{
$form = RGFormsModel::get_form_meta($this->form_id[0]);
$entry = RGFormsModel::get_lead($this->entries[0]);
$this->form_data = GFPDFEntryDetail::lead_detail_grid_array($form, $entry);
}