17 require_once SQ_INCLUDE_PATH.
'/asset.inc';
43 return translate(
'core_default_layout_name');
57 trigger_localised_error(
'CORE0123', E_USER_ERROR, __CLASS__, __FUNCTION__);
85 public static function paintInterface(&$owner, &$o, $lookups, $lookup_values, $prefix)
87 $wa = ($owner->writeAccess(
'lookups'));
89 foreach ($lookups as $url) {
91 $o->openSection($url);
93 if (empty($lookup_values[$url])) {
94 $lookup_values[$url] = Array();
99 $lookup_values[$url][
''] = Array(
'value' =>
'',
'inhd' =>
'0');
103 foreach ($lookup_values[$url] as $value_name => $data) {
104 $o->openSection(($value_name ==
'') ?
'New' : $value_name);
106 $o->openField(translate(
'current'));
108 if ($data[
'value'] ==
'') {
109 echo translate(
'none');
112 echo
'<br><b>'.translate(
'inherited_question').
' </b>', $data[
'inhd'];
118 $o->openField(($data[
'value'] ==
'') ? translate(
'change_question') : translate(
'new_question'));
119 echo
''.translate(
'core_value_name').
': ';
120 text_box($prefix.
'['.$url.
']['.$i.
'][value_name]', $value_name, 50);
121 echo
'<br>'.translate(
'value').
': ';
122 text_box($prefix.
'['.$url.
']['.$i.
'][value]', $data[
'value'], 50);