3 <script type="text/javascript" src="/tc/inc/jquery.js"></script>
4 <script type="text/javascript">
6 function updateSelections()
8 //alert($('#companionship :selected').attr('id')+' - '+$('#companionship :selected').val()+' - '+$('#companionship :selected').text());
9 switch ($('#companionship :selected').val()) {
11 $("#district option:selected").removeAttr("selected");
12 $("#assignedHT option:selected").removeAttr("selected");
13 $("#assignedFamilies option:selected").removeAttr("selected");
15 <!-- BEGIN switch_case_list -->
17 <!-- END switch_case_list -->
23 <form action="{submit_action}" method="POST">
24 <table border="0" width="100%" cellspacing="2" cellpadding="2">
26 <td align="center" bgcolor="#c9c9c9"><font face="{font}"><b>{title}</b></font></td>
31 <table border="0" cellspacing="2" cellpadding="2">
33 <th bgcolor="#c9c9c9">Companionship</th>
34 <th bgcolor="#c9c9c9">Unassigned HT</th>
35 <th bgcolor="#c9c9c9">Assigned HT</th>
36 <th bgcolor="#c9c9c9">Unassigned Families</th>
37 <th bgcolor="#c9c9c9">Assigned Families</th>
38 <th bgcolor="#c9c9c9">Actions</th>
44 <select id="companionship" name="companionship" onchange="javascript:updateSelections();">
45 <!-- BEGIN comp_list -->
47 <!-- END comp_list -->
52 <select id="district" name="district">
53 <!-- BEGIN district_list -->
55 <!-- END district_list -->
59 <select id="unassignedHT" name="unassignedHT[]" multiple size="9">
60 <!-- BEGIN unassigned_ht_list -->
62 <!-- END unassigned_ht_list -->
66 <select id="assignedHT" name="assignedHT[]" multiple size="9">
67 <!-- BEGIN assigned_ht_list -->
69 <!-- END assigned_ht_list -->
73 <select id="unassignedFamilies" name="unassignedFamilies[]" multiple size="9">
74 <!-- BEGIN unassigned_family_list -->
76 <!-- END unassigned_family_list -->
80 <select id="assignedFamilies" name="assignedFamiles[]" multiple size="9">
81 <!-- BEGIN assigned_family_list -->
83 <!-- END assigned_family_list -->
90 <font face="{font}"><input style="width: 150px" type="reset" name="clear" value="Clear Selections"></font>
95 <font face="{font}"><input style="width: 150px" type="submit" name="add" value="Add Companionship"></font>
100 <font face="{font}"><input style="width: 150px" type="submit" name="delete" value="Delete Companionship"></font>
105 <font face="{font}"><input style="width: 150px" type="submit" name="update" value="Update Companionship"></font>
110 <font face="{font}"><input style="width: 150px" type="submit" name="reset" value="Reset to MLS"></font>
119 <font face="{font}" color=red><b>{debug_list}</b></font>