SIM0210.tpl 31.8 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513
<html>
<head>
<meta http-equiv="content-type" content="text/html; cahrset=euc-jp">
<meta http-equiv="content-style-type" content="text/css">
<meta name="robots" content="noindex, nofollow">
{literal}
<script language="javascript"><!--

var nowForcus ;

function chg_lst(flg){
	
	document.frm.target = "_self";
	document.frm.action = "SIM0210.php?chgmode="+flg;
	document.frm.method="POST";
	document.frm.submit();
}

function chk_up(flg){

var txtName1 = "";
var txtName2 = "";
var icnt = 0 ;

	if (flg==1) {
		txtName1 = "txtin1[]";
	}else{
		txtName1 = "txtout1[]";
	}

	if(document.frm.elements[txtName1].length > 0){
		icnt = eval(document.frm.elements[txtName1].length);
	}else{
		icnt = 1;
	}

	for(i=0;i<icnt;i++){
		for(j=1;j<=12;j++){
			if (flg==1) {
				txtName2 = "txtin"+j+"[]";
			}else{
				txtName2 = "txtout"+j+"[]";
			}
			//数値チェック
			if (icnt==1){
				val = document.frm.elements[txtName2].value;
			}else{
				val = document.frm.elements[txtName2][i].value;
			}
			//数値チェック
		    if (val.match(/[^0-9.]/g) && val != "") {
		        alert("数値以外が含まれています。");
				if (icnt==1){
					document.frm.elements[txtName2].focus();
				}else{
					document.frm.elements[txtName2][i].focus();
				}
		        return false;
		    }
			//マイナスチェック
		    if (eval(val) < 0) {
		        alert("負の数は入力できません");
				if (icnt==1){
					document.frm.elements[txtName2].focus();
				}else{
					document.frm.elements[txtName2][i].focus();
				}
		        return false;
		    }
			//桁数チェック
			if (icnt==1){
				val = document.frm.elements[txtName2].value.length;
			}else{
				val = document.frm.elements[txtName2][i].value.length;
			}
		    if (val > 9) {
		        alert("金額が大き過ぎます。");
				if (icnt==1){
					document.frm.elements[txtName2].focus();
				}else{
					document.frm.elements[txtName2][i].focus();
				}
		        return false;
		    }
		}
	}

	document.frm.target = "_self";
	document.frm.action = "SIM0211.php";
	document.frm.method="POST";
	document.frm.submit();
}

function cp_money(num,cnt,mode){

	if(mode == 1){
		name1="txtin"+num+"[]";
		name2="txtin"+(num+1)+"[]";
	}else if(mode == 2){
		name1="txtout"+num+"[]";
		name2="txtout"+(num+1)+"[]";
	}
	
	if (document.frm.elements[name1].length > 1){
		document.frm.elements[name2][cnt].value = document.frm.elements[name1][cnt].value;
	}else{
		document.frm.elements[name2].value = document.frm.elements[name1].value;
	}
}

function cp_tolast(num,cnt,mode){

	for(i=num;i<12;i++){

		if(mode == 1){
			name1="txtin"+i+"[]";
			name2="txtin"+(i+1)+"[]";
		}else if(mode == 2){
			name1="txtout"+i+"[]";
			name2="txtout"+(i+1)+"[]";
		}

		if (document.frm.elements[name1].length > 1){
			document.frm.elements[name2][cnt].value = document.frm.elements[name1][cnt].value;
		}else{
			document.frm.elements[name2].value = document.frm.elements[name1].value;
		}
	}
}

function Get_BName(){
	if (navigator.appName == "Microsoft Internet Explorer"){
		return "POST";
	}else if (navigator.appName == "Netscape"){
		return "GET";
	}else{
		return "GET";
	}
}

function lnk_comment(cnt,sMode,yyyy,mm,bSeq,dSeq,cSeq){

	objWin = window.open("" , "subwin", "Width=580, Height=160,status=no,menubar=no,favorites=no,resizable=no");
	document.frm.target = "subwin";
	document.frm.action = "SIM0220.php?sMode="+sMode+"&yyyy="+yyyy+"&mm="+mm+"&bSeq="+bSeq+"&dSeq="+dSeq+"&cSeq="+cSeq;
	document.frm.method = "POST";
	document.frm.submit();

}

function lnk_shoukubun(){
	location.href = "SIM0820.php";
}

function lnk_list(flg){

	document.frm.target = "_self";
	document.frm.action = "SIM0200.php?back="+flg;
	document.frm.method="POST";
	document.frm.submit();
}

function lnk_Table(){
	location.href = "SIM0500.php";
}

var menuDiv1 = new Array();
var menuDiv2 = new Array();
var LinkComments = new Array();
var Lflag = 1;
var scrX = 800;
var scrY = 600;
var ret = "";

function Mover(n){

	ret = Get_BName();

	if (!event) var event=window.event;
	if (!event.pageX) event.pageX = event.clientX + document.body.scrollLeft;
	if (!event.pageY) event.pageY = event.clientY + document.body.scrollTop;
//	alert("x:" + event.pageX + " y:" + event.pageY);

	menuSPAN = document.getElementById("span"+n);
	menuDiv = document.getElementById("menu"+n);

	if(ret=="POST"){

		if (menuDiv.style.visibility == "visible") {
			return false;
		}

		menuDiv.style.visibility = "visible";
		menuDiv.style.left = event.pageX - 100;
		menuDiv.style.top = event.pageY - 30;
	}
	if(ret=="GET"){
		menuDiv.visibility = "show";

	}
}

function Mout(n){

	ret = Get_BName();

	menuDiv = document.getElementById("menu"+n);
	if(ret=="POST"){
		menuDiv.style.visibility = "hidden";
	}
	if(ret=="GET"){
		menuDiv.visibility = "hide";
	}
}

-->
</script>
{/literal}
<title>{$PHP_SYSNAME}</title>
<link rel="stylesheet" href="./templates/SIM.css" type="text/css" />
</head>

<body>
<form name="frm">

<div class="SimBody">

	<div class="SimHeader">
		<img src="./templates/img/logo.gif" alt="{$PHP_SYSNAME}" border="0">
	</div>
	<div class="SimUserinfo">
		<span class="NameText">{$PHP_GROUP_NAME} / {$PHP_BUMON_NAME} / {$PHP_USER_NAME}</span>
		<span id="SimSpace"><!-- space --></span>
		<span class="LinkText">
			<a href = "./help/HELP0210.html" target="_blank">ヘルプ</a> / 
			<a href = "SIM9999.php">ログアウト</a>
		</span>
	</div>
	<div class="SimMiddle">
		<div class="SimTitle">
			入出金画面
		</div>
		<div class="SimMain">
			<table class="SimCommentTab">
				<tr>
					<td class="SimMainHead">
						<table>
							<tr>
								<td>入力する年</td>
								<td>
									<select name="yyyy" onchange="chg_lst('y');">
										{$lstY}
									</select>年 
								</td>
								<td>  収支選択</td>
								<td>
									<select name="sMode" onchange="chg_lst('s')">
									<!--{if $sMode=="1" || $sMode==""}-->
										<option value="1" selected>{$DEFARR[9]}</option>
										<option value="2" >{$DEFARR[8]}</option>
									<!--{/if}-->
									<!--{if $sMode=="2"}-->
										<option value="1">{$DEFARR[9]}</option>
										<option value="2" selected>{$DEFARR[8]}</option>
									<!--{/if}-->
									</select> 
								</td>
								<td></td>
								<td></td>
							</tr>
							<tr>
								<td>{$DEFARR[5]}</td>
								<td>
									<select name="bSeq" onchange="chg_lst('b');">
										{$bunrui}
									</select> 
								</td>
								<td>  {$DEFARR[6]}</td>
								<td>
									<select name="dSeq" onchange="chg_lst('d');">
										{$dkoumoku}
									</select>
								</td>
								<td>  {$DEFARR[7]}</td>
								<td>
									<select name="cSeq" onchange="chg_lst('c');">
										{$ckoumoku}
									</select>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>

		<!--{if ($sMode=="1" && $chgmode=="") || ($sMode=="2" && $chgmode=="s") || ($sMode=="")}-->
			<table>
				<tr>
					<td valign="bottom" rowspan="2" width="480">
						<span class="SimCommentIn" style="width:200px;">■入力金額 <FONT>{$DEFARR[9]}</FONT></span>
					</td>
					<td colspan="2">
						<!--{if $PHP_USER_SHIKIN == 1 || $PHP_USER_SHIKIN == 99 }-->
							<input type="button" class="SimCancelButton" value=" 資金繰り表へ " onclick="lnk_Table();">
						<!--{/if}-->
						  <input type="button" class="SimCancelButton" value=" 入出金一覧へ " onclick="lnk_list('1');">
						  <input type="button" class="SimCancelButton" value=" メニューへ " onclick="location.href='SIM0100.php'">
					</td>
				</tr>
				<tr>
					<td>
						<!--{if $kName|@count > 0 }-->
							<input type="button" class="SimOkButton" value="  データ登録  " onclick="chk_up('{$sMode}');">
						<!--{/if}-->
					</td>
					<td align="right">
						<span class="SimComment">(単位:{$sUnitName})</span>
					</td>
				<tr>
				<tr>
					<td colspan="3">
						<table class="SimNyukinTab">
							<tr>
								<th class="SimListTabHead">{$DEFARR[5]}</th>
								<th class="SimListTabHead">{$DEFARR[6]}</th>
								<th class="SimListTabHead">{$DEFARR[7]}<BR><input type="button" class="SimCancelButton2" value="追加" onclick="lnk_shoukubun();"></th>
								<th class="SimListTabHead">1月</th>
								<th class="SimListTabHead">2月</th>
								<th class="SimListTabHead">3月</th>
								<th class="SimListTabHead">4月</th>
								<th class="SimListTabHead">5月</th>
								<th class="SimListTabHead">6月</th>
								<th class="SimListTabHead">7月</th>
								<th class="SimListTabHead">8月</th>
								<th class="SimListTabHead">9月</th>
								<th class="SimListTabHead">10月</th>
								<th class="SimListTabHead">11月</th>
								<th class="SimListTabHead">12月</th>
							</tr>
			
							<!--{section name=item loop=$objTabDat}-->
							<tr>
								<!--{if $objTabDat[item.index]->bunrui_name == $objTabDat[item.index_prev]->bunrui_name }-->
								<th class="SimIncomehid"></th>
								<!--{else} -->
								<th class="SimIncomeSide">{$objTabDat[item]->bunrui_name}</th>
								<!--{/if} -->
								
								<!--{if $objTabDat[item]->kt_name == $objTabDat[item.index_prev]->kt_name}-->
								<th class="SimIncomehid"></th>
								<!--{else} -->
								<th class="SimIncomeSide">{$objTabDat[item]->kt_name}</th>
								<!--{/if} -->
								
								<th class="SimIncomeSide">{$objTabDat[item]->kt2_name}<input type="hidden" name="kSeqIn[]" value="{$kSeq[item]}"></th>
	
								<td onmouseover="return false;" onmouseout="return false;">
									<input type="text" name="txtin1[]" value="{$dataIn[item][0]}" size="7" maxlength="9" onmouseover="return false;"><br>
									<a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','1', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}')   ;">
									<!--{if mb_strlen($CommentTxt[item][0],  "EUC-JP") > 0 }-->
									<img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][0] }">
									<!--{else}-->
									<img src="./templates/img/writemini_no.gif" border="0" alt="{$CommentTxt[item][0] }">
									<!--{/if}--></a> 
									<a href="javascript:cp_money(1,{$smarty.section.item.index},1);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a>
									<a href="javascript:cp_tolast(1,{$smarty.section.item.index},1);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a>
								</td>
	
								<td><input type="text" name="txtin2[]" value="{$dataIn[item][1]}" size="7" maxlength="9"><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','2', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}')   ;"><!--{if mb_strlen($CommentTxt[item][1],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][1] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(2,{$smarty.section.item.index},1);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(2,{$smarty.section.item.index},1);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtin3[]" value="{$dataIn[item][2]}" size="7" maxlength="9"><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','3', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}')   ;"><!--{if mb_strlen($CommentTxt[item][2],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][2] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(3,{$smarty.section.item.index},1);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(3,{$smarty.section.item.index},1);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtin4[]" value="{$dataIn[item][3]}" size="7" maxlength="9"><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','4', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}')   ;"><!--{if mb_strlen($CommentTxt[item][3],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][3] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(4,{$smarty.section.item.index},1);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(4,{$smarty.section.item.index},1);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtin5[]" value="{$dataIn[item][4]}" size="7" maxlength="9"><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','5', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}')   ;"><!--{if mb_strlen($CommentTxt[item][4],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][4] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(5,{$smarty.section.item.index},1);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(5,{$smarty.section.item.index},1);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtin6[]" value="{$dataIn[item][5]}" size="7" maxlength="9"><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','6', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}')   ;"><!--{if mb_strlen($CommentTxt[item][5],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][5] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(6,{$smarty.section.item.index},1);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(6,{$smarty.section.item.index},1);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtin7[]" value="{$dataIn[item][6]}" size="7" maxlength="9"><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','7', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}')   ;"><!--{if mb_strlen($CommentTxt[item][6],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][6] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(7,{$smarty.section.item.index},1);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(7,{$smarty.section.item.index},1);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtin8[]" value="{$dataIn[item][7]}" size="7" maxlength="9"><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','8', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}')   ;"><!--{if mb_strlen($CommentTxt[item][7],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][7] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(8,{$smarty.section.item.index},1);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(8,{$smarty.section.item.index},1);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtin9[]" value="{$dataIn[item][8]}" size="7" maxlength="9"><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','9', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}')   ;"><!--{if mb_strlen($CommentTxt[item][8],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][8] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(9,{$smarty.section.item.index},1);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(9,{$smarty.section.item.index},1);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtin10[]" value="{$dataIn[item][9]}" size="7" maxlength="9"><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','10', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}') ;"><!--{if mb_strlen($CommentTxt[item][9],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][9] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(10,{$smarty.section.item.index},1);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(10,{$smarty.section.item.index},1);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtin11[]" value="{$dataIn[item][10]}" size="7" maxlength="9"><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','11', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}');"><!--{if mb_strlen($CommentTxt[item][10], "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][10]}"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(11,{$smarty.section.item.index},1);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> </td>
								<td><input type="text" name="txtin12[]" value="{$dataIn[item][11]}" size="7" maxlength="9"><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','12', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}');"><!--{if mb_strlen($CommentTxt[item][11], "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][11]}"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a>   </td>
							</tr>
						<!--{/section}-->
						</table>
						
					</td>
				</tr>
			</table>
		<!--{/if}-->
			
		<!--{if ($sMode=="2" && $chgmode=="") || ($sMode=="1" && $chgmode=="s")}-->
			<table>
				<tr>
					<td valign="bottom" rowspan="2" width="480">
						<span class="SimCommentOut">■入力金額 <FONT>{$DEFARR[8]}</FONT></span>
					</td>
					<td colspan="2">
						<!--{if $PHP_USER_SHIKIN == 1 || $PHP_USER_SHIKIN == 99 }-->
							<input type="button" class="SimCancelButton" value=" 資金繰り表へ " onclick="lnk_Table();">
						<!--{/if}-->
						  <input type="button" class="SimCancelButton" value=" 入出金一覧へ " onclick="lnk_list('1');">
						  <input type="button" class="SimCancelButton" value=" メニューへ " onclick="location.href='SIM0100.php'">
					</td>
				</tr>
				<tr>
					<td>
						<!--{if $kName|@count > 0 }-->
							<input type="button" class="SimOkButton" value="  データ登録  " onclick="chk_up('{$sMode}');">
						<!--{/if}-->
					</td>
					<td align="right">
						<span class="SimComment">(単位:{$sUnitName})</span>
					</td>
				<tr>
				<tr>
					<td colspan="3">
						<table class="SimNyukinTab">
							<tr>
								<th class="SimListTabHead">{$DEFARR[5]}</th>
								<th class="SimListTabHead">{$DEFARR[6]}</th>
								<th class="SimListTabHead">{$DEFARR[7]}<BR><input type="button" class="SimCancelButton2" value="追加" onclick="lnk_shoukubun();"></th>
								<th class="SimListTabHead">1月</th>
								<th class="SimListTabHead">2月</th>
								<th class="SimListTabHead">3月</th>
								<th class="SimListTabHead">4月</th>
								<th class="SimListTabHead">5月</th>
								<th class="SimListTabHead">6月</th>
								<th class="SimListTabHead">7月</th>
								<th class="SimListTabHead">8月</th>
								<th class="SimListTabHead">9月</th>
								<th class="SimListTabHead">10月</th>
								<th class="SimListTabHead">11月</th>
								<th class="SimListTabHead">12月</th>
							</tr>
							<!--{section name=item loop=$objTabDat}-->
							<tr>
								<!--{if $objTabDat[item.index]->bunrui_name == $objTabDat[item.index_prev]->bunrui_name }-->
								<th class="SimExpendhid"></th>
								<!--{else} -->
								<th class="SimExpendSide">{$objTabDat[item]->bunrui_name}</th>
								<!--{/if} -->
								<!--{if $objTabDat[item]->kt_name == $objTabDat[item.index_prev]->kt_name}-->
								<th class="SimExpendhid"></th>
								<!--{else} -->
								<th class="SimExpendSide">{$objTabDat[item]->kt_name}</th>
								<!--{/if} -->
								<th class="SimExpendSide">{$objTabDat[item]->kt2_name}<input type="hidden" name="kSeqOut[]" value="{$kSeq[item]}"></th>
								<td><input type="text" name="txtout1[]" value="{$dataOut[item][0]}" size="7" maxlength="9"  ><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','1', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}');" ><!--{if mb_strlen($CommentTxt[item][0],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][0] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(1,{$smarty.section.item.index},2);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(1,{$smarty.section.item.index},2);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtout2[]" value="{$dataOut[item][1]}" size="7" maxlength="9"  ><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','2', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}');" ><!--{if mb_strlen($CommentTxt[item][1],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][1] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(2,{$smarty.section.item.index},2);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(2,{$smarty.section.item.index},2);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtout3[]" value="{$dataOut[item][2]}" size="7" maxlength="9"  ><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','3', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}');" ><!--{if mb_strlen($CommentTxt[item][2],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][2] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(3,{$smarty.section.item.index},2);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(3,{$smarty.section.item.index},2);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtout4[]" value="{$dataOut[item][3]}" size="7" maxlength="9"  ><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','4', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}');" ><!--{if mb_strlen($CommentTxt[item][3],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][3] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(4,{$smarty.section.item.index},2);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(4,{$smarty.section.item.index},2);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtout5[]" value="{$dataOut[item][4]}" size="7" maxlength="9"  ><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','5', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}');" ><!--{if mb_strlen($CommentTxt[item][4],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][4] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(5,{$smarty.section.item.index},2);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(5,{$smarty.section.item.index},2);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtout6[]" value="{$dataOut[item][5]}" size="7" maxlength="9"  ><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','6', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}');" ><!--{if mb_strlen($CommentTxt[item][5],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][5] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(6,{$smarty.section.item.index},2);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(6,{$smarty.section.item.index},2);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtout7[]" value="{$dataOut[item][6]}" size="7" maxlength="9"  ><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','7', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}');" ><!--{if mb_strlen($CommentTxt[item][6],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][6] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(7,{$smarty.section.item.index},2);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(7,{$smarty.section.item.index},2);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtout8[]" value="{$dataOut[item][7]}" size="7" maxlength="9"  ><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','8', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}');" ><!--{if mb_strlen($CommentTxt[item][7],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][7] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(8,{$smarty.section.item.index},2);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(8,{$smarty.section.item.index},2);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtout9[]" value="{$dataOut[item][8]}" size="7" maxlength="9"  ><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','9', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}');" ><!--{if mb_strlen($CommentTxt[item][8],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][8] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(9,{$smarty.section.item.index},2);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(9,{$smarty.section.item.index},2);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtout10[]" value="{$dataOut[item][9]}" size="7" maxlength="9" ><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','10', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}');"><!--{if mb_strlen($CommentTxt[item][9],  "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][9] }"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(10,{$smarty.section.item.index},2);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> <a href="javascript:cp_tolast(10,{$smarty.section.item.index},2);"><img src="./templates/img/copy2.gif" border="0" alt="12月までコピー"></a></td>
								<td><input type="text" name="txtout11[]" value="{$dataOut[item][10]}" size="7" maxlength="9"><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','11', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}');"><!--{if mb_strlen($CommentTxt[item][10], "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][10]}"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a> <a href="javascript:cp_money(11,{$smarty.section.item.index},2);"><img src="./templates/img/copy.gif" border="0" alt="翌月にコピー"></a> </td>
								<td><input type="text" name="txtout12[]" value="{$dataOut[item][11]}" size="7" maxlength="9"><br><a href="javascript:lnk_comment('{$smarty.section.item.index}','{$sMode}','{$yyyy}','12', '{$objTabDat[item]->bunrui_seq}','{$objTabDat[item]->kt_seq}','{$objTabDat[item]->kt2_seq}');"><!--{if mb_strlen($CommentTxt[item][11], "EUC-JP") > 0 }--><img src="./templates/img/writemini.gif" border="0" alt="{$CommentTxt[item][11]}"><!--{else}--><img src="./templates/img/writemini_no.gif" border="0"><!--{/if}--></a>    </td>
							</tr>
							<!--{/section}-->
						</table>
					</td>
				</tr>
			</table>
		<!--{/if}-->

			<table class="SimCommentTab">
				<tr>
					<td class="SimMainFoot" rowspan="2">
						<span class="SimComment">
						  <img src="./templates/img/writemini_no.gif" border="0">をクリックすると金額にコメントを記入できます。<br>
						  既にコメントが記入されている場合 <img src="./templates/img/writemini.gif" border="0"> が表示されます。<br>
						  <img src="./templates/img/copy.gif" border="0" alt="翌月にコピー">をクリックすると当月の金額を翌月にコピーします。<br>
						  <img src="./templates/img/copy2.gif" border="0" alt="12月までコピー">をクリックすると当月の金額を12月までコピーします。<br>
						  翌月の金額を入力する場合は、入力する年を切り替えてください。<br>
						</span>
					</td>
					<td width="40" rowspan="2">
					</td>
					<td colspan="2">
						<!--{if $PHP_USER_SHIKIN == 1 || $PHP_USER_SHIKIN == 99 }-->
							<input type="button" class="SimCancelButton" value=" 資金繰り表へ " onclick="lnk_Table();">
						<!--{/if}-->
						  <input type="button" class="SimCancelButton" value=" 入出金一覧へ " onclick="lnk_list('1');">
						  <input type="button" class="SimCancelButton" value=" メニューへ " onclick="location.href='SIM0100.php'">
					</td>
				</tr>
				<tr>
					<td>
						<!--{if $kName|@count > 0 }-->
							<input type="button" class="SimOkButton" value="  データ登録  " onclick="chk_up('{$sMode}');">
						<!--{/if}-->
					</td>
					<td align="right">
					</td>
				</tr>
			</table>
		</div>
	</div>
	<div class="SimUserinfo">
		<span class="NameText"></span>
		<span id="SimSpace"><!-- space --></span>
		<span class="LinkText">
			<a href = "{$DEFARR[1]}" target="_blank">ホームページへ</a>
		</span>
	</div>
	<div class="SimFooter">
		<a href="{$DEFARR[3]}" target="_blank" title="メディアテック(株)ホームページへ">&#169; Copyright2006-2009 All rights reserved by  Mediatech. Co., Ltd.</a>
	</div>
</div>

</form>
</body>
</html>