index 19273b569f8d60e8884b325e59cc4cc571bf3253..f8d4c6b8b20e235aa37634cbe0f68f9f77b5d3e1 100644 (file)
}
foreach($this->sub64coded as $codeIt){
}
foreach($this->sub64coded as $codeIt){
- $this->SubObjects[$object['cn'][0]][$codeIt]=base64_decode($this->SubObjects[$object['cn'][0]][$codeIt]);
+ $this->SubObjects[$object['cn'][0]][$codeIt]= base64_decode($this->SubObjects[$object['cn'][0]][$codeIt]);
}
}
- $this->SubObjects[$object['cn'][0]]['FAItemplateFile'] =addslashes( $this->readBinary("FAItemplateFile",$object['dn']));
+ $this->SubObjects[$object['cn'][0]]['FAItemplateFile']= $this->readBinary("FAItemplateFile",$object['dn']);
- $this->SubObjects[$object['cn'][0]]['status'] = "edited";
- $this->SubObjects[$object['cn'][0]]['dn'] = $object['dn'];
+ $this->SubObjects[$object['cn'][0]]['status']= "edited";
+ $this->SubObjects[$object['cn'][0]]['dn']= $object['dn'];
}
}
+ ksort($this->SubObjects);
}
}
function execute()
{
}
}
function execute()
{
+ /* Call parent execute */
+ plugin::execute();
+
/* Fill templating stuff */
$smarty= get_smarty();
$display= "";
/* Fill templating stuff */
$smarty= get_smarty();
$display= "";
$this->is_dialog=true;
}
$this->is_dialog=true;
}
- $_SESSION['objectinfo'] = $this->dn;
+ if($this->dn != "new"){
+ $_SESSION['objectinfo']= $this->dn;
+ }
+
+
/* Edit selected Sub Object */
if((isset($_POST['EditSubObject']))&&(isset($_POST['SubObject']))){
$this->dialog= new $this->subClassName($this->config,$this->dn,$this->SubObjects[$_POST['SubObject']]);
/* Edit selected Sub Object */
if((isset($_POST['EditSubObject']))&&(isset($_POST['SubObject']))){
$this->dialog= new $this->subClassName($this->config,$this->dn,$this->SubObjects[$_POST['SubObject']]);
$this->is_dialog=false;
unset($this->dialog);
$this->dialog=NULL;
$this->is_dialog=false;
unset($this->dialog);
$this->dialog=NULL;
+ ksort($this->SubObjects);
}
}
}
}
$a_return=array();
foreach($this->SubObjects as $obj){
if($obj['status'] != "delete"){
$a_return=array();
foreach($this->SubObjects as $obj){
if($obj['status'] != "delete"){
+
if((isset($obj['description']))&&(!empty($obj['description']))){
if((isset($obj['description']))&&(!empty($obj['description']))){
+ if(strlen($obj['description']) > 60){
+ $obj['description'] = substr($obj['description'],0,60)."...";
+ }
$a_return[$obj['cn']]= $obj['cn']." [".$obj['description']."]";
}else{
$a_return[$obj['cn']]= $obj['cn'];
$a_return[$obj['cn']]= $obj['cn']." [".$obj['description']."]";
}else{
$a_return[$obj['cn']]= $obj['cn'];