Advertisement
Guest User

verbling2

a guest
Aug 3rd, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.98 KB | None | 0 0
  1. import React from 'react'
  2. import FixedDataTable from 'fixed-data-table'
  3. import TeachersTable from './Teacherstable'
  4.  
  5. var data = [
  6. {
  7. "_id": "55be9f654fc6e869d1279dbe",
  8. "index": 0,
  9. "guid": "2cde01f2-277f-4730-8c99-4b07c0b729ff",
  10. "isActive": false,
  11. "balance": "$215.21",
  12. "picture": "http://lorempixel.com/64/64/people/0/",
  13. "age": 20,
  14. "name": {
  15. "first": "York",
  16. "last": "Gibson"
  17. },
  18. "company": "BARKARAMA",
  19. "email": "york.gibson@barkarama.org",
  20. "phone": "+1 (852) 428-3413",
  21. "address": "511 Butler Street, Kersey, Mississippi, 1986",
  22. "registered": "Friday, October 3, 2014 8:04 PM"
  23. },
  24. {
  25. "_id": "55be9f65d8fe86664a5e015e",
  26. "index": 1,
  27. "guid": "914c2951-7df2-4cfe-be6d-c4a3421e8b1f",
  28. "isActive": false,
  29. "balance": "$212.05",
  30. "picture": "http://lorempixel.com/64/64/people/1/",
  31. "age": 37,
  32. "name": {
  33. "first": "Helena",
  34. "last": "Robertson"
  35. },
  36. "company": "ZYTREK",
  37. "email": "helena.robertson@zytrek.us",
  38. "phone": "+1 (812) 508-3800",
  39. "address": "786 Seba Avenue, Fivepointville, Arkansas, 6488",
  40. "registered": "Sunday, September 7, 2014 11:02 AM"
  41. },
  42. {
  43. "_id": "55be9f65665e9dcde1eceecc",
  44. "index": 2,
  45. "guid": "620083fd-da65-4309-8666-92a8ec96a9f7",
  46. "isActive": false,
  47. "balance": "$689.41",
  48. "picture": "http://lorempixel.com/64/64/people/2/",
  49. "age": 33,
  50. "name": {
  51. "first": "Roth",
  52. "last": "Levine"
  53. },
  54. "company": "JUMPSTACK",
  55. "email": "roth.levine@jumpstack.ca",
  56. "phone": "+1 (945) 574-3812",
  57. "address": "716 Danforth Street, Garfield, Wyoming, 3868",
  58. "registered": "Wednesday, September 10, 2014 1:39 AM"
  59. },
  60. {
  61. "_id": "55be9f65e269c46ab1940733",
  62. "index": 3,
  63. "guid": "f230aebf-5ab0-4136-83fc-c4ec520374ac",
  64. "isActive": false,
  65. "balance": "$640.70",
  66. "picture": "http://lorempixel.com/64/64/people/3/",
  67. "age": 28,
  68. "name": {
  69. "first": "Edwards",
  70. "last": "Mccullough"
  71. },
  72. "company": "REALYSIS",
  73. "email": "edwards.mccullough@realysis.biz",
  74. "phone": "+1 (831) 519-2595",
  75. "address": "856 Middleton Street, Williamson, Massachusetts, 463",
  76. "registered": "Tuesday, March 17, 2015 3:57 AM"
  77. },
  78. {
  79. "_id": "55be9f6510d70b848d01f776",
  80. "index": 4,
  81. "guid": "643fdf5f-e101-43a3-b40e-d25a4aabb71e",
  82. "isActive": true,
  83. "balance": "$282.25",
  84. "picture": "http://lorempixel.com/64/64/people/4/",
  85. "age": 31,
  86. "name": {
  87. "first": "Erickson",
  88. "last": "Riggs"
  89. },
  90. "company": "EXTRO",
  91. "email": "erickson.riggs@extro.name",
  92. "phone": "+1 (921) 462-3783",
  93. "address": "284 Stuyvesant Avenue, Jugtown, Puerto Rico, 4455",
  94. "registered": "Tuesday, May 13, 2014 2:29 PM"
  95. },
  96. {
  97. "_id": "55be9f65a8096f7e13bc369c",
  98. "index": 5,
  99. "guid": "977ed1ec-88b1-45e4-96cb-6b740c823cc1",
  100. "isActive": true,
  101. "balance": "$434.79",
  102. "picture": "http://lorempixel.com/64/64/people/5/",
  103. "age": 21,
  104. "name": {
  105. "first": "Patty",
  106. "last": "Rivers"
  107. },
  108. "company": "BOLAX",
  109. "email": "patty.rivers@bolax.io",
  110. "phone": "+1 (810) 482-3302",
  111. "address": "692 Sackett Street, Calpine, Vermont, 634",
  112. "registered": "Friday, April 11, 2014 10:04 PM"
  113. },
  114. {
  115. "_id": "55be9f6531b0ab1d66a5b1b1",
  116. "index": 6,
  117. "guid": "f1fb8d0a-3470-48ec-a58a-bf468825ea82",
  118. "isActive": false,
  119. "balance": "$275.39",
  120. "picture": "http://lorempixel.com/64/64/people/6/",
  121. "age": 22,
  122. "name": {
  123. "first": "Ines",
  124. "last": "Mendoza"
  125. },
  126. "company": "BIFLEX",
  127. "email": "ines.mendoza@biflex.biz",
  128. "phone": "+1 (941) 461-3076",
  129. "address": "194 Williams Court, Garberville, North Carolina, 7582",
  130. "registered": "Wednesday, April 9, 2014 11:07 AM"
  131. },
  132. {
  133. "_id": "55be9f6599aa361dc4dc0869",
  134. "index": 7,
  135. "guid": "d6d3ce39-2dba-4ed5-8306-c549001bf1b6",
  136. "isActive": true,
  137. "balance": "$549.77",
  138. "picture": "http://lorempixel.com/64/64/people/7/",
  139. "age": 34,
  140. "name": {
  141. "first": "Rosie",
  142. "last": "Vang"
  143. },
  144. "company": "FUELWORKS",
  145. "email": "rosie.vang@fuelworks.me",
  146. "phone": "+1 (899) 576-3457",
  147. "address": "230 Adams Street, Loomis, Texas, 2782",
  148. "registered": "Saturday, December 20, 2014 2:27 PM"
  149. },
  150. {
  151. "_id": "55be9f6513cd875ae0fc7459",
  152. "index": 8,
  153. "guid": "80043e1b-6d13-4875-bb50-9dcb7e58ecd5",
  154. "isActive": false,
  155. "balance": "$745.37",
  156. "picture": "http://lorempixel.com/64/64/people/8/",
  157. "age": 39,
  158. "name": {
  159. "first": "Parker",
  160. "last": "Mckenzie"
  161. },
  162. "company": "RETROTEX",
  163. "email": "parker.mckenzie@retrotex.co.uk",
  164. "phone": "+1 (990) 464-3159",
  165. "address": "764 Coles Street, Sehili, Idaho, 2608",
  166. "registered": "Friday, April 11, 2014 11:53 PM"
  167. },
  168. {
  169. "_id": "55be9f653d4e3726137b686e",
  170. "index": 9,
  171. "guid": "4e6d7591-dd85-4352-b65e-af9f823bbf2b",
  172. "isActive": false,
  173. "balance": "$656.66",
  174. "picture": "http://lorempixel.com/64/64/people/9/",
  175. "age": 35,
  176. "name": {
  177. "first": "Adela",
  178. "last": "Mclaughlin"
  179. },
  180. "company": "SILODYNE",
  181. "email": "adela.mclaughlin@silodyne.info",
  182. "phone": "+1 (983) 593-3713",
  183. "address": "932 Dahl Court, Bethany, Pennsylvania, 1665",
  184. "registered": "Thursday, May 21, 2015 12:04 PM"
  185. },
  186. {
  187. "_id": "55be9f658c71fe66e4c2bf5f",
  188. "index": 10,
  189. "guid": "0ca7a1b5-ada1-441f-bd7c-f6de2a3ca77e",
  190. "isActive": false,
  191. "balance": "$994.66",
  192. "picture": "http://lorempixel.com/64/64/people/0/",
  193. "age": 20,
  194. "name": {
  195. "first": "Hudson",
  196. "last": "Bonner"
  197. },
  198. "company": "DEVILTOE",
  199. "email": "hudson.bonner@deviltoe.com",
  200. "phone": "+1 (970) 515-2982",
  201. "address": "768 Dekoven Court, Belmont, Alaska, 8958",
  202. "registered": "Monday, September 22, 2014 6:13 PM"
  203. },
  204. {
  205. "_id": "55be9f65e13e87aebbd96704",
  206. "index": 11,
  207. "guid": "8271f962-0558-45ab-ab43-ac6fa5379002",
  208. "isActive": true,
  209. "balance": "$903.49",
  210. "picture": "http://lorempixel.com/64/64/people/1/",
  211. "age": 22,
  212. "name": {
  213. "first": "Shannon",
  214. "last": "Patel"
  215. },
  216. "company": "LUNCHPOD",
  217. "email": "shannon.patel@lunchpod.net",
  218. "phone": "+1 (873) 421-2516",
  219. "address": "365 Columbia Place, Sunriver, South Carolina, 7761",
  220. "registered": "Saturday, March 21, 2015 10:57 PM"
  221. },
  222. {
  223. "_id": "55be9f65fc8a125ab60273d1",
  224. "index": 12,
  225. "guid": "e578fc3f-0a5b-48e1-a54c-e5bc5abcfda8",
  226. "isActive": false,
  227. "balance": "$198.76",
  228. "picture": "http://lorempixel.com/64/64/people/2/",
  229. "age": 39,
  230. "name": {
  231. "first": "Erna",
  232. "last": "Walters"
  233. },
  234. "company": "GEEKOL",
  235. "email": "erna.walters@geekol.org",
  236. "phone": "+1 (854) 455-3527",
  237. "address": "562 Furman Avenue, Windsor, Palau, 2265",
  238. "registered": "Tuesday, August 12, 2014 2:48 PM"
  239. },
  240. {
  241. "_id": "55be9f65dae5cb63d3a740af",
  242. "index": 13,
  243. "guid": "b4137f73-1a1f-4f3f-9e0b-c665adf60f43",
  244. "isActive": false,
  245. "balance": "$753.38",
  246. "picture": "http://lorempixel.com/64/64/people/3/",
  247. "age": 26,
  248. "name": {
  249. "first": "Deidre",
  250. "last": "Hill"
  251. },
  252. "company": "MEDICROIX",
  253. "email": "deidre.hill@medicroix.us",
  254. "phone": "+1 (904) 441-2303",
  255. "address": "421 Polar Street, Hamilton, Virginia, 2326",
  256. "registered": "Monday, January 5, 2015 7:20 PM"
  257. },
  258. {
  259. "_id": "55be9f65b38fd9cdc5403385",
  260. "index": 14,
  261. "guid": "1fdf4081-862f-4c26-87da-8a237ff74eeb",
  262. "isActive": true,
  263. "balance": "$430.71",
  264. "picture": "http://lorempixel.com/64/64/people/4/",
  265. "age": 35,
  266. "name": {
  267. "first": "Isabel",
  268. "last": "Bruce"
  269. },
  270. "company": "RETRACK",
  271. "email": "isabel.bruce@retrack.ca",
  272. "phone": "+1 (922) 427-2409",
  273. "address": "183 Hart Street, Nanafalia, American Samoa, 2917",
  274. "registered": "Sunday, May 4, 2014 12:43 PM"
  275. },
  276. {
  277. "_id": "55be9f65398329b33a24ff36",
  278. "index": 15,
  279. "guid": "805b5054-45c5-4d0c-a26d-f1b1ac269f18",
  280. "isActive": true,
  281. "balance": "$849.73",
  282. "picture": "http://lorempixel.com/64/64/people/5/",
  283. "age": 30,
  284. "name": {
  285. "first": "Melanie",
  286. "last": "Molina"
  287. },
  288. "company": "PHEAST",
  289. "email": "melanie.molina@pheast.biz",
  290. "phone": "+1 (860) 507-2650",
  291. "address": "362 Calder Place, Kenwood, Kansas, 8178",
  292. "registered": "Wednesday, October 8, 2014 8:20 PM"
  293. },
  294. {
  295. "_id": "55be9f6508a049a8b5ab03dd",
  296. "index": 16,
  297. "guid": "8076d8fe-f9d8-4689-8b73-fb709198083a",
  298. "isActive": true,
  299. "balance": "$895.34",
  300. "picture": "http://lorempixel.com/64/64/people/6/",
  301. "age": 35,
  302. "name": {
  303. "first": "Brown",
  304. "last": "Cortez"
  305. },
  306. "company": "XEREX",
  307. "email": "brown.cortez@xerex.name",
  308. "phone": "+1 (897) 597-2194",
  309. "address": "817 Fleet Place, Itmann, Missouri, 8544",
  310. "registered": "Tuesday, October 14, 2014 1:25 PM"
  311. },
  312. {
  313. "_id": "55be9f652e9cb46d32e353bb",
  314. "index": 17,
  315. "guid": "67b4dd41-3c15-4401-ba05-6e0f437add66",
  316. "isActive": false,
  317. "balance": "$160.49",
  318. "picture": "http://lorempixel.com/64/64/people/7/",
  319. "age": 22,
  320. "name": {
  321. "first": "Austin",
  322. "last": "Lloyd"
  323. },
  324. "company": "EARTHWAX",
  325. "email": "austin.lloyd@earthwax.io",
  326. "phone": "+1 (854) 486-2262",
  327. "address": "254 Aurelia Court, Gordon, Illinois, 7457",
  328. "registered": "Monday, March 17, 2014 5:32 AM"
  329. },
  330. {
  331. "_id": "55be9f654bba09df5bad6a83",
  332. "index": 18,
  333. "guid": "6c5c261a-541a-42a2-805c-2b2f7c650c7e",
  334. "isActive": false,
  335. "balance": "$424.84",
  336. "picture": "http://lorempixel.com/64/64/people/8/",
  337. "age": 21,
  338. "name": {
  339. "first": "Church",
  340. "last": "Stewart"
  341. },
  342. "company": "SUREPLEX",
  343. "email": "church.stewart@sureplex.biz",
  344. "phone": "+1 (865) 587-2528",
  345. "address": "754 Norman Avenue, Gilgo, Washington, 7022",
  346. "registered": "Friday, July 3, 2015 5:10 PM"
  347. },
  348. {
  349. "_id": "55be9f65f6c9e901e272df2f",
  350. "index": 19,
  351. "guid": "3b3cf174-e8fc-49a4-96c1-d2cca56b57e6",
  352. "isActive": false,
  353. "balance": "$980.33",
  354. "picture": "http://lorempixel.com/64/64/people/9/",
  355. "age": 28,
  356. "name": {
  357. "first": "Mejia",
  358. "last": "Hays"
  359. },
  360. "company": "WARETEL",
  361. "email": "mejia.hays@waretel.me",
  362. "phone": "+1 (990) 439-2885",
  363. "address": "348 President Street, Alafaya, Marshall Islands, 5442",
  364. "registered": "Monday, June 22, 2015 4:26 AM"
  365. }
  366. ];
  367.  
  368. var Rows = [];
  369. for (var i = data.length - 1; i >= 0; i--) {
  370. Rows[i]= [data[i].picture,data[i].name.first,data[i].name.last,data[i].email,data[i].balance,data[i].isActive];
  371. };
  372.  
  373.  
  374. React.render( <TeachersTable teacherlist={Rows} /> , document.getElementById('teachers'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement