[eluser]eokorie[/eluser]
In My View File:
Code:
<?php echo "<link href='/assets/js/jquery/plugins/demo_table.css' type='text/css' rel='stylesheet' media='screen' />"; ?>
<?php echo "<link href='/assets/js/jquery/plugins/TableTools.css' type='text/css' rel='stylesheet' media='screen' />"; ?>
<?php echo "<link href='/assets/js/jquery.ui/css/redmond/jquery-ui-1.8.9.custom.css' type='text/css' rel='stylesheet' media='screen' />"; ?>
<h1>Javascript 1 Example</h1>
<div style="padding-right: 15px; padding-left: 15px;">
<?php
if (count($blog_entries) > 0) :
echo form_open(uri_string());
foreach ($blog_entries as $b) {
$this->table->add_row(array(form_checkbox("toggle[]",$b->id_art,FALSE,"id='edit_box_".$b->id_art."' class='toggle'"),
$b->id_art,
$b->title_art,
date("d-m-Y",strtotime($b->date_art)),
$b->status_art,
anchor(base_url().'admin/enquiries/update/'.$b->id_art,'Update').' | '.anchor(base_url().'admin/enquiries/delete/'.$b->id_art,'Delete')
));
}
echo $this->table->generate();
?>
<div>
<p style="clear: both;"><span><?php echo (isset($page_links) ? $page_links : ''); ?></span></p>
<span class="pagination" id="filter_pagination"></span>
</div>
<?php
echo form_close();
?>
<?php
else:
echo "No articles available";
endif;
?>
</div>
When you view the page in your browser, you should be able to see the libraries shown between the head tag of your html and the script in the controller shown just before the the closing body tag. Hope this helps in some way...