<?php
	require("__include-common.php");
	require("../account/__logincheck.php");
	if (check_permit_id($_SESSION['login_id'], $_SESSION['current_id']) == "") {
		exit;
	}
	$updateD = date("Y/m/d H:i:s");
	$con = my_mysql_connect(_DB_SCHEMA);
	$sql = "select * from m_lifeplan";
	$sql .= " where id_account = " . $_SESSION['current_id'] . " and id_num = " . $_GET['id'];
	$rs = my_mysql_query($sql);
	if ($rs) {
		if (mysql_num_rows($rs) <> 0) {
			$rec = mysql_fetch_array($rs);
			echo $rec['c_json'];
		} else {
			echo 'NoData';
		}
	}
	mysql_query($sql);
	$con = mysql_close($con);
?>
