<?php

include_once 'function.php';
$id = $_SESSION['userid'];
$qallguest = $db->prepare('select * from `allguest` where `owner`=? group by `name`');
$qallguest->execute(array($id));
$i = 0;
while ($rallguest = $qallguest->fetch()) {
    $i++;
    $relation = htmlspecialchars_decode(getrel($rallguest['relation']));
    $tableno = $rallguest['table_no'];
    if ($rallguest['food_preference'] == 1) {
        $foodpref = '-';
    } else {
        $foodpref = getfood($rallguest['food_preference']);
    }
    if ($rallguest['remark'] != '') {
        $remark = $rallguest['remark'];
    } else {
        $remark = 'No';
    }
    if ($rallguest['attending'] == 'Yes') {
        $variable = "Accept";
    } elseif ($rallguest['attending'] == 'May be') {
        $variable = "Waiting";
    } elseif ($rallguest['attending'] == 'No') {
        $variable = "Not Sent";
    } elseif ($rallguest['attending'] == 'Reject') {
        $variable = "Reject";
    } else {
        $variable = "Archive";
Пример #2
0
							</div>
							<div style="width:50px; height: 290px; float: left;">
								
									<?php 
            }
        }
        ?>
						</div>
					</div>
					
					</td>
                                        <td style="position: relative;"><span style="cursor: pointer;" onclick="$('.foodpref_b').hide(); $(this).next().toggle();"><?php 
        if ($rallguest['food_preference'] == 1) {
            echo '-';
        } else {
            echo getfood($rallguest['food_preference']);
        }
        ?>
						</span>
						
						<div style="width:100px; padding: 4px; border:1px solid #dedede; float: left; top: 40px; background: #fff; left: 50px; height: auto; position: absolute;display: none;font-size: 12px;color: #000;z-index:99;text-transform: capitalize;" class="foodpref_b">
							<?php 
        $qallfood1 = $db->prepare('select * from `food_pref` where `user_id`=?');
        $qallfood1->execute(array($id));
        while ($rallfood1 = $qallfood1->fetch()) {
            ?>
							 <div class="squarebox <?php 
            if ($rallguest['food_preference'] == $rallfood1['id']) {
                echo 'squareactive1';
            }
            ?>