if($idt == 0) {
$this->query("select max(ordernum) as maxnum from $this->tbl_name");
$maxnum = $this->fields->maxnum;
$this->query("update $this->tbl_name set root_id=0, deep=0, ordernum=ordernum+$maxnum where id=$ids");
$this->query("update $this->tbl_name set root_id=$ids, deep=deep-$this->deep, ordernum=ordernum+$maxnum where id in ($idlist)");
return;
}
if($idt == 0) {
$this->query("select max(ordernum) as maxnum from $this->tbl_name");
$maxnum = $this->fields->maxnum;
$this->query("update $this->tbl_name set root_id=0, deep=0, ordernum=ordernum+$maxnum where id=$ids");
$this->query("update $this->tbl_name set root_id=$ids, deep=deep-$this->deep, ordernum=ordernum+$maxnum where id in ($idlist)");
return;
}