PHP-Code:
<?php
//Informationen suchen und aufbereiten
$objMember = FrontendUser::getInstance();
$mpMemberData = $objMember->getData();
$objDatabase = \Database::getInstance();
$resMemberGroups = $objDatabase->prepare("
SELECT id
FROM tl_member_group
WHERE name = ?
")->execute('.Mehrfachbestellen');
$resFormData = $objDatabase->prepare("
SELECT ff_name,
value
FROM tl_formdata,
tl_formdata_details
WHERE tl_formdata.id = tl_formdata_details.pid
AND fd_member = ?
AND ff_name = ?
AND value = ?
")->execute($mpMemberData[id], 'KW', $GLOBALS[_GET][KW]);
if ( ($this->formId <> 'f3' AND $this->formId <> 'f4') OR
(in_array($resMemberGroups->id, $objMember->groups) OR $resFormData->numRows <= 0)
) :
?>
<div class="<?php echo $this->class; ?> <?php echo $this->tableless ? 'tableless' : 'tableform'; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
<?php endif; ?>
<form<?php if ($this->action): ?> action="<?php echo $this->action; ?>"<?php endif; ?> id="<?php echo $this->formId; ?>" method="<?php echo $this->method; ?>" enctype="<?php echo $this->enctype; ?>"<?php echo $this->attributes; ?><?php echo $this->novalidate; ?>>
<div class="formbody">
<?php if ($this->method != 'get'): ?>
<input type="hidden" name="FORM_SUBMIT" value="<?php echo $this->formSubmit; ?>">
<input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}">
<?php if ($this->maxFileSize): ?>
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $this->maxFileSize; ?>">
<?php endif; ?>
<?php endif; ?>
<?php echo $this->hidden; ?>
<?php if (!$this->tableless): ?>
<table>
<?php echo $this->fields; ?>
</table>
<?php else: ?>
<?php echo $this->fields; ?>
<?php endif; ?>
</div>
</form>
</div>
<?php else: ?>
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
<?php endif; ?>
Sie haben bereits bestellt.
</div>
<?php endif; ?>
<!-- indexer::continue -->
Lesezeichen