Hi I am a beginner and I have a little project to organise people in groups on screen:
I have a php code which can list on screen Distribution lists Member lists and Peoples. But I haven't had to much experience with this case. I wonder if someone could give me some hint to be able to build it:
Distribution lists | Member list | People
ADD-> <-ADD
All | Group 3 | [] Contact A
[] Group 1 | Contact 3 | [] Contact B
[] Group 2 | Contact 5 | [] Contact C
[] Group 3 | Group 6 | [] Contact D
[] ... | ... | ...
So when you click on any Distribution list you'll get the Member list and you can add people to it. Ideally would be nice to do without recall the whole page but I don't want to ask too much.
Is there anybody out there to help a bit? Thanks a lot - I know is a complex question but there is always hope.
php code of my:
<?php
// left table
echo "<div id='left'><label>Distribution list</label><table id='tblist'><tr><th> </th><th>Dist list</th></tr>";
$sql=... //done
foreach ($pdo->query($sqla) as $rowa) {
$rowsa=$rowsa.'<tr><td><input type="checkbox" name="" value="" /></td><td>'.$rowa['grname'].'</td></tr>';
echo $rowsa."</table></div>";
// moving buttons
echo "<div id='leftbuttons'><input type='submit' value='Add ->> '><br /></div>";
// mid table
<?php
echo "<div id='mid'><label>Member list</label><table id='tblist'><tr><th> </th><th>Members:</th></tr>";
// left table
$sql=... //done
... // same as above
echo $rowsa."</table></div>";
// moving buttons
echo "<div id='rightbuttons'><input type='submit' value='<<- Add '><br /></div>";
// right table
<?php
echo "<div id='right'><label>People</label><table id='tblist'><tr><th> </th><th>Names</th></tr>";
// left table
$sql=... //done
... // same as above
echo $rowsa."</table></div>";
?>
Hope it is not too messy like this. Thanks again.