';
		
		if ($rinfo ['Rtype'] == 1) { // 借款费用
			$html .= '
					| 借款费用 | 
|---|
';
			
			foreach ( $rinfo ['loanItem'] ['借款费用'] as $value ) {
				$html .= '| ' . $value ['name'] . ' | ¥' . $value ['price'] . ' | 
|---|
';
			}
			$html .= '| 产生费用所在办事处 | 
|---|
						| ' . $rinfo ['category'] . ' | 
|---|
						| 费用说明 | 
|---|
| ' . $rinfo ['explanation'] . ' | 
						| (' . $rinfo ['receiptOrder'] . ')本次费用合计 | ¥' . $rinfo ['loanSum'] . ' ' . $rinfo ['loanSumCN'] . '
 | 
						
';
			if ($rinfo ['loanRid'] != 0 && ! empty ( $rinfo ['accountItem'] )) {
				
				$html .= '
';
				
				$html .= '| 日常相关费用 | 
|---|
';
				foreach ( $rinfo ['accountItem'] ['日常相关费用'] as $value ) {
					$html .= '| ' . $value ['name'] . ' | ¥' . $value ['price'] . ' | 
|---|
';
				}
				$html .= '| 合计 | ¥' . $rinfo ['accountItem'] ['cSum'] ['agencySum'] . ' | 
|---|
';
				
				$html .= '| 差旅相关费用 | 
|---|
';
				foreach ( $rinfo ['accountItem'] ['差旅相关费用'] as $value ) {
					$html .= '| ' . $value ['name'] . ' | ¥' . $value ['price'] . ' | 
|---|
';
				}
				$html .= '| 合计 | ¥' . $rinfo ['accountItem'] ['cSum'] ['travelSum'] . ' | 
|---|
';
				
				$html .= '| 培训班费用 | 
|---|
';
				foreach ( $rinfo ['accountItem'] ['培训班费用'] as $value ) {
					$html .= '| ' . $value ['name'] . ' | ¥' . $value ['price'] . ' | 
|---|
';
				}
				$html .= '| 合计 | ¥' . $rinfo ['accountItem'] ['cSum'] ['trainSum'] . ' | 
|---|
';
				
				$html .= '| 其他 | 
|---|
';
				foreach ( $rinfo ['accountItem'] ['其他'] as $value ) {
					$html .= '| ' . $value ['name'] . ' | ¥' . $value ['price'] . ' | 
|---|
';
				}
				$html .= '| 合计 | ¥' . $rinfo ['accountItem'] ['cSum'] ['otherSum'] . ' | 
|---|
';
				
				$html .= '| 报销金额调整 | 
|---|
';
				foreach ( $rinfo ['reviseDetail'] as $value ) {
					$html .= '| |' . $value ['name'] . ':' . $value ['description'] . ' | ¥' . $value ['price'] . ' | 
|---|
';
				}
				$html .= '| 合计 | ¥' . $rinfo ['revisePrice'] . ' | 
|---|
';
				
				$html .= '| 产生费用所在办事处 | 
|---|
						| ' . $rinfo ['category'] . ' | 
|---|
						| 报销说明 | 
|---|
		
						| ' . $rinfo ['explanation'] . ' | 
		
						| (' . $rinfo ['receiptOrder'] . ')本次报销费用合计 | ¥' . $rinfo ['sum'] . ' ' . $rinfo ['sumCN'] . '
 | 
		
						= 0) {
					$html .= 'class="success"';
				} else {
					$html .= 'class="error"';
				}
				$html .= '>| 借款结余 | ¥' . $rinfo ['relust'] . ' ' . $rinfo ['relustCN'] . '
 | 
	  					
						';
			}
		} elseif ($rinfo ['Rtype'] == 2) { // 对公汇款
			
			$html .= '
					| 办事处相关费用 | 
|---|
';
			
			foreach ( $rinfo ['accountItem'] ['日常相关费用'] as $value ) {
				$html .= '| ' . $value ['name'] . ' | ¥' . $value ['price'] . ' | 
|---|
';
			}
			$html .= '| 合计 | ¥' . $rinfo ['accountItem'] ['cSum'] ['agencySum'] . ' | 
|---|
';
			
			$html .= '| 产生费用所在办事处 | 
|---|
						| ' . $rinfo ['category'] . ' | 
|---|
						| 费用说明 | 
|---|
| ' . $rinfo ['explanation'] . ' | 
						| (' . $rinfo ['receiptOrder'] . ')本次费用合计 | ¥' . $rinfo ['sum'] . ' ' . $rinfo ['sumCN'] . '
 | 
						
';
		} else {
			
			$html .= '
';
			
			$html .= '| 日常相关费用 | 
|---|
';
			foreach ( $rinfo ['accountItem'] ['日常相关费用'] as $value ) {
				$html .= '| ' . $value ['name'] . ' | ¥' . $value ['price'] . ' | 
|---|
';
			}
			$html .= '| 合计 | ¥' . $rinfo ['accountItem'] ['cSum'] ['agencySum'] . ' | 
|---|
';
			
			$html .= '| 差旅相关费用 | 
|---|
';
			foreach ( $rinfo ['accountItem'] ['差旅相关费用'] as $value ) {
				$html .= '| ' . $value ['name'] . ' | ¥' . $value ['price'] . ' | 
|---|
';
			}
			$html .= '| 合计 | ¥' . $rinfo ['accountItem'] ['cSum'] ['travelSum'] . ' | 
|---|
';
			
			$html .= '| 培训班费用 | 
|---|
';
			foreach ( $rinfo ['accountItem'] ['培训班费用'] as $value ) {
				$html .= '| ' . $value ['name'] . ' | ¥' . $value ['price'] . ' | 
|---|
';
			}
			$html .= '| 合计 | ¥' . $rinfo ['accountItem'] ['cSum'] ['trainSum'] . ' | 
|---|
';
			
			$html .= '| 其他 | 
|---|
';
			foreach ( $rinfo ['accountItem'] ['其他'] as $value ) {
				$html .= '| ' . $value ['name'] . ' | ¥' . $value ['price'] . ' | 
|---|
';
			}
			$html .= '| 合计 | ¥' . $rinfo ['accountItem'] ['cSum'] ['otherSum'] . ' | 
|---|
';
			
			$html .= '| 报销金额调整 | 
|---|
';
			foreach ( $rinfo ['reviseDetail'] as $value ) {
				$html .= '| |' . $value ['name'] . ':' . $value ['description'] . ' | ¥' . $value ['price'] . ' | 
|---|
';
			}
			$html .= '| 合计 | ¥' . $rinfo ['revisePrice'] . ' | 
|---|
';
			
			$html .= '| 产生费用所在办事处 | 
|---|
						| ' . $rinfo ['category'] . ' | 
|---|
						| 报销说明 | 
|---|
						| ' . $rinfo ['explanation'] . ' | 
						| (' . $rinfo ['receiptOrder'] . ')本次报销费用合计 | ¥' . $rinfo ['sum'] . ' ' . $rinfo ['sumCN'] . '
 | 
';
			
			$html .= '
';
			
			/*
			 * 
  | 日常相关费用 | 
|---|
  | {{receiptList' value' value.name}} | ¥{{receiptList' value' value.price}} | 
|---|
  | 合计 | ¥{{receiptList' value.accountItem.cSum.agencySum}} | 
|---|
 | 差旅相关费用 | 
|---|
  | {{receiptDetail' value' value.name}} | ¥{{receiptDetail' value' value.price}} | 
|---|
  | 合计 | ¥{{receiptDetail' value.accountItem.cSum.travelSum}} | 
|---|
 | 培训班费用 | 
|---|
  | {{receiptDetail' value' value.name}} | ¥{{receiptDetail' value' value.price}} | 
|---|
  | 合计 | ¥{{receiptDetail' value.accountItem.cSum.trainSum}} | 
|---|
 | 其他 | 
|---|
  | {{receiptDetail' value' value.name}} | ¥{{receiptDetail' value' value.price}} | 
|---|
  | 合计 | ¥{{receiptDetail' value.accountItem.cSum.otherSum}} | 
|---|
 | 报销金额调整 | 
|---|
  | |{{receiptList' value' value.name}}:{{receiptList' value' value.description}} | ¥{{receiptList' value' value.price}} | 
|---|
  | 合计 | ¥{{receiptList' value.revisePrice}} | 
|---|
 | 产生费用所在办事处 | 
|---|
 | {{receiptDetail' value.category}} | 
|---|
 | 报销说明 | 
|---|
 | {{receiptDetail' value.explanation}} | 
 | ({{receiptDetail' value.receiptOrder}})本次报销费用合计 | ¥{{receiptDetail' value.sum}} {{receiptDetail' value.sumCN}}
 | 
  
			 */
		}
		// print_r($verifyStaff);die;
		$html .= '
| 审批人 | 审批意见 | 
|---|
';
		foreach ( $verifyStaff as $key => $value ) {
			$key = trim ( strtr ( $key, '_R', '  ' ) );
			$sinfo = $staff->getOne ( array (
					'select' => 'username',
					'where' => ' sid=' . $key,
					'asArray' => true 
			) );
			$html .= '| ' . $sinfo ['username'] . ' | ' . $value ['opinion'] . ' | 
';
		}
		$html .= '
';
		
		$html .= '
| 执行人 | 执行意见 | 
|---|
';
		foreach ( $rinfo ['executeCopy'] as $value ) {
			$html .= '| ' . $value [1] . ' | ' . $value ['opinion'] . ' | 
';
		}
		$html .= '
';
		
		$html .= '
| 汇款金额 | ¥' . $rinfo ['amount'] . ' ' . $rinfo ['amountCN'] . '
 | 
';
		
		$html .= '
' . $value ['1'] . '' . $value ['date'] . ''; if (isset ( $value ['rolename'] )) $htmlLoan .= $value ['rolename']; $htmlLoan .= '
' . $value ['opinion'] . '