by javier | Nov 14, 2020 | Advance Functions, Table Hook Modifications
On the /hooks tablename.php file: function myone_sped_after_update($data, $memberInfo, &$args) { $receipt=array('user@hotmail.com','user2@hotmail.com'); // compose message foreach($data as $field => $value) { $messageData .= "$field: $value n"; } // I...
by javier | Nov 14, 2020 | Advance Functions, Table Hook Modifications
Use this code inside your tablename-tv.js $j(function () { const max = 300; $j("td.tablename-fieldname").each(function () { var obj = $j(this); obj.css({position:"relative"});...
by javier | Nov 14, 2020 | Advance Functions, Table Hook Modifications
In your hooks/<tablename>-dv.js file(replace the <tablename> with your actual tablename) // Set input to reject space. File hooks/tablename-dv.js $j('#<fieldname>').keyup(function () { $j(this).val($j(this).val().replace(/s/g, '')); }); (don’t...
by javier | Nov 14, 2020 | Advance Functions, Table Hook Modifications
In the hooks/tablename-dv.js $j(function(){ $j('#fieldname').change(function(){ $j('#insert').click(); });...
by javier | Nov 13, 2020 | Table Hook Modifications
hooks/footer-extras.php <script> $j(function() { // get id of dropdown ({tablename}_pagesMenu) var id = location.href.match(/.*/(.*)_view.php/)[1] + ‘_pagesMenu’; if(!$j(‘#’ + id).length) return; var page = parseInt($j(‘#’ +...
by javier | Nov 13, 2020 | Advance Functions, Table Hook Modifications
Calculated expiry date field (given production date and validity period) Purpose of this recipe You have a table for handling items that expire (for example, medications, groceries, raw materials that expire, support contracts, … etc). You want to specify the...
Recent Comments