ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilOrguUserPickerToolbarInputGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3require_once("./Modules/OrgUnit/classes/class.ilMultiUserToolbarInputGUI.php");
12
13 protected $staff;
14
15 public function getToolbarHTML()
16 {
17 $html = "<form method='post' class='ilOrguUserPicker' action='".$this->getSubmitLink()."'>";
18 $html .= $this->render();
19 $html .= $this->getSelectHTML();
20 $html .= $this->getSubmitButtonHTML();
21 $html .= "</form>";
22 return $html;
23 }
24
25 protected function getSelectHTML(){
26 global $lng;
27 $html = "
28 <select name='".$this->searchPostVar()."_role"."'>
29 <option value='employee'>".$lng->txt("employee")."</option>
30 <option value='superior'>".$lng->txt("superior")."</option>
31 </select>
32 ";
33 return $html;
34 }
35
36 public function setValueByArray($array){
37 parent::setValueByArray($array);
38 $this->staff = $array[$this->searchPostVar()."_role"];
39 }
40
41 public function getStaff(){
42 return $this->staff;
43 }
44}
45?>
Class ilOrguUserPickerToolbarInputGUI.
$html
Definition: example_001.php:87
global $lng
Definition: privfeed.php:40