本文整理汇总了PHP中ExtraFields::showOutputField方法的典型用法代码示例。如果您正苦于以下问题:PHP ExtraFields::showOutputField方法的具体用法?PHP ExtraFields::showOutputField怎么用?PHP ExtraFields::showOutputField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ExtraFields
的用法示例。
在下文中一共展示了ExtraFields::showOutputField方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
// Accountancy code sell
if (!empty($arrayfields['p.accountancy_code_buy']['checked'])) {
print '<td>' . $objp->accountancy_code_buy . '</td>';
}
// Extra fields
if (is_array($extrafields->attribute_label) && count($extrafields->attribute_label)) {
foreach ($extrafields->attribute_label as $key => $val) {
if (!empty($arrayfields["ef." . $key]['checked'])) {
print '<td';
$align = $extrafields->getAlignFlag($key);
if ($align) {
print ' align="' . $align . '"';
}
print '>';
$tmpkey = 'options_' . $key;
print $extrafields->showOutputField($key, $objp->{$tmpkey}, '', 1);
print '</td>';
}
}
}
// Fields from hook
$parameters = array('arrayfields' => $arrayfields, 'obj' => $obj);
$reshook = $hookmanager->executeHooks('printFieldListValue', $parameters);
// Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;
// Date creation
if (!empty($arrayfields['p.datec']['checked'])) {
print '<td align="center">';
print dol_print_date($objp->date_creation, 'dayhour');
print '</td>';
}
示例2: foreach
}
print '</td>';
}
// Extra fields
if (is_array($extrafields->attribute_label) && count($extrafields->attribute_label))
{
foreach($extrafields->attribute_label as $key => $val)
{
if (! empty($arrayfields["ef.".$key]['checked']))
{
print '<td';
$align=$extrafields->getAlignFlag($key);
if ($align) print ' align="'.$align.'"';
print '>';
$tmpkey='options_'.$key;
print $extrafields->showOutputField($key, $obj->$tmpkey, '', 1);
print '</td>';
}
}
}
// Fields from hook
$parameters=array('arrayfields'=>$arrayfields, 'obj'=>$obj);
$reshook=$hookmanager->executeHooks('printFieldListValue',$parameters); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;
// Date creation
if (! empty($arrayfields['t.datec']['checked']))
{
print '<td align="center">';
print dol_print_date($db->jdate($obj->date_creation), 'dayhour');
print '</td>';
}
示例3: foreach
$langs->load("languages");
$labellang = ($object->default_lang?$langs->trans('Language_'.$object->default_lang):'');
print $labellang;
print '</td></tr>';
}
// Other attributes
$parameters=array('socid'=>$socid, 'colspan' => ' colspan="3"');
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
if (empty($reshook) && ! empty($extrafields->attribute_label))
{
foreach($extrafields->attribute_label as $key=>$label)
{
$value=(isset($_POST["options_".$key])?$_POST["options_".$key]:(isset($object->array_options['options_'.$key])?$object->array_options['options_'.$key]:''));
print '<tr><td>'.$label.'</td><td colspan="3">';
print $extrafields->showOutputField($key,$value);
print "</td></tr>\n";
}
}
// Ban
if (empty($conf->global->SOCIETE_DISABLE_BANKACCOUNT))
{
print '<tr><td>';
print '<table width="100%" class="nobordernopadding"><tr><td>';
print $langs->trans('RIB');
print '<td><td align="right">';
if ($user->rights->societe->creer)
print '<a href="'.DOL_URL_ROOT.'/societe/rib.php?socid='.$object->id.'">'.img_edit().'</a>';
else
print ' ';
示例4: urlencode
$titlealt = 'default';
if (!empty($val['code']) && !in_array($val['code'], array('ST_NO', 'ST_NEVER', 'ST_TODO', 'ST_PEND', 'ST_DONE'))) {
$titlealt = $val['label'];
}
if ($obj->stcomm_id != $val['id']) {
print '<a class="pictosubstatus" href="' . $_SERVER["PHP_SELF"] . '?socid=' . $obj->socid . '&stcomm=' . $val['code'] . '&action=setstcomm' . $param . ($page ? '&page=' . urlencode($page) : '') . '">' . img_action($titlealt, $val['code']) . '</a>';
}
}
print '</td>';
// Extrafields
if (is_array($extrafields->attribute_list) && count($extrafields->attribute_list)) {
foreach ($extrafields->attribute_list as $key => $val) {
if ($val) {
print '<td>';
$paramkey = 'options_' . $key;
print $extrafields->showOutputField($key, $obj->{$paramkey});
print '</td>';
}
}
}
// Hook fields
$parameters = array('obj' => $obj);
$reshook = $hookmanager->executeHooks('printFieldListValue', $parameters);
// Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;
print '<td align="right">';
print $prospectstatic->LibStatut($prospectstatic->status, 5);
print '</td>';
print '<td></td>';
print "</tr>\n";
$i++;