form.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. require_once('../view/template/header.php');
  3. ?>
  4. <form method="POST" action="index.php?action=<?= $action ?>-pharmacy">
  5. <input type="hidden" id="id" name="id" value="<?= isset($pharmacy->id) ? $pharmacy->id : '' ?>">
  6. <div class="form-group">
  7. <label for="firstName">Наименование</label>
  8. <input type="text" class="form-control" id="pharmacy-name" name="pharmacyName" placeholder="Наименование"
  9. value="<?= isset($pharmacy->name) ? $pharmacy->name : '' ?>">
  10. </div>
  11. <div class="form-group">
  12. <label for="lastName">Город</label>
  13. <input type="text" class="form-control" id="pharmacy-city" name="pharmacyCity" placeholder="Город"
  14. value="<?= isset($pharmacy->city) ? $pharmacy->city : '' ?>">
  15. </div>
  16. <div class="form-group">
  17. <label for="class">Улица</label>
  18. <input type="text" class="form-control" id="pharmacy-street" name="pharmacyStreet" placeholder="Улица"
  19. value="<?= isset($pharmacy->street) ? $pharmacy->street : '' ?>">
  20. </div>
  21. <div class="form-group">
  22. <label for="lastName">Дом</label>
  23. <input type="text" class="form-control" id="pharmacy-house" name="pharmacyHouse" placeholder="Дом"
  24. value="<?= isset($pharmacy->house) ? $pharmacy->house : '' ?>">
  25. </div>
  26. <div class="form-group">
  27. <label for="class">Телефон</label>
  28. <input type="text" class="form-control" id="pharmacy-phone" name="pharmacyPhone" placeholder="Телефон"
  29. value="<?= isset($pharmacy->phone) ? $pharmacy->phone : '' ?>">
  30. </div>
  31. <button type="submit" class="btn btn-default">Отправить</button>
  32. </form>
  33. <?php
  34. require_once('../view/template/footer.php');
  35. ?>