Go to the source code of this file.
Namespaces |
| namespace | feedback |
Variables |
| | $id = required_param('id', PARAM_INT) |
if(($formdata=data_submitted())
AND!confirm_sesskey()) | $do_show = optional_param('do_show', 'edit', PARAM_ALPHA) |
| | $moveupitem = optional_param('moveupitem', false, PARAM_INT) |
| | $movedownitem = optional_param('movedownitem', false, PARAM_INT) |
| | $moveitem = optional_param('moveitem', false, PARAM_INT) |
| | $movehere = optional_param('movehere', false, PARAM_INT) |
| | $switchitemrequired = optional_param('switchitemrequired', false, PARAM_INT) |
| | $current_tab = $do_show |
| | $url = new moodle_url('/mod/feedback/edit.php', array('id'=>$id, 'do_show'=>$do_show)) |
| | $create_template_formdata = $create_template_form->get_data() |
if(isset($create_template_formdata->
savetemplate)&&$create_template_formdata->
savetemplate==1) | $lastposition = 0 |
| | $feedbackitems = $DB->get_records('feedback_item', array('feedback'=>$feedback->id), 'position') |
| | $add_item_form = new feedback_edit_add_question_form('edit_item.php') |
| | $use_template_form = new feedback_edit_use_template_form('use_templ.php') |
| | $strfeedbacks = get_string("modulenameplural", "feedback") |
| | Print the page header.
|
| | $strfeedback = get_string("modulename", "feedback") |
| | $savereturn = isset($savereturn)?$savereturn:'' |
| | print the tabs
|
if($savereturn==
'notsaved_name') if($savereturn==
'saved') if($savereturn==
'failed') if($do_show==
'templates') | if ($do_show== 'edit') |
| | Finish the page //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////.
|
Variable Documentation
| $create_template_formdata = $create_template_form->get_data() |
| if (is_array($feedbackitems)) $lastposition = 0 |
| $savereturn = isset($savereturn)?$savereturn:'' |
print the tabs
Print the main part of the page //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
Definition at line 172 of file edit.php.
| $strfeedback = get_string("modulename", "feedback") |
| $strfeedbacks = get_string("modulenameplural", "feedback") |
Print the page header.
Definition at line 156 of file edit.php.
| if ($savereturn== 'notsaved_name') if ($savereturn== 'saved') if ($savereturn== 'failed') if ($do_show== 'templates') if($do_show== 'edit') |
Finish the page //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////.
print the template-section print the Item-Edit-section
Definition at line 225 of file edit.php.