OSDN Git Service

アクセスポイント管理画面更新。
authornaoki hirata <naoki@magic3.org>
Mon, 22 Aug 2016 02:57:27 +0000 (11:57 +0900)
committernaoki hirata <naoki@magic3.org>
Mon, 22 Aug 2016 02:57:27 +0000 (11:57 +0900)
widgets/admin_main/include/container/admin_mainAccesspointWidgetContainer.php
widgets/admin_main/include/help/index.php

index 26d21da..f27c0ea 100644 (file)
@@ -260,18 +260,19 @@ class admin_mainAccesspointWidgetContainer extends admin_mainMainteBaseWidgetCon
        function pageIdLoop($index, $fetchedRow, $param)
        {
                $value = $this->convertToDispString($fetchedRow['pg_id']);
-               
-               // 有効かどうか
-               $active = '';
-               if ($fetchedRow['pg_active']) $active = 'checked';
+
+               $path = $fetchedRow['pg_path'];
+               $path = str_replace('index', '', $path);
+               $path = rtrim($path, '/');
+               $path = '/' . $path;
                
                $row = array(
                        'index'         => $index,                      // インデックス番号
                        'value'         => $value,                      // ページID
                        'name'          => $this->convertToDispString($fetchedRow['pg_name']),                  // ページ名
-                       'path'          => $this->convertToDispString($fetchedRow['pg_path']),                  // パス
+                       'path'          => $this->convertToDispString($path),                   // パス
                        'priority'      => $this->convertToDispString($fetchedRow['pg_priority']),                      // 優先度
-                       'active'        => $active      // 有効無効
+                       'active'        => $this->convertToCheckedString($fetchedRow['pg_active'])      // 有効無効
                );
                $this->tmpl->addVars('id_list', $row);
                $this->tmpl->parseTemplate('id_list', 'a');
index df17f66..8e3a192 100644 (file)
@@ -192,7 +192,7 @@ $HELP['accesspoint_path']['body'] = 'URLでのアクセスパスを示します
 $HELP['accesspoint_priority']['title'] = '優先順';
 $HELP['accesspoint_priority']['body'] = '項目の優先順を指定します。';
 $HELP['accesspoint_active']['title'] = '有効';
-$HELP['accesspoint_active']['body'] = 'ã\83\95ã\83­ã\83³ã\83\88ç\94»é\9d¢ç\94¨ã\81®ã\82¢ã\82¯ã\82»ã\82¹ã\83\9dã\82¤ã\83³ã\83\88ã\82\92使ç\94¨å\8f¯è\83½ã\81«ã\81\99ã\82\8bã\81\8bã\81©ã\81\86ã\81\8bã\82\92æ\8c\87å®\9aã\81\97ます。';
+$HELP['accesspoint_active']['body'] = 'ã\82¢ã\82¯ã\82»ã\82¹ã\83\9dã\82¤ã\83³ã\83\88ã\82\92æ\9c\89å\8a¹ã\81«ã\81\99ã\82\8bã\81\8bã\81©ã\81\86ã\81\8bã\82\92æ\8c\87å®\9aã\81\97ã\81¾ã\81\99ã\80\82æ\9c\89å\8a¹ã\81ªã\82¢ã\82¯ã\82»ã\82¹ã\83\9dã\82¤ã\83³ã\83\88ã\81¯å¤\96é\83¨ã\81\8bã\82\89ã\82¢ã\82¯ã\82»ã\82¹å\8f¯è\83½ã\81ªURLã\81«ã\81ªã\82\8aます。';
 $HELP['accesspoint_edit_btn']['title'] = '編集ボタン';
 $HELP['accesspoint_edit_btn']['body'] = '選択されているアクセスポイントを編集します。<br />選択するには、一覧の左端のチェックボックスにチェックを入れます。';
 $HELP['accesspoint_ret_btn']['title'] = '戻るボタン';