I basically want to click add, and a server action will insert a blank row to mysql (which automatically assigns an ID). I need this to be based on a TID variable which I pass from the url:'server.php?tid=5' in the jqgrid JS. There might be another way to mark such a variable but im still very new to jquery/etc..
I have another script that when a record is inserted based on the TID, it automatically assigns a new VLAN and IP to this particular user (code already works on my old framework, just looking to make a newer better working framework).
I've figured out the select boxes for editing a user and what not, but am unsure of the code used when clicking the add button..
{name:'dataul', index:'dataul', width : 55, editable: true,edittype:”select”,editoptions:{value:” $qr = qquery("select * from datatypes"); while ($q = ffetch($qr)) {echo "$q[id]:$q[name];";}?>“}},{name:'datadl',index:'datadl', width:55, editable: true,edittype:”select”,editoptions:{value:” $qr = qquery("select * from datatypes"); while ($q = ffetch($qr)) {echo "$q[id]:$q[name];";}?>“}},
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top