質問編集履歴
2
formの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -129,3 +129,39 @@
|
|
129
129
|
|
130
130
|
|
131
131
|
```
|
132
|
+
|
133
|
+
### 該当のソースコード
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
```form
|
138
|
+
|
139
|
+
<form>
|
140
|
+
|
141
|
+
{foreach from=$iconlist item=iconvalue name=icon}
|
142
|
+
|
143
|
+
{if $smarty.foreach.icon.index == 3}
|
144
|
+
|
145
|
+
<br>
|
146
|
+
|
147
|
+
{/if}
|
148
|
+
|
149
|
+
{if $smarty.foreach.icon.index == 6}
|
150
|
+
|
151
|
+
<br>
|
152
|
+
|
153
|
+
{/if}
|
154
|
+
|
155
|
+
{if $smarty.foreach.icon.index == 9}
|
156
|
+
|
157
|
+
<br>
|
158
|
+
|
159
|
+
{/if}
|
160
|
+
|
161
|
+
{$iconvalue}
|
162
|
+
|
163
|
+
{/foreach}
|
164
|
+
|
165
|
+
</form>
|
166
|
+
|
167
|
+
```
|
1
ボタンのソース追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -98,4 +98,34 @@
|
|
98
98
|
|
99
99
|
cols="45" wrap="hard" autocomplete="off" placeholder="絵文字入力"required>
|
100
100
|
|
101
|
+
|
102
|
+
|
103
|
+
$iconlist = array(
|
104
|
+
|
105
|
+
'<button type="button" value="💪" class="square_btn">💪</button>',
|
106
|
+
|
107
|
+
'<button type="button" value="🍇" class="square_btn">🍇</button>',
|
108
|
+
|
109
|
+
'<button type="button" value="⚽" class="square_btn">⚽</button>',
|
110
|
+
|
111
|
+
'<button type="button" value="🎶" class="square_btn">🎶</button>',
|
112
|
+
|
113
|
+
'<button type="button" value="🎮" class="square_btn">🎮</button>',
|
114
|
+
|
115
|
+
'<button type="button" value="🍀" class="square_btn">🍀</button>',
|
116
|
+
|
117
|
+
'<button type="button" value="🍟" class="square_btn">🍟</button>',
|
118
|
+
|
119
|
+
'<button type="button" value="🌙" class="square_btn">🌙</button>',
|
120
|
+
|
121
|
+
'<button type="button" value="🍞" class="square_btn">🍞</button>',
|
122
|
+
|
123
|
+
'<button type="button" value="🎤" class="square_btn">🎤</button>',
|
124
|
+
|
125
|
+
);
|
126
|
+
|
127
|
+
shuffle($iconlist);
|
128
|
+
|
129
|
+
|
130
|
+
|
101
131
|
```
|