修改step_main.php查找:
代码如下 | |
1.else if ($issign == 2 && $topvalue != 0) |
替换为:
代码如下 | |
1.else if ($issign == 2 && $topvalue%500!= 0) |
调用三级分类的代码
下面把方法分享给大家代码如下:
代码如下 | |
{dede:field.typeid runphp='yes'}$ID = @me; $sql = "SELECT * FROM `dede_arctype` WHERE id=$ID";$query = mysql_query($sql);$row=mysql_fetch_array($query); $relID = "$row[reid]"; if($relID == 0) {@me = $row[typename];}else{$sql = "SELECT `typename` FROM `dede_arctype` WHERE id=$relID";$query = mysql_query($sql);$row=mysql_fetch_array($query); @me = $row[typename];}{/dede:field.typeid} |