Пример #1
0
function get_email_schedule($match_id)
{
    $match_times = get_match_times($match_id);
    global $days, $periods, $dayNames;
    foreach ($days as $day) {
        foreach ($periods as $period) {
            if ($match_times[$day][$period]) {
                if ($period == 8) {
                    $result .= "{$dayNames[$day]} - After school (3:05-4)\n";
                } else {
                    $result .= "{$dayNames[$day]} - Period {$period}\n";
                }
            }
        }
    }
    return $result;
}
Пример #2
0
        </td>
    </tr>
    <tr>
        <td align=right>Active:</td>
        <td>
            <input name="active" type="checkbox" <?php 
echo $match_info['active'] ? 'checked' : '';
?>
 />
        </td>
    </tr>
    <tr>
        <td align=right>Times:</td>
        <td>
            <?php 
match_times_matrix(get_common_times($tutor_info['id'], $student_info['id']), get_match_times($match_id));
?>
        </td>
    </tr>
    <tr>
        <td align=right>Notes:</td>
        <td>
            <textarea name="notes" rows=5 cols=40><?php 
echo $match_info['notes'];
?>
</textarea>
        </td>
    </tr>
</table>
<input type="submit" value="Submit">
</form>