让dedecms联动模型支持dede_sys_enum的father字段自动追加(2)

    $dsql->ExecuteNoneQuery("INSERT INTO `zuimoban_stepselect`(`itemname`,`egroup`,`issign`,`issystem`) VALUES('$itemname','$egroup','0','0'); ");  

    WriteEnumsCache($egroup);  

    ShowMsg("成功添加一个分类!","stepselect_main.php?egroup=$egroup");  

    exit();  

}  

/*--------- 

把旧版全国省市表替换当前地区数据 

function __exarea() { } 

----------*/  

else if($action=='exarea')  

{  

    $bigtypes = array();  

    $dsql->ExecuteNoneQuery("DELETE FROM `zuimoban_sys_enum` WHERE egroup='nativeplace'; ");  

    $query = "SELECT * FROM `zuimoban_area` WHERE reid =0 order by id asc";  

    $dsql->Execute('me', $query);  

    $n = 1;  

    while($row = $dsql->GetArray())  

    {  

        $bigtypes[$row['id']] = $evalue = $disorder = $n * 500;  

        $dsql->ExecuteNoneQuery("INSERT INTO `zuimoban_sys_enum`(`ename`,`evalue`,`egroup`,`disorder`,`issign`)  

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/628c007e106d7a84a667ccc7079b7114.html