Skip to content

Commit

Permalink
Overwritting Version 2.0.0.10 with Version 2.0.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Towns committed Apr 8, 2014
1 parent e2a5986 commit 865a6ea
Show file tree
Hide file tree
Showing 83 changed files with 29 additions and 6 deletions.
17 changes: 17 additions & 0 deletions .project
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>webpaos-local</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>net.sourceforge.phpeclipse.parserbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>net.sourceforge.phpeclipse.phpnature</nature>
</natures>
</projectDescription>
Binary file added images/backgrounds/gradient_grey-white_l-r.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/backgrounds/gradient_light_blue-white_l-r.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/backgrounds/gradient_pink-white_l-r.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/arrow_green_down.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/arrow_green_left.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/arrow_green_right.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/arrow_green_up.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/assessments.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/button_assessment_clone.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/button_assessment_create.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/button_assessment_edit.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/button_assessment_list.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/button_form_clone.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/button_form_create.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/button_form_edit.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/button_form_import.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/button_form_list.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/button_group_clone.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/button_group_create.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/button_group_edit.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/button_group_list.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/button_help.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/button_load_data.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/buttons/button_search_user.png
Binary file added images/buttons/button_staff_user.png
Binary file added images/buttons/button_student_user.png
Binary file added images/buttons/button_view_data.gif
Binary file added images/buttons/button_view_modules.png
Binary file added images/buttons/cross.gif
Binary file added images/buttons/edit.gif
Binary file added images/buttons/email.gif
Binary file added images/buttons/group_marks.gif
Binary file added images/buttons/mark_sheet.gif
Binary file added images/buttons/students_responded.gif
Binary file added images/file_icons/csv.gif
Binary file added images/file_icons/moodle.gif
Binary file added images/file_icons/package_go.png
Binary file added images/file_icons/page_white_word.png
Binary file added images/file_icons/report.png
Binary file added images/file_icons/xml.gif
Binary file added images/footer/eec_logo_grey.png
Binary file added images/footer/engcetl_logo_grey.png
Binary file added images/footer/lu_logo_grey.png
Binary file added images/icons/_template_add_x.psp
Binary file not shown.
Binary file added images/icons/_template_edit_x.psp
Binary file not shown.
Binary file added images/icons/advanced_options.gif
Binary file added images/icons/assessments.gif
Binary file added images/icons/assessments_grey.gif
Binary file added images/icons/closed_icon.gif
Binary file added images/icons/cross.gif
Binary file added images/icons/filing_cabinet_2.gif
Binary file added images/icons/finished_icon.gif
Binary file added images/icons/form.gif
Binary file added images/icons/form_clone.gif
Binary file added images/icons/form_grey.gif
Binary file added images/icons/group_delete.png
Binary file added images/icons/groups.gif
Binary file added images/icons/groups_add.gif
Binary file added images/icons/groups_clone.gif
Binary file added images/icons/groups_clone2.gif
Binary file added images/icons/groups_edit.gif
Binary file added images/icons/groups_grey.gif
Binary file added images/icons/load_data.gif
Binary file added images/icons/open_icon.gif
Binary file added images/icons/package_add.png
Binary file added images/icons/padlock_16.gif
Binary file added images/icons/padlock_32.gif
Binary file added images/icons/pending_icon.gif
Binary file added images/icons/spot_black.gif
Binary file added images/icons/tick.gif
Binary file added images/icons/view_data.gif
Binary file added images/partners.gif
Binary file added images/tab_bar/tab_hover.png
Binary file added images/tab_bar/tab_off.png
Binary file added images/tab_bar/tab_on.png
Binary file added images/tab_bar/tab_padding.png
Binary file modified images/tool/appbar_webpa_logo.png
Binary file added images/tool/menu_arrow.gif
14 changes: 10 additions & 4 deletions includes/classes/class_assessment.php
Expand Up @@ -147,7 +147,8 @@ function save() {
return false;
} else {
// Save the Form
$fields = array ('assessment_id' => $this->id ,
$fields = array (
'assessment_id' => $this->id ,
'assessment_name' => $this->name ,
'module_id' => $this->module_id ,
'collection_id' => $this->_collection_id ,
Expand All @@ -164,14 +165,19 @@ function save() {
'email_closing' =>($this->email_closing)? 1 : 0 ,
'feedback_name' => $this->feedback_name ,
'feedback_length' => 0 ,
'feedback_optional' => 0);
'feedback_optional' => 0
);

$ass_name = $this->_DAO->escape_str($fields['assessment_name']);
$ass_intro = $this->_DAO->escape_str($fields['introduction']);
$xml = $this->_DAO->_prepare_field_value($fields['form_xml']);

$sql = 'INSERT INTO ' . APP__DB_TABLE_PREFIX . 'assessment ({fields}) VALUES ({values}) ';
$sql .= "ON DUPLICATE KEY UPDATE assessment_name = '{$fields['assessment_name']}', module_id = {$fields['module_id']}, " .
$sql .= "ON DUPLICATE KEY UPDATE assessment_name = '{$ass_name}', module_id = {$fields['module_id']}, " .
"collection_id = '{$fields['collection_id']}', form_xml = {$xml}, " .
"open_date = '{$fields['open_date']}', close_date = '{$fields['close_date']}', " .
"retract_date = '{$fields['retract_date']}', " .
"introduction = '{$fields['introduction']}', allow_feedback = {$fields['allow_feedback']}, " .
"introduction = '{$ass_intro}', allow_feedback = {$fields['allow_feedback']}, " .
"assessment_type = {$fields['assessment_type']}, student_feedback = {$fields['student_feedback']}, " .
"contact_email = '{$fields['contact_email']}', " .
"email_opening = {$fields['email_opening']}, email_closing = {$fields['email_closing']}, " .
Expand Down
4 changes: 2 additions & 2 deletions includes/classes/class_form.php
Expand Up @@ -133,8 +133,8 @@ function save() {

// Save the Form
$this->_DAO->execute('INSERT INTO ' . APP__DB_TABLE_PREFIX . 'form (form_id, form_name, form_type, form_xml) ' .
"VALUES ('{$this->id}', '{$this->name}', '{$this->type}', '') " .
"ON DUPLICATE KEY UPDATE form_name = '{$this->name}', form_type = '{$this->type}'");
"VALUES ('{$this->id}', '" . $this->_DAO->escape_str($this->name) . "', '" . $this->_DAO->escape_str($this->type) . "', '') " .
"ON DUPLICATE KEY UPDATE form_name = '" . $this->_DAO->escape_str($this->name) . "', form_type = '" . $this->_DAO->escape_str($this->type) . "'");
$this->_DAO->execute('UPDATE ' . APP__DB_TABLE_PREFIX . "form SET form_xml = '{$form_xml}' WHERE form_id = '{$this->id}'");

if (count($this->modules) > 0) {
Expand Down

0 comments on commit 865a6ea

Please sign in to comment.