create_new_survey.php 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. <?php
  2. // $Id: course_add.php,v 1.10 2005/05/30 11:46:48 bmol Exp $
  3. /*
  4. ==============================================================================
  5. Dokeos - elearning and course management software
  6. Copyright (c) 2004 Dokeos S.A.
  7. Copyright (c) 2003 University of Ghent (UGent)
  8. Copyright (c) 2001 Universite catholique de Louvain (UCL)
  9. Copyright (c) Olivier Brouckaert
  10. For a full list of contributors, see "credits.txt".
  11. The full license can be read in "license.txt".
  12. This program is free software; you can redistribute it and/or
  13. modify it under the terms of the GNU General Public License
  14. as published by the Free Software Foundation; either version 2
  15. of the License, or (at your option) any later version.
  16. See the GNU General Public License for more details.
  17. Contact: Dokeos, 181 rue Royale, B-1000 Brussels, Belgium, info@dokeos.com
  18. ==============================================================================
  19. */
  20. /**
  21. ==============================================================================
  22. * @package dokeos.admin
  23. ==============================================================================
  24. */
  25. /*
  26. ==============================================================================
  27. INIT SECTION
  28. ==============================================================================
  29. */
  30. $langFile = 'survey';
  31. require_once ('../inc/global.inc.php');
  32. //api_protect_admin_script();
  33. require_once (api_get_path(LIBRARY_PATH).'/fileManage.lib.php');
  34. require_once (api_get_path(CONFIGURATION_PATH) ."/add_course.conf.php");
  35. require_once (api_get_path(LIBRARY_PATH)."/add_course.lib.inc.php");
  36. require_once (api_get_path(LIBRARY_PATH)."/course.lib.php");
  37. require (api_get_path(LIBRARY_PATH)."/groupmanager.lib.php");
  38. require_once (api_get_path(LIBRARY_PATH)."/surveymanager.lib.php");
  39. $status = surveymanager::get_status();
  40. if($status==5)
  41. {
  42. api_protect_admin_script();
  43. }
  44. require_once (api_get_path(LIBRARY_PATH)."/usermanager.lib.php");
  45. $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"));
  46. $arr_date = explode("-",date("Y-m-d"));
  47. $curr_year = $arr_date[0];
  48. $curr_month = $arr_date[1];
  49. $curr_day = $arr_date[2];
  50. $coursePathWeb = api_get_path(WEB_COURSE_PATH);
  51. $coursePathSys = api_get_path(SYS_COURSE_PATH);
  52. $table_user = Database :: get_main_table(MAIN_USER_TABLE);
  53. //$cidReq = $_SESSION[_course][id];
  54. $cidReq = $_GET['cidReq'];
  55. $table_course = Database :: get_main_table(MAIN_COURSE_TABLE);
  56. $table_survey = Database :: get_course_table('survey');
  57. $table_group = Database :: get_course_table('survey_group');
  58. $table_course_survey_rel = Database :: get_main_table(MAIN_COURSE_SURVEY_TABLE);
  59. $tool_name = get_lang('CreateNewSurvey');
  60. $tool_name1 = get_lang('Newsurvey');
  61. $page = $_REQUEST['page'];
  62. $interbredcrump[] = array ("url" => "survey_list.php", "name" => get_lang('Survey'));
  63. $course_id = $_SESSION['_course']['id'];
  64. $todate=date('j');
  65. if($surveyid = $_REQUEST['surveyid'])
  66. {
  67. if ($_POST['action'] == 'update_survey')
  68. {
  69. $cidReq=$_GET['cidReq'];
  70. $surveyid=$_REQUEST['surveyid'];
  71. $surveycode=$_POST['survey_code'];
  72. $surveytitle = $_POST['survey_title'];
  73. $surveysubtitle = $_POST['survey_subtitle'];
  74. $author = $_POST['author'];
  75. $survey_language = $_POST['survey_language'];
  76. $availablefrom = $_POST['fyear']."-".$_POST['fmonth']."-".$_POST['fday'];
  77. $availabletill = $_POST['end_fyear']."-".$_POST['end_fmonth']."-".$_POST['end_fday'];
  78. $isshare = $_POST['isshare'];
  79. $surveytemplate = $_POST['template'];
  80. $surveyintroduction = $_POST['content'];
  81. $surveythanks = $_POST['thanks'];
  82. $savailablefrom=mktime(0,0,0,$_POST['fmonth'],$_POST['fday'], $_POST['fyear']);
  83. $savailabletill=mktime(0,0,0,$_POST['end_fmonth'],$_POST['end_fday'], $_POST['end_fyear']);
  84. if(empty ($surveytitle))
  85. {
  86. $error_message = get_lang('PleaseEnterSurveyTitle');
  87. }
  88. elseif ($savailabletill<=$savailablefrom){
  89. $error_message = get_lang('PleaseEnterValidDate');
  90. }
  91. elseif (empty ($surveycode)){
  92. $error_message = get_lang('PleaseEnterValidCode');
  93. }
  94. else
  95. {
  96. $cidReq = $_GET['cidReq'];
  97. $table_survey = Database :: get_course_table('survey'); $curr_dbname=SurveyManager::update_survey($surveyid,$surveycode,$surveytitle,$surveysubtitle,$author,$survey_language,$availablefrom,$availabletill,$isshare,$surveytemplate,$surveyintroduction,$surveythanks,$cidReq,$table_course);
  98. if(isset($_POST['next']))
  99. header("location:select_question_group.php?surveyid=$surveyid&cidReq=$cidReq&curr_dbname=$curr_dbname");
  100. else
  101. header("location:survey_list.php?cidReq=$cidReq");
  102. exit;
  103. }
  104. }
  105. Display::display_header($tool_name);
  106. api_display_tool_title($tool_name);
  107. if( isset($error_message) )
  108. {
  109. Display::display_error_message($error_message);
  110. }
  111. ?>
  112. <SCRIPT LANGUAGE="JavaScript">
  113. <!-- Begin
  114. function displayTemplate(form) {
  115. var inf = form.template.value;
  116. if(inf=="")
  117. {
  118. alert("Please Select a Template");
  119. }
  120. else
  121. {
  122. window.open(inf+".htm", 'popup', 'width=600,height=600,toolbar = no, status = no');
  123. }
  124. //window.open(inf+".htm");
  125. //win.document.write("" + inf + "");
  126. }
  127. // End -->
  128. </script>
  129. <script src=tbl_change.js type="text/javascript" language="javascript"></script>
  130. <?php
  131. $sql = "select * from $table_survey where survey_id='$surveyid'";
  132. $res = api_sql_query($sql);
  133. $obj = mysql_fetch_object($res);
  134. $arr_avail_from = explode("-",$obj->avail_from);
  135. $avail_year_from = $arr_avail_from['0'];
  136. $avail_month_from = $arr_avail_from['1'];
  137. $avail_day_from = $arr_avail_from['2'];
  138. $arr_avail_till = explode("-",$obj->avail_till);
  139. $avail_year_till = $arr_avail_till['0'];
  140. $avail_month_till = $arr_avail_till['1'];
  141. $avail_day_till = $arr_avail_till['2'];
  142. $template = $obj->template;
  143. ?>
  144. <form name="new_calendar_item" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>">
  145. <input type="hidden" name="surveyid" value="<?=$surveyid?>">
  146. <input type="hidden" name="action" value="update_survey">
  147. <table>
  148. <tr>
  149. <td><?php echo get_lang('surveycode'); ?></td>
  150. <td><input type="text" name="survey_code" size="20" maxlength="19" value="<?php echo $obj->code; ?>"></td>
  151. </tr>
  152. <tr>
  153. <td><?php echo get_lang('surveytitle'); ?></td>
  154. <td><input type="text" name="survey_title" size="40" maxlength="79" value="<?php echo $obj->title ?>"></td>
  155. </tr>
  156. <tr>
  157. <td><?php echo get_lang('surveysubtitle'); ?></td>
  158. <td><input type="text" name="survey_subtitle" size="40" maxlength="79" value="<?php echo $obj->subtitle ?>"></td>
  159. </tr>
  160. <tr>
  161. <td><?php echo get_lang('author'); ?></td>
  162. <td>
  163. <?php
  164. UserManager::get_teacher_list($cidReq,$obj->author);
  165. ?>
  166. </td>
  167. </tr>
  168. <tr>
  169. <td><?php echo get_lang('surveylanguage'); ?>&nbsp;</td>
  170. <td>
  171. <select name="survey_language">
  172. <option value="english" selected="selected">English</option>
  173. <option value="french" >Fran&ccedil;ais</option>
  174. <option value="dutch" >Nederlands</option>
  175. </select>
  176. </td>
  177. </tr>
  178. <tr id="subtitle">
  179. <td><?php echo get_lang('availablefrom'); ?>&nbsp;</td>
  180. <td>
  181. <select name="fday">
  182. <?
  183. for($i=$todate;$i<=31;$i++){
  184. if($i<=9)
  185. $val = "0".$i;
  186. else
  187. $val = $i;
  188. if($val==$avail_day_from) $selected="selected";
  189. else $selected="";
  190. echo "<option value=\"$val\" $selected>$i</option>\n";
  191. }
  192. ?>
  193. </select>
  194. <!-- month: january ->
  195. december -->
  196. <select name="fmonth">
  197. <?
  198. for($i=1;$i<count($MonthsLong);$i++)
  199. {
  200. if($i<=9)
  201. $val = "0".$i;
  202. else
  203. $val = $i;
  204. if($val == $avail_month_from)
  205. echo "<option value=\"$val\" selected>".$MonthsLong[$i-1]."</option>\n";
  206. else
  207. echo "<option value=\"$val\">".$MonthsLong[$i-1]."</option>\n";
  208. }
  209. ?>
  210. </select>
  211. <select name="fyear">
  212. <?
  213. for($i=$curr_year;$i<=$curr_year+10;$i++){
  214. if($i == $avail_year_from)
  215. echo "<option value=\"$i\" selected>$i</option>\n";
  216. else
  217. echo "<option value=\"$i\">$i</option>\n";
  218. }
  219. ?>
  220. </select>
  221. <a title="Calendar" href="javascript:openCalendar('new_calendar_item', 'f')"><img src="../img/calendar_select.gif" border="0" align="absmiddle"/></a></td>
  222. </tr>
  223. <tr id="subtitle">
  224. <td><?php echo get_lang('availabletill'); ?>&nbsp;</td>
  225. <td>
  226. <select name="end_fday">
  227. <? for($i=1;$i<=31;$i++){
  228. if($i<=9)
  229. $val = "0".$i;
  230. else
  231. $val = $i;
  232. if($val==$avail_day_till) $selected="selected";
  233. else $selected="";
  234. echo "<option value=\"$val\" $selected>$i</option>\n";
  235. }
  236. ?>
  237. </select>
  238. <!-- month: january ->
  239. december -->
  240. <select name="end_fmonth">
  241. <?
  242. for($i=1;$i<count($MonthsLong);$i++)
  243. {
  244. if($i<=9)
  245. $val = "0".$i;
  246. else
  247. $val = $i;
  248. if($val == $avail_month_till)
  249. echo "<option value=\"$val\" selected>".$MonthsLong[$i-1]."</option>\n";
  250. else
  251. echo "<option value=\"$val\">".$MonthsLong[$i-1]."</option>\n";
  252. }
  253. ?>
  254. </select>
  255. <select name="end_fyear">
  256. <?
  257. for($i=$curr_year;$i<=$curr_year+10;$i++){
  258. if($i == $avail_year_till)
  259. echo "<option value=\"$i\" selected>$i</option>\n";
  260. else
  261. echo "<option value=\"$i\">$i</option>\n";
  262. }
  263. ?>
  264. </select>
  265. <a title="Calendar" href="javascript:openCalendar('new_calendar_item', 'end_f')"><img src="../img/calendar_select.gif" border="0" align="absmiddle"/></a></td>
  266. </tr>
  267. <tr>
  268. <td valign="top"><?php echo get_lang('IsShareSurvey'); ?>&nbsp;</td>
  269. <td>
  270. <input type="radio" name="isshare" value="1" <? if($obj->is_shared=='1') echo "checked";?>>Yes&nbsp;<input type="radio" name="isshare" value="0" <? if($obj->is_shared=='0') echo "checked";?>>No
  271. </td>
  272. </tr>
  273. <tr><td valign="top"><?php echo get_lang('surveyintroduction'); ?>&nbsp;</td>
  274. <td>
  275. <?php
  276. api_disp_html_area('content',$obj->intro,'300px');
  277. ?>
  278. <br>
  279. </td>
  280. </tr>
  281. <tr><td valign="top"><?php echo get_lang('Thanks'); ?>&nbsp;</td>
  282. <td>
  283. <?php
  284. api_disp_html_area('thanks',$obj->surveythanks,'200px');
  285. ?>
  286. <br>
  287. </td>
  288. </tr>
  289. </table>
  290. <tr>
  291. <td>&nbsp;</td>
  292. <td><input type="submit" name="updateandreturn" value="<?php echo get_lang('saveandexit'); ?>"></td>
  293. <td><input type="submit" name="next" value="<?php echo get_lang('next'); ?>"></td>
  294. </tr>
  295. </table>
  296. </form>
  297. </table>
  298. <?php
  299. }
  300. else
  301. {
  302. if($_POST['back'])
  303. {
  304. $cidReq=$_GET['cidReq'];
  305. header("location:survey.php?cidReq=$cidReq");
  306. exit;
  307. }
  308. if ($_POST['action'] == 'add_survey')
  309. {
  310. $surveycode=$_POST['survey_code'];
  311. $surveytitle = $_POST['survey_title'];
  312. $surveysubtitle = $_POST['survey_subtitle'];
  313. //$cidReq = $dbNamePrefix.$_POST['cidReq'];
  314. $author = $_POST['author'];
  315. $survey_language = $_POST['survey_language'];
  316. $availablefrom = $_POST['fyear']."-".$_POST['fmonth']."-".$_POST['fday'];
  317. $availabletill = $_POST['end_fyear']."-".$_POST['end_fmonth']."-".$_POST['end_fday'];
  318. $isshare = $_POST['isshare'];
  319. $surveytemplate = $_POST['template'];
  320. $surveyintroduction = $_POST['content'];
  321. $surveythanks = $_POST['thanks'];
  322. $savailablefrom=mktime(0,0,0,$_POST['fmonth'],$_POST['fday'], $_POST['fyear']);
  323. $savailabletill=mktime(0,0,0,$_POST['end_fmonth'],$_POST['end_fday'], $_POST['end_fyear']);
  324. $surveytitle=trim($surveytitle);
  325. $surveycode=trim($surveycode);
  326. if(empty ($surveytitle))
  327. {
  328. $error_message = get_lang('PleaseEnterSurveyTitle');
  329. }
  330. elseif ($savailabletill<=$savailablefrom){
  331. $error_message = get_lang('PleaseEnterValidDate');
  332. }
  333. elseif (empty ($surveycode)){
  334. $error_message = get_lang('PleaseEnterValidCode');
  335. }
  336. /*
  337. elseif (empty ($surveytemplate)){
  338. $error_message = get_lang('PleaseSelectATemplate');
  339. }
  340. */
  341. else
  342. {
  343. $result=SurveyManager::get_survey_code($table_survey,$surveycode);
  344. if(!empty($result))
  345. {
  346. $error_message=get_lang('thiscodealradyexist');
  347. }
  348. else
  349. {
  350. $survey_id = SurveyManager::create_survey($surveycode, $surveytitle, $surveysubtitle, $author, $survey_language, $availablefrom, $availabletill, $isshare, $surveytemplate, $surveyintroduction, $surveythanks, $table_survey, $table_group);
  351. $cidReq=$_GET['cidReq'];
  352. $curr_dbname=SurveyManager::create_course_survey_rel($cidReq,$survey_id,$table_course,$table_course_survey_rel);
  353. if (isset($_POST['next']))
  354. {
  355. $cidReq=$_GET['cidReq'];
  356. $page = $_REQUEST['page']; header("location:select_question_group.php?surveyid=$survey_id&cidReq=$cidReq&curr_dbname=$curr_dbname&page=$page");
  357. exit;
  358. }
  359. else
  360. {
  361. $cidReq=$_GET['cidReq'];
  362. header("location:survey_list.php?&cidReq=$cidReq");
  363. exit;
  364. }
  365. }
  366. }
  367. }
  368. Display::display_header($tool_name);
  369. api_display_tool_title($tool_name1);
  370. //echo "<pre>";
  371. //print_r($_SESSION);
  372. //echo "</pre>";
  373. if( isset($error_message) )
  374. {
  375. Display::display_error_message($error_message);
  376. }
  377. ?>
  378. <SCRIPT LANGUAGE="JavaScript">
  379. <!-- Begin
  380. function displayTemplate(form) {
  381. var inf = form.template.value;
  382. if(inf=="")
  383. {
  384. alert("Please Select a Template");
  385. }
  386. else
  387. {
  388. window.open(inf+".htm", 'popup', 'width=600,height=600,toolbar = no, status = no');
  389. }
  390. //window.open(inf+".htm");
  391. //win.document.write("" + inf + "");
  392. }
  393. // End -->
  394. </script>
  395. <script src=tbl_change.js type="text/javascript" language="javascript"></script>
  396. <form name="new_calendar_item" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>?cidReq=<?=$cidReq?>">
  397. <input type="hidden" name="action" value="add_survey">
  398. <input type="hidden" name="page" value="<?=$page?>">
  399. <!--<input type="hidden" name="cidReq" value="<?=$cidReq?>">-->
  400. <table>
  401. <tr>
  402. <td><?php echo get_lang('surveycode'); ?></td>
  403. <td><input type="text" name="survey_code" size="20" value="<?php echo $surveycode; ?>" maxlength="19"></td>
  404. </tr>
  405. <tr>
  406. <td><?php echo get_lang('surveytitle'); ?></td>
  407. <td><input name="survey_title" type="text" value="<?php echo $surveytitle ?>" size="40" maxlength="79"></td>
  408. </tr>
  409. <tr>
  410. <td><?php echo get_lang('surveysubtitle'); ?></td>
  411. <td><input name="survey_subtitle" type="text" value="<?php echo $surveysubtitle ?>" size="40" maxlength="79"></td>
  412. </tr>
  413. <tr>
  414. <?php
  415. if($_SESSION['is_platformAdmin']=='1'||$_SESSION['is_courseAdmin'])
  416. {
  417. echo "<td>";
  418. echo get_lang('author');
  419. echo "</td>";
  420. echo "<td>";
  421. UserManager::get_teacher_list($course_id, $author_id);
  422. echo "</td>";
  423. }
  424. ?>
  425. </tr>
  426. <tr>
  427. <td><?php echo get_lang('surveylanguage'); ?>&nbsp;</td>
  428. <td>
  429. <select name="survey_language">
  430. <option value="english" selected="selected">English</option>
  431. <option value="french" >Fran&ccedil;ais</option>
  432. <option value="dutch" >Nederlands</option>
  433. </select>
  434. </td>
  435. </tr>
  436. <tr id="subtitle">
  437. <td><?php echo get_lang('availablefrom'); ?>&nbsp;</td>
  438. <td>
  439. <select name="fday">
  440. <?
  441. for($i=1;$i<=31;$i++){
  442. if($i<=9) $val = "0".$i;
  443. else $val = $i;
  444. if ($val==$curr_day) $selected = "selected";
  445. else $selected = "";
  446. echo "<option value=\"$val\" $selected>$i</option>";
  447. }
  448. ?>
  449. </select>
  450. <!-- month: january ->
  451. december -->
  452. <select name="fmonth">
  453. <?
  454. for($i=1;$i<count($MonthsLong);$i++)
  455. {
  456. if($i<=9)
  457. $val = "0".$i;
  458. else
  459. $val = $i;
  460. if($val == $curr_month)
  461. echo "<option value=\"$val\" selected>".$MonthsLong[$i-1]."</option>\n";
  462. else
  463. echo "<option value=\"$val\">".$MonthsLong[$i-1]."</option>\n";
  464. }
  465. ?>
  466. </select>
  467. <select name="fyear">
  468. <?
  469. for($i=$curr_year;$i<=$curr_year+10;$i++){
  470. if($i == $curr_year)
  471. echo "<option value=\"$i\" selected>$i</option>\n";
  472. else
  473. echo "<option value=\"$i\">$i</option>\n";
  474. }
  475. ?>
  476. </select>
  477. <a title="Calendar" href="javascript:openCalendar('new_calendar_item', 'f')"><img src="../img/calendar_select.gif" border="0" align="absmiddle"/></a></td>
  478. </tr>
  479. <tr id="subtitle">
  480. <td><?php echo get_lang('availabletill'); ?>&nbsp;</td>
  481. <td>
  482. <select name="end_fday">
  483. <? for($i=1;$i<=31;$i++){
  484. if($i<=9)
  485. $val = "0".$i;
  486. else
  487. $val = $i;
  488. if ($val==$curr_day) $selected = "selected";
  489. else $selected = "";
  490. echo "<option value=\"$val\" $selected>$i</option>";
  491. }
  492. ?>
  493. </select>
  494. <!-- month: january ->
  495. december -->
  496. <select name="end_fmonth">
  497. <?
  498. for($i=1;$i<count($MonthsLong);$i++)
  499. {
  500. if($i<=9)
  501. $val = "0".$i;
  502. else
  503. $val = $i;
  504. if($val == $curr_month)
  505. echo "<option value=\"$val\" selected>".$MonthsLong[$i-1]."</option>\n";
  506. else
  507. echo "<option value=\"$val\">".$MonthsLong[$i-1]."</option>\n";
  508. }
  509. ?>
  510. </select>
  511. <select name="end_fyear">
  512. <?
  513. for($i=$curr_year;$i<=$curr_year+10;$i++){
  514. if($i == $curr_year+1)
  515. echo "<option value=\"$i\" selected>$i</option>\n";
  516. else
  517. echo "<option value=\"$i\">$i</option>\n";
  518. }
  519. ?>
  520. </select>
  521. <a title="Calendar" href="javascript:openCalendar('new_calendar_item', 'end_f')"><img src="../img/calendar_select.gif" border="0" align="absmiddle"/></a></td>
  522. </tr>
  523. <tr>
  524. <td valign="top"><?php echo get_lang('IsShareSurvey'); ?>&nbsp;</td>
  525. <td>
  526. <input type="radio" name="isshare" value="1">Yes&nbsp;<input type="radio" name="isshare" value="0" checked>No
  527. </td>
  528. </tr>
  529. <tr><td valign="top"><?php echo get_lang('surveyintroduction'); ?>&nbsp;</td>
  530. <td>
  531. <?php
  532. api_disp_html_area('content',$content,'300px');
  533. /*$oFCKeditor = new FCKeditor('content') ;
  534. $oFCKeditor->BasePath = 'FCKeditor/';
  535. $oFCKeditor->Value = 'Enter your introduction text here';
  536. $oFCKeditor->Width = '600' ;
  537. $oFCKeditor->Height = '400' ;
  538. $oFCKeditor->Create();
  539. */
  540. ?>
  541. <br>
  542. </td>
  543. </tr>
  544. <tr><td valign="top"><?php echo get_lang('Thanks'); ?>&nbsp;</td>
  545. <td>
  546. <?php
  547. api_disp_html_area('thanks',$thanks,'200px');
  548. ?>
  549. <br>
  550. </td>
  551. </tr>
  552. </table>
  553. <tr>
  554. <td>&nbsp;</td>
  555. <td><input type="submit" name="back" value="<?php echo get_lang('back'); ?>"></td>
  556. <td><input type="submit" name="saveandexit" value="<?php echo get_lang('createlater'); ?>"></td>
  557. <td><input type="submit" name="next" value="<?php echo get_lang('next'); ?>"></td>
  558. </tr>
  559. </table>
  560. </form>
  561. </table>
  562. <?php
  563. }
  564. Display :: display_footer();
  565. ?>