/mod/ilpconcern/config.html

https://github.com/galitush2005/RTL-BIDI-Hebrew-Moodle-Plugins · HTML · 165 lines · 156 code · 9 blank · 0 comment · 0 complexity · 9c4a5f0cbe7ab44af0385f87518c4113 MD5 · raw file

  1. <?php
  2. $usehtmleditor = can_use_html_editor();
  3. $module = 'project/ilp';
  4. $config = get_config($module);
  5. if ( !isset($CFG->ilpconcern_status_per_student))
  6. { $CFG->ilpconcern_status_per_student = 0; }
  7. if ( !isset($CFG->ilpconcern_send_concern_message))
  8. { $CFG->ilpconcern_send_concern_message = 0; }
  9. if ( !isset($CFG->ilpconcern_send_comment_message))
  10. { $CFG->ilpconcern_send_comment_message = 0; }
  11. if ( !isset($CFG->ilpconcern_course_specific))
  12. { $CFG->ilpconcern_course_specific = 0; }
  13. if ( !isset($CFG->ilpconcern_report1))
  14. { $CFG->ilpconcern_report1 = 0; }
  15. if ( !isset($CFG->ilpconcern_report2))
  16. { $CFG->ilpconcern_report2 = 0; }
  17. if ( !isset($CFG->ilpconcern_report3))
  18. { $CFG->ilpconcern_report3 = 0; }
  19. if ( !isset($CFG->ilpconcern_report4))
  20. { $CFG->ilpconcern_report4 = 0; }
  21. if ( !isset($CFG->ilpconcern_use_template))
  22. { $CFG->ilpconcern_use_template = 0; }
  23. ?>
  24. <form method="post" action="module.php" id="form">
  25. <div>
  26. <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
  27. <table cellpadding="9" cellspacing="0" >
  28. <tr valign="top">
  29. <td align="right">status_per_student:</td>
  30. <td>
  31. <?php
  32. choose_from_menu_yesno ("ilpconcern_status_per_student", $CFG->ilpconcern_status_per_student, "", "", "");
  33. ?>
  34. </td>
  35. <td>
  36. <?php print_string("configstatusperstudent", "ilpconcern") ?>
  37. </td>
  38. </tr>
  39. <tr valign="top">
  40. <td align="right">ilpconcern_send_concern_message:</td>
  41. <td>
  42. <?php
  43. choose_from_menu_yesno ("ilpconcern_send_concern_message", $CFG->ilpconcern_send_concern_message, "", "", "");
  44. ?>
  45. </td>
  46. <td>
  47. <?php print_string("configconcernmessage", "ilpconcern") ?>
  48. </td>
  49. </tr>
  50. <tr valign="top">
  51. <td align="right">ilpconcern_send_comment_message:</td>
  52. <td>
  53. <?php
  54. choose_from_menu_yesno ("ilpconcern_send_comment_message", $CFG->ilpconcern_send_comment_message, "", "", "");
  55. ?>
  56. </td>
  57. <td>
  58. <?php print_string("configcommentmessage", "ilpconcern") ?>
  59. </td>
  60. </tr>
  61. <tr valign="top">
  62. <td align="right">ilpconcern_course_specific:</td>
  63. <td>
  64. <?php
  65. choose_from_menu_yesno ("ilpconcern_course_specific", $CFG->ilpconcern_course_specific, "", "", "");
  66. ?>
  67. </td>
  68. <td>
  69. <?php print_string("configcoursespecific", "ilpconcern") ?>
  70. </td>
  71. </tr>
  72. <tr valign="top">
  73. <td align="right">report1:</td>
  74. <td>
  75. <?php
  76. choose_from_menu_yesno ("ilpconcern_report1", $CFG->ilpconcern_report1, "", "", "");
  77. ?>
  78. </td>
  79. <td>
  80. <?php print_string("report1", "ilpconcern") ?>
  81. </td>
  82. </tr>
  83. <tr valign="top">
  84. <td align="right">report2:</td>
  85. <td>
  86. <?php
  87. choose_from_menu_yesno ("ilpconcern_report2", $CFG->ilpconcern_report2, "", "", "");
  88. ?>
  89. </td>
  90. <td>
  91. <?php print_string("report2", "ilpconcern") ?>
  92. </td>
  93. </tr>
  94. <tr valign="top">
  95. <td align="right">report3:</td>
  96. <td>
  97. <?php
  98. choose_from_menu_yesno ("ilpconcern_report3", $CFG->ilpconcern_report3, "", "", "");
  99. ?>
  100. </td>
  101. <td>
  102. <?php print_string("report3", "ilpconcern") ?>
  103. </td>
  104. </tr>
  105. <tr valign="top">
  106. <td align="right">report4:</td>
  107. <td>
  108. <?php
  109. choose_from_menu_yesno ("ilpconcern_report4", $CFG->ilpconcern_report4, "", "", "");
  110. ?>
  111. </td>
  112. <td>
  113. <?php print_string("report4", "ilpconcern") ?>
  114. </td>
  115. </tr>
  116. <tr valign="top">
  117. <td align="right">use_template:</td>
  118. <td>
  119. <?php
  120. choose_from_menu_yesno ("ilpconcern_use_template", $CFG->ilpconcern_use_template, "", "", "");
  121. ?>
  122. </td>
  123. <td>
  124. <?php print_string("configusetemplate", "ilpconcern") ?>
  125. </td>
  126. </tr>
  127. <tr>
  128. <td colspan="3" align="center">
  129. <input type="submit" value="<?php print_string("savechanges") ?>" /></td>
  130. </tr>
  131. </table>
  132. </div>
  133. </form>
  134. <?php
  135. print_heading(get_string('templates', 'ilpconcern'),'left');
  136. echo '<p><a href="'.$CFG->wwwroot.'/mod/ilpconcern/add_template.php">'.get_string('addtemplate','ilpconcern').'</a></p>';
  137. $i = 1;
  138. while ($i <= 4){
  139. print_heading(get_string('report'.$i.'plural','ilpconcern'),'left',3);
  140. $status = $i - 1;
  141. $select = "module = 'ilpconcern' AND status = $status";
  142. if($templates = get_records_select('ilp_module_template',$select,'name')){
  143. echo '<ul>';
  144. foreach ($templates as $template){
  145. echo '<li>'.$template->name.' | <a href="'.$CFG->wwwroot.'/mod/ilpconcern/add_template.php?id='.$template->id.'"><img src="'.$CFG->pixpath.'/t/edit.gif" alt="'.get_string('edit').'" /> '.get_string('edit').'</a> | <a href="'.$CFG->wwwroot.'/mod/ilpconcern/add_template.php?id='.$template->id.'&amp;action=delete"><img src="'.$CFG->pixpath.'/t/delete.gif" alt="'.get_string('delete').'" /> '.get_string('delete').'</a></li>';
  146. }
  147. echo '</ul>';
  148. }else{
  149. echo get_string('notemplates','ilpconcern');
  150. }
  151. $i++;
  152. }
  153. if ($usehtmleditor) {
  154. use_html_editor();
  155. }
  156. ?>