|
@@ -188,10 +188,10 @@ function PrintAutoFieldsAdd($fieldset, $loadtype = 'all', $isprint = TRUE) |
|
|
$addonfieldsname = '';
|
|
|
$addonfieldsname = '';
|
|
|
if (is_array($dtp->CTags)) {
|
|
|
if (is_array($dtp->CTags)) {
|
|
|
foreach ($dtp->CTags as $tid => $ctag) {
|
|
|
foreach ($dtp->CTags as $tid => $ctag) {
|
|
|
if ($loadtype != 'autofield' || $ctag->GetAtt('autofield') == 1) {
|
|
|
|
|
|
|
|
|
if (($loadtype != 'autofield' || $ctag->GetAtt('autofield') == 1) && $ctag->GetAtt('notsend') == 0) {
|
|
|
$dede_addonfields .= ($dede_addonfields == "" ? $ctag->GetName().",".$ctag->GetAtt('type') : ";".$ctag->GetName().",".$ctag->GetAtt('type'));
|
|
|
$dede_addonfields .= ($dede_addonfields == "" ? $ctag->GetName().",".$ctag->GetAtt('type') : ";".$ctag->GetName().",".$ctag->GetAtt('type'));
|
|
|
$addonfieldsname .= ",".$ctag->GetName();
|
|
|
$addonfieldsname .= ",".$ctag->GetName();
|
|
|
if ($isprint) echo GetFormItemA($ctag);
|
|
|
|
|
|
|
|
|
if ($isprint) echo GetFormItemA($ctag);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -217,7 +217,7 @@ function PrintAutoFieldsEdit(&$fieldset, &$fieldValues, $loadtype = 'all') |
|
|
if (is_array($dtp->CTags)) {
|
|
|
if (is_array($dtp->CTags)) {
|
|
|
foreach ($dtp->CTags as $tid => $ctag) {
|
|
|
foreach ($dtp->CTags as $tid => $ctag) {
|
|
|
if (
|
|
|
if (
|
|
|
$loadtype != 'autofield' || ($loadtype == 'autofield' && $ctag->GetAtt('autofield') == 1)) {
|
|
|
|
|
|
|
|
|
($loadtype != 'autofield' || ($loadtype == 'autofield' && $ctag->GetAtt('autofield') == 1) && $ctag->GetAtt('notsend') == 0)) {
|
|
|
$dede_addonfields .= ($dede_addonfields == '' ? $ctag->GetName().",".$ctag->GetAtt('type') : ";".$ctag->GetName().",".$ctag->GetAtt('type'));
|
|
|
$dede_addonfields .= ($dede_addonfields == '' ? $ctag->GetName().",".$ctag->GetAtt('type') : ";".$ctag->GetName().",".$ctag->GetAtt('type'));
|
|
|
echo GetFormItemValueA($ctag, $fieldValues[$ctag->GetName()]);
|
|
|
echo GetFormItemValueA($ctag, $fieldValues[$ctag->GetName()]);
|
|
|
}
|
|
|
}
|
|
|