| @@ -60,8 +60,8 @@ function GetOptionList($selid = 0, $userCatalog = 0, $channeltype = 0) | |||||
| $sonCats = ''; | $sonCats = ''; | ||||
| LogicGetOptionArray($row->id, '─', $channeltype, $dsql, $sonCats); | LogicGetOptionArray($row->id, '─', $channeltype, $dsql, $sonCats); | ||||
| if ($sonCats != '') { | if ($sonCats != '') { | ||||
| if ($row->ispart == 1) $OptionArrayList .= "<option value='".$row->id."' class='option1'>".$row->typename."(封面频道)</option>"; | |||||
| else if($row->ispart == 2) $OptionArrayList .= "<option value='".$row->id."' class='option1'>".$row->typename."(外部连接)</option>"; | |||||
| if ($row->ispart == 1) $OptionArrayList .= "<option value='".$row->id."' class='option1'>".$row->typename."-封面频道</option>"; | |||||
| else if($row->ispart == 2) $OptionArrayList .= "<option value='".$row->id."' class='option1'>".$row->typename."-外部连接</option>"; | |||||
| else if (empty($channeltype) && $row->ispart != 0) $OptionArrayList .= "<option value='".$row->id."' class='option2'>".$row->typename."(".$channels[$row->channeltype].")</option>"; | else if (empty($channeltype) && $row->ispart != 0) $OptionArrayList .= "<option value='".$row->id."' class='option2'>".$row->typename."(".$channels[$row->channeltype].")</option>"; | ||||
| else $OptionArrayList .= "<option value='".$row->id."' class='option3'>".$row->typename."</option>"; | else $OptionArrayList .= "<option value='".$row->id."' class='option3'>".$row->typename."</option>"; | ||||
| $OptionArrayList .= $sonCats; | $OptionArrayList .= $sonCats; | ||||
| @@ -95,7 +95,7 @@ $typeids = explode(',', $typeid); | |||||
| $dsql->SetQuery("SELECT id,typename FROM `#@__arctype` WHERE reid=0 AND (ispart=0 OR ispart=1)"); | $dsql->SetQuery("SELECT id,typename FROM `#@__arctype` WHERE reid=0 AND (ispart=0 OR ispart=1)"); | ||||
| $dsql->Execute('op'); | $dsql->Execute('op'); | ||||
| while ($nrow = $dsql->GetObject('op')) { | while ($nrow = $dsql->GetObject('op')) { | ||||
| $typeOptions .= "<option value='{$nrow->id}' class='btype'".(in_array($nrow->id, $typeids) ? ' selected' : '').">{$nrow->typename}</option>\r\n"; | |||||
| $typeOptions .= "<option value='{$nrow->id}' class='btype'".(in_array($nrow->id, $typeids) ? ' selected' : '').">—{$nrow->typename}</option>\r\n"; | |||||
| $dsql->SetQuery("SELECT id,typename FROM `#@__arctype` WHERE reid={$nrow->id} AND (ispart=0 OR ispart=1)"); | $dsql->SetQuery("SELECT id,typename FROM `#@__arctype` WHERE reid={$nrow->id} AND (ispart=0 OR ispart=1)"); | ||||
| $dsql->Execute('s'); | $dsql->Execute('s'); | ||||
| while ($nrow = $dsql->GetObject('s')) { | while ($nrow = $dsql->GetObject('s')) { | ||||
| @@ -70,7 +70,7 @@ $dsql->SetQuery(" SELECT id,typename FROM `#@__arctype` WHERE reid=0 AND (ispart | |||||
| $dsql->Execute('op'); | $dsql->Execute('op'); | ||||
| while ($row = $dsql->GetObject('op')) { | while ($row = $dsql->GetObject('op')) { | ||||
| $topc = $row->id; | $topc = $row->id; | ||||
| $typeOptions .= "<option value='{$row->id}' class='btype'>{$row->typename}</option>\r\n"; | |||||
| $typeOptions .= "<option value='{$row->id}' class='btype'>—{$row->typename}</option>\r\n"; | |||||
| $dsql->SetQuery(" SELECT id,typename FROM `#@__arctype` WHERE reid={$row->id} AND (ispart=0 OR ispart=1) "); | $dsql->SetQuery(" SELECT id,typename FROM `#@__arctype` WHERE reid={$row->id} AND (ispart=0 OR ispart=1) "); | ||||
| $dsql->Execute('s'); | $dsql->Execute('s'); | ||||
| while ($row = $dsql->GetObject('s')) { | while ($row = $dsql->GetObject('s')) { | ||||
| @@ -98,7 +98,7 @@ $typeids = explode(',', $row['typeid']); | |||||
| $dsql->SetQuery("SELECT id,typename FROM `#@__arctype` WHERE reid=0 AND (ispart=0 OR ispart=1)"); | $dsql->SetQuery("SELECT id,typename FROM `#@__arctype` WHERE reid=0 AND (ispart=0 OR ispart=1)"); | ||||
| $dsql->Execute('op'); | $dsql->Execute('op'); | ||||
| while ($nrow = $dsql->GetObject('op')) { | while ($nrow = $dsql->GetObject('op')) { | ||||
| $typeOptions .= "<option value='{$nrow->id}' class='btype'".(in_array($nrow->id, $typeids) ? ' selected' : '').">{$nrow->typename}</option>\r\n"; | |||||
| $typeOptions .= "<option value='{$nrow->id}' class='btype'".(in_array($nrow->id, $typeids) ? ' selected' : '').">—{$nrow->typename}</option>\r\n"; | |||||
| $dsql->SetQuery("SELECT id,typename FROM `#@__arctype` WHERE reid={$nrow->id} AND (ispart=0 OR ispart=1)"); | $dsql->SetQuery("SELECT id,typename FROM `#@__arctype` WHERE reid={$nrow->id} AND (ispart=0 OR ispart=1)"); | ||||
| $dsql->Execute('s'); | $dsql->Execute('s'); | ||||
| while ($nrow = $dsql->GetObject('s')) { | while ($nrow = $dsql->GetObject('s')) { | ||||