From: Petr Skoda
";
echo $OUTPUT->table($table);
echo $OUTPUT->footer();
-?>
\ No newline at end of file
diff --git a/mod/data/mod_form.php b/mod/data/mod_form.php
index 244339522a..62ed939146 100644
--- a/mod/data/mod_form.php
+++ b/mod/data/mod_form.php
@@ -73,4 +73,4 @@ class mod_data_mod_form extends moodleform_mod {
}
}
-?>
+
diff --git a/mod/data/preset.php b/mod/data/preset.php
index 5799c0c55c..b2a351ce0c 100644
--- a/mod/data/preset.php
+++ b/mod/data/preset.php
@@ -134,7 +134,7 @@ switch ($action) {
$optionsyes = array('fullname' => $userid.'/'.$shortname,
'action' => 'delete',
'd' => $data->id);
-
+
$optionsno = array('d' => $data->id);
echo $OUTPUT->confirm($strwarning, new moodle_url('preset.php', $optionsyes), new moodle_url('preset.php', $optionsno));
echo $OUTPUT->footer();
@@ -546,4 +546,4 @@ function data_presets_export($course, $cm, $data) {
return $exportfile;
}
-?>
+
diff --git a/mod/data/rate.php b/mod/data/rate.php
index 8e10342e22..9e05cd085d 100755
--- a/mod/data/rate.php
+++ b/mod/data/rate.php
@@ -104,4 +104,3 @@ if (!empty($_SERVER['HTTP_REFERER'])) {
}
}
-?>
\ No newline at end of file
diff --git a/mod/data/report.php b/mod/data/report.php
index 4cd8a7c3e6..ccdcfd7692 100755
--- a/mod/data/report.php
+++ b/mod/data/report.php
@@ -87,4 +87,3 @@ if (!$ratings = data_get_ratings($record->id, $sqlsort)) {
echo $OUTPUT->close_window_button();
echo $OUTPUT->footer();
-?>
\ No newline at end of file
diff --git a/mod/data/restorelib.php b/mod/data/restorelib.php
index 5a1da05e2d..59f05befb8 100644
--- a/mod/data/restorelib.php
+++ b/mod/data/restorelib.php
@@ -721,4 +721,4 @@ function data_decode_content_links_caller($restore) {
return $status;
}
-?>
+
diff --git a/mod/data/rsslib.php b/mod/data/rsslib.php
index ef0390779a..540d369ff2 100644
--- a/mod/data/rsslib.php
+++ b/mod/data/rsslib.php
@@ -113,4 +113,4 @@
return $status;
}
-?>
+
diff --git a/mod/data/settings.php b/mod/data/settings.php
index 8b2af4e06b..cfddead073 100644
--- a/mod/data/settings.php
+++ b/mod/data/settings.php
@@ -1,4 +1,4 @@
-enablerssfeeds)) {
$options = array(0 => get_string('rssglobaldisabled', 'admin'));
@@ -11,4 +11,4 @@ if (empty($CFG->enablerssfeeds)) {
$settings->add(new admin_setting_configselect('data_enablerssfeeds', get_string('enablerssfeeds', 'admin'),
$str, 0, $options));
-?>
+
diff --git a/mod/data/simpletest/test_data_portfolio_callers.php b/mod/data/simpletest/test_data_portfolio_callers.php
index 92312664c4..a17ca8df35 100644
--- a/mod/data/simpletest/test_data_portfolio_callers.php
+++ b/mod/data/simpletest/test_data_portfolio_callers.php
@@ -1,4 +1,4 @@
-libdir/simpletest/portfolio_testclass.php");
require_once("$CFG->dirroot/mod/data/lib.php");
require_once("$CFG->dirroot/$CFG->admin/generator.php");
@@ -69,4 +69,4 @@ class testDataPortfolioCallers extends portfoliolib_test {
parent::test_caller_with_plugins();
}
}
-?>
+
diff --git a/mod/data/simpletest/testpreset.php b/mod/data/simpletest/testpreset.php
index 1edcc1878b..b543693e7c 100644
--- a/mod/data/simpletest/testpreset.php
+++ b/mod/data/simpletest/testpreset.php
@@ -1,4 +1,4 @@
-
+
diff --git a/mod/data/tabs.php b/mod/data/tabs.php
index f34dda26ac..40298737cf 100755
--- a/mod/data/tabs.php
+++ b/mod/data/tabs.php
@@ -1,4 +1,4 @@
-wwwroot.'/mod/data/view.php?d='.$data->id, get_string('list','data'));
-
+
if (isset($record)) {
$row[] = new tabobject('single', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&rid='.$record->id, get_string('single','data'));
} else {
@@ -55,7 +55,7 @@
}
if (has_capability(DATA_CAP_EXPORT, $context)) {
// The capability required to Export database records is centrally defined in 'lib.php'
- // and should be weaker than those required to edit Templates, Fields and Presets.
+ // and should be weaker than those required to edit Templates, Fields and Presets.
$row[] = new tabobject('export', $CFG->wwwroot.'/mod/data/export.php?d='.$data->id,
get_string('export', 'data'));
}
@@ -105,4 +105,4 @@
// Print out the tabs and continue!
print_tabs($tabs, $currenttab, $inactive, $activetwo);
-?>
+
diff --git a/mod/data/templates.php b/mod/data/templates.php
index 99068c30c8..9855a0e2e2 100755
--- a/mod/data/templates.php
+++ b/mod/data/templates.php
@@ -298,4 +298,3 @@ echo '';
/// Finish the page
echo $OUTPUT->footer();
-?>
\ No newline at end of file
diff --git a/mod/data/version.php b/mod/data/version.php
index b40155e72f..ae50653944 100644
--- a/mod/data/version.php
+++ b/mod/data/version.php
@@ -1,4 +1,4 @@
-version = 2009042000;
$module->requires = 2009041700; // Requires this Moodle version
$module->cron = 60;
-?>
+
diff --git a/mod/data/view.php b/mod/data/view.php
index 40c2ce88f0..247e201360 100755
--- a/mod/data/view.php
+++ b/mod/data/view.php
@@ -1,4 +1,4 @@
-set_heading($course->fullname);
$PAGE->set_button($buttons);
echo $OUTPUT->header();
-
+
/// Check to see if groups are being used here
$returnurl = 'view.php?d='.$data->id.'&search='.s($search).'&sort='.s($sort).'&order='.s($order).'&';
groups_print_activity_menu($cm, $returnurl);
@@ -682,4 +682,4 @@
$completion->set_module_viewed($cm);
echo $OUTPUT->footer();
-?>
+
diff --git a/mod/feedback/README.txt b/mod/feedback/README.txt
index b0df9b5397..9a0c603be7 100644
--- a/mod/feedback/README.txt
+++ b/mod/feedback/README.txt
@@ -17,7 +17,7 @@ Requirements
------------
Moodle 1.9 or later
-Installation
+Installation
------------
The zip-archive includes the same directory hierarchy as moodle
So you only have to copy the files to the correspondent place.
diff --git a/mod/feedback/analysis.php b/mod/feedback/analysis.php
index b0da2860db..10141718db 100644
--- a/mod/feedback/analysis.php
+++ b/mod/feedback/analysis.php
@@ -154,4 +154,3 @@ echo $OUTPUT->box_end();
echo $OUTPUT->footer();
-?>
\ No newline at end of file
diff --git a/mod/feedback/analysis_course.php b/mod/feedback/analysis_course.php
index 5ab28ba908..ed58238e4e 100644
--- a/mod/feedback/analysis_course.php
+++ b/mod/feedback/analysis_course.php
@@ -200,4 +200,3 @@ echo $OUTPUT->box_end();
echo $OUTPUT->footer();
-?>
\ No newline at end of file
diff --git a/mod/feedback/analysis_to_excel.php b/mod/feedback/analysis_to_excel.php
index 1a452cceff..b945218b95 100644
--- a/mod/feedback/analysis_to_excel.php
+++ b/mod/feedback/analysis_to_excel.php
@@ -13,7 +13,7 @@ require_once("lib.php");
require_once('easy_excel.php');
$id = required_param('id', PARAM_INT); //the POST dominated the GET
-$coursefilter = optional_param('coursefilter', '0', PARAM_INT);
+$coursefilter = optional_param('coursefilter', '0', PARAM_INT);
$url = new moodle_url($CFG->wwwroot.'/mod/feedback/analysis_to_excel.php', array('id'=>$id));
if ($coursefilter !== '0') {
@@ -164,10 +164,10 @@ if(is_array($completeds)){
$workbook->close();
exit;
-////////////////////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
//functions
-////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
function feedback_excelprint_detailed_head(&$worksheet, $items, $rowOffset) {
@@ -266,4 +266,3 @@ function feedback_excelprint_detailed_items(&$worksheet, $completed, $items, $ro
}
return $rowOffset + 1;
}
-?>
\ No newline at end of file
diff --git a/mod/feedback/backuplib.php b/mod/feedback/backuplib.php
index caa1ef1b27..091d772096 100644
--- a/mod/feedback/backuplib.php
+++ b/mod/feedback/backuplib.php
@@ -1,4 +1,4 @@
-get_record('feedback', array('id'=>$feedback));
}
-
+
$status = true;
fwrite ($bf,start_tag("MOD",3,true));
//Print feedback data
@@ -69,15 +69,15 @@
fwrite ($bf,full_tag("TIMEOPEN",4,false,$feedback->timeopen));
fwrite ($bf,full_tag("TIMECLOSE",4,false,$feedback->timeclose));
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$feedback->timemodified));
-
+
//backup the items of each feedback
feedback_backup_data($bf, $preferences, $feedback->id);
-
+
//End mod
$status =fwrite ($bf,end_tag("MOD",3,true));
return $status;
}
-
+
function feedback_backup_data($bf, $preferences, $feedbackid) {
global $CFG, $DB;
@@ -102,7 +102,7 @@
fwrite ($bf,full_tag("HASVALUE",6,false,$feedbackitem->hasvalue));
fwrite ($bf,full_tag("POSITION",6,false,$feedbackitem->position));
fwrite ($bf,full_tag("REQUIRED",6,false,$feedbackitem->required));
-
+
if ($backup_userdata) {
//backup the values of items
$feedbackvalues = $DB->get_records('feedback_value', array('item'=>$feedbackitem->id));
@@ -128,7 +128,7 @@
}
$status =fwrite ($bf,end_tag("ITEMS",4,true));
}
-
+
if($backup_userdata) {
//backup of feedback-completeds
$feedbackcompleteds = $DB->get_records('feedback_completed', array('feedback'=>$feedbackid));
@@ -144,13 +144,13 @@
fwrite ($bf,full_tag("TIMEMODIFIED",6,false,$feedbackcompleted->timemodified));
fwrite ($bf,full_tag("RANDOMRESPONSE",6,false,$feedbackcompleted->random_response));
fwrite ($bf,full_tag("ANONYMOUSRESPONSE",6,false,$feedbackcompleted->anonymous_response));
-
+
//End completed
$status =fwrite ($bf,end_tag("COMPLETED",5,true));
}
$status =fwrite ($bf,end_tag("COMPLETEDS",4,true));
}
-
+
//backup of tracking-data
$feedbacktrackings = $DB->get_records('feedback_tracking', array('feedback'=>$feedbackid));
if($feedbacktrackings) {
@@ -163,13 +163,13 @@
fwrite ($bf,full_tag("USERID",6,false,$feedbacktracking->userid));
fwrite ($bf,full_tag("FEEDBACK",6,false,$feedbacktracking->feedback));
fwrite ($bf,full_tag("COMPLETED",6,false,$feedbacktracking->completed));
-
+
//End completed
$status =fwrite ($bf,end_tag("TRACKING",5,true));
}
$status =fwrite ($bf,end_tag("TRACKINGS",4,true));
}
-
+
}
}
@@ -194,7 +194,7 @@
fwrite ($bf,full_tag("HASVALUE",7,false,$templateitem->hasvalue));
fwrite ($bf,full_tag("POSITION",7,false,$templateitem->position));
fwrite ($bf,full_tag("REQUIRED",7,false,$templateitem->required));
-
+
//End item
$status =fwrite ($bf,end_tag("ITEM",6,true));
}
@@ -217,14 +217,14 @@
//First the course data
$info[0][0] = get_string("modulenameplural","feedback");
$info[0][1] = feedback_count($course);
-
+
//Now, if requested, the user_data
-
+
if ($user_data) {
$info[1][0] = get_string('ready_feedbacks','feedback');
$info[1][1] = feedback_completed_count($course);
}
-
+
return $info;
}
@@ -253,13 +253,13 @@
///////////////////////////////////////////////////////////////
//// INTERNAL FUNCTIONS. BASED IN THE MOD STRUCTURE
- //Returns an array of feedbacks ids
+ //Returns an array of feedbacks ids
function feedback_count ($course) {
global $DB;
return $DB->count_records('feedback', array('course'=>$course));
}
-
+
function feedback_completed_count($course) {
global $DB;
@@ -273,5 +273,5 @@
}
return $count;
}
-
-?>
+
+
diff --git a/mod/feedback/choose_group_form.php b/mod/feedback/choose_group_form.php
index 1d2c082ba6..5f9805eae2 100644
--- a/mod/feedback/choose_group_form.php
+++ b/mod/feedback/choose_group_form.php
@@ -1,4 +1,4 @@
-libdir.'/formslib.php';
class feedback_choose_group_form extends moodleform {
var $feedbackdata;
-
+
function definition() {
$this->feedbackdata = new object();
//this function can not be called, because not all data are available at this time
//I use set_form_elements instead
}
-
+
//this function set the data used in set_form_elements()
//in this form the only value have to set is course
//eg: array('course' => $course)
@@ -29,13 +29,13 @@ class feedback_choose_group_form extends moodleform {
}
}
}
-
+
//here the elements will be set
//this function have to be called manually
//the advantage is that the data are already set
function set_form_elements(){
$mform =& $this->_form;
-
+
$elementgroup = array();
//headline
// $mform->addElement('header', 'general', get_string('choose_group', 'feedback'));
@@ -44,7 +44,7 @@ class feedback_choose_group_form extends moodleform {
$mform->setType('id', PARAM_INT);
$mform->addElement('hidden', 'do_show');
$mform->setType('do-show', PARAM_INT);
-
+
// visible elements
$groups_options = array();
if(isset($this->feedbackdata->groups)){
@@ -58,8 +58,8 @@ class feedback_choose_group_form extends moodleform {
// buttons
$elementgroup[] =& $mform->createElement('submit', 'switch_group', get_string('switch_group', 'feedback'));
$mform->addGroup($elementgroup, 'elementgroup', '', array(' '), false);
-
+
//-------------------------------------------------------------------------------
}
}
-?>
+
diff --git a/mod/feedback/complete.php b/mod/feedback/complete.php
index d66684a56c..bfd24b36a2 100644
--- a/mod/feedback/complete.php
+++ b/mod/feedback/complete.php
@@ -439,4 +439,3 @@ if($feedback_can_submit) {
echo $OUTPUT->footer();
-?>
\ No newline at end of file
diff --git a/mod/feedback/complete_guest.php b/mod/feedback/complete_guest.php
index feefbc89cc..0c07c177b5 100644
--- a/mod/feedback/complete_guest.php
+++ b/mod/feedback/complete_guest.php
@@ -402,4 +402,3 @@ if($feedback_can_submit) {
echo $OUTPUT->footer();
-?>
\ No newline at end of file
diff --git a/mod/feedback/db/access.php b/mod/feedback/db/access.php
index faa7e96e1f..40be778807 100644
--- a/mod/feedback/db/access.php
+++ b/mod/feedback/db/access.php
@@ -46,7 +46,7 @@ $mod_feedback_capabilities = array(
'admin' => CAP_ALLOW
)
),
-
+
'mod/feedback:complete' => array(
'riskbitmask' => RISK_SPAM,
@@ -60,7 +60,7 @@ $mod_feedback_capabilities = array(
'admin' => CAP_PREVENT
)
),
-
+
'mod/feedback:viewanalysepage' => array(
'riskbitmask' => RISK_PERSONAL,
@@ -74,7 +74,7 @@ $mod_feedback_capabilities = array(
'admin' => CAP_ALLOW
)
),
-
+
'mod/feedback:deletesubmissions' => array(
'captype' => 'write',
@@ -141,7 +141,7 @@ $mod_feedback_capabilities = array(
),
'mod/feedback:viewreports' => array(
-
+
'riskbitmask' => RISK_PERSONAL,
'captype' => 'read',
@@ -154,7 +154,7 @@ $mod_feedback_capabilities = array(
),
'mod/feedback:receivemail' => array(
-
+
'riskbitmask' => RISK_PERSONAL,
'captype' => 'read',
@@ -168,4 +168,4 @@ $mod_feedback_capabilities = array(
);
-?>
+
diff --git a/mod/feedback/db/install.php b/mod/feedback/db/install.php
index e7968129e9..a161fd8c88 100644
--- a/mod/feedback/db/install.php
+++ b/mod/feedback/db/install.php
@@ -1,4 +1,4 @@
-
+
diff --git a/mod/feedback/delete_completed.php b/mod/feedback/delete_completed.php
index d08de50a6f..c094887f52 100644
--- a/mod/feedback/delete_completed.php
+++ b/mod/feedback/delete_completed.php
@@ -86,4 +86,4 @@ echo $OUTPUT->box_end();
echo $OUTPUT->footer();
-?>
+
diff --git a/mod/feedback/delete_completed_form.php b/mod/feedback/delete_completed_form.php
index 38bf5277fd..021590fff8 100644
--- a/mod/feedback/delete_completed_form.php
+++ b/mod/feedback/delete_completed_form.php
@@ -1,4 +1,4 @@
-addElement('header', 'general', '');
-
+
// hidden elements
$mform->addElement('hidden', 'id');
$mform->setType('id', PARAM_INT);
@@ -33,4 +33,4 @@ class mod_feedback_delete_completed_form extends moodleform {
}
}
-?>
+
diff --git a/mod/feedback/delete_item.php b/mod/feedback/delete_item.php
index e45b20cf90..577c268b43 100644
--- a/mod/feedback/delete_item.php
+++ b/mod/feedback/delete_item.php
@@ -1,4 +1,4 @@
-footer();
-?>
+
diff --git a/mod/feedback/delete_item_form.php b/mod/feedback/delete_item_form.php
index 7d48508fb7..3c26e18eaf 100644
--- a/mod/feedback/delete_item_form.php
+++ b/mod/feedback/delete_item_form.php
@@ -1,4 +1,4 @@
-addElement('header', 'general', '');
-
+
// hidden elements
$mform->addElement('hidden', 'id');
$mform->setType('id', PARAM_INT);
@@ -31,4 +31,4 @@ class mod_feedback_delete_item_form extends moodleform {
}
}
-?>
+
diff --git a/mod/feedback/delete_template_form.php b/mod/feedback/delete_template_form.php
index 75e85a181e..1c0697d6a8 100644
--- a/mod/feedback/delete_template_form.php
+++ b/mod/feedback/delete_template_form.php
@@ -1,4 +1,4 @@
-addElement('header', 'general', '');
-
+
// hidden elements
$mform->addElement('hidden', 'id');
$mform->setType('id', PARAM_INT);
@@ -31,4 +31,4 @@ class mod_feedback_delete_template_form extends moodleform {
}
}
-?>
+
diff --git a/mod/feedback/easy_excel.php b/mod/feedback/easy_excel.php
index 19a055f7f3..99265ce61f 100644
--- a/mod/feedback/easy_excel.php
+++ b/mod/feedback/easy_excel.php
@@ -17,7 +17,7 @@ require_once 'Spreadsheet/Excel/Writer.php';
class EasyWorkbook extends Spreadsheet_Excel_Writer {
function &addWorksheet($name = ''){
global $CFG;
-
+
$index = count($this->_worksheets);
$sheetname = $this->_sheetname;
@@ -69,7 +69,7 @@ class EasyWorksheet extends Spreadsheet_Excel_Writer_Worksheet {
function set_workbook(&$workbook) {
$this->m_workbook =& $workbook;
}
-
+
function write($row, $col, $token)
{
parent::write($row, $col, $token, $this->m_format);
@@ -95,7 +95,7 @@ class EasyWorksheet extends Spreadsheet_Excel_Writer_Worksheet {
parent::writeUrl($row, $col, $url, $string, $this->m_format);
}
- /**
+ /**
* Setz das aktuelle Format, dass zum Schreiben verwendet wird
* Der Formatstring setzt sich aus den folgenden Buchstaben mit folgender Bedeutung zusammen.
*
into newline
$newtext = str_ireplace('
', "\n", $text);
$newtext = str_ireplace('
', "\n", $newtext);
-
+
return $textlib->convert($newtext, $oldcharset, $newwincharset);
}
-?>
+
diff --git a/mod/feedback/edit.php b/mod/feedback/edit.php
index c0775026e8..86575a82d6 100644
--- a/mod/feedback/edit.php
+++ b/mod/feedback/edit.php
@@ -420,4 +420,3 @@ function feedback_edit_print_default_form_values($id, $tab) {
echo '';
echo '';
}
-?>
\ No newline at end of file
diff --git a/mod/feedback/edit_form.php b/mod/feedback/edit_form.php
index 8f740d5d82..5ebb52ed40 100644
--- a/mod/feedback/edit_form.php
+++ b/mod/feedback/edit_form.php
@@ -1,4 +1,4 @@
-addElement('select', 'typ', '', $feedback_names_options, $attributes);
@@ -41,13 +41,13 @@ class feedback_edit_add_question_form extends moodleform {
class feedback_edit_use_template_form extends moodleform {
var $feedbackdata;
-
+
function definition() {
$this->feedbackdata = new object();
//this function can not be called, because not all data are available at this time
//I use set_form_elements instead
}
-
+
//this function set the data used in set_form_elements()
//in this form the only value have to set is course
//eg: array('course' => $course)
@@ -58,20 +58,20 @@ class feedback_edit_use_template_form extends moodleform {
}
}
}
-
+
//here the elements will be set
//this function have to be called manually
//the advantage is that the data are already set
function set_form_elements(){
$mform =& $this->_form;
-
+
$elementgroup = array();
//headline
$mform->addElement('header', '', get_string('using_templates', 'feedback'));
// hidden elements
$mform->addElement('hidden', 'id');
$mform->setType('id', PARAM_INT);
-
+
// visible elements
$templates_options = array();
if($templates = feedback_get_template_list($this->feedbackdata->course)){//get the templates
@@ -87,21 +87,21 @@ class feedback_edit_use_template_form extends moodleform {
$mform->addElement('static', 'info', get_string('no_templates_available_yet', 'feedback'));
}
$mform->addGroup($elementgroup, 'elementgroup', '', array(' '), false);
-
+
//-------------------------------------------------------------------------------
}
}
class feedback_edit_create_template_form extends moodleform {
var $feedbackdata;
-
+
function definition() {
}
-
+
function data_preprocessing(&$default_values){
$default_values['templatename'] = '';
}
-
+
function set_feedbackdata($data) {
if(is_array($data)) {
foreach($data as $key => $val) {
@@ -109,7 +109,7 @@ class feedback_edit_create_template_form extends moodleform {
}
}
}
-
+
function set_form_elements(){
$mform =& $this->_form;
$capabilities = $this->feedbackdata->capabilities;
@@ -124,23 +124,23 @@ class feedback_edit_create_template_form extends moodleform {
//headline
$mform->addElement('header', '', get_string('creating_templates', 'feedback'));
-
+
// visible elements
$elementgroup = array();
-
+
$elementgroup[] =& $mform->createElement('static', 'templatenamelabel', get_string('name', 'feedback'));
$elementgroup[] =& $mform->createElement('text', 'templatename', get_string('name', 'feedback'), array('size'=>'40', 'maxlength'=>'200'));
if($capabilities->createpublictemplate) {
$elementgroup[] =& $mform->createElement('checkbox', 'ispublic', get_string('public', 'feedback'), get_string('public', 'feedback'));
}
-
+
// buttons
$elementgroup[] =& $mform->createElement('submit', 'create_template', get_string('save_as_new_template', 'feedback'));
$mform->addGroup($elementgroup, 'elementgroup', get_string('name', 'feedback'), array(' '), false);
-
+
$mform->setType('templatename', PARAM_TEXT);
-
+
//-------------------------------------------------------------------------------
}
}
-?>
+
diff --git a/mod/feedback/edit_item.php b/mod/feedback/edit_item.php
index a4e8a43bb1..4225646ada 100644
--- a/mod/feedback/edit_item.php
+++ b/mod/feedback/edit_item.php
@@ -253,4 +253,3 @@ if ($typ!='label') {
echo $OUTPUT->footer();
-?>
\ No newline at end of file
diff --git a/mod/feedback/export.php b/mod/feedback/export.php
index 3f6b234a5a..6b3c36b9d0 100644
--- a/mod/feedback/export.php
+++ b/mod/feedback/export.php
@@ -12,7 +12,7 @@ require_once("../../config.php");
require_once("lib.php");
// get parameters
-$id = required_param('id', PARAM_INT);
+$id = required_param('id', PARAM_INT);
$action = optional_param('action', false, PARAM_ALPHA);
$url = new moodle_url($CFG->wwwroot.'/mod/feedback/export.php', array('id'=>$id));
@@ -109,4 +109,3 @@ function feedback_send_xml_data($data, $filename) {
@header('Content-Disposition: attachment; filename='.$filename);
print($data);
}
-?>
\ No newline at end of file
diff --git a/mod/feedback/index.php b/mod/feedback/index.php
index dacfd90f91..a1b3472de9 100644
--- a/mod/feedback/index.php
+++ b/mod/feedback/index.php
@@ -113,4 +113,3 @@ echo $OUTPUT->table($table);
echo $OUTPUT->footer();
-?>
\ No newline at end of file
diff --git a/mod/feedback/item/captcha/captcha_form.php b/mod/feedback/item/captcha/captcha_form.php
index 5f868f9855..dc21fa37c2 100644
--- a/mod/feedback/item/captcha/captcha_form.php
+++ b/mod/feedback/item/captcha/captcha_form.php
@@ -8,21 +8,21 @@ class feedback_captcha_form extends feedback_item_form {
var $itemname;
var $itemlabel;
var $select;
-
+
function definition() {
$mform =& $this->_form;
-
+
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
$this->requiredcheck = $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
-
+
$this->itemname = $mform->addElement('text', 'itemname', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
$this->itemlabel = $mform->addElement('text', 'itemlabel', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
-
+
$this->select = $mform->addElement('select',
- 'count_of_nums',
- get_string('count_of_nums', 'feedback').' ',
+ 'count_of_nums',
+ get_string('count_of_nums', 'feedback').' ',
array_slice(range(0,10),3,10,true));
-
+
}
}
-?>
+
diff --git a/mod/feedback/item/captcha/lib.php b/mod/feedback/item/captcha/lib.php
index 292eeffdbe..f634193f94 100644
--- a/mod/feedback/item/captcha/lib.php
+++ b/mod/feedback/item/captcha/lib.php
@@ -1,4 +1,4 @@
-dirroot.'/mod/feedback/item/feedback_item_class.php');
diff --git a/mod/feedback/item/captcha/print_captcha.php b/mod/feedback/item/captcha/print_captcha.php
index b1d44fa1d8..9c9c161eda 100644
--- a/mod/feedback/item/captcha/print_captcha.php
+++ b/mod/feedback/item/captcha/print_captcha.php
@@ -114,4 +114,4 @@ function get_random_color($val1 = 0, $val2 = 255) {
return rand($min, $max);
}
-?>
+
diff --git a/mod/feedback/item/feedback_item_class.php b/mod/feedback/item/feedback_item_class.php
index 62e8d7b98c..e84623da31 100644
--- a/mod/feedback/item/feedback_item_class.php
+++ b/mod/feedback/item/feedback_item_class.php
@@ -1,4 +1,4 @@
-feedback_item_base();
}
-
+
/**
* prints the item-related sequenz on the edit-item form
- *
+ *
* @param $item the db-object from feedback_item
* @param $usehtmleditor defines whether the editor should be shown or not
*/
@@ -96,8 +96,8 @@ class feedback_item_base {
class feedback_item_pagebreak extends feedback_item_base {
var $type = "pagebreak";
function init() {
-
+
}
}
-?>
+
diff --git a/mod/feedback/item/feedback_item_form_class.php b/mod/feedback/item/feedback_item_form_class.php
index 6c76344713..b803489b3a 100644
--- a/mod/feedback/item/feedback_item_form_class.php
+++ b/mod/feedback/item/feedback_item_form_class.php
@@ -9,4 +9,4 @@ abstract class feedback_item_form extends moodleform {
return $this->_form;
}
}
-?>
+
diff --git a/mod/feedback/item/info/info_form.php b/mod/feedback/item/info/info_form.php
index a7ead8cf2f..5ee5e599c1 100644
--- a/mod/feedback/item/info/info_form.php
+++ b/mod/feedback/item/info/info_form.php
@@ -8,17 +8,17 @@ class feedback_info_form extends feedback_item_form {
var $itemname;
var $itemlabel;
var $infotype;
-
+
function definition() {
$mform =& $this->_form;
-
+
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
$this->requiredcheck = &$mform->addElement('hidden', 'required');
$mform->setType('required', PARAM_INT);
-
+
$this->itemname = &$mform->addElement('text', 'itemname', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
$this->itemlabel = $mform->addElement('text', 'itemlabel', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
-
+
$options=array();
$options[1] = get_string('responsetime', 'feedback');
$options[2] = get_string('coursename', 'feedback');
@@ -27,4 +27,4 @@ class feedback_info_form extends feedback_item_form {
}
}
-?>
+
diff --git a/mod/feedback/item/info/lib.php b/mod/feedback/item/info/lib.php
index dd3773f0ec..7b2bf6af15 100644
--- a/mod/feedback/item/info/lib.php
+++ b/mod/feedback/item/info/lib.php
@@ -1,4 +1,4 @@
-dirroot.'/mod/feedback/item/feedback_item_class.php');
diff --git a/mod/feedback/item/label/label_form.php b/mod/feedback/item/label/label_form.php
index 0719c98aa7..3c02cda7d9 100644
--- a/mod/feedback/item/label/label_form.php
+++ b/mod/feedback/item/label/label_form.php
@@ -5,15 +5,15 @@ require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_form_class.php');
class feedback_label_form extends feedback_item_form {
var $type = "label";
var $area;
-
+
function definition() {
$mform =& $this->_form;
-
+
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
-
+
$mform->addElement('hidden', 'itemname', $this->type);
$mform->setType('itemname', PARAM_INT);
$this->area = $mform->addElement('htmleditor', 'presentation', '', array('rows'=>20));
}
}
-?>
+
diff --git a/mod/feedback/item/label/lib.php b/mod/feedback/item/label/lib.php
index f62c9c7a4c..64dbdfca4a 100644
--- a/mod/feedback/item/label/lib.php
+++ b/mod/feedback/item/label/lib.php
@@ -1,22 +1,22 @@
-dirroot.'/mod/feedback/item/feedback_item_class.php');
class feedback_item_label extends feedback_item_base {
var $type = "label";
function init() {
-
+
}
-
+
function show_edit($item) {
global $CFG;
-
+
require_once('label_form.php');
-
+
$item_form = new feedback_label_form();
-
+
$item->presentation = isset($item->presentation) ? $item->presentation : '';
-
+
$item_form->area->setValue($item->presentation);
return $item_form;
}
diff --git a/mod/feedback/item/multichoice/lib.php b/mod/feedback/item/multichoice/lib.php
index 432dc8e598..7fcf45b8af 100644
--- a/mod/feedback/item/multichoice/lib.php
+++ b/mod/feedback/item/multichoice/lib.php
@@ -1,4 +1,4 @@
-dirroot.'/mod/feedback/item/feedback_item_class.php');
diff --git a/mod/feedback/item/multichoice/multichoice_form.php b/mod/feedback/item/multichoice/multichoice_form.php
index b2cad9b0de..2bca9342cf 100644
--- a/mod/feedback/item/multichoice/multichoice_form.php
+++ b/mod/feedback/item/multichoice/multichoice_form.php
@@ -10,33 +10,33 @@ class feedback_multichoice_form extends feedback_item_form {
var $selectadjust;
var $selecttype;
var $values;
-
+
function definition() {
$mform =& $this->_form;
-
+
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
-
+
$this->requiredcheck = $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
-
+
$this->itemname = $mform->addElement('text', 'itemname', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
$this->itemlabel = $mform->addElement('text', 'itemlabel', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
$this->selectadjust = $mform->addElement('select',
- 'horizontal',
- get_string('adjustment', 'feedback').' ',
+ 'horizontal',
+ get_string('adjustment', 'feedback').' ',
array(0 => get_string('vertical', 'feedback'), 1 => get_string('horizontal', 'feedback')));
-
+
$this->selecttype = $mform->addElement('select',
- 'subtype',
- get_string('multichoicetype', 'feedback').' ',
+ 'subtype',
+ get_string('multichoicetype', 'feedback').' ',
array('r'=>get_string('radio', 'feedback'),
'c'=>get_string('check', 'feedback'),
'd'=>get_string('dropdown', 'feedback')));
$mform->addElement('static', 'hint', get_string('multichoice_values', 'feedback'), get_string('use_one_line_for_each_value', 'feedback'));
-
+
$this->values = $mform->addElement('textarea', 'itemvalues', '', 'wrap="virtual" rows="10" cols="65"');
}
}
-?>
+
diff --git a/mod/feedback/item/multichoicerated/lib.php b/mod/feedback/item/multichoicerated/lib.php
index a0aeae4171..e520cf2f4b 100644
--- a/mod/feedback/item/multichoicerated/lib.php
+++ b/mod/feedback/item/multichoicerated/lib.php
@@ -1,4 +1,4 @@
-dirroot.'/mod/feedback/item/feedback_item_class.php');
diff --git a/mod/feedback/item/multichoicerated/multichoicerated_form.php b/mod/feedback/item/multichoicerated/multichoicerated_form.php
index 5d9b0a498c..c8b497a402 100644
--- a/mod/feedback/item/multichoicerated/multichoicerated_form.php
+++ b/mod/feedback/item/multichoicerated/multichoicerated_form.php
@@ -10,32 +10,32 @@ class feedback_multichoicerated_form extends feedback_item_form {
var $selectadjust;
var $selecttype;
var $values;
-
+
function definition() {
$mform =& $this->_form;
-
+
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
-
+
$this->requiredcheck = $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
-
+
$this->itemname = $mform->addElement('text', 'itemname', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
$this->itemlabel = $mform->addElement('text', 'itemlabel', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
$this->selectadjust = $mform->addElement('select',
- 'horizontal',
- get_string('adjustment', 'feedback').' ',
+ 'horizontal',
+ get_string('adjustment', 'feedback').' ',
array(0 => get_string('vertical', 'feedback'), 1 => get_string('horizontal', 'feedback')));
-
+
$this->selecttype = $mform->addElement('select',
- 'subtype',
- get_string('multichoicetype', 'feedback').' ',
+ 'subtype',
+ get_string('multichoicetype', 'feedback').' ',
array('r'=>get_string('radio', 'feedback'),
'd'=>get_string('dropdown', 'feedback')));
$mform->addElement('static', 'hint', get_string('multichoice_values', 'feedback'), get_string('use_one_line_for_each_value', 'feedback'));
-
+
$this->values = $mform->addElement('textarea', 'itemvalues', '', 'wrap="virtual" rows="10" cols="65"');
}
}
-?>
+
diff --git a/mod/feedback/item/numeric/lib.php b/mod/feedback/item/numeric/lib.php
index 4c99b9ac4b..93df5a6683 100644
--- a/mod/feedback/item/numeric/lib.php
+++ b/mod/feedback/item/numeric/lib.php
@@ -1,4 +1,4 @@
-dirroot.'/mod/feedback/item/feedback_item_class.php');
diff --git a/mod/feedback/item/numeric/numeric_form.php b/mod/feedback/item/numeric/numeric_form.php
index c7366ada22..41d1e385ad 100644
--- a/mod/feedback/item/numeric/numeric_form.php
+++ b/mod/feedback/item/numeric/numeric_form.php
@@ -9,20 +9,20 @@ class feedback_numeric_form extends feedback_item_form {
var $itemlabel;
var $selectfrom;
var $selectto;
-
+
function definition() {
$mform =& $this->_form;
-
+
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
$this->requiredcheck = $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
-
+
$this->itemname = $mform->addElement('text', 'itemname', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
$this->itemlabel = $mform->addElement('text', 'itemlabel', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
-
+
$this->selectfrom = $mform->addElement('text', 'numericrangefrom', get_string('numeric_range_from', 'feedback'), array('size="10"','maxlength="10"'));
-
+
$this->selectto = $mform->addElement('text', 'numericrangeto', get_string('numeric_range_to', 'feedback'), array('size="10"','maxlength="10"'));
}
}
-?>
+
diff --git a/mod/feedback/item/textarea/lib.php b/mod/feedback/item/textarea/lib.php
index 3bd9e50144..746dfc2b04 100644
--- a/mod/feedback/item/textarea/lib.php
+++ b/mod/feedback/item/textarea/lib.php
@@ -1,4 +1,4 @@
-dirroot.'/mod/feedback/item/feedback_item_class.php');
diff --git a/mod/feedback/item/textarea/textarea_form.php b/mod/feedback/item/textarea/textarea_form.php
index bd6124dc06..57ff0d0caa 100644
--- a/mod/feedback/item/textarea/textarea_form.php
+++ b/mod/feedback/item/textarea/textarea_form.php
@@ -9,26 +9,26 @@ class feedback_textarea_form extends feedback_item_form {
var $itemlabel;
var $selectwidth;
var $selectheight;
-
+
function definition() {
$mform =& $this->_form;
-
+
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
$this->requiredcheck = $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
-
+
$this->itemname = $mform->addElement('text', 'itemname', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
$this->itemlabel = $mform->addElement('text', 'itemlabel', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
-
+
$this->selectwidth = $mform->addElement('select',
- 'itemwidth',
- get_string('textarea_width', 'feedback').' ',
+ 'itemwidth',
+ get_string('textarea_width', 'feedback').' ',
array_slice(range(0,80),5,80,true));
$this->selectheight = $mform->addElement('select',
- 'itemheight',
- get_string('textarea_height', 'feedback').' ',
+ 'itemheight',
+ get_string('textarea_height', 'feedback').' ',
array_slice(range(0,40),5,40,true));
}
}
-?>
+
diff --git a/mod/feedback/item/textfield/lib.php b/mod/feedback/item/textfield/lib.php
index f972004441..fe18b4c51d 100644
--- a/mod/feedback/item/textfield/lib.php
+++ b/mod/feedback/item/textfield/lib.php
@@ -1,4 +1,4 @@
-dirroot.'/mod/feedback/item/feedback_item_class.php');
diff --git a/mod/feedback/item/textfield/textfield_form.php b/mod/feedback/item/textfield/textfield_form.php
index d468958a75..4d1664cc51 100644
--- a/mod/feedback/item/textfield/textfield_form.php
+++ b/mod/feedback/item/textfield/textfield_form.php
@@ -9,26 +9,26 @@ class feedback_textfield_form extends feedback_item_form {
var $itemlabel;
var $selectwith;
var $selectheight;
-
+
function definition() {
$mform =& $this->_form;
-
+
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
$this->requiredcheck = $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
-
+
$this->itemname = $mform->addElement('text', 'itemname', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
$this->itemlabel = $mform->addElement('text', 'itemlabel', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
-
+
$this->selectwith = $mform->addElement('select',
- 'itemsize',
- get_string('textfield_size', 'feedback').' ',
+ 'itemsize',
+ get_string('textfield_size', 'feedback').' ',
array_slice(range(0,255),5,255,true));
$this->selectheight = $mform->addElement('select',
- 'itemmaxlength',
- get_string('textfield_maxlength', 'feedback').' ',
+ 'itemmaxlength',
+ get_string('textfield_maxlength', 'feedback').' ',
array_slice(range(0,255),5,255,true));
}
}
-?>
+
diff --git a/mod/feedback/mapcourse.php b/mod/feedback/mapcourse.php
index 6f9e5bbd90..cdeae91648 100644
--- a/mod/feedback/mapcourse.php
+++ b/mod/feedback/mapcourse.php
@@ -131,4 +131,3 @@ echo $OUTPUT->box_end();
echo $OUTPUT->footer();
-?>
\ No newline at end of file
diff --git a/mod/feedback/mod_form.php b/mod/feedback/mod_form.php
index 1eedc587e3..099025e2fc 100644
--- a/mod/feedback/mod_form.php
+++ b/mod/feedback/mod_form.php
@@ -1,4 +1,4 @@
-addElement('htmleditor', 'page_after_submit', get_string("page_after_submit", "feedback"), array('rows' => 20));
$mform->setType('page_after_submit', PARAM_RAW);
-
+
$mform->addElement('text', 'site_after_submit', get_string('url_for_continue_button', 'feedback'), array('size'=>'64','maxlength'=>'255'));
$mform->setType('site_after_submit', PARAM_TEXT);
$mform->setHelpButton('site_after_submit', array('url_for_continue', get_string('url_for_continue_button', 'feedback'), 'feedback'));
@@ -111,4 +111,3 @@ class mod_feedback_mod_form extends moodleform_mod {
}
}
-?>
\ No newline at end of file
diff --git a/mod/feedback/print.php b/mod/feedback/print.php
index 7e1557e425..615eeb682c 100644
--- a/mod/feedback/print.php
+++ b/mod/feedback/print.php
@@ -97,4 +97,3 @@ echo $OUTPUT->continue_button('view.php?id='.$id);
echo $OUTPUT->footer();
-?>
\ No newline at end of file
diff --git a/mod/feedback/restorelib.php b/mod/feedback/restorelib.php
index 7a6f8853c5..0e36011d7f 100644
--- a/mod/feedback/restorelib.php
+++ b/mod/feedback/restorelib.php
@@ -1,4 +1,4 @@
-text of each feedback_posting
//
//-----------------------------------------------------------
-
+
define('FEEDBACK_MULTICHOICERESTORE_TYPE_SEP', '>>>>>');
function feedback_restore_mods($mod,$restore) {
global $CFG, $DB;
-
+
// $allValues = array();
// $allTrackings = array();
$status = true;
$restore_userdata = restore_userdata_selected($restore,'feedback',$mod->id);
-
+
//Get record from backup_ids
$data = backup_getid($restore->backup_unique_code,$mod->modtype,$mod->id);
if ($data) {
- //Now get completed xmlized object
+ //Now get completed xmlized object
$info = $data->info;
-
+
//check of older backupversion of feedback
$version = intval(backup_todb($info['MOD']['#']['VERSION']['0']['#']));
-
+
//Now, build the feedback record structure
$feedback->course = $restore->course_id;
$feedback->name = backup_todb($info['MOD']['#']['NAME']['0']['#']);
@@ -63,7 +63,7 @@
//The structure is equal to the db, so insert the feedback
$newid = $DB->insert_record ("feedback",$feedback);
-
+
//create events
// the open-event
if($feedback->timeopen > 0) {
@@ -83,10 +83,10 @@
} else {
$event->timeduration = 0;
}
-
+
add_event($event);
}
-
+
// the close-event
if($feedback->timeclose > 0) {
$event = NULL;
@@ -101,11 +101,11 @@
$event->timestart = $feedback->timeclose;
$event->visible = instance_is_visible('feedback', $feedback);
$event->timeduration = 0;
-
+
add_event($event);
}
- //Do some output
+ //Do some output
echo "
";
-
+
} else {
$status = false;
}
@@ -300,7 +300,7 @@
function feedback_restore_logs($restore,$log) {
$status = false;
-
+
//Depending of the action, we recode different things
switch ($log->action) {
case "add":
@@ -392,4 +392,4 @@
return $status;
}
-?>
+
diff --git a/mod/feedback/tabs.php b/mod/feedback/tabs.php
index f8952a6179..df7c63853f 100644
--- a/mod/feedback/tabs.php
+++ b/mod/feedback/tabs.php
@@ -1,4 +1,4 @@
-wwwroot.htmlspecialchars('/mod/feedback/view.php?id='.$id.'&do_show=view'), get_string('overview', 'feedback'));
-
+
if($capabilities->edititems) {
$row[] = new tabobject('edit', $CFG->wwwroot.htmlspecialchars('/mod/feedback/edit.php?id='.$id.'&do_show=edit'), get_string('edit_items', 'feedback'));
$row[] = new tabobject('templates', $CFG->wwwroot.htmlspecialchars('/mod/feedback/edit.php?id='.$id.'&do_show=templates'), get_string('templates', 'feedback'));
}
-
+
if($capabilities->viewreports) {
if($feedback->course == SITEID){
$row[] = new tabobject('analysis', $CFG->wwwroot.htmlspecialchars('/mod/feedback/analysis_course.php?id='.$id.'&courseid='.$courseid.'&do_show=analysis'), get_string('analysis', 'feedback'));
@@ -34,14 +34,14 @@
$row[] = new tabobject('analysis', $CFG->wwwroot.htmlspecialchars('/mod/feedback/analysis.php?id='.$id.'&courseid='.$courseid.'&do_show=analysis'), get_string('analysis', 'feedback'));
}
}
-
+
if($capabilities->viewreports) {
$row[] = new tabobject('showentries', $CFG->wwwroot.htmlspecialchars('/mod/feedback/show_entries.php?id='.$id.'&do_show=showentries'), get_string('show_entries', 'feedback'));
}
-
+
if(count($row) > 1) {
$tabs[] = $row;
print_tabs($tabs, $current_tab, $inactive, $activated);
}
-?>
+
diff --git a/mod/feedback/unmapcourse.php b/mod/feedback/unmapcourse.php
index 0976b5a052..042677067e 100644
--- a/mod/feedback/unmapcourse.php
+++ b/mod/feedback/unmapcourse.php
@@ -49,4 +49,3 @@ if ($DB->delete_records('feedback_sitecourse_map', array('id'=>$cmapid))) {
print_error('cannotunmap', 'feedback');
}
-?>
\ No newline at end of file
diff --git a/mod/feedback/use_templ.php b/mod/feedback/use_templ.php
index 67f4151ea8..734ed42683 100644
--- a/mod/feedback/use_templ.php
+++ b/mod/feedback/use_templ.php
@@ -123,4 +123,3 @@ if(is_array($templateitems)){
echo $OUTPUT->footer();
-?>
\ No newline at end of file
diff --git a/mod/feedback/use_templ_form.php b/mod/feedback/use_templ_form.php
index dca0b9ca87..ba95a5d232 100644
--- a/mod/feedback/use_templ_form.php
+++ b/mod/feedback/use_templ_form.php
@@ -1,4 +1,4 @@
-addElement('header', 'general', '');
-
+
// visible elements
$mform->addElement('radio', 'deleteolditems', get_string('delete_old_items', 'feedback'), '', 1);
$mform->addElement('radio', 'deleteolditems', get_string('append_new_items', 'feedback'), '', 0);
@@ -38,4 +38,4 @@ class mod_feedback_use_templ_form extends moodleform {
}
}
-?>
+
diff --git a/mod/feedback/version.php b/mod/feedback/version.php
index 7093fb5e29..5bb5ac8bb2 100644
--- a/mod/feedback/version.php
+++ b/mod/feedback/version.php
@@ -1,4 +1,4 @@
-version = 2009052701; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2009041700; // Requires this Moodle version
$feedback_version_intern = 1; //this version is used for restore older backups
$module->cron = 0; // Period for cron to check this module (secs)
-?>
+
diff --git a/mod/feedback/view.php b/mod/feedback/view.php
index fe69ea70f8..f8116592c6 100644
--- a/mod/feedback/view.php
+++ b/mod/feedback/view.php
@@ -205,4 +205,3 @@ echo "
";
backup_flush(300);
@@ -221,14 +221,14 @@
$tracking->userid = $user->new_id;
}
}
-
+
//save the tracking
$newtrackingid = $DB->insert_record('feedback_tracking', $tracking);
$tracking->id = $newtrackingid;
// $allTrackings[] = $tracking;
}
}
-
+
//restore completeds
if(isset($info['MOD']['#']['COMPLETEDS']['0']['#']['COMPLETED'])) {
$completeds = $info['MOD']['#']['COMPLETEDS']['0']['#']['COMPLETED'];
@@ -252,10 +252,10 @@
}
//later this have to be changed
$oldcompletedid = backup_todb($completed_info['#']['ID']['0']['#']);
-
+
//save the completed
$newcompletedid = $DB->insert_record('feedback_completed', $completed);
-
+
//the newcompletedid have to be changed at every values
$tochangevals = $DB->get_records('feedback_value', array('tmp_completed'=>$oldcompletedid));
if($tochangevals) {
@@ -265,7 +265,7 @@
$DB->update_record('feedback_value', $tmpVal);
}
}
-
+
//the newcompletedid have to be changed at every tracking
$tochangetracks = $DB->get_records('feedback_tracking', array('completed'=>$oldcompletedid));
if($tochangetracks) {
@@ -278,16 +278,16 @@
}
}
}
-
+
//We have the newid, update backup_ids
backup_putid($restore->backup_unique_code,$mod->modtype, $mod->id, $newid);
} else {
$status = false;
}
- //Finalize ul
+ //Finalize ul
echo "
+ | |
- + get_records("glossary_categories", array("glossaryid"=>$glossary->id), "name ASC"); @@ -227,7 +227,7 @@ if ( $action ) { | - dirroot.'/lib/uploadlib.php'); upload_print_form_fragment(1,array('file'),null,false,null,0,0); ?> @@ -26,7 +26,7 @@ help_icon(moodle_help_icon::make("destination", get_string("destination", "glossary"), "glossary")) ?> | : | -" /> + | " /> help_icon(moodle_help_icon::make("importcategories", get_string("importcategories", "glossary"), "glossary")) ?> | @@ -48,4 +48,4 @@ - + diff --git a/mod/glossary/import.php b/mod/glossary/import.php index ea530c1695..ab12f3d785 100644 --- a/mod/glossary/import.php +++ b/mod/glossary/import.php @@ -375,4 +375,3 @@ if ($xml = glossary_read_imported_file($file['tmp_name']) ) { /// Finish the page echo $OUTPUT->footer(); -?> \ No newline at end of file diff --git a/mod/glossary/index.php b/mod/glossary/index.php index 77706b2d12..3d0fc85517 100644 --- a/mod/glossary/index.php +++ b/mod/glossary/index.php @@ -133,4 +133,3 @@ echo $OUTPUT->table($table); echo $OUTPUT->footer(); -?> \ No newline at end of file diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index 3829680c53..934abf3797 100644 --- a/mod/glossary/lib.php +++ b/mod/glossary/lib.php @@ -536,7 +536,7 @@ function glossary_grade_item_update($glossary, $grades=NULL) { /** * Delete grade item for given glossary - * + * * @global object * @param object $glossary object */ @@ -1356,7 +1356,7 @@ function glossary_pluginfile($course, $cminfo, $context, $filearea, $args, $forc } require_course_login($course, true, $cm); - + if (!$entry = $DB->get_record('glossary_entries', array('id'=>$entryid))) { return false; } @@ -1550,7 +1550,7 @@ function glossary_print_categories_menu($cm, $glossary, $hook, $category) { } echo ''; echo ''; - + $select = html_select::make_popup_form("$CFG->wwwroot/mod/glossary/view.php?id=$cm->id&mode=cat", 'hook', $menu, "catmenu", $selected); $select->nothinglabel = false; echo $OUTPUT->select($select); @@ -2206,7 +2206,7 @@ function glossary_count_unrated_entries($glossaryid, $userid) { * @param int $entryid * @param array $scale */ -function glossary_print_ratings_mean($entryid, $scale) { +function glossary_print_ratings_mean($entryid, $scale) { global $OUTPUT; static $strrate; @@ -2221,7 +2221,7 @@ function glossary_print_ratings_mean($entryid, $scale) { echo "$strratings: "; $link = html_link::make("/mod/glossary/report.php?id=$entryid", $mean); $link->add_action(new popup_action('click', $link->url, "ratings")); - echo $OUTPUT->link($link); + echo $OUTPUT->link($link); } } @@ -2358,7 +2358,7 @@ function glossary_print_rating_menu($entryid, $userid, $scale) { * @param int $page page currently selected (0 based) * @param int $perpage number of records per page * @param string $baseurl url to link in each page, the string 'page=XX' will be added automatically. - * + * * @param int $maxpageallowed Optional maximum number of page allowed. * @param int $maxdisplay Optional maximum number of page links to show in the bar * @param string $separator Optional string to be used between pages in the bar diff --git a/mod/glossary/mod_form.php b/mod/glossary/mod_form.php index ee265f2542..6e87f51646 100644 --- a/mod/glossary/mod_form.php +++ b/mod/glossary/mod_form.php @@ -187,4 +187,4 @@ class mod_glossary_mod_form extends moodleform_mod { } } -?> + diff --git a/mod/glossary/print.php b/mod/glossary/print.php index 090bd7bbda..c6c2e4e97f 100644 --- a/mod/glossary/print.php +++ b/mod/glossary/print.php @@ -203,4 +203,3 @@ if ( $allentries ) { } echo $OUTPUT->footer(); -?> \ No newline at end of file diff --git a/mod/glossary/rate.php b/mod/glossary/rate.php index 1c6c3f3685..ad37822d00 100644 --- a/mod/glossary/rate.php +++ b/mod/glossary/rate.php @@ -1,4 +1,4 @@ - + diff --git a/mod/glossary/report.php b/mod/glossary/report.php index 4e4ffda3a2..7f1f6dc8fe 100644 --- a/mod/glossary/report.php +++ b/mod/glossary/report.php @@ -91,4 +91,3 @@ if (!$ratings = glossary_get_ratings($entry->id, $sqlsort)) { echo $OUTPUT->close_window_button(); echo $OUTPUT->footer(); -?> \ No newline at end of file diff --git a/mod/glossary/restorelib.php b/mod/glossary/restorelib.php index baad6856f2..9d8d4d3f75 100644 --- a/mod/glossary/restorelib.php +++ b/mod/glossary/restorelib.php @@ -1,4 +1,4 @@ - + diff --git a/mod/glossary/rsslib.php b/mod/glossary/rsslib.php index 3d54aff640..a7b7236928 100644 --- a/mod/glossary/rsslib.php +++ b/mod/glossary/rsslib.php @@ -1,4 +1,4 @@ - + diff --git a/mod/glossary/settings.php b/mod/glossary/settings.php index 90a62572c3..16ffaae61d 100644 --- a/mod/glossary/settings.php +++ b/mod/glossary/settings.php @@ -1,4 +1,4 @@ -dirroot.'/mod/glossary/lib.php'); diff --git a/mod/glossary/showentry.php b/mod/glossary/showentry.php index 3fc116dfb1..0e14cd75bb 100644 --- a/mod/glossary/showentry.php +++ b/mod/glossary/showentry.php @@ -83,4 +83,3 @@ echo $OUTPUT->close_window_button(); /// Show one reduced footer echo $OUTPUT->footer(); -?> \ No newline at end of file diff --git a/mod/glossary/sql.php b/mod/glossary/sql.php index 3d73ecaff6..ce30c9013a 100644 --- a/mod/glossary/sql.php +++ b/mod/glossary/sql.php @@ -3,7 +3,6 @@ /** * SQL.PHP * This file is include from view.php and print.php - * @version $Id$ * @copyright 2003 **/ @@ -265,4 +264,4 @@ } $allentries = $DB->get_records_sql("$sqlselect $sqlfrom $sqlwhere $sqlorderby", $params, $limitfrom, $limitnum); -?> + |