コード例 #1
0
ファイル: DiveSitePOI.php プロジェクト: EScuba/RSD
            Db_Add();
            ListMenu();
            #                 }
            #               else
            #                 {
            #                   $_SESSION['SystemMessage']='Code already on file!! Choose another.';
            #                   AddForm();
            #                 }
            break;
        case 'Cancel Add':
            CurrentNumberRecords();
            GetVariablesFromSession();
            ListMenu();
            break;
        case 'List Records':
            ListRecords();
            break;
        case 'Back':
            header("Location: {$CallingProgram}");
            break;
        default:
            GetVariablesFromSession();
            ListMenu();
            break;
    }
} else {
    InitializeProgram();
    GetCommonVariablesFromSession();
    ListMenu();
}
echo "\n</body>\n</html>";
コード例 #2
0
ファイル: DiveSiteCourses.php プロジェクト: EScuba/RSD
function InitializeVariables()
{
    global $db, $user, $serverhost, $password, $Add, $Edit, $Delete, $Search, $Start, $Expiry;
    global $NumDiveSiteCoursesRecords, $DiveSiteCourse, $DiveSiteId, $DiveSiteCourseEnteredBy, $DiveSiteCourseDateEntered;
    global $DiveSiteCity, $DiveSiteProvince, $DiveSiteCountry, $DiveSiteName, $DiveSiteMajorName;
    global $DiveSiteMinorName, $DiveSiteExactLat, $DiveSiteExactLong, $DiveSiteCourseTitle, $DiveSiteCourseNoteKeywords;
    global $DiveSiteCourseWhyNotes, $DiveSiteCourseURLFileInfo;
    $DiveSiteCourse = 'TBD';
    $DiveSiteId = '';
    $DiveSiteCourseEnteredBy = '';
    $DiveSiteCourseDateEntered = '';
    $DiveSiteCity = '';
    $DiveSiteProvince = '';
    $DiveSiteCountry = '';
    $DiveSiteName = '';
    $DiveSiteMajorName = '';
    $DiveSiteMinorName = '';
    $DiveSiteExactLat = '';
    $DiveSiteExactLong = '';
    $DiveSiteCourseTitle = '';
    $DiveSiteCourseNoteKeywords = '';
    $DiveSiteCourseWhyNotes = '';
    $DiveSiteCourseURLFileInfo = '';
    GetCommonVariablesFromSession();
    return;
}