"; if ($def == 0) $result .= ""; $sql = "SELECT * FROM get_shops;"; $query = mysqli_query($con, $sql); while ($r = mysqli_fetch_assoc($query)) { $id = $r['id']; $name = $r['name']; $selected = $def == $id ? 'selected' : ''; $result .= ""; } $result .= ''; return $result; } function selectStatus($con, $sel, $def) { $result = ''; $result .= "'; return $result; } function showOrders($con) { if (isset($_REQUEST['orders_show'])) { global $data; $ord_id = $data[0]; $ord_user = $data[1]; $ord_shop = $data[2]; $ord_status = $data[3]; $sql = "CALL selectOrds('$ord_id', '$ord_user', $ord_shop, $ord_status);"; $query = mysqli_query($con, $sql); echo '
' . '' . '' . '' . '' . '' . ''; $host = $_SERVER['HTTP_HOST']; $link = "http://$host/admin/order_info.php?ord_id="; while ($r = mysqli_fetch_assoc($query)) { $id = $r['id']; $login = $r['login']; $shop = $r['shop']; $date = $r['date']; $status = $r['status']; $final_link = $link . $id; echo "" . "" . "" . "" . "" . ""; } echo '
НомерПользовательМагазинДатаСтатусПодробности
$id$login$shop$date$status


'; } }