public function delete($id)
 {
     $article = Prod_Cat::find_by_id($id);
     if ($article->delete()) {
         return true;
     }
 }
Exemple #2
0
<?php

$cat = Prod_Cat::find_by_id($this->product->prod_cat_id);
$prod_name = $cat->prod_cat_name;
$client = Client::find_by_id($this->product->client_id);
$client_name = $client->name;
$employee = Employee::find_by_staff_id($this->product->incare_employee_id);
$emp = $employee->emp_id . " " . $employee->emp_fname . " " . $employee->emp_lname;
?>
<div id='transalert'></div>
 <div class="large-9 columns centre" role="content">
<!-- Table goes in the document BODY -->
<div class="panel callout">
	<h4 style="display:inline"><?php 
echo $prod_name . " " . $this->product->model;
?>
</h4>
    <span class="button secondary right" style="display:inline"><a href="<?php 
echo $uri->link("products/index");
?>
">Go Back</a></span>
</div>

<div class="row">
<div class="large-3 columns">
	<a href="<?php 
echo $uri->link("products/signoff");
?>
"><div class="panel"><img src="public/icons/clock.png" />View Sign-Off Form</div></a>
</div>