Am getting an error when running the code below..non-datatable initialization (div),,..

Am getting an error when running the code below..non-datatable initialization (div),,..

07072261920707226192 Posts: 1Questions: 1Answers: 0
edited February 2017 in Free community support
<div class="panel panel-custom">
    <div class="panel-heading">
        <div class="panel-title">
            <strong><?= lang('assets_categories')?>|Manage assets categories </strong>
            <div class="pull-right hidden-print" style="padding-top: 0px;padding-bottom: 8px">
                <a href="<?= base_url() ?>admin/inventory/new_asset_category" class="btn btn-xs btn-info"
                   data-toggle="modal"
                   data-placement="top" data-target="#myModal_lg">
                    <i class="fa fa-plus "></i> <?= ' ' . lang('new') . ' ' . lang('asset_category') ?></a>
            </div>
        </div>
    </div>
    <!-- Table -->
<div class="panel-body">
        <table class="table table-striped DataTables" id= "DataTables" cellspacing="0" width="100%">
            <thead>
            <tr>
                <th><?= lang('id') ?></th>
                
                <th><?= lang('name') ?></th>
                
            </tr>
            </thead>
            <tbody>
            <?php if (!empty($job_post_info)): foreach ($job_post_info as $v_job_post):
                $design_info = $this->db->where('designations_id', $v_job_post->designations_id)->get('tbl_designations')->row();
                $can_edit = $this->inventory_circular_model->can_action('tbl_jobs_circular', 'edit', array('jobs_circular_id' => $v_job_post->jobs_circular_id));
                $can_delete = $this->inventory_circular_model->can_action('tbl_jobs_circular', 'delete', array('jobs_circular_id' => $v_job_post->jobs_circular_id));
                ?>
                <tr>
                    <td><?php echo $v_job_post->job_title; ?></td>
                    <td><?php echo $design_info->designations; ?></td>
                    <td><?php echo $v_job_post->vacancy_no; ?></td>
                    <td><?= strftime(config_item('date_format'), strtotime($v_job_post->last_date)) ?></td>
                    <td>

                        <?php

                        if ($v_job_post->status == 'unpublished') : ?>
                            <span class="label label-danger"><?= lang('unpublished') ?></span>
                        <?php else : ?>
                            <span class="label label-success"><?= lang('published') ?></span>
                        <?php endif; ?>
                    </td>
                    <td>
                        <?php if (!empty($can_edit)) { ?>
                            <?php
                            if ($v_job_post->status == 'unpublished') {
                                echo btn_publish('admin/inventory_circular/change_status/published/' . $v_job_post->jobs_circular_id);
                            } else {
                                echo btn_unpublish('admin/inventory_circular/change_status/unpublished/' . $v_job_post->jobs_circular_id);
                            }
                            ?>
                            <span data-toggle="tooltip" data-placement="top" title="<?= lang('edit') ?>">
                        <a href="<?= base_url() ?>admin/inventory/asset_categories<?= $v_job_post->jobs_circular_id ?>"
                           class="btn btn-primary btn-xs"
                           data-toggle="modal"
                           data-placement="top" data-target="#myModal_lg">
                            <i class="fa fa-pencil-square-o"></i> </a>
                            </span>
                        <?php }
                        if (!empty($can_delete)) { ?>
                            <?php echo btn_delete('admin/inventory_circular/delete_jobs_posted/' . $v_job_post->jobs_circular_id); ?>
                        <?php } ?>
                        <?= btn_view_modal('admin/inventory_circular/view_circular_details/' . $v_job_post->jobs_circular_id) ?>
                    </td>
                </tr>
                <?php

            endforeach;
                ?>
            <?php endif; ?>
            </tbody> 
        </table>
    </div>
</div>

Answers

This discussion has been closed.