Speed Networking - meeting matrix
For 15 people

 Seat 1Seat 2Seat 3Seat 4Seat 5Seat 6Seat 7Seat 8Seat 9Seat 10Seat 11Seat 12Seat 13Seat 14Sitting out
Round 1123456789101112131415
Round 2241638510712914111513
Round 3462811031251471591311
Round 4684102121143155137119
Round 5810612414215113311597
Round 6101281461541321119375
Round 7121410158136114927153
Round 8141512131011896745231
Round 9151314111291078563412
Round 10131115914712510381624
Round 11119137155143121102846
Round 12971151331511421241068
Round 13759311113215414612810
Round 14537192114136158141012
Round 15315274961181310151214
Completed123456789101112131415
Look complicated? It isn't! Each person moves one seat to the left each time - read all about how it works on The Horse's Mouth.
Copyright Well House Consultants.
graham@wellho.net, http://www.wellho.net, +44 (0) 1225 708225
Want to see how this page works? Here's the source code:
<html>
<head><title>Seating Matrix Planner for Speed Networking</title></head>
<?php if ($_REQUEST[top] < 1$_REQUEST[top] = 15?>
<body>
<h1>Speed Networking - meeting matrix<br>
For <?= $_REQUEST[top?> people</h1>
<?php

$html 
"<table border=1>";
$html .= "<tr>";
$html .= "<td>&nbsp;</td>";
for (
$k=1$k<=$_REQUEST[top]; $k++) {
    if (
$k == $_REQUEST[top] and $_REQUEST[top]%== 1) {
    
$html .= "<th>Sitting out</th>";
    } else {
    
$kseat = ($_REQUEST[letters]) ? chr($k+64) : $k;
    
$html .= "<th>Seat $kseat</th>";
    }
    }
$html .= "<tr>";
$seats range(0,$_REQUEST[top]);
for (
$round 1$round <= $_REQUEST[top]+1$round++) {
$newseats range(0,$_REQUEST[top]);
$rn "Round $round";
if (
$_REQUEST[top]%== and $round == $_REQUEST[top]) {
    
$rn "Completed"; }
if (
$_REQUEST[top]%== and $round == $_REQUEST[top]+1) {
    
$rn "Completed"; }
$html .= "<tr>";
$html .= "<td>$rn</td>";
for (
$k=1$k<=$_REQUEST[top]; $k++) {
    
$html .= "<td>$seats[$k]</td>";
    }
$html .= "<tr>";
for (
$k=1$k <= $_REQUEST[top]; $k+=2) {
if (
$k == and $_REQUEST[top]%== 0) {
    
$newseats[1] = $seats[1];
    
$newseats[3] = $seats[2];
} elseif (
$k == and $_REQUEST[top]%!= 0) {
    
$newseats[3] = $seats[1];
    
$newseats[1] = $seats[2];
} elseif (
$k $_REQUEST[top]-and $_REQUEST[top]%!= 0) {
    
/* $newseats[$k] = $seats[$k-1]; */
    
$newseats[$k-1] = $seats[$k]; 
} elseif (
$k $_REQUEST[top]-and $_REQUEST[top]%== 0) {
    
$newseats[$k+1] = $seats[$k];
    
$newseats[$k-1] = $seats[$k+1]; 
} else { 
    
$newseats[$k+2] = $seats[$k];
    
$newseats[$k-1] = $seats[$k+1];
 } 
}
$seats $newseats;
if (
$rn == "Completed") break;
}
$html .= "</table>";
print 
$html;
?>
<b>Look complicated? It isn't!</b> Each person moves one seat to the
left each time - read all about how it works on
<a href=http://www.wellho.net/mouth/1157_.html>The Horse's Mouth</a>.
<hr>
Copyright Well House Consultants.<br>
graham@wellho.net, http://www.wellho.net, +44 (0) 1225 708225<hr>
<?php if ($_REQUEST[silent] == 0) { ?>
Want to see how this page works?   Here's the source code:<br>
<table border=1><tr><td>
<?php highlight_file("$_SERVER[DOCUMENT_ROOT]/demo/nbm.html"); ?>
</td></tr></table>
<? ?>
</body>
</html>



Training sample © 2024, WELL HOUSE CONSULTANTS LTD
This is http://www.wellho.net/demo/nbm.html
See source code here • More examples - same topic here
Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
Phone: +44 (0) 1225 708 225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net