Esempio n. 1
0
 function _initGroupHash()
 {
     if (!isset($this->groupIdByName)) {
         $gf = new GroupFactory();
         $p = array();
         $pl = array();
         $results = $gf->getAllGroups();
         while ($groups_array = db_fetch_array($results)) {
             $p[$groups_array["unix_group_name"]] = $groups_array["group_id"];
             $pl[strtolower($groups_array["unix_group_name"])] = $groups_array["group_id"];
         }
         $this->groupIdByName = $p;
         $this->groupIdByNameLower =& $pl;
     }
 }
Esempio n. 2
0
</script>
</head>
<body class="bg_help">
<center>
<form name="form_selection">
<table border="0" cellspacing="0" cellpadding="5">
  <tr valign="center">
    <td colspan="2" align="center">
<select name="group_id" size="8">
<?php 
$filter = $request->get('filter');
if ($filter == "member") {
    $results = $gf->getMemberGroups();
} else {
    $results = $gf->getAllGroups();
}
$hp = Codendi_HTMLPurifier::instance();
while ($groups_array = db_fetch_array($results)) {
    echo '<option value="' . (int) $groups_array["group_id"] . '">' . $hp->purify(html_entity_decode($groups_array["group_name"])) . '</option>';
}
?>
</select>
    </td>
  </tr>
  <tr>  
    <td><input type="radio" name="radiobutton" value="radiobutton"<?php 
if ($filter == "member") {
    echo " checked";
}
?>