<!-- left job order panel -->
<div class="job-left">
  <?php if($customer_jobsRecord['document_image']): // if image exists ?>
  	<?php $docImage = $customer_jobsRecord['document_image'][0] // get it ?>
    <img src="<?php echo $docImage['thumbUrlPath'] ?>" width="<?php echo $docImage['thumbWidth'] ?>" height="<?php echo $docImage['thumbHeight'] ?>" alt="" style="border-style: solid; border-width: 1px; float: left; margin-left: 10px; margin-right: 10px" />
  <?php endif ?>
	<!-- Set up company and user info to pass to form -->
	<?php $changes = '&element_6='; ?>		  
  <?php foreach ($customer_job_editsRecords as $edits): ?>
    <?php if ($edits['new_content']): ?>
    	<?php $changes .= ($edits['field_name'].' - '.$edits['new_content']); ?>
    <?php endif ?>
  <?php endforeach ?>  
  <?php // Prime the parameters to pass to the form in the URL
    $form_id = $customer_jobsRecord['form_id']; 
    $comp = '&element_7='.$companyRecord['company'] ; // element_7
    $user = '&element_2='.$CURRENT_USER['fullname'] ; // element_2
    $email = '&element_3='.$CURRENT_USER['email'] ;   // element_3
    $phone = '&element_4='.$CURRENT_USER['phone'] ;   // element_4
    $job = '&element_11='.$customer_jobsRecord['title'] ;  // element_11		    
    $params = $form_id.$comp.$user.$email.$phone.$job.$changes ;
  ?>
  <ul>
		<?php if($customer_jobsRecord['document']): // if PDF exists ?>
	    <li>
  		  <?php $pdfUpload = $customer_jobsRecord['document'][0] // Get it ?> 
  		  <a href="<?php echo $pdfUpload['urlPath'] ?>" target="_blank" title="View the job document ">
  		  <img height="48" src="images/view-document.png" width="168" /></a>
	  	</li>
		<?php endif ?>      
  	<li>
  	  <!-- Call the form and pass the company info to it -->
  		<a href="/machform/view.php?id=<?php echo $params ?>" onclick="window.open(this.href,  null, 'height=750, width=800, toolbar=0, location=0, status=0, scrollbars=1, resizable=1'); return false;" title="Send an order for this job.">
  		<img height="48" src="images/place-order.png" width="168" /></a>  		  
		</li> 
  </ul>   		  
</div>
<!-- End, left job order panel -->
