<?php if ($book->price !== '0.00') { ?> <p><span class="note">Цена:</span><br> <b><?php echo $book->price; ?> грн.</b></p> <br> <!-- --> <!-- CUSTOMER ORDER --> <!-- --> <form action="" method="post"> <span class="note">Желаете оформить заказ?</span><br> <!-- Adress --> <?php $errorHandler->display('address'); ?> <label for="address">Адрес*</label><br> <input type="text" name="address" class="input" id="adress"><br> <!-- Customer full name --> <?php $errorHandler->display('customer_name'); ?> <label for="customer_name">Ф.И.О.*</label><br> <input type="text" name="customer_name" class="input" id="customer_name"><br> <!-- Number of copies to order --> <?php $errorHandler->display('quantity'); ?> <label for="quantity">Количество экземпляров</label><br> <input type="text" name="quantity" class="input" id="quantity"><br>
Redirect::to('manage.php'); } } else { Redirect::to(); } } ?> <div class="wrapper"> <form action="<?php echo basename(__FILE__) . '?' . 'id=' . $author->id; ?> " method="post" class='book-management'> <!-- Author's name --> <?php $errorHandler->display('name'); ?> <label for="name">Имя автора*</label><br> <input type="text" name="name" class="input" id="name" value="<?php echo $author->name; ?> "><br> <!-- Author's secondary name --> <?php $errorHandler->display('name_secondary'); ?> <label for="name">Дополнительное имя автора*</label><br> <input type="text" name="name_secondary" class="input" id="name_secondary" value="<?php echo $author->name_secondary; ?>
<?php require 'config.class.php'; require 'errorhandler.class.php'; ErrorHandler::test(); /** Trigger Output **/ ErrorHandler::$display = true; ErrorHandler::getErrors('both'); //Config::devDump();
Redirect::to(); } } /*================================== = User input = ==================================*/ ?> <form action="<?php echo basename(__FILE__) . '?' . 'id=' . $book->id; ?> " method="post" enctype="multipart/form-data" class='book-management'> <!-- Author --> <?php $errorHandler->display('author'); ?> <label for="author">Авторы*</label><br> <input type="text" name="author" id="author" class="input" value="<?php echo $book->author; ?> " placeholder='разбиваются запятыми'><br> <!-- Title --> <?php $errorHandler->display('title'); ?> <label for="title">Название*</label><br> <input type="text" name="title" id="title" class="input" value="<?php echo $book->title; ?>