index 7e9dab75d31f875f6353bd3f48238b0a67261f88..bd5c1fb3b7ec890f60b1e3943a0426ed6dfbbf4c 100644 (file)
require "tabsProfile.inc";
require "tabsPackage.inc";
require "tabsProfile.inc";
require "tabsPackage.inc";
+
class faiManagement extends plugin
{
/* Definitions */
class faiManagement extends plugin
{
/* Definitions */
$name = $this->dialog->save();
$this->dialog = new $a_setup[0]($this->config,
$name = $this->dialog->save();
$this->dialog = new $a_setup[0]($this->config,
- $this->config->data['TABS'][$a_setup[2]],$this->dn);
+ $this->config->data['TABS'][$a_setup[2]],$this->dn,$name);
$this->dialog->by_object[$a_setup[1]]->cn = $name;
$this->is_dialog = true;
}
$this->dialog->by_object[$a_setup[1]]->cn = $name;
$this->is_dialog = true;
}
* Assign all reguired vars to template engine
*/
* Assign all reguired vars to template engine
*/
+ /* Prepare departments */
+ $options= "";
+ foreach ($this->config->idepartments as $key => $value){
+ if ($faifilter['base'] == $key){
+ $options.= "<option selected value='$key'>$value</option>";
+ } else {
+ $options.= "<option value='$key'>$value</option>";
+ }
+ }
+
/* Create listhead, it will be shown on top of the divlist.
* It provides general navigation and object creation
*/
/* Create listhead, it will be shown on top of the divlist.
* It provides general navigation and object creation
*/
" <input type='image' src='images/fai_new_packages.png' align='middle'
title='"._("New package list")."' name='Create_package' alt='"._("PK")."'> ".
" <input type='image' src='images/fai_new_packages.png' align='middle'
title='"._("New package list")."' name='Create_package' alt='"._("PK")."'> ".
+
+ " <img src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ".
+
+ _("Current base")." <select name='base' onChange='mainform.submit()'>$options</select>".
+ " <input type='image' src='images/list_submit.png' align='middle' title='"._("Submit department")."' name='submit_department' alt='"._("Submit")."'> ".
"</div>";
"</div>";
array("string" => " "),
array("string" => _("Name of FAI class")),
array("string" => _("Class type")),
array("string" => " "),
array("string" => _("Name of FAI class")),
array("string" => _("Class type")),
- array("string" => _("Actions"), "attach"=>"style='border:none;width:40px;'")));
+ array("string" => _("Actions"), "attach"=>"style='border-right:none;width:40px;'")));
$action = "<input type='image' src='images/edit.png' alt='"._("edit")."' name='entry_edit_%KEY%' title='"._("Edit class")."'>";
$action = "<input type='image' src='images/edit.png' alt='"._("edit")."' name='entry_edit_%KEY%' title='"._("Edit class")."'>";
$field0 = array("string" => "<img src='images/".$non_empty."folder.png' title='"._("department")."' alt='department'>", "attach"=>"style='width:20px;'");
$field1 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "title='".$title."'");
$field2 = array("string" => "");
$field0 = array("string" => "<img src='images/".$non_empty."folder.png' title='"._("department")."' alt='department'>", "attach"=>"style='width:20px;'");
$field1 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "title='".$title."'");
$field2 = array("string" => "");
- $field3 = array("string" => "","attach"=>"style='text-align:right'");
+ $field3 = array("string" => "","attach"=>"style='text-align:right;border-right:none;'");
$divlist->AddEntry( array($field0,$field1,$field2,$field3));
$divlist->AddEntry( array($field0,$field1,$field2,$field3));
if(!$faifilter['ShowScripts']){
$abort = true;
}
if(!$faifilter['ShowScripts']){
$abort = true;
}
- $img="<img src='images/fai_script' title='"._("Scripts")."' alt='S'>";
+ $img="<img src='images/fai_script.png' title='"._("Scripts")."' alt='S'>";
$info = _("Scripts");
break;
case "FAIvariable" :
$info = _("Scripts");
break;
case "FAIvariable" :
$info = _("Templates");
break;
default :
$info = _("Templates");
break;
default :
- $img="<img src='images/empty.png' >";$info = "";break;
+ $img="<img src='images/empty.png' alt=''>";$info = "";break;
}
}
}
ksort($this->objects);
reset ($this->objects);
}
ksort($this->objects);
reset ($this->objects);
+
+ /* use numeric index, thats a bit more secure */
+ $tmp0 = array();
+ foreach($this->objects as $obj){
+ $tmp0[]= $obj;
+ }
+ $this->objects = array();
+ $this->objects = $tmp0;
+
}
function remove_lock()
}
function remove_lock()