git.schokokeks.org
Repositories
Help
Report an Issue
bibweb.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
0277419
Branches
Tags
master
bibweb.git
obstart.php
Neue API 2023
Bernd Wurst
commited
0277419
at 2023-08-05 10:58:24
obstart.php
Blame
History
Raw
<?php session_start(); // Quitte ist erst ab 10.10. erlaubt if (date('m-d') < '10-10') { $_SESSION['obstart'] = 'Apfel'; header("Location: gebrauchte.php"); die(); } require_once('lib/api.php'); $ret = api_call('GET', 'fruitTypes'); print_r($ret); $headline = 'Obstart'; $content = ''; $content .= ' <form class="form" action="save.php" method="post"> <input type="hidden" name="form" value="obstart"> <p>Um welche Fruchtart handelt es sich bei Ihrem Obst (überwiegend)?</p>'; foreach ($ret as $fruit) { $content .= ' <div class="form-group form-group-lg"> <input type="submit" class="btn btn-block btn-lg btn-primary" id="btn-ja" name="obstart" value="'.$fruit['label'].'"> </div> '; } $content .= ' </form> '; include("template.php");