POST TIME:2017-10-25 10:29
<tr><td class='bline' height="26" style="padding-left:10px;"><font color='red'>欄目名稱:</font></td><td class='bline'><input name="typename" type="text" id="typename" size="30" value="<?php echo $myrow['typename']?>" class="iptxt" /></td></tr>
<tr><td class='bline' height="26" style="padding-left:10px;">欄目英文名稱:</td><td class='bline'><input name="typenameng" type="text" id="typenameng" size="30" value="<?php echo $myrow['typenameng']?>" class="iptxt" /></td></tr>
$upquery = "UPDATE `#分隔符@__arctype` SETissend='$issend',sortrank='$sortrank',typename='$typename',typenameng='$typenameng',typedir='$typedir',isdefault='$isdefault',defaultname='$defaultname',
{dede:channel type='son' row='10' typeid='1'}<li><a href='[field:typeurl/]'>[field:typename/][field:typenameng/]</a></li>{/dede:channel}
if($type=='top'){$sql = "SELECT id,typename,typenameng,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepathFrom `#分隔符@__arctype` WHERE reid=0 And ishidden<>1 order by sortrank asc limit 0, $line ";}else if($type=='son'){if($typeid==0) return '';$sql = "SELECT id,typename,typenameng,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepathFrom `#分隔符@__arctype` WHERE reid='$typeid' And ishidden<>1 order by sortrank asc limit 0, $line ";}else if($type=='self'){if($reid==0) return '';$sql = "SELECT id,typename,typenameng,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepathFROM `#分隔符@__arctype` WHERE reid='$reid' And ishidden<>1 order by sortrank asc limit 0, $line ";}
//如果用子欄目模式,當沒有子欄目時顯示同級欄目if($type=='son' && $reid!=0 && $totalRow==0){$sql = "SELECT id,typename,typenameng,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepathFROM `#分隔符@__arctype` WHERE reid='$reid' And ishidden<>1 order by sortrank asc limit 0, $line ";$dsql->SetQuery($sql);$dsql->Execute();}