Example #1
0
						</td>
					</tr>
					<tr>
						<td> 
							<b><?php 
            print _('Year Groups');
            ?>
</b><br/>
							<span style="font-size: 90%"><i><?php 
            print _('Groups not in an active TT this year.');
            ?>
</i></span>
						</td>
						<td class="right">
							<?php 
            $yearGroups = getNonTTYearGroups($connection2, $_GET["gibbonSchoolYearID"], $gibbonTTID);
            if ($yearGroups == "") {
                print "<i>" . _('No year groups available.') . "</i>";
            } else {
                for ($i = 0; $i < count($yearGroups); $i = $i + 2) {
                    $checked = "";
                    if (is_numeric(strpos($row["gibbonYearGroupIDList"], $yearGroups[$i]))) {
                        $checked = "checked ";
                    }
                    print _($yearGroups[$i + 1]) . " <input {$checked} type='checkbox' name='gibbonYearGroupIDCheck" . $i / 2 . "'><br/>";
                    print "<input type='hidden' name='gibbonYearGroupID" . $i / 2 . "' value='" . $yearGroups[$i] . "'>";
                }
            }
            ?>
							<input type="hidden" name="count" value="<?php 
            print count($yearGroups) / 2;
Example #2
0
						</td>
					</tr>
					<tr>
						<td> 
							<b><?php 
            print _('Year Groups');
            ?>
</b><br/>
							<span style="font-size: 90%"><i><?php 
            print _('Groups not in an active TT this year.');
            ?>
</i></span>
						</td>
						<td class="right">
							<?php 
            $yearGroups = getNonTTYearGroups($connection2, $gibbonSchoolYearID);
            if ($yearGroups == "") {
                print "<i>" . _('No year groups available.') . "</i>";
            } else {
                for ($i = 0; $i < count($yearGroups); $i = $i + 2) {
                    print _($yearGroups[$i + 1]) . " <input type='checkbox' name='gibbonYearGroupIDCheck" . $i / 2 . "'><br/>";
                    print "<input type='hidden' name='gibbonYearGroupID" . $i / 2 . "' value='" . $yearGroups[$i] . "'>";
                }
            }
            ?>
							<input type="hidden" name="count" value="<?php 
            print count($yearGroups) / 2;
            ?>
">
						</td>
					</tr>