Wp-Pro-Quiz - Version 0.35

Version Description

  • Bugfix
  • New quiz and question overview design
  • New menu structure
Download this release

Release Info

Developer xeno010
Plugin Icon 128x128 Wp-Pro-Quiz
Version 0.35
Comparing to
See all releases

Code changes from version 0.34 to 0.35

Files changed (54) hide show
  1. .gitignore +1 -0
  2. css/wpProQuiz_front.css +30 -6
  3. css/wpProQuiz_front.min.css +1 -1
  4. js/wpProQuiz_admin.js +319 -319
  5. js/wpProQuiz_admin.min.js +80 -89
  6. languages/wp-pro-quiz-ar.mo +0 -0
  7. languages/wp-pro-quiz-ar.po +324 -256
  8. languages/wp-pro-quiz-cs_CZ.mo +0 -0
  9. languages/wp-pro-quiz-cs_CZ.po +330 -259
  10. languages/wp-pro-quiz-da_DK.mo +0 -0
  11. languages/wp-pro-quiz-da_DK.po +330 -259
  12. languages/wp-pro-quiz-de_DE.mo +0 -0
  13. languages/wp-pro-quiz-de_DE.po +354 -280
  14. languages/wp-pro-quiz-el.mo +0 -0
  15. languages/wp-pro-quiz-el.po +331 -260
  16. languages/wp-pro-quiz-es_ES.mo +0 -0
  17. languages/wp-pro-quiz-es_ES.po +333 -266
  18. languages/wp-pro-quiz-fa_IR.mo +0 -0
  19. languages/wp-pro-quiz-fa_IR.po +327 -259
  20. languages/wp-pro-quiz-fr_FR.mo +0 -0
  21. languages/wp-pro-quiz-fr_FR.po +332 -260
  22. languages/wp-pro-quiz-hu_HU.mo +0 -0
  23. languages/wp-pro-quiz-hu_HU.po +332 -260
  24. languages/wp-pro-quiz-id_ID.mo +0 -0
  25. languages/wp-pro-quiz-id_ID.po +331 -260
  26. languages/wp-pro-quiz-it_IT.mo +0 -0
  27. languages/wp-pro-quiz-it_IT.po +330 -263
  28. languages/wp-pro-quiz-nb_NO.mo +0 -0
  29. languages/wp-pro-quiz-nb_NO.po +330 -259
  30. languages/wp-pro-quiz-nl_NL.mo +0 -0
  31. languages/wp-pro-quiz-nl_NL.po +334 -264
  32. languages/wp-pro-quiz-pt_BR.mo +0 -0
  33. languages/wp-pro-quiz-pt_BR.po +331 -264
  34. languages/wp-pro-quiz-ru_RU.mo +0 -0
  35. languages/wp-pro-quiz-ru_RU.po +332 -261
  36. languages/wp-pro-quiz-sk_SK.mo +0 -0
  37. languages/wp-pro-quiz-sk_SK.po +331 -260
  38. languages/wp-pro-quiz-sv_SE.mo +0 -0
  39. languages/wp-pro-quiz-sv_SE.po +327 -256
  40. languages/wp-pro-quiz-tr_TR.mo +0 -0
  41. languages/wp-pro-quiz-tr_TR.po +332 -265
  42. languages/wp-pro-quiz-zh_TW.mo +0 -0
  43. languages/wp-pro-quiz-zh_TW.po +331 -260
  44. languages/wp-pro-quiz.pot +305 -252
  45. lib/controller/WpProQuiz_Controller_Admin.php +76 -6
  46. lib/controller/WpProQuiz_Controller_Ajax.php +6 -1
  47. lib/controller/WpProQuiz_Controller_Question.php +157 -3
  48. lib/controller/WpProQuiz_Controller_Quiz.php +90 -25
  49. lib/helper/WpProQuiz_Helper_Upgrade.php +1 -0
  50. lib/model/WpProQuiz_Model_CategoryMapper.php +6 -1
  51. lib/model/WpProQuiz_Model_QuestionMapper.php +103 -3
  52. lib/model/WpProQuiz_Model_QuizMapper.php +82 -1
  53. lib/view/WpProQuiz_View_GlobalHelperTabs.php +79 -0
  54. lib/view/WpProQuiz_View_QuestionOverall.php +392 -82
.gitignore ADDED
@@ -0,0 +1 @@
 
1
+ .idea
css/wpProQuiz_front.css CHANGED
@@ -19,7 +19,7 @@
19
  margin-bottom: 10px !important;
20
  }
21
  *+html .wpProQuiz_button, *+html .wpProQuiz_button:hover {
22
- padding: 3px 0px !important;
23
  }
24
  .wpProQuiz_button, .wpProQuiz_button:hover {
25
  margin: 0 !important;
@@ -57,11 +57,20 @@
57
  border: 0 !important;
58
  }
59
 
60
- .wpProQuiz_questionListItem > table{
61
  border-collapse: collapse !important;
62
  margin: 0 !important;
63
  padding: 0 !important;
64
  width: 100%;
 
 
 
 
 
 
 
 
 
65
  }
66
 
67
  .wpProQuiz_list, .wpProQuiz_listItem, .wpProQuiz_questionList, .wpProQuiz_sortStringList, .wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion, .wpProQuiz_resultsList, .wpProQuiz_catOverview ol {
@@ -139,7 +148,7 @@
139
  bottom: 5px !important;
140
  left: 5px !important;
141
  right: 5px !important;
142
- box-shadow: 2px 2px 5px 0px #313131 !important;
143
  z-index: 99999 !important;
144
  }
145
  .wpProQuiz_matrixSortString, .wpProQuiz_matrixSortString > h3{
@@ -296,11 +305,18 @@
296
  border-collapse: collapse !important;
297
  margin: 0 !important;
298
  border: 0 !important;
 
 
 
 
 
 
 
299
  }
300
  .wpProQuiz_resultName {
301
  width: 100px !important;
302
  border-right: 1px solid rgb(134, 134, 134) !important;
303
- padding: 10px 0px !important;
304
  border-bottom: 0 !important;
305
  border-top: 0 !important;
306
  border-left: 0 !important;
@@ -358,7 +374,7 @@
358
  .wpProQuiz_reviewQuestionTarget {
359
  font-weight: bold;
360
  border-color: #7DB1D3 !important;
361
- box-shadow: 0px 0px 2px 1px #C4C4C4;
362
  }
363
  .wpProQuiz_reviewQuestion li, .wpProQuiz_checkPage li {
364
  float: left !important;
@@ -427,7 +443,7 @@
427
  margin: 20px 0 20px 0 !important;
428
  }
429
  .wpProQuiz_header {
430
- margin: 0px !important;
431
  }
432
  .wpProQuiz_catOverview {
433
  margin-top: 10px;
@@ -475,7 +491,15 @@ span.wpProQuiz_catPercent {
475
  border-collapse: separate !important;
476
  border-spacing: 2px !important;
477
  border: 0;
 
 
 
 
478
  }
 
 
 
 
479
  .wpProQuiz_forms td {
480
  vertical-align: top !important;
481
  padding: 0 0 8px 0 !important;
19
  margin-bottom: 10px !important;
20
  }
21
  *+html .wpProQuiz_button, *+html .wpProQuiz_button:hover {
22
+ padding: 3px 0 !important;
23
  }
24
  .wpProQuiz_button, .wpProQuiz_button:hover {
25
  margin: 0 !important;
57
  border: 0 !important;
58
  }
59
 
60
+ .wpProQuiz_questionListItem > table {
61
  border-collapse: collapse !important;
62
  margin: 0 !important;
63
  padding: 0 !important;
64
  width: 100%;
65
+ border: none !important;
66
+ text-align: left !important;
67
+ }
68
+ .wpProQuiz_questionListItem > table .alt {
69
+ background: inherit !important;
70
+ }
71
+
72
+ .wpProQuiz_questionListItem > table td {
73
+ text-align: left !important;
74
  }
75
 
76
  .wpProQuiz_list, .wpProQuiz_listItem, .wpProQuiz_questionList, .wpProQuiz_sortStringList, .wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion, .wpProQuiz_resultsList, .wpProQuiz_catOverview ol {
148
  bottom: 5px !important;
149
  left: 5px !important;
150
  right: 5px !important;
151
+ box-shadow: 2px 2px 5px 0 #313131 !important;
152
  z-index: 99999 !important;
153
  }
154
  .wpProQuiz_matrixSortString, .wpProQuiz_matrixSortString > h3{
305
  border-collapse: collapse !important;
306
  margin: 0 !important;
307
  border: 0 !important;
308
+ text-align: left !important;
309
+ }
310
+ .wpProQuiz_resultTable table td {
311
+ text-align: left !important;
312
+ }
313
+ .wpProQuiz_resultTable .alt {
314
+ background: inherit !important;
315
  }
316
  .wpProQuiz_resultName {
317
  width: 100px !important;
318
  border-right: 1px solid rgb(134, 134, 134) !important;
319
+ padding: 10px 0 !important;
320
  border-bottom: 0 !important;
321
  border-top: 0 !important;
322
  border-left: 0 !important;
374
  .wpProQuiz_reviewQuestionTarget {
375
  font-weight: bold;
376
  border-color: #7DB1D3 !important;
377
+ box-shadow: 0 0 2px 1px #C4C4C4;
378
  }
379
  .wpProQuiz_reviewQuestion li, .wpProQuiz_checkPage li {
380
  float: left !important;
443
  margin: 20px 0 20px 0 !important;
444
  }
445
  .wpProQuiz_header {
446
+ margin: 0 !important;
447
  }
448
  .wpProQuiz_catOverview {
449
  margin-top: 10px;
491
  border-collapse: separate !important;
492
  border-spacing: 2px !important;
493
  border: 0;
494
+ text-align: left !important;
495
+ }
496
+ .wpProQuiz_forms table .alt {
497
+ background: inherit !important;
498
  }
499
+ .wpProQuiz_forms table td {
500
+ text-align: left !important;
501
+ }
502
+
503
  .wpProQuiz_forms td {
504
  vertical-align: top !important;
505
  padding: 0 0 8px 0 !important;
css/wpProQuiz_front.min.css CHANGED
@@ -1 +1 @@
1
- .wpProQuiz_answerCorrect{background:#6db46d !important;font-weight:bold !important}.wpProQuiz_answerCorrect label{font-weight:bold !important}.wpProQuiz_answerIncorrect{background:#ff9191 !important;font-weight:bold !important}.wpProQuiz_content{margin-top:10px !important;margin-bottom:10px !important}.wpProQuiz_content h2{margin-bottom:10px !important}*+html .wpProQuiz_button,*+html .wpProQuiz_button:hover{padding:3px 0 !important}.wpProQuiz_button,.wpProQuiz_button:hover{margin:0 !important;padding:5px 10px !important;background:#13455b !important;border-radius:11px !important;color:white !important;font-weight:bold !important;border:1px solid #13455b !important;box-shadow:1px 1px 1px #333 !important;text-shadow:none !important;filter:none !important;float:none}.wpProQuiz_question_page{margin-bottom:10px !important}.wpProQuiz_question_page span{font-weight:bold !important}.wpProQuiz_questionListItem:last-child,.wpProQuiz_questionListItemLastChildIE{padding:3px !important;margin-bottom:0 !important}.wpProQuiz_questionListItem{padding:3px !important;margin-bottom:5px !important;background-image:none !important;margin-left:0 !important;list-style:none !important;border:0 !important}.wpProQuiz_questionListItem>table{border-collapse:collapse !important;margin:0 !important;padding:0 !important;width:100%}.wpProQuiz_list,.wpProQuiz_listItem,.wpProQuiz_questionList,.wpProQuiz_sortStringList,.wpProQuiz_sortStringList,.wpProQuiz_maxtrixSortCriterion,.wpProQuiz_resultsList,.wpProQuiz_catOverview ol{list-style:none !important;padding:0 !important;margin:0 !important}.wpProQuiz_list{border:0 !important}.wpProQuiz_questionList{margin-bottom:10px !important;background:#f8faf5 !important;border:1px solid #c3d1a3 !important;padding:5px !important;list-style:none !important}.wpProQuiz_listItem{position:relative !important;border:0 !important;background-image:none !important}.wpProQuiz_response{background:#f8faf5 !important;border:1px solid #c4c4c4 !important;padding:5px !important;margin-bottom:15px !important;box-shadow:1px 1px 2px #AAA !important}.wpProQuiz_response span{font-weight:bold !important}.wpProQuiz_sort{width:25px !important}.wpProQuiz_results h3{margin-bottom:10px !important}.wpProQuiz_sort_correct_answer{font-weight:bold !important;margin-right:5px !important;display:none !important}.wpProQuiz_sortable,.wpProQuiz_sortStringItem{padding:5px !important;border:1px solid lightGrey !important;box-shadow:2px 2px 1px #EEE;background-color:#f8faf5 !important;cursor:move}.wpProQuiz_time_limit .time{font-weight:bold !important;margin-top:5px !important;margin-bottom:5px !important}.wpProQuiz_time_limit .wpProQuiz_progress{height:10px !important;background-color:blue !important;margin-bottom:5px !important}.wpProQuiz_time_limit_expired{font-weight:bold !important;font-size:15px !important;text-align:center !important}.wpProQuiz_question_text{margin-bottom:10px !important}.wpProQuiz_tipp>div{padding:10px !important;background-color:#ddecff !important;border:1px dotted #363636 !important;border-radius:10px !important;position:absolute !important;bottom:5px !important;left:5px !important;right:5px !important;box-shadow:2px 2px 5px 0 #313131 !important;z-index:99999 !important}.wpProQuiz_matrixSortString,.wpProQuiz_matrixSortString>h3{margin-bottom:10px !important;margin-top:0 !important}.wpProQuiz_matrixSortString{background:#f8faf5 !important;border:1px solid #c3d1a3 !important;padding:5px !important}.wpProQuiz_sortStringList{padding:10px !important;border:0 !important}.wpProQuiz_sortStringList>li{float:left !important;margin-left:5px !important;margin-right:5px !important;margin-bottom:5px !important}.wpProQuiz_sortStringItem{margin:0 !important;background-image:none !important;list-style:none !important}.wpProQuiz_maxtrixSortCriterion{padding:5px !important}.wpProQuiz_placehold{background-color:#ffffc2 !important;list-style:none !important;background-image:none !important;padding:5px !important;height:30px !important;min-width:50px !important;margin:0 !important}.wpProQuiz_maxtrixSortText{padding:5px !important}.wpProQuiz_mextrixTr>td{border:1px solid #d1d1d1 !important;padding:5px !important;vertical-align:middle !important}.wpProQuiz_points{font-weight:bold !important;text-align:center !important;margin-bottom:20px !important}.wpProQuiz_cloze input[type="text"]{background:transparent;border:0 !important;border-bottom:1px solid !important;height:18px !important;margin:0 !important;padding:0 4px 0 4px !important;color:black !important;border-radius:0 !important;box-shadow:0 0 !important}.wpProQuiz_cloze input:focus{outline:none !important}.wpProQuiz_questionListItem input,.wpProQuiz_questionListItem label{margin:0 !important;font-weight:normal;display:inline}.wpProQuiz_questionListItem label{float:none}.wpProQuiz_questionListItem input{float:none !important;display:inline !important}.wpProQuiz_resultsList{border:0 !important}.wpProQuiz_resultsList>li{background-image:none !important;padding:0 !important;margin:0 !important;list-style-type:none !important;border:0 !important}.wpProQuiz_lock,.wpProQuiz_prerequisite,.wpProQuiz_startOnlyRegisteredUser,.wpProQuiz_loadQuiz{border:1px dotted #ffc3c3 !important;background-color:#fff7f7 !important}.wpProQuiz_lock p,.wpProQuiz_prerequisite p,.wpProQuiz_startOnlyRegisteredUser p,.wpProQuiz_loadQuiz p{margin:20px !important;font-weight:bold !important}.wpProQuiz_toplistTable{width:100% !important;border:1px solid #c3d1a3 !important;border-collapse:collapse !important;margin:0 !important}.wpProQuiz_toplistTable caption{caption-side:top !important;text-align:right !important;padding-bottom:2px !important;color:gray !important;margin:0 !important;font-size:11px !important}.wpProQuiz_toplistTable thead tr{background:#9bbb59 !important;padding:5px !important;color:white !important;font-weight:bold !important}.wpProQuiz_toplistTable tbody td:first-child{font-weight:bold !important}.wpProQuiz_toplistTable td,.wpProQuiz_toplistTable th{padding:5px !important;text-align:center !important;border:0 !important}.wpProQuiz_toplistTable th{background:#9bbb59 !important}.wpProQuiz_toplistTrOdd{background-color:#ebf1de !important}.wpProQuiz_addToplist{margin-top:10px !important;background-color:#f5faea !important;padding:10px !important;border:1px solid #c3d1a3 !important}.wpProQuiz_addToplistMessage{border:1px solid #a0a0a0 !important;background-color:#fcffb3 !important;margin-bottom:5px !important;border-radius:5px !important;padding:5px !important;font-weight:bold !important;color:dimGray !important}.wpProQuiz_resultTable{margin:15px auto !important;width:400px !important;border:1px solid #c4c4c4 !important;padding:15px !important;font-weight:bold !important}.wpProQuiz_resultTable table{width:100% !important;border-collapse:collapse !important;margin:0 !important;border:0 !important}.wpProQuiz_resultName{width:100px !important;border-right:1px solid #868686 !important;padding:10px 0 !important;border-bottom:0 !important;border-top:0 !important;border-left:0 !important}.wpProQuiz_resultValue{padding:0 !important;border:0 !important}.wpProQuiz_resultValue div{color:black !important;text-align:right !important;box-shadow:1px 1px 3px 1px #c4c4c4 !important;display:inline-block !important;height:18px !important;zoom:1 !important;*display:inline !important;margin-right:3px !important;vertical-align:middle !important}.wpProQuiz_addBox label{display:inline !important}.wpProQuiz_addBox input[type="text"]{margin:0 !important}.wpProQuiz_reviewQuestion{max-height:100px;overflow:hidden;border:1px solid #c3d1a3;background-color:#f8faf5;position:relative}.wpProQuiz_box{border:1px solid #c3d1a3;background-color:#f8faf5}.wpProQuiz_checkPage h3{margin:10px 0 10px 0}.wpProQuiz_reviewQuestion ol,.wpProQuiz_checkPage ol{list-style-type:none !important;margin:0 !important;padding:5px 12px 0 5px !important;zoom:1 !important;position:relative !important;border:0 !important}.wpProQuiz_reviewQuestion ol:after{content:".";display:block;height:0;clear:both;visibility:hidden}.wpProQuiz_reviewQuestionTarget{font-weight:bold;border-color:#7db1d3 !important;box-shadow:0 0 2px 1px #c4c4c4}.wpProQuiz_reviewQuestion li,.wpProQuiz_checkPage li{float:left !important;margin:0 5px 5px 0 !important;border:1px solid #cfcfcf;padding:5px 0 5px 0 !important;width:30px !important;text-align:center !important;background-color:white;cursor:pointer !important;list-style-type:none !important;background-image:none !important}.wpProQuiz_reviewQuestion div{position:absolute;right:0;background-color:#b8b8b8;top:0;height:20px;width:10px;border:0;border-radius:10px;cursor:move}.wpProQuiz_reviewLegend{padding:5px !important;margin-bottom:8px !important}.wpProQuiz_reviewLegend ol{list-style-type:none !important;padding:0 !important;margin:0 !important;border:0 !important}.wpProQuiz_reviewLegend li{float:left !important;padding-right:5px !important;list-style-type:none !important;margin:0 !important;border:0 !important;background-image:none !important}.wpProQuiz_reviewColor{height:10px !important;width:10px !important;display:inline-block !important;margin-right:2px !important}.wpProQuiz_button2{border:1px solid #dadada !important;background:whiteSmoke !important;color:#303030 !important;border-radius:4px !important;padding:3px 5px !important;box-shadow:1px 1px 1px #a7a7a7 !important;text-shadow:none !important;filter:none !important;margin:0 !important;font-weight:normal !important}.wpProQuiz_button2:hover{background:#ebebeb !important}.wpProQuiz_reviewDiv{margin:20px 0 20px 0 !important}.wpProQuiz_header{margin:0 !important}.wpProQuiz_catOverview{margin-top:10px;margin-bottom:20px}.wpProQuiz_catOverview li{list-style:none !important;padding:0 !important;clear:left !important;border-bottom:1px dashed #aaa;height:1.05em !important;margin:10px 0 0 0 !important;position:relative !important}.wpProQuiz_catOverview span{background:#fff !important;padding:0 3px 0 0 !important;float:left !important;position:absolute !important;text-decoration:none !important}span.wpProQuiz_catPercent{font-weight:bold !important;padding-left:5px !important;color:#000 !important;right:0 !important}.wpProQuiz_forms{margin:20px 0 20px 0 !important}.wpProQuiz_required{color:#F00 !important;font-weight:bold !important}.wpProQuiz_invalidate{border:1px solid #ffcfcf !important;background:#ffebe8 !important;padding:4px !important;margin:4px 0 4px 0 !important;display:none}.wpProQuiz_forms table{width:auto !important;border-collapse:separate !important;border-spacing:2px !important;border:0}.wpProQuiz_forms td{vertical-align:top !important;padding:0 0 8px 0 !important;margin:0 !important;border:0 !important;background:none !important}.wpProQuiz_forms input,.wpProQuiz_forms textarea,.wpProQuiz_forms label,.wpProQuiz_forms select{margin:0 !important;float:none !important;display:inline !important}.wpProQuiz_forms select{width:auto !important}.wpProQuiz_resultForm{display:none}.wpProQuiz_quiz input[type="checkbox"]{-webkit-appearance:checkbox}.wpProQuiz_quiz input[type="radio"]{-webkit-appearance:radio}
1
+ .wpProQuiz_answerCorrect{background:#6db46d!important;font-weight:bold!important}.wpProQuiz_answerCorrect label{font-weight:bold!important}.wpProQuiz_answerIncorrect{background:#ff9191!important;font-weight:bold!important}.wpProQuiz_content{margin-top:10px!important;margin-bottom:10px!important}.wpProQuiz_content h2{margin-bottom:10px!important}*+html .wpProQuiz_button,*+html .wpProQuiz_button:hover{padding:3px 0!important}.wpProQuiz_button,.wpProQuiz_button:hover{margin:0!important;padding:5px 10px!important;background:#13455b!important;border-radius:11px!important;color:white!important;font-weight:bold!important;border:1px solid #13455b!important;box-shadow:1px 1px 1px #333!important;text-shadow:none!important;filter:none!important;float:none}.wpProQuiz_question_page{margin-bottom:10px!important}.wpProQuiz_question_page span{font-weight:bold!important}.wpProQuiz_questionListItem:last-child,.wpProQuiz_questionListItemLastChildIE{padding:3px!important;margin-bottom:0!important}.wpProQuiz_questionListItem{padding:3px!important;margin-bottom:5px!important;background-image:none!important;margin-left:0!important;list-style:none!important;border:0!important}.wpProQuiz_questionListItem>table{border-collapse:collapse!important;margin:0!important;padding:0!important;width:100%;border:none!important;text-align:left!important}.wpProQuiz_questionListItem>table .alt{background:inherit!important}.wpProQuiz_questionListItem>table td{text-align:left!important}.wpProQuiz_list,.wpProQuiz_listItem,.wpProQuiz_questionList,.wpProQuiz_sortStringList,.wpProQuiz_sortStringList,.wpProQuiz_maxtrixSortCriterion,.wpProQuiz_resultsList,.wpProQuiz_catOverview ol{list-style:none!important;padding:0!important;margin:0!important}.wpProQuiz_list{border:0!important}.wpProQuiz_questionList{margin-bottom:10px!important;background:#f8faf5!important;border:1px solid #c3d1a3!important;padding:5px!important;list-style:none!important}.wpProQuiz_listItem{position:relative!important;border:0!important;background-image:none!important}.wpProQuiz_response{background:#f8faf5!important;border:1px solid #c4c4c4!important;padding:5px!important;margin-bottom:15px!important;box-shadow:1px 1px 2px #AAA!important}.wpProQuiz_response span{font-weight:bold!important}.wpProQuiz_sort{width:25px!important}.wpProQuiz_results h3{margin-bottom:10px!important}.wpProQuiz_sort_correct_answer{font-weight:bold!important;margin-right:5px!important;display:none!important}.wpProQuiz_sortable,.wpProQuiz_sortStringItem{padding:5px!important;border:1px solid lightGrey!important;box-shadow:2px 2px 1px #EEE;background-color:#f8faf5!important;cursor:move}.wpProQuiz_time_limit .time{font-weight:bold!important;margin-top:5px!important;margin-bottom:5px!important}.wpProQuiz_time_limit .wpProQuiz_progress{height:10px!important;background-color:blue!important;margin-bottom:5px!important}.wpProQuiz_time_limit_expired{font-weight:bold!important;font-size:15px!important;text-align:center!important}.wpProQuiz_question_text{margin-bottom:10px!important}.wpProQuiz_tipp>div{padding:10px!important;background-color:#ddecff!important;border:1px dotted #363636!important;border-radius:10px!important;position:absolute!important;bottom:5px!important;left:5px!important;right:5px!important;box-shadow:2px 2px 5px 0 #313131!important;z-index:99999!important}.wpProQuiz_matrixSortString,.wpProQuiz_matrixSortString>h3{margin-bottom:10px!important;margin-top:0!important}.wpProQuiz_matrixSortString{background:#f8faf5!important;border:1px solid #c3d1a3!important;padding:5px!important}.wpProQuiz_sortStringList{padding:10px!important;border:0!important}.wpProQuiz_sortStringList>li{float:left!important;margin-left:5px!important;margin-right:5px!important;margin-bottom:5px!important}.wpProQuiz_sortStringItem{margin:0!important;background-image:none!important;list-style:none!important}.wpProQuiz_maxtrixSortCriterion{padding:5px!important}.wpProQuiz_placehold{background-color:#ffffc2!important;list-style:none!important;background-image:none!important;padding:5px!important;height:30px!important;min-width:50px!important;margin:0!important}.wpProQuiz_maxtrixSortText{padding:5px!important}.wpProQuiz_mextrixTr>td{border:1px solid #d1d1d1!important;padding:5px!important;vertical-align:middle!important}.wpProQuiz_points{font-weight:bold!important;text-align:center!important;margin-bottom:20px!important}.wpProQuiz_cloze input[type="text"]{background:transparent;border:0!important;border-bottom:1px solid!important;height:18px!important;margin:0!important;padding:0 4px 0 4px!important;color:black!important;border-radius:0!important;box-shadow:0 0!important}.wpProQuiz_cloze input:focus{outline:none!important}.wpProQuiz_questionListItem input,.wpProQuiz_questionListItem label{margin:0!important;font-weight:normal;display:inline}.wpProQuiz_questionListItem label{float:none}.wpProQuiz_questionListItem input{float:none!important;display:inline!important}.wpProQuiz_resultsList{border:0!important}.wpProQuiz_resultsList>li{background-image:none!important;padding:0!important;margin:0!important;list-style-type:none!important;border:0!important}.wpProQuiz_lock,.wpProQuiz_prerequisite,.wpProQuiz_startOnlyRegisteredUser,.wpProQuiz_loadQuiz{border:1px dotted #ffc3c3!important;background-color:#fff7f7!important}.wpProQuiz_lock p,.wpProQuiz_prerequisite p,.wpProQuiz_startOnlyRegisteredUser p,.wpProQuiz_loadQuiz p{margin:20px!important;font-weight:bold!important}.wpProQuiz_toplistTable{width:100%!important;border:1px solid #c3d1a3!important;border-collapse:collapse!important;margin:0!important}.wpProQuiz_toplistTable caption{caption-side:top!important;text-align:right!important;padding-bottom:2px!important;color:gray!important;margin:0!important;font-size:11px!important}.wpProQuiz_toplistTable thead tr{background:#9bbb59!important;padding:5px!important;color:white!important;font-weight:bold!important}.wpProQuiz_toplistTable tbody td:FIRST-CHILD{font-weight:bold!important}.wpProQuiz_toplistTable td,.wpProQuiz_toplistTable th{padding:5px!important;text-align:center!important;border:0!important}.wpProQuiz_toplistTable th{background:#9bbb59!important}.wpProQuiz_toplistTrOdd{background-color:#ebf1de!important}.wpProQuiz_addToplist{margin-top:10px!important;background-color:#f5faea!important;padding:10px!important;border:1px solid #c3d1a3!important}.wpProQuiz_addToplistMessage{border:1px solid #a0a0a0!important;background-color:#fcffb3!important;margin-bottom:5px!important;border-radius:5px!important;padding:5px!important;font-weight:bold!important;color:dimGray!important}.wpProQuiz_resultTable{margin:15px auto!important;width:400px!important;border:1px solid #c4c4c4!important;padding:15px!important;font-weight:bold!important}.wpProQuiz_resultTable table{width:100%!important;border-collapse:collapse!important;margin:0!important;border:0!important;text-align:left!important}.wpProQuiz_resultTable table td{text-align:left!important}.wpProQuiz_resultTable .alt{background:inherit!important}.wpProQuiz_resultName{width:100px!important;border-right:1px solid #868686!important;padding:10px 0!important;border-bottom:0!important;border-top:0!important;border-left:0!important}.wpProQuiz_resultValue{padding:0!important;border:0!important}.wpProQuiz_resultValue div{color:black!important;text-align:right!important;box-shadow:1px 1px 3px 1px #c4c4c4!important;display:inline-block!important;height:18px!important;zoom:1!important;*display:inline!important;margin-right:3px!important;vertical-align:middle!important}.wpProQuiz_addBox label{display:inline!important}.wpProQuiz_addBox input[type="text"]{margin:0!important}.wpProQuiz_reviewQuestion{max-height:100px;overflow:hidden;border:1px solid #c3d1a3;background-color:#f8faf5;position:relative}.wpProQuiz_box{border:1px solid #c3d1a3;background-color:#f8faf5}.wpProQuiz_checkPage h3{margin:10px 0 10px 0}.wpProQuiz_reviewQuestion ol,.wpProQuiz_checkPage ol{list-style-type:none!important;margin:0!important;padding:5px 12px 0 5px!important;zoom:1!important;position:relative!important;border:0!important}.wpProQuiz_reviewQuestion ol:after{content:".";display:block;height:0;clear:both;visibility:hidden}.wpProQuiz_reviewQuestionTarget{font-weight:bold;border-color:#7db1d3!important;box-shadow:0 0 2px 1px #c4c4c4}.wpProQuiz_reviewQuestion li,.wpProQuiz_checkPage li{float:left!important;margin:0 5px 5px 0!important;border:1px solid #cfcfcf;padding:5px 0 5px 0!important;width:30px!important;text-align:center!important;background-color:white;cursor:pointer!important;list-style-type:none!important;background-image:none!important}.wpProQuiz_reviewQuestion div{position:absolute;right:0;background-color:#b8b8b8;top:0;height:20px;width:10px;border:0;border-radius:10px;cursor:move}.wpProQuiz_reviewLegend{padding:5px!important;margin-bottom:8px!important}.wpProQuiz_reviewLegend ol{list-style-type:none!important;padding:0!important;margin:0!important;border:0!important}.wpProQuiz_reviewLegend li{float:left!important;padding-right:5px!important;list-style-type:none!important;margin:0!important;border:0!important;background-image:none!important}.wpProQuiz_reviewColor{height:10px!important;width:10px!important;display:inline-block!important;margin-right:2px!important}.wpProQuiz_button2{border:1px solid #dadada!important;background:whiteSmoke!important;color:#303030!important;border-radius:4px!important;padding:3px 5px!important;box-shadow:1px 1px 1px #a7a7a7!important;text-shadow:none!important;filter:none!important;margin:0!important;font-weight:normal!important}.wpProQuiz_button2:hover{background:#ebebeb!important}.wpProQuiz_reviewDiv{margin:20px 0 20px 0!important}.wpProQuiz_header{margin:0!important}.wpProQuiz_catOverview{margin-top:10px;margin-bottom:20px}.wpProQuiz_catOverview li{list-style:none!important;padding:0!important;clear:left!important;border-bottom:1px dashed #aaa;height:1.05em!important;margin:10px 0 0 0!important;position:relative!important}.wpProQuiz_catOverview span{background:#fff!important;padding:0 3px 0 0!important;float:left!important;position:absolute!important;text-decoration:none!important}span.wpProQuiz_catPercent{font-weight:bold!important;padding-left:5px!important;color:#000!important;right:0!important}.wpProQuiz_forms{margin:20px 0 20px 0!important}.wpProQuiz_required{color:#F00!important;font-weight:bold!important}.wpProQuiz_invalidate{border:1px solid #ffcfcf!important;background:#ffebe8!important;padding:4px!important;margin:4px 0 4px 0!important;display:none}.wpProQuiz_forms table{width:auto!important;border-collapse:separate!important;border-spacing:2px!important;border:0;text-align:left!important}.wpProQuiz_forms table .alt{background:inherit!important}.wpProQuiz_forms table td{text-align:left!important}.wpProQuiz_forms td{vertical-align:top!important;padding:0 0 8px 0!important;margin:0!important;border:0!important;background:none!important}.wpProQuiz_forms input,.wpProQuiz_forms textarea,.wpProQuiz_forms label,.wpProQuiz_forms select{margin:0!important;float:none!important;display:inline!important}.wpProQuiz_forms select{width:auto!important}.wpProQuiz_resultForm{display:none}.wpProQuiz_quiz input[type="checkbox"]{-webkit-appearance:checkbox}.wpProQuiz_quiz input[type="radio"]{-webkit-appearance:radio}
js/wpProQuiz_admin.js CHANGED
@@ -21,209 +21,209 @@ jQuery(document).ready(function($) {
21
 
22
  $.fn.wpProQuiz_quizOverall = function() {
23
 
24
- function isEmpty(text) {
25
- text = $.trim(text);
26
-
27
- return (!text || 0 === text.length);
28
- };
29
-
30
- function ajaxPost(func, data, success) {
31
- var d = {
32
- action: 'wp_pro_quiz_admin_ajax',
33
- func: func,
34
- data: data
35
- };
36
-
37
- $.post(ajaxurl, d, success, 'json');
38
- };
39
-
40
- var methods = {
41
- changeExport: function(input) {
42
- $input = $(input);
43
- $export = $('.wpProQuiz_exportList');
44
- $export2 = $('.wpProQuiz_setQuizCategoryList');
45
- $ul = $export.find('ul').first();
46
- $ul2 = $export2.find('ul').first();
47
- $export.find('li').remove();
48
- $export2.find('li').remove();
49
-
50
- $('input[name="exportItems"]').each(function() {
51
- $this = $(this);
52
-
53
- if(this.checked) {
54
- var text = $this.parent().parent().find('.wpProQuiz_quizName a:eq(0)').text();
55
- $('<li>' + text + '</li>').appendTo($ul);
56
- $('<li>' + text + '</li>').appendTo($ul2);
57
- }
58
- });
59
- },
60
-
61
- startExport: function() {
62
- $ele = $('input[name="exportItems"]:checked');
63
-
64
- if($ele.length < 1) {
65
- alert(wpProQuizLocalize.no_selected_quiz);
66
- return false;
67
- }
68
-
69
- $hidden = $('#exportHidden');
70
-
71
- $hidden.html('');
72
-
73
- $('input[name="exportItems"]').each(function() {
74
- $this = $(this);
75
-
76
- if(this.checked) {
77
- $('<input type="hidden" value="'+ this.value +'" name="exportIds[]">').appendTo($hidden);
78
- }
79
- });
80
-
81
- return true;
82
- },
83
-
84
- setCategoriesStart: function() {
85
- $ele = $('input[name="exportItems"]:checked');
86
-
87
- if($ele.length < 1) {
88
- alert(wpProQuizLocalize.no_selected_quiz);
89
- return false;
90
- }
91
-
92
- var ids = [];
93
-
94
- $('input[name="exportItems"]').each(function() {
95
- $this = $(this);
96
-
97
- if(this.checked) {
98
- ids.push(this.value);
99
- }
100
- });
101
-
102
- var categoryId = $('select[name="category"]').val();
103
-
104
- var data = {
105
- categoryId: categoryId,
106
- quizIds: ids
107
- };
108
-
109
- $('#ajaxLoad').show();
110
-
111
- ajaxPost('setQuizMultipleCategories', data, function(json) {
112
- location.reload();
113
- });
114
-
115
- return true;
116
- },
117
-
118
- addCategory: function() {
119
- var name = $.trim($('input[name="categoryAdd"]').val());
120
-
121
- if(isEmpty(name)) {
122
- return;
123
- }
124
-
125
- var data = {
126
- categoryName: name,
127
- type: 'quiz'
128
- };
129
-
130
- ajaxPost('categoryAdd', data, function(json) {
131
- if(json.err) {
132
- $('#categoryMsgBox').text(json.err).show('fast').delay(2000).hide('fast');
133
- return;
134
- }
135
-
136
- var $option = $(document.createElement('option'))
137
- .val(json.categoryId)
138
- .text(json.categoryName)
139
- .attr('selected', 'selected');
140
-
141
- $('select[name="category"]').append($option).change();
142
-
143
- });
144
- }
145
- };
146
-
147
- var init = function() {
148
- $('.wpProQuiz_delete').click(function(e) {
149
- var b = confirm(wpProQuizLocalize.delete_msg);
150
-
151
- if(!b) {
152
- e.preventDefault();
153
- return false;
154
- }
155
-
156
- return true;
157
- });
158
-
159
- $('.wpProQuiz_import').click(function(e) {
160
- e.preventDefault();
161
- $('.wpProQuiz_importList').show('fast');
162
-
163
- $('.wpProQuiz_exportList, .wpProQuiz_setQuizCategoryList').hide();
164
- $('.wpProQuiz_exportCheck').hide();
165
-
166
- });
167
-
168
- $('.wpProQuiz_export').click(function(e) {
169
- e.preventDefault();
170
-
171
- $('.wpProQuiz_exportList').show('fast');
172
- $('.wpProQuiz_exportCheck').show('fast');
173
- $('.wpProQuiz_importList, .wpProQuiz_setQuizCategoryList').hide();
174
- });
175
-
176
- $('.wpProQuiz_setQuizCategory').click(function(e) {
177
- e.preventDefault();
178
-
179
- $('.wpProQuiz_setQuizCategoryList').show('fast');
180
- $('.wpProQuiz_exportCheck').show('fast');
181
- $('.wpProQuiz_importList, .wpProQuiz_exportList').hide();
182
- });
183
-
184
- $('input[name="exportItems"]').change(function() {
185
- methods.changeExport(this);
186
- });
187
-
188
- $('input[name="exportItemsAll"]').change(function() {
189
- var $input = $('input[name="exportItems"]');
190
- if(this.checked)
191
- $input.attr('checked', true);
192
- else
193
- $input.attr('checked', false);
194
-
195
- $input.change();
196
- });
197
-
198
- $('#exportStart').click(function(e) {
199
-
200
- if(!methods.startExport())
201
- e.preventDefault();
202
- });
203
-
204
- $('#setCategoriesStart').click(function(e) {
205
-
206
- if(!methods.setCategoriesStart())
207
- e.preventDefault();
208
- });
209
-
210
- $('select[name="category"]').change(function() {
211
- var $this = $(this);
212
- var box = $('#categoryAddBox').hide();
213
-
214
-
215
- if($this.val() == "-1") {
216
- box.show();
217
- }
218
-
219
- }).change();
220
-
221
- $('#categoryAddBtn').click(function() {
222
- methods.addCategory();
223
- });
224
- };
225
-
226
- init();
227
  };
228
 
229
  // $.fn.wpProQuiz_questionEdit = function() {
@@ -558,120 +558,120 @@ jQuery(document).ready(function($) {
558
  // setup();
559
  // };
560
 
561
- $.fn.wpProQuiz_questionOverall = function() {
562
-
563
- var methode = {
564
- saveSort: function() {
565
-
566
- var data = {
567
- action: 'wp_pro_quiz_update_sort',
568
- sort: methode.parseSortArray()
569
- };
570
-
571
- var location = window.location.pathname + window.location.search;
572
- var url = location.replace('admin.php', 'admin-ajax.php') + '&action=save_sort';
573
-
574
- $.post(url, data, function(response) {
575
- $('#sortMsg').show(400).delay(1000).hide(400);
576
- });
577
- },
578
-
579
- parseSortArray: function() {
580
- var array = new Array();
581
-
582
- $('tbody tr').each(function() {
583
- array.push(this.id.replace('wpProQuiz_questionId_', ''));
584
- });
585
-
586
- return array;
587
- },
588
-
589
- sortUpdate: function(e, ui) {
590
- $('.wpProQuiz_questionOverall tbody').children().each(function() {
591
- $t = $(this).children().first().text($(this).index() + 1);
592
- });
593
- },
594
-
595
- loadQuestionCopy: function() {
596
- var list = $('#questionCopySelect');
597
- var location = window.location.pathname + window.location.search;
598
- var url = location.replace('admin.php', 'admin-ajax.php') + '&action=load_question';
599
- var data = {
600
- action: 'wp_pro_quiz_load_question',
601
- excludeId: 1
602
- };
603
-
604
- list.hide();
605
- list.empty();
606
-
607
- $('#loadDataImg').show();
608
-
609
- $.post(
610
- url,
611
- data,
612
- function(json) {
613
- $.each(json, function(i, v) {
614
-
615
- var group = $(document.createElement('optgroup'));
616
-
617
- group.attr('label', v.name);
618
-
619
- $.each(v.question, function(qi, qv) {
620
- $(document.createElement('option'))
621
- .val(qv.id)
622
- .text(qv.name)
623
- .appendTo(group);
624
-
625
-
626
- });
627
-
628
- list.append(group);
629
-
630
- });
631
-
632
- $('#loadDataImg').hide();
633
- list.show();
634
- },
635
- 'json'
636
- );
637
- }
638
- };
639
-
640
- var init = function() {
641
- $('.wp-list-table tbody').sortable({ handle: '.wpProQuiz_move', update: methode.sortUpdate });
642
-
643
- $('.wpProQuiz_delete').click(function(e) {
644
- var b = confirm(wpProQuizLocalize.delete_msg);
645
-
646
- if(!b) {
647
- e.preventDefault();
648
- return false;
649
- }
650
-
651
- return true;
652
- });
653
-
654
- $('#wpProQuiz_saveSort').click(function(e) {
655
- e.preventDefault();
656
- methode.saveSort();
657
- });
658
-
659
- $('#wpProQuiz_questionCopy').click(function(e) {
660
- var $this = $('.wpProQuiz_questionCopy');
661
-
662
- if($this.is(':visible')) {
663
- $this.hide();
664
- } else {
665
- $this.show();
666
- methode.loadQuestionCopy();
667
- }
668
-
669
- e.preventDefault();
670
- });
671
- };
672
-
673
- init();
674
- };
675
 
676
  $.fn.wpProQuiz_quizEdit = function() {
677
 
@@ -1706,8 +1706,8 @@ jQuery(document).ready(function($) {
1706
  // if($('.wpProQuiz_questionEdit').length)
1707
  // $('.wpProQuiz_questionEdit').wpProQuiz_questionEdit();
1708
 
1709
- if($('.wpProQuiz_questionOverall').length)
1710
- $('.wpProQuiz_questionOverall').wpProQuiz_questionOverall();
1711
 
1712
  // if($('.wpProQuiz_statistics').length)
1713
  // $('.wpProQuiz_statistics').wpProQuiz_statistics();
21
 
22
  $.fn.wpProQuiz_quizOverall = function() {
23
 
24
+ //function isEmpty(text) {
25
+ // text = $.trim(text);
26
+ //
27
+ // return (!text || 0 === text.length);
28
+ //};
29
+ //
30
+ //function ajaxPost(func, data, success) {
31
+ // var d = {
32
+ // action: 'wp_pro_quiz_admin_ajax',
33
+ // func: func,
34
+ // data: data
35
+ // };
36
+ //
37
+ // $.post(ajaxurl, d, success, 'json');
38
+ //};
39
+ //
40
+ //var methods = {
41
+ // changeExport: function(input) {
42
+ // $input = $(input);
43
+ // $export = $('.wpProQuiz_exportList');
44
+ // $export2 = $('.wpProQuiz_setQuizCategoryList');
45
+ // $ul = $export.find('ul').first();
46
+ // $ul2 = $export2.find('ul').first();
47
+ // $export.find('li').remove();
48
+ // $export2.find('li').remove();
49
+ //
50
+ // $('input[name="exportItems"]').each(function() {
51
+ // $this = $(this);
52
+ //
53
+ // if(this.checked) {
54
+ // var text = $this.parent().parent().find('.wpProQuiz_quizName a:eq(0)').text();
55
+ // $('<li>' + text + '</li>').appendTo($ul);
56
+ // $('<li>' + text + '</li>').appendTo($ul2);
57
+ // }
58
+ // });
59
+ // },
60
+ //
61
+ // startExport: function() {
62
+ // $ele = $('input[name="exportItems"]:checked');
63
+ //
64
+ // if($ele.length < 1) {
65
+ // alert(wpProQuizLocalize.no_selected_quiz);
66
+ // return false;
67
+ // }
68
+ //
69
+ // $hidden = $('#exportHidden');
70
+ //
71
+ // $hidden.html('');
72
+ //
73
+ // $('input[name="exportItems"]').each(function() {
74
+ // $this = $(this);
75
+ //
76
+ // if(this.checked) {
77
+ // $('<input type="hidden" value="'+ this.value +'" name="exportIds[]">').appendTo($hidden);
78
+ // }
79
+ // });
80
+ //
81
+ // return true;
82
+ // },
83
+ //
84
+ // setCategoriesStart: function() {
85
+ // $ele = $('input[name="exportItems"]:checked');
86
+ //
87
+ // if($ele.length < 1) {
88
+ // alert(wpProQuizLocalize.no_selected_quiz);
89
+ // return false;
90
+ // }
91
+ //
92
+ // var ids = [];
93
+ //
94
+ // $('input[name="exportItems"]').each(function() {
95
+ // $this = $(this);
96
+ //
97
+ // if(this.checked) {
98
+ // ids.push(this.value);
99
+ // }
100
+ // });
101
+ //
102
+ // var categoryId = $('select[name="category"]').val();
103
+ //
104
+ // var data = {
105
+ // categoryId: categoryId,
106
+ // quizIds: ids
107
+ // };
108
+ //
109
+ // $('#ajaxLoad').show();
110
+ //
111
+ // ajaxPost('setQuizMultipleCategories', data, function(json) {
112
+ // location.reload();
113
+ // });
114
+ //
115
+ // return true;
116
+ // },
117
+ //
118
+ // addCategory: function() {
119
+ // var name = $.trim($('input[name="categoryAdd"]').val());
120
+ //
121
+ // if(isEmpty(name)) {
122
+ // return;
123
+ // }
124
+ //
125
+ // var data = {
126
+ // categoryName: name,
127
+ // type: 'quiz'
128
+ // };
129
+ //
130
+ // ajaxPost('categoryAdd', data, function(json) {
131
+ // if(json.err) {
132
+ // $('#categoryMsgBox').text(json.err).show('fast').delay(2000).hide('fast');
133
+ // return;
134
+ // }
135
+ //
136
+ // var $option = $(document.createElement('option'))
137
+ // .val(json.categoryId)
138
+ // .text(json.categoryName)
139
+ // .attr('selected', 'selected');
140
+ //
141
+ // $('select[name="category"]').append($option).change();
142
+ //
143
+ // });
144
+ // }
145
+ //};
146
+ //
147
+ //var init = function() {
148
+ // $('.wpProQuiz_delete').click(function(e) {
149
+ // var b = confirm(wpProQuizLocalize.delete_msg);
150
+ //
151
+ // if(!b) {
152
+ // e.preventDefault();
153
+ // return false;
154
+ // }
155
+ //
156
+ // return true;
157
+ // });
158
+ //
159
+ // $('.wpProQuiz_import').click(function(e) {
160
+ // e.preventDefault();
161
+ // $('.wpProQuiz_importList').show('fast');
162
+ //
163
+ // $('.wpProQuiz_exportList, .wpProQuiz_setQuizCategoryList').hide();
164
+ // $('.wpProQuiz_exportCheck').hide();
165
+ //
166
+ // });
167
+ //
168
+ // $('.wpProQuiz_export').click(function(e) {
169
+ // e.preventDefault();
170
+ //
171
+ // $('.wpProQuiz_exportList').show('fast');
172
+ // $('.wpProQuiz_exportCheck').show('fast');
173
+ // $('.wpProQuiz_importList, .wpProQuiz_setQuizCategoryList').hide();
174
+ // });
175
+ //
176
+ // $('.wpProQuiz_setQuizCategory').click(function(e) {
177
+ // e.preventDefault();
178
+ //
179
+ // $('.wpProQuiz_setQuizCategoryList').show('fast');
180
+ // $('.wpProQuiz_exportCheck').show('fast');
181
+ // $('.wpProQuiz_importList, .wpProQuiz_exportList').hide();
182
+ // });
183
+ //
184
+ // $('input[name="exportItems"]').change(function() {
185
+ // methods.changeExport(this);
186
+ // });
187
+ //
188
+ // $('input[name="exportItemsAll"]').change(function() {
189
+ // var $input = $('input[name="exportItems"]');
190
+ // if(this.checked)
191
+ // $input.attr('checked', true);
192
+ // else
193
+ // $input.attr('checked', false);
194
+ //
195
+ // $input.change();
196
+ // });
197
+ //
198
+ // $('#exportStart').click(function(e) {
199
+ //
200
+ // if(!methods.startExport())
201
+ // e.preventDefault();
202
+ // });
203
+ //
204
+ // $('#setCategoriesStart').click(function(e) {
205
+ //
206
+ // if(!methods.setCategoriesStart())
207
+ // e.preventDefault();
208
+ // });
209
+ //
210
+ // $('select[name="category"]').change(function() {
211
+ // var $this = $(this);
212
+ // var box = $('#categoryAddBox').hide();
213
+ //
214
+ //
215
+ // if($this.val() == "-1") {
216
+ // box.show();
217
+ // }
218
+ //
219
+ // }).change();
220
+ //
221
+ // $('#categoryAddBtn').click(function() {
222
+ // methods.addCategory();
223
+ // });
224
+ //};
225
+ //
226
+ //init();
227
  };
228
 
229
  // $.fn.wpProQuiz_questionEdit = function() {
558
  // setup();
559
  // };
560
 
561
+ //$.fn.wpProQuiz_questionOverall = function() {
562
+ //
563
+ // var methode = {
564
+ // saveSort: function() {
565
+ //
566
+ // var data = {
567
+ // action: 'wp_pro_quiz_update_sort',
568
+ // sort: methode.parseSortArray()
569
+ // };
570
+ //
571
+ // var location = window.location.pathname + window.location.search;
572
+ // var url = location.replace('admin.php', 'admin-ajax.php') + '&action=save_sort';
573
+ //
574
+ // $.post(url, data, function(response) {
575
+ // $('#sortMsg').show(400).delay(1000).hide(400);
576
+ // });
577
+ // },
578
+ //
579
+ // parseSortArray: function() {
580
+ // var array = new Array();
581
+ //
582
+ // $('tbody tr').each(function() {
583
+ // array.push(this.id.replace('wpProQuiz_questionId_', ''));
584
+ // });
585
+ //
586
+ // return array;
587
+ // },
588
+ //
589
+ // sortUpdate: function(e, ui) {
590
+ // $('.wpProQuiz_questionOverall tbody').children().each(function() {
591
+ // $t = $(this).children().first().text($(this).index() + 1);
592
+ // });
593
+ // },
594
+ //
595
+ // loadQuestionCopy: function() {
596
+ // var list = $('#questionCopySelect');
597
+ // var location = window.location.pathname + window.location.search;
598
+ // var url = location.replace('admin.php', 'admin-ajax.php') + '&action=load_question';
599
+ // var data = {
600
+ // action: 'wp_pro_quiz_load_question',
601
+ // excludeId: 1
602
+ // };
603
+ //
604
+ // list.hide();
605
+ // list.empty();
606
+ //
607
+ // $('#loadDataImg').show();
608
+ //
609
+ // $.post(
610
+ // url,
611
+ // data,
612
+ // function(json) {
613
+ // $.each(json, function(i, v) {
614
+ //
615
+ // var group = $(document.createElement('optgroup'));
616
+ //
617
+ // group.attr('label', v.name);
618
+ //
619
+ // $.each(v.question, function(qi, qv) {
620
+ // $(document.createElement('option'))
621
+ // .val(qv.id)
622
+ // .text(qv.name)
623
+ // .appendTo(group);
624
+ //
625
+ //
626
+ // });
627
+ //
628
+ // list.append(group);
629
+ //
630
+ // });
631
+ //
632
+ // $('#loadDataImg').hide();
633
+ // list.show();
634
+ // },
635
+ // 'json'
636
+ // );
637
+ // }
638
+ // };
639
+ //
640
+ // var init = function() {
641
+ // $('.wp-list-table tbody').sortable({ handle: '.wpProQuiz_move', update: methode.sortUpdate });
642
+ //
643
+ // $('.wpProQuiz_delete').click(function(e) {
644
+ // var b = confirm(wpProQuizLocalize.delete_msg);
645
+ //
646
+ // if(!b) {
647
+ // e.preventDefault();
648
+ // return false;
649
+ // }
650
+ //
651
+ // return true;
652
+ // });
653
+ //
654
+ // $('#wpProQuiz_saveSort').click(function(e) {
655
+ // e.preventDefault();
656
+ // methode.saveSort();
657
+ // });
658
+ //
659
+ // $('#wpProQuiz_questionCopy').click(function(e) {
660
+ // var $this = $('.wpProQuiz_questionCopy');
661
+ //
662
+ // if($this.is(':visible')) {
663
+ // $this.hide();
664
+ // } else {
665
+ // $this.show();
666
+ // methode.loadQuestionCopy();
667
+ // }
668
+ //
669
+ // e.preventDefault();
670
+ // });
671
+ // };
672
+ //
673
+ // init();
674
+ //};
675
 
676
  $.fn.wpProQuiz_quizEdit = function() {
677
 
1706
  // if($('.wpProQuiz_questionEdit').length)
1707
  // $('.wpProQuiz_questionEdit').wpProQuiz_questionEdit();
1708
 
1709
+ //if($('.wpProQuiz_questionOverall').length)
1710
+ // $('.wpProQuiz_questionOverall').wpProQuiz_questionOverall();
1711
 
1712
  // if($('.wpProQuiz_statistics').length)
1713
  // $('.wpProQuiz_statistics').wpProQuiz_statistics();
js/wpProQuiz_admin.min.js CHANGED
@@ -1,92 +1,83 @@
1
- jQuery(document).ready(function(a){function q(c,e){var d={onChange:null},b={contain:null,pageLeft:null,pageRight:null,currentPage:null},h=function(){var a=b.currentPage.children().length,f=Number(b.currentPage.val());b.pageLeft.hide();b.pageRight.hide();1<f&&b.pageLeft.show();f+1<=a&&b.pageRight.show()};this.getCurrentPage=function(){return b.currentPage.val()};this.setNumPage=function(c){b.currentPage.empty();for(var f=1;f<=c;f++)a(document.createElement("option")).val(f).text(f).appendTo(b.currentPage);
2
- h()};(function(){a.extend(b,{contain:c,pageLeft:c.find(".navigationLeft"),pageRight:c.find(".navigationRight"),currentPage:c.find(".navigationCurrentPage")});a.extend(d,e);b.pageLeft.click(function(){b.currentPage.val(Number(b.currentPage.val())-1);h();if(d.onChange)d.onChange(b.currentPage.val())});b.pageRight.click(function(){b.currentPage.val(Number(b.currentPage.val())+1);h();if(d.onChange)d.onChange(b.currentPage.val())});b.currentPage.change(function(){h();if(d.onChange)d.onChange(b.currentPage.val())})})()}
3
- a.fn.wpProQuiz_preview=function(){var c={openPreview:function(c){window.open(a(c).attr("href"),"wpProQuizPreview","width=900,height=900")}};(function(){a(".wpProQuiz_prview").click(function(a){c.openPreview(this);a.preventDefault()})})()};a.fn.wpProQuiz_quizOverall=function(){function c(b){b=a.trim(b);return!b||0===b.length}function e(b,c,d){a.post(ajaxurl,{action:"wp_pro_quiz_admin_ajax",func:b,data:c},d,"json")}var d={changeExport:function(b){$input=a(b);$export=a(".wpProQuiz_exportList");$export2=
4
- a(".wpProQuiz_setQuizCategoryList");$ul=$export.find("ul").first();$ul2=$export2.find("ul").first();$export.find("li").remove();$export2.find("li").remove();a('input[name="exportItems"]').each(function(){$this=a(this);if(this.checked){var b=$this.parent().parent().find(".wpProQuiz_quizName a:eq(0)").text();a("<li>"+b+"</li>").appendTo($ul);a("<li>"+b+"</li>").appendTo($ul2)}})},startExport:function(){$ele=a('input[name="exportItems"]:checked');if(1>$ele.length)return alert(wpProQuizLocalize.no_selected_quiz),
5
- !1;$hidden=a("#exportHidden");$hidden.html("");a('input[name="exportItems"]').each(function(){$this=a(this);this.checked&&a('<input type="hidden" value="'+this.value+'" name="exportIds[]">').appendTo($hidden)});return!0},setCategoriesStart:function(){$ele=a('input[name="exportItems"]:checked');if(1>$ele.length)return alert(wpProQuizLocalize.no_selected_quiz),!1;var b=[];a('input[name="exportItems"]').each(function(){$this=a(this);this.checked&&b.push(this.value)});var c={categoryId:a('select[name="category"]').val(),
6
- quizIds:b};a("#ajaxLoad").show();e("setQuizMultipleCategories",c,function(a){location.reload()});return!0},addCategory:function(){var b=a.trim(a('input[name="categoryAdd"]').val());c(b)||e("categoryAdd",{categoryName:b,type:"quiz"},function(b){b.err?a("#categoryMsgBox").text(b.err).show("fast").delay(2E3).hide("fast"):(b=a(document.createElement("option")).val(b.categoryId).text(b.categoryName).attr("selected","selected"),a('select[name="category"]').append(b).change())})}};(function(){a(".wpProQuiz_delete").click(function(a){return confirm(wpProQuizLocalize.delete_msg)?
7
- !0:(a.preventDefault(),!1)});a(".wpProQuiz_import").click(function(b){b.preventDefault();a(".wpProQuiz_importList").show("fast");a(".wpProQuiz_exportList, .wpProQuiz_setQuizCategoryList").hide();a(".wpProQuiz_exportCheck").hide()});a(".wpProQuiz_export").click(function(b){b.preventDefault();a(".wpProQuiz_exportList").show("fast");a(".wpProQuiz_exportCheck").show("fast");a(".wpProQuiz_importList, .wpProQuiz_setQuizCategoryList").hide()});a(".wpProQuiz_setQuizCategory").click(function(b){b.preventDefault();
8
- a(".wpProQuiz_setQuizCategoryList").show("fast");a(".wpProQuiz_exportCheck").show("fast");a(".wpProQuiz_importList, .wpProQuiz_exportList").hide()});a('input[name="exportItems"]').change(function(){d.changeExport(this)});a('input[name="exportItemsAll"]').change(function(){var b=a('input[name="exportItems"]');this.checked?b.attr("checked",!0):b.attr("checked",!1);b.change()});a("#exportStart").click(function(a){d.startExport()||a.preventDefault()});a("#setCategoriesStart").click(function(a){d.setCategoriesStart()||
9
- a.preventDefault()});a('select[name="category"]').change(function(){var b=a(this),c=a("#categoryAddBox").hide();"-1"==b.val()&&c.show()}).change();a("#categoryAddBtn").click(function(){d.addCategory()})})()};a.fn.wpProQuiz_questionOverall=function(){var c={saveSort:function(){var e={action:"wp_pro_quiz_update_sort",sort:c.parseSortArray()},d=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=save_sort";a.post(d,e,function(b){a("#sortMsg").show(400).delay(1E3).hide(400)})},
10
- parseSortArray:function(){var c=[];a("tbody tr").each(function(){c.push(this.id.replace("wpProQuiz_questionId_",""))});return c},sortUpdate:function(c,d){a(".wpProQuiz_questionOverall tbody").children().each(function(){$t=a(this).children().first().text(a(this).index()+1)})},loadQuestionCopy:function(){var c=a("#questionCopySelect"),d=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=load_question";c.hide();c.empty();a("#loadDataImg").show();a.post(d,
11
- {action:"wp_pro_quiz_load_question",excludeId:1},function(b){a.each(b,function(b,d){var f=a(document.createElement("optgroup"));f.attr("label",d.name);a.each(d.question,function(b,c){a(document.createElement("option")).val(c.id).text(c.name).appendTo(f)});c.append(f)});a("#loadDataImg").hide();c.show()},"json")}};(function(){a(".wp-list-table tbody").sortable({handle:".wpProQuiz_move",update:c.sortUpdate});a(".wpProQuiz_delete").click(function(a){return confirm(wpProQuizLocalize.delete_msg)?!0:(a.preventDefault(),
12
- !1)});a("#wpProQuiz_saveSort").click(function(a){a.preventDefault();c.saveSort()});a("#wpProQuiz_questionCopy").click(function(e){var d=a(".wpProQuiz_questionCopy");d.is(":visible")?d.hide():(d.show(),c.loadQuestionCopy());e.preventDefault()})})()};a.fn.wpProQuiz_quizEdit=function(){function c(b,c,d){a.post(ajaxurl,{action:"wp_pro_quiz_admin_ajax",func:b,data:c},d,"json")}var e={addCategory:function(){var b=a.trim(a('input[name="categoryAdd"]').val());d(b)||c("categoryAdd",{categoryName:b,type:"quiz"},
13
- function(b){b.err?a("#categoryMsgBox").text(b.err).show("fast").delay(2E3).hide("fast"):(b=a(document.createElement("option")).val(b.categoryId).text(b.categoryName).attr("selected","selected"),a('select[name="category"]').append(b).change())})},addResult:function(){a("#resultList").children().each(function(){if("none"==a(this).css("display")){var b=a(this),c=b.find('textarea[name="resultTextGrade[text][]"]'),d=c.attr("id"),f=!0;b.find('input[name="resultTextGrade[prozent][]"]').val("0");b.find('input[name="resultTextGrade[activ][]"]').val("1").keyup();
14
- void 0==tinymce.editors[d]||tinymce.editors[d].isHidden()||(f=!1);void 0==switchEditors||f||(switchEditors.go(d,"toggle"),switchEditors.go(d,"toggle"));void 0!=tinymce.editors[d]?tinymce.editors[d].setContent(""):c.val("");void 0==tinymce.editors[d]||f||tinyMCE.execCommand("mceRemoveControl",!1,d);b.parent().children(":visible").last().after(b);void 0==tinymce.editors[d]||f||tinyMCE.execCommand("mceAddControl",!1,d);a(this).show();void 0==switchEditors||f||switchEditors.go(d,"toggle");return!1}})},
15
- deleteResult:function(b){a(b).parent().parent().hide();a(b).siblings('input[name="resultTextGrade[activ][]"]').val("0")},changeResult:function(b){b=a(b);if(e.validResultInput(b.val()))return b.siblings(".resultProzent").text(b.val()),b.removeAttr("style"),!0;b.css("background-color","#FF9696");return!1},validResultInput:function(a){if(d(a))return!1;a=a.replace(/\,/,".");return!isNaN(a)&&100>=Number(a)&&0<=Number(a)?null!=a.match(/\./)?3>a.split(".")[1].length:!0:!1},validInput:function(){if(d(a("#wpProQuiz_title").val()))return alert(wpProQuizLocalize.no_title_msg),
16
- !1;var b="",b=void 0==tinymce.editors.text||tinymce.editors.text.isHidden()?a('textarea[name="text"]').val():tinymce.editors.text.getContent();if(d(b))return alert(wpProQuizLocalize.no_quiz_start_msg),!1;if(a("#wpProQuiz_resultGradeEnabled:checked").length){var c=!0;a("#resultList").children().each(function(){if(a(this).is(":visible")&&!e.validResultInput(a(this).find('input[name="resultTextGrade[prozent][]"]').val()))return c=!1});if(!c)return alert(wpProQuizLocalize.fail_grade_result),!1}return!0},
17
- resetLock:function(){var b=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php"),b=b.replace("action=edit","action=reset_lock");a.post(b,{action:"wp_pro_quiz_reset_lock"},function(b){a("#resetLockMsg").show("fast").delay(2E3).hide("fast")})},generateFormIds:function(){var b=0;a("#form_table tbody > tr").each(function(){a(this).find('[name^="form[]"]').each(function(){var c=a(this).attr("name").substr(6);a(this).attr("name","form["+b+"]"+c)});++b})},updateFormIds:function(){var b=
18
- -1,c=a(".emailFormVariables option:selected").val(),e=a(".formVariables").empty(),f=a(".emailFormVariables").empty().append('<option value="-1"></option>');-1<a(".emailFormVariables").data("default")&&(c=a(".emailFormVariables").data("default"),a(".emailFormVariables").data("default",-1));a("#form_table tbody > tr").each(function(){a(this).children().first().text(b);var c=a(this).find(".formFieldName").val(),l=a(this).find('[name="form[][type]"] option:selected'),g=a(this).find('[name="form[][fieldname]"]').val();
19
- 1!=a(this).find('input[name="form[][form_delete]"]').val()&&(0<=b&&!d(c)&&e.append(a("<li><span>$form{"+b+"}</span> - "+c+"</li>")),4==l.val()&&f.append(a('<option value="'+b+'">'+g+"</option>")),b++)});a('.emailFormVariables option[value="'+c+'"]').prop("selected",!0)}},d=function(b){b=a.trim(b);return!b||0===b.length};(function(){a("#statistics_on").change(function(){this.checked?a("#statistics_ip_lock_tr").show():a("#statistics_ip_lock_tr").hide()});a(".addResult").click(function(){e.addResult()});
20
- a(".deleteResult").click(function(a){e.deleteResult(this)});a('input[name="resultTextGrade[prozent][]"]').keyup(function(a){e.changeResult(this)}).keydown(function(a){13==a.which&&a.preventDefault()});a("#wpProQuiz_resultGradeEnabled").change(function(){this.checked?(a("#resultGrade").show(),a("#resultNormal").hide()):(a("#resultGrade").hide(),a("#resultNormal").show())});a("#wpProQuiz_save").click(function(b){e.validInput()?e.generateFormIds():b.preventDefault();a('select[name="prerequisiteList[]"] option').attr("selected",
21
- "selected")});a('input[name="template"]').click(function(b){if("0"==a('select[name="templateSaveList"]').val()&&d(a('input[name="templateName"]').val()))return alert(wpProQuizLocalize.temploate_no_name),b.preventDefault(),!1;e.generateFormIds();a('select[name="prerequisiteList[]"] option').attr("selected","selected")});a('select[name="templateSaveList"]').change(function(){var b=a('input[name="templateName"]');"0"==a(this).val()?b.show():b.hide()}).change();a('input[name="quizRunOnce"]').change(function(b){this.checked?
22
- (a("#wpProQuiz_quiz_run_once_type").show(),a('input[name="quizRunOnceType"]:checked').change()):a("#wpProQuiz_quiz_run_once_type").hide()});a('input[name="quizRunOnceType"]').change(function(b){!this.checked||"1"!=this.value&&"3"!=this.value?a("#wpProQuiz_quiz_run_once_cookie").hide():a("#wpProQuiz_quiz_run_once_cookie").show()});a('input[name="resetQuizLock"]').click(function(a){e.resetLock();return!1});a(".wpProQuiz_demoBox a").mouseover(function(b){var c=a(this),d=a("#poststuff").width(),f=c.siblings().outerWidth(!0);
23
- b.pageX+f>d&&(b=jQuery(document).width()-c.parent().offset().left-f-30,a(this).next().css("left",b+"px"));a(this).next().show()}).mouseout(function(){a(this).next().hide()}).click(function(){return!1});a('input[name="showMaxQuestion"]').change(function(){this.checked?a("#wpProQuiz_showMaxBox").show():a("#wpProQuiz_showMaxBox").hide()});a("#btnPrerequisiteAdd").click(function(){a('select[name="quizList"] option:selected').removeAttr("selected").appendTo('select[name="prerequisiteList[]"]')});a("#btnPrerequisiteDelete").click(function(){a('select[name="prerequisiteList[]"] option:selected').removeAttr("selected").appendTo('select[name="quizList"]')});
24
- a('input[name="prerequisite"]').change(function(){this.checked?a("#prerequisiteBox").show():a("#prerequisiteBox").hide()}).change();a('input[name="toplistDataAddMultiple"]').change(function(){this.checked?a("#toplistDataAddBlockBox").show():a("#toplistDataAddBlockBox").hide()}).change();a('input[name="toplistActivated"]').change(function(){this.checked?a("#toplistBox > tr:gt(0)").show():a("#toplistBox > tr:gt(0)").hide()}).change();a('input[name="showReviewQuestion"]').change(function(){this.checked?
25
- a(".wpProQuiz_reviewQuestionOptions").show():a(".wpProQuiz_reviewQuestionOptions").hide()}).change();a("#statistics_on").change();a("#wpProQuiz_resultGradeEnabled").change();a('input[name="quizRunOnce"]').change();a('input[name="quizRunOnceType"]:checked').change();a('input[name="showMaxQuestion"]').change();a("#form_add").click(function(){a("#form_table tbody > tr:eq(0)").clone(!0).appendTo("#form_table tbody").show();e.updateFormIds()});a('input[name="form_delete"]').click(function(){var b=a(this).parents("tr");
26
- "0"!=b.find('input[name="form[][form_id]"]').val()?(b.find('input[name="form[][form_delete]"]').val(1),b.hide()):b.remove();e.updateFormIds()});a("#form_table tbody").sortable({handle:".form_move",update:e.updateFormIds});a(".form_move").click(function(){return!1});a('select[name="form[][type]"]').change(function(){switch(Number(a(this).val())){case 7:case 8:a(this).siblings(".editDropDown").show();break;default:a(this).siblings(".editDropDown, .dropDownEditBox").hide()}}).change();a(".editDropDown").click(function(){a(".dropDownEditBox").not(a(this).siblings(".dropDownEditBox").toggle()).hide();
27
- return!1});a(".dropDownEditBox input").click(function(){a(this).parent().hide()});a('.formFieldName, select[name="form[][type]"]').change(function(){e.updateFormIds()});a('select[name="category"]').change(function(){var b=a(this),c=a("#categoryAddBox").hide();"-1"==b.val()&&c.show()}).change();a("#categoryAddBtn").click(function(){e.addCategory()});a('input[name="emailNotification"]').change(function(){var b=a("#adminEmailSettings tr:gt(0)");0<a('input[name="emailNotification"]:checked').val()?b.show():
28
- b.hide()}).change();a('input[name="userEmailNotification"]').change(function(){var b=a("#userEmailSettings tr:gt(0)");0<a('input[name="userEmailNotification"]:checked').val()?b.show():b.hide()}).change();e.updateFormIds();a('input[name="email[html]"]').change(function(){if(void 0==switchEditors)return!1;this.checked?switchEditors.go("adminEmailEditor","tmce"):switchEditors.go("adminEmailEditor","html")}).change();a('input[name="userEmail[html]"]').change(function(){if(void 0==switchEditors)return!1;
29
- this.checked?switchEditors.go("userEmailEditor","tmce"):switchEditors.go("userEmailEditor","html")}).change()})()};a.fn.wpProQuiz_statistics=function(){var c="wpProQuiz_typeAnonymeUser",e=!0,d={loadStatistics:function(b){var c=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=load_statistics";b={action:"wp_pro_quiz_load_statistics",userId:b};a("#wpProQuiz_loadData").show();a("#wpProQuiz_statistics_content, #wpProQuiz_statistics_overview").hide();a.post(c,
30
- b,d.setStatistics,"json")},setStatistics:function(b){var d=a(".wpProQuiz_statistics_table"),e=d.find("tbody");if("wpProQuiz_typeOverview"!=c){var f=function(a,b,f){a.find(".wpProQuiz_cCorrect").text(b.cCorrect+" ("+b.pCorrect+"%)");a.find(".wpProQuiz_cIncorrect").text(b.cIncorrect+" ("+b.pIncorrect+"%)");a.find(".wpProQuiz_cTip").text(b.cTip);a.find(".wpProQuiz_cPoints").text(b.cPoints);1==f&&d.find(".wpProQuiz_cResult").text(b.result+"%")};f(d,b.clear,!1);a.each(b.items,function(a,b){f(e.find("#wpProQuiz_tr_"+
31
- b.id),b,!1)});f(d.find("tfoot"),b.global,!0);a("#wpProQuiz_loadData").hide();a("#wpProQuiz_statistics_content, .wpProQuiz_statistics_table").show()}},loadOverview:function(){a(".wpProQuiz_statistics_table, #wpProQuiz_statistics_content, #wpProQuiz_statistics_overview").hide();a("#wpProQuiz_loadData").show();var b=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=load_statistics",h={action:"wp_pro_quiz_load_statistics",overview:!0,pageLimit:a("#wpProQuiz_pageLimit").val(),
32
- onlyCompleted:Number(a("#wpProQuiz_onlyCompleted").is(":checked")),page:a("#wpProQuiz_currentPage").val(),generatePageNav:Number(e)};a.post(b,h,function(b){a("#wpProQuiz_statistics_overview_data").empty();if("wpProQuiz_typeOverview"==c){var f=a('<tr><th><a href="#">---</a></th><th class="wpProQuiz_points">---</th><th class="wpProQuiz_cCorrect" style="color: green;">---</th><th class="wpProQuiz_cIncorrect" style="color: red;">---</th><th class="wpProQuiz_cTip">---</th><th class="wpProQuiz_cResult" style="font-weight: bold;">---</th></tr>');
33
- a.each(b.items,function(b,c){var d=f.clone();d.find("a").text(c.userName).data("userId",c.userId).click(function(){a("#userSelect").val(a(this).data("userId"));a("#wpProQuiz_typeRegisteredUser").click();return!1});c.completed?(d.find(".wpProQuiz_points").text(c.cPoints),d.find(".wpProQuiz_cCorrect").text(c.cCorrect+" ("+c.pCorrect+"%)"),d.find(".wpProQuiz_cIncorrect").text(c.cIncorrect+" ("+c.pIncorrect+"%)"),d.find(".wpProQuiz_cTip").text(c.cTip),d.find(".wpProQuiz_cResult").text(c.result+"%")):
34
- d.find("th").removeAttr("style");a("#wpProQuiz_statistics_overview_data").append(d)});void 0!=b.page&&(d.setPageNav(b.page),e=!1);a("#wpProQuiz_loadData").hide();a("#wpProQuiz_statistics_overview").show()}},"json")},loadFormOverview:function(){a("#wpProQuiz_tabFormOverview").show()},changeTab:function(b){c=b;"wpProQuiz_typeRegisteredUser"==b?d.loadStatistics(a("#userSelect").val()):"wpProQuiz_typeAnonymeUser"==b?d.loadStatistics(0):"wpProQuiz_typeForm"==b?d.loadFormOverview():d.loadOverview()},resetStatistic:function(b){var e=
35
- "wpProQuiz_typeRegisteredUser"==c?a("#userSelect").val():0,n=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=reset";a.post(n,{action:"wp_pro_quiz_statistics",userId:e,complete:b},function(a){d.changeTab(c)})},setPageNav:function(b){b=Math.ceil(b/a("#wpProQuiz_pageLimit").val());a("#wpProQuiz_currentPage").empty();for(var c=1;c<=b;c++)a(document.createElement("option")).val(c).text(c).appendTo(a("#wpProQuiz_currentPage"));a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").hide();
36
  1<a("#wpProQuiz_currentPage option").length&&a("#wpProQuiz_pageRight").show()}};(function(){a(".wpProQuiz_tab").click(function(b){b=a(this);if(b.hasClass("button-primary"))return!1;"wpProQuiz_typeRegisteredUser"==b.attr("id")?a("#wpProQuiz_userBox").show():a("#wpProQuiz_userBox").hide();a(".wpProQuiz_tab").removeClass("button-primary").addClass("button-secondary");b.removeClass("button-secondary").addClass("button-primary");d.changeTab(b.attr("id"));return!1});a("#userSelect").change(function(){d.changeTab("wpProQuiz_typeRegisteredUser")});
37
- a(".wpProQuiz_update").click(function(){d.changeTab(c);return!1});a("#wpProQuiz_reset").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&d.resetStatistic(!1);return!1});a(".wpProQuiz_resetComplete").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&d.resetStatistic(!0);return!1});a("#wpProQuiz_pageLimit, #wpProQuiz_onlyCompleted").change(function(){a("#wpProQuiz_currentPage").val(0);e=!0;d.changeTab(c);return!1});a("#wpProQuiz_currentPage").change(function(){a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").hide();
38
  1!=a("#wpProQuiz_currentPage option").length&&(a("#wpProQuiz_currentPage option:first-child:selected").length?a("#wpProQuiz_pageRight").show():a("#wpProQuiz_currentPage option:last-child:selected").length?a("#wpProQuiz_pageLeft").show():a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").show());d.changeTab(c)});a("#wpProQuiz_pageRight").click(function(){a("#wpProQuiz_currentPage option:selected").next().attr("selected","selected");a("#wpProQuiz_currentPage").change();return!1});a("#wpProQuiz_pageLeft").click(function(){a("#wpProQuiz_currentPage option:selected").prev().attr("selected",
39
- "selected");a("#wpProQuiz_currentPage").change();return!1});d.changeTab("wpProQuiz_typeAnonymeUser")})()};a.fn.wpProQuiz_toplist=function(){var c=a("#wpProQuiz_sorting"),e=a("#wpProQuiz_pageLimit"),d=a("#wpProQuiz_currentPage"),b=a("#wpProQuiz_loadData"),h=a("#wpProQuiz_pageLeft"),n=a("#wpProQuiz_pageRight"),f=a("#wpProQuiz_toplistTable tbody"),p=a("#wpProQuiz_toplistTable tbody tr:eq(0)").clone(),l=a("#wpProQuiz_content"),g={loadData:function(f){var p=(window.location.pathname+window.location.search).replace("admin.php",
40
- "admin-ajax.php")+"&action=load_toplist",k=this,s={action:"wp_pro_quiz_load_toplist",sort:c.val(),limit:e.val(),page:d.val()};void 0!=f&&a.extend(s,f);b.show();l.hide();a.post(p,s,function(a){k.handleDataRequest(a.data);void 0!=a.nav&&k.handleNav(a.nav);b.hide();l.show()},"json")},handleNav:function(b){d.empty();for(var f=1;f<=b.pages;f++)a(document.createElement("option")).val(f).text(f).appendTo(d);this.checkNav()},handleDataRequest:function(b){var c=this;f.empty();a.each(b,function(a,b){var c=
41
- p.clone().children();c.eq(0).children().val(b.id);c.eq(1).find("strong").text(b.name);c.eq(1).find(".inline_editUsername").val(b.name);c.eq(2).find(".wpProQuiz_email").text(b.email);c.eq(2).find("input").val(b.email);c.eq(3).text(b.type);c.eq(4).text(b.date);c.eq(5).text(b.points);c.eq(6).text(b.result);c.parent().show().appendTo(f)});b.length||a(document.createElement("td")).attr("colspan","7").text(wpProQuizLocalize.no_data_available).css({"font-weight":"bold","text-align":"center",padding:"5px"}).appendTo(document.createElement("tr")).appendTo(f);
42
  a(".wpProQuiz_delete").click(function(){if(confirm(wpProQuizLocalize.confirm_delete_entry)){var b=Array(a(this).closest("tr").find('input[name="checkedData[]"]').val());c.loadData({a:"delete",toplistIds:b})}return!1});a(".wpProQuiz_edit").click(function(){var b=a(this).closest("tr");b.find(".row-actions").hide();b.find(".inline-edit").show();b.find(".wpProQuiz_username, .wpProQuiz_email").hide();b.find(".inline_editUsername, .inline_editEmail").show();return!1});a(".inline_editSave").click(function(){var b=
43
- a(this).closest("tr"),f=b.find(".inline_editUsername").val(),d=b.find(".inline_editEmail").val();if(c.isEmpty(f)||c.isEmpty(d))return alert(wpProQuizLocalize.not_all_fields_completed),!1;c.loadData({a:"edit",toplistId:b.find('input[name="checkedData[]"]').val(),name:f,email:d});return!1});a(".inline_editCancel").click(function(){var b=a(this).closest("tr");b.find(".row-actions").show();b.find(".inline-edit").hide();b.find(".wpProQuiz_username, .wpProQuiz_email").show();b.find(".inline_editUsername, .inline_editEmail").hide();
44
- b.find(".inline_editUsername").val(b.find(".wpProQuiz_username").text());b.find(".inline_editEmail").val(b.find(".wpProQuiz_email").text());return!1})},checkNav:function(){var a=d.val();1==a?h.hide():h.show();a==d.children().length?n.hide():n.show()},isEmpty:function(b){b=a.trim(b);return!b||0===b.length}};(function(){c.change(function(){g.loadData()});e.change(function(){g.loadData({nav:1})});d.change(function(){g.checkNav();g.loadData()});h.click(function(){d.val(Number(d.val())-1);g.checkNav();
45
- g.loadData()});n.click(function(){d.val(Number(d.val())+1);g.checkNav();g.loadData()});a("#wpProQuiz_deleteAll").click(function(){g.loadData({a:"deleteAll"})});a("#wpProQuiz_action").click(function(){var b=a("#wpProQuiz_actionName").val();if("0"!=b){var f=a('input[name="checkedData[]"]:checked').map(function(){return a(this).val()}).get();g.loadData({a:b,toplistIds:f})}});a("#wpProQuiz_checkedAll").change(function(){this.checked?a('input[name="checkedData[]"]').attr("checked","checked"):a('input[name="checkedData[]"]').removeAttr("checked",
46
- "checked")});g.loadData({nav:1})})()};a(".wpProQuiz_quizOverall").length&&a(".wpProQuiz_quizOverall").wpProQuiz_preview();a(".wpProQuiz_quizOverall").length&&a(".wpProQuiz_quizOverall").wpProQuiz_quizOverall();a(".wpProQuiz_quizEdit").length&&a(".wpProQuiz_quizEdit").wpProQuiz_quizEdit();a(".wpProQuiz_questionOverall").length&&a(".wpProQuiz_questionOverall").wpProQuiz_questionOverall();a(".wpProQuiz_toplist").length&&a(".wpProQuiz_toplist").wpProQuiz_toplist();(function(){var c=this,c={displayChecked:function(a,
47
- b,c,d){a=c?!a.checked:a.checked;d?a?b.attr("disabled","disabled"):b.removeAttr("disabled"):a?b.show():b.hide()},isEmpty:function(b){b=a.trim(b);return!b||0===b.length},isNumber:function(b){b=a.trim(b);return!c.isEmpty(b)&&!isNaN(b)},getMceContent:function(b){var c=tinymce.editors[b];return void 0==c||c.isHidden()?a("#"+b).val():c.getContent()},ajaxPost:function(b,c,d){a.post(ajaxurl,{action:"wp_pro_quiz_admin_ajax",func:b,data:c},d,"json")}},e=function(){a(".wpProQuiz_tab_wrapper a").click(function(){var b=
48
- a(this),c=b.data("tab"),d=b.siblings(".button-primary").removeClass("button-primary").addClass("button-secondary");b.removeClass("button-secondary").addClass("button-primary");a(d.data("tab")).hide("fast");a(c).show("fast");a(document).trigger({type:"changeTab",tabId:c});return!1})},d=function(){var b={categoryDelete:function(b,f){c.ajaxPost("categoryDelete",{categoryId:b},function(c){c.err||(a('select[name="category'+f+'"] option[value="'+b+'"]').remove(),a('select[name="category'+f+'"]').change())})},
49
- categoryEdit:function(b,f,d){var e={categoryId:b,categoryName:a.trim(f)};c.isEmpty(f)?alert(wpProQuizLocalize.category_no_name):c.ajaxPost("categoryEdit",e,function(c){c.err||(a('select[name="category'+d+'"] option[value="'+b+'"]').text(e.categoryName),a('select[name="category'+d+'"]').change())})},changeTimeFormat:function(b,c){"0"!=c.val()&&a('input[name="'+b+'"]').val(c.val())},templateDelete:function(b,f){c.ajaxPost("templateDelete",{templateId:b,type:f},function(c){c.err||(f?(a('select[name="templateQuestion"] option[value="'+
50
- b+'"]').remove(),a('select[name="templateQuestion"]').change()):(a('select[name="templateQuiz"] option[value="'+b+'"]').remove(),a('select[name="templateQuiz"]').change()))})},templateEdit:function(b,f,d){if(c.isEmpty(f))alert(wpProQuizLocalize.category_no_name);else{var e={templateId:b,name:a.trim(f),type:d};c.ajaxPost("templateEdit",e,function(c){c.err||(d?(a('select[name="templateQuestion"] option[value="'+b+'"]').text(e.name),a('select[name="templateQuestion"]').change()):(a('select[name="templateQuiz"] option[value="'+
51
- b+'"]').text(e.name),a('select[name="templateQuiz"]').change()))})}}};(function(){a('select[name="category"]').change(function(){a('input[name="categoryEditText"]').val(a(this).find(":selected").text())}).change();a('input[name="categoryDelete"]').click(function(){var c=a('select[name="category"] option:selected').val();b.categoryDelete(c,"")});a('input[name="categoryEdit"]').click(function(){var c=a('select[name="category"] option:selected').val(),d=a('input[name="categoryEditText"]').val();b.categoryEdit(c,
52
- d,"")});a('select[name="categoryQuiz"]').change(function(){a('input[name="categoryQuizEditText"]').val(a(this).find(":selected").text())}).change();a('input[name="categoryQuizDelete"]').click(function(){var c=a('select[name="categoryQuiz"] option:selected').val();b.categoryDelete(c,"Quiz")});a('input[name="categoryQuizEdit"]').click(function(){var c=a('select[name="categoryQuiz"] option:selected').val(),d=a('input[name="categoryQuizEditText"]').val();b.categoryEdit(c,d,"Quiz")});a("#statistic_time_format_select").change(function(){b.changeTimeFormat("statisticTimeFormat",
53
- a(this))});a(document).bind("changeTab",function(b){a("#problemInfo").hide("fast");switch(b.tabId){case "#problemContent":a("#problemInfo").show("fast")}});a('input[name="email[html]"]').change(function(){if(void 0==switchEditors)return!1;this.checked?switchEditors.go("adminEmailEditor","tmce"):switchEditors.go("adminEmailEditor","html")}).change();a('input[name="userEmail[html]"]').change(function(){if(void 0==switchEditors)return!1;this.checked?switchEditors.go("userEmailEditor","tmce"):switchEditors.go("userEmailEditor",
54
- "html")}).change();a('select[name="templateQuiz"]').change(function(){a('input[name="templateQuizEditText"]').val(a(this).find(":selected").text())}).change();a('select[name="templateQuestion"]').change(function(){a('input[name="templateQuestionEditText"]').val(a(this).find(":selected").text())}).change();a('input[name="templateQuizDelete"]').click(function(){var c=a('select[name="templateQuiz"] option:selected').val();b.templateDelete(c,0)});a('input[name="templateQuestionDelete"]').click(function(){var c=
55
- a('select[name="templateQuestion"] option:selected').val();b.templateDelete(c,1)});a('input[name="templateQuizEdit"]').click(function(){var c=a('select[name="templateQuiz"] option:selected').val(),d=a('input[name="templateQuizEditText"]').val();b.templateEdit(c,d,0)});a('input[name="templateQuestionEdit"]').click(function(){var c=a('select[name="templateQuestion"] option:selected').val(),d=a('input[name="templateQuestionEditText"]').val();b.templateEdit(c,d,1)})})()},b=function(){var b=this,d=a.noop(),
56
- e=a(".answer_felder > div"),g=a('input[name="answerPointsActivated"]'),r=a('input[name="points"]'),b={generateArrayIndex:function(){var b=a('input[name="answerType"]:checked').val(),b="single"==b||"multiple"==b?"classic_answer":b;a(".answerList").each(function(){var c=a(this).parent().attr("class");a(this).children().each(function(f,d){a(this).find('[name^="answerData"]').each(function(){var a=this.name,d=a.search(/\](\[\w+\])+$/),e=b==c?f:"none";0<d&&(this.name="answerData["+e+a.substring(d,a.length))})})})},
57
- globalValidate:function(){if(c.isEmpty(c.getMceContent("question")))return alert(wpProQuizLocalize.no_question_msg),!1;if(!g.is(":checked")){var b=r.val();if(!c.isNumber(b)||1>b)return alert(wpProQuizLocalize.no_nummber_points),!1}else if("free_answer"==a('input[name="answerType"]:checked').val())return alert(wpProQuizLocalize.dif_points),!1;return!1===d()?!1:!0},answerRemove:function(){var b=a(this).parent();if(2>b.parent().children().length)return!1;b.remove();return!1},addCategory:function(){var b=
58
- a.trim(a('input[name="categoryAdd"]').val());c.isEmpty(b)||c.ajaxPost("categoryAdd",{categoryName:b},function(b){b.err?a("#categoryMsgBox").text(b.err).show("fast").delay(2E3).hide("fast"):(b=a(document.createElement("option")).val(b.categoryId).text(b.categoryName).attr("selected","selected"),a('select[name="category"]').append(b).change())})},addMediaClick:function(){if("function"!=typeof tb_show)return!1;var b=a(this).closest("li"),c=b.find('input[name="answerData[][html]"]:eq(0)'),f=b.find(".wpProQuiz_text:eq(0)");
59
- window.org_send_to_editor=window.send_to_editor;var d=tb_remove;window.send_to_editor=function(b){b=a("img",b)[0].outerHTML;f.val(f.val()+b);c.attr("checked",!0);tb_remove();window.send_to_editor=window.org_send_to_editor};window.tb_remove=function(){window.send_to_editor=window.org_send_to_editor;tb_remove=d;tb_remove()};tb_show("","media-upload.php?type=image&TB_iframe=true")}},h={classic_answer:function(){var b=0,f=0,d=0;a(".classic_answer .answerList").children().each(function(){var e=a(this);
60
- c.isEmpty(e.find('textarea[name="answerData[][answer]"]').val())||(b++,e.find('input[name="answerData[][correct]"]:checked').length&&f++,e=e.find('input[name="answerData[][points]"]').val(),c.isNumber(e)&&0<=e&&d++)});return b?f||a('input[name="disableCorrect"]').is(":checked")&&a('input[name="answerPointsDiffModusActivated"]').is(":checked")&&a('input[name="answerPointsActivated"]').is(":checked")&&"single"==a('input[name="answerType"]:checked').val()?d!=b&&g.is(":checked")?(alert(wpProQuizLocalize.no_nummber_points_new),
61
- !1):!0:(alert(wpProQuizLocalize.no_correct_msg),!1):(alert(wpProQuizLocalize.no_answer_msg),!1)},free_answer:function(){return c.isEmpty(a('.free_answer textarea[name="answerData[][answer]"]').val())?(alert(wpProQuizLocalize.no_answer_msg),!1):!0},cloze_answer:function(){return c.isEmpty(c.getMceContent("cloze"))?(alert(wpProQuizLocalize.no_answer_msg),!1):!0},sort_answer:function(){var b=0,f=0;a(".sort_answer .answerList").children().each(function(){var d=a(this);c.isEmpty(d.find('textarea[name="answerData[][answer]"]').val())||
62
- (b++,d=d.find('input[name="answerData[][points]"]').val(),c.isNumber(d)&&0<=d&&f++)});return b?f!=b&&g.is(":checked")?(alert(wpProQuizLocalize.no_nummber_points_new),!1):!0:(alert(wpProQuizLocalize.no_answer_msg),!1)},matrix_sort_answer:function(){var b=0,f=0,d=!0,e=0;a(".matrix_sort_answer .answerList").children().each(function(){var g=a(this),l=g.find('input[name="answerData[][points]"]').val();c.isEmpty(g.find('textarea[name="answerData[][answer]"]').val())?c.isEmpty(g.find('textarea[name="answerData[][sort_string]"]').val())||
63
- (e++,c.isNumber(l)&&0<=l&&f++):(b++,e++,c.isEmpty(g.find('textarea[name="answerData[][sort_string]"]').val())&&(d=!1),c.isNumber(l)&&0<=l&&f++)});return b?d?f!=e&&g.is(":checked")?(alert(wpProQuizLocalize.no_nummber_points_new),!1):!0:(alert(wpProQuizLocalize.no_sort_element_criterion),!1):(alert(wpProQuizLocalize.no_answer_msg),!1)},assessment_answer:function(){return c.isEmpty(c.getMceContent("assessment"))?(alert(wpProQuizLocalize.no_answer_msg),!1):!0}};e.hide();(function(){a("#wpProQuiz_tip").change(function(){c.displayChecked(this,
64
- a("#wpProQuiz_tipBox"))}).change();a("#wpProQuiz_correctSameText").change(function(){c.displayChecked(this,a("#wpProQuiz_incorrectMassageBox"),!0)}).change();a('input[name="answerType"]').click(function(){e.hide();var b=this.value;"single"==b?(a("#singleChoiceOptions").show(),a('input[name="disableCorrect"]').change()):(a("#singleChoiceOptions").hide(),a(".classic_answer .wpProQuiz_classCorrect").parent().parent().show());if("single"==b||"multiple"==b){var c="single"==b?"radio":"checkbox",b="classic_answer";
65
- a(".wpProQuiz_classCorrect").each(function(){a("<input type="+c+" />").attr({name:this.name,value:this.value,checked:this.checked}).addClass("wpProQuiz_classCorrect wpProQuiz_checkbox").insertBefore(this)}).remove()}d=void 0!=h[b]?h[b]:a.noop();a("."+b).show()});a('input[name="answerType"]:checked').click();a(".deleteAnswer").click(b.answerRemove);a(".addAnswer").click(function(){var c=a(this).siblings("ul"),d=c.find("li:eq(0)").clone();d.find(".wpProQuiz_checkbox").removeAttr("checked");d.find(".wpProQuiz_text").val("");
66
- d.find(".wpProQuiz_points").val(1);d.find(".deleteAnswer").click(b.answerRemove);d.find(".addMedia").click(b.addMediaClick);d.appendTo(c);return!1});a(".sort_answer ul, .classic_answer ul, .matrix_sort_answer ul").sortable({handle:".wpProQuiz_move"});a("#saveQuestion").click(function(){if(!b.globalValidate())return!1;b.generateArrayIndex();return!0});a(g).change(function(){c.displayChecked(this,a(".wpProQuiz_answerPoints"));c.displayChecked(this,a("#wpProQuiz_showPointsBox"));c.displayChecked(this,
67
- r,!1,!0);c.displayChecked(this,a('input[name="answerPointsDiffModusActivated"]'),!0,!0);this.checked?(a('input[name="answerPointsDiffModusActivated"]').change(),a('input[name="disableCorrect"]').change()):(a(".classic_answer .wpProQuiz_classCorrect").parent().parent().show(),a('input[name="disableCorrect"]').attr("disabled","disabled"))}).change();a('select[name="category"]').change(function(){var b=a(this),c=a("#categoryAddBox").hide();"-1"==b.val()&&c.show()}).change();a("#categoryAddBtn").click(function(){b.addCategory()});
68
- a(".addMedia").click(b.addMediaClick);a('input[name="answerPointsDiffModusActivated"]').change(function(){c.displayChecked(this,a('input[name="disableCorrect"]'),!0,!0);this.checked?a('input[name="disableCorrect"]').change():a(".classic_answer .wpProQuiz_classCorrect").parent().parent().show()}).change();a('input[name="disableCorrect"]').change(function(){c.displayChecked(this,a(".classic_answer .wpProQuiz_classCorrect").parent().parent(),!0)}).change();a("#clickPointDia").click(function(){a(".pointDia").toggle("fast");
69
- return!1});a('input[name="template"]').click(function(d){if("0"==a('select[name="templateSaveList"]').val()&&c.isEmpty(a('input[name="templateName"]').val()))return alert(wpProQuizLocalize.temploate_no_name),d.preventDefault(),!1;b.generateArrayIndex()});a('select[name="templateSaveList"]').change(function(){var b=a('input[name="templateName"]');"0"==a(this).val()?b.show():b.hide()}).change()})()},h=function(){var b=this,d=a("#quizId").val(),e="users",g=a("#wpProQuiz_currentPage"),h=a("#wpProQuiz_pageLeft"),
70
- m=a("#wpProQuiz_pageRight"),k=a("#testSelect"),b={loadStatistic:function(a,b){c.ajaxPost("statisticLoad",{userId:a},function(a){})},loadUsersStatistic:function(){var e={userId:a("#userSelect").val(),quizId:d,testId:a("#testSelect").val()};b.toggleLoadBox(!1);c.ajaxPost("statisticLoad",e,function(c){a.each(c.question,function(){var c=a("#wpProQuiz_tr_"+this.questionId);b.setStatisticData(c,this)});a.each(c.category,function(c,d){var e=a("#wpProQuiz_ctr_"+c);b.setStatisticData(e,d)});a("#testSelect option:gt(0)").remove();
71
- var d=a("#testSelect");a.each(c.tests,function(){var b=a(document.createElement("option"));b.val(this.id);b.text(this.date);c.testId==this.id&&b.attr("selected",!0);d.append(b)});b.parseFormData(c.formData);b.toggleLoadBox(!0)})},loadUsersStatistic_:function(e,t){var g={userId:e,quizId:d,testId:t};b.toggleLoadBox(!1);c.ajaxPost("statisticLoad",g,function(c){a.each(c.question,function(){var c=a("#wpProQuiz_tr_"+this.questionId);b.setStatisticData(c,this)});a.each(c.category,function(c,d){var e=a("#wpProQuiz_ctr_"+
72
- c);b.setStatisticData(e,d)});a("#testSelect option:gt(0)").remove();var d=a("#testSelect");a.each(c.tests,function(){var b=a(document.createElement("option"));b.val(this.id);b.text(this.date);c.testId==this.id&&b.attr("selected",!0);d.append(b)});b.parseFormData(c.formData);a("#userSelect").val(e);a("#testSelect").val(t);b.toggleLoadBox(!0)})},parseFormData:function(b){var c=a("#wpProQuiz_form_box");null==b?c.hide():(a.each(b,function(b,c){a("#form_id_"+b).text(c)}),c.show())},setStatisticData:function(a,
73
- b){a.find(".wpProQuiz_cCorrect").text(b.correct);a.find(".wpProQuiz_cIncorrect").text(b.incorrect);a.find(".wpProQuiz_cTip").text(b.hint);a.find(".wpProQuiz_cPoints").text(b.points);a.find(".wpProQuiz_cResult").text(b.result);a.find(".wpProQuiz_cTime").text(b.questionTime);a.find(".wpProQuiz_cCreateTime").text(b.date)},toggleLoadBox:function(b){var c=a("#wpProQuiz_loadData"),d=a("#wpProQuiz_content");b?(c.hide(),d.show()):(d.hide(),c.show())},reset:function(e){var g=a("#userSelect").val();confirm(wpProQuizLocalize.reset_statistics_msg)&&
74
- (e={quizId:d,userId:g,testId:k.val(),type:e},b.toggleLoadBox(!1),c.ajaxPost("statisticReset",e,function(){b.loadUsersStatistic()}))},loadStatisticOverview:function(e){e={quizId:d,pageLimit:a("#wpProQuiz_pageLimit").val(),onlyCompleted:Number(a("#wpProQuiz_onlyCompleted").is(":checked")),page:g.val(),nav:Number(e)};b.toggleLoadBox(!1);c.ajaxPost("statisticLoadOverview",e,function(c){var d=a("#wpProQuiz_statistics_overview_data"),e=d.children(),g=e.first().clone();e.slice(1).remove();a.each(c.items,
75
- function(){var c=g.clone();b.setStatisticData(c,this);c.find("a").text(this.userName).data("userId",this.userId).click(function(){a("#userSelect").val(a(this).data("userId"));a("#wpProQuiz_typeUser").click();return!1});c.show().appendTo(d)});g.remove();b.toggleLoadBox(!0);void 0!=c.page&&b.handleNav(c.page)})},handleNav:function(c){for(var d=a("#wpProQuiz_currentPage").empty(),e=1;e<=c;e++)a(document.createElement("option")).val(e).text(e).appendTo(d);b.checkNavBar()},checkNavBar:function(){var a=
76
- g.val();1==a?h.hide():h.show();a==g.children().length?m.hide():m.show()},refresh:function(){"users"==e?b.loadUsersStatistic():"formOverview"==e?b.loadFormsOverview(!0):b.loadStatisticOverview(!0)},loadFormsOverview:function(e){e={quizId:d,pageLimit:a("#wpProQuiz_fromPageLimit").val(),onlyUser:a("#wpProQuiz_formUser").val(),page:a("#wpProQuiz_formCurrentPage").val(),nav:Number(e)};b.toggleLoadBox(!1);c.ajaxPost("statisticLoadFormOverview",e,function(c){var d=a("#wpProQuiz_statistics_form_data"),e=
77
- d.children(),g=e.first().clone();e.slice(1).remove();a.each(c.items,function(){var c=g.clone();b.setStatisticData(c,this);c.find("a").text(this.userName).data("userId",this.userId).data("testId",this.testId).click(function(){b.switchTabOnLoad("users");b.loadUsersStatistic_(a(this).data("userId"),a(this).data("testId"));return!1});c.show().appendTo(d)});g.remove();b.toggleLoadBox(!0);void 0!=c.page&&b.handleFormNav(c.page)})},handleFormNav:function(c){for(var d=a("#wpProQuiz_formCurrentPage").empty(),
78
- e=1;e<=c;e++)a(document.createElement("option")).val(e).text(e).appendTo(d);b.checkFormNavBar()},checkFormNavBar:function(){var b=a("#wpProQuiz_formCurrentPage").val();1==b?a("#wpProQuiz_formPageLeft").hide():a("#wpProQuiz_formPageLeft").show();b==a("#wpProQuiz_formCurrentPage").children().length?a("#wpProQuiz_formPageRight").hide():a("#wpProQuiz_formPageRight").show()},switchTabOnLoad:function(b){a(".wpProQuiz_tab").removeClass("button-primary").addClass("button-secondary");a(".wpProQuiz_tabContent").hide();
79
- var c=a("#wpProQuiz_typeOverview");"users"==b?(e="users",a("#wpProQuiz_tabUsers").show(),c=a("#wpProQuiz_typeUser")):"formOverview"==b?(e="formOverview",a("#wpProQuiz_tabFormOverview").show(),c=a("#wpProQuiz_typeForm")):(e="overview",a("#wpProQuiz_tabOverview").show());c.removeClass("button-secondary").addClass("button-primary")}};(function(){a("#userSelect, #testSelect").change(function(){b.loadUsersStatistic()});a(".wpProQuiz_update").click(function(){b.refresh()});a("#wpProQuiz_reset").click(function(){b.reset(0)});
80
- a("#wpProQuiz_resetUser").click(function(){b.reset(1)});a(".wpProQuiz_resetComplete").click(function(){b.reset(2)});a(".wpProQuiz_tab").click(function(){var c=a(this);a(".wpProQuiz_tab").removeClass("button-primary").addClass("button-secondary");c.removeClass("button-secondary").addClass("button-primary");a(".wpProQuiz_tabContent").hide();"wpProQuiz_typeUser"==c.attr("id")?(e="users",a("#wpProQuiz_tabUsers").show(),b.loadUsersStatistic()):"wpProQuiz_typeForm"==c.attr("id")?(e="formOverview",a("#wpProQuiz_tabFormOverview").show(),
81
- b.loadFormsOverview(!0)):(e="overview",a("#wpProQuiz_tabOverview").show(),b.loadStatisticOverview(!0));return!1});a("#wpProQuiz_onlyCompleted").change(function(){g.val(1);b.loadStatisticOverview(!0)});a("#wpProQuiz_pageLimit").change(function(){g.val(1);b.loadStatisticOverview(!0)});h.click(function(){g.val(Number(g.val())-1);b.loadStatisticOverview(!1);b.checkNavBar()});m.click(function(){g.val(Number(g.val())+1);b.loadStatisticOverview(!1);b.checkNavBar()});g.change(function(){b.loadStatisticOverview(!1);
82
- b.checkNavBar()});a("#wpProQuiz_formUser, #wpProQuiz_fromPageLimit").change(function(){a("#wpProQuiz_formCurrentPage").val(1);b.loadFormsOverview(!0)});a("#wpProQuiz_formPageLeft").click(function(){a("#wpProQuiz_formCurrentPage").val(Number(g.val())-1);b.loadFormsOverview(!1);b.checkFormNavBar()});a("#wpProQuiz_formPageRight").click(function(){a("#wpProQuiz_formCurrentPage").val(Number(g.val())+1);b.loadFormsOverview(!1);b.checkFormNavBar()});a("#wpProQuiz_formCurrentPage").change(function(){b.loadFormsOverview(!1);
83
- b.checkFormNavBar()});b.loadUsersStatistic()})()},n=function(){var b=a("#quizId").val(),d=null,e=null,g={data:{quizId:b,users:-1,pageLimit:100,dateFrom:0,dateTo:0,generateNav:0},changeFilter:function(){var b=function(a){a=a.datepicker("getDate");return null===a?0:a.getTime()/1E3};a.extend(this.data,{users:a("#wpProQuiz_historyUser").val(),pageLimit:a("#wpProQuiz_historyPageLimit").val(),dateFrom:b(a("#datepickerFrom")),dateTo:b(a("#datepickerTo")),generateNav:1});return this.data}},h={data:{pageLimit:100,
84
- onlyCompleted:0,generateNav:0,quizId:b},changeFilter:function(){a.extend(this.data,{pageLimit:a("#wpProQuiz_overviewPageLimit").val(),onlyCompleted:Number(a("#wpProQuiz_overviewOnlyCompleted").is(":checked")),generateNav:1})}},m={deleteUserStatistic:function(d,e){if(!confirm(wpProQuizLocalize.reset_statistics_msg))return!1;c.ajaxPost("statisticResetNew",{refId:d,userId:e,quizId:b,type:0},function(){a("#wpProQuiz_user_overlay").hide();g.changeFilter();k.loadHistoryAjax();h.changeFilter();k.loadOverviewAjax()})},
85
- deleteAll:function(){if(!confirm(wpProQuizLocalize.reset_statistics_msg))return!1;c.ajaxPost("statisticResetNew",{quizId:b,type:1},function(){g.changeFilter();k.loadHistoryAjax();h.changeFilter();k.loadOverviewAjax()})}},k={loadHistoryAjax:function(){var b=a.extend({page:g.data.generateNav?1:d.getCurrentPage()},g.data);k.loadBox(!0);var e=a("#wpProQuiz_historyLoadContext").hide();c.ajaxPost("statisticLoadHistory",b,function(b){e.html(b.html).show();b.navi&&d.setNumPage(b.navi);g.data.generateNav=
86
- 0;e.find(".user_statistic").click(function(){k.loadUserAjax(0,a(this).data("ref_id"),!1);return!1});e.find(".wpProQuiz_delete").click(function(){m.deleteUserStatistic(a(this).parents("tr").find(".user_statistic").data("ref_id"),0);return!1});k.loadBox(!1)})},loadUserAjax:function(d,e,g){a("#wpProQuiz_user_overlay, #wpProQuiz_loadUserData").show();var h=a("#wpProQuiz_user_content").hide();c.ajaxPost("statisticLoadUser",{quizId:b,userId:d,refId:e,avg:Number(g)},function(b){h.html(b.html);h.find(".wpProQuiz_update").click(function(){k.loadUserAjax(d,
87
- e,g);return!1});h.find("#wpProQuiz_resetUserStatistic").click(function(){m.deleteUserStatistic(e,d)});h.find(".statistic_data").click(function(){a(this).parents("tr").next().toggle("fast");return!1});a("#wpProQuiz_loadUserData").hide();h.show()})},loadBox:function(b,c){b?a("#wpProQuiz_loadDataHistory").show():a("#wpProQuiz_loadDataHistory").hide()},loadOverviewAjax:function(){var b=a.extend({page:h.data.generateNav?1:e.getCurrentPage()},h.data);a("#wpProQuiz_loadDataOverview").show();var d=a("#wpProQuiz_overviewLoadContext").hide();
88
- c.ajaxPost("statisticLoadOverviewNew",b,function(b){d.html(b.html).show();b.navi&&e.setNumPage(b.navi);h.data.generateNav=0;d.find(".user_statistic").click(function(){k.loadUserAjax(a(this).data("user_id"),0,!0);return!1});d.find(".wpProQuiz_delete").click(function(){m.deleteUserStatistic(0,a(this).parents("tr").find(".user_statistic").data("user_id"));return!1});a("#wpProQuiz_loadDataOverview").hide()})}};(function(){d=new q(a("#historyNavigation"),{onChange:function(){k.loadHistoryAjax()}});e=new q(a("#overviewNavigation"),
89
- {onChange:function(){k.loadOverviewAjax()}});a("#datepickerFrom").datepicker({closeText:wpProQuizLocalize.closeText,currentText:wpProQuizLocalize.currentText,monthNames:wpProQuizLocalize.monthNames,monthNamesShort:wpProQuizLocalize.monthNamesShort,dayNames:wpProQuizLocalize.dayNames,dayNamesShort:wpProQuizLocalize.dayNamesShort,dayNamesMin:wpProQuizLocalize.dayNamesMin,dateFormat:wpProQuizLocalize.dateFormat,firstDay:wpProQuizLocalize.firstDay,changeMonth:!0,onClose:function(b){a("#datepickerTo").datepicker("option",
90
- "minDate",b)}});a("#datepickerTo").datepicker({closeText:wpProQuizLocalize.closeText,currentText:wpProQuizLocalize.currentText,monthNames:wpProQuizLocalize.monthNames,monthNamesShort:wpProQuizLocalize.monthNamesShort,dayNames:wpProQuizLocalize.dayNames,dayNamesShort:wpProQuizLocalize.dayNamesShort,dayNamesMin:wpProQuizLocalize.dayNamesMin,dateFormat:wpProQuizLocalize.dateFormat,firstDay:wpProQuizLocalize.firstDay,changeMonth:!0,onClose:function(b){a("#datepickerFrom").datepicker("option","maxDate",
91
- b)}});a("#filter").click(function(){g.changeFilter();k.loadHistoryAjax()});a("#wpProQuiz_overlay_close").click(function(){a("#wpProQuiz_user_overlay").hide()});a("#wpProQuiz_tabHistory .wpProQuiz_update").click(function(){g.changeFilter();k.loadHistoryAjax();return!1});a("#wpProQuiz_tabOverview .wpProQuiz_update").click(function(){h.changeFilter();k.loadOverviewAjax();return!1});a(".wpProQuiz_resetComplete").click(function(){m.deleteAll();return!1});a("#overviewFilter").click(function(){h.changeFilter();
92
- k.loadOverviewAjax()});g.changeFilter();k.loadHistoryAjax();h.changeFilter();k.loadOverviewAjax()})()};(function(){e();var c=a.noop;a(".wpProQuiz_questionEdit").length?c=b:a(".wpProQuiz_globalSettings").length?c=d:a(".wpProQuiz_statistics").length?c=h:a(".wpProQuiz_statisticsNew").length&&(c=n);c();a(".wpProQuiz_demoImgBox a").mouseover(function(b){var c=a(this),d=a(document).width(),c=c.siblings().outerWidth(!0);b.pageX+c>d&&(b=d-(b.pageX+c+30),a(this).next().css("left",b+"px"));a(this).next().show()}).mouseout(function(){a(this).next().hide()}).click(function(){return!1})})()})()});
1
+ jQuery(document).ready(function(a){function r(c,f){var d={onChange:null},b={contain:null,pageLeft:null,pageRight:null,currentPage:null},h=function(){var a=b.currentPage.children().length,g=Number(b.currentPage.val());b.pageLeft.hide();b.pageRight.hide();1<g&&b.pageLeft.show();g+1<=a&&b.pageRight.show()};this.getCurrentPage=function(){return b.currentPage.val()};this.setNumPage=function(c){b.currentPage.empty();for(var g=1;g<=c;g++)a(document.createElement("option")).val(g).text(g).appendTo(b.currentPage);
2
+ h()};(function(){a.extend(b,{contain:c,pageLeft:c.find(".navigationLeft"),pageRight:c.find(".navigationRight"),currentPage:c.find(".navigationCurrentPage")});a.extend(d,f);b.pageLeft.click(function(){b.currentPage.val(Number(b.currentPage.val())-1);h();if(d.onChange)d.onChange(b.currentPage.val())});b.pageRight.click(function(){b.currentPage.val(Number(b.currentPage.val())+1);h();if(d.onChange)d.onChange(b.currentPage.val())});b.currentPage.change(function(){h();if(d.onChange)d.onChange(b.currentPage.val())})})()}
3
+ a.fn.wpProQuiz_preview=function(){var c={openPreview:function(c){window.open(a(c).attr("href"),"wpProQuizPreview","width=900,height=900")}};(function(){a(".wpProQuiz_prview").click(function(a){c.openPreview(this);a.preventDefault()})})()};a.fn.wpProQuiz_quizOverall=function(){};a.fn.wpProQuiz_quizEdit=function(){function c(b,c,d){a.post(ajaxurl,{action:"wp_pro_quiz_admin_ajax",func:b,data:c},d,"json")}var f={addCategory:function(){var b=a.trim(a('input[name="categoryAdd"]').val());d(b)||c("categoryAdd",
4
+ {categoryName:b,type:"quiz"},function(b){b.err?a("#categoryMsgBox").text(b.err).show("fast").delay(2E3).hide("fast"):(b=a(document.createElement("option")).val(b.categoryId).text(b.categoryName).attr("selected","selected"),a('select[name="category"]').append(b).change())})},addResult:function(){a("#resultList").children().each(function(){if("none"==a(this).css("display")){var b=a(this),c=b.find('textarea[name="resultTextGrade[text][]"]'),d=c.attr("id"),g=!0;b.find('input[name="resultTextGrade[prozent][]"]').val("0");
5
+ b.find('input[name="resultTextGrade[activ][]"]').val("1").keyup();void 0==tinymce.editors[d]||tinymce.editors[d].isHidden()||(g=!1);void 0==switchEditors||g||(switchEditors.go(d,"toggle"),switchEditors.go(d,"toggle"));void 0!=tinymce.editors[d]?tinymce.editors[d].setContent(""):c.val("");void 0==tinymce.editors[d]||g||tinyMCE.execCommand("mceRemoveControl",!1,d);b.parent().children(":visible").last().after(b);void 0==tinymce.editors[d]||g||tinyMCE.execCommand("mceAddControl",!1,d);a(this).show();
6
+ void 0==switchEditors||g||switchEditors.go(d,"toggle");return!1}})},deleteResult:function(b){a(b).parent().parent().hide();a(b).siblings('input[name="resultTextGrade[activ][]"]').val("0")},changeResult:function(b){b=a(b);if(f.validResultInput(b.val()))return b.siblings(".resultProzent").text(b.val()),b.removeAttr("style"),!0;b.css("background-color","#FF9696");return!1},validResultInput:function(a){if(d(a))return!1;a=a.replace(/\,/,".");return!isNaN(a)&&100>=Number(a)&&0<=Number(a)?null!=a.match(/\./)?
7
+ 3>a.split(".")[1].length:!0:!1},validInput:function(){if(d(a("#wpProQuiz_title").val()))return alert(wpProQuizLocalize.no_title_msg),!1;var b="",b=void 0==tinymce.editors.text||tinymce.editors.text.isHidden()?a('textarea[name="text"]').val():tinymce.editors.text.getContent();if(d(b))return alert(wpProQuizLocalize.no_quiz_start_msg),!1;if(a("#wpProQuiz_resultGradeEnabled:checked").length){var c=!0;a("#resultList").children().each(function(){if(a(this).is(":visible")&&!f.validResultInput(a(this).find('input[name="resultTextGrade[prozent][]"]').val()))return c=
8
+ !1});if(!c)return alert(wpProQuizLocalize.fail_grade_result),!1}return!0},resetLock:function(){var b=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php"),b=b.replace("action=edit","action=reset_lock");a.post(b,{action:"wp_pro_quiz_reset_lock"},function(b){a("#resetLockMsg").show("fast").delay(2E3).hide("fast")})},generateFormIds:function(){var b=0;a("#form_table tbody > tr").each(function(){a(this).find('[name^="form[]"]').each(function(){var c=a(this).attr("name").substr(6);
9
+ a(this).attr("name","form["+b+"]"+c)});++b})},updateFormIds:function(){var b=-1,c=a(".emailFormVariables option:selected").val(),f=a(".formVariables").empty(),g=a(".emailFormVariables").empty().append('<option value="-1"></option>');-1<a(".emailFormVariables").data("default")&&(c=a(".emailFormVariables").data("default"),a(".emailFormVariables").data("default",-1));a("#form_table tbody > tr").each(function(){a(this).children().first().text(b);var c=a(this).find(".formFieldName").val(),l=a(this).find('[name="form[][type]"] option:selected'),
10
+ e=a(this).find('[name="form[][fieldname]"]').val();1!=a(this).find('input[name="form[][form_delete]"]').val()&&(0<=b&&!d(c)&&f.append(a("<li><span>$form{"+b+"}</span> - "+c+"</li>")),4==l.val()&&g.append(a('<option value="'+b+'">'+e+"</option>")),b++)});a('.emailFormVariables option[value="'+c+'"]').prop("selected",!0)}},d=function(b){b=a.trim(b);return!b||0===b.length};(function(){a("#statistics_on").change(function(){this.checked?a("#statistics_ip_lock_tr").show():a("#statistics_ip_lock_tr").hide()});
11
+ a(".addResult").click(function(){f.addResult()});a(".deleteResult").click(function(a){f.deleteResult(this)});a('input[name="resultTextGrade[prozent][]"]').keyup(function(a){f.changeResult(this)}).keydown(function(a){13==a.which&&a.preventDefault()});a("#wpProQuiz_resultGradeEnabled").change(function(){this.checked?(a("#resultGrade").show(),a("#resultNormal").hide()):(a("#resultGrade").hide(),a("#resultNormal").show())});a("#wpProQuiz_save").click(function(b){f.validInput()?f.generateFormIds():b.preventDefault();
12
+ a('select[name="prerequisiteList[]"] option').attr("selected","selected")});a('input[name="template"]').click(function(b){if("0"==a('select[name="templateSaveList"]').val()&&d(a('input[name="templateName"]').val()))return alert(wpProQuizLocalize.temploate_no_name),b.preventDefault(),!1;f.generateFormIds();a('select[name="prerequisiteList[]"] option').attr("selected","selected")});a('select[name="templateSaveList"]').change(function(){var b=a('input[name="templateName"]');"0"==a(this).val()?b.show():
13
+ b.hide()}).change();a('input[name="quizRunOnce"]').change(function(b){this.checked?(a("#wpProQuiz_quiz_run_once_type").show(),a('input[name="quizRunOnceType"]:checked').change()):a("#wpProQuiz_quiz_run_once_type").hide()});a('input[name="quizRunOnceType"]').change(function(b){!this.checked||"1"!=this.value&&"3"!=this.value?a("#wpProQuiz_quiz_run_once_cookie").hide():a("#wpProQuiz_quiz_run_once_cookie").show()});a('input[name="resetQuizLock"]').click(function(a){f.resetLock();return!1});a(".wpProQuiz_demoBox a").mouseover(function(b){var c=
14
+ a(this),d=a("#poststuff").width(),g=c.siblings().outerWidth(!0);b.pageX+g>d&&(b=jQuery(document).width()-c.parent().offset().left-g-30,a(this).next().css("left",b+"px"));a(this).next().show()}).mouseout(function(){a(this).next().hide()}).click(function(){return!1});a('input[name="showMaxQuestion"]').change(function(){this.checked?a("#wpProQuiz_showMaxBox").show():a("#wpProQuiz_showMaxBox").hide()});a("#btnPrerequisiteAdd").click(function(){a('select[name="quizList"] option:selected').removeAttr("selected").appendTo('select[name="prerequisiteList[]"]')});
15
+ a("#btnPrerequisiteDelete").click(function(){a('select[name="prerequisiteList[]"] option:selected').removeAttr("selected").appendTo('select[name="quizList"]')});a('input[name="prerequisite"]').change(function(){this.checked?a("#prerequisiteBox").show():a("#prerequisiteBox").hide()}).change();a('input[name="toplistDataAddMultiple"]').change(function(){this.checked?a("#toplistDataAddBlockBox").show():a("#toplistDataAddBlockBox").hide()}).change();a('input[name="toplistActivated"]').change(function(){this.checked?
16
+ a("#toplistBox > tr:gt(0)").show():a("#toplistBox > tr:gt(0)").hide()}).change();a('input[name="showReviewQuestion"]').change(function(){this.checked?a(".wpProQuiz_reviewQuestionOptions").show():a(".wpProQuiz_reviewQuestionOptions").hide()}).change();a("#statistics_on").change();a("#wpProQuiz_resultGradeEnabled").change();a('input[name="quizRunOnce"]').change();a('input[name="quizRunOnceType"]:checked').change();a('input[name="showMaxQuestion"]').change();a("#form_add").click(function(){a("#form_table tbody > tr:eq(0)").clone(!0).appendTo("#form_table tbody").show();
17
+ f.updateFormIds()});a('input[name="form_delete"]').click(function(){var b=a(this).parents("tr");"0"!=b.find('input[name="form[][form_id]"]').val()?(b.find('input[name="form[][form_delete]"]').val(1),b.hide()):b.remove();f.updateFormIds()});a("#form_table tbody").sortable({handle:".form_move",update:f.updateFormIds});a(".form_move").click(function(){return!1});a('select[name="form[][type]"]').change(function(){switch(Number(a(this).val())){case 7:case 8:a(this).siblings(".editDropDown").show();break;
18
+ default:a(this).siblings(".editDropDown, .dropDownEditBox").hide()}}).change();a(".editDropDown").click(function(){a(".dropDownEditBox").not(a(this).siblings(".dropDownEditBox").toggle()).hide();return!1});a(".dropDownEditBox input").click(function(){a(this).parent().hide()});a('.formFieldName, select[name="form[][type]"]').change(function(){f.updateFormIds()});a('select[name="category"]').change(function(){var b=a(this),c=a("#categoryAddBox").hide();"-1"==b.val()&&c.show()}).change();a("#categoryAddBtn").click(function(){f.addCategory()});
19
+ a('input[name="emailNotification"]').change(function(){var b=a("#adminEmailSettings tr:gt(0)");0<a('input[name="emailNotification"]:checked').val()?b.show():b.hide()}).change();a('input[name="userEmailNotification"]').change(function(){var b=a("#userEmailSettings tr:gt(0)");0<a('input[name="userEmailNotification"]:checked').val()?b.show():b.hide()}).change();f.updateFormIds();a('input[name="email[html]"]').change(function(){if(void 0==switchEditors)return!1;this.checked?switchEditors.go("adminEmailEditor",
20
+ "tmce"):switchEditors.go("adminEmailEditor","html")}).change();a('input[name="userEmail[html]"]').change(function(){if(void 0==switchEditors)return!1;this.checked?switchEditors.go("userEmailEditor","tmce"):switchEditors.go("userEmailEditor","html")}).change()})()};a.fn.wpProQuiz_statistics=function(){var c="wpProQuiz_typeAnonymeUser",f=!0,d={loadStatistics:function(b){var c=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=load_statistics";b={action:"wp_pro_quiz_load_statistics",
21
+ userId:b};a("#wpProQuiz_loadData").show();a("#wpProQuiz_statistics_content, #wpProQuiz_statistics_overview").hide();a.post(c,b,d.setStatistics,"json")},setStatistics:function(b){var d=a(".wpProQuiz_statistics_table"),f=d.find("tbody");if("wpProQuiz_typeOverview"!=c){var g=function(a,g,b){a.find(".wpProQuiz_cCorrect").text(g.cCorrect+" ("+g.pCorrect+"%)");a.find(".wpProQuiz_cIncorrect").text(g.cIncorrect+" ("+g.pIncorrect+"%)");a.find(".wpProQuiz_cTip").text(g.cTip);a.find(".wpProQuiz_cPoints").text(g.cPoints);
22
+ 1==b&&d.find(".wpProQuiz_cResult").text(g.result+"%")};g(d,b.clear,!1);a.each(b.items,function(a,b){g(f.find("#wpProQuiz_tr_"+b.id),b,!1)});g(d.find("tfoot"),b.global,!0);a("#wpProQuiz_loadData").hide();a("#wpProQuiz_statistics_content, .wpProQuiz_statistics_table").show()}},loadOverview:function(){a(".wpProQuiz_statistics_table, #wpProQuiz_statistics_content, #wpProQuiz_statistics_overview").hide();a("#wpProQuiz_loadData").show();var b=(window.location.pathname+window.location.search).replace("admin.php",
23
+ "admin-ajax.php")+"&action=load_statistics",h={action:"wp_pro_quiz_load_statistics",overview:!0,pageLimit:a("#wpProQuiz_pageLimit").val(),onlyCompleted:Number(a("#wpProQuiz_onlyCompleted").is(":checked")),page:a("#wpProQuiz_currentPage").val(),generatePageNav:Number(f)};a.post(b,h,function(b){a("#wpProQuiz_statistics_overview_data").empty();if("wpProQuiz_typeOverview"==c){var g=a('<tr><th><a href="#">---</a></th><th class="wpProQuiz_points">---</th><th class="wpProQuiz_cCorrect" style="color: green;">---</th><th class="wpProQuiz_cIncorrect" style="color: red;">---</th><th class="wpProQuiz_cTip">---</th><th class="wpProQuiz_cResult" style="font-weight: bold;">---</th></tr>');
24
+ a.each(b.items,function(b,c){var e=g.clone();e.find("a").text(c.userName).data("userId",c.userId).click(function(){a("#userSelect").val(a(this).data("userId"));a("#wpProQuiz_typeRegisteredUser").click();return!1});c.completed?(e.find(".wpProQuiz_points").text(c.cPoints),e.find(".wpProQuiz_cCorrect").text(c.cCorrect+" ("+c.pCorrect+"%)"),e.find(".wpProQuiz_cIncorrect").text(c.cIncorrect+" ("+c.pIncorrect+"%)"),e.find(".wpProQuiz_cTip").text(c.cTip),e.find(".wpProQuiz_cResult").text(c.result+"%")):
25
+ e.find("th").removeAttr("style");a("#wpProQuiz_statistics_overview_data").append(e)});void 0!=b.page&&(d.setPageNav(b.page),f=!1);a("#wpProQuiz_loadData").hide();a("#wpProQuiz_statistics_overview").show()}},"json")},loadFormOverview:function(){a("#wpProQuiz_tabFormOverview").show()},changeTab:function(b){c=b;"wpProQuiz_typeRegisteredUser"==b?d.loadStatistics(a("#userSelect").val()):"wpProQuiz_typeAnonymeUser"==b?d.loadStatistics(0):"wpProQuiz_typeForm"==b?d.loadFormOverview():d.loadOverview()},resetStatistic:function(b){var f=
26
+ "wpProQuiz_typeRegisteredUser"==c?a("#userSelect").val():0,n=(window.location.pathname+window.location.search).replace("admin.php","admin-ajax.php")+"&action=reset";a.post(n,{action:"wp_pro_quiz_statistics",userId:f,complete:b},function(a){d.changeTab(c)})},setPageNav:function(b){b=Math.ceil(b/a("#wpProQuiz_pageLimit").val());a("#wpProQuiz_currentPage").empty();for(var c=1;c<=b;c++)a(document.createElement("option")).val(c).text(c).appendTo(a("#wpProQuiz_currentPage"));a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").hide();
 
 
 
 
 
 
 
 
 
27
  1<a("#wpProQuiz_currentPage option").length&&a("#wpProQuiz_pageRight").show()}};(function(){a(".wpProQuiz_tab").click(function(b){b=a(this);if(b.hasClass("button-primary"))return!1;"wpProQuiz_typeRegisteredUser"==b.attr("id")?a("#wpProQuiz_userBox").show():a("#wpProQuiz_userBox").hide();a(".wpProQuiz_tab").removeClass("button-primary").addClass("button-secondary");b.removeClass("button-secondary").addClass("button-primary");d.changeTab(b.attr("id"));return!1});a("#userSelect").change(function(){d.changeTab("wpProQuiz_typeRegisteredUser")});
28
+ a(".wpProQuiz_update").click(function(){d.changeTab(c);return!1});a("#wpProQuiz_reset").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&d.resetStatistic(!1);return!1});a(".wpProQuiz_resetComplete").click(function(){confirm(wpProQuizLocalize.reset_statistics_msg)&&d.resetStatistic(!0);return!1});a("#wpProQuiz_pageLimit, #wpProQuiz_onlyCompleted").change(function(){a("#wpProQuiz_currentPage").val(0);f=!0;d.changeTab(c);return!1});a("#wpProQuiz_currentPage").change(function(){a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").hide();
29
  1!=a("#wpProQuiz_currentPage option").length&&(a("#wpProQuiz_currentPage option:first-child:selected").length?a("#wpProQuiz_pageRight").show():a("#wpProQuiz_currentPage option:last-child:selected").length?a("#wpProQuiz_pageLeft").show():a("#wpProQuiz_pageLeft, #wpProQuiz_pageRight").show());d.changeTab(c)});a("#wpProQuiz_pageRight").click(function(){a("#wpProQuiz_currentPage option:selected").next().attr("selected","selected");a("#wpProQuiz_currentPage").change();return!1});a("#wpProQuiz_pageLeft").click(function(){a("#wpProQuiz_currentPage option:selected").prev().attr("selected",
30
+ "selected");a("#wpProQuiz_currentPage").change();return!1});d.changeTab("wpProQuiz_typeAnonymeUser")})()};a.fn.wpProQuiz_toplist=function(){var c=a("#wpProQuiz_sorting"),f=a("#wpProQuiz_pageLimit"),d=a("#wpProQuiz_currentPage"),b=a("#wpProQuiz_loadData"),h=a("#wpProQuiz_pageLeft"),n=a("#wpProQuiz_pageRight"),g=a("#wpProQuiz_toplistTable tbody"),q=a("#wpProQuiz_toplistTable tbody tr:eq(0)").clone(),l=a("#wpProQuiz_content"),e={loadData:function(g){var q=(window.location.pathname+window.location.search).replace("admin.php",
31
+ "admin-ajax.php")+"&action=load_toplist",k=this,t={action:"wp_pro_quiz_load_toplist",sort:c.val(),limit:f.val(),page:d.val()};void 0!=g&&a.extend(t,g);b.show();l.hide();a.post(q,t,function(a){k.handleDataRequest(a.data);void 0!=a.nav&&k.handleNav(a.nav);b.hide();l.show()},"json")},handleNav:function(g){d.empty();for(var b=1;b<=g.pages;b++)a(document.createElement("option")).val(b).text(b).appendTo(d);this.checkNav()},handleDataRequest:function(b){var c=this;g.empty();a.each(b,function(a,b){var c=
32
+ q.clone().children();c.eq(0).children().val(b.id);c.eq(1).find("strong").text(b.name);c.eq(1).find(".inline_editUsername").val(b.name);c.eq(2).find(".wpProQuiz_email").text(b.email);c.eq(2).find("input").val(b.email);c.eq(3).text(b.type);c.eq(4).text(b.date);c.eq(5).text(b.points);c.eq(6).text(b.result);c.parent().show().appendTo(g)});b.length||a(document.createElement("td")).attr("colspan","7").text(wpProQuizLocalize.no_data_available).css({"font-weight":"bold","text-align":"center",padding:"5px"}).appendTo(document.createElement("tr")).appendTo(g);
33
  a(".wpProQuiz_delete").click(function(){if(confirm(wpProQuizLocalize.confirm_delete_entry)){var b=Array(a(this).closest("tr").find('input[name="checkedData[]"]').val());c.loadData({a:"delete",toplistIds:b})}return!1});a(".wpProQuiz_edit").click(function(){var b=a(this).closest("tr");b.find(".row-actions").hide();b.find(".inline-edit").show();b.find(".wpProQuiz_username, .wpProQuiz_email").hide();b.find(".inline_editUsername, .inline_editEmail").show();return!1});a(".inline_editSave").click(function(){var b=
34
+ a(this).closest("tr"),g=b.find(".inline_editUsername").val(),p=b.find(".inline_editEmail").val();if(c.isEmpty(g)||c.isEmpty(p))return alert(wpProQuizLocalize.not_all_fields_completed),!1;c.loadData({a:"edit",toplistId:b.find('input[name="checkedData[]"]').val(),name:g,email:p});return!1});a(".inline_editCancel").click(function(){var b=a(this).closest("tr");b.find(".row-actions").show();b.find(".inline-edit").hide();b.find(".wpProQuiz_username, .wpProQuiz_email").show();b.find(".inline_editUsername, .inline_editEmail").hide();
35
+ b.find(".inline_editUsername").val(b.find(".wpProQuiz_username").text());b.find(".inline_editEmail").val(b.find(".wpProQuiz_email").text());return!1})},checkNav:function(){var a=d.val();1==a?h.hide():h.show();a==d.children().length?n.hide():n.show()},isEmpty:function(b){b=a.trim(b);return!b||0===b.length}};(function(){c.change(function(){e.loadData()});f.change(function(){e.loadData({nav:1})});d.change(function(){e.checkNav();e.loadData()});h.click(function(){d.val(Number(d.val())-1);e.checkNav();
36
+ e.loadData()});n.click(function(){d.val(Number(d.val())+1);e.checkNav();e.loadData()});a("#wpProQuiz_deleteAll").click(function(){e.loadData({a:"deleteAll"})});a("#wpProQuiz_action").click(function(){var b=a("#wpProQuiz_actionName").val();if("0"!=b){var g=a('input[name="checkedData[]"]:checked').map(function(){return a(this).val()}).get();e.loadData({a:b,toplistIds:g})}});a("#wpProQuiz_checkedAll").change(function(){this.checked?a('input[name="checkedData[]"]').attr("checked","checked"):a('input[name="checkedData[]"]').removeAttr("checked",
37
+ "checked")});e.loadData({nav:1})})()};a(".wpProQuiz_quizOverall").length&&a(".wpProQuiz_quizOverall").wpProQuiz_preview();a(".wpProQuiz_quizOverall").length&&a(".wpProQuiz_quizOverall").wpProQuiz_quizOverall();a(".wpProQuiz_quizEdit").length&&a(".wpProQuiz_quizEdit").wpProQuiz_quizEdit();a(".wpProQuiz_toplist").length&&a(".wpProQuiz_toplist").wpProQuiz_toplist();(function(){var c=this,c={displayChecked:function(a,b,c,e){a=c?!a.checked:a.checked;e?a?b.attr("disabled","disabled"):b.removeAttr("disabled"):
38
+ a?b.show():b.hide()},isEmpty:function(b){b=a.trim(b);return!b||0===b.length},isNumber:function(b){b=a.trim(b);return!c.isEmpty(b)&&!isNaN(b)},getMceContent:function(b){var c=tinymce.editors[b];return void 0==c||c.isHidden()?a("#"+b).val():c.getContent()},ajaxPost:function(b,c,d){a.post(ajaxurl,{action:"wp_pro_quiz_admin_ajax",func:b,data:c},d,"json")}},f=function(){a(".wpProQuiz_tab_wrapper a").click(function(){var b=a(this),c=b.data("tab"),d=b.siblings(".button-primary").removeClass("button-primary").addClass("button-secondary");
39
+ b.removeClass("button-secondary").addClass("button-primary");a(d.data("tab")).hide("fast");a(c).show("fast");a(document).trigger({type:"changeTab",tabId:c});return!1})},d=function(){var b={categoryDelete:function(b,g){c.ajaxPost("categoryDelete",{categoryId:b},function(c){c.err||(a('select[name="category'+g+'"] option[value="'+b+'"]').remove(),a('select[name="category'+g+'"]').change())})},categoryEdit:function(b,g,d){var f={categoryId:b,categoryName:a.trim(g)};c.isEmpty(g)?alert(wpProQuizLocalize.category_no_name):
40
+ c.ajaxPost("categoryEdit",f,function(c){c.err||(a('select[name="category'+d+'"] option[value="'+b+'"]').text(f.categoryName),a('select[name="category'+d+'"]').change())})},changeTimeFormat:function(b,c){"0"!=c.val()&&a('input[name="'+b+'"]').val(c.val())},templateDelete:function(b,g){c.ajaxPost("templateDelete",{templateId:b,type:g},function(c){c.err||(g?(a('select[name="templateQuestion"] option[value="'+b+'"]').remove(),a('select[name="templateQuestion"]').change()):(a('select[name="templateQuiz"] option[value="'+
41
+ b+'"]').remove(),a('select[name="templateQuiz"]').change()))})},templateEdit:function(b,g,d){if(c.isEmpty(g))alert(wpProQuizLocalize.category_no_name);else{var f={templateId:b,name:a.trim(g),type:d};c.ajaxPost("templateEdit",f,function(c){c.err||(d?(a('select[name="templateQuestion"] option[value="'+b+'"]').text(f.name),a('select[name="templateQuestion"]').change()):(a('select[name="templateQuiz"] option[value="'+b+'"]').text(f.name),a('select[name="templateQuiz"]').change()))})}}};(function(){a('select[name="category"]').change(function(){a('input[name="categoryEditText"]').val(a(this).find(":selected").text())}).change();
42
+ a('input[name="categoryDelete"]').click(function(){var c=a('select[name="category"] option:selected').val();b.categoryDelete(c,"")});a('input[name="categoryEdit"]').click(function(){var c=a('select[name="category"] option:selected').val(),d=a('input[name="categoryEditText"]').val();b.categoryEdit(c,d,"")});a('select[name="categoryQuiz"]').change(function(){a('input[name="categoryQuizEditText"]').val(a(this).find(":selected").text())}).change();a('input[name="categoryQuizDelete"]').click(function(){var c=
43
+ a('select[name="categoryQuiz"] option:selected').val();b.categoryDelete(c,"Quiz")});a('input[name="categoryQuizEdit"]').click(function(){var c=a('select[name="categoryQuiz"] option:selected').val(),d=a('input[name="categoryQuizEditText"]').val();b.categoryEdit(c,d,"Quiz")});a("#statistic_time_format_select").change(function(){b.changeTimeFormat("statisticTimeFormat",a(this))});a(document).bind("changeTab",function(b){a("#problemInfo").hide("fast");switch(b.tabId){case "#problemContent":a("#problemInfo").show("fast")}});
44
+ a('input[name="email[html]"]').change(function(){if(void 0==switchEditors)return!1;this.checked?switchEditors.go("adminEmailEditor","tmce"):switchEditors.go("adminEmailEditor","html")}).change();a('input[name="userEmail[html]"]').change(function(){if(void 0==switchEditors)return!1;this.checked?switchEditors.go("userEmailEditor","tmce"):switchEditors.go("userEmailEditor","html")}).change();a('select[name="templateQuiz"]').change(function(){a('input[name="templateQuizEditText"]').val(a(this).find(":selected").text())}).change();
45
+ a('select[name="templateQuestion"]').change(function(){a('input[name="templateQuestionEditText"]').val(a(this).find(":selected").text())}).change();a('input[name="templateQuizDelete"]').click(function(){var c=a('select[name="templateQuiz"] option:selected').val();b.templateDelete(c,0)});a('input[name="templateQuestionDelete"]').click(function(){var c=a('select[name="templateQuestion"] option:selected').val();b.templateDelete(c,1)});a('input[name="templateQuizEdit"]').click(function(){var c=a('select[name="templateQuiz"] option:selected').val(),
46
+ d=a('input[name="templateQuizEditText"]').val();b.templateEdit(c,d,0)});a('input[name="templateQuestionEdit"]').click(function(){var c=a('select[name="templateQuestion"] option:selected').val(),d=a('input[name="templateQuestionEditText"]').val();b.templateEdit(c,d,1)})})()},b=function(){var b=this,d=a.noop(),f=a(".answer_felder > div"),e=a('input[name="answerPointsActivated"]'),s=a('input[name="points"]'),b={generateArrayIndex:function(){var b=a('input[name="answerType"]:checked').val(),b="single"==
47
+ b||"multiple"==b?"classic_answer":b;a(".answerList").each(function(){var c=a(this).parent().attr("class");a(this).children().each(function(g,d){a(this).find('[name^="answerData"]').each(function(){var a=this.name,d=a.search(/\](\[\w+\])+$/),e=b==c?g:"none";0<d&&(this.name="answerData["+e+a.substring(d,a.length))})})})},globalValidate:function(){if(c.isEmpty(c.getMceContent("question")))return alert(wpProQuizLocalize.no_question_msg),!1;if(!e.is(":checked")){var b=s.val();if(!c.isNumber(b)||1>b)return alert(wpProQuizLocalize.no_nummber_points),
48
+ !1}else if("free_answer"==a('input[name="answerType"]:checked').val())return alert(wpProQuizLocalize.dif_points),!1;return!1===d()?!1:!0},answerRemove:function(){var b=a(this).parent();if(2>b.parent().children().length)return!1;b.remove();return!1},addCategory:function(){var b=a.trim(a('input[name="categoryAdd"]').val());c.isEmpty(b)||c.ajaxPost("categoryAdd",{categoryName:b},function(b){b.err?a("#categoryMsgBox").text(b.err).show("fast").delay(2E3).hide("fast"):(b=a(document.createElement("option")).val(b.categoryId).text(b.categoryName).attr("selected",
49
+ "selected"),a('select[name="category"]').append(b).change())})},addMediaClick:function(){if("function"!=typeof tb_show)return!1;var b=a(this).closest("li"),c=b.find('input[name="answerData[][html]"]:eq(0)'),g=b.find(".wpProQuiz_text:eq(0)");window.org_send_to_editor=window.send_to_editor;var d=tb_remove;window.send_to_editor=function(b){b=a("img",b)[0].outerHTML;g.val(g.val()+b);c.attr("checked",!0);tb_remove();window.send_to_editor=window.org_send_to_editor};window.tb_remove=function(){window.send_to_editor=
50
+ window.org_send_to_editor;tb_remove=d;tb_remove()};tb_show("","media-upload.php?type=image&TB_iframe=true")}},h={classic_answer:function(){var b=0,g=0,d=0;a(".classic_answer .answerList").children().each(function(){var e=a(this);c.isEmpty(e.find('textarea[name="answerData[][answer]"]').val())||(b++,e.find('input[name="answerData[][correct]"]:checked').length&&g++,e=e.find('input[name="answerData[][points]"]').val(),c.isNumber(e)&&0<=e&&d++)});return b?g||a('input[name="disableCorrect"]').is(":checked")&&
51
+ a('input[name="answerPointsDiffModusActivated"]').is(":checked")&&a('input[name="answerPointsActivated"]').is(":checked")&&"single"==a('input[name="answerType"]:checked').val()?d!=b&&e.is(":checked")?(alert(wpProQuizLocalize.no_nummber_points_new),!1):!0:(alert(wpProQuizLocalize.no_correct_msg),!1):(alert(wpProQuizLocalize.no_answer_msg),!1)},free_answer:function(){return c.isEmpty(a('.free_answer textarea[name="answerData[][answer]"]').val())?(alert(wpProQuizLocalize.no_answer_msg),!1):!0},cloze_answer:function(){return c.isEmpty(c.getMceContent("cloze"))?
52
+ (alert(wpProQuizLocalize.no_answer_msg),!1):!0},sort_answer:function(){var b=0,g=0;a(".sort_answer .answerList").children().each(function(){var d=a(this);c.isEmpty(d.find('textarea[name="answerData[][answer]"]').val())||(b++,d=d.find('input[name="answerData[][points]"]').val(),c.isNumber(d)&&0<=d&&g++)});return b?g!=b&&e.is(":checked")?(alert(wpProQuizLocalize.no_nummber_points_new),!1):!0:(alert(wpProQuizLocalize.no_answer_msg),!1)},matrix_sort_answer:function(){var b=0,g=0,d=!0,f=0;a(".matrix_sort_answer .answerList").children().each(function(){var e=
53
+ a(this),l=e.find('input[name="answerData[][points]"]').val();c.isEmpty(e.find('textarea[name="answerData[][answer]"]').val())?c.isEmpty(e.find('textarea[name="answerData[][sort_string]"]').val())||(f++,c.isNumber(l)&&0<=l&&g++):(b++,f++,c.isEmpty(e.find('textarea[name="answerData[][sort_string]"]').val())&&(d=!1),c.isNumber(l)&&0<=l&&g++)});return b?d?g!=f&&e.is(":checked")?(alert(wpProQuizLocalize.no_nummber_points_new),!1):!0:(alert(wpProQuizLocalize.no_sort_element_criterion),!1):(alert(wpProQuizLocalize.no_answer_msg),
54
+ !1)},assessment_answer:function(){return c.isEmpty(c.getMceContent("assessment"))?(alert(wpProQuizLocalize.no_answer_msg),!1):!0}};f.hide();(function(){a("#wpProQuiz_tip").change(function(){c.displayChecked(this,a("#wpProQuiz_tipBox"))}).change();a("#wpProQuiz_correctSameText").change(function(){c.displayChecked(this,a("#wpProQuiz_incorrectMassageBox"),!0)}).change();a('input[name="answerType"]').click(function(){f.hide();var b=this.value;"single"==b?(a("#singleChoiceOptions").show(),a('input[name="disableCorrect"]').change()):
55
+ (a("#singleChoiceOptions").hide(),a(".classic_answer .wpProQuiz_classCorrect").parent().parent().show());if("single"==b||"multiple"==b){var c="single"==b?"radio":"checkbox",b="classic_answer";a(".wpProQuiz_classCorrect").each(function(){a("<input type="+c+" />").attr({name:this.name,value:this.value,checked:this.checked}).addClass("wpProQuiz_classCorrect wpProQuiz_checkbox").insertBefore(this)}).remove()}d=void 0!=h[b]?h[b]:a.noop();a("."+b).show()});a('input[name="answerType"]:checked').click();
56
+ a(".deleteAnswer").click(b.answerRemove);a(".addAnswer").click(function(){var c=a(this).siblings("ul"),d=c.find("li:eq(0)").clone();d.find(".wpProQuiz_checkbox").removeAttr("checked");d.find(".wpProQuiz_text").val("");d.find(".wpProQuiz_points").val(1);d.find(".deleteAnswer").click(b.answerRemove);d.find(".addMedia").click(b.addMediaClick);d.appendTo(c);return!1});a(".sort_answer ul, .classic_answer ul, .matrix_sort_answer ul").sortable({handle:".wpProQuiz_move"});a("#saveQuestion").click(function(){if(!b.globalValidate())return!1;
57
+ b.generateArrayIndex();return!0});a(e).change(function(){c.displayChecked(this,a(".wpProQuiz_answerPoints"));c.displayChecked(this,a("#wpProQuiz_showPointsBox"));c.displayChecked(this,s,!1,!0);c.displayChecked(this,a('input[name="answerPointsDiffModusActivated"]'),!0,!0);this.checked?(a('input[name="answerPointsDiffModusActivated"]').change(),a('input[name="disableCorrect"]').change()):(a(".classic_answer .wpProQuiz_classCorrect").parent().parent().show(),a('input[name="disableCorrect"]').attr("disabled",
58
+ "disabled"))}).change();a('select[name="category"]').change(function(){var b=a(this),c=a("#categoryAddBox").hide();"-1"==b.val()&&c.show()}).change();a("#categoryAddBtn").click(function(){b.addCategory()});a(".addMedia").click(b.addMediaClick);a('input[name="answerPointsDiffModusActivated"]').change(function(){c.displayChecked(this,a('input[name="disableCorrect"]'),!0,!0);this.checked?a('input[name="disableCorrect"]').change():a(".classic_answer .wpProQuiz_classCorrect").parent().parent().show()}).change();
59
+ a('input[name="disableCorrect"]').change(function(){c.displayChecked(this,a(".classic_answer .wpProQuiz_classCorrect").parent().parent(),!0)}).change();a("#clickPointDia").click(function(){a(".pointDia").toggle("fast");return!1});a('input[name="template"]').click(function(d){if("0"==a('select[name="templateSaveList"]').val()&&c.isEmpty(a('input[name="templateName"]').val()))return alert(wpProQuizLocalize.temploate_no_name),d.preventDefault(),!1;b.generateArrayIndex()});a('select[name="templateSaveList"]').change(function(){var b=
60
+ a('input[name="templateName"]');"0"==a(this).val()?b.show():b.hide()}).change()})()},h=function(){var b=this,d=a("#quizId").val(),f="users",e=a("#wpProQuiz_currentPage"),h=a("#wpProQuiz_pageLeft"),m=a("#wpProQuiz_pageRight"),k=a("#testSelect"),b={loadStatistic:function(a,b){c.ajaxPost("statisticLoad",{userId:a},function(a){})},loadUsersStatistic:function(){var e={userId:a("#userSelect").val(),quizId:d,testId:a("#testSelect").val()};b.toggleLoadBox(!1);c.ajaxPost("statisticLoad",e,function(c){a.each(c.question,
61
+ function(){var c=a("#wpProQuiz_tr_"+this.questionId);b.setStatisticData(c,this)});a.each(c.category,function(c,d){var e=a("#wpProQuiz_ctr_"+c);b.setStatisticData(e,d)});a("#testSelect option:gt(0)").remove();var d=a("#testSelect");a.each(c.tests,function(){var b=a(document.createElement("option"));b.val(this.id);b.text(this.date);c.testId==this.id&&b.attr("selected",!0);d.append(b)});b.parseFormData(c.formData);b.toggleLoadBox(!0)})},loadUsersStatistic_:function(e,p){var f={userId:e,quizId:d,testId:p};
62
+ b.toggleLoadBox(!1);c.ajaxPost("statisticLoad",f,function(c){a.each(c.question,function(){var c=a("#wpProQuiz_tr_"+this.questionId);b.setStatisticData(c,this)});a.each(c.category,function(c,d){var e=a("#wpProQuiz_ctr_"+c);b.setStatisticData(e,d)});a("#testSelect option:gt(0)").remove();var d=a("#testSelect");a.each(c.tests,function(){var b=a(document.createElement("option"));b.val(this.id);b.text(this.date);c.testId==this.id&&b.attr("selected",!0);d.append(b)});b.parseFormData(c.formData);a("#userSelect").val(e);
63
+ a("#testSelect").val(p);b.toggleLoadBox(!0)})},parseFormData:function(b){var c=a("#wpProQuiz_form_box");null==b?c.hide():(a.each(b,function(b,c){a("#form_id_"+b).text(c)}),c.show())},setStatisticData:function(a,b){a.find(".wpProQuiz_cCorrect").text(b.correct);a.find(".wpProQuiz_cIncorrect").text(b.incorrect);a.find(".wpProQuiz_cTip").text(b.hint);a.find(".wpProQuiz_cPoints").text(b.points);a.find(".wpProQuiz_cResult").text(b.result);a.find(".wpProQuiz_cTime").text(b.questionTime);a.find(".wpProQuiz_cCreateTime").text(b.date)},
64
+ toggleLoadBox:function(b){var c=a("#wpProQuiz_loadData"),d=a("#wpProQuiz_content");b?(c.hide(),d.show()):(d.hide(),c.show())},reset:function(e){var f=a("#userSelect").val();confirm(wpProQuizLocalize.reset_statistics_msg)&&(e={quizId:d,userId:f,testId:k.val(),type:e},b.toggleLoadBox(!1),c.ajaxPost("statisticReset",e,function(){b.loadUsersStatistic()}))},loadStatisticOverview:function(f){f={quizId:d,pageLimit:a("#wpProQuiz_pageLimit").val(),onlyCompleted:Number(a("#wpProQuiz_onlyCompleted").is(":checked")),
65
+ page:e.val(),nav:Number(f)};b.toggleLoadBox(!1);c.ajaxPost("statisticLoadOverview",f,function(c){var d=a("#wpProQuiz_statistics_overview_data"),e=d.children(),f=e.first().clone();e.slice(1).remove();a.each(c.items,function(){var c=f.clone();b.setStatisticData(c,this);c.find("a").text(this.userName).data("userId",this.userId).click(function(){a("#userSelect").val(a(this).data("userId"));a("#wpProQuiz_typeUser").click();return!1});c.show().appendTo(d)});f.remove();b.toggleLoadBox(!0);void 0!=c.page&&
66
+ b.handleNav(c.page)})},handleNav:function(c){for(var d=a("#wpProQuiz_currentPage").empty(),e=1;e<=c;e++)a(document.createElement("option")).val(e).text(e).appendTo(d);b.checkNavBar()},checkNavBar:function(){var a=e.val();1==a?h.hide():h.show();a==e.children().length?m.hide():m.show()},refresh:function(){"users"==f?b.loadUsersStatistic():"formOverview"==f?b.loadFormsOverview(!0):b.loadStatisticOverview(!0)},loadFormsOverview:function(e){e={quizId:d,pageLimit:a("#wpProQuiz_fromPageLimit").val(),onlyUser:a("#wpProQuiz_formUser").val(),
67
+ page:a("#wpProQuiz_formCurrentPage").val(),nav:Number(e)};b.toggleLoadBox(!1);c.ajaxPost("statisticLoadFormOverview",e,function(c){var d=a("#wpProQuiz_statistics_form_data"),e=d.children(),f=e.first().clone();e.slice(1).remove();a.each(c.items,function(){var c=f.clone();b.setStatisticData(c,this);c.find("a").text(this.userName).data("userId",this.userId).data("testId",this.testId).click(function(){b.switchTabOnLoad("users");b.loadUsersStatistic_(a(this).data("userId"),a(this).data("testId"));return!1});
68
+ c.show().appendTo(d)});f.remove();b.toggleLoadBox(!0);void 0!=c.page&&b.handleFormNav(c.page)})},handleFormNav:function(c){for(var d=a("#wpProQuiz_formCurrentPage").empty(),e=1;e<=c;e++)a(document.createElement("option")).val(e).text(e).appendTo(d);b.checkFormNavBar()},checkFormNavBar:function(){var b=a("#wpProQuiz_formCurrentPage").val();1==b?a("#wpProQuiz_formPageLeft").hide():a("#wpProQuiz_formPageLeft").show();b==a("#wpProQuiz_formCurrentPage").children().length?a("#wpProQuiz_formPageRight").hide():
69
+ a("#wpProQuiz_formPageRight").show()},switchTabOnLoad:function(b){a(".wpProQuiz_tab").removeClass("button-primary").addClass("button-secondary");a(".wpProQuiz_tabContent").hide();var c=a("#wpProQuiz_typeOverview");"users"==b?(f="users",a("#wpProQuiz_tabUsers").show(),c=a("#wpProQuiz_typeUser")):"formOverview"==b?(f="formOverview",a("#wpProQuiz_tabFormOverview").show(),c=a("#wpProQuiz_typeForm")):(f="overview",a("#wpProQuiz_tabOverview").show());c.removeClass("button-secondary").addClass("button-primary")}};
70
+ (function(){a("#userSelect, #testSelect").change(function(){b.loadUsersStatistic()});a(".wpProQuiz_update").click(function(){b.refresh()});a("#wpProQuiz_reset").click(function(){b.reset(0)});a("#wpProQuiz_resetUser").click(function(){b.reset(1)});a(".wpProQuiz_resetComplete").click(function(){b.reset(2)});a(".wpProQuiz_tab").click(function(){var c=a(this);a(".wpProQuiz_tab").removeClass("button-primary").addClass("button-secondary");c.removeClass("button-secondary").addClass("button-primary");a(".wpProQuiz_tabContent").hide();
71
+ "wpProQuiz_typeUser"==c.attr("id")?(f="users",a("#wpProQuiz_tabUsers").show(),b.loadUsersStatistic()):"wpProQuiz_typeForm"==c.attr("id")?(f="formOverview",a("#wpProQuiz_tabFormOverview").show(),b.loadFormsOverview(!0)):(f="overview",a("#wpProQuiz_tabOverview").show(),b.loadStatisticOverview(!0));return!1});a("#wpProQuiz_onlyCompleted").change(function(){e.val(1);b.loadStatisticOverview(!0)});a("#wpProQuiz_pageLimit").change(function(){e.val(1);b.loadStatisticOverview(!0)});h.click(function(){e.val(Number(e.val())-
72
+ 1);b.loadStatisticOverview(!1);b.checkNavBar()});m.click(function(){e.val(Number(e.val())+1);b.loadStatisticOverview(!1);b.checkNavBar()});e.change(function(){b.loadStatisticOverview(!1);b.checkNavBar()});a("#wpProQuiz_formUser, #wpProQuiz_fromPageLimit").change(function(){a("#wpProQuiz_formCurrentPage").val(1);b.loadFormsOverview(!0)});a("#wpProQuiz_formPageLeft").click(function(){a("#wpProQuiz_formCurrentPage").val(Number(e.val())-1);b.loadFormsOverview(!1);b.checkFormNavBar()});a("#wpProQuiz_formPageRight").click(function(){a("#wpProQuiz_formCurrentPage").val(Number(e.val())+
73
+ 1);b.loadFormsOverview(!1);b.checkFormNavBar()});a("#wpProQuiz_formCurrentPage").change(function(){b.loadFormsOverview(!1);b.checkFormNavBar()});b.loadUsersStatistic()})()},n=function(){var b=a("#quizId").val(),d=null,f=null,e={data:{quizId:b,users:-1,pageLimit:100,dateFrom:0,dateTo:0,generateNav:0},changeFilter:function(){var b=function(a){a=a.datepicker("getDate");return null===a?0:a.getTime()/1E3};a.extend(this.data,{users:a("#wpProQuiz_historyUser").val(),pageLimit:a("#wpProQuiz_historyPageLimit").val(),
74
+ dateFrom:b(a("#datepickerFrom")),dateTo:b(a("#datepickerTo")),generateNav:1});return this.data}},h={data:{pageLimit:100,onlyCompleted:0,generateNav:0,quizId:b},changeFilter:function(){a.extend(this.data,{pageLimit:a("#wpProQuiz_overviewPageLimit").val(),onlyCompleted:Number(a("#wpProQuiz_overviewOnlyCompleted").is(":checked")),generateNav:1})}},m={deleteUserStatistic:function(d,f){if(!confirm(wpProQuizLocalize.reset_statistics_msg))return!1;c.ajaxPost("statisticResetNew",{refId:d,userId:f,quizId:b,
75
+ type:0},function(){a("#wpProQuiz_user_overlay").hide();e.changeFilter();k.loadHistoryAjax();h.changeFilter();k.loadOverviewAjax()})},deleteAll:function(){if(!confirm(wpProQuizLocalize.reset_statistics_msg))return!1;c.ajaxPost("statisticResetNew",{quizId:b,type:1},function(){e.changeFilter();k.loadHistoryAjax();h.changeFilter();k.loadOverviewAjax()})}},k={loadHistoryAjax:function(){var b=a.extend({page:e.data.generateNav?1:d.getCurrentPage()},e.data);k.loadBox(!0);var g=a("#wpProQuiz_historyLoadContext").hide();
76
+ c.ajaxPost("statisticLoadHistory",b,function(b){g.html(b.html).show();b.navi&&d.setNumPage(b.navi);e.data.generateNav=0;g.find(".user_statistic").click(function(){k.loadUserAjax(0,a(this).data("ref_id"),!1);return!1});g.find(".wpProQuiz_delete").click(function(){m.deleteUserStatistic(a(this).parents("tr").find(".user_statistic").data("ref_id"),0);return!1});k.loadBox(!1)})},loadUserAjax:function(d,e,f){a("#wpProQuiz_user_overlay, #wpProQuiz_loadUserData").show();var h=a("#wpProQuiz_user_content").hide();
77
+ c.ajaxPost("statisticLoadUser",{quizId:b,userId:d,refId:e,avg:Number(f)},function(b){h.html(b.html);h.find(".wpProQuiz_update").click(function(){k.loadUserAjax(d,e,f);return!1});h.find("#wpProQuiz_resetUserStatistic").click(function(){m.deleteUserStatistic(e,d)});h.find(".statistic_data").click(function(){a(this).parents("tr").next().toggle("fast");return!1});a("#wpProQuiz_loadUserData").hide();h.show()})},loadBox:function(b,c){b?a("#wpProQuiz_loadDataHistory").show():a("#wpProQuiz_loadDataHistory").hide()},
78
+ loadOverviewAjax:function(){var b=a.extend({page:h.data.generateNav?1:f.getCurrentPage()},h.data);a("#wpProQuiz_loadDataOverview").show();var d=a("#wpProQuiz_overviewLoadContext").hide();c.ajaxPost("statisticLoadOverviewNew",b,function(b){d.html(b.html).show();b.navi&&f.setNumPage(b.navi);h.data.generateNav=0;d.find(".user_statistic").click(function(){k.loadUserAjax(a(this).data("user_id"),0,!0);return!1});d.find(".wpProQuiz_delete").click(function(){m.deleteUserStatistic(0,a(this).parents("tr").find(".user_statistic").data("user_id"));
79
+ return!1});a("#wpProQuiz_loadDataOverview").hide()})}};(function(){d=new r(a("#historyNavigation"),{onChange:function(){k.loadHistoryAjax()}});f=new r(a("#overviewNavigation"),{onChange:function(){k.loadOverviewAjax()}});a("#datepickerFrom").datepicker({closeText:wpProQuizLocalize.closeText,currentText:wpProQuizLocalize.currentText,monthNames:wpProQuizLocalize.monthNames,monthNamesShort:wpProQuizLocalize.monthNamesShort,dayNames:wpProQuizLocalize.dayNames,dayNamesShort:wpProQuizLocalize.dayNamesShort,
80
+ dayNamesMin:wpProQuizLocalize.dayNamesMin,dateFormat:wpProQuizLocalize.dateFormat,firstDay:wpProQuizLocalize.firstDay,changeMonth:!0,onClose:function(b){a("#datepickerTo").datepicker("option","minDate",b)}});a("#datepickerTo").datepicker({closeText:wpProQuizLocalize.closeText,currentText:wpProQuizLocalize.currentText,monthNames:wpProQuizLocalize.monthNames,monthNamesShort:wpProQuizLocalize.monthNamesShort,dayNames:wpProQuizLocalize.dayNames,dayNamesShort:wpProQuizLocalize.dayNamesShort,dayNamesMin:wpProQuizLocalize.dayNamesMin,
81
+ dateFormat:wpProQuizLocalize.dateFormat,firstDay:wpProQuizLocalize.firstDay,changeMonth:!0,onClose:function(b){a("#datepickerFrom").datepicker("option","maxDate",b)}});a("#filter").click(function(){e.changeFilter();k.loadHistoryAjax()});a("#wpProQuiz_overlay_close").click(function(){a("#wpProQuiz_user_overlay").hide()});a("#wpProQuiz_tabHistory .wpProQuiz_update").click(function(){e.changeFilter();k.loadHistoryAjax();return!1});a("#wpProQuiz_tabOverview .wpProQuiz_update").click(function(){h.changeFilter();
82
+ k.loadOverviewAjax();return!1});a(".wpProQuiz_resetComplete").click(function(){m.deleteAll();return!1});a("#overviewFilter").click(function(){h.changeFilter();k.loadOverviewAjax()});e.changeFilter();k.loadHistoryAjax();h.changeFilter();k.loadOverviewAjax()})()};(function(){f();var c=a.noop;a(".wpProQuiz_questionEdit").length?c=b:a(".wpProQuiz_globalSettings").length?c=d:a(".wpProQuiz_statistics").length?c=h:a(".wpProQuiz_statisticsNew").length&&(c=n);c();a(".wpProQuiz_demoImgBox a").mouseover(function(b){var c=
83
+ a(this),d=a(document).width(),c=c.siblings().outerWidth(!0);b.pageX+c>d&&(b=d-(b.pageX+c+30),a(this).next().css("left",b+"px"));a(this).next().show()}).mouseout(function(){a(this).next().hide()}).click(function(){return!1})})()})()});
languages/wp-pro-quiz-ar.mo CHANGED
Binary file
languages/wp-pro-quiz-ar.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
- "POT-Creation-Date: 2014-10-09 10:36+0100\n"
5
- "PO-Revision-Date: 2014-10-09 10:36+0100\n"
6
  "Last-Translator: Julius Fischer <webmaster@it-gecko.de>\n"
7
  "Language-Team: abuhassan <sajja2002@hotmail.com>\n"
8
  "Language: ar\n"
@@ -14,99 +14,112 @@ msgstr ""
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
- #: lib/controller/WpProQuiz_Controller_Admin.php:100
18
  msgid "Do you really want to delete the quiz/question?"
19
  msgstr "هل تريد حقاً ان تحذف هذا الاختبار/السؤال؟"
20
 
21
- #: lib/controller/WpProQuiz_Controller_Admin.php:101
22
  msgid "Title is not filled!"
23
  msgstr "لم يتم تعبئة هذا!"
24
 
25
- #: lib/controller/WpProQuiz_Controller_Admin.php:102
26
  msgid "No question deposited!"
27
  msgstr "لم يتم وضع سؤال!"
28
 
29
- #: lib/controller/WpProQuiz_Controller_Admin.php:103
30
  msgid "Correct answer was not selected!"
31
  msgstr "لم يتم اختيار اجابة صحيحة!"
32
 
33
- #: lib/controller/WpProQuiz_Controller_Admin.php:104
34
  msgid "No answer deposited!"
35
  msgstr "لم يتم وضع اجابة!"
36
 
37
- #: lib/controller/WpProQuiz_Controller_Admin.php:105
38
  msgid "No quiz description filled!"
39
  msgstr "لم يتم تعبئة وصف للاختبار!"
40
 
41
- #: lib/controller/WpProQuiz_Controller_Admin.php:106
42
  msgid "The percent values in result text are incorrect."
43
  msgstr "النسبة المئوية في نص النتائج غير صحيحة."
44
 
45
- #: lib/controller/WpProQuiz_Controller_Admin.php:107
46
  msgid "No number in the field \"Points\" or less than 1"
47
  msgstr "لا يوجد رقم في حقل /\"النقاط/\" أو أقل من 1"
48
 
49
- #: lib/controller/WpProQuiz_Controller_Admin.php:108
50
  msgid "No number in the field \"Points\" or less than 0"
51
  msgstr ""
52
 
53
- #: lib/controller/WpProQuiz_Controller_Admin.php:109
54
  msgid "No quiz selected"
55
  msgstr "لم يتم اختيار اختبار"
56
 
57
- #: lib/controller/WpProQuiz_Controller_Admin.php:110
58
  msgid "Do you really want to reset the statistic?"
59
  msgstr ""
60
 
61
- #: lib/controller/WpProQuiz_Controller_Admin.php:111
62
  #: lib/view/WpProQuiz_View_FrontToplist.php:26
63
- #: lib/view/WpProQuiz_View_QuestionOverall.php:71
64
- #: lib/view/WpProQuiz_View_QuizOverall.php:141
65
  #: lib/view/WpProQuiz_View_StatisticsAjax.php:41
66
  #: lib/view/WpProQuiz_View_StatisticsAjax.php:615
67
  msgid "No data available"
68
  msgstr ""
69
 
70
- #: lib/controller/WpProQuiz_Controller_Admin.php:112
71
  msgid "No sort element in the criterion"
72
  msgstr ""
73
 
74
- #: lib/controller/WpProQuiz_Controller_Admin.php:113
75
  msgid ""
76
  "\"Different points for every answer\" is not possible at \"Free\" choice"
77
  msgstr ""
78
 
79
- #: lib/controller/WpProQuiz_Controller_Admin.php:114
80
  msgid "You must specify a name."
81
  msgstr ""
82
 
83
- #: lib/controller/WpProQuiz_Controller_Admin.php:115
84
  msgid "This entry should really be deleted?"
85
  msgstr ""
86
 
87
- #: lib/controller/WpProQuiz_Controller_Admin.php:116
88
  msgid "Not all fields completed."
89
  msgstr ""
90
 
91
- #: lib/controller/WpProQuiz_Controller_Admin.php:117
92
  msgid "You must specify a template name."
93
  msgstr ""
94
 
95
- #: lib/controller/WpProQuiz_Controller_Admin.php:120
96
  #: lib/view/WpProQuiz_View_StatisticsNew.php:181
97
  msgid "Close"
98
  msgstr ""
99
 
100
- #: lib/controller/WpProQuiz_Controller_Admin.php:121
101
  msgid "Today"
102
  msgstr ""
103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  #: lib/controller/WpProQuiz_Controller_Front.php:47
105
  #: lib/controller/WpProQuiz_Controller_Front.php:66
106
  #: lib/controller/WpProQuiz_Controller_Preview.php:15
107
  #: lib/view/WpProQuiz_View_AdminToplist.php:47
108
- #: lib/view/WpProQuiz_View_FrontQuiz.php:237
109
- #: lib/view/WpProQuiz_View_QuestionOverall.php:98
110
  #: lib/view/WpProQuiz_View_Statistics.php:46
111
  #: lib/view/WpProQuiz_View_StatisticsNew.php:73
112
  #: lib/view/WpProQuiz_View_StatisticsNew.php:149
@@ -136,19 +149,21 @@ msgstr ""
136
  #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:11
137
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:23
138
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:47
139
- #: lib/controller/WpProQuiz_Controller_Question.php:64
140
- #: lib/controller/WpProQuiz_Controller_Question.php:68
141
- #: lib/controller/WpProQuiz_Controller_Question.php:189
142
- #: lib/controller/WpProQuiz_Controller_Question.php:266
143
- #: lib/controller/WpProQuiz_Controller_Question.php:281
144
- #: lib/controller/WpProQuiz_Controller_Question.php:358
145
- #: lib/controller/WpProQuiz_Controller_Question.php:540
146
- #: lib/controller/WpProQuiz_Controller_Quiz.php:37
147
- #: lib/controller/WpProQuiz_Controller_Quiz.php:41
148
- #: lib/controller/WpProQuiz_Controller_Quiz.php:292
149
- #: lib/controller/WpProQuiz_Controller_Quiz.php:309
150
- #: lib/controller/WpProQuiz_Controller_Quiz.php:393
151
- #: lib/controller/WpProQuiz_Controller_Quiz.php:603
 
 
152
  #: lib/controller/WpProQuiz_Controller_Statistics.php:40
153
  #: lib/controller/WpProQuiz_Controller_Toplist.php:88
154
  msgid "You do not have sufficient permissions to access this page."
@@ -171,96 +186,114 @@ msgstr "لا يمكن استكمال الملف"
171
 
172
  #: lib/controller/WpProQuiz_Controller_Question.php:9
173
  #: lib/controller/WpProQuiz_Controller_Question.php:19
174
- #: lib/controller/WpProQuiz_Controller_Quiz.php:57
175
- #: lib/controller/WpProQuiz_Controller_Quiz.php:326
176
  msgid "Quiz not found"
177
  msgstr "لم يتم العثور على الاختبار"
178
 
179
- #: lib/controller/WpProQuiz_Controller_Question.php:78
 
 
 
 
 
 
 
180
  msgid "Question not found"
181
  msgstr "لم يتم العثور على السؤال"
182
 
183
- #: lib/controller/WpProQuiz_Controller_Question.php:100
184
- #: lib/controller/WpProQuiz_Controller_Question.php:348
185
  msgid "Question edited"
186
  msgstr "تم تحرير السؤال"
187
 
188
- #: lib/controller/WpProQuiz_Controller_Question.php:102
189
  msgid "Question added"
190
  msgstr "تم اضافة سؤال"
191
 
192
- #: lib/controller/WpProQuiz_Controller_Question.php:120
193
- #: lib/controller/WpProQuiz_Controller_Question.php:302
194
  msgid "Edit question"
195
  msgstr "تحرير السؤال"
196
 
197
- #: lib/controller/WpProQuiz_Controller_Question.php:120
198
- #: lib/controller/WpProQuiz_Controller_Question.php:416
199
  msgid "New question"
200
  msgstr "سؤال جديد"
201
 
202
- #: lib/controller/WpProQuiz_Controller_Question.php:166
203
- #: lib/controller/WpProQuiz_Controller_Question.php:330
204
  #, php-format
205
  msgid "Question: %d"
206
  msgstr "السؤال: %d"
207
 
208
- #: lib/controller/WpProQuiz_Controller_Question.php:203
209
  msgid "questions copied"
210
  msgstr ""
211
 
212
- #: lib/controller/WpProQuiz_Controller_Quiz.php:96
213
- #: lib/controller/WpProQuiz_Controller_Quiz.php:341
 
 
 
 
 
 
 
 
 
214
  msgid "Quiz edited"
215
  msgstr "تم تحرير الاختبار"
216
 
217
- #: lib/controller/WpProQuiz_Controller_Quiz.php:98
218
  msgid "quiz created"
219
  msgstr ""
220
 
221
- #: lib/controller/WpProQuiz_Controller_Quiz.php:120
222
- #: lib/controller/WpProQuiz_Controller_Quiz.php:362
223
- #: lib/controller/WpProQuiz_Controller_Quiz.php:434
224
  msgid "Quiz title or quiz description are not filled"
225
  msgstr "لم يتم تعبئة عنوان او وصف الاختبار"
226
 
227
- #: lib/controller/WpProQuiz_Controller_Quiz.php:138
228
- #: lib/controller/WpProQuiz_Controller_Quiz.php:319
229
- #: lib/view/WpProQuiz_View_QuestionOverall.php:21
230
  msgid "Edit quiz"
231
  msgstr "تحرير الاختبار"
232
 
233
- #: lib/controller/WpProQuiz_Controller_Quiz.php:138
234
- #: lib/controller/WpProQuiz_Controller_Quiz.php:397
235
- #: lib/controller/WpProQuiz_Controller_Quiz.php:415
236
  msgid "Create quiz"
237
  msgstr "انشاء اختبار"
238
 
239
- #: lib/controller/WpProQuiz_Controller_Quiz.php:517
240
  msgid "Template stored"
241
  msgstr ""
242
 
243
- #: lib/controller/WpProQuiz_Controller_Quiz.php:622
 
244
  msgid "Quiz deleted"
245
  msgstr "تم حذف الاختبار"
246
 
247
- #: lib/controller/WpProQuiz_Controller_Quiz.php:886
248
  #: lib/controller/WpProQuiz_Controller_QuizCompleted.php:190
249
- #: lib/view/WpProQuiz_View_FrontQuiz.php:655
250
  msgid "Not categorized"
251
  msgstr ""
252
 
253
- #: lib/controller/WpProQuiz_Controller_Quiz.php:892
254
  #: lib/controller/WpProQuiz_Controller_QuizCompleted.php:196
255
- #: lib/view/WpProQuiz_View_FrontQuiz.php:650
256
  msgid "Categories"
257
  msgstr ""
258
 
259
  #: lib/controller/WpProQuiz_Controller_Statistics.php:56
260
  #: lib/controller/WpProQuiz_Controller_Statistics.php:694
261
  #: lib/view/WpProQuiz_View_QuestionEdit.php:91
 
262
  #: lib/view/WpProQuiz_View_QuizEdit.php:54
263
- #: lib/view/WpProQuiz_View_QuizOverall.php:209
264
  msgid "No category"
265
  msgstr ""
266
 
@@ -317,13 +350,13 @@ msgid "not ticked"
317
  msgstr ""
318
 
319
  #: lib/helper/WpProQuiz_Helper_Form.php:94
320
- #: lib/view/WpProQuiz_View_FrontQuiz.php:432
321
  #: lib/view/WpProQuiz_View_StatisticsAjax.php:567
322
  msgid "Yes"
323
  msgstr ""
324
 
325
  #: lib/helper/WpProQuiz_Helper_Form.php:94
326
- #: lib/view/WpProQuiz_View_FrontQuiz.php:437
327
  #: lib/view/WpProQuiz_View_StatisticsAjax.php:567
328
  msgid "No"
329
  msgstr ""
@@ -391,7 +424,7 @@ msgid "A powerful and beautiful quiz plugin for WordPress."
391
  msgstr ""
392
 
393
  #: lib/plugin/WpProQuiz_Plugin_BpAchievementsV3.php:21
394
- #: lib/view/WpProQuiz_View_QuizOverall.php:64
395
  msgid "WP-Pro-Quiz"
396
  msgstr ""
397
 
@@ -399,7 +432,7 @@ msgstr ""
399
  #: lib/view/WpProQuiz_View_FrontToplist.php:8
400
  #: lib/view/WpProQuiz_View_QuizEdit.php:1029
401
  #: lib/view/WpProQuiz_View_QuizEdit.php:1041
402
- #: lib/view/WpProQuiz_View_QuizOverall.php:124
403
  msgid "Leaderboard"
404
  msgstr ""
405
 
@@ -407,7 +440,7 @@ msgstr ""
407
  #: lib/view/WpProQuiz_View_GobalSettings.php:9
408
  #: lib/view/WpProQuiz_View_Import.php:22
409
  #: lib/view/WpProQuiz_View_QuestionEdit.php:24
410
- #: lib/view/WpProQuiz_View_QuestionOverall.php:19
411
  #: lib/view/WpProQuiz_View_QuizEdit.php:23
412
  #: lib/view/WpProQuiz_View_Statistics.php:29
413
  #: lib/view/WpProQuiz_View_StatisticsNew.php:57
@@ -416,6 +449,8 @@ msgid "back to overview"
416
  msgstr "العودة للرئيسية"
417
 
418
  #: lib/view/WpProQuiz_View_AdminToplist.php:11
 
 
419
  #: lib/view/WpProQuiz_View_Statistics.php:209
420
  #: lib/view/WpProQuiz_View_Statistics.php:288
421
  #: lib/view/WpProQuiz_View_StatisticsNew.php:94
@@ -470,7 +505,7 @@ msgid "User"
470
  msgstr ""
471
 
472
  #: lib/view/WpProQuiz_View_AdminToplist.php:56
473
- #: lib/view/WpProQuiz_View_FrontQuiz.php:245
474
  msgid "E-Mail"
475
  msgstr ""
476
 
@@ -480,15 +515,15 @@ msgid "Entered on"
480
  msgstr ""
481
 
482
  #: lib/view/WpProQuiz_View_AdminToplist.php:59
483
- #: lib/view/WpProQuiz_View_FrontQuiz.php:897
484
- #: lib/view/WpProQuiz_View_FrontQuiz.php:919
485
  #: lib/view/WpProQuiz_View_FrontToplist.php:17
486
  #: lib/view/WpProQuiz_View_QuestionEdit.php:49
487
  #: lib/view/WpProQuiz_View_QuestionEdit.php:56
488
  #: lib/view/WpProQuiz_View_QuestionEdit.php:317
489
  #: lib/view/WpProQuiz_View_QuestionEdit.php:355
490
  #: lib/view/WpProQuiz_View_QuestionEdit.php:414
491
- #: lib/view/WpProQuiz_View_QuestionOverall.php:30
492
  #: lib/view/WpProQuiz_View_Statistics.php:105
493
  #: lib/view/WpProQuiz_View_Statistics.php:240
494
  #: lib/view/WpProQuiz_View_StatisticsAjax.php:34
@@ -498,7 +533,7 @@ msgid "Points"
498
  msgstr "درجات"
499
 
500
  #: lib/view/WpProQuiz_View_AdminToplist.php:60
501
- #: lib/view/WpProQuiz_View_FrontQuiz.php:609
502
  #: lib/view/WpProQuiz_View_Statistics.php:111
503
  #: lib/view/WpProQuiz_View_Statistics.php:245
504
  #: lib/view/WpProQuiz_View_Statistics.php:324
@@ -513,8 +548,8 @@ msgstr "النتائج"
513
  #: lib/view/WpProQuiz_View_GobalSettings.php:166
514
  #: lib/view/WpProQuiz_View_GobalSettings.php:192
515
  #: lib/view/WpProQuiz_View_GobalSettings.php:217
516
- #: lib/view/WpProQuiz_View_QuestionOverall.php:51
517
- #: lib/view/WpProQuiz_View_QuizOverall.php:108
518
  msgid "Edit"
519
  msgstr "تحرير"
520
 
@@ -524,9 +559,11 @@ msgstr "تحرير"
524
  #: lib/view/WpProQuiz_View_GobalSettings.php:165
525
  #: lib/view/WpProQuiz_View_GobalSettings.php:191
526
  #: lib/view/WpProQuiz_View_GobalSettings.php:216
527
- #: lib/view/WpProQuiz_View_QuestionOverall.php:55
 
528
  #: lib/view/WpProQuiz_View_QuizEdit.php:1452
529
- #: lib/view/WpProQuiz_View_QuizOverall.php:112
 
530
  #: lib/view/WpProQuiz_View_StatisticsAjax.php:51
531
  #: lib/view/WpProQuiz_View_StatisticsAjax.php:649
532
  msgid "Delete"
@@ -552,179 +589,173 @@ msgstr ""
552
  msgid "Delete all entries"
553
  msgstr ""
554
 
555
- #: lib/view/WpProQuiz_View_FrontQuiz.php:26
556
  msgid "Start quiz"
557
  msgstr "بدأ الاختبار"
558
 
559
- #: lib/view/WpProQuiz_View_FrontQuiz.php:27
560
  msgid "Restart quiz"
561
  msgstr "اعادة الاختبار"
562
 
563
- #: lib/view/WpProQuiz_View_FrontQuiz.php:28
564
  #: lib/view/WpProQuiz_View_QuizEdit.php:420
565
  #: lib/view/WpProQuiz_View_QuizEdit.php:430
566
  #: lib/view/WpProQuiz_View_QuizEdit.php:435
567
  msgid "Quiz-summary"
568
  msgstr ""
569
 
570
- #: lib/view/WpProQuiz_View_FrontQuiz.php:29
571
  msgid "Finish quiz"
572
  msgstr ""
573
 
574
- #: lib/view/WpProQuiz_View_FrontQuiz.php:30
575
  msgid "Quiz is loading..."
576
  msgstr ""
577
 
578
- #: lib/view/WpProQuiz_View_FrontQuiz.php:31
579
  msgid ""
580
  "You have already completed the quiz before. Hence you can not start it again."
581
  msgstr ""
582
 
583
- #: lib/view/WpProQuiz_View_FrontQuiz.php:32
584
  msgid "You must sign in or sign up to start the quiz."
585
  msgstr ""
586
 
587
- #: lib/view/WpProQuiz_View_FrontQuiz.php:33
588
  msgid "You have to finish following quiz, to start this quiz:"
589
  msgstr ""
590
 
591
- #: lib/view/WpProQuiz_View_FrontQuiz.php:235
592
  msgid "Your result has been entered into leaderboard"
593
  msgstr ""
594
 
595
- #: lib/view/WpProQuiz_View_FrontQuiz.php:242
596
  #: lib/view/WpProQuiz_View_FrontToplist.php:15
597
- #: lib/view/WpProQuiz_View_QuestionOverall.php:28
598
- #: lib/view/WpProQuiz_View_QuizOverall.php:85
599
  msgid "Name"
600
  msgstr "الاسم"
601
 
602
- #: lib/view/WpProQuiz_View_FrontQuiz.php:250
603
  msgid "Captcha"
604
  msgstr ""
605
 
606
- #: lib/view/WpProQuiz_View_FrontQuiz.php:256
607
  msgid "Send"
608
  msgstr ""
609
 
610
- #: lib/view/WpProQuiz_View_FrontQuiz.php:347
611
- #: lib/view/WpProQuiz_View_FrontQuiz.php:446
612
  msgid "You must fill out this field."
613
  msgstr ""
614
 
615
- #: lib/view/WpProQuiz_View_FrontQuiz.php:350
616
  msgid "You must specify a number."
617
  msgstr ""
618
 
619
- #: lib/view/WpProQuiz_View_FrontQuiz.php:351
620
  msgid "You must specify a text."
621
  msgstr ""
622
 
623
- #: lib/view/WpProQuiz_View_FrontQuiz.php:352
624
  msgid "You must specify an email address."
625
  msgstr ""
626
 
627
- #: lib/view/WpProQuiz_View_FrontQuiz.php:353
628
  msgid "You must specify a date."
629
  msgstr ""
630
 
631
- #: lib/view/WpProQuiz_View_FrontQuiz.php:495
632
  #, php-format
633
  msgid "%s of %s questions completed"
634
  msgstr ""
635
 
636
- #: lib/view/WpProQuiz_View_FrontQuiz.php:497
637
- #: lib/view/WpProQuiz_View_Import.php:44
638
- #: lib/view/WpProQuiz_View_QuizOverall.php:103
639
- msgid "Questions"
640
- msgstr "اسئلة"
641
-
642
- #: lib/view/WpProQuiz_View_FrontQuiz.php:512
643
- #: lib/view/WpProQuiz_View_FrontQuiz.php:527
644
  msgid "Information"
645
  msgstr ""
646
 
647
- #: lib/view/WpProQuiz_View_FrontQuiz.php:563
648
  #: lib/view/WpProQuiz_View_QuizEdit.php:190
649
  #: lib/view/WpProQuiz_View_QuizEdit.php:195
650
  msgid "Time limit"
651
  msgstr "الوقت المحدد"
652
 
653
- #: lib/view/WpProQuiz_View_FrontQuiz.php:584
654
  msgid "Answered"
655
  msgstr ""
656
 
657
- #: lib/view/WpProQuiz_View_FrontQuiz.php:588
658
  msgid "Review"
659
  msgstr ""
660
 
661
- #: lib/view/WpProQuiz_View_FrontQuiz.php:595
662
  msgid "Review question"
663
  msgstr ""
664
 
665
- #: lib/view/WpProQuiz_View_FrontQuiz.php:612
666
  #, php-format
667
  msgid "%s of %s questions answered correctly"
668
  msgstr "تم اجابة %s من %s اسئلة بشكل صحيح"
669
 
670
- #: lib/view/WpProQuiz_View_FrontQuiz.php:616
671
  msgid "Your time: <span></span>"
672
  msgstr "وقتك: <span></span>"
673
 
674
- #: lib/view/WpProQuiz_View_FrontQuiz.php:620
675
  msgid "Time has elapsed"
676
  msgstr "مضى من الوقت"
677
 
678
- #: lib/view/WpProQuiz_View_FrontQuiz.php:624
679
  #, php-format
680
  msgid "You have reached %s of %s points, (%s)"
681
  msgstr "لقد وصلت الي %s من %s لنقاط, (%s)"
682
 
683
- #: lib/view/WpProQuiz_View_FrontQuiz.php:632
684
  msgid "Average score"
685
  msgstr ""
686
 
687
- #: lib/view/WpProQuiz_View_FrontQuiz.php:639
688
  msgid "Your score"
689
  msgstr ""
690
 
691
- #: lib/view/WpProQuiz_View_FrontQuiz.php:690
692
  msgid "View questions"
693
  msgstr "استعراض الاسئلة"
694
 
695
- #: lib/view/WpProQuiz_View_FrontQuiz.php:693
696
  msgid "Show leaderboard"
697
  msgstr ""
698
 
699
- #: lib/view/WpProQuiz_View_FrontQuiz.php:752
700
  #, php-format
701
  msgid "Question %s of %s"
702
  msgstr "اسئلة %s من %s "
703
 
704
- #: lib/view/WpProQuiz_View_FrontQuiz.php:755
705
  #: lib/view/WpProQuiz_View_QuestionEdit.php:110
706
  #: lib/view/WpProQuiz_View_Statistics.php:104
707
  #: lib/view/WpProQuiz_View_StatisticsAjax.php:167
708
  msgid "Question"
709
  msgstr "اسئلة"
710
 
711
- #: lib/view/WpProQuiz_View_FrontQuiz.php:759
712
  #, php-format
713
  msgid "%d points"
714
  msgstr "%d درجات"
715
 
716
- #: lib/view/WpProQuiz_View_FrontQuiz.php:765
717
  #, php-format
718
  msgid "Category: %s"
719
  msgstr ""
720
 
721
- #: lib/view/WpProQuiz_View_FrontQuiz.php:774
722
  #: lib/view/WpProQuiz_View_QuestionEdit.php:347
723
  msgid "Sort elements"
724
  msgstr "ترتيب العناصر"
725
 
726
- #: lib/view/WpProQuiz_View_FrontQuiz.php:895
727
  #: lib/view/WpProQuiz_View_FrontQuiz.php:902
 
728
  #: lib/view/WpProQuiz_View_QuestionEdit.php:305
729
  #: lib/view/WpProQuiz_View_Statistics.php:106
730
  #: lib/view/WpProQuiz_View_Statistics.php:241
@@ -735,8 +766,8 @@ msgstr "ترتيب العناصر"
735
  msgid "Correct"
736
  msgstr "صحيح"
737
 
738
- #: lib/view/WpProQuiz_View_FrontQuiz.php:917
739
  #: lib/view/WpProQuiz_View_FrontQuiz.php:924
 
740
  #: lib/view/WpProQuiz_View_Statistics.php:107
741
  #: lib/view/WpProQuiz_View_Statistics.php:242
742
  #: lib/view/WpProQuiz_View_StatisticsAjax.php:32
@@ -745,32 +776,32 @@ msgstr "صحيح"
745
  msgid "Incorrect"
746
  msgstr "خطأ"
747
 
748
- #: lib/view/WpProQuiz_View_FrontQuiz.php:947
749
- #: lib/view/WpProQuiz_View_FrontQuiz.php:958
750
  #: lib/view/WpProQuiz_View_QuestionEdit.php:154
751
  msgid "Hint"
752
  msgstr "تلميح"
753
 
754
- #: lib/view/WpProQuiz_View_FrontQuiz.php:954
755
  #: lib/view/WpProQuiz_View_QuizEdit.php:449
756
  #: lib/view/WpProQuiz_View_QuizEdit.php:454
757
  msgid "Skip question"
758
  msgstr ""
759
 
760
- #: lib/view/WpProQuiz_View_FrontQuiz.php:956
761
  msgid "Back"
762
  msgstr "العودة"
763
 
764
- #: lib/view/WpProQuiz_View_FrontQuiz.php:960
765
  msgid "Check"
766
  msgstr "التحقق"
767
 
768
- #: lib/view/WpProQuiz_View_FrontQuiz.php:961
769
  msgid "Next"
770
  msgstr ""
771
 
772
- #: lib/view/WpProQuiz_View_FrontQuiz.php:974
773
- #: lib/view/WpProQuiz_View_FrontQuiz.php:975
774
  #, php-format
775
  msgid "Page %d"
776
  msgstr ""
@@ -792,11 +823,22 @@ msgstr ""
792
  msgid "Table is loading"
793
  msgstr ""
794
 
795
- #: lib/view/WpProQuiz_View_GobalSettings.php:7
796
- #: lib/view/WpProQuiz_View_GobalSettings.php:12
797
- #: lib/view/WpProQuiz_View_GobalSettings.php:42
798
- #: lib/view/WpProQuiz_View_QuizOverall.php:51
799
- msgid "Global settings"
 
 
 
 
 
 
 
 
 
 
 
800
  msgstr ""
801
 
802
  #: lib/view/WpProQuiz_View_GobalSettings.php:14
@@ -806,9 +848,12 @@ msgstr ""
806
 
807
  #: lib/view/WpProQuiz_View_GobalSettings.php:30
808
  #: lib/view/WpProQuiz_View_QuestionEdit.php:263
 
 
 
809
  #: lib/view/WpProQuiz_View_QuizEdit.php:655
810
- #: lib/view/WpProQuiz_View_QuizOverall.php:227
811
- #: lib/view/WpProQuiz_View_WpqSupport.php:45
812
  msgid "Save"
813
  msgstr "حفظ"
814
 
@@ -1025,7 +1070,7 @@ msgid "not to activate"
1025
  msgstr ""
1026
 
1027
  #: lib/view/WpProQuiz_View_GobalSettings.php:392
1028
- #: lib/view/WpProQuiz_View_WpqSupport.php:50
1029
  msgid "Please note"
1030
  msgstr ""
1031
 
@@ -1051,7 +1096,6 @@ msgid ""
1051
  msgstr ""
1052
 
1053
  #: lib/view/WpProQuiz_View_GobalSettings.php:419
1054
- #: lib/view/WpProQuiz_View_QuizOverall.php:42
1055
  msgid ""
1056
  "Own themes changes internal order of filters, what causes the problems. "
1057
  "With additional shortcode [raw] this is prevented."
@@ -1137,8 +1181,9 @@ msgid "No date will be deleted. Only WP-Pro-Quiz tables will be repaired."
1137
  msgstr ""
1138
 
1139
  #: lib/view/WpProQuiz_View_Import.php:21
1140
- #: lib/view/WpProQuiz_View_QuizOverall.php:150
1141
- #: lib/view/WpProQuiz_View_QuizOverall.php:175
 
1142
  msgid "Import"
1143
  msgstr "استيراد"
1144
 
@@ -1159,16 +1204,18 @@ msgid "Quiz name"
1159
  msgstr "اسم الاختبار"
1160
 
1161
  #: lib/view/WpProQuiz_View_Import.php:69
1162
- #: lib/view/WpProQuiz_View_QuizOverall.php:186
1163
  msgid "Start import"
1164
  msgstr "ابدأ الاستيراد"
1165
 
1166
  #: lib/view/WpProQuiz_View_InfoAdaptation.php:7
 
1167
  msgid "WP-Pro-Quiz special modification"
1168
  msgstr ""
1169
 
1170
  #: lib/view/WpProQuiz_View_InfoAdaptation.php:9
1171
- #: lib/view/WpProQuiz_View_QuizOverall.php:59
 
1172
  msgid "You need special WP-Pro-Quiz modification for your website?"
1173
  msgstr ""
1174
 
@@ -1289,9 +1336,9 @@ msgid "Show reached points in the correct- and incorrect message?"
1289
  msgstr ""
1290
 
1291
  #: lib/view/WpProQuiz_View_QuestionEdit.php:80
1292
- #: lib/view/WpProQuiz_View_QuestionOverall.php:29
1293
  #: lib/view/WpProQuiz_View_QuizEdit.php:43
1294
- #: lib/view/WpProQuiz_View_QuizOverall.php:86
1295
  #: lib/view/WpProQuiz_View_Statistics.php:124
1296
  #: lib/view/WpProQuiz_View_StatisticsAjax.php:187
1297
  msgid "Category"
@@ -1304,23 +1351,27 @@ msgid ""
1304
  msgstr ""
1305
 
1306
  #: lib/view/WpProQuiz_View_QuestionEdit.php:86
 
1307
  #: lib/view/WpProQuiz_View_QuizEdit.php:49
1308
- #: lib/view/WpProQuiz_View_QuizOverall.php:204
1309
  msgid "You can manage categories in global settings."
1310
  msgstr ""
1311
 
1312
  #: lib/view/WpProQuiz_View_QuestionEdit.php:90
1313
  #: lib/view/WpProQuiz_View_QuestionEdit.php:100
 
 
1314
  #: lib/view/WpProQuiz_View_QuizEdit.php:53
1315
  #: lib/view/WpProQuiz_View_QuizEdit.php:63
1316
- #: lib/view/WpProQuiz_View_QuizOverall.php:208
1317
- #: lib/view/WpProQuiz_View_QuizOverall.php:218
1318
  msgid "Create new category"
1319
  msgstr ""
1320
 
1321
  #: lib/view/WpProQuiz_View_QuestionEdit.php:102
 
1322
  #: lib/view/WpProQuiz_View_QuizEdit.php:65
1323
- #: lib/view/WpProQuiz_View_QuizOverall.php:220
1324
  msgid "Create"
1325
  msgstr ""
1326
 
@@ -1494,7 +1545,6 @@ msgstr ""
1494
  #: lib/view/WpProQuiz_View_QuestionEdit.php:330
1495
  #: lib/view/WpProQuiz_View_QuestionEdit.php:385
1496
  #: lib/view/WpProQuiz_View_QuestionEdit.php:427
1497
- #: lib/view/WpProQuiz_View_QuestionOverall.php:59
1498
  #: lib/view/WpProQuiz_View_QuizEdit.php:1453
1499
  msgid "Move"
1500
  msgstr "تحريك"
@@ -1628,45 +1678,67 @@ msgstr ""
1628
  msgid "\"Different points - mode 2\" enabled"
1629
  msgstr ""
1630
 
1631
- #: lib/view/WpProQuiz_View_QuestionOverall.php:17
1632
- msgid "Questions sorted"
1633
- msgstr "ترتيب الاسئلة"
1634
-
1635
- #: lib/view/WpProQuiz_View_QuestionOverall.php:78
1636
- #: lib/view/WpProQuiz_View_Statistics.php:169
1637
- #: lib/view/WpProQuiz_View_StatisticsAjax.php:272
1638
- msgid "Total"
1639
- msgstr "المجموع"
1640
-
1641
- #: lib/view/WpProQuiz_View_QuestionOverall.php:86
1642
  msgid "Add question"
1643
  msgstr "اضافة سؤال"
1644
 
1645
- #: lib/view/WpProQuiz_View_QuestionOverall.php:87
1646
- msgid "Save order"
1647
- msgstr "حفظ الترتيب"
1648
 
1649
- #: lib/view/WpProQuiz_View_QuestionOverall.php:88
1650
- #: lib/view/WpProQuiz_View_QuestionOverall.php:93
1651
  msgid "Copy questions from another Quiz"
1652
  msgstr ""
1653
 
1654
- #: lib/view/WpProQuiz_View_QuestionOverall.php:94
 
 
 
 
 
1655
  msgid ""
1656
  "Here you can copy questions from another quiz into this quiz. (Multiple "
1657
  "selection enabled)"
1658
  msgstr ""
1659
 
1660
- #: lib/view/WpProQuiz_View_QuestionOverall.php:106
1661
  msgid "Copy questions"
1662
  msgstr ""
1663
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1664
  #: lib/view/WpProQuiz_View_QuizEdit.php:37
1665
  msgid "Quiz title"
1666
  msgstr "عنوان الاختبار"
1667
 
1668
  #: lib/view/WpProQuiz_View_QuizEdit.php:46
1669
- #: lib/view/WpProQuiz_View_QuizOverall.php:201
1670
  msgid "You can assign classify category for a quiz."
1671
  msgstr ""
1672
 
@@ -1730,7 +1802,7 @@ msgstr "0 = بدون وقت محدد"
1730
 
1731
  #: lib/view/WpProQuiz_View_QuizEdit.php:208
1732
  #: lib/view/WpProQuiz_View_QuizEdit.php:213
1733
- #: lib/view/WpProQuiz_View_QuizOverall.php:120
1734
  msgid "Statistics"
1735
  msgstr "احصائيات"
1736
 
@@ -1851,10 +1923,6 @@ msgid ""
1851
  "it will be activated automatically."
1852
  msgstr ""
1853
 
1854
- #: lib/view/WpProQuiz_View_QuizEdit.php:355
1855
- msgid "Quiz"
1856
- msgstr ""
1857
-
1858
  #: lib/view/WpProQuiz_View_QuizEdit.php:357
1859
  msgid "Prerequisites (This quiz have to be finished)"
1860
  msgstr ""
@@ -2445,100 +2513,80 @@ msgstr ""
2445
  msgid "(Type Email)"
2446
  msgstr ""
2447
 
2448
- #: lib/view/WpProQuiz_View_QuizOverall.php:32
2449
  msgid "Quiz overview"
2450
  msgstr "شاشة الاختبار"
2451
 
2452
- #: lib/view/WpProQuiz_View_QuizOverall.php:34
2453
- msgid "In case of problems"
2454
- msgstr "في حالة وجود مشاكل"
2455
-
2456
- #: lib/view/WpProQuiz_View_QuizOverall.php:36
2457
- msgid "If quiz doesn't work in front-end, please try following:"
2458
- msgstr "إذا الاختبار لا يعمل في الواجهة الأمامية، يرجى تجربة التالي:"
2459
-
2460
- #: lib/view/WpProQuiz_View_QuizOverall.php:49
2461
- msgid "Style Manager"
2462
- msgstr ""
2463
-
2464
- #: lib/view/WpProQuiz_View_QuizOverall.php:53
2465
- #: lib/view/WpProQuiz_View_WpqSupport.php:8
2466
- msgid "Support WP-Pro-Quiz"
2467
- msgstr ""
2468
 
2469
- #: lib/view/WpProQuiz_View_QuizOverall.php:60
 
2470
  msgid "Learn more"
2471
  msgstr ""
2472
 
2473
- #: lib/view/WpProQuiz_View_QuizOverall.php:84
2474
- msgid "ID"
2475
- msgstr "الرقم"
2476
-
2477
- #: lib/view/WpProQuiz_View_QuizOverall.php:87
2478
- msgid "Shortcode"
2479
- msgstr "الكود"
2480
-
2481
- #: lib/view/WpProQuiz_View_QuizOverall.php:88
2482
- msgid "Shortcode-Leaderboard"
2483
  msgstr ""
2484
 
2485
- #: lib/view/WpProQuiz_View_QuizOverall.php:116
2486
- msgid "Preview"
2487
- msgstr "استعراض"
2488
-
2489
- #: lib/view/WpProQuiz_View_QuizOverall.php:148
2490
- msgid "Add quiz"
2491
- msgstr "اضف اختبار"
2492
 
2493
- #: lib/view/WpProQuiz_View_QuizOverall.php:152
2494
- #: lib/view/WpProQuiz_View_QuizOverall.php:159
2495
  msgid "Export"
2496
  msgstr "تصدير"
2497
 
2498
- #: lib/view/WpProQuiz_View_QuizOverall.php:154
2499
- #: lib/view/WpProQuiz_View_QuizOverall.php:191
2500
- msgid "Set Quiz Categories"
2501
- msgstr ""
2502
-
2503
- #: lib/view/WpProQuiz_View_QuizOverall.php:160
2504
  msgid ""
2505
  "Choose the respective question, which you would like to export and press on "
2506
  "\"Start export\""
2507
  msgstr "اختار سؤال، الذي تود أن تقوم بتصديره و اضغط على \"ابدأ التصدير\""
2508
 
2509
- #: lib/view/WpProQuiz_View_QuizOverall.php:165
2510
  msgid "Format:"
2511
  msgstr ""
2512
 
2513
- #: lib/view/WpProQuiz_View_QuizOverall.php:166
2514
  msgid "*.wpq"
2515
  msgstr ""
2516
 
2517
- #: lib/view/WpProQuiz_View_QuizOverall.php:167
2518
  msgid "or"
2519
  msgstr ""
2520
 
2521
- #: lib/view/WpProQuiz_View_QuizOverall.php:168
2522
  msgid "*.xml"
2523
  msgstr ""
2524
 
2525
- #: lib/view/WpProQuiz_View_QuizOverall.php:170
2526
  msgid "Start export"
2527
  msgstr "ابدأ التصدير"
2528
 
2529
- #: lib/view/WpProQuiz_View_QuizOverall.php:176
2530
- msgid "Import only *.wpq or *.xml files from known and trusted sources."
2531
  msgstr ""
2532
 
2533
- #: lib/view/WpProQuiz_View_QuizOverall.php:184
2534
- #, php-format
2535
- msgid "Maximal %d MiB"
2536
- msgstr "الحد الاقصى من %d MIB"
2537
-
2538
- #: lib/view/WpProQuiz_View_QuizOverall.php:192
2539
  msgid "Sets multiple quiz categories "
2540
  msgstr ""
2541
 
 
 
 
 
 
 
 
 
 
 
 
 
2542
  #: lib/view/WpProQuiz_View_Statistics.php:28
2543
  #: lib/view/WpProQuiz_View_StatisticsNew.php:56
2544
  #, php-format
@@ -2604,6 +2652,11 @@ msgstr ""
2604
  msgid "Sub-Total: "
2605
  msgstr ""
2606
 
 
 
 
 
 
2607
  #: lib/view/WpProQuiz_View_Statistics.php:183
2608
  #: lib/view/WpProQuiz_View_Statistics.php:268
2609
  #: lib/view/WpProQuiz_View_Statistics.php:343
@@ -2696,8 +2749,8 @@ msgstr ""
2696
  msgid "Front"
2697
  msgstr ""
2698
 
2699
- #: lib/view/WpProQuiz_View_WpqSupport.php:10
2700
- msgid "Donate"
2701
  msgstr ""
2702
 
2703
  #: lib/view/WpProQuiz_View_WpqSupport.php:20
@@ -2714,62 +2767,77 @@ msgid ""
2714
  "Your donations can help to ensure that the project continues to remain free."
2715
  msgstr ""
2716
 
2717
- #: lib/view/WpProQuiz_View_WpqSupport.php:25
2718
  msgid "Translate WP-Pro-Quiz"
2719
  msgstr ""
2720
 
2721
- #: lib/view/WpProQuiz_View_WpqSupport.php:27
2722
  msgid "You need:"
2723
  msgstr ""
2724
 
2725
- #: lib/view/WpProQuiz_View_WpqSupport.php:30
2726
  msgid "Latest POT file"
2727
  msgstr ""
2728
 
2729
- #: lib/view/WpProQuiz_View_WpqSupport.php:35
2730
  msgid "Open PoEdit"
2731
  msgstr ""
2732
 
2733
- #: lib/view/WpProQuiz_View_WpqSupport.php:36
2734
  msgid "File - New catalogue from POT file..."
2735
  msgstr ""
2736
 
2737
- #: lib/view/WpProQuiz_View_WpqSupport.php:37
2738
  msgid "Choose wp-pro-quiz.pot"
2739
  msgstr ""
2740
 
2741
- #: lib/view/WpProQuiz_View_WpqSupport.php:38
2742
  msgid "Set \"Translation properties\""
2743
  msgstr ""
2744
 
2745
- #: lib/view/WpProQuiz_View_WpqSupport.php:39
2746
  msgid "Save PO file - with the name \"wp-pro-qioz-de_DE.po\""
2747
  msgstr ""
2748
 
2749
- #: lib/view/WpProQuiz_View_WpqSupport.php:41
2750
  msgid "replace de_DE with your countries short code (e.g. en_US, nl_NL...)"
2751
  msgstr ""
2752
 
2753
- #: lib/view/WpProQuiz_View_WpqSupport.php:44
2754
  msgid "Translate"
2755
  msgstr ""
2756
 
2757
- #: lib/view/WpProQuiz_View_WpqSupport.php:46
2758
  msgid ""
2759
  "Upload generated *.mo file to your server, to /wp-content/plugins/wp-pro-"
2760
  "quiz/languages"
2761
  msgstr ""
2762
 
2763
- #: lib/view/WpProQuiz_View_WpqSupport.php:47
2764
  msgid "Finished"
2765
  msgstr ""
2766
 
2767
- #: lib/view/WpProQuiz_View_WpqSupport.php:51
2768
  msgid ""
2769
  "You can translate WP-Pro-Quiz from existing to existing language (e.g. "
2770
  "english to english) e.g. to rename buttons."
2771
  msgstr ""
2772
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2773
  #~ msgid "Next exercise"
2774
  #~ msgstr "التمرين التالي"
2775
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
+ "POT-Creation-Date: 2015-04-23 11:23+0100\n"
5
+ "PO-Revision-Date: 2015-04-23 11:23+0100\n"
6
  "Last-Translator: Julius Fischer <webmaster@it-gecko.de>\n"
7
  "Language-Team: abuhassan <sajja2002@hotmail.com>\n"
8
  "Language: ar\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
+ #: lib/controller/WpProQuiz_Controller_Admin.php:109
18
  msgid "Do you really want to delete the quiz/question?"
19
  msgstr "هل تريد حقاً ان تحذف هذا الاختبار/السؤال؟"
20
 
21
+ #: lib/controller/WpProQuiz_Controller_Admin.php:110
22
  msgid "Title is not filled!"
23
  msgstr "لم يتم تعبئة هذا!"
24
 
25
+ #: lib/controller/WpProQuiz_Controller_Admin.php:111
26
  msgid "No question deposited!"
27
  msgstr "لم يتم وضع سؤال!"
28
 
29
+ #: lib/controller/WpProQuiz_Controller_Admin.php:112
30
  msgid "Correct answer was not selected!"
31
  msgstr "لم يتم اختيار اجابة صحيحة!"
32
 
33
+ #: lib/controller/WpProQuiz_Controller_Admin.php:113
34
  msgid "No answer deposited!"
35
  msgstr "لم يتم وضع اجابة!"
36
 
37
+ #: lib/controller/WpProQuiz_Controller_Admin.php:114
38
  msgid "No quiz description filled!"
39
  msgstr "لم يتم تعبئة وصف للاختبار!"
40
 
41
+ #: lib/controller/WpProQuiz_Controller_Admin.php:115
42
  msgid "The percent values in result text are incorrect."
43
  msgstr "النسبة المئوية في نص النتائج غير صحيحة."
44
 
45
+ #: lib/controller/WpProQuiz_Controller_Admin.php:116
46
  msgid "No number in the field \"Points\" or less than 1"
47
  msgstr "لا يوجد رقم في حقل /\"النقاط/\" أو أقل من 1"
48
 
49
+ #: lib/controller/WpProQuiz_Controller_Admin.php:117
50
  msgid "No number in the field \"Points\" or less than 0"
51
  msgstr ""
52
 
53
+ #: lib/controller/WpProQuiz_Controller_Admin.php:118
54
  msgid "No quiz selected"
55
  msgstr "لم يتم اختيار اختبار"
56
 
57
+ #: lib/controller/WpProQuiz_Controller_Admin.php:119
58
  msgid "Do you really want to reset the statistic?"
59
  msgstr ""
60
 
61
+ #: lib/controller/WpProQuiz_Controller_Admin.php:120
62
  #: lib/view/WpProQuiz_View_FrontToplist.php:26
63
+ #: lib/view/WpProQuiz_View_QuestionOverallTable.php:40
64
+ #: lib/view/WpProQuiz_View_QuizOverallTable.php:41
65
  #: lib/view/WpProQuiz_View_StatisticsAjax.php:41
66
  #: lib/view/WpProQuiz_View_StatisticsAjax.php:615
67
  msgid "No data available"
68
  msgstr ""
69
 
70
+ #: lib/controller/WpProQuiz_Controller_Admin.php:121
71
  msgid "No sort element in the criterion"
72
  msgstr ""
73
 
74
+ #: lib/controller/WpProQuiz_Controller_Admin.php:122
75
  msgid ""
76
  "\"Different points for every answer\" is not possible at \"Free\" choice"
77
  msgstr ""
78
 
79
+ #: lib/controller/WpProQuiz_Controller_Admin.php:123
80
  msgid "You must specify a name."
81
  msgstr ""
82
 
83
+ #: lib/controller/WpProQuiz_Controller_Admin.php:124
84
  msgid "This entry should really be deleted?"
85
  msgstr ""
86
 
87
+ #: lib/controller/WpProQuiz_Controller_Admin.php:125
88
  msgid "Not all fields completed."
89
  msgstr ""
90
 
91
+ #: lib/controller/WpProQuiz_Controller_Admin.php:126
92
  msgid "You must specify a template name."
93
  msgstr ""
94
 
95
+ #: lib/controller/WpProQuiz_Controller_Admin.php:129
96
  #: lib/view/WpProQuiz_View_StatisticsNew.php:181
97
  msgid "Close"
98
  msgstr ""
99
 
100
+ #: lib/controller/WpProQuiz_Controller_Admin.php:130
101
  msgid "Today"
102
  msgstr ""
103
 
104
+ #: lib/controller/WpProQuiz_Controller_Admin.php:175
105
+ #: lib/controller/WpProQuiz_Controller_Admin.php:176
106
+ #: lib/view/WpProQuiz_View_GobalSettings.php:7
107
+ #: lib/view/WpProQuiz_View_GobalSettings.php:12
108
+ #: lib/view/WpProQuiz_View_GobalSettings.php:42
109
+ msgid "Global settings"
110
+ msgstr ""
111
+
112
+ #: lib/controller/WpProQuiz_Controller_Admin.php:183
113
+ #: lib/controller/WpProQuiz_Controller_Admin.php:184
114
+ msgid "Support & More"
115
+ msgstr ""
116
+
117
  #: lib/controller/WpProQuiz_Controller_Front.php:47
118
  #: lib/controller/WpProQuiz_Controller_Front.php:66
119
  #: lib/controller/WpProQuiz_Controller_Preview.php:15
120
  #: lib/view/WpProQuiz_View_AdminToplist.php:47
121
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:244
122
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:356
123
  #: lib/view/WpProQuiz_View_Statistics.php:46
124
  #: lib/view/WpProQuiz_View_StatisticsNew.php:73
125
  #: lib/view/WpProQuiz_View_StatisticsNew.php:149
149
  #: lib/controller/WpProQuiz_Controller_GlobalSettings.php:11
150
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:23
151
  #: lib/controller/WpProQuiz_Controller_ImportExport.php:47
152
+ #: lib/controller/WpProQuiz_Controller_Question.php:98
153
+ #: lib/controller/WpProQuiz_Controller_Question.php:102
154
+ #: lib/controller/WpProQuiz_Controller_Question.php:223
155
+ #: lib/controller/WpProQuiz_Controller_Question.php:300
156
+ #: lib/controller/WpProQuiz_Controller_Question.php:311
157
+ #: lib/controller/WpProQuiz_Controller_Question.php:331
158
+ #: lib/controller/WpProQuiz_Controller_Question.php:408
159
+ #: lib/controller/WpProQuiz_Controller_Question.php:596
160
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:71
161
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:75
162
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:332
163
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:369
164
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:453
165
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:662
166
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:676
167
  #: lib/controller/WpProQuiz_Controller_Statistics.php:40
168
  #: lib/controller/WpProQuiz_Controller_Toplist.php:88
169
  msgid "You do not have sufficient permissions to access this page."
186
 
187
  #: lib/controller/WpProQuiz_Controller_Question.php:9
188
  #: lib/controller/WpProQuiz_Controller_Question.php:19
189
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:91
190
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:386
191
  msgid "Quiz not found"
192
  msgstr "لم يتم العثور على الاختبار"
193
 
194
+ #: lib/controller/WpProQuiz_Controller_Question.php:88
195
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:504
196
+ #: lib/view/WpProQuiz_View_Import.php:44
197
+ #: lib/view/WpProQuiz_View_QuizOverallTable.php:63
198
+ msgid "Questions"
199
+ msgstr "اسئلة"
200
+
201
+ #: lib/controller/WpProQuiz_Controller_Question.php:112
202
  msgid "Question not found"
203
  msgstr "لم يتم العثور على السؤال"
204
 
205
+ #: lib/controller/WpProQuiz_Controller_Question.php:134
206
+ #: lib/controller/WpProQuiz_Controller_Question.php:398
207
  msgid "Question edited"
208
  msgstr "تم تحرير السؤال"
209
 
210
+ #: lib/controller/WpProQuiz_Controller_Question.php:136
211
  msgid "Question added"
212
  msgstr "تم اضافة سؤال"
213
 
214
+ #: lib/controller/WpProQuiz_Controller_Question.php:154
215
+ #: lib/controller/WpProQuiz_Controller_Question.php:352
216
  msgid "Edit question"
217
  msgstr "تحرير السؤال"
218
 
219
+ #: lib/controller/WpProQuiz_Controller_Question.php:154
220
+ #: lib/controller/WpProQuiz_Controller_Question.php:466
221
  msgid "New question"
222
  msgstr "سؤال جديد"
223
 
224
+ #: lib/controller/WpProQuiz_Controller_Question.php:200
225
+ #: lib/controller/WpProQuiz_Controller_Question.php:380
226
  #, php-format
227
  msgid "Question: %d"
228
  msgstr "السؤال: %d"
229
 
230
+ #: lib/controller/WpProQuiz_Controller_Question.php:237
231
  msgid "questions copied"
232
  msgstr ""
233
 
234
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:61
235
+ #: lib/view/WpProQuiz_View_QuestionOverallTable.php:27
236
+ #: lib/view/WpProQuiz_View_QuestionOverallTable.php:28
237
+ #: lib/view/WpProQuiz_View_QuizEdit.php:355
238
+ #: lib/view/WpProQuiz_View_QuizOverallTable.php:28
239
+ #: lib/view/WpProQuiz_View_QuizOverallTable.php:29
240
+ msgid "Quiz"
241
+ msgstr ""
242
+
243
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:130
244
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:401
245
  msgid "Quiz edited"
246
  msgstr "تم تحرير الاختبار"
247
 
248
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:132
249
  msgid "quiz created"
250
  msgstr ""
251
 
252
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:154
253
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:422
254
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:494
255
  msgid "Quiz title or quiz description are not filled"
256
  msgstr "لم يتم تعبئة عنوان او وصف الاختبار"
257
 
258
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:172
259
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:379
260
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:308
261
  msgid "Edit quiz"
262
  msgstr "تحرير الاختبار"
263
 
264
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:172
265
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:457
266
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:475
267
  msgid "Create quiz"
268
  msgstr "انشاء اختبار"
269
 
270
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:577
271
  msgid "Template stored"
272
  msgstr ""
273
 
274
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:669
275
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:687
276
  msgid "Quiz deleted"
277
  msgstr "تم حذف الاختبار"
278
 
279
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:951
280
  #: lib/controller/WpProQuiz_Controller_QuizCompleted.php:190
281
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:662
282
  msgid "Not categorized"
283
  msgstr ""
284
 
285
+ #: lib/controller/WpProQuiz_Controller_Quiz.php:957
286
  #: lib/controller/WpProQuiz_Controller_QuizCompleted.php:196
287
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:657
288
  msgid "Categories"
289
  msgstr ""
290
 
291
  #: lib/controller/WpProQuiz_Controller_Statistics.php:56
292
  #: lib/controller/WpProQuiz_Controller_Statistics.php:694
293
  #: lib/view/WpProQuiz_View_QuestionEdit.php:91
294
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:396
295
  #: lib/view/WpProQuiz_View_QuizEdit.php:54
296
+ #: lib/view/WpProQuiz_View_QuizOverall.php:421
297
  msgid "No category"
298
  msgstr ""
299
 
350
  msgstr ""
351
 
352
  #: lib/helper/WpProQuiz_Helper_Form.php:94
353
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:439
354
  #: lib/view/WpProQuiz_View_StatisticsAjax.php:567
355
  msgid "Yes"
356
  msgstr ""
357
 
358
  #: lib/helper/WpProQuiz_Helper_Form.php:94
359
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:444
360
  #: lib/view/WpProQuiz_View_StatisticsAjax.php:567
361
  msgid "No"
362
  msgstr ""
424
  msgstr ""
425
 
426
  #: lib/plugin/WpProQuiz_Plugin_BpAchievementsV3.php:21
427
+ #: lib/view/WpProQuiz_View_QuizOverall.php:290
428
  msgid "WP-Pro-Quiz"
429
  msgstr ""
430
 
432
  #: lib/view/WpProQuiz_View_FrontToplist.php:8
433
  #: lib/view/WpProQuiz_View_QuizEdit.php:1029
434
  #: lib/view/WpProQuiz_View_QuizEdit.php:1041
435
+ #: lib/view/WpProQuiz_View_QuizOverallTable.php:78
436
  msgid "Leaderboard"
437
  msgstr ""
438
 
440
  #: lib/view/WpProQuiz_View_GobalSettings.php:9
441
  #: lib/view/WpProQuiz_View_Import.php:22
442
  #: lib/view/WpProQuiz_View_QuestionEdit.php:24
443
+ #: lib/view/WpProQuiz_View_QuestionOverall.php:303
444
  #: lib/view/WpProQuiz_View_QuizEdit.php:23
445
  #: lib/view/WpProQuiz_View_Statistics.php:29
446
  #: lib/view/WpProQuiz_View_StatisticsNew.php:57
449
  msgstr "العودة للرئيسية"
450
 
451
  #: lib/view/WpProQuiz_View_AdminToplist.php:11
452
+ #: lib/view/WpProQuiz_View_QuestionOverallTable.php:106
453
+ #: lib/view/WpProQuiz_View_QuizOverallTable.php:115
454
  #: lib/view/WpProQuiz_View_Statistics.php:209
455
  #: lib/view/WpProQuiz_View_Statistics.php:288
456
  #: lib/view/WpProQuiz_View_StatisticsNew.php:94
505
  msgstr ""
506
 
507
  #: lib/view/WpProQuiz_View_AdminToplist.php:56
508
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:252
509
  msgid "E-Mail"
510
  msgstr ""
511
 
515
  msgstr ""
516
 
517
  #: lib/view/WpProQuiz_View_AdminToplist.php:59
518
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:904
519
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:926
520
  #: lib/view/WpProQuiz_View_FrontToplist.php:17
521
  #: lib/view/WpProQuiz_View_QuestionEdit.php:49
522
  #: lib/view/WpProQuiz_View_QuestionEdit.php:56
523
  #: lib/view/WpProQuiz_View_QuestionEdit.php:317
524
  #: lib/view/WpProQuiz_View_QuestionEdit.php:355
525
  #: lib/view/WpProQuiz_View_QuestionEdit.php:414
526
+ #: lib/view/WpProQuiz_View_QuestionOverallTable.php:19
527
  #: lib/view/WpProQuiz_View_Statistics.php:105
528
  #: lib/view/WpProQuiz_View_Statistics.php:240
529
  #: lib/view/WpProQuiz_View_StatisticsAjax.php:34
533
  msgstr "درجات"
534
 
535
  #: lib/view/WpProQuiz_View_AdminToplist.php:60
536
+ #: lib/view/WpProQuiz_View_FrontQuiz.php:616
537
  #: lib/view/WpProQuiz_View_Statistics.php:111
538
  #: lib/view/WpProQuiz_View_Statistics.php:245
539
  #: lib/view/WpProQuiz_View_Statistics.php:324
548
  #: lib/view/WpProQuiz_View_GobalSettings.php:166
549
  #: lib/view/WpProQuiz_View_GobalSettings.php:192
550
  #: lib/view/WpProQuiz_View_GobalSettings.php:217
551
+ #: lib/view/WpProQuiz_View_QuestionOverallTable.php:64
552
+ #: lib/view/WpProQuiz_View_QuizOverallTable.php:67
553
  msgid "Edit"
554
  msgstr "تحرير"
555
 
559
  #: lib/view/