function updateHandler() { $data = $_POST; updateApp($data); }
$appid = $_POST['f_appid']; $title = $_POST['f_title']; $ownerid = $_POST['f_ownerid']; $charttype = $_POST['f_charttype']; $shared = $_POST['f_shared']; addApp($appid, $title, $ownerid, $charttype, $shared); $do = 'list_app'; } //---------------------------------------------------------------------- if ($action == 'updAppForm') { $appid = $_POST['f_appid']; $title = $_POST['f_title']; $ownerid = $_POST['f_ownerid']; $charttype = $_POST['f_charttype']; $shared = $_POST['f_shared']; updateApp($f_id, $title, $ownerid, $charttype, $shared); $do = 'list_app'; } //---------------------------------------------------------------------- if ($action == 'addValueForm') { $sid = $_POST['f_sid']; $value = $_POST['f_value']; echo "sid={$sid}<br>"; echo "value={$value}<br>"; $table = SXN_COLLECTOR_TABLE_DATA_PREFIX . $sid; echo "table={$table}<br>"; //insertRow($tableName,$columns,$values) $valueArray = array($value); $columnArray = array(SXN_COLLECTOR_DATA_COLUMN_VALUE); if ($sid && $value) { $g_dbM2->insertRow($table, $columnArray, $valueArray);