Ejemplo n.º 1
0
<label>Departure date :</label><input type="text" value="<?php 
        echo $departure;
        ?>
" readonly>
<!--<label>Room Type :</label>--><input type="hidden" name="cat" value="<?php 
        //$cat=getRoomType($_POST['room_type']);  echo $cat[0]['category'];
        ?>
" disabled> <?php 
        ?>
<!--<label>Room Description :</label>--><input type="hidden" name="size"  value="<?php 
        //$size=getRoomSize($_POST['description']); echo $size[0]['room_description'];
        ?>
" disabled>

<label>Guest Name :</label><?php 
        $name = getCustName($cust);
        ?>
<input type="text" value="<?php 
        echo $name[0]['cust_name'];
        ?>
" readonly>
<label>Total Amount :</label><input type="number" name="total-amount" required />
<label>Amount paid :</label><input type="number" name="amount" required />

    <?php 
        if (count($stand_single) > 0 || count($stand_double) > 0 || count($stand_triple) > 0) {
            ?>
    <table cellspacing="0">
    <caption>STANDARD ROOMS</caption>
    <tr height="30" style="background:#94b52c;"><td>Room type</td>
    <td colspan="3">Max. Occupancy</td>
Ejemplo n.º 2
0
        echo $val['section_name'];
        ?>
</option><?php 
    }
    ?>
</select>
<label>Client Name:</label><select name="client"><?php 
    $query = "select distinct cust_id from reservation where status='active'";
    $result = getData($query);
    foreach ($result as $val) {
        ?>
<option value="<?php 
        echo $val['cust_id'];
        ?>
"><?php 
        $cust = getCustName($val['cust_id']);
        echo $cust[0]['cust_name'];
        ?>
</option><?php 
    }
    ?>
</select>
<label>Total Amount</label><input type="number" name="total">
<label>Amount Paid</label><input type="number" name="amount">
<label>Payment Status</label><select name="payment-status"><option value"1">Paid</option><option value="2">Unpaid</option></select>
<label>Receipt Number</label><input type="text" name"receipt">
<label>Payment Method</label><div class="payment"><input type="radio" name="method" checked><span>Card</span></div><div class="payment"><input type="radio" name="method"><span>Mpesa</span></div><div class="payment"><input type="radio" name="method"><span>Cash</span></div>
<div class="controls">
<input type="reset" value="Reset" class="form-reset">
<input type="submit" value="Confirm Reservation" class="form-submit" name="add">
</div>
Ejemplo n.º 3
0
    $q = $db->select($sqltext, array($from, $perpage), 'ii');
}
$retrnd = count($q);
$txtPlaceholder = 'First or Surname';
include "/srv/athenace/lib/shared/searchBar.php";
if (!empty($q)) {
    foreach ($q as $r) {
        $fname = $r->fname;
        $sname = $r->sname;
        $tel = $r->tel;
        $mob = $r->mob;
        $email = $r->email;
        $contactsid = $r->contactsid;
        $contactString = '';
        if ($r->custid) {
            $co_name = 'Customer: ' . getCustName($r->custid);
        } elseif ($r->suppid) {
            $co_name = 'Supplier: ' . getSuppName($r->suppid);
        } else {
            $co_name = '';
        }
        // if($fname != '') $contactString .= ' | Name: ' . $fname . ' ' . $sname;
        if ($email != '') {
            $contactString .= ' | <a href="mailto:' . $email . '">' . $email . "</a>";
        }
        if ($tel != '') {
            $contactString .= " | Tel: " . $tel;
        }
        $mob = preg_replace("/\\s/", '', $mob);
        if ($mob != '') {
            $contactString .= " | Mobile: " . $mob;
Ejemplo n.º 4
0
            $bgcolor = "#F0F3F7";
        } else {
            $bgcolor = "#e4e4e4";
        }
        ?>
                                    <tr>
									<td><?php 
        echo date("d M, Y", strtotime($line1['date']));
        ?>
</td>
                                    <td><?php 
        echo $line1['from_time'] . ' - ' . $line1['to_time'];
        ?>
</td>                                    
                                    <td><?php 
        echo getCustName($line1['cust_id']);
        ?>
</td>
                                    <td><?php 
        echo getCustMobile($line1['cust_id']);
        ?>
</td>
                                    
								</tr>
								<?php 
    }
} else {
    ?>
                                        <tr >
                                          <td colspan="5" align="center" class="red"> NO BOOKING IN THE LIST.</td>
                                        </tr>
Ejemplo n.º 5
0
</td>
    <?php 
        for ($de = 1; $de <= 7; $de++) {
            $d = strtotime($year . "W" . $week . $de);
            ?>
	
     <td><?php 
            $from = date('Y-m-d 11:00:00', $d);
            $to = date('Y-m-d 14:00:00', $d);
            $res = checkroom($from, $to, $value['room_no']);
            if (count($res) == 2) {
                $customer = getCustName($res[1]['cust_id']);
                echo $customer[0]['cust_name'];
            } else {
                if (count($res) == 1) {
                    $customer = getCustName($res[0]['cust_id']);
                    echo $customer[0]['cust_name'];
                }
            }
            ?>
 </td>
        <?php 
        }
        ?>
    
	</tr>
<?php 
    }
    ?>
</table>
</div><!--end of main-content-->