www/js/prod_inprod.js

changeset 816
d76f623d487c
parent 525
8bbc5730aaa8
child 832
2641860ad61d
equal deleted inserted replaced
815:5714ea86187d 816:d76f623d487c
1 /***************************************************************************** 1 /*****************************************************************************
2 * Copyright (C) 2018-2019 2 * Copyright (C) 2018-2022
3 * 3 *
4 * Michiel Broek <mbroek at mbse dot eu> 4 * Michiel Broek <mbroek at mbse dot eu>
5 * 5 *
6 * This file is part of BMS 6 * This file is part of BMS
7 * 7 *
43 $('#jqxgrid').jqxGrid({ 43 $('#jqxgrid').jqxGrid({
44 width: 1280, 44 width: 1280,
45 height: 630, 45 height: 630,
46 source: dataAdapter, 46 source: dataAdapter,
47 theme: theme, 47 theme: theme,
48 showstatusbar: true,
49 renderstatusbar: function(statusbar) {
50 var container, addButton;
51 container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>');
52 addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' +
53 'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Add</span></div>');
54 container.append(addButton);
55 statusbar.append(container);
56 addButton.jqxButton({ theme: theme, width: 90, height: 20 });
57 // add new recipe.
58 addButton.click(function(event) {
59 window.location.href = 'prod_new.php?return=prod_inprod.php';
60 });
61 },
62 columns: [ 48 columns: [
63 { text: 'Datum', datafield: 'birth', width: 120 }, 49 { text: 'Datum', datafield: 'birth', width: 120 },
64 { text: 'Code', datafield: 'code', width: 120 }, 50 { text: 'Code', datafield: 'code', width: 120 },
65 { text: 'Naam', datafield: 'name' }, 51 { text: 'Naam', datafield: 'name' },
66 { text: 'Fase', datafield: 'stage', width: 200, 52 { text: 'Fase', datafield: 'stage', width: 200,

mercurial