STB/stb/views/person/comment.php

54 lines
1.9 KiB
PHP
Executable File

<?php
$thisPage="comment";
include __DIR__ . "/../layout/header.php";
include __DIR__ . "/../layout/navigation.php";
include __DIR__ . "./../inc/function_display.inc.php";
include __DIR__ . "/../layout/css/navi.css";?>
<div class="container">
<div class="starter-template">
<h1>Anmerkungen zur Person</h1>
<div class="panel panel-default">
<div class="panel-heading"><?php
$str_label = "Bitte Person wählen: "; //$id = $person->member_id;
select_person($str_label, $person, $persons);
echo "<b>".nl2br(e($person->first_name))." ".nl2br(e($person->last_name))." - ";
echo "geb. am: ".$person->day_of_birth." in ".$person->place_of_birth."</br></b>";?>
</div>
</div>
<ul class="list-group"><?php
foreach($remarks AS $remark): ?>
<li class="list-group-item"><?php
$datum = e($remark->rem_date);
echo date_german($datum).": ";
echo e($remark->rem_remark); ?>
</li>
<?php endforeach; ?>
</ul>
<form method="post" action="remarks?id=<?php echo e($person->member_id);?>">
<?php $heute = date("d.m.y"); ?>
<p><strong></strong>
<input type="hidden" name="member_id_f" id="member_id_f"
value="<?php echo $person->member_id;?>" placeholder="member_id_f" size="10%" readonly/>
<strong>Datum:</strong>
<input type="date" name="rem_date" id="rem_date"
value="<?php echo date('Y-m-d'); ?>" placeholder="day" size="10%"/></p>
<p><strong>Anmerkung: </strong>
<textarea name="content" class="form-control" id="rem_remark" ></textarea></p>
</br>
<input type="submit" value="submit" class="btn btn-primary"
type="submit" name="submit" value="<?php echo "submit"; ?>"/>
</form>
</br></br>
</div>
</div>
<?php
include __DIR__ . "/../layout/footer_einfach.php";
?>