require "../config/preferences.php"; require_once NSSDROPBOX_LIB_DIR . "Smartyconf.php"; require_once NSSDROPBOX_LIB_DIR . "NSSDropoff.php"; if ($theDropbox = new NSSDropbox($NSSDROPBOX_PREFS)) { // // This page handles the listing of dropoffs made by an // authenticated user. If the user is NOT authenticated, // then an error is presented. // $theDropbox->SetupPage(); if ($theDropbox->authorizedUser()) { // // Returns an array of all NSSDropoff instances belonging to // this user. // $allDropoffs = NSSDropoff::dropoffsFromCurrentUser($theDropbox); // // Start the web page and add some Javascript to automatically // fill-in and submit a pickup form when a dropoff on the page // is clicked. // $iMax = count($allDropoffs); $totalsize = 0; $smarty->assign('countDropoffs', $iMax); if ($allDropoffs && $iMax > 0) { $outputDropoffs = array(); $i = 0; foreach ($allDropoffs as $dropoff) { $outputDropoffs[$i] = array(); $outputDropoffs[$i]['claimID'] = $dropoff->claimID(); $outputDropoffs[$i]['senderName'] = $dropoff->senderName();