1 | ({$inc_header|smarty:nodefaults}) |
---|
2 | ({ext_include file="inc_subnavi_adminSNSConfig.tpl"}) |
---|
3 | |
---|
4 | ({assign var="page_name" value="プロフィール項目設定"}) |
---|
5 | ({ext_include file="inc_tree_adminSNSConfig.tpl"}) |
---|
6 | </div> |
---|
7 | |
---|
8 | ({*ここまで:navi*}) |
---|
9 | |
---|
10 | ({if $msg})<p class="actionMsg">({$msg})</p>({/if}) |
---|
11 | <h2>プロフィール項目設定</h2> |
---|
12 | <div class="contents"> |
---|
13 | <h3 class="item" id="ttl01">プロフィール項目一覧</h3> |
---|
14 | <p id="itemAdd"><a href="?m=({$module_name})&a=page_({$hash_tbl->hash('insert_c_profile')})">プロフィール項目追加</a></p> |
---|
15 | |
---|
16 | <form action="./" method="post"> |
---|
17 | <input type="hidden" name="m" value="({$module_name})" /> |
---|
18 | <input type="hidden" name="a" value="do_({$hash_tbl->hash('update_profile_sort_order','do')})" /> |
---|
19 | <input type="hidden" name="sessid" value="({$PHPSESSID})" /> |
---|
20 | |
---|
21 | <table class="basicType2" id="itemList"> |
---|
22 | <thead> |
---|
23 | <tr> |
---|
24 | <th colspan="2">操作</th> |
---|
25 | <th>ID</th> |
---|
26 | <th>項目名</th> |
---|
27 | <th>識別名</th> |
---|
28 | <th>必須</th> |
---|
29 | <th>公開設定<br />変更の可否</th> |
---|
30 | <th>公開設定<br />デフォルト値</th> |
---|
31 | <th>フォームタイプ</th> |
---|
32 | <th>並び順<br />(昇順)</th> |
---|
33 | <th>選択肢</th> |
---|
34 | <th>登録</th> |
---|
35 | <th>変更</th> |
---|
36 | <th>検索</th> |
---|
37 | </tr> |
---|
38 | </thead> |
---|
39 | <tbody> |
---|
40 | ({capture name="nick"}) |
---|
41 | <tr class="default"> |
---|
42 | <td class="cell01A"> </td> |
---|
43 | <td class="cell01B"> </td> |
---|
44 | <td class="cell02">-</td> |
---|
45 | <td class="cell03">ニックネーム</td> |
---|
46 | <td class="cell04"> </td> |
---|
47 | <td class="cell05">○</td> |
---|
48 | <td class="cell06">×</td> |
---|
49 | <td class="cell07">全員に公開</td> |
---|
50 | <td class="cell08">テキスト</td> |
---|
51 | <td class="cell09"><input type="text" class="basic" name="sort_order_nick" size="5" value="({$smarty.const.SORT_ORDER_NICK})" /></td> |
---|
52 | <td class="cell10"> </td> |
---|
53 | <td class="cell11">○</td> |
---|
54 | <td class="cell12">○</td> |
---|
55 | <td class="cell13">○</td> |
---|
56 | </tr> |
---|
57 | ({/capture}) |
---|
58 | ({capture name="birth"}) |
---|
59 | <tr class="default"> |
---|
60 | <td class="cell01A"> </td> |
---|
61 | <td class="cell01B"> </td> |
---|
62 | <td class="cell02">-</td> |
---|
63 | <td class="cell03">生まれた年</td> |
---|
64 | <td class="cell04"> </td> |
---|
65 | <td class="cell05">○</td> |
---|
66 | <td class="cell06">○</td> |
---|
67 | <td class="cell07">全員に公開</td> |
---|
68 | <td class="cell08">テキスト</td> |
---|
69 | <td class="cell09" rowspan="2"><input type="text" class="basic" name="sort_order_birth" size="5" value="({$smarty.const.SORT_ORDER_BIRTH})" /></td> |
---|
70 | <td class="cell10"> </td> |
---|
71 | <td class="cell11">○</td> |
---|
72 | <td class="cell12">○</td> |
---|
73 | <td class="cell13">○</td> |
---|
74 | </tr> |
---|
75 | <tr class="default"> |
---|
76 | <td class="cell01A"> </td> |
---|
77 | <td class="cell01B"> </td> |
---|
78 | <td class="cell02">-</td> |
---|
79 | <td class="cell03">誕生日</td> |
---|
80 | <td class="cell04"> </td> |
---|
81 | <td class="cell05">○</td> |
---|
82 | <td class="cell06">×</td> |
---|
83 | <td class="cell07">全員に公開</td> |
---|
84 | <td class="cell08">単一選択(プルダウン)</td> |
---|
85 | <td class="cell09"> </td> |
---|
86 | <td class="cell11">○</td> |
---|
87 | <td class="cell12">○</td> |
---|
88 | <td class="cell13">○</td> |
---|
89 | </tr> |
---|
90 | ({/capture}) |
---|
91 | |
---|
92 | ({foreach name=prof from=$c_profile_list item=item}) |
---|
93 | ({strip}) |
---|
94 | |
---|
95 | ({if !$_cnt_nick && $item.sort_order >= $smarty.const.SORT_ORDER_NICK |
---|
96 | && !$_cnt_birth && $item.sort_order >= $smarty.const.SORT_ORDER_BIRTH}) |
---|
97 | ({counter assign="_cnt_nick"}) |
---|
98 | ({counter assign="_cnt_birth"}) |
---|
99 | ({if $smarty.const.SORT_ORDER_NICK > $smarty.const.SORT_ORDER_BIRTH}) |
---|
100 | ({$smarty.capture.birth|smarty:nodefaults}) |
---|
101 | ({$smarty.capture.nick|smarty:nodefaults}) |
---|
102 | ({else}) |
---|
103 | ({$smarty.capture.nick|smarty:nodefaults}) |
---|
104 | ({$smarty.capture.birth|smarty:nodefaults}) |
---|
105 | ({/if}) |
---|
106 | ({/if}) |
---|
107 | |
---|
108 | ({if !$_cnt_nick && $item.sort_order >= $smarty.const.SORT_ORDER_NICK}) |
---|
109 | ({counter assign="_cnt_nick"}) |
---|
110 | ({$smarty.capture.nick|smarty:nodefaults}) |
---|
111 | ({/if}) |
---|
112 | |
---|
113 | ({if !$_cnt_birth && $item.sort_order >= $smarty.const.SORT_ORDER_BIRTH}) |
---|
114 | ({counter assign="_cnt_birth"}) |
---|
115 | ({$smarty.capture.birth|smarty:nodefaults}) |
---|
116 | ({/if}) |
---|
117 | |
---|
118 | ({/strip}) |
---|
119 | <tr> |
---|
120 | <td class="cell01A"><a href="?m=({$module_name})&a=page_({$hash_tbl->hash('update_c_profile')})&c_profile_id=({$item.c_profile_id})">変更</a></td> |
---|
121 | <td class="cell01B"><a href="?m=({$module_name})&a=page_({$hash_tbl->hash('delete_c_profile')})&c_profile_id=({$item.c_profile_id})">削除</a></td> |
---|
122 | <td class="cell02">({$item.c_profile_id})</td> |
---|
123 | <td class="cell03">({$item.caption})</td> |
---|
124 | <td class="cell04">({$item.name})</td> |
---|
125 | <td class="cell05">({if $item.is_required})○({else})×({/if})</td> |
---|
126 | <td class="cell06">({if $item.public_flag_edit})○({else})×({/if})</td> |
---|
127 | <td class="cell07">({if $item.public_flag_default == 'private'})公開しない({elseif $item.public_flag_default == 'friend'})({$WORD_MY_FRIEND})まで公開({else})全員に公開({/if})</td> |
---|
128 | <td class="cell08">({if $item.form_type == 'text'})テキスト({elseif $item.form_type == 'textlong'})テキスト(長)({elseif $item.form_type == 'textarea'})テキスト(複数行)({elseif $item.form_type == 'select'})単一選択(プルダウン)({elseif $item.form_type == 'radio'})単一選択(ラジオボタン)({elseif $item.form_type == 'checkbox'})複数選択(チェックボックス)({/if})</td> |
---|
129 | <td class="cell09">({$item.sort_order})</td> |
---|
130 | <td class="cell10">({if $item.form_type == 'select' || $item.form_type == 'checkbox' || $item.form_type == 'radio'})<a href="#opt_({$item.name})">一覧</a>({else}) ({/if})</td> |
---|
131 | <td class="cell11">({if $item.disp_regist})○({else})×({/if})</td> |
---|
132 | <td class="cell12">({if $item.disp_config})○({else})×({/if})</td> |
---|
133 | <td class="cell13">({if $item.disp_search})○({else})×({/if})</td> |
---|
134 | </tr> |
---|
135 | ({/foreach}) |
---|
136 | |
---|
137 | ({if !$_cnt_nick && !$_cnt_birth}) |
---|
138 | ({if $smarty.const.SORT_ORDER_NICK > $smarty.const.SORT_ORDER_BIRTH}) |
---|
139 | ({$smarty.capture.birth|smarty:nodefaults}) |
---|
140 | ({$smarty.capture.nick|smarty:nodefaults}) |
---|
141 | ({else}) |
---|
142 | ({$smarty.capture.nick|smarty:nodefaults}) |
---|
143 | ({$smarty.capture.birth|smarty:nodefaults}) |
---|
144 | ({/if}) |
---|
145 | ({else}) |
---|
146 | ({if !$_cnt_nick})({$smarty.capture.nick|smarty:nodefaults})({/if}) |
---|
147 | ({if !$_cnt_birth})({$smarty.capture.birth|smarty:nodefaults})({/if}) |
---|
148 | ({/if}) |
---|
149 | |
---|
150 | <tr> |
---|
151 | <td colspan="9"> </td> |
---|
152 | <td class="cell09"><span class="textBtnS"><input type="submit" value="変更" /></span></td> |
---|
153 | <td colspan="4"> </td |
---|
154 | ></tr> |
---|
155 | </table> |
---|
156 | </form> |
---|
157 | |
---|
158 | <h3 class="item" id="ttl02">プロフィール選択肢一覧</h3> |
---|
159 | <ul class="caution" id="c01"> |
---|
160 | <li>一項目ずつしか変更できません。</li> |
---|
161 | <li>選択肢を削除するとその選択肢を選択していたメンバーの値が(たとえ必須項目であっても)空になります。</li> |
---|
162 | </ul> |
---|
163 | |
---|
164 | ({foreach from=$c_profile_list item=item}) |
---|
165 | ({if $item.form_type == 'select' || $item.form_type == 'checkbox' || $item.form_type == 'radio'}) |
---|
166 | |
---|
167 | <h4><a name="opt_({$item.name})">({$item.caption})</a></h4> |
---|
168 | |
---|
169 | <table class="basicType2"> |
---|
170 | <tr> |
---|
171 | <th>項目名</th> |
---|
172 | <th>並び順</th> |
---|
173 | <th colspan="2">操作</th> |
---|
174 | </tr> |
---|
175 | ({foreach from=$item.options item=option}) |
---|
176 | <tr> |
---|
177 | <form action="./" method="post"> |
---|
178 | <td> |
---|
179 | <input type="hidden" name="m" value="({$module_name})" /> |
---|
180 | <input type="hidden" name="a" value="do_({$hash_tbl->hash('update_c_profile_option','do')})" /> |
---|
181 | <input type="hidden" name="sessid" value="({$PHPSESSID})" /> |
---|
182 | <input type="hidden" name="c_profile_option_id" value="({$option.c_profile_option_id})" /> |
---|
183 | <input type="text" class="basic" name="value" value="({$option.value})" size="20" /></td> |
---|
184 | <td><input type="text" class="basic" name="sort_order" value="({$option.sort_order})" size="5" /></td> |
---|
185 | <td><span class="textBtnS"><input type="submit" value="変更" /></span></td> |
---|
186 | </form> |
---|
187 | <form action="./" method="post"> |
---|
188 | <td> |
---|
189 | <input type="hidden" name="m" value="({$module_name})" /> |
---|
190 | <input type="hidden" name="a" value="do_({$hash_tbl->hash('delete_c_profile_option','do')})" /> |
---|
191 | <input type="hidden" name="sessid" value="({$PHPSESSID})" /> |
---|
192 | <input type="hidden" name="c_profile_option_id" value="({$option.c_profile_option_id})" /> |
---|
193 | <span class="textBtnS"><input type="submit" value="削除" /></span> |
---|
194 | </td> |
---|
195 | </form> |
---|
196 | </tr> |
---|
197 | </form> |
---|
198 | ({/foreach}) |
---|
199 | <tr> |
---|
200 | <form action="./" method="post"> |
---|
201 | <td> |
---|
202 | <input type="hidden" name="m" value="({$module_name})" /> |
---|
203 | <input type="hidden" name="a" value="do_({$hash_tbl->hash('insert_c_profile_option','do')})" /> |
---|
204 | <input type="hidden" name="sessid" value="({$PHPSESSID})" /> |
---|
205 | <input type="hidden" name="c_profile_id" value="({$item.c_profile_id})" /> |
---|
206 | <input type="text" class="basic" name="value" value="" size="20" /></td> |
---|
207 | <td><input type="text" class="basic" name="sort_order" value="" size="5" /></td> |
---|
208 | <td colspan="2"><span class="textBtnS"><input type="submit" value="項目追加" /></span></td> |
---|
209 | </form> |
---|
210 | </tr> |
---|
211 | </table> |
---|
212 | |
---|
213 | ({/if}) |
---|
214 | ({/foreach}) |
---|
215 | |
---|
216 | ({$inc_footer|smarty:nodefaults}) |
---|