@section('page_title') OSAA Staff @stop @section('header') Mass E-mail Lists @stop @section('jquery_init') $('input[type="checkbox"]').css('vertical-align', 'middle'); $('.button.all').button({ icons : { primary : 'ui-icon-check'}}); $('.button.none').button({ icons : { primary : 'ui-icon-cancel'}}); $('.button.create') .button({ icons : { primary : 'ui-icon-play'}}) .css('font-size', '11pt'); $('.button.create_contacts') .button({ icons : { primary : 'ui-icon-play'}}) .css('font-size', '11pt'); $('table tbody tr:even').css('background-color', '#f2f2f2'); $("#schools tbody tr[is_retired]").css('background-color', '#7d7b7d'); function update_select_info () { var total = {{ count($information['schools']) }}; var selected = $('input[data-school]:checked').size(); var text = "(" + selected + " of " + total + " selected)"; $('#select_info').html(text); } update_select_info(); $('input[data-school]').change(function () { update_select_info(); }); $('.button.all').click(function () { $('input[data-school]').each(function () { if (!$(this).is(':checked')) { $(this).click(); } }); update_select_info(); }); $('.button.none').click(function () { $('input[data-school]').each(function () { if ($(this).is(':checked')) { $(this).click(); } }); update_select_info(); }); $('.button.create').click(function () { $('form.mail_list_creator').submit(); }).hover( function () { $(this).addClass('ui-state-active'); }, function () { $(this).removeClass('ui-state-active'); } ); $('.button.create_contacts') .hover( function () { $(this).addClass('ui-state-active'); }, function () { $(this).removeClass('ui-state-active'); } ) .click(function () { var form = $('form.mail_list_creator'); var input = $('') .attr('type', 'hidden') .attr('name', 'contacts') .attr('value', 'true') .appendTo(form); form.submit(); }); $('.button.classification').click(function () { var classification = $(this).attr('data-classification'); $("input[data-school][data-classification='" + classification + "']").each(function () { if (!$(this).is(':checked')) { $(this).click(); } }); update_select_info(); }); @stop @section('content')
First, select the schools you want to e-mail. Click "Select All" to select all member schools. Click "Select None" to clear all selections and essentially start over. The total number of schools selected is shown below the list of schools.
You can also add to your school selections all schools within one or more classifications by clicking the corresponding buttons.
Next, you need to specify who should be receiving the e-mail for the selected schools. Selecting an administrative role will add all individuals matching that position for each selected school.
You can also select activity specific roles. If you do not specify any activities, then all sport coaches or managers will be collected and added to the list.
If you want to limit the select schools further to only those that offer a specific activity or several activities, you can click the "Filter Activity" button.
This will download a text file with the compiled e-mail list (showing names and skipping duplicates.) Select all (CTRL + A), copy (CTRL + C), then paste (CTRL + V) into the BCC filed in a new e-mail.
This will download a CSV file with the compiled e-mail contacts that you can upload into Outlook.