<?php echo $this->render_table_name($mode); ?>
<div class="xcrud-top-actions">
    <?php echo $this->render_button('save_new','save','create','btn btn-primary','','create,edit') ?>
	    <?php echo $this->render_button('save_edit','save','edit','btn btn-default','','create,edit') ?>
    <?php echo $this->render_button('save_return','save','list','btn btn-success','','create,edit') ?>
    <?php echo $this->render_button('return','list','','btn btn-warning') ?>
    <form action="https://www.ebusinescloudservers.com/evergreenerp/JCCreateQuote.php" method="get">
  <input type="submit" value="Create Quotation">
</form>
    
    
</div>
<div class="row">
 <div class="col-sm-2">
      <tr>
            <td>
             
             Status: <?php echo $this->fields_output['projectcosting.status']['field']?>
             </td>
      </tr>  
  
  </div>
  
 
  <div class="col-sm-2">
  <tr>
            <td >
                Job No: <?php echo $this->fields_output['projectcosting.projectid']['field']?>
               
               
                
            </td>
        </tr>
  </div>
  <div class="col-sm-3">
      <tr>
            <td>
             
             GL Category: <?php echo $this->fields_output['projectcosting.GL_category']['field']?>
             </td>
      </tr>  
  
  </div>
    <div class="col-sm-2">
  <tr>
            <td>
               Date: <?php echo $this->fields_output['projectcosting.date']['field']?>
               
            </td>
        </tr>
        
  
  
  </div>
  
  <div class="col-sm-2">
  <tr>
            <td>
               Name: <?php echo $this->fields_output['projectcosting.name']['field']?>
               
            </td>
        </tr>
        
  
  
  </div>
  <div class="col-sm-4">
      <p id= 'p'>   </p>
     
  
  </div>
  
</div>
 <div class="row">
 
  <div class="col-sm-3">
      <tr>
            <td id = 'qty'>
             
            Budgeted Material: <?php echo $this->fields_output['projectcosting.budgeted_material']['field']?>
             </td>
      </tr>  
  
  </div>
  
  <div class="col-sm-3">
      <tr>
            <td id = 'up'>
             
        Budgeted Labor: <?php echo $this->fields_output['projectcosting.budgeted_labor']['field']?>
             </td>
      </tr>  
  
  </div>
  <div class="col-sm-3">
      <tr>
            <td>
             
           Budgeted Others: <?php echo $this->fields_output['projectcosting.budgeted_others']['field']?>
             </td>
      </tr>  
  
  </div>
</div>
 <div class ="row">
  
  <div class="col-sm-3">
      <tr>
            <td id = 'tc'>
             
           Budgeted Total Cost: <?php echo $this->fields_output['projectcosting.budgeted_total_cost']['field']?>
             </td>
      </tr>  
  
  </div>
  <div class="col-sm-3">
      <tr>
            <td>
             
            Contract Value(VEP): <?php echo $this->fields_output['projectcosting.contract_value']['field']?>
             </td>
      </tr>  
  
  </div>
  <div class="col-sm-3">
      <tr>
            <td>
             
             Contract Value(VIP): <?php echo $this->fields_output['projectcosting.contract_vip']['field']?>
             </td>
      </tr>  
  
  </div>
 
   <div class="col-sm-3">
      <tr>
            <td>
             
             Quotation Terms: <?php echo $this->fields_output['projectcosting.quote_terms']['field']?>
             </td>
      </tr>  
  
  </div>
</div>
<script type="text/javascript">
    $(document).ready(function(){
        $("button").click(function(){

            $.ajax({
                type: 'POST',
                url: 'JCCreateQuote.php',
                success: function(data) {
                    alert(data);
                    $("p").text(data);

                }
            });
            });
		
	
		
		
});
</script>
