<?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";
" <?php if ($_SESSION['isplanner'] != 0 || $_SESSION['isowener'] != 0) { ?> class="toggle-guest" <?php } ?> style="cursor: pointer;text-decoration: underline;color: <?php echo $clr; ?> "><?php echo $rallguest['name']; ?> </span> </td> <td><?php echo getrel($rallguest['relation']); ?> </td> <td><?php printf('%02d', $rallguest['table_no']); ?> </td> <td> <?php if ($rallguest['attendance'] == 0) { ?> <img src="images/img 2.png" id="atten-<?php echo $rallguest['id']; ?> " onclick="return getattend(<?php echo $rallguest['id'];
" tp="summary" class="toggle-guest" style="cursor: pointer;text-decoration: underline;color: <?php echo $clr; ?> "><?php echo $rallguest['name']; ?> </span> <!---------guest edit-----------> <div class="editguest" style="width:270px;display: none;left: -90px;"> </div> <!---------guest edit-----------> </td> <td> <?php echo substr(getrel($rallguest['relation']), 0, 10); ?> </td> <td >01</td> <td style="position: relative;"> <span style="cursor: pointer;" class="<?php echo $class; ?> " onclick="$(this).next().toggle();"> <?php echo substr($variable, 0, 1); ?> </span> <div style="width:130px; padding: 4px; border:1px solid #dedede; float: left; top: 40px; background: #fff; left: -70px; height: auto; position: absolute;display: none;font-size: 12px;color: #000;z-index:99;text-transform: capitalize;" class="status_b"> <!--<div class="squarebox <?php