From e2f4a33fc88d469f50819a7fba2f5f6cb42824af Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Fri, 22 Feb 2013 14:40:09 +1100 Subject: [PATCH] Allow for questionnaire editing of self completion functions --- admin/questionnairelist.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/admin/questionnairelist.php b/admin/questionnairelist.php index 2ef8c271..005e5062 100644 --- a/admin/questionnairelist.php +++ b/admin/questionnairelist.php @@ -166,6 +166,12 @@ if (isset($_GET['modify'])) $testing = $rws = $ras = $rsc = "checked=\"checked\""; $rscd = ""; + $aio = $qbq = $gat = ""; + if ($rs['lime_mode'] == "survey") $aio = "selected=\"selected\""; + if ($rs['lime_mode'] == "question") $qbq = "selected=\"selected\""; + if ($rs['lime_mode'] == "group") $gat = "selected=\"selected\""; + + if ($rs['restrict_appointments_shifts'] != 1) $ras = ""; if ($rs['restrict_work_shifts'] != 1) $rws = ""; if ($rs['testing'] != 1) $testing = ""; @@ -186,20 +192,23 @@ if (isset($_GET['modify']))

/>

onchange="if(this.checked==true) show(this,'limesc'); else hide(this,'limesc');" />

> -

:

+

:

:

-

:

+

:

editor("rs_intro",$rs['rs_intro'],$ckeditorConfig);?>