SIM0500.tpl 13.3 KB
<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">
function chk_up(){

	sYM = document.frm.yyyy.value+(("00"+ document.frm.mon.value).substr(("00"+document.frm.mon.value).length-2,2));
	if(document.frm.hidKaishi.value > sYM){
			alert("開始期間は"+(document.frm.hidKaishi.value).substr(0,4)+"年"+parseInt((document.frm.hidKaishi.value).substr(4,2))+"月以降を選択してください");
			return false;
	}

	for(i=0;i<(document.frm.elements["shikin[1][]"].length);i++){
		txtName = "shikin[1][]";
		val = document.frm.elements[txtName][i].value;
    if (val.match(/[^0-9]/g) && val != "") {
			alert("不正な金額が入力されています");
			return false;
		}
		txtName = "shikin[2][]";
		val = document.frm.elements[txtName][i].value;
    if (val.match(/[^0-9]/g) && val != "") {
			alert("不正な金額が入力されています");
			return false;
		}
	}

	document.frm.target = "_self";
	document.frm.action = "SIM0500.php";
	document.frm.method="POST";
	document.frm.submit();
}
function mycheck(val){
	if(val != ""){
		if (val.search(/^(\\|\$)?(0|-?[1-9]\d*)$/)	!=	-1 ){
			return true;
		}else{
			return false;
		}
	}else{
		return true;
	}
}
function show_print(){

	window.open("","SIM_Print","status=no,menubar=no,favorites=no,scrollbars=yes,resizable=yes");
	document.frm.target = "SIM_Print";
	document.frm.action = "SIM0500.php?mode=p";
	document.frm.method="POST";
	document.frm.submit();
}

function csv_dl(){
	document.frm.action = "SIM0600.php";
	document.frm.method="POST";
	document.frm.submit();
}

function lnk_input(auth,sMode,bSeq,dSeq,cSeq){

	document.frm.sMode.value = sMode;
	document.frm.bSeq.value = bSeq;
	document.frm.dSeq.value = dSeq;

	if(auth == 1 || auth == 99){
		document.frm.action="SIM0210.php?chgmode=f&bSeq="+bSeq+"&dSeq="+dSeq+"&cSeq="+cSeq;
	}else{
		document.frm.action="SIM0200.php?chgmode=f";
	}
	document.frm.method="POST";
	document.frm.submit();
}

var lay = new Array();

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

function MoverStyle(n){

	ret = Get_BName();

	if(ret=="POST"){
		lay[n] = document.getElementById("Td"+n);
		lay[n].style.background = "#B7E7F7";
	}
	if(ret=="GET"){
		lay[n].background = "#B7E7F7";
	}
}

function MoutStyle(n){

	ret = Get_BName();

	if(ret=="POST"){
		lay[n] = document.getElementById("Td"+n);
		lay[n].style.background = "#F7F7F7";
	}
	if(ret=="GET"){
		lay[n].background = "#F7F7F7";
	}
}

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

<body>
<form name="frm">

<div class="SimBody">
<!--{if $DISP_CNT == "3" || $DISP_CNT == ""}-->
	<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/HELP0500.html" target="_blank">ヘルプ</a> / 
			<a href = "SIM9999.php">ログアウト</a>
		</span>
	</div>
	<div class="SimMiddle">
		<div class="SimTitle">
			資金繰表
		</div>
		<div class="SimMain">
<!--{elseif $DISP_CNT == "6"}-->

	<div class="SimHeader6">
		<img src="./templates/img/logo.gif" alt="{$PHP_SYSNAME}" border="0">
	</div>
	<div class="SimUserinfo6">
		<span class="NameText">{$PHP_GROUP_NAME} / {$PHP_BUMON_NAME} / {$PHP_USER_NAME}</span>
		<span id="SimSpace"><!-- space --></span>
		<span class="LinkText">
			<a href = "./help/HELP0500.html" target="_blank">ヘルプ</a> / 
			<a href = "SIM9999.php">ログアウト</a>
		</span>
	</div>
	<div class="SimMiddle6">
		<div class="SimTitle6">
			資金繰表
		</div>
		<div class="SimMain6">
<!--{else}-->
	<div class="SimHeader12">
		<img src="./templates/img/logo.gif" alt="{$PHP_SYSNAME}" border="0">
	</div>
	<div class="SimUserinfo12">
		<span class="NameText">{$PHP_GROUP_NAME} / {$PHP_BUMON_NAME} / {$PHP_USER_NAME}</span>
		<span id="SimSpace"><!-- space --></span>
		<span class="LinkText">
			<a href = "./help/HELP0500.html" target="_blank">ヘルプ</a> / 
			<a href = "SIM9999.php">ログアウト</a>
		</span>
	</div>
	<div class="SimMiddle12">
		<div class="SimTitle12">
			資金繰表
		</div>
		<div class="SimMain12">
<!--{/if}-->

			<table>
				<tr>
					<td class="SimMainHead" rowspan="2">
						<select name="yyyy">
							{$lstY}
						</select>
						<select name="mon">
							{$lstM}
						</select>月から
						<select name="kikan">
							{$lstK}
						</select>
						<br>
						<span id="SimSpace"><!-- space --></span>
					</td>
					<td class="SimMainHead">
						<input type="button" class="SimCancelButton" value=" メニューへ " onclick="location.href='SIM0100.php'">
					</td>
					<td class="SimMainHead" colspan="2">
						  <input type="button" class="SimCancelButton" value=" 印刷画面へ " onclick="show_print();">
					</td>
				</tr>
				<tr>
					<td class="SimMainHead">
						<input type="button" class="SimOkButton" value="資金繰表更新" onclick="chk_up();">
					</td>
					<td class="SimMainHead">
						  <input type="button" class="SimOkButton" value="CSVファイル出力" onclick="csv_dl();">
					</td>
					<td>
						<span class="SimComment">(単位:{$sUnitName})</span>
					</td>
				</tr>
			</table>
			<table class="SimShikinTab">
				<tr>
					<th class="SimShikinHead" nowrap rowspan="2" colspan="2">&nbsp;</td>
			<!--{section name=ymCnt loop=$dataYM}-->
					<th class="SimShikinHead" nowrap colspan="3">{$dataYM[ymCnt][1]}月</td>
			<!--{/section}-->
				</tr>
				<tr>
			<!--{section name=ymCnt loop=$dataYM}-->
					<th class="SimShikinHead" nowrap>{$DEFARR[9]}</td>
					<th class="SimShikinHead" nowrap>{$DEFARR[8]}</td>
					<th class="SimShikinHead" nowrap>残高</td>
			<!--{/section}-->
				</tr>
				<tr>
					<th class="SimShikin_s" nowrap colspan="2">前月繰越</td>
			<!--{section name=ymCnt loop=$dataYM}-->
					<td class="SimShikin_s" nowrap>{$dspkuri[1][ymCnt]}</td>
					<td class="SimShikin_s" nowrap>{$dspkuri[2][ymCnt]}</td>
			<!--{if intval($dspkuri[3][ymCnt]) >= 0}-->
					<td class="SimShikin_s" nowrap>{$dspkuri[3][ymCnt]}</td>
			<!--{else}-->
					<td class="SimRedBoldTd" nowrap>{$dspkuri[3][ymCnt]}</td>
			<!--{/if}-->
			<!--{/section}-->
				</tr>
			<!--{section name=item loop=$bData}-->
				<!--{section name=item2 loop=$dData[item]}-->
				<tr>
					<!-- 集計金額表示 -->
					<!--{if $smarty.section.item2.index == 0}-->
					<th class="SimShikinSide" nowrap rowspan="{$dData[item]|@count}">{$bData[item][1]}</td>
					<!--{/if}-->
					<th class="SimShikinSide" nowrap><a href="javascript:lnk_input({$PHP_USER_NYUKIN}, '2',{$bData[item][0]}, {$dData[item][item2][0]}, '999');">{$dData[item][item2][1]}</a></td>
					<!--{section name=ymCnt loop=$dataYM}-->
						<!-- {if $comData[item][item2][1][ymCnt] == 1 }-->
							<td id="Td1_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}" class="SimShikinTd" nowrap onMouseOver="MoverStyle('1_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}');" onMouseOut="MoutStyle('1_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}');" onClick="lnk_input({$PHP_USER_NYUKIN}, '1',{$bData[item][0]}, {$dData[item][item2][0]}, '999');">
								<img src="./templates/img/writemini.gif" alt="コメントがあります">
						<!--{else}-->
							<td id="Td1_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}" class="SimShikinTd" nowrap onMouseOver="MoverStyle('1_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}');" onMouseOut="MoutStyle('1_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}');" onClick="lnk_input({$PHP_USER_NYUKIN}, '1',{$bData[item][0]}, {$dData[item][item2][0]}, '999');">
						<!--{/if}-->
								&nbsp;{$dspData[item][item2][3][ymCnt]}
							</td>
						<!-- {if $comData[item][item2][2][ymCnt] == 1 }-->
							<td id="Td2_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}" class="SimShikinTd" nowrap onMouseOver="MoverStyle('2_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}');" onMouseOut="MoutStyle('2_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}');" onClick="lnk_input({$PHP_USER_NYUKIN}, '2',{$bData[item][0]}, {$dData[item][item2][0]}, '999');">
								<img src="./templates/img/writemini.gif" alt="コメントがあります">
						<!--{else}-->
							<td id="Td2_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}" class="SimShikinTd" nowrap onMouseOver="MoverStyle('2_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}');" onMouseOut="MoutStyle('2_{$smarty.section.item.index}{$smarty.section.item2.index}{$smarty.section.ymCnt.index}');" onClick="lnk_input({$PHP_USER_NYUKIN}, '2',{$bData[item][0]}, {$dData[item][item2][0]}, '999');">
						<!--{/if}-->
								&nbsp;{$dspData[item][item2][4][ymCnt]}
							</td>
						<td class="SimShikinTd" nowrap>&nbsp;</td>
					<!--{/section}-->
				</tr>
				<!--{/section}-->
				<tr>
					<th class="Sim_kaku_s" nowrap colspan="2">{$bData[item][1]}小計</td>
					<!--{section name=ymCnt loop=$dataYM}-->
						<td class="Sim_kaku_s" nowrap>&nbsp;{$dspminiTotal[item][1][ymCnt]}</td>
						<td class="Sim_kaku_s" nowrap>&nbsp;{$dspminiTotal[item][2][ymCnt]}</td>
					<!--{if intval($dspminiTotal[item][3][ymCnt]) >= 0}-->
						<td class="Sim_kaku_s" nowrap>&nbsp;{$dspminiTotal[item][3][ymCnt]}</td>
					<!--{else}-->
						<td class="SimRedBoldTd" nowrap>&nbsp;{$dspminiTotal[item][3][ymCnt]}</td>
					<!--{/if}-->
					<!--{/section}-->
				</tr>
			<!--{/section}-->
				<tr>
					<th class="SimKeihiTd" nowrap colspan="2">入出金計</td>
					<!--{section name=ymCnt loop=$dataYM}-->
						<td class="SimKeihiTd" nowrap>&nbsp;{$dspkeihi[1][ymCnt]}</td>
						<td class="SimKeihiTd" nowrap>&nbsp;{$dspkeihi[2][ymCnt]}</td>
					<!--{if intval($dspkeihi[3][ymCnt]) >= 0}-->
						<td class="SimKeihiTd" nowrap>&nbsp;{$dspkeihi[3][ymCnt]}</td>
					<!--{else}-->
						<td class="SimRedBoldTd" nowrap>&nbsp;{$dspkeihi[3][ymCnt]}</td>
					<!--{/if}-->
					<!--{/section}-->
				</tr>
				<tr>
					<th class="SimChoseTd" nowrap colspan="2">予実算差額調整</td>
					<!--{section name=ymCnt loop=$dataYM}-->
						<td class="SimChoseTd" nowrap><input name="shikin[1][]" type="text" size="8" style="text-align:right;" value="{$shikin[1][ymCnt]}"></td>
						<td class="SimChoseTd" nowrap><input name="shikin[2][]" type="text" size="8" style="text-align:right;" value="{$shikin[2][ymCnt]}"></td>
						<td class="SimChoseTd" nowrap>&nbsp;{$dspshikin[3][ymCnt]}<input type="hidden" name="shikin[4][]" value="{$dataYM[ymCnt][0]}/{$dataYM[ymCnt][1]}"></td>
					<!--{/section}-->
				</tr>
				<tr>
					<th class="SimShikinHead" nowrap rowspan="2" colspan="2">&nbsp;</td>
			<!--{section name=ymCnt loop=$dataYM}-->
					<th class="SimShikinHead" nowrap>{$DEFARR[9]}</td>
					<th class="SimShikinHead" nowrap>{$DEFARR[8]}</td>
					<th class="SimShikinHead" nowrap>残高</td>
			<!--{/section}-->
				</tr>
				<tr>
			<!--{section name=ymCnt loop=$dataYM}-->
					<th class="SimShikinHead" nowrap colspan="3">{$dataYM[ymCnt][1]}月</td>
			<!--{/section}-->
				</tr>
			</table>
			<table>
				<tr>
					<td class="SimMainHead" rowspan="2">
						<span class="SimCommentBox" style="width:340px;">
						※ご注意<br>
						  予実算差額調整は直接入力し、<br>
						  「資金繰表更新」をクリックしてください。
						</span>
					</td>
					<td class="SimMainHead">
						<input type="button" class="SimCancelButton" value=" メニューへ " onclick="location.href='SIM0100.php'">
					</td>
					<td class="SimMainHead">
						  <input type="button" class="SimCancelButton" value=" 印刷画面へ " onclick="show_print();">
					</td>
					<td>
						<span class="SimComment">(単位:{$sUnitName})</span>
					</td>
				</tr>
				<tr>
					<td class="SimMainHead">
						<input type="button" class="SimOkButton" value="資金繰表更新" onclick="chk_up();">
					</td>
					<td class="SimMainHead" colspan="2">
						  <input type="button" class="SimOkButton" value="CSVファイル出力" onclick="csv_dl();">
					</td>
				</tr>
			</table>
		</div>
	</div>

<!--{if $DISP_CNT == "3" || $DISP_CNT == ""}-->
	<div class="SimUserinfo">
<!--{elseif $DISP_CNT == "6"}-->
	<div class="SimUserinfo6">
<!--{else}-->
	<div class="SimUserinfo12">
<!--{/if}-->

		<span class="NameText"></span>
		<span id="SimSpace"><!-- space --></span>
		<span class="LinkText">
			<a href = "{$DEFARR[1]}" target="_blank">ホームページへ</a>
		</span>
	</div>

<!--{if $DISP_CNT == "3" || $DISP_CNT == ""}-->
	<div class="SimFooter">
<!--{elseif $DISP_CNT == "6"}-->
	<div class="SimFooter6">
<!--{else}-->
	<div class="SimFooter12">
<!--{/if}-->
		<a href="{$DEFARR[3]}" target="_blank" title="メディアテック(株)ホームページへ">&#169; Copyright2006-2009 All rights reserved by  Mediatech. Co., Ltd.</a>
	</div>
</div>

<input type="hidden" name="hidKaishi" value="{$hidKaishi}">
<input type="hidden" name="sMode" value="">
<input type="hidden" name="bSeq" value="">
<input type="hidden" name="dSeq" value="">
</form>
</body>
</html>