array(T_ZBX_INT, O_MAND,P_SYS, DB_ID, null), "period"=> array(T_ZBX_INT, O_OPT, null, BETWEEN(ZBX_MIN_PERIOD,ZBX_MAX_PERIOD), null), "from"=> array(T_ZBX_INT, O_OPT, null, '{}>=0', null), "width"=> array(T_ZBX_INT, O_OPT, null, '{}>0', null), "height"=> array(T_ZBX_INT, O_OPT, null, '{}>0', null), "border"=> array(T_ZBX_INT, O_OPT, null, IN('0,1'), null), "stime"=> array(T_ZBX_STR, O_OPT, P_SYS, null, null) ); check_fields($fields); ?> = ZBX_MIN_PERIOD){ update_profile('web.item.graph.period',$_REQUEST['period'], PROFILE_TYPE_INT, $_REQUEST['itemid']); } if(isset($_REQUEST["period"])) $graph->SetPeriod($_REQUEST["period"]); if(isset($_REQUEST["from"])) $graph->SetFrom($_REQUEST["from"]); if(isset($_REQUEST["width"])) $graph->SetWidth($_REQUEST["width"]); if(isset($_REQUEST["height"])) $graph->SetHeight($_REQUEST["height"]); if(isset($_REQUEST["border"])) $graph->SetBorder(0); if(isset($_REQUEST["stime"])) $graph->setSTime($_REQUEST["stime"]); $graph->AddItem($_REQUEST["itemid"], GRAPH_YAXIS_SIDE_RIGHT, CALC_FNC_ALL); $graph->Draw(); ?>