47 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
53 $tmp_options[$code] = $lng->txt(
'meta_l_'.$code);
55 asort($tmp_options,SORT_STRING);
57 foreach($prepend as $value => $translation)
59 $options[$value] = $translation;
61 $options = array_merge($options,$tmp_options);
63 return $a_options_only ? $options :
ilUtil::formSelect($a_selected,$a_name,$options,
false,
true);
83 $items = array(
'Atomic',
'Collection',
'Networked',
'Hierarchical',
'Linear');
85 foreach($prepend as $value => $translation)
87 $options[$value] = $translation;
90 foreach($items as $item)
92 $options[$item] = $lng->txt(
'meta_'.strtolower($item));
95 return $a_options_only ? $options :
ilUtil::formSelect($a_selected,$a_name,$options,
false,
true);
114 $items = array(
'Draft',
'Final',
'Revised',
'Unavailable');
116 foreach($prepend as $value => $translation)
118 $options[$value] = $translation;
121 foreach($items as $item)
123 $options[$item] = $lng->txt(
'meta_'.strtolower($item));
126 return $a_options_only ? $options :
ilUtil::formSelect($a_selected,$a_name,$options,
false,
true);
140 function _getRoleSelect($a_selected,$a_name,$prepend = array(),$a_options_only =
false)
145 $items = array(
'Author',
'Publisher',
'Unknown',
'Initiator',
'Terminator',
'Editor',
'GraphicalDesigner',
'TechnicalImplementer',
146 'ContentProvider',
'TechnicalValidator',
'EducationalValidator',
'ScriptWriter',
'InstructionalDesigner',
147 'SubjectMatterExpert',
'Creator',
'Validator',
'PointOfContact');
149 foreach($prepend as $value => $translation)
151 $options[$value] = $translation;
154 foreach($items as $item)
156 $options[$item] = $lng->txt(
'meta_'.strtolower($item));
159 return $a_options_only ? $options :
ilUtil::formSelect($a_selected,$a_name,$options,
false,
true);
178 $items = array(
'PC-DOS',
'MS-Windows',
'MAC-OS',
'Unix',
'Multi-OS',
'None');
180 foreach($prepend as $value => $translation)
182 $options[$value] = $translation;
185 foreach($items as $item)
187 $options[$item] = $item;
190 return $a_options_only ? $options :
ilUtil::formSelect($a_selected,$a_name,$options,
false,
true);
209 $items = array(
'Any',
'NetscapeCommunicator',
'MS-InternetExplorer',
'Opera',
'Amaya',
'Mozilla');
211 foreach($prepend as $value => $translation)
213 $options[$value] = $translation;
216 foreach($items as $item)
218 $options[$item] = $item;
221 return $a_options_only ? $options :
ilUtil::formSelect($a_selected,$a_name,$options,
false,
true);
241 foreach($prepend as $value => $translation)
243 $options[$value] = $translation;
246 $ilDB->setLimit(200,0);
249 $query =
"SELECT format as forma from il_meta_format GROUP BY format";
257 if(strlen(
$row->format))
259 $options[
$row->format] = substr(
$row->format,0,48);
264 return $a_options_only ? $options :
ilUtil::formSelect($a_selected,$a_name,$options,
false,
true);
282 foreach($prepend as $value => $translation)
284 $options[$value] = $translation;
287 $items = array(15 =>
'15 '.$this->lng->txt(
'minutes'),
288 30 =>
'30 '.$this->lng->txt(
'minutes'),
289 45 =>
'45 '.$this->lng->txt(
'minutes'),
290 60 =>
'1 '. $this->lng->txt(
'hour'),
291 90 =>
'1 '. $this->lng->txt(
'hour').
' 30 '.$this->lng->txt(
'minutes'),
292 120 =>
'2 '.$this->lng->txt(
'hours'),
293 180 =>
'3 '.$this->lng->txt(
'hours'),
294 240 =>
'4 '.$this->lng->txt(
'hours'));
296 foreach($items as
$key => $item)
298 $options[
$key] = $item;
318 $items = array(
'Actice',
'Expositive',
'Mixed');
320 foreach($prepend as $value => $translation)
322 $options[$value] = $translation;
325 foreach($items as $item)
327 $options[$item] = $item;
330 return $a_options_only ? $options :
ilUtil::formSelect($a_selected,$a_name,$options,
false,
true);
350 $items = array(
'Exercise',
'Simulation',
'Questionnaire',
'Diagram',
'Figure',
'Graph',
'Index',
351 'Slide',
'Table',
'NarrativeText',
'Exam',
'Experiment',
'ProblemStatement',
'SelfAssessment',
'Lecture');
353 foreach($prepend as $value => $translation)
355 $options[$value] = $translation;
358 foreach($items as $item)
360 $options[$item] = $item;
363 return $a_options_only ? $options :
ilUtil::formSelect($a_selected,$a_name,$options,
false,
true);
381 $items = array(1 =>
'VeryLow',2 =>
'Low',3 =>
'Medium',4 =>
'High',5 =>
'VeryHigh');
383 foreach($prepend as $value => $translation)
385 $options[$value] = $translation;
388 foreach($items as
$key => $item)
390 $options[
$key] = $item;
393 return $a_options_only ? $options :
ilUtil::formSelect($a_selected,$a_name,$options,
false,
true);
413 $items = array(1 =>
'VeryLow',2 =>
'Low',3 =>
'Medium',4 =>
'High',5 =>
'VeryHigh');
415 foreach($prepend as $value => $translation)
417 $options[$value] = $translation;
420 foreach($items as
$key => $item)
422 $options[
$key] = $item;
425 return $a_options_only ? $options :
ilUtil::formSelect($a_selected,$a_name,$options,
false,
true);
445 $items = array(
'Teacher',
'Author',
'Learner',
'Manager');
447 foreach($prepend as $value => $translation)
449 $options[$value] = $translation;
452 foreach($items as $item)
454 $options[$item] = $item;
457 return $a_options_only ? $options :
ilUtil::formSelect($a_selected,$a_name,$options,
false,
true);
476 $items = array(
'School',
'HigherEducation',
'Training',
'Other');
478 foreach($prepend as $value => $translation)
480 $options[$value] = $translation;
483 foreach($items as $item)
485 $options[$item] = $item;
488 return $a_options_only ? $options :
ilUtil::formSelect($a_selected,$a_name,$options,
false,
true);
507 $items = array(
'LocalFile',
'Reference');
509 foreach($prepend as $value => $translation)
511 $options[$value] = $translation;
514 foreach($items as $item)
516 $options[$item] = $item;
536 $items = array(1 =>
'VeryEasy',2 =>
'Easy',3 =>
'Medium',4 =>
'Difficult',5 =>
'VeryDifficult');
538 foreach($prepend as $value => $translation)
540 $options[$value] = $translation;
543 foreach($items as
$key => $item)
545 $options[
$key] = $item;
548 return $a_options_only ? $options :
ilUtil::formSelect($a_selected,$a_name,$options,
false,
true);
566 foreach($prepend as $value => $translation)
568 $options[$value] = $translation;
570 for($i = 1; $i < 100 ; $i++)
574 foreach($items as
$key => $item)
576 $options[
$key] = $item;
595 foreach($prepend as $value => $translation)
597 $options[$value] = $translation;
599 $items = array(15 =>
'15 '.$this->lng->txt(
'minutes'),
600 30 =>
'30 '.$this->lng->txt(
'minutes'),
601 45 =>
'45 '.$this->lng->txt(
'minutes'),
602 60 =>
'1 '. $this->lng->txt(
'hour'),
603 90 =>
'1 '. $this->lng->txt(
'hour').
' 30 '.$this->lng->txt(
'minutes'),
604 120 =>
'2 '.$this->lng->txt(
'hours'),
605 180 =>
'3 '.$this->lng->txt(
'hours'),
606 240 =>
'4 '.$this->lng->txt(
'hours'));
608 foreach($items as
$key => $item)
610 $options[
$key] = $item;
625 function _getCostsSelect($a_selected,$a_name,$prepend = array(), $a_options_only =
false)
630 $items = array(
'Yes',
'No');
632 foreach($prepend as $value => $translation)
634 $options[$value] = $translation;
637 foreach($items as $item)
639 $options[$item] = $item;
642 return $a_options_only ? $options :
ilUtil::formSelect($a_selected,$a_name,$options,
false,
true);
662 $items = array(
'Yes',
'No');
664 foreach($prepend as $value => $translation)
666 $options[$value] = $translation;
669 foreach($items as $item)
671 $options[$item] = $item;
674 return $a_options_only ? $options :
ilUtil::formSelect($a_selected,$a_name,$options,
false,
true);
694 $items = array(
'Discipline',
'Idea',
'Prerequisite',
'EducationalObjective',
'AccessibilityRestrictions',
695 'EducationalLevel',
'SkillLevel',
'SecurityLevel',
'Competency');
697 foreach($prepend as $value => $translation)
699 $options[$value] = $translation;
702 foreach($items as $item)
704 $options[$item] = $item;
707 return $a_options_only ? $options :
ilUtil::formSelect($a_selected,$a_name,$options,
false,
true);