ソースを参照

调整

tags/6.2.8
叙述、别离 1年前
コミット
fc1fef0b21
2個のファイルの変更4行の追加4行の削除
  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 ファイルの表示

@@ -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 ファイルの表示

@@ -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";


読み込み中…
キャンセル
保存