فهرست منبع

[svn r11349] change a bit the style of the page (use more space in width but reduce the height of FCKeditor)

Julian Prud'homme 18 سال پیش
والد
کامیت
717c2fe4c8
5فایلهای تغییر یافته به همراه24 افزوده شده و 16 حذف شده
  1. 9 5
      main/survey/create_new_survey.php
  2. 1 1
      main/survey/survey.lib.php
  3. 3 3
      main/survey/survey.php
  4. 8 4
      main/survey/survey_invite.php
  5. 3 3
      main/survey/survey_list.php

+ 9 - 5
main/survey/create_new_survey.php

@@ -21,7 +21,7 @@
 *	@package dokeos.survey
 * 	@author unknown, the initial survey that did not make it in 1.8 because of bad code
 * 	@author Patrick Cool <patrick.cool@UGent.be>, Ghent University: cleanup, refactoring and rewriting large parts (if not all) of the code
-* 	@version $Id: create_new_survey.php 11134 2007-02-16 14:39:59Z pcool $
+* 	@version $Id: create_new_survey.php 11349 2007-03-02 15:57:21Z elixir_julian $
 *
 * 	@todo rename this file to survey.php
 * 	@todo try to understand the template stuff and implement it (if needed)
@@ -35,6 +35,10 @@ $language_file = 'survey';
 // including the global dokeos file
 require_once ('../inc/global.inc.php');
 
+$fck_attribute['Width'] = '100%';
+$fck_attribute['Height'] = '200';
+$fck_attribute['ToolbarSet'] = 'Survey';
+
 // including additional libraries
 /** @todo check if these are all needed */
 /** @todo check if the starting / is needed. api_get_path probably ends with an / */
@@ -89,9 +93,9 @@ if ($_GET['action'] == 'edit' AND isset($_GET['survey_id']) AND is_numeric($_GET
 {
 	$form->addElement('hidden', 'survey_id');
 }
-$form->addElement('text', 'survey_code', get_lang('SurveyCode'));
-$form->addElement('text', 'survey_title', get_lang('SurveyTitle'));
-$form->addElement('text', 'survey_subtitle', get_lang('SurveySubTitle'));
+$form->addElement('text', 'survey_code', get_lang('SurveyCode'), 'style="width: 200px;"');
+$form->addElement('text', 'survey_title', get_lang('SurveyTitle'), 'style="width: 350px;"');
+$form->addElement('text', 'survey_subtitle', get_lang('SurveySubTitle'), 'style="width: 350px;"');
 $lang_array = api_get_languages();
 foreach ($lang_array['name'] as $key=>$value)
 {
@@ -144,7 +148,7 @@ if( $form->validate() )
 {
    $values = $form->exportValues();
    $return = survey_manager::store_survey($values);
-   Display::display_confirmation_message($return['message']);
+   Display::display_confirmation_message($return['message'],false);
 }
 else
 {

+ 1 - 1
main/survey/survey.lib.php

@@ -654,7 +654,7 @@ class question
 		if ($_POST['save_question'])
 		{
 			$message = survey_manager::save_question($form_content);
-			Display :: display_confirmation_message($message.'<br />'.get_lang('ReturnTo').' <a href="survey.php?survey_id='.$_GET['survey_id'].'">'.get_lang('Survey').'</a>');
+			Display :: display_confirmation_message($message.'<br />'.get_lang('ReturnTo').' <a href="survey.php?survey_id='.$_GET['survey_id'].'">'.get_lang('Survey').'</a>',false);
 		}
 
 		/**

+ 3 - 3
main/survey/survey.php

@@ -21,7 +21,7 @@
 *	@package dokeos.survey
 * 	@author unknown
 * 	@author Patrick Cool <patrick.cool@UGent.be>, Ghent University: cleanup, refactoring and rewriting large parts of the code
-* 	@version $Id: survey.php 11134 2007-02-16 14:39:59Z pcool $
+* 	@version $Id: survey.php 11349 2007-03-02 15:57:21Z elixir_julian $
 *
 * 	@todo The ansTarget column is not done
 * 	@todo try to understand the white, blue, ... template stuff.
@@ -83,8 +83,8 @@ $survey_actions = '<a href="create_new_survey.php?action=edit&amp;survey_id='.$_
 $survey_actions .= '<a href="survey_list.php?action=delete&amp;survey_id='.$_GET['survey_id'].'">'.Display::return_icon('delete.gif').'</a>';
 $survey_actions .= '<a href="create_survey_in_another_language.php?id_survey='.$_GET['survey_id'].'">'.Display::return_icon('copy.gif').'</a>';
 $survey_actions .= '<a href="preview.php?survey_id='.$_GET['survey_id'].'">'.Display::return_icon('preview.gif').'</a>';
-$survey_actions .= '<a href="survey_invite.php?survey_id='.$_GET['survey_id'].'">'.Display::return_icon('survey_publish.gif').'</a>';
-$survey_actions .= '<a href="reporting.php?survey_id='.$_GET['survey_id'].'">'.Display::return_icon('surveyreporting.gif').'</a>';
+$survey_actions .= '<a href="survey_invite.php?survey_id='.$_GET['survey_id'].'">'.Display::return_icon('send_mail.gif').'</a>';
+$survey_actions .= '<a href="reporting.php?survey_id='.$_GET['survey_id'].'">'.Display::return_icon('statistics.gif').'</a>';
 echo '<div style="float:right;">'.$survey_actions.'</div>';
 
 echo '<a href="question.php?action=add&type=yesno&amp;survey_id='.$_GET['survey_id'].'">'.get_lang('YesNo').'</a> | ';

+ 8 - 4
main/survey/survey_invite.php

@@ -34,6 +34,10 @@ $language_file = 'survey';
 // including the global dokeos file
 require ('../inc/global.inc.php');
 
+$fck_attribute['Width'] = '100%';
+$fck_attribute['Height'] = '200';
+$fck_attribute['ToolbarSet'] = 'Survey';
+
 // including additional libraries
 //require_once (api_get_path(LIBRARY_PATH)."/survey.lib.php");
 require_once('survey.lib.php');
@@ -80,10 +84,10 @@ foreach ($complete_user_list as $index => $user)
 {
 	$possible_users[$user['user_id']] = $user['lastname'].' '.$user['firstname'];
 }
-$users = $form->addElement('advmultiselect', 'course_users', get_lang('CourseUsers'), $possible_users);
+$users = $form->addElement('advmultiselect', 'course_users', get_lang('CourseUsers'), $possible_users, 'style="width: 220px;"');
 $users->setElementTemplate('
 {javascript}
-<table{class}>
+<table{class} width="500">
 <!-- BEGIN label_2 --><tr><th>{label_2}</th><!-- END label_2 -->
 <!-- BEGIN label_3 --><th>&nbsp;</th><th>{label_3}</th></tr><!-- END label_3 -->
 <tr>
@@ -94,11 +98,11 @@ $users->setElementTemplate('
 </table>
 ');
 // additional users
-$form->addElement('textarea', 'additional_users', get_lang('AdditonalUsers'), array ('cols' => 50, 'rows' => 2));
+$form->addElement('textarea', 'additional_users', get_lang('AdditonalUsers'), array ('cols' => 100, 'rows' => 2));
 // additional users comment
 $form->addElement('static', null, null, get_lang('AdditonalUsersComment'));
 // the title of the mail
-$form->addElement('text', 'mail_title', get_lang('MailTitle'));
+$form->addElement('text', 'mail_title', get_lang('MailTitle'), 'style="width: 350px"');
 // the text of the mail
 $form->addElement('html_editor', 'mail_text', get_lang('MailText'));
 // some explanation of the mail

+ 3 - 3
main/survey/survey_list.php

@@ -21,7 +21,7 @@
 *	@package dokeos.survey
 * 	@author unknown, the initial survey that did not make it in 1.8 because of bad code
 * 	@author Patrick Cool <patrick.cool@UGent.be>, Ghent University: cleanup, refactoring and rewriting large parts of the code
-* 	@version $Id: survey_list.php 11134 2007-02-16 14:39:59Z pcool $
+* 	@version $Id: survey_list.php 11349 2007-03-02 15:57:21Z elixir_julian $
 *
 * 	@todo The invite column is not done
 * 	@todo try to understand the white, blue, ... template stuff.
@@ -292,8 +292,8 @@ function modify_filter($survey_id)
 	//$return .= '<a href="create_survey_in_another_language.php?id_survey='.$survey_id.'">'.Display::return_icon('copy.gif').'</a>';
 	//$return .= '<a href="survey.php?survey_id='.$survey_id.'">'.Display::return_icon('add.gif').'</a>';
 	$return .= '<a href="preview.php?survey_id='.$survey_id.'">'.Display::return_icon('preview.gif').'</a>';
-	$return .= '<a href="survey_invite.php?survey_id='.$survey_id.'">'.Display::return_icon('survey_publish.gif').'</a>';
-	$return .= '<a href="reporting.php?survey_id='.$survey_id.'">'.Display::return_icon('surveyreporting.gif').'</a>';
+	$return .= '<a href="survey_invite.php?survey_id='.$survey_id.'">'.Display::return_icon('send_mail.gif').'</a>';
+	$return .= '<a href="reporting.php?survey_id='.$survey_id.'">'.Display::return_icon('statistics.gif').'</a>';
 	return $return;
 }