<%@ page language="java" contentType="text/html;charset=Shift_JIS"%>
<%@ page import="java.util.*" %>
<%@ include file="../../connect.jsp"%>


<html>

<head>
	<title>OpenOLAP Viewer</title>
	<meta http-equiv="Content-Type" content="text/html">
	<script language="JavaScript" src="../js/registration.js"></script>
	<link rel="stylesheet" type="text/css" href="../../../css/common.css">
	<script type="text/javascript" src="../../../spread/js/spreadFunc.js"></script>

	<script language="JavaScript">

		function pushFinish() {

			//共通エラーチェックを先に行う
			if(!checkData()){return;}

			var report_name=document.form_main.txt_report_name.value;
			var par_id=document.form_main.hid_par_id.value;
			if(par_id=="root"){
				par_id="null";
			}
			parent.parent.frm_main2.frm_view.display_area.saveReportInfo(report_name,par_id);
		//	parent.parent.frm_main2.frm_view.display_area.saveReportInfo(document.form_main.txt_report_name.value,document.form_main.hid_par_id.value);
		//	alert("レポートを登録しました。");
		//	parent.parent.frm_main2.frm_view.display_area.saveReportInfo();
		//	document.form_main.action = "../hidden/report_rgs_regist.jsp";
		//	document.form_main.target = "frm_hidden";
		//	document.form_main.submit();

		//	document.form_main.action = "../../OpenOLAP.html";
		//	document.form_main.target = "_top";
		//	document.form_main.submit();

		}

		function pushBack(){
			parent.parent.document.body.firstChild.cols = "0,*,0";
		}

	</script>
</head>

<body>
<form name="form_main" id="form_main" method="post" action="">
<table class="Header">
	<tr>
		<td class="HeaderTitle">レポート作成　-　保存(3/3)</td>

		<td width="50" align="right">
			<a href="#" onclick="logout_flow(this, '<%= request.getContextPath() %>');">ログアウト</a>
		</td>
	</tr>
</table>

<br>
<span style="margin-left:10px">レポート名：<input type="text" name="txt_report_name" value="" size="50" maxlength="50" mON='レポート名'" onchange="setChangeFlg();"></span>
<br><br>
<div id="div_path" style="margin-left:10;"></div>
<iframe name="iframe_main" src="report_rgs_tree.jsp" width="400" height="400" style="margin-left:10"></iframe>
<br>


<div style="text-align:right;padding-right:20px;padding-top:8px;margin-top:76px;border-top:1 solid #CCCCCC">
	<input type="button" value="" onclick="pushBack();setChangeFlg();" class="normal_back" onMouseOver="className='over_back'" onMouseDown="className='down_back'" onMouseUp="className='up_back'" onMouseOut="className='out_back'">
	<input type="button" value="" onclick="pushFinish();" class="normal_finish" onMouseOver="className='over_finish'" onMouseDown="className='down_finish'" onMouseUp="className='up_finish'" onMouseOut="className='out_finish'">
</div>



	<input type="hidden" name="hid_path" value="">
	<input type="hidden" name="hid_par_id" value="">

</form>

</body>
</html>

<%@ include file="../../connect_close.jsp" %>
