| Server IP : 104.21.21.239 / Your IP : 216.73.216.101 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/mitzvahm/wwwdevplanner/mod/ |
Upload File : |
<?php include('_mod_security.php'); ?>
<?php
session_start();
//var_dump($_GET);
$current_venue = mysqli_real_escape_string($GLOBALS['con'], trim($_GET['venue']));
$sql = "SELECT *, IF(guest_type = 'P',0,1) AS sort_type, IF(guest_type = 'P',id,primary_guest_id) AS sort_id FROM guests WHERE guest_type <> 'G' AND user_id = ".$_SESSION['user_id']." AND event_id = ".$_SESSION['active_event'].
" AND invite_".$current_venue." = 1 AND rsvp_".$current_venue." = 1 AND (table_".$current_venue." <= 0 OR table_".$current_venue." IS NULL)";
$sql = $sql." ORDER BY sort_id ASC, sort_type ASC, last_name ASC";
$result = mysqli_query($GLOBALS['con'], $sql);
while ($row = mysqli_fetch_object($result)) :
$extra_class = '';
if ($row->guest_type == 'C') :
$extra_class = ' italic ';
endif;
$guest_name = format_guest_name_string($row->salutation, $row->first_name, $row->last_name, $row->suffix);
?>
<div class="draggable_guest <?php echo $extra_class; ?>" title="<?php echo $guest_name; ?>" gid="<?php echo $row->id; ?>" <?php if ($row->guest_type != 'P') : /*echo 'style="margin-left:15px;"';*/ endif; ?> >
<?php echo $guest_name; ?>
</div>
<?php
endwhile;
echo 'Total unseated: '.mysqli_num_rows($result);
?>