ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 */
3 require_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){
38  $this->staff = $array[$this->searchPostVar()."_role"];
39  }
40 
41  public function getStaff(){
42  return $this->staff;
43  }
44 }
45 ?>