danielbala Posted February 18, 2012 Share Posted February 18, 2012 Hi Im using datagrid in javascript to display a table in a page. And im using the check box field in the table..when i select the check box the value is posted in the DB table but the current employee name field is not posted to the DB field Assignedto <script type="text/javascript"> var thegrid = new drasticGrid('grid1', {pathimg:"img/", pagelength:10, columns: [ {name: 'JOB_ID',width:40}, {name: 'ASSIGN_DATE',editable:false,width:80}, {name: 'CLIENT_NAME',editable:false,width:140}, {name: 'JOB_NAME',editable:false,width:100}, {name: 'TASKS_INVOLVED',editable:false,width:140}, {name: 'ASSIGNED_TO',editable:true,width:100}, {name: 'REMARKS', editable: true,width:140}, {name: 'EXP_COMPL_DATE',editable:true,width:80}, {name: 'JOB_STATUS',editable:true,width:100}, {name: 'MANAGER_APPR',editable:false,width:80}, {name: 'Apply'} ] }); </script> <form action="" method="post" enctype="multipart/form-data" name="ActivityPhoneCallForm" target="_self"> <br /> <br /> <table border="1"> <tr width="569" colspan="2"> <td> Current User : <input name="CurrentUser" type="text" disabled id="UserId" size="35" maxlength="35" readonly class="disabled" value="<?php if (isset($T_UserName)){echo $T_UserName;} ?>"/> Activity : <input name="LogActivity" type="text" disabled id="ActLog" size="35" Value="List New Jobs" maxlength="35" readonly class="disabled" /> <br /> Current Employee Name : <input name="CurrentEmpName" type="text" disabled id="CurrentEmpId" size="35" maxlength="35" readonly class="disabled" value="<?php if (isset($T_UserFullName)){echo $T_UserFullName;} ?>"/> </td> </tr> </table> <br /> <table width="1150" height = "200" border="1"> <tr> <td> <div id="grid1"></div> <script type="text/javascript" src="js/mootools-1.2-core.js"></script> <script type="text/javascript" src="js/mootools-1.2-more.js"></script> <script type="text/javascript" src="js/drasticGrid.js"></script> <script type="text/javascript"> var thegrid = new drasticGrid('grid1', {pathimg:"img/", pagelength:10, columns: [ {name: 'JOB_ID',width:40}, {name: 'ASSIGN_DATE',editable:false,width:80}, {name: 'CLIENT_NAME',editable:false,width:140}, {name: 'JOB_NAME',editable:false,width:100}, {name: 'TASKS_INVOLVED',editable:false,width:140}, {name: 'ASSIGNED_TO',editable:true,width:100}, {name: 'REMARKS', editable: true,width:140}, {name: 'EXP_COMPL_DATE',editable:true,width:80}, {name: 'JOB_STATUS',editable:true,width:100}, {name: 'MANAGER_APPR',editable:false,width:80}, {name: 'Apply'} ] }); </script> </td> </tr> </table> <br /> <br /> <input type="submit" name="AssignJob" id="AssignJobID" value=" Assign Job " class="EmpFormButton"/> <input type="reset" name="AddJobCancel" id="AddJobCancelID" value=" Cancel " class="EmpFormButton"/> </form> </div> Quote Link to comment https://forums.phpfreaks.com/topic/257256-datagrid-table/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.