Code Duplication    Length = 20-20 lines in 2 locations

ro_regonlinehandler.php 2 locations

@@ 728-747 (lines=20) @@
725
                    $retList .= "<td class='$classname'>$romextrainfo5</td>";
726
                }
727
                $retList .= "<td class='$classname'>";
728
                if (($event_uid == $uid && $uid > 0) || //current user is event owner
729
                    ($cal->isadmin == 1) || //current user is admin
730
                    ($cal->ro_superedit == 1)) //current user can edit/delete registrations of other persons
731
                {
732
                    if ($status == 1) {
733
                        $retList .= "<input type='image' src='$roimagestatuspending' name='confirm_member' alt='"._APCAL_RO_STATUS_PENDING."' title='"._APCAL_RO_STATUS_PENDING."'  height='22px' />";
734
                    } else if ($status == 2){
735
                        $retList .= "<input type='image' src='$roimagestatuslist' name='confirm_member' alt='"._APCAL_RO_STATUS_LIST."' title='"._APCAL_RO_STATUS_LIST."'  height='22px' />";
736
                    } else {
737
                        $retList .= "<input type='image' src='$roimagestatusok' name='confirm_member' alt='"._APCAL_RO_STATUS_OK."' title='"._APCAL_RO_STATUS_OK."'  height='22px' />";
738
                    }
739
                } else {
740
                    if ($status == 1) {
741
                        $retList .= "<img type='image' src='$roimagestatuspending' name='confirm_member' alt='"._APCAL_RO_STATUS_PENDING."' title='"._APCAL_RO_STATUS_PENDING."'  height='22px' />";
742
                    } else if ($status == 2){
743
                        $retList .= "<img type='image' src='$roimagestatuslist' name='confirm_member' alt='"._APCAL_RO_STATUS_LIST."' title='"._APCAL_RO_STATUS_LIST."'  height='22px' />";
744
                    } else {
745
                        $retList .= "<img type='image' src='$roimagestatusok' name='confirm_member' alt='"._APCAL_RO_STATUS_OK."' title='"._APCAL_RO_STATUS_OK."'  height='22px' />";
746
                    }
747
                }
748
                $retList .= '</td>';
749
                //check limit date expired
750
                $datenow = strtotime(date('d.m.Y H:i:s'));
@@ 1407-1426 (lines=20) @@
1404
                      <input type='hidden' name='current_uname' value='$current_uname' />              
1405
                      <input type='hidden' name='status' value='$status' />
1406
                      <div style='display:inline;'>";
1407
                        if (($event_uid == $current_uid && $current_uid > 0) || //current user is event owner
1408
                            ($cal->isadmin == 1) || //current user is admin
1409
                            ($cal->ro_superedit == 1)) //current user can edit/delete registrations of other persons
1410
                        {
1411
                            if ($status == 1) {
1412
                                $ret .= "<input type='image' src='$roimagestatuspending' name='confirm_member' alt='"._APCAL_RO_STATUS_PENDING."' title='"._APCAL_RO_STATUS_PENDING."'  height='22px' />";
1413
                            } else if ($status == 2){
1414
                                $ret .= "<input type='image' src='$roimagestatuslist' name='confirm_member' alt='"._APCAL_RO_STATUS_LIST."' title='"._APCAL_RO_STATUS_LIST."'  height='22px' />";
1415
                            } else {
1416
                                $ret .= "<input type='image' src='$roimagestatusok' name='confirm_member' alt='"._APCAL_RO_STATUS_OK."' title='"._APCAL_RO_STATUS_OK."'  height='22px' />";
1417
                            }
1418
                        } else {
1419
                            if ($status == 1) {
1420
                                $ret .= "<img src='$roimagestatuspending' name='confirm_member' alt='"._APCAL_RO_STATUS_PENDING."' title='"._APCAL_RO_STATUS_PENDING."'  height='22px' />";
1421
                            } else if ($status == 2){
1422
                                $ret .= "<img src='$roimagestatuslist' name='confirm_member' alt='"._APCAL_RO_STATUS_LIST."' title='"._APCAL_RO_STATUS_LIST."'  height='22px' />";
1423
                            } else {
1424
                                $ret .= "<img src='$roimagestatusok' name='confirm_member' alt='"._APCAL_RO_STATUS_OK."' title='"._APCAL_RO_STATUS_OK."'  height='22px' />";
1425
                            }
1426
                        }
1427
1428
                        $ret .= "
1429
                      </div>