Parcourir la source

调整

tags/6.2.8
叙述、别离 il y a 1 an
Parent
révision
fc1fef0b21
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. +2
    -2
      src/admin/inc/inc_catalog_options.php
  2. +2
    -2
      src/admin/sys_admin_user_add.php

+ 2
- 2
src/admin/inc/inc_catalog_options.php Voir le fichier

@@ -60,8 +60,8 @@ function GetOptionList($selid = 0, $userCatalog = 0, $channeltype = 0)
$sonCats = '';
LogicGetOptionArray($row->id, '─', $channeltype, $dsql, $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 $OptionArrayList .= "<option value='".$row->id."' class='option3'>".$row->typename."</option>";
$OptionArrayList .= $sonCats;


+ 2
- 2
src/admin/sys_admin_user_add.php Voir le fichier

@@ -66,12 +66,12 @@ if ($dopost == 'add') {
$randcode = mt_rand(10000, 99999);
$safecode = substr(md5($cfg_cookie_encode.$randcode), 0, 24);
$typeOptions = '';
$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');
while ($row = $dsql->GetObject('op')) {
$topc = $row->id;
$typeOptions .= "<option value='{$row->id}'>{$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');
while ($row = $dsql->GetObject('s')) {
$typeOptions .= "<option value='{$row->id}'>└─ {$row->typename}</option>\r\n";


Chargement…
Annuler
Enregistrer