Advertisement
lavinnagi

Untitled

Feb 12th, 2014
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.03 KB | None | 0 0
  1. {% extends "default/base.html" %}
  2. {% block title %} Connections timeline {% endblock %}
  3. {% block content %}
  4. <div style=margin-left:5px><p><strong>Removable Media Connections</strong></p></div>
  5. <div style=float:left;margin-top:5px;margin-left:5px>
  6. <ul>
  7. <li><em>Displaying {{distinct_evidence|safe}} unique evidence item(s)</em></li>
  8. <li><em>{{distinct_instance_id|safe}} instance id items</em></li>
  9. <li> <em>Last install time is {{latest_date_time|safe}}</em></li>
  10. </ul>
  11. </div>
  12.  
  13. <script type="text/javascript" >
  14.  
  15.  
  16.  
  17. $(document).ready(function(){
  18. var data = {{usb_data|safe}};
  19. var data2={{evtx_data|safe}};
  20. var data3= {{evt_data|safe}};
  21.  
  22.  
  23. var source =
  24. {
  25. localdata: data,
  26. datatype: "json",
  27.  
  28.  
  29. datafields:
  30. [ { name: 'evidence', map: 'fields>evidence', type: 'string' },
  31. { name: 'device_name', map: 'fields>device_name', type: 'string' },
  32. { name: 'vid_pid', map: 'fields>vid_pid', type: 'datetime' },
  33. { name: 'install', map: 'fields>install', type: 'timestamp' },
  34. { name: 'volume_device', map: 'fields>volume_device', type: 'timestamp' },
  35. { name: 'disk_device', map: 'fields>disk_device', type: 'timestamp' },
  36. { name: 'usb_type', map: 'fields>usb_type', type: 'string' },
  37. { name: 'vid', map: 'fields>vid', type: 'string' },
  38. { name: 'pid', map: 'fields>pid', type: 'string' },
  39. { name: 'hub', map: 'fields>hub', type: 'number' },
  40. { name: 'port', map: 'fields>port', type: 'number' },
  41. { name: 'vendor', map: 'fields>vendor', type: 'string' },
  42. { name: 'product', map: 'fields>product', type: 'string' },
  43. { name: 'revision', map: 'fields>revision', type: 'string' },
  44. { name: 'volume_guid', map: 'fields>volume_guid', type: 'string' },
  45. { name: 'volume', map: 'fields>volume', type: 'string' },
  46. { name: 'volume_name', map: 'fields>volume_name', type: 'string' },
  47. { name: 'users1', map: 'fields>users1', type: 'string' },
  48. { name: 'users_datetime1', map: 'fields>users_datetime1', type: 'timestamp' },
  49. { name: 'user2', map: 'fields>user', type: 'string' },
  50. { name: 'users_datetime2', map: 'fields>users_datetime2', type: 'timestamp' },
  51. { name: 'users3', map: 'fields>user', type: 'string' },
  52. { name: 'users_datetime3', map: 'fields>users_datetime3', type: 'timestamp' },
  53. { name: 'instance_id', map: 'fields>instance_id', type: 'string' },
  54. { name: 'property_keys', map: 'fields>property_keys', type: 'timestamp' },
  55. { name: 'vol_serial1', map: 'fields>vol_serial1', type: 'string' },
  56. { name: 'vol_name1', map: 'fields>vol_name1', type: 'string' },
  57. { name: 'last_modify_regtimes1', map: 'fields>last_modify_regtimes1', type: 'timestamp' },
  58. { name: 'vol_serial2', map: 'fields>vol_serial2', type: 'string' },
  59. { name: 'vol_name2', map: 'fields>vol_name2', type: 'string' },
  60. { name: 'last_modify_regtimes2', map: 'fields>last_modify_regtimes2', type: 'timestamp' },
  61. { name: 'vol_serial3', map: 'fields>vol_serial3', type: 'string' },
  62. { name: 'vol_name3', map: 'fields>vol_name3', type: 'string' },
  63. { name: 'last_modify_regtime3', map: 'fields>last_modify_regtime3', type: 'timestamp' },
  64. { name: 'vol_serial4', map: 'fields>vol_serial4', type: 'string' },
  65. { name: 'vol_name4', map: 'fields>vol_name4', type: 'string' },
  66. { name: 'last_modify_regtime4', map: 'fields>last_modify_regtime4', type: 'timestamp' },
  67. { name: 'vol_serial5', map: 'fields>vol_serial5', type: 'string' },
  68. { name: 'vol_name5', map: 'fields>vol_name5', type: 'string' },
  69. { name: 'last_modify_regtime5', map: 'fields>last_modify_regtime5', type: 'timestamp' },
  70.  
  71.  
  72. ],
  73. };
  74. var addfilter = function () {
  75. var filtergroup = new $.jqx.filter();
  76.  
  77. var filter_or_operator = 1;
  78. var filtervalue = '';
  79. var filtercondition = 'contains';
  80. var filter1 = filtergroup.createfilter('stringfilter', filtervalue, filtercondition);
  81.  
  82. filtervalue = '';
  83. filtercondition = 'contains';
  84. var filter2 = filtergroup.createfilter('stringfilter', filtervalue, filtercondition);
  85.  
  86. filtergroup.addfilter(filter_or_operator, filter1);
  87. filtergroup.addfilter(filter_or_operator, filter2);
  88. // add the filters.
  89. $("#jqxgrid").jqxGrid('addfilter', 'evidence', filtergroup);
  90. // apply the filters.
  91. $("#jqxgrid").jqxGrid('applyfilters');
  92. }
  93.  
  94. var source2 =
  95. {
  96. localdata: data2,
  97. datatype: "json",
  98. datafields:
  99. [
  100. { name: 'evidence', map: 'fields>evidence', type: 'string' },
  101. { name: 'created_timestamp', map: 'fields>created_timestamp', type: 'timestamp' },
  102. { name: 'timestamp_desc', map: 'fields>timestamp_desc', type: 'string' },
  103. { name: 'filename', map: 'fields>filename', type: 'string' },
  104. { name: 'file_path', map: 'fields>file_path', type: 'string' },
  105. { name: 'record_number', map: 'fields>record_number', type: 'stirng' },
  106. { name: 'orig_filename_lagacy', map: 'fields>orig_filename_lagacy', type: 'string' },
  107. { name: 'computer_name', map: 'fields>drive_letter', type: 'string' },
  108. { name: 'user_sid', map: 'fields>user_sid', type: 'string' },
  109.  
  110. { name: 'event_identifier', map: 'fields>event_identifier', type: 'string' },
  111. { name: 'event_level', map: 'fields>event_level', type: 'string' },
  112. { name: 'event_category', map: 'fields>event_category', type: 'string' },
  113. { name: 'event_name', map: 'fields>event_name', type: 'string' },
  114. { name: 'strings', map: 'fields>strings', type: 'string' },
  115. { name: 'xml_string', map: 'fields>xml_string', type: 'string' },
  116. { name: 'vss', map: 'fields>vss', type: 'string' },
  117.  
  118. ],
  119. };
  120. var addfilter = function () {
  121. var filtergroup = new $.jqx.filter();
  122.  
  123. var filter_or_operator = 1;
  124. var filtervalue = '';
  125. var filtercondition = '';
  126. var filter1 = filtergroup.createfilter('stringfilter', filtervalue, filtercondition);
  127.  
  128. filtervalue = '';
  129. filtercondition = 'contains';
  130. var filter2 = filtergroup.createfilter('stringfilter', filtervalue, filtercondition);
  131.  
  132. filtergroup.addfilter(filter_or_operator, filter1);
  133. filtergroup.addfilter(filter_or_operator, filter2);
  134. // add the filters.
  135. $("#jqxgrid2").jqxGrid('addfilter', 'evidence', filtergroup);
  136. // apply the filters.
  137. $("#jqxgrid2").jqxGrid('applyfilters');
  138. }
  139.  
  140. var source3 =
  141. {
  142. localdata: data3,
  143. datatype: "json",
  144. datafields:
  145. [
  146. { name: 'evidence', map: 'fields>evidence', type: 'string' },
  147. { name: 'created_timestamp', map: 'fields>created_timestamp', type: 'timestamp' },
  148. { name: 'timestamp_desc', map: 'fields>timestamp_desc', type: 'string' },
  149. { name: 'filename', map: 'fields>filename', type: 'string' },
  150. { name: 'file_path', map: 'fields>file_path', type: 'string' },
  151. { name: 'record_number', map: 'fields>record_number', type: 'stirng' },
  152. { name: 'computer_name', map: 'fields>computer_name', type: 'string' },
  153. { name: 'event_identifier', map: 'fields>event_identifier', type: 'string' },
  154. { name: 'source_name', map: 'fields>source_name', type: 'string' },
  155. { name: 'event_category', map: 'fields>event_category', type: 'string' },
  156. { text: 'event_type_string', columntype: 'textbox', datafield: 'event_type_string', width: 70 },
  157. { name: 'event_name', map: 'fields>event_name', type: 'string' },
  158. { name: 'strings', map: 'fields>strings', type: 'string' },
  159. { name: 'vss', map: 'fields>vss', type: 'string' },
  160.  
  161. ],
  162. };
  163. var dataAdapter = new $.jqx.dataAdapter(source);
  164.  
  165.  
  166.  
  167.  
  168. // initialize jqxGrid
  169. $("#jqxgrid").jqxGrid(
  170. {
  171. width: '100%',
  172. height:450,
  173. source: dataAdapter,
  174. altrows: true,
  175. sortable: true,
  176. groupable: true,
  177. columnsresize: true,
  178. filterable: true,
  179. autoshowfiltericon: false,
  180. selectionmode: 'multiplecellsextended',
  181. ready: function () {
  182. addfilter();
  183. var localizationObject = {
  184. filterstringcomparisonoperators: ['contains', 'does not contain'],
  185. // filter numeric comparison operators.
  186. filternumericcomparisonoperators: ['less than', 'greater than'],
  187. // filter date comparison operators.
  188. filterdatecomparisonoperators: ['less than', 'greater than'],
  189. // filter bool comparison operators.
  190. filterbooleancomparisonoperators: ['equal', 'not equal']
  191. }
  192. $("#jqxgrid").jqxGrid('localizestrings', localizationObject);
  193. },
  194. updatefilterconditions: function (type, defaultconditions) {
  195. var stringcomparisonoperators = ['CONTAINS', 'DOES_NOT_CONTAIN'];
  196. var numericcomparisonoperators = ['LESS_THAN', 'GREATER_THAN'];
  197. var datecomparisonoperators = ['LESS_THAN', 'GREATER_THAN'];
  198. var booleancomparisonoperators = ['EQUAL', 'NOT_EQUAL'];
  199. switch (type) {
  200. case 'stringfilter':
  201. return stringcomparisonoperators;
  202. case 'numericfilter':
  203. return numericcomparisonoperators;
  204. case 'datefilter':
  205. return datecomparisonoperators;
  206. case 'booleanfilter':
  207. return booleancomparisonoperators;
  208. }
  209. },
  210. updatefilterpanel: function (filtertypedropdown1, filtertypedropdown2, filteroperatordropdown, filterinputfield1, filterinputfield2, filterbutton, clearbutton,
  211. columnfilter, filtertype, filterconditions) {
  212. var index1 = 0;
  213. var index2 = 0;
  214. if (columnfilter != null) {
  215. var filter1 = columnfilter.getfilterat(0);
  216. var filter2 = columnfilter.getfilterat(1);
  217. if (filter1) {
  218. index1 = filterconditions.indexOf(filter1.comparisonoperator);
  219. var value1 = filter1.filtervalue;
  220. filterinputfield1.val(value1);
  221. }
  222.  
  223. if (filter2) {
  224. index2 = filterconditions.indexOf(filter2.comparisonoperator);
  225. var value2 = filter2.filtervalue;
  226. filterinputfield2.val(value2);
  227. }
  228. }
  229.  
  230. filtertypedropdown1.jqxDropDownList({ autoDropDownHeight: true, selectedIndex: index1 });
  231. filtertypedropdown2.jqxDropDownList({ autoDropDownHeight: true, selectedIndex: index2 });
  232. },
  233.  
  234. columns:
  235. [ { text: 'evidence', columntype: 'textbox', datafield: 'evidence', width: 50 },
  236. { text: 'Device Name', columntype: 'textbox', datafield: 'device_name', width: 130 },
  237. { text: 'VID/PID', columntype: 'datetimeinput',cellsformat: 'T', datafield: 'vid_pid', width: 90 },
  238. { text: 'Install', columntype: 'textbox', datafield: 'install', width: 60 },
  239. { text: 'Disk Device', columntype: 'textbox', datafield: 'disk_device', width: 100 },
  240. { text: 'Volume Device', columntype: 'textbox', datafield: 'volume_device',width: 130},
  241.  
  242. { text: 'Type', columntype: 'textbox', datafield: 'usb_type',width: 60 },
  243. { text: 'VID', columntype: 'textbox', datafield: 'vid', width: 60 },
  244. { text: 'PID', columntype: 'textbox', datafield: 'pid', width: 70 },
  245. { text: 'Vendor', columntype: 'textbox', datafield: 'vendor', width: 90 },
  246. { text: 'Product', columntype: 'textbox', datafield: 'product',width: 60 },
  247. { text: 'Revision', columntype: 'textbox', datafield: 'revision', width: 100 },
  248. { text: 'Volume Guid', columntype: 'textbox', datafield: 'volume_guid', width: 130},
  249.  
  250. { text: 'volume', columntype: 'textbox', datafield: 'volume', width: 60 },
  251. { text: 'Volume Name', columntype: 'textbox', datafield: 'volume_name', width: 60 },
  252. { text: 'Users 1', columntype: 'textbox', datafield: 'users1', width: 50 },
  253. { text: 'user date time', columntype: 'textbox', datafield: 'user_datetime', width: 50 },
  254. { text: 'Users 2', columntype: 'textbox', datafield: 'users2', width: 50 },
  255. { text: 'user date time 2', columntype: 'textbox', datafield: 'users_datetime2', width: 50 },
  256. { text: 'Users 3', columntype: 'textbox', datafield: 'users3', width: 50 },
  257. { text: 'user date time 3', columntype: 'textbox', datafield: 'users_datetime3', width: 50 },
  258. { text: 'Instance Id', columntype: 'textbox', datafield: 'instance_id', width: 150 },
  259. { text: 'Volume Serial 1', columntype: 'textbox', datafield: 'vol_serial1',width: 60 },
  260. { text: 'Volume Name 1', columntype: 'textbox', datafield: 'vol_name1', width: 100 },
  261. { text: 'last Modify regtimes1', columntype: 'textbox', datafield: 'last_modify_regtimes1', width: 130},
  262.  
  263. { text: 'volume serial 2', columntype: 'textbox', datafield: 'vol_serial2', width: 60 },
  264. { text: 'Volume name 2', columntype: 'textbox', datafield: 'vol_name2', width: 60 },
  265. { text: 'Last Modify regtimes2', columntype: 'textbox', datafield: 'last_modify_regtimes2', width: 70 },
  266. { text: 'volume serial 3', columntype: 'textbox', datafield: 'vol_serial3', width: 60 },
  267. { text: 'Volume name 3', columntype: 'textbox', datafield: 'vol_name3', width: 60 },
  268. { text: 'Last Modify regtime3', columntype: 'textbox', datafield: 'last_modify_regtime3',width: 70 },
  269. { text: 'volume serial 4', columntype: 'textbox', datafield: 'vol_serial4', width: 60 },
  270. { text: 'Volume name 4', columntype: 'textbox', datafield: 'vol_name4', width: 60 },
  271. { text: 'Last Modify regtime4', columntype: 'textbox', datafield: 'last_modify_regtime4', width: 70 },
  272. { text: 'volume serial 5', columntype: 'textbox', datafield: 'vol_serial5', width: 60 },
  273. { text: 'Volume name 5', columntype: 'textbox', datafield: 'vol_name5', width: 60 },
  274. { text: 'Last Modify regtime5', columntype: 'textbox', datafield: 'last_modify_regtime5', width: 70 },
  275.  
  276. { text: 'Hub', datafield: 'hub', cellsalign: 'right', cellsformat: 'n2' }
  277. ]
  278. });
  279. var dataAdapter2 = new $.jqx.dataAdapter(source2);
  280. // initialize jqxGrid
  281. $("#jqxgrid2").jqxGrid(
  282. {
  283. width: '100%',
  284. height:450,
  285. source: dataAdapter2,
  286. altrows: true,
  287. sortable: true,
  288. filterable: true,
  289. groupable: true,
  290. columnsresize: true,
  291. selectionmode: 'multiplecellsextended',
  292. ready: function () {
  293. addfilter();
  294. var localizationObject = {
  295. filterstringcomparisonoperators: ['contains', 'does not contain'],
  296. // filter numeric comparison operators.
  297. filternumericcomparisonoperators: ['less than', 'greater than'],
  298. // filter date comparison operators.
  299. filterdatecomparisonoperators: ['less than', 'greater than'],
  300. // filter bool comparison operators.
  301. filterbooleancomparisonoperators: ['equal', 'not equal']
  302. }
  303. $("#jqxgrid2").jqxGrid('localizestrings', localizationObject);
  304. },
  305. updatefilterconditions: function (type, defaultconditions) {
  306. var stringcomparisonoperators = ['CONTAINS', 'DOES_NOT_CONTAIN'];
  307. var numericcomparisonoperators = ['LESS_THAN', 'GREATER_THAN'];
  308. var datecomparisonoperators = ['LESS_THAN', 'GREATER_THAN'];
  309. var booleancomparisonoperators = ['EQUAL', 'NOT_EQUAL'];
  310. switch (type) {
  311. case 'stringfilter':
  312. return stringcomparisonoperators;
  313. case 'numericfilter':
  314. return numericcomparisonoperators;
  315. case 'datefilter':
  316. return datecomparisonoperators;
  317. case 'booleanfilter':
  318. return booleancomparisonoperators;
  319. }
  320. },
  321. updatefilterpanel: function (filtertypedropdown1, filtertypedropdown2, filteroperatordropdown, filterinputfield1, filterinputfield2, filterbutton, clearbutton,
  322. columnfilter, filtertype, filterconditions) {
  323. var index1 = 0;
  324. var index2 = 0;
  325. if (columnfilter != null) {
  326. var filter1 = columnfilter.getfilterat(0);
  327. var filter2 = columnfilter.getfilterat(1);
  328. if (filter1) {
  329. index1 = filterconditions.indexOf(filter1.comparisonoperator);
  330. var value1 = filter1.filtervalue;
  331. filterinputfield1.val(value1);
  332. }
  333.  
  334. if (filter2) {
  335. index2 = filterconditions.indexOf(filter2.comparisonoperator);
  336. var value2 = filter2.filtervalue;
  337. filterinputfield2.val(value2);
  338. }
  339. }
  340.  
  341. filtertypedropdown1.jqxDropDownList({ autoDropDownHeight: true, selectedIndex: index1 });
  342. filtertypedropdown2.jqxDropDownList({ autoDropDownHeight: true, selectedIndex: index2 });
  343. },
  344. columns:
  345. [
  346. { text: 'Evidence', columntype: 'textbox', datafield: 'evidence', width: 130 },
  347. { text: 'Timestamp', columntype: 'textbox', datafield: 'created_timestamp', width: 90 },
  348. { text: 'Timestamp Description', columntype: 'textbox', datafield: 'timestamp_desc', width: 60 },
  349. { text: 'File Name', columntype: 'textbox', datafield: 'filename', width: 130},
  350.  
  351. { text: 'File Path ', columntype: 'textbox', datafield: 'file_path', width: 100 },
  352.  
  353. { text: 'Record Number', columntype: 'textbox', datafield: 'record_number', width: 60 },
  354. { text: 'computer Name', columntype: 'textbox', datafield: 'computer_name', width: 60 },
  355. { text: 'User Sid ', columntype: 'textbox', datafield: 'user_sid', width: 70 },
  356.  
  357. { text: 'Event Identifier', columntype: 'textbox', datafield: 'event_identifier', width: 70 },
  358. { text: 'Event Level', columntype: 'textbox', datafield: 'event_level', width: 70 },
  359. { text: 'Event Category', columntype: 'textbox', datafield: 'event_category', width: 70 },
  360. { text: 'Event Name', columntype: 'textbox', datafield: 'event_name', width: 70 },
  361. { text: 'Strings', columntype: 'textbox', datafield: 'strings', width: 70 },
  362. { text: 'Xml String', datafield: 'xml_string', cellsalign: 'right', cellsformat: 'n2' }
  363. ]
  364. });
  365. var addfilter = function () {
  366. var filtergroup = new $.jqx.filter();
  367.  
  368. var filter_or_operator = 1;
  369. var filtervalue = '';
  370. var filtercondition = '';
  371. var filter1 = filtergroup.createfilter('stringfilter', filtervalue, filtercondition);
  372.  
  373. filtervalue = '';
  374. filtercondition = 'contains';
  375. var filter2 = filtergroup.createfilter('stringfilter', filtervalue, filtercondition);
  376.  
  377. filtergroup.addfilter(filter_or_operator, filter1);
  378. filtergroup.addfilter(filter_or_operator, filter2);
  379. // add the filters.
  380. $("#jqxgrid3").jqxGrid('addfilter', 'evidence', filtergroup);
  381. // apply the filters.
  382. $("#jqxgrid3").jqxGrid('applyfilters');
  383. }
  384. var dataAdapter3 = new $.jqx.dataAdapter(source3);
  385. // initialize jqxGrid
  386. $("#jqxgrid3").jqxGrid(
  387. {
  388. width: '100%',
  389. height:450,
  390. source: dataAdapter3,
  391. altrows: true,
  392. filterable: true,
  393. sortable: true,
  394. groupable: true,
  395. columnsresize: true,
  396. selectionmode: 'multiplecellsextended',
  397. ready: function () {
  398. addfilter();
  399. var localizationObject = {
  400. filterstringcomparisonoperators: ['contains', 'does not contain'],
  401. // filter numeric comparison operators.
  402. filternumericcomparisonoperators: ['less than', 'greater than'],
  403. // filter date comparison operators.
  404. filterdatecomparisonoperators: ['less than', 'greater than'],
  405. // filter bool comparison operators.
  406. filterbooleancomparisonoperators: ['equal', 'not equal']
  407. }
  408. $("#jqxgrid3").jqxGrid('localizestrings', localizationObject);
  409. },
  410. updatefilterconditions: function (type, defaultconditions) {
  411. var stringcomparisonoperators = ['CONTAINS', 'DOES_NOT_CONTAIN'];
  412. var numericcomparisonoperators = ['LESS_THAN', 'GREATER_THAN'];
  413. var datecomparisonoperators = ['LESS_THAN', 'GREATER_THAN'];
  414. var booleancomparisonoperators = ['EQUAL', 'NOT_EQUAL'];
  415. switch (type) {
  416. case 'stringfilter':
  417. return stringcomparisonoperators;
  418. case 'numericfilter':
  419. return numericcomparisonoperators;
  420. case 'datefilter':
  421. return datecomparisonoperators;
  422. case 'booleanfilter':
  423. return booleancomparisonoperators;
  424. }
  425. },
  426. updatefilterpanel: function (filtertypedropdown1, filtertypedropdown2, filteroperatordropdown, filterinputfield1, filterinputfield2, filterbutton, clearbutton,
  427. columnfilter, filtertype, filterconditions) {
  428. var index1 = 0;
  429. var index2 = 0;
  430. if (columnfilter != null) {
  431. var filter1 = columnfilter.getfilterat(0);
  432. var filter2 = columnfilter.getfilterat(1);
  433. if (filter1) {
  434. index1 = filterconditions.indexOf(filter1.comparisonoperator);
  435. var value1 = filter1.filtervalue;
  436. filterinputfield1.val(value1);
  437. }
  438.  
  439. if (filter2) {
  440. index2 = filterconditions.indexOf(filter2.comparisonoperator);
  441. var value2 = filter2.filtervalue;
  442. filterinputfield2.val(value2);
  443. }
  444. }
  445.  
  446. filtertypedropdown1.jqxDropDownList({ autoDropDownHeight: true, selectedIndex: index1 });
  447. filtertypedropdown2.jqxDropDownList({ autoDropDownHeight: true, selectedIndex: index2 });
  448. },
  449. columns:
  450. [
  451. { text: 'Evidence', columntype: 'textbox', datafield: 'evidence', width: 130 },
  452. { text: 'Timestamp', columntype: 'textbox', datafield: 'created_timestamp', width: 90 },
  453. { text: 'Timestamp Description', columntype: 'textbox', datafield: 'timestamp_desc', width: 60 },
  454. { text: 'File Name', columntype: 'textbox', datafield: 'filename', width: 130},
  455.  
  456. { text: 'File Path ', columntype: 'textbox', datafield: 'file_path', width: 100 },
  457.  
  458. { text: 'Record Number', columntype: 'textbox', datafield: 'record_number', width: 60 },
  459. { text: 'computer Name', columntype: 'textbox', datafield: 'computer_name', width: 60 },
  460. { text: 'source name ', columntype: 'textbox', datafield: 'source_name', width: 70 },
  461.  
  462. { text: 'Event Identifier', columntype: 'textbox', datafield: 'event_identifier', width: 70 },
  463.  
  464. { text: 'Event Category', columntype: 'textbox', datafield: 'event_category', width: 70 },
  465. { text: 'Event type string', columntype: 'textbox', datafield: 'event_type_string', width: 70 },
  466.  
  467. { text: 'Strings', datafield: 'strings', cellsalign: 'right', cellsformat: 'n2' }
  468. ]
  469. });
  470.  
  471. $("#excelExport").jqxButton({ theme: theme });
  472. $("#xmlExport").jqxButton({ theme: theme });
  473. $("#csvExport").jqxButton({ theme: theme });
  474. $("#tsvExport").jqxButton({ theme: theme });
  475. $("#htmlExport").jqxButton({ theme: theme });
  476. $("#jsonExport").jqxButton({ theme: theme });
  477. $("#excelExport").click(function () {
  478. $("#jqxgrid").jqxGrid('exportdata', 'xls', 'jqxGrid');
  479. });
  480. $("#xmlExport").click(function () {
  481. $("#jqxgrid").jqxGrid('exportdata', 'xml', 'jqxGrid');
  482. });
  483. $("#csvExport").click(function () {
  484. $("#jqxgrid").jqxGrid('exportdata', 'csv', 'jqxGrid');
  485. });
  486. $("#tsvExport").click(function () {
  487. $("#jqxgrid").jqxGrid('exportdata', 'tsv', 'jqxGrid');
  488. });
  489. $("#htmlExport").click(function () {
  490. $("#jqxgrid").jqxGrid('exportdata', 'html', 'jqxGrid');
  491. });
  492. $("#jsonExport").click(function () {
  493. $("#jqxgrid").jqxGrid('exportdata', 'json', 'jqxGrid');
  494. });
  495. $("#excelExport2").click(function () {
  496. $("#jqxgrid2").jqxGrid('exportdata', 'xls', 'jqxGrid');
  497. });
  498. $("#xmlExport2").click(function () {
  499. $("#jqxgrid2").jqxGrid('exportdata', 'xml', 'jqxGrid');
  500. });
  501. $("#csvExport2").click(function () {
  502. $("#jqxgrid2").jqxGrid('exportdata', 'csv', 'jqxGrid');
  503. });
  504. $("#tsvExport2").click(function () {
  505. $("#jqxgrid2").jqxGrid('exportdata', 'tsv', 'jqxGrid');
  506. });
  507. $("#htmlExport2").click(function () {
  508. $("#jqxgrid2").jqxGrid('exportdata', 'html', 'jqxGrid');
  509. });
  510. $("#jsonExport2").click(function () {
  511. $("#jqxgrid2").jqxGrid('exportdata', 'json', 'jqxGrid');
  512. });
  513. $("#excelExport3").click(function () {
  514. $("#jqxgrid3").jqxGrid('exportdata', 'xls', 'jqxGrid');
  515. });
  516. $("#xmlExport3").click(function () {
  517. $("#jqxgrid3").jqxGrid('exportdata', 'xml', 'jqxGrid');
  518. });
  519. $("#csvExport3").click(function () {
  520. $("#jqxgrid3").jqxGrid('exportdata', 'csv', 'jqxGrid');
  521. });
  522. $("#tsvExport3").click(function () {
  523. $("#jqxgrid3").jqxGrid('exportdata', 'tsv', 'jqxGrid');
  524. });
  525. $("#htmlExport3").click(function () {
  526. $("#jqxgrid3").jqxGrid('exportdata', 'html', 'jqxGrid');
  527. });
  528. $("#jsonExport3").click(function () {
  529. $("#jqxgrid3").jqxGrid('exportdata', 'json', 'jqxGrid');
  530. });
  531. });
  532.  
  533. </script>
  534.  
  535. </head>
  536.  
  537. <div id='jqxWidget' style="font-size: 13px; font-family: Verdana; float:left;margin-left: 5px;width: 100%">
  538. <div id="jqxgrid" style=margin-bottom:30px></div>
  539.  
  540. <div style='margin-top: 20px;margin-bottom:20px'>
  541. <div style='float: left;'>
  542. <input type="button" value="Export to Excel" id='excelExport' />
  543.  
  544. <input type="button" value="Export to XML" id='xmlExport' />
  545. </div>
  546. <div style='margin-left: 10px; float: left;margin-bottom:30px'>
  547. <input type="button" value="Export to CSV" id='csvExport' />
  548.  
  549. <input type="button" value="Export to TSV" id='tsvExport' />
  550. </div>
  551. <div style='margin-left: 10px; float: left;margin-bottom:30px'>
  552. <input type="button" value="Export to HTML" id='htmlExport' />
  553.  
  554. <input type="button" value="Export to JSON" id='jsonExport' />
  555. </div>
  556. </div>
  557. </div>
  558. <div style=margin-left:5px;float:left;position;absolute>
  559.  
  560. <p><strong>Windows 7/8 Event Logs</strong></p>
  561. <ul>
  562. <li><em>Number of events listed &nbsp;{{evtx_events_count}}</em></li>
  563.  
  564. </ul>
  565.  
  566. </div>
  567. <div id='jqxWidget' style="font-size: 13px; font-family: Verdana; float:left;margin-left: 5px;width: 100%">
  568. <div id='jqxgrid2' style=width:100%;margin-bottom:30px></div>
  569. <div style='float: left;'>
  570. <input type="button" value="Export to Excel" id='excelExport2' />
  571.  
  572. <input type="button" value="Export to XML" id='xmlExport2' />
  573. </div>
  574. <div style='margin-left: 10px; float: left;margin-bottom:30px'>
  575. <input type="button" value="Export to CSV" id='csvExport2' />
  576.  
  577. <input type="button" value="Export to TSV" id='tsvExport2' />
  578. </div>
  579. <div style='margin-left: 10px; float: left;margin-bottom:30px'>
  580. <input type="button" value="Export to HTML" id='htmlExport2' />
  581.  
  582. <input type="button" value="Export to JSON" id='jsonExport2' />
  583. </div>
  584.  
  585. </div>
  586. <div style=margin-left:5px;float:left;position;absolute>
  587.  
  588. <p><strong>Windows XP Event Logs</strong></p>
  589. <ul>
  590. <li><em>Number of events listed {{evt_events_count}}</em> </li>
  591.  
  592. </ul>
  593.  
  594. </div>
  595. <div id='jqxWidget' style="font-size: 13px; font-family: Verdana; float:left;margin-left: 5px;width: 100%">
  596. <div id='jqxgrid3' style=width:100%;margin-bottom:30px></div>
  597. <div style='float: left;'>
  598. <input type="button" value="Export to Excel" id='excelExport3' />
  599.  
  600. <input type="button" value="Export to XML" id='xmlExport3' />
  601. </div>
  602. <div style='margin-left: 10px; float: left;'>
  603. <input type="button" value="Export to CSV" id='csvExport3' />
  604.  
  605. <input type="button" value="Export to TSV" id='tsvExport3' />
  606. </div>
  607. <div style='margin-left: 10px; float: left;'>
  608. <input type="button" value="Export to HTML" id='htmlExport3' />
  609.  
  610. <input type="button" value="Export to JSON" id='jsonExport3' />
  611. </div>
  612. </div>
  613. {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement