const DEFAULT_GRAPH_HEIGHT = 280; // グラフ高さ
const LIB_JQPLOT = 'jquery.jqplot'; // ライブラリID
const LINE_DATA_HEAD = 'line'; // ラインデータ変数名ヘッダ
-
+ const TASK_GRAPH = 'analyzegraph'; // グラフ表示
+
/**
* コンストラクタ
*/
// 集計処理不可の場合は「集計」ボタンを隠す
if (!$this->enableCalc) $this->tmpl->setAttribute('show_calc_button', 'visibility', 'hidden');
+
+ // ##### 表示制御 #####
+ // システム運用者の場合はアクセス許可がなければ詳細ボタンを表示しない
+ if ($this->gEnv->isSystemManager() && !in_array(self::TASK_GRAPH, $this->gSystem->getSystemManagerEnableTask())) $this->tmpl->setAttribute('show_detail_button', 'visibility', 'hidden');
}
/**
* ページビューデータを取得
<!-- m3:ErrorMessage -->\r
<form method="post" name="main">\r
<input type="hidden" name="act" />\r
-<h3 class="m3config_h">アクセス数</h3> <a href="?task=analyzegraph" class="btn btn-sm btn-warning m3config_h_side_small_button" role="button" rel="m3help" data-container="body" title="詳細"><i class="glyphicon glyphicon-hand-right"></i></a> ({DATE_TITLE}:{DATE})\r
+<h3 class="m3config_h">アクセス数</h3><patTemplate:tmpl name="show_detail_button"> <a href="?task=analyzegraph" class="btn btn-sm btn-warning m3config_h_side_small_button" role="button" rel="m3help" data-container="body" title="詳細"><i class="glyphicon glyphicon-hand-right"></i></a></patTemplate:tmpl> ({DATE_TITLE}:{DATE})\r
<patTemplate:tmpl name="show_calc_button">\r
<div class="m3config_h_side_buttons pull-right hidden-xs"><div class="btn-group">\r
<input type="button" class="button" onclick="updateItem();" value="集計" />\r