Guest User

Untitled

a guest
Jan 22nd, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.09 KB | None | 0 0
  1. import { Component, Input } from "@angular/core";
  2.  
  3. @Component({
  4. selector: "general-content-comp",
  5. templateUrl: "./general-content.component.html",
  6. styleUrls: ["./general-content.component.css"]
  7. })
  8. export class generalContentComp {
  9. @Input() isLogdIn: boolean = true;
  10. @Input() h2Text: string = "Test";
  11. @Input() breadcrumbs = [
  12. { aText: "תלמידים", aHref: "#" },
  13. { aText: "אוכלוסיות", aHref: "#" },
  14. { aText: "חינוך מיוחד", aHref: "#" },
  15. { aText: "שעות סיוע תגבור לתלמיד בחינוך מיוחד", aHref: "" }
  16. ];
  17. fileName:string;
  18.  
  19.  
  20.  
  21. linksData: ILinksData[] = [
  22. //1
  23. {
  24. isNotLoggedIn:false,
  25. isNotLoggedIn_aText:'להזדהות',
  26. isNotLoggedIn_aHref:'#',
  27. title:'דוחות וניתוח מידע',
  28.  
  29. linkTitle:[
  30. {
  31. aText:'התפלגות שירותי חמ"נ בבית הספר',
  32. aHref:'#',
  33. isNew:true,
  34. // externalAlertText:'אין לך הרשאות לצפות בניתוח המידע זה',
  35. reportBtn:[
  36. {
  37. reportBtn_text:'דוח סייעות',
  38. reportBtn_fileName:'idan.xls',
  39. reportBtn_iconSrcEnable:'excel icon.png',
  40. reportBtn_iconSrcDisable:'excelIcon.png',
  41. reportBtn_iconAlt:'קובץ להורדה'
  42. },
  43. {
  44. reportBtn_text:'דוח אחר',
  45. reportBtn_fileName:'idan.pdf',
  46. reportBtn_iconSrcEnable:'excel icon.png',
  47. reportBtn_iconSrcDisable:'excelIcon.png',
  48. reportBtn_iconAlt:'קובץ להורדה'
  49. },
  50. ],
  51. },
  52. {
  53. aText:'דו”ח סייעות',
  54. aHref:'#',
  55. externalAlertText:'אין לך הרשאות לצפות בניתוח המידע זה',
  56.  
  57. reportBtn:[
  58. {
  59. reportBtn_text:'דוח סייעות',
  60. reportBtn_fileName:'idan.xls',
  61. reportBtn_iconSrcEnable:'excel icon.png',
  62. reportBtn_iconSrcDisable:'excelIcon.png',
  63. reportBtn_iconAlt:'קובץ להורדה'
  64. }
  65.  
  66. ]
  67. },
  68. {
  69. aText:'דו”ח אחר ',
  70. aHref:'#'
  71. },
  72. ],
  73. pText:'שלוש שורות של הסבר לגבי ניתוח המידע ושוב שלוש שורות של הסבר לגבי ניתוח המידע',
  74.  
  75. inAccLink:[
  76. {
  77. aText:'מעבר לעמוד ניתוח מידע',
  78. aHref:'#',
  79. }
  80. ],
  81. allLinks:{
  82. aText:'לעוד דוחות וקישורים',
  83. aHref:'#'
  84. }
  85.  
  86. },
  87.  
  88. //2
  89. {
  90. title:'קישורים ',
  91.  
  92. linkTitle:[
  93. {
  94. aText:'מדב”ס/אופקית',
  95. aHref:'#',
  96. isNew:true,
  97. icon:[
  98. {
  99. iconSrc:'link.png',
  100. iconAlt:'קישור חיצוני'
  101. }
  102. ]
  103. },
  104. {
  105. aText:' מע’ תיק עו”ה מקוון ',
  106. aHref:'#',
  107. icon:[
  108. {
  109. iconSrc:'link.png',
  110. iconAlt:'קישור חיצוני'
  111. },
  112. {
  113. iconSrc:'Internet Explorer.png',
  114. iconAlt:'קישור חיצוני'
  115. },
  116. ]
  117.  
  118. },
  119. {
  120. aText:' פורטל עובדי הוראה ',
  121. aHref:'#',
  122. icon:[
  123. {
  124. iconSrc:'link.png',
  125. iconAlt:'קישור חיצוני'
  126. },
  127.  
  128. ]
  129. },
  130. {
  131. aText:' מע’ הערכת עובדי הוראה ',
  132. aHref:'#',
  133. icon:[
  134. {
  135. iconSrc:'link.png',
  136. iconAlt:'קישור חיצוני'
  137. },
  138.  
  139. ]
  140. },
  141. {
  142. aText:' מע’ פרישת עו”ה רשמיים ',
  143. aHref:'#',
  144. icon:[
  145. {
  146. iconSrc:'link.png',
  147. iconAlt:'קישור חיצוני'
  148. },
  149.  
  150. ]
  151. }
  152. ],
  153. pText:'שלוש שורות של הסבר לגבי ניתוח המידע ושוב שלוש שורות של הסבר לגבי ניתוח המידע',
  154. inAccLink:[
  155. {
  156. aText:'מעבר לעמוד ניתוח מידע',
  157. aHref:'#'
  158. }
  159. ],
  160. allLinks:{
  161. aText:'לעוד דוחות וקישורים',
  162. aHref:'#'
  163. }
  164. },
  165.  
  166. // 3
  167. {
  168. title:'מסמכים להורדה ',
  169.  
  170. linkTitle:[
  171. {
  172. aText:'מסמך ראשון להורדה',
  173. aHref:'#',
  174. aDownload:'sample.pdf',
  175. icon:[
  176. {
  177. iconSrc:'attachment.png',
  178. iconAlt:'הורדה'
  179. },
  180. ],
  181.  
  182. },
  183. {
  184. aText:'מסמך שני נוסף להורדה',
  185. aHref:'#',
  186. aDownload:'sample.pdf',
  187. icon:[
  188. {
  189. iconSrc:'attachment.png',
  190. iconAlt:'הורדה'
  191. },
  192. ]
  193. },
  194. {
  195. aText:'מסמך שלישי ונוסף להורדה',
  196. aHref:'#',
  197. aDownload:'sample.pdf',
  198. icon:[
  199. {
  200. iconSrc:'attachment.png',
  201. iconAlt:'הורדה'
  202. },
  203. ]
  204. }
  205.  
  206. ],
  207. pText:'שלוש שורות של הסבר לגבי ניתוח המידע ושוב שלוש שורות של הסבר לגבי ניתוח המידע',
  208. inAccLink:[
  209. {
  210. aText:'מעבר לעמוד ניתוח מידע',
  211. aHref:'#'
  212. }
  213. ]
  214. },
  215. // 4
  216. {
  217. title:'חוזרי מנכ”ל ',
  218.  
  219. linkTitle:[
  220. {
  221. aText:'מסמך ראשון להורדה',
  222. aHref:'#',
  223. aDownload:'sample.pdf',
  224. icon:[
  225. {
  226. iconSrc:'attachment.png',
  227. iconAlt:'הורדה'
  228. },
  229. ]
  230. },
  231. {
  232. aText:'מסמך שני נוסף להורדה',
  233. aHref:'#',
  234. aDownload:'sample.pdf',
  235. icon:[
  236. {
  237. iconSrc:'attachment.png',
  238. iconAlt:'הורדה'
  239. },
  240. ]
  241. },
  242. {
  243. aText:'מסמך שלישי ונוסף להורדה ',
  244. aHref:'#',
  245. aDownload:'sample.pdf',
  246. icon:[
  247. {
  248. iconSrc:'attachment.png',
  249. iconAlt:'הורדה'
  250. },
  251. ]
  252. },
  253. {
  254. aText:'מסמך רביעי ונוסף להורדה',
  255. aHref:'#',
  256. aDownload:'sample.pdf',
  257. icon:[
  258. {
  259. iconSrc:'attachment.png',
  260. iconAlt:'הורדה'
  261. },
  262. ]
  263. },
  264. {
  265. aText:'מסמך חמישי ונוסף להורדה',
  266. aHref:'#',
  267. aDownload:'sample.pdf',
  268. icon:[
  269. {
  270. iconSrc:'attachment.png',
  271. iconAlt:'הורדה'
  272. },
  273. ]
  274. }
  275. ],
  276. pText:'שלוש שורות של הסבר לגבי ניתוח המידע ושוב שלוש שורות של הסבר לגבי ניתוח המידע',
  277. inAccLink:[
  278. {
  279. aText:'מעבר לעמוד ניתוח מידע',
  280. aHref:'#'
  281. }
  282. ]
  283. },
  284.  
  285. // 5
  286.  
  287. {
  288. title:'חומרי הדרכה ',
  289.  
  290. linkTitle:[
  291. {
  292. aText:'סרטון הדרכה ',
  293. aHref:'#',
  294. icon:[
  295. {
  296. iconSrc:'vector-smart-object.png',
  297. iconAlt:'סרטון'
  298. },
  299. ]
  300. },
  301. {
  302. aText:'מסמך שני נוסף להורדה',
  303. aHref:'#',
  304. aDownload:'sample.pdf',
  305. icon:[
  306. {
  307. iconSrc:'attachment.png',
  308. iconAlt:'הורדה'
  309. },
  310. ]
  311. },
  312. {
  313. aText:'מסמך שלישי ונוסף להורדה ',
  314. aHref:'#',
  315. aDownload:'sample.pdf',
  316. icon:[
  317. {
  318. iconSrc:'attachment.png',
  319. iconAlt:'הורדה'
  320. },
  321. ]
  322. },
  323. ],
  324. pText:'שלוש שורות של הסבר לגבי ניתוח המידע ושוב שלוש שורות של הסבר לגבי ניתוח המידע',
  325. inAccLink:[
  326. {
  327. aText:'מעבר לעמוד ניתוח מידע',
  328. aHref:'#'
  329. }
  330. ]
  331. },
  332.  
  333. // 6
  334.  
  335. {
  336. title:'שירותים ',
  337.  
  338. linkTitle:[
  339. {
  340. aText:'מסמך ראשון להורדה',
  341. aHref:'#',
  342. icon:[
  343. {
  344. iconSrc:'attachment.png',
  345. iconAlt:'הורדה'
  346. },
  347. ]
  348. },
  349. {
  350. aText:'מסמך שני נוסף להורדה',
  351. aHref:'#',
  352. aDownload:'sample.pdf',
  353. icon:[
  354. {
  355. iconSrc:'attachment.png',
  356. iconAlt:'הורדה'
  357. },
  358. ]
  359. },
  360. {
  361. aText:'מסמך שלישי ונוסף להורדה ',
  362. aHref:'#',
  363. aDownload:'sample.pdf',
  364. icon:[
  365. {
  366. iconSrc:'attachment.png',
  367. iconAlt:'הורדה'
  368. },
  369. ]
  370. },
  371. {
  372. aText:'מסמך רביעי ונוסף להורדה ',
  373. aHref:'#',
  374. aDownload:'sample.pdf',
  375. icon:[
  376. {
  377. iconSrc:'attachment.png',
  378. iconAlt:'הורדה'
  379. },
  380. ]
  381. },
  382. {
  383. aText:'מסמך חמישי ונוסף להורדה ',
  384. aHref:'#',
  385. aDownload:'sample.pdf',
  386. icon:[
  387. {
  388. iconSrc:'attachment.png',
  389. iconAlt:'הורדה'
  390. },
  391. ]
  392. },
  393. ],
  394. pText:'שלוש שורות של הסבר לגבי ניתוח המידע ושוב שלוש שורות של הסבר לגבי ניתוח המידע',
  395. inAccLink:[
  396. {
  397. aText:'מעבר לעמוד ניתוח מידע',
  398. aHref:'#'
  399. }
  400. ]
  401. }
  402. ];
  403.  
  404. openDialog(event){
  405. this.fileName = event;
  406. }
  407.  
  408.  
  409. }
  410.  
  411. interface ILinksData {
  412. isNotLoggedIn?:boolean;
  413. isNotLoggedIn_aHref?:string;
  414. isNotLoggedIn_aText?:string;
  415. title: string;
  416. linkTitle?: ILinkTitle[];
  417. pText?: string;
  418. btnReportText?:string;
  419. externalAlertText?:string;
  420. inAccLink?: ILinkTitle[];
  421. icon?: IIcon[];
  422. allLinks?: ILinkTitle;
  423. }
  424. interface ILinkTitle {
  425. aText: string;
  426. aHref: string;
  427. icon?:IIcon[];
  428. aDownload?:string;
  429. imgDownloadSrc?: string;
  430. imgDownloadAlt?: string;
  431. isReport?:boolean;
  432. isNew?:boolean;
  433. reportBtn?: IReportButton[];
  434. externalAlertText?:string;
  435.  
  436. }
  437. interface IIcon {
  438. iconSrc: string;
  439. iconAlt: string;
  440. }
  441. interface IReportButton{
  442. reportBtn_text?:string;
  443. reportBtn_fileName?:string;
  444. reportBtn_iconSrcEnable?:string;
  445. reportBtn_iconSrcDisable?:string;
  446. reportBtn_iconAlt?:string;
  447. }
Add Comment
Please, Sign In to add comment