<?$totalPageRecord = count ( $this->hfaRejection );
$thePage = $this->page;
$thePageRecord = $this->pageRecord;
$theTotalRecord = $this->counthfaRejection;
$theTotalPage = ceil ( $theTotalRecord / $thePageRecord );
$indexUrl = "/hfarejection/viewhfarejection";
$isrc = $this->isrc;
$upc = $this->upc;
$vendorId = $this->vendorId;
$vendorName =$this->vendorName;
$subAccountName = $this->subAccountName;
$releaseName = $this->releaseName;
$trackId = $this->trackId;
$trackName = $this->trackName;
$requestFrom = $this->requestFrom;
$requestTo = $this->requestTo;
$orchardEstimateFixForReason = $this->orchardEstimateFixForReason;
$rejectedReason = $this->rejectedReason;
$rejectionReasonArray = $this->rejectedReasonArray;
$queryString = http_build_query ( array ("isrc" => $isrc, "upc" => $upc, "vendorId" => $vendorId,'vendorName'=>$vendorName, 'subAccountName'=>$subAccountName,
								'releaseName'=>$releaseName,'trackId'=>$trackId,'trackName'=>$trackName,'requestFrom'=>$requestFrom,'requestTo'=>$requestTo,
								'orchardEstimateFixForReason'=>$orchardEstimateFixForReason,'rejectedReason'=>$rejectionReasonArray));
?>
<div>
	<div id="items" style="margin-top:-55px">
		<ul id="itemInfo">
			<li><h3><a href="/hfarejection/searchhfarejection">New Search</a></h3></li>
			<li><b>Export to</b> <a href="/hfarejection/downloadhfarejection/?<?echo $queryString?>"><img src="/images/excel.gif" border="0" alt="Excel" align="absmiddle"></a></li>
		</ul>
		
	</div>
	<div class="panelContent fullReport" style="clear:left">
		<table class="data">
			<thead>
				<tr>
					<th align="center"><b>No.</b></th>
					<th align="center"><b>Client Manager</b></th>
					<th align="center"><b>Vendor</b></th>
					<th align="center"><b>UPC</b></th>
					<th align="center"><b>Release Name</b></th>
					<th align="center"><b>ISRC</b></th>
					<th align="center"><b>Track ID</b></th>
					<th align="center"><b>Track Name</b></th>
					<th align="center"><b>CD</b></th>
					<th align="center"><b>Track Number</b></th>
					<th align="center"><b>Track Writers</b></th>
					<th align="center"><b>Track Publishers</b></th>
					<th align="center"><b>Request Created</b></th>
					<th align="center"><b>Response Created</b></th>
					<th align="center"><b>Request Reason 1</b></th>
					<th align="center"><b>Orchard Estimate Fix For Reason 1</b></th>
					<th align="center"><b>Request Reason 2</b></th>
					<th align="center"><b>Orchard Estimate Fix For Reason 2</b></th>
					<th align="center"><b>Request Reason 3</b></th>
					<th align="center"><b>Orchard Estimate Fix For Reason 3</b></th>
				</tr>
			</thead>
			<tbody>
<?php
if(count($this->hfaRejection)>0){
$count = 0;
foreach ( $this->hfaRejection as $eachHfaRejection ) {
	$serialNo = ($this->page - 1) * $this->pageRecord + ($count + 1);
	?>
		<tr>
			<td><?php echo $serialNo;?></td>
			<td><?php echo $eachHfaRejection->clientManager;?></td>
			<td><?php echo $eachHfaRejection->vendorName;?></td>
			<td><?php echo $eachHfaRejection->displayUpc;?></td>
			<td><?php echo $eachHfaRejection->releaseName;?></td>
			<td><?php echo $eachHfaRejection->isrc;?></td>
			<td><?php echo $eachHfaRejection->trackId;?></td>
			<td><?php echo $eachHfaRejection->trackName;?></td>
			<td><?php echo $eachHfaRejection->cd;?></td>			
			<td><?php echo $eachHfaRejection->trackNumber;?></td>
			<td><?php echo $eachHfaRejection->trackWriters;?></td>
			<td><?php echo $eachHfaRejection->trackPublishers;?></td>
			<td><?php echo $eachHfaRejection->requestCreated;?></td>
			<td><?php echo $eachHfaRejection->responseCreated;?></td>
			<td><?php echo $eachHfaRejection->requestReasonOne;?></td>
			<td><?php echo $eachHfaRejection->responseReasonOne;?></td>
			<td><?php echo $eachHfaRejection->requestReasonTwo;?></td>
			<td><?php echo $eachHfaRejection->responseReasonTwo;?></td>
			<td><?php echo $eachHfaRejection->requestReasonThree;?></td>
			<td><?php echo $eachHfaRejection->responseReasonThree;?></td>
		</tr>
<?php
$count ++;
}
}else{?>
	<tr><td colspan="16" align="center">No Data Found.</td></tr>
<?php }
?>
			</tbody>
		</table>
	<input type="hidden" name="page" id="page" value="<?php echo $this->page;?>" /> <input type="hidden" name="pageRecord" id="pageRecord" value="<?php echo $this->pageRecord;?>" />
	</div>
	<div id="loader" style="display: none;" align="center"><img alt="" src="/images/loader.gif"></div>
<?php if(count($this->hfaRejection)>0){?>
	<div id="divPagination">
<?php echo $this->paginationpanel($indexUrl, $thePage, $thePageRecord, $theTotalPage, $queryString, $theTotalRecord);?></div>
<?php }?>
</div>