SIM0940.tpl
5.2 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
<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(){
if(mycheck(document.frm.sMoney.value) == false){
alert("不正な金額が入力されています");
return false;
}
if( eval(document.frm.sMoney.value) < 0){
alert("マイナスの金額は入力できません");
return false;
}
document.frm.action = "SIM0941.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 tabInit(mode){
//テーブルのクリア確認
if(confirm("全ての入出金データは消去されます\nよろしいですか?")){
if(confirm("データ消去を実行します\n本当によろしいですか?")){
document.frm.mode.value = mode;
document.frm.action = "SIM0942.php";
document.frm.method="POST";
document.frm.submit();
}else{
return false;
}
}else{
return false;
}
}
-->
</script>
{/literal}
<title>{$PHP_SYSNAME}</title>
<link rel="stylesheet" href="./templates/SIM.css" type="text/css" />
</head>
<body>
<form name="frm">
<div class="LoginBody">
<div class="LoginHeader">
<img src="./templates/img/logo.gif" alt="{$PHP_SYSNAME}" border="0">
</div>
<div class="MenuUserinfo">
<span class="NameText">{$PHP_GROUP_NAME} / {$PHP_BUMON_NAME} / {$PHP_USER_NAME}</span>
<span class="LinkText">
<a href = "./help/HELP0940.html" target="_blank">ヘルプ</a> /
<a href = "SIM9999.php">ログアウト</a>
</span>
</div>
<div class="ConfOutline">
<div class="ConfTitle">
初期データ設定
</div>
<div class="ConfMain">
<!--{if $PHP_USER_ADMIN == 1 || $PHP_USER_ADMIN == 99}-->
<div class="MenuButton">
<input type="button" class="SimCancelButton" value="メニューへ" onclick="location.href='SIM0100.php'">
</div>
<table>
<tr>
<td style="width:210px;">
<table class="ConfTable" padding="5">
<tr>
<th>開始年月</th>
<td colspan="2">
{$sYear}年 {$sMonth}月
<input type="hidden" name="sYear" value="{$sYear}">
<input type="hidden" name="sMonth" value="{$sMonth}">
</td>
</tr>
<tr>
<th>金額単位</th>
<td>
<select name="sUnit">
<!--{if $sUnit == 1}--><option value="1" selected><!--{else}--><option value="1"><!--{/if}-->千円</option>
<!--{if $sUnit == 2}--><option value="2" selected><!--{else}--><option value="2"><!--{/if}-->万円</option>
<!--{if $sUnit == 0}--><option value="0" selected><!--{else}--><option value="0"><!--{/if} -->円</option>
</select>
</td>
<td rowspan="2"><input type="button" value="設定" onclick="chk_up();"></td>
</tr>
<tr>
<th>初期繰越金</th>
<td>
<input type="text" size="10" name="sMoney" value="{$sMoney}" style="text-align:right;">
</td>
</tr>
</table>
<br>
</td>
<td>
<span class="SimCommentbox" style="width:300px;">
※ご注意<br>
「設定」のクリックで金額単位、初期繰越金を<br>
確定します。<br>
金額単位を変更する場合、入力済みの金額は<br>
変更後の単位に合わせて修正してください。<br>
<br>
データクリア、データ初期化を行うと、<br>
入力金額、各区分は全てクリアされます。<br>
ご注意ください。<br>
初期化後も、それぞれの設定画面から<br>
自由に区分の編集が可能です。<br>
</span>
</td>
</tr>
<tr>
<td colspan="2">
<table class="ConfTable" padding="5">
<tr>
<th>データクリア</th>
<td colspan="2"><input type="button" name="btnCrear" value="項目とデータを全てクリア" onClick="tabInit('clear');"></td>
</tr>
<tr>
<th>データ初期化</th>
<td>
<input type="radio" name="rdodb" id="db1" value="1" checked>
<label for="db1">初期サンプルデータ1(<a href="./templates/img/sample1.gif" target="_blank">sample</a>)</label><br>
<input type="radio" name="rdodb" id="db2" value="2">
<label for="db2">初期サンプルデータ2(<a href="./templates/img/sample2.gif" target="_blank">sample</a>)</label><br>
<!--
<input type="radio" name="rdodb" id="db3" value="3">
<label for="db3">初期サンプルデータ3(<a href="" target="_blank">sample</a>)</label>
-->
</td>
<td>
<input type="button" name="btnDefault" value="初期状態に戻す" onClick="tabInit('default');">
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<!--{else}-->
<a href="SIM0100.php"><span class="Normalfont">マスタ変更権限がありません</span></a>
<!--{/if}-->
</div>
</div>
<div class="MenuUserinfo">
<span class="NameText"></span>
<span class="LinkText">
<a href = "{$DEFARR[1]}" target="_blank">ホームページへ</a>
</span>
</div>
<div class="LoginFooter">
<a href="{$DEFARR[3]}" target="_blank" title="メディアテック(株)ホームページへ">© Copyright2006-2009 All rights reserved by Mediatech. Co., Ltd.</a>
</div>
</div>
<input type="hidden" name="mode" value="">
</form>
</body>
</html>