3397a3398,3399
> my $season_has_expired = check_if_season_has_expired($season_duration{"Season_ED"});
>
3405c3407,3408
< print "
\n";
---
> print "\n";
> if($season_has_expired == 1){
3406a3410,3412
> print "!!! Warning. Your Season Duration has expired. Any game results entered outside this date range will not appear in the Standings. Also, any calendar events entered outside this date range will not appear in the user's Print Season view !!! |
\n";
> }
> print "
\n";
3475d3480
< print "\n";
3476a3482
> print "\n";
3478c3484
< print " Warning! Teams not assigned to any existing division will not appear in the standings. Please use the edit option to add a team(s) in red to a division
\n";
---
> print " Warning! Teams not assigned to any existing division will not appear in the standings. Please use the edit option to add a team(s) in red to a division |
\n";
3479a3486
> print "\n";
4239c4246
< get_standings2($start_date, $end_date, $league_id, $current_month, $current_year, $coach);
---
> get_standings2($start_date, $end_date, $league_id, $current_month, $current_year, $coach, $season_duration{"Season_SD"}, $season_duration{"Season_ED"} );
4763c4770
< if(($org_id == 465) || ($org_id == 456) || ($org_id == 91) || ($org_id == 53) || ($org_id == 7) || ($org_id == 178) || ($org_id == 212) || ($org_id == 204 ) || ($org_id == 227 ) || ($org_id == 260 ) || ($org_id == 338) || ($org_id == 392)){
---
> if(($org_id == 465) || ($ori_id == 479) || ($ori_id == 456) || ($org_id == 91) || ($org_id == 53) || ($org_id == 7) || ($org_id == 178) || ($org_id == 212) || ($org_id == 204 ) || ($org_id == 227 ) || ($org_id == 260 ) || ($org_id == 338) || ($org_id == 392)){
4955a4963,4966
> my $menu_url_background = "";
> if($site_info{'menu_icon_link'} ne ""){
> $menu_url_background = " url($site_info{'menu_icon_link'}) no-repeat center left";
> }
5094c5105
< background : $site_info{"menu_link_bg_color"} url($site_info{'menu_icon_link'}) no-repeat center left;
---
> background : $site_info{"menu_link_bg_color"} $menu_url_background;
5099c5110
< padding-left : $site_info{"menu_padding"}; # Used to be 10
---
> padding-left : $site_info{"menu_padding"};
5271c5282
< broder-bottom : 0px;
---
> border-bottom : 0px;
5692,5694d5702
< #border : solid;
< #border-width : 1px;
< #border-color : #000000;
6104c6112
< del_event=window.open('$lib/update_score.pl?ID=' + ID + '&org_id=' + orgID + '&year=' + year + '&month=' + month + '&filter=' + filter, 'update_score', 'width=350,height=300,left=' + _x + ',top=' + _y);
---
> del_event=window.open('$lib/update_score.pl?ID=' + ID + '&org_id=' + orgID + '&year=' + year + '&month=' + month + '&filter=' + filter, 'update_score', 'width=350,height=350,left=' + _x + ',top=' + _y);
6450a6459
> my $update_score_href = "Score";
6454,6460c6463
< print " | $month/$day $display_time | Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) | $current_location | \n";
< }else{
< print "
| $month/$day $display_time | Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) | $current_location | \n";
< }
< }elsif($Home_Score < $Away_Score){
< if($coach){
< print "
| $month/$day $display_time | Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) | $current_location | \n";
---
> print "
| $month/$day $display_time | Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) $update_score_href | $current_location | \n";
6462c6465,6471
< print "
| $month/$day $display_time | Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) | $current_location | \n";
---
> print "
| $month/$day $display_time | Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) | $current_location | \n";
> }
> }elsif($Home_Score < $Away_Score){
> if($coach){
> print "
| $month/$day $display_time | Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) $update_score_href | $current_location | \n";
> }else{
> print "
| $month/$day $display_time | Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) | $current_location | \n";
6465,6466c6474,6475
< if($coach){
< print "
| $month/$day $display_time | Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) | $current_location | \n";
---
> if($coach){
> print "
| $month/$day $display_time | Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) $update_score_href | $current_location | \n";
6468c6477
< print "
| $month/$day $display_time | Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) | $current_location | \n";
---
> print "
| $month/$day $display_time | Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) | $current_location | \n";
6475,6477c6484,6486
< if($coach){
< print "
| $month/$day $display_time | Game | $teams{$Away_Team} @ $teams{$Home_Team} | $current_location | \n";
< }else{
---
> if($coach){
> print "
| $month/$day $display_time | Game | $teams{$Away_Team} @ $teams{$Home_Team} $update_score_href | $current_location | \n";
> }else{
6481c6490
< }
---
> }
6487c6496
<
---
> my $update_score_href = "score";
6492c6501
< print "
| $month/$day $display_time | Preseason Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) | $current_location | \n";
---
> print "
| $month/$day $display_time | Preseason Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) $update_score_href | $current_location | \n";
6498c6507
< print "
| $month/$day $display_time | Preseason Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) | $current_location | \n";
---
> print "
| $month/$day $display_time | Preseason Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) $update_score_href | $current_location | \n";
6504c6513
< print "
| $month/$day $display_time | Preseason Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) | $current_location | \n";
---
> print "
| $month/$day $display_time | Preseason Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) $update_score_href | $current_location | \n";
6511c6520
< print "
| $month/$day $display_time | Preseason Game | $teams{$Away_Team} @ $teams{$Home_Team} | $current_location | \n";
---
> print "
| $month/$day $display_time | Preseason Game | $teams{$Away_Team} @ $teams{$Home_Team} $update_score_href | $current_location | \n";
7093a7103
> my $update_score_href = "Score";
7097c7107
< print "
| $display_time | Game | $display_away($Away_Score) @ $display_home($Home_Score) | $current_location | \n";
---
> print "
| $display_time | Game | $display_away($Away_Score) @ $display_home($Home_Score) $update_score_href | $current_location | \n";
7103c7113
< print "
| $display_time | Game | $display_away($Away_Score) @ $display_home($Home_Score) | $current_location | \n";
---
> print "
| $display_time | Game | $display_away($Away_Score) @ $display_home($Home_Score) $update_score_href | $current_location | \n";
7109c7119
< print "
| $display_time | Game | $display_away($Away_Score) @ $display_home($Home_Score) | $current_location | \n";
---
> print "
| $display_time | Game | $display_away($Away_Score) @ $display_home($Home_Score) $update_score_href | $current_location | \n";
7119c7129
< print "
| $display_time | Game | $display_away @ $display_home | $current_location | \n";
---
> print "
| $display_time | Game | $display_away @ $display_home $update_score_href | $current_location | \n";
7129a7140
> my $update_score_href = "Score";
7133c7144
< print "
| $display_time | Preseason Game | $display_away($Away_Score) @ $display_home($Home_Score) | $current_location | \n";
---
> print "
| $display_time | Preseason Game | $display_away($Away_Score) @ $display_home($Home_Score) $update_score_href | $current_location | \n";
7139c7150
< print "
| $display_time | Preseason Game | $display_away($Away_Score) @ $display_home($Home_Score) | $current_location | \n";
---
> print "
| $display_time | Preseason Game | $display_away($Away_Score) @ $display_home($Home_Score) $update_score_href | $current_location | \n";
7145c7156
< print "
| $display_time | Preseason Game | $display_away($Away_Score) @ $display_home($Home_Score) | $current_location | \n";
---
> print "
| $display_time | Preseason Game | $display_away($Away_Score) @ $display_home($Home_Score) $update_score_href | $current_location | \n";
7155c7166
< print "
| $display_time | Preseason Game | $display_away @ $display_home | $current_location | \n";
---
> print "
| $display_time | Preseason Game | $display_away @ $display_home $update_score_href | $current_location | \n";
7466a7478
> my $update_score_href = "Score";
7470c7482
< print "
| $display_time | Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) | $current_location | \n";
---
> print "
| $display_time | Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) $update_score_href | $current_location | \n";
7476c7488
< print "
| $display_time | Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) | $current_location | \n";
---
> print "
| $display_time | Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) $update_score_href | $current_location | \n";
7482c7494
< print "
| $display_time | Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) | $current_location | \n";
---
> print "
| $display_time | Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) $update_score_href | $current_location | \n";
7492c7504
< print "
| $display_time | Game | $teams{$Away_Team} @ $teams{$Home_Team} | $current_location | \n";
---
> print "
| $display_time | Game | $teams{$Away_Team} @ $teams{$Home_Team} $update_score_href | $current_location | \n";
7502a7515
> my $update_score_href = "Score";
7506c7519
< print "
| $display_time | Preseason Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) | $current_location | \n";
---
> print "
| $display_time | Preseason Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) $update_score_href | $current_location | \n";
7512c7525
< print "
| $display_time | Preseason Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) | $current_location | \n";
---
> print "
| $display_time | Preseason Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) $update_score_href | $current_location | \n";
7518c7531
< print "
| $display_time | Preseason Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) | $current_location | \n";
---
> print "
| $display_time | Preseason Game | $teams{$Away_Team}($Away_Score) @ $teams{$Home_Team}($Home_Score) $update_score_href | $current_location | \n";
7528c7541
< print "
| $display_time | Preseason Game | $teams{$Away_Team} @ $teams{$Home_Team} | $current_location | \n";
---
> print "
| $display_time | Preseason Game | $teams{$Away_Team} @ $teams{$Home_Team} $update_score_href | $current_location | \n";
8737a8751,8752
> my $display_start = shift;
> my $display_end = shift;
9038c9053
< print "
| Last Game Updated $last_date |
\n";
---
> print "Last Game Updated $last_date Note, Standings are based on games played between $display_start and $display_end. |
\n";
9118c9133
< print "| Last Game Updated $last_date |
\n";
---
> print "Last Game Updated $last_date Note, Standings are based on games played between $display_start and $display_end. |
\n";
9312c9327
< print "| Last Game Updated $last_date |
\n";
---
> print "Last Game Updated $last_date Note, Standings are based on games played between $display_start and $display_end. |
\n";
9333c9348
< print "| Last Game Updated $last_date |
\n";
---
> print "Last Game Updated $last_date Note, Standings are based on games played between $display_start and $display_end. |
\n";
9495c9510
< #print "
INFO: $info_id - CURRENT: $current_id
\n";
---
> my $menu_name = get_menu_name($info_id);
9543c9558
< #print $query, "
\n";
---
> #print "QUERY: $query
\n";
10906a10922,10939
> sub check_if_season_has_expired{
> my $season_end_date = shift;
> my $currend_date = get_db_date();
> my $sec = 0;
> my $min = 0;
> my $hour = 0;
> my $is_season_expired = 0;
> my ($season_month, $season_day, $season_year) = split(/\//, $season_end_date);
> my ($current_year, $current_month, $current_day) = split(/-/, $current_date);
> my $season_end_in_epoch = timelocal($sec,$min,$hour,$season_day,$season_month-1,$season_year-1900);
> my $current_in_epoch = timelocal($sec,$min,$hour,$current_day,$current_month-1,$current_year-1900);
> if($current_in_epoch > $season_end_in_epoch){
> $is_season_expired = 1;
> }
>
>
> return $is_season_expired;
> }