Пример #1
0
                        <tr>
                            <td colspan="4">There are currently no navigations.</td>
                        </tr>
                    <?php 
}
?>
                </tbody>
            </table>
        <?php 
echo form_close();
?>
    </div>
</div>

<?php 
js_start();
?>
<script type="text/javascript">
    $(document).ready(function() {
        // Sort By
        $('.sortable').click( function() {
            sort = $(this);

            if (sort.hasClass('asc'))
            {
                window.location.href = "<?php 
echo site_url(ADMIN_PATH . '/navigations/index') . '?';
?>
&sort=" + sort.attr('rel') + "&order=desc";
            }
            else
function js_post($url, $data)
{
    js_start();
    js_jquery_ajax($url, 'POST', http_build_query($data), 'document.body', 'function(data){ $("#result").html(data)}');
    js_end();
}