-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrademan_contact.php
34 lines (24 loc) · 1.06 KB
/
trademan_contact.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/*
This page is for displaying the trademan's contact.
And customer can click the button to comfirm this estimate of bid.
*/
session_start();
include_once "database/autoloader.php";
include_once "database/connection.php";
require_once "header.php";
$trademan_id = $_GET['trademan_id'];
echo '<div class="p-3 mb-2 bg-danger text-white">Please respect people\'s privacy. The usage of this contact only regarding to your post job!</div><br>';
if($trademan_id != 0)
{
echo '<div class="container text-center">';
echo '<h4 class="text-dark">Good luck!</h6>';
$trademan = User::view_trademan_contact($mysqli, $trademan_id);
//a button for confirming with this bid
echo '<a href="confirm.php?trademan_id='.$trademan_id.'"><button class="btn btn-outline-primary">Confirm it!</button></a>';
}else{
echo '<div class="container text-center">';
echo '<h4 class="text-dark">So far no one bid this job yet  ̄へ ̄</h6>';
echo '<h4 class="text-dark"><a href="customer_job_detail.php">Click here</a> to go back~</h6>';
echo '</div>';
}