예제 #1
0
    <h1>Body v prostoru</h1>
</header>    
    <div class="row">
    <form class="form col-md-12" method="post" action="index.php">
            <div class="col-xs-8 col-md-6">
                <input type="text" class="form-control" id="A1" name="A1" placeholder="A1" value=<?php 
if (isset($_POST["submit"])) {
    $a->prvni($_POST['A1']);
}
?>
>
            </div>
            <div class="col-xs-8 col-md-6">
                <input type="text" class="form-control" id="A2" name="A2" placeholder="A2" value=<?php 
if (isset($_POST["submit"])) {
    $a->druhy($_POST['A2']);
}
?>
>
            </div>
            <div class="col-xs-8 col-md-6">
                <input type="text" class="form-control" id="B1" name="B1" placeholder="B1" value=<?php 
if (isset($_POST["submit"])) {
    $b->prvni($_POST['B1']);
}
?>
>
            </div>
            <div class="col-xs-8 col-md-6">
                <input type="text" class="form-control" id="B2" name="B2" placeholder="B2" value=<?php 
if (isset($_POST["submit"])) {
예제 #2
0
>
            </div>
            <div class="col-xs-10 col-md-6">
                <input type="number" class="form-control" name="B1" placeholder="B1" value=
                <?php 
if (isset($_POST["submit"])) {
    $b->prvni($_POST['B1']);
}
?>
>
            </div>
            <div class="col-xs-10 col-md-6">
                <input type="number" class="form-control" name="B2" placeholder="B2" value=
                <?php 
if (isset($_POST["submit"])) {
    $b->druhy($_POST['B2']);
}
?>
>
            </div>
            <div class="col-xs-10 col-md-6">
                <input type="number" class="form-control" name="PX" placeholder="Posun na X" value=<?php 
if (isset($_POST["submit"])) {
    $c->zmena_x($_POST['PX'], $a);
    $d->zmena_x($_POST['PX'], $b);
}
?>
                >
            </div>
            <div class="col-xs-10 col-md-6">
                <input type="number" class="form-control" name="PY" placeholder="Posun na Y" value=<?php