function editView( $r )	{
			$smarty = $this->createSmarty();
			$smarty->assign('r',$r);
			$g = new JTReportGroup();
			$smarty->assign( 'rsGroup', $g->all() );
			$smarty->display(dirname(__FILE__).'/edit.tpl.htm');
		}
		public function _ord() {
			$ret=new stdClass();
			$ret->success=true;
			$r= new JTReportGroup($_SESSION['login_user_id']);
			$r->select( $_GET['id'] );
			$orgOrd = $r->data['ord'];
			$r->data['ord'] = $_GET['ord'];
			$r->setOrd( $orgOrd );
			die( json_encode($ret) );
		}
isPhone('mobile_title');
?>
 title-1" data-lang="en">Monthly Report</h1>
				<h2 class="hidden <?php 
isPhone('mobile_title');
?>
 title-2" data-lang="tw">投資月報</h2>
			</header>
		</div>
	</section>
	<section class="fullbg row2 monthlyreport-wrap serviceCnt-wrap">
		<div class="bg"></div>
		<div class="wrapper">
			<div class="monthlyreport-container serviceCnt-container">
				<?php 
$group = new JTReportGroup();
$rsGroup = $group->all();
?>
				<div class="row1 cf">
					<form method="get" action="monthlyreport.php" class="cf">
						<input type="hidden" name="p" value="1" />
						<div class="col-2">
							<span class="txt-1">分類</span>
							<select name="group_id" class="monthlyreport-select" onchange="location='monthlyreport.php?group_id='+$(this).val();">
								<option value="">所有</option>
								<?php 
foreach ($rsGroup as $d) {
    ?>
											<option value="<?php 
    echo $d->id;
    ?>