<div class="panel admin"> <h1>Адміністративна панель</h1> </div> <div class="block customers"> <?php if ($_POST['edit_customer']) { $values = $_POST; unset($values['edit_customer']); if (!edit_customer($values)) { $error_template = "Помилка збереження: " . mysql_error(); } } ?> <h2>Список замовлень</h2> <div class="table"> <div class="table-header"> </div> <?php $res = get_all_orders(); ?> <?php while ($row = mysql_fetch_array($res, MYSQL_BOTH)) { ?> <div class="description"> <form method="post"> <ul>
$countries = get_countries(); include 'edit_customer_form.php'; } else { if ($action == 'edit_customer_form') { $customerID = $_POST['customerID']; $firstName = $_POST['firstName']; $lastName = $_POST['lastName']; $address = $_POST['address']; $city = $_POST['city']; $state = $_POST['state']; $postalCode = $_POST['postalCode']; $countryCode = $_POST['countryCode']; $phone = $_POST['phone']; $email = $_POST['email']; $password = $_POST['password']; edit_customer('$customerID, $firstName, $lastName, $address, $city $countryCode, $phone, $email, $password'); } } ?>