Exemplo n.º 1
0
<?php

libxml_use_internal_errors(true);
$folderitemsarray = getFolderItems($c);
if (isset($results['queryString'])) {
    $queryStringUrl = $results['queryString'];
}
if (!($fieldCode == 'AU' || $fieldCode == 'TI')) {
    $fieldCode = 'keyword';
}
// URL used by facets links
$refineParams = array('refine' => 'y', 'query' => strip_tags(html_entity_decode(urldecode($searchTerm))), 'fieldcode' => $fieldCode);
$refineParams = http_build_query($refineParams);
$refineSearchUrl = "results.php?" . $refineParams;
$encodedSearchTerm = http_build_query(array('query' => urlencode(html_entity_decode(urldecode($searchTerm)))));
$encodedHighLigtTerm = http_build_query(array('highlight' => $searchTerm));
if (!isInstructor()) {
    ?>
<div class="readingListLink" id="currentList">
   <a href="reading_list.php">Back to Reading List</a>
</div>
<?php 
}
?>
<div id="toptabcontent">

    <div class="topSearchBox">

        <form action="results.php">

    <p>
		case '2': 
			// Get the Digit
			if(strlen($_POST['Digits']) != 1){
				header("Location: sent_to_void.php");
				die;
			}
			
			if($_POST['Digits'] < 1 || $_POST['Digits'] > 9){
				header("Location: sent_to_void.php");
				die;
			}
			
			$digit = $_POST['Digits'];
			
			// Get Envelopes Sent
			$allSent = getFolderItems();
			$sent = array();
			$i = 1;
			foreach($allSent->GetFolderItemsResult->FolderItems->FolderItem as $item){
				// Get only the actually Sent ones
				if($item->Status == 'Sent'){
					$item->TimeAgo = timeAgo($item->Sent,1);
					array_push($sent,$item);
					$i++;
				}
			}
			
			// Sort by Sent time
			usort($sent, "compareSentTime");
			
			// Get the right Envelope