diff --git a/main/survey/attach_existingsurvey.php b/main/survey/attach_existingsurvey.php index 183c480bf8..6cf0799e1b 100644 --- a/main/survey/attach_existingsurvey.php +++ b/main/survey/attach_existingsurvey.php @@ -3,14 +3,14 @@ DOKEOS - elearning and course management software For a full list of contributors, see documentation/credits.html - + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. See "documentation/licence.html" more details. - - Contact: + + Contact: Dokeos Rue des Palais 44 Paleizenstraat B-1030 Brussels - Belgium @@ -19,8 +19,8 @@ /** * @package dokeos.survey -* @author -* @version $Id: attach_existingsurvey.php 10680 2007-01-11 21:26:23Z pcool $ +* @author +* @version $Id: attach_existingsurvey.php 10705 2007-01-12 22:40:01Z pcool $ */ /* @@ -28,7 +28,7 @@ INIT SECTION ============================================================================== */ -// name of the language file that needs to be included +// name of the language file that needs to be included $language_file = 'survey'; // including the global dokeos file @@ -71,16 +71,17 @@ $table_group = Database :: get_course_table(TABLE_SURVEY_GROUP); $table_survey_question = Database :: get_course_table(TABLE_SURVEY_QUESTION); $table_course = Database :: get_main_table(TABLE_MAIN_COURSE); $table_course_survey_rel = Database :: get_main_table(TABLE_MAIN_COURSE_SURVEY); +$table_languages = Database::get_main_table(TABLE_MAIN_LANGUAGE); // Language variables -$MonthsLong = array(get_lang('JanuaryLong'), get_lang('FebruaryLong'), get_lang('"MarchLong'), get_lang('AprilLong'), get_lang('MayLong'), get_lang('JuneLong'), get_lang('JulyLong'), get_lang('AugustLong'), get_lang('SeptemberLong'), get_lang('OctoberLong'), get_lang('NovemberLong'), get_lang('DecemberLong')); +$MonthsLong = array(get_lang('JanuaryLong'), get_lang('FebruaryLong'), get_lang('"MarchLong'), get_lang('AprilLong'), get_lang('MayLong'), get_lang('JuneLong'), get_lang('JulyLong'), get_lang('AugustLong'), get_lang('SeptemberLong'), get_lang('OctoberLong'), get_lang('NovemberLong'), get_lang('DecemberLong')); $tool_name = get_lang('CreateNewSurvey'); $tool_name1 = get_lang('CreateNewSurvey'); // Breadcrumbs $interbreadcrumb[] = array ("url" => "survey_list.php", "name" => get_lang('Survey')); -// Variables +// Variables $arr_date = explode("-",date("Y-m-d")); $curr_year = $arr_date[0]; $curr_month = $arr_date[1]; @@ -112,7 +113,7 @@ if ($_POST['action'] == 'add_survey') $surveytemplate = $_POST['template']; $surveyintroduction = $_POST['content']; $surveythanks = $_POST['thanks']; - $savailablefrom=mktime(0,0,0,$_POST['fmonth'],$_POST['fday'], $_POST['fyear']); + $savailablefrom=mktime(0,0,0,$_POST['fmonth'],$_POST['fday'], $_POST['fyear']); $savailabletill=mktime(0,0,0,$_POST['end_fmonth'],$_POST['end_fday'], $_POST['end_fyear']); $db_name = $_REQUEST['db_name']; $surveyid = $_REQUEST['surveyid']; @@ -126,7 +127,7 @@ if ($_POST['action'] == 'add_survey') $surveycode=trim($surveycode); if(empty ($surveytitle)) { - $error_message = get_lang('PleaseEnterSurveyTitle'); + $error_message = get_lang('PleaseEnterSurveyTitle'); } elseif ($savailabletill<=$savailablefrom){ $error_message = get_lang('PleaseEnterValidDate'); @@ -137,7 +138,7 @@ if ($_POST['action'] == 'add_survey') else { $result=SurveyManager::get_survey_code($table_survey,$surveycode); - + if(!empty($result)) { $error_message=get_lang('ThisCodeAlreadyExist'); @@ -160,7 +161,7 @@ if ($_POST['action'] == 'add_survey') exit; } } - } + } } Display::display_header($tool_name); api_display_tool_title($tool_name1); @@ -169,7 +170,7 @@ api_display_tool_title($tool_name1); //echo ""; if( isset($error_message) ) { - Display::display_error_message($error_message); + Display::display_error_message($error_message); } ?> - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
- -
- - - - - -
- - - - - - - - - - -
- Home - -
- - - - - - -
-
-
- - - - - - - - - - -
- Purchase - -
- - - - - - -
-
-
- - - - - - - - - - -
- Login - -
- - - - - - -
-
-
- - - - - - - - - - -
- About Us - -
- - - - - - -
-
-
- - - - - - - - - - -
- Contact Us - -
- - - - - - -
-
-
- -
- - - - - - -
- -
- -
- - - - - -
- - - - - - - - -
- - - - - - - -
-
What's New
-
-
- -
- - - - -
- - - - - - -
- - - - - - - - - - - - - - - - - -
- - - - - - -
- chumpsoft products combine pleasing, easy to use front ends with powerful database connected applications. -
- -
- - - - - - - - - - - -
- - - - - - - - - - - - - -
Available Now!phpQ Monster
phpQuestionnaireSurvey Builder
Version 2.0
-
- - A comprehensive online survey software tool that lets you easily create web-based surveys that are customized to your site. Online reporting and result exporting are included. - -
- - - - - - - - - - - - - - - -
>Buy Now>Demo>Docs>Features
- -
- -
- - - - - - - - - - - -
- - - - - - - - - - - - - -
Available Now!perlQ Monster
perlQuestionnaireSurvey Builder
Version 2.0
-
- - perlQ is the older brother of phpQ. Containing the identical functionality and performance of phpQ, the Perl version of this program is now completed and available for purchase! - -
- - - - - - - - - - - - - - - -
>Buy Now>Demo>Docs>Features
- -
- -
- - - - - - - - - - - -
- - - - - - - - - - - - - -
Coming Soon!phpQ JR. Monster
phpQuestionnaire JuniorPoll Builder
Version 1.0
-
- - The younger cousin of phpQ, this full-featured polling software is now available. Short web site polls, rather than multi-page surveys, is the focus of this script. - -
- - - - - - - - - - - - - - - -
>Buy Now>Demo>Docs>Features
- -
- -
- -
- - - - - - - - - - - - - -
- - - - - -
- - - - - - - - - - - - - - - - - - - -
>March 29, 2005
- Version 2.2 of phpQ and perlQ has been released! Included in this release is an HTML Content question type, optional email notifications to administrators upon survey completion and the ability to show a visitor their full response at the end of the survey. -
>September 1, 2004
- We released an affiliate program for those who wish to advertise our products on their own websites or to friends and potential customers. We are also in heavy development of a service-based survey solution due out sometime in late 2005. -
-
- -
- - - - - -
- - - - - - - - - -
Referral Program
- Become a chumpsoft affiliate and start making money now! - For each chumpsoft referred sale you will get - 15 percent. -
Sign Up
-
- -
- - - - - -
- - - - - - - - - - - - - - - - - -
Mailing List
To receive information regarding updates or new product releases, please enter your email address below.
>
-
- -
- -
-
-
- - - - - - -
- - - - - - -
© 2003 - 2005 chumpsoft, inc.
-
- -
- - \ No newline at end of file diff --git a/main/survey/template1_files/invdot.gif b/main/survey/template1_files/invdot.gif deleted file mode 100644 index 7761b86813..0000000000 Binary files a/main/survey/template1_files/invdot.gif and /dev/null differ diff --git a/main/survey/yesno.php b/main/survey/yesno.php index b9016af2cb..abd86abd1f 100644 --- a/main/survey/yesno.php +++ b/main/survey/yesno.php @@ -1,16 +1,16 @@ - "survey_list.php?n=$n", "name" => get_lang('Survey')); -$table_survey_question = Database :: get_course_table(TABLE_SURVEY_QUESTION); $Add = get_lang('AddNewQuestionType'); $Multi = get_lang('YesNo'); $groupid = $_REQUEST['groupid']; @@ -86,16 +91,16 @@ if ($_POST['action'] == 'addquestion') { $enter_question=$_POST['enterquestion']; $answers=$_POST['mutlichkboxtext']; - $rating=$_POST['chkboxpoint']; + $rating=$_POST['chkboxpoint']; $answerT=$_POST['radiotrue']; $answerD=$_POST['radiodefault']; $alignment=''; $open_ans=""; - $count=count($_POST['mutlichkboxtext']); + $count=count($_POST['mutlichkboxtext']); $noans=0; $nopoint=0; for($i=0;$i<$count;$i++) - { + { $answers[$i]=trim($answers[$i]); if(empty($answers[$i])) $noans++; @@ -103,17 +108,17 @@ if ($_POST['action'] == 'addquestion') $number=1; } $enter_question=trim($enter_question); - if(empty($enter_question)) - $error_message = get_lang('PleaseEnterAQuestion')."
"; + if(empty($enter_question)) + $error_message = get_lang('PleaseEnterAQuestion')."
"; if ($noans) $error_message = $error_message."
".get_lang('PleasFillAllAnswer'); if(isset($error_message)) { - //Display::display_error_message($error_message); + //Display::display_error_message($error_message); } else { - $groupid = $_POST['groupid']; + $groupid = $_POST['groupid']; $questtype = $_REQUEST['questtype']; $enter_question = addslashes($enter_question); SurveyManager::create_question($groupid,$surveyid,$questtype,$enter_question,$alignment,$answers,$open_ans,$answerT,$answerD,$rating,$curr_dbname); header("location:select_question_group.php?groupid=$groupid&surveyid=$surveyid"); @@ -131,16 +136,16 @@ if ($_POST['action'] == 'addquestion') { $enter_question=$_POST['enterquestion']; $answers=$_POST['mutlichkboxtext']; - $rating=$_POST['chkboxpoint']; + $rating=$_POST['chkboxpoint']; $answerT=$_POST['radiotrue']; $answerD=$_POST['radiodefault']; $alignment=''; $open_ans=""; - $count=count($_POST['mutlichkboxtext']); + $count=count($_POST['mutlichkboxtext']); $noans=0; $nopoint=0; for($i=0;$i<$count;$i++) - { + { $answers[$i]=trim($answers[$i]); if(empty($answers[$i])) $noans++; @@ -148,20 +153,20 @@ if ($_POST['action'] == 'addquestion') $nopoint++; } $enter_question=trim($enter_question); - if(empty($enter_question)) - $error_message = get_lang('PleaseEnterAQuestion')."
"; + if(empty($enter_question)) + $error_message = get_lang('PleaseEnterAQuestion')."
"; if ($noans) $error_message = $error_message."
".get_lang('PleasFillAllAnswer'); if(isset($error_message)) { - //Display::display_error_message($error_message); + //Display::display_error_message($error_message); } else { $groupid = $_REQUEST['groupid']; $surveyid = $_REQUEST['surveyid']; - $questtype = $_REQUEST['questtype']; + $questtype = $_REQUEST['questtype']; $enter_question = addslashes($enter_question); SurveyManager::create_question($groupid,$surveyid,$questtype,$enter_question,$alignment,$answers,$open_ans,$answerT,$answerD,$rating,$curr_dbname); header("location:survey_list.php?n=$n"); exit; @@ -188,7 +193,7 @@ select_question_type($add_question12,$groupid,$surveyid,$cidReq,$curr_dbname);