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)
83 $items = array(
'Atomic',
'Collection',
'Networked',
'Hierarchical',
'Linear');
85 foreach($prepend as $value => $translation)
90 foreach($items as $item)
92 $options[$item] = $lng->txt(
'meta_'.strtolower($item));
114 $items = array(
'Draft',
'Final',
'Revised',
'Unavailable');
116 foreach($prepend as $value => $translation)
121 foreach($items as $item)
123 $options[$item] = $lng->txt(
'meta_'.strtolower($item));
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)
154 foreach($items as $item)
156 $options[$item] = $lng->txt(
'meta_'.strtolower($item));
178 $items = array(
'PC-DOS',
'MS-Windows',
'MAC-OS',
'Unix',
'Multi-OS',
'None');
180 foreach($prepend as $value => $translation)
185 foreach($items as $item)
209 $items = array(
'Any',
'NetscapeCommunicator',
'MS-InternetExplorer',
'Opera',
'Amaya',
'Mozilla');
211 foreach($prepend as $value => $translation)
216 foreach($items as $item)
241 foreach($prepend as $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))
282 foreach($prepend as $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)
318 $items = array(
'Actice',
'Expositive',
'Mixed');
320 foreach($prepend as $value => $translation)
325 foreach($items as $item)
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)
358 foreach($items as $item)
381 $items = array(1 =>
'VeryLow',2 =>
'Low',3 =>
'Medium',4 =>
'High',5 =>
'VeryHigh');
383 foreach($prepend as $value => $translation)
388 foreach($items as $key => $item)
413 $items = array(1 =>
'VeryLow',2 =>
'Low',3 =>
'Medium',4 =>
'High',5 =>
'VeryHigh');
415 foreach($prepend as $value => $translation)
420 foreach($items as $key => $item)
445 $items = array(
'Teacher',
'Author',
'Learner',
'Manager');
447 foreach($prepend as $value => $translation)
452 foreach($items as $item)
476 $items = array(
'School',
'HigherEducation',
'Training',
'Other');
478 foreach($prepend as $value => $translation)
483 foreach($items as $item)
507 $items = array(
'LocalFile',
'Reference');
509 foreach($prepend as $value => $translation)
514 foreach($items as $item)
536 $items = array(1 =>
'VeryEasy',2 =>
'Easy',3 =>
'Medium',4 =>
'Difficult',5 =>
'VeryDifficult');
538 foreach($prepend as $value => $translation)
543 foreach($items as $key => $item)
566 foreach($prepend as $value => $translation)
570 for($i = 1; $i < 100 ; $i++)
574 foreach($items as $key => $item)
595 foreach($prepend as $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)
625 function _getCostsSelect($a_selected,$a_name,$prepend = array(), $a_options_only =
false)
630 $items = array(
'Yes',
'No');
632 foreach($prepend as $value => $translation)
637 foreach($items as $item)
662 $items = array(
'Yes',
'No');
664 foreach($prepend as $value => $translation)
669 foreach($items as $item)
694 $items = array(
'Discipline',
'Idea',
'Prerequisite',
'EducationalObjective',
'AccessibilityRestrictions',
695 'EducationalLevel',
'SkillLevel',
'SecurityLevel',
'Competency');
697 foreach($prepend as $value => $translation)
702 foreach($items as $item)