%%6B^6B7^6B740F27%%MST1210.tpl.php
4.48 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
<?php /* Smarty version 2.6.26, created on 2017-06-01 09:09:55
compiled from MST1210.tpl */ ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META name="GENERATOR" content="Microsoft FrontPage 4.0">
<META http-equiv="Content-Type" content="text/html; charset=EUC-JP">
<META http-equiv="Content-Style-Type" content="text/css">
<link href="./css/style.css" rel="stylesheet" type="text/css">
<TITLE>め〜るNiポン!</TITLE>
<script>
<?php echo '
function Data_Input(group_id){
document.frm.group_id.value=group_id;
document.frm.action = "MST1211.php";
document.frm.method = "POST";
document.frm.submit();
return;
}
function Data_Delete(group_id){
if(confirm(\'グループを削除します。\\n本当に削除してもよろしいですか?\')){
document.frm.pMode.value = "3";
document.frm.group_id.value = group_id;
document.frm.action = "MST1212.php";
document.frm.method = "POST";
document.frm.submit();
return;
}
}
'; ?>
</script>
</HEAD>
<BODY bgcolor="White">
<FORM name="frm">
<!-- ヘッダー表示 -->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'header.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<!-- メニュー表示 -->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'menu.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<!-- 一覧表示 -->
<table width="100%" border="0">
<tr>
<th><B><FONT color=blue size=5>グループ一覧</FONT></B></th>
</tr>
</table>
<HR>
<input type="button" value= "新規追加" onclick="Data_Input('')">
<table border="0" width="100%">
<tr>
<td align="center">
<table cellspacing="1" cellpadding="1" border="1">
<tr>
<td width="250" align="center" bgcolor="#FFCC99"><FONT size="2"><B>グループ名</B></FONT></td>
<td width="20" align="center" bgcolor="#FFCC99"> </td>
</tr>
<?php unset($this->_sections['item']);
$this->_sections['item']['name'] = 'item';
$this->_sections['item']['loop'] = is_array($_loop=$this->_tpl_vars['group_id']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['item']['show'] = true;
$this->_sections['item']['max'] = $this->_sections['item']['loop'];
$this->_sections['item']['step'] = 1;
$this->_sections['item']['start'] = $this->_sections['item']['step'] > 0 ? 0 : $this->_sections['item']['loop']-1;
if ($this->_sections['item']['show']) {
$this->_sections['item']['total'] = $this->_sections['item']['loop'];
if ($this->_sections['item']['total'] == 0)
$this->_sections['item']['show'] = false;
} else
$this->_sections['item']['total'] = 0;
if ($this->_sections['item']['show']):
for ($this->_sections['item']['index'] = $this->_sections['item']['start'], $this->_sections['item']['iteration'] = 1;
$this->_sections['item']['iteration'] <= $this->_sections['item']['total'];
$this->_sections['item']['index'] += $this->_sections['item']['step'], $this->_sections['item']['iteration']++):
$this->_sections['item']['rownum'] = $this->_sections['item']['iteration'];
$this->_sections['item']['index_prev'] = $this->_sections['item']['index'] - $this->_sections['item']['step'];
$this->_sections['item']['index_next'] = $this->_sections['item']['index'] + $this->_sections['item']['step'];
$this->_sections['item']['first'] = ($this->_sections['item']['iteration'] == 1);
$this->_sections['item']['last'] = ($this->_sections['item']['iteration'] == $this->_sections['item']['total']);
?>
<tr>
<td >
<FONT size="2"><a href="#" onclick="return Data_Input('<?php echo $this->_tpl_vars['group_id'][$this->_sections['item']['index']]; ?>
')"><?php echo $this->_tpl_vars['group_name'][$this->_sections['item']['index']]; ?>
</a></FONT>
</td>
<td align="center">
<input type="button" class="btnDelete" value= "削除" onclick="Data_Delete('<?php echo $this->_tpl_vars['group_id'][$this->_sections['item']['index']]; ?>
')">
</td>
</tr>
<?php endfor; endif; ?>
</table>
</td>
</tr>
</table>
<!-- フッター表示 -->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<INPUT type="hidden" name="group_id" value="">
<INPUT type="hidden" name="pMode" value="">
</FORM>
</BODY>
</HTML>