Guest User

Untitled

a guest
Oct 17th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. let colNames = ['ID', 'Image', 'Title', 'Description', 'Status'];
  2. let colModel = [
  3. {name: 'id', index: 'id', width: 30, editable: true, editoptions: {size: "30", maxlength: "50"}},
  4. {
  5. name: 'image',
  6. index: 'image',
  7. align: 'left',
  8. editable: true,
  9. edittype: 'file',
  10. editoptions: {
  11. enctype: "multipart/form-data"
  12. },
  13. width: 210,
  14. align: 'center',
  15. search: false
  16. },
  17. {name: 'image_title', index: 'image_title', width: 150, editable: true, editoptions: {size: "30", maxlength: "50"}},
  18. {name: 'image_description', index: 'image_description', width: 150, editable: true, editoptions: {size: "30", maxlength: "50"}},
  19. {name: 'status', index: 'status', edittype: 'select', formatter: 'select', width: 150, editable: true, editoptions: status_values}
  20. ];
  21.  
  22. $oper = $request->input('oper');
  23. $image = $request->file('image')->getClientOriginalExtension();
  24. $image_title = $request->input('image_title');
  25. $image_description = $request->input('image_description');
  26. $status = $request->input('status');
Add Comment
Please, Sign In to add comment