This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$country_array = array( | |
"AF" => "Afghanistan", | |
"AL" => "Albania", | |
"DZ" => "Algeria", | |
"AS" => "American Samoa", | |
"AD" => "Andorra", | |
"AO" => "Angola", | |
"AI" => "Anguilla", | |
"AQ" => "Antarctica", | |
"AG" => "Antigua and Barbuda", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$states = array( | |
'AL'=>'Alabama', | |
'AK'=>'Alaska', | |
'AZ'=>'Arizona', | |
'AR'=>'Arkansas', | |
'CA'=>'California', | |
'CO'=>'Colorado', | |
'CT'=>'Connecticut', | |
'DE'=>'Delaware', | |
'DC'=>'District of Columbia', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$suffixes = array( | |
'II', | |
'III', | |
'IV', | |
'CPA', | |
'DDS', | |
'Esq', | |
'JD', | |
'Jr', | |
'LLD', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$prefixes = array( | |
'First Lieutenant', | |
'Admiral', | |
'Attorney', | |
'Brother', | |
'Captain', | |
'Chief', | |
'Commander', | |
'Colonel', | |
'Dean', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// requires moment.js | |
// for use with the datetime picker here https://eonasdan.github.io/bootstrap-datetimepicker | |
// these functions are meant to calculate the appropriate date for sliding holidays | |
// for example, Thanksgiving which occurs on the fourth Thursday in November. | |
// Not necessarily the same date every year. | |
// left a ton of console.logs so it can be seen in the browser | |
function getLastOccurringDayOfMonth(startDate,dayOfWeek) |