ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 5894


Ignore:
Timestamp:
Mar 20, 2008, 7:41:10 PM (15 years ago)
Author:
ogawa
Message:

#1952:h_config_profのformTable(入力フォームテーブル)をXHTML+CSS化

Location:
OpenPNE/branches/prj/xhtmlcss/OpenPNE-2.11.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/prj/xhtmlcss/OpenPNE-2.11.4/public_html/xhtml_style.php

    r5864 r5894  
    738738        width: 99%;
    739739}
     740.formTable input.input_text_long {
     741        width: 99%;
     742}
    740743.formTable table table td.publicSelector {
    741744        width: 150px;
  • OpenPNE/branches/prj/xhtmlcss/OpenPNE-2.11.4/webapp/modules/pc/templates/h_config_prof.tpl

    r5823 r5894  
    22<div id="Center">
    33
    4 ({* #1952 *})<!-- ******ここから:プロフィール変更****** -->
    5 ({* #1952 *})({t_form_block m=pc a=do_h_config_prof})
    6 ({* #1952 *})
    7 ({* #1952 *})
    8 ({* #1952 *})<table border="0" cellspacing="0" cellpadding="0" style="width:650px;margin:0px auto;" class="border_07">
    9 ({* #1952 *})<tr>
    10 ({* #1952 *})<td style="width:7px;" class="bg_00"><img src="./skin/dummy.gif" alt="square" class="square"></td>
    11 ({* #1952 *})<td style="width:636px;" class="bg_00"><img src="./skin/dummy.gif" alt="square" class="square"></td>
    12 ({* #1952 *})<td style="width:7px;" class="bg_00"><img src="./skin/dummy.gif" alt="square" class="square"></td>
    13 ({* #1952 *})</tr>
    14 ({* #1952 *})<tr>
    15 ({* #1952 *})<td class="bg_00"><img src="./skin/dummy.gif" alt="square" class="square"></td>
    16 ({* #1952 *})<td class="bg_01" align="center">
    17 ({* #1952 *})<!-- *ここから:プロフィール変更>内容* -->
    18 ({* #1952 *})({*ここから:header*})
    19 ({* #1952 *})<!-- ここから:小タイトル -->
    20 ({* #1952 *})<table border="0" cellspacing="0" cellpadding="0" style="width:636px;" class="border_01">
    21 ({* #1952 *})<tr>
    22 ({* #1952 *})<td style="width:36px;" class="bg_06"><img src="({t_img_url_skin filename=content_header_1})" style="width:30px;height:20px;" class="dummy"></td>
    23 ({* #1952 *})<td style="width:458px;padding:2px 0px;" class="bg_06">
    24 ({* #1952 *})<span class="b_b c_00">プロフィール変更</span>&nbsp;&nbsp;(<span class="caution">※</span>の項目は必須です)
    25 ({* #1952 *})</td>
    26 ({* #1952 *})<td style="width:140px;padding:2px 10px;" align="right" class="bg_06">&nbsp;
    27 ({* #1952 *})({if $SSL_SELECT_URL})
    28 ({* #1952 *})<a href="({$SSL_SELECT_URL})">({if $HTTPS})標準(http)({else})SSL(https)({/if})はこちら</a>
    29 ({* #1952 *})({/if})
    30 ({* #1952 *})</td>
    31 ({* #1952 *})</tr>
    32 ({* #1952 *})</table>
    33 ({* #1952 *})<!-- ここまで:小タイトル -->
    34 ({* #1952 *})({*ここまで:header*})
    35 ({* #1952 *})({*ここから:body*})
    36 ({* #1952 *})<!-- ここから:主内容 -->
    37 ({* #1952 *})<table border="0" cellspacing="0" cellpadding="0" style="width:636px;">
    38 ({* #1952 *})({*********})
    39 ({* #1952 *})<tr>
    40 ({* #1952 *})<td style="width:636px;height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    41 ({* #1952 *})</tr>
    42 ({* #1952 *})({*********})
    43 ({* #1952 *})({capture name="nick"})
    44 ({* #1952 *})<tr>
    45 ({* #1952 *})<td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    46 ({* #1952 *})<td style="width:150px;" class="bg_05" align="left" valign="middle">
    47 ({* #1952 *})
    48 ({* #1952 *})<div class="padding_s">
    49 ({* #1952 *})
    50 ({* #1952 *})ニックネーム <span class="caution">※</span>
    51 ({* #1952 *})
    52 ({* #1952 *})</div>
    53 ({* #1952 *})
    54 ({* #1952 *})</td>
    55 ({* #1952 *})<td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    56 ({* #1952 *})<td style="width:483px;" class="bg_02" align="left" valign="middle">
    57 ({* #1952 *})
    58 ({* #1952 *})<div class="padding_s">
    59 ({* #1952 *})
    60 ({* #1952 *})<input type="text" class="text" name="nickname" value="({$c_member.nickname})" size="30"><br>
    61 ({* #1952 *})
    62 ({* #1952 *})</div>
    63 ({* #1952 *})
    64 ({* #1952 *})</td>
    65 ({* #1952 *})<td style="width:1px;" class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    66 ({* #1952 *})</tr>
    67 ({* #1952 *})({*********})
    68 ({* #1952 *})<tr>
    69 ({* #1952 *})<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    70 ({* #1952 *})</tr>
    71 ({* #1952 *})({*********})
    72 ({* #1952 *})({/capture})
    73 ({* #1952 *})({capture name="birth"})
    74 ({* #1952 *})<tr>
    75 ({* #1952 *})<td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    76 ({* #1952 *})<td class="bg_05" align="left" valign="middle">
    77 ({* #1952 *})
    78 ({* #1952 *})<div class="padding_s">
    79 ({* #1952 *})
    80 ({* #1952 *})生まれた年 <span class="caution">※</span>
    81 ({* #1952 *})
    82 ({* #1952 *})</div>
    83 ({* #1952 *})
    84 ({* #1952 *})</td>
    85 ({* #1952 *})<td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    86 ({* #1952 *})<td class="bg_02" align="left" valign="middle">
    87 ({* #1952 *})
    88 ({* #1952 *})<table style="width:100%;border-collapse:collapse;padding:0">
    89 ({* #1952 *})<tr>
    90 ({* #1952 *})<td style="padding:0">
    91 ({* #1952 *})
    92 ({* #1952 *})<div class="padding_s">
    93 ({* #1952 *})
    94 ({* #1952 *})<input type="text" class="text" name="birth_year" value="({if $c_member.birth_year})({$c_member.birth_year})({/if})" size="10" maxlength="4">年
    95 ({* #1952 *})
    96 ({* #1952 *})</div>
    97 ({* #1952 *})
    98 ({* #1952 *})</td>
    99 ({* #1952 *})<td align="right">
    100 ({* #1952 *})
    101 ({* #1952 *})<div class="padding_s">
    102 ({* #1952 *})
    103 ({* #1952 *})<select name="public_flag_birth_year">
    104 ({* #1952 *})({html_options options=$public_flags selected=$c_member.public_flag_birth_year})
    105 ({* #1952 *})</select>
    106 ({* #1952 *})
    107 ({* #1952 *})</div>
    108 ({* #1952 *})
    109 ({* #1952 *})</td>
    110 ({* #1952 *})</tr>
    111 ({* #1952 *})</table>
    112 ({* #1952 *})
    113 ({* #1952 *})</td>
    114 ({* #1952 *})<td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    115 ({* #1952 *})</tr>
    116 ({* #1952 *})({*********})
    117 ({* #1952 *})<tr>
    118 ({* #1952 *})<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    119 ({* #1952 *})</tr>
    120 ({* #1952 *})({*********})
    121 ({* #1952 *})<tr>
    122 ({* #1952 *})<td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    123 ({* #1952 *})<td class="bg_05" align="left" valign="middle">
    124 ({* #1952 *})
    125 ({* #1952 *})<div class="padding_s">
    126 ({* #1952 *})
    127 ({* #1952 *})誕生日 <span class="caution">※</span>
    128 ({* #1952 *})
    129 ({* #1952 *})</div>
    130 ({* #1952 *})
    131 ({* #1952 *})</td>
    132 ({* #1952 *})<td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    133 ({* #1952 *})<td class="bg_02" align="left" valign="middle">
    134 ({* #1952 *})
    135 ({* #1952 *})<div class="padding_s">
    136 ({* #1952 *})
    137 ({* #1952 *})<select name="birth_month">
    138 ({* #1952 *})<option value="0">--
    139 ({* #1952 *})({foreach from=$month item=item})
    140 ({* #1952 *})<option value="({$item})"({if $c_member.birth_month==$item}) selected="selected"({/if})>({$item})
    141 ({* #1952 *})({/foreach})
    142 ({* #1952 *})</select>
    143 ({* #1952 *})月&nbsp;<select name="birth_day"><option value="0">--
    144 ({* #1952 *})({foreach from=$day item=item})
    145 ({* #1952 *})<option value="({$item})"({if $c_member.birth_day==$item}) selected="selected"({/if})>({$item})
    146 ({* #1952 *})({/foreach})
    147 ({* #1952 *})</select>日
    148 ({* #1952 *})
    149 ({* #1952 *})</div>
    150 ({* #1952 *})
    151 ({* #1952 *})</td>
    152 ({* #1952 *})<td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    153 ({* #1952 *})</tr>
    154 ({* #1952 *})({*********})
    155 ({* #1952 *})<tr>
    156 ({* #1952 *})<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    157 ({* #1952 *})</tr>
    158 ({* #1952 *})({*********})
    159 ({* #1952 *})({/capture})
    160 ({* #1952 *})
    161 ({* #1952 *})({foreach from=$profile_list item=profile})
    162 ({* #1952 *})({strip})
    163 ({* #1952 *})
    164 ({* #1952 *})({if !$_cnt_nick && $profile.sort_order >= $smarty.const.SORT_ORDER_NICK
     4({* {{{ formTable *})
     5<div class="dparts formTable"><div class="parts">
     6<div class="partsHeading"><h3>プロフィール変更</h3><p>(<strong>※</strong>の項目は必須です)</p>({if $SSL_SELECT_URL})<p class="link"><a href="({$SSL_SELECT_URL})">({if $HTTPS})標準(http)({else})SSL(https)({/if})はこちら</a></p>({/if})</div>
     7({t_form_block m=pc a=do_h_config_prof})
     8<table>
     9({capture name="nick"})
     10<tr>
     11<th>ニックネーム <strong>※</strong></th>
     12<td><input type="text" class="input_text" name="nickname" value="({$c_member.nickname})" size="30" /></td>
     13</tr>
     14({/capture})
     15({capture name="birth"})
     16<tr>
     17<th>生まれた年 <strong>※</strong></th>
     18<td>
     19<table><tr><td>
     20<input type="text" class="input_text" name="birth_year" value="({if $c_member.birth_year})({$c_member.birth_year})({/if})" size="10" maxlength="4" />年
     21</td><td class="publicSelector">
     22<select name="public_flag_birth_year">
     23({html_options options=$public_flags selected=$c_member.public_flag_birth_year})
     24</select>
     25</td></tr></table>
     26</td>
     27</tr>
     28<tr>
     29<th>誕生日 <strong>※</strong></th>
     30<td>
     31<select name="birth_month">
     32<option value="0">--</option>
     33({foreach from=$month item=item})
     34<option value="({$item})"({if $c_member.birth_month==$item}) selected="selected"({/if})>({$item})</option>
     35({/foreach})
     36</select>
     37月&nbsp;<select name="birth_day"><option value="0">--</option>
     38({foreach from=$day item=item})
     39<option value="({$item})"({if $c_member.birth_day==$item}) selected="selected"({/if})>({$item})</option>
     40({/foreach})
     41</select>日
     42</td>
     43</tr>
     44({/capture})
     45({foreach from=$profile_list item=profile})
     46({strip})
     47
     48({if !$_cnt_nick && $profile.sort_order >= $smarty.const.SORT_ORDER_NICK
    16549  && !$_cnt_birth && $profile.sort_order >= $smarty.const.SORT_ORDER_BIRTH})
    166 ({* #1952 *})({counter assign="_cnt_nick"})
    167 ({* #1952 *})({counter assign="_cnt_birth"})
    168 ({* #1952 *})({if $smarty.const.SORT_ORDER_NICK > $smarty.const.SORT_ORDER_BIRTH})
    169 ({* #1952 *})({$smarty.capture.birth|smarty:nodefaults})
    170 ({* #1952 *})({$smarty.capture.nick|smarty:nodefaults})
    171 ({* #1952 *})({else})
    172 ({* #1952 *})({$smarty.capture.nick|smarty:nodefaults})
    173 ({* #1952 *})({$smarty.capture.birth|smarty:nodefaults})
    174 ({* #1952 *})({/if})
    175 ({* #1952 *})({/if})
    176 ({* #1952 *})
    177 ({* #1952 *})({if !$_cnt_nick && $profile.sort_order >= $smarty.const.SORT_ORDER_NICK})
    178 ({* #1952 *})({counter assign="_cnt_nick"})
    179 ({* #1952 *})({$smarty.capture.nick|smarty:nodefaults})
    180 ({* #1952 *})({/if})
    181 ({* #1952 *})
    182 ({* #1952 *})({if !$_cnt_birth && $profile.sort_order >= $smarty.const.SORT_ORDER_BIRTH})
    183 ({* #1952 *})({counter assign="_cnt_birth"})
    184 ({* #1952 *})({$smarty.capture.birth|smarty:nodefaults})
    185 ({* #1952 *})({/if})
    186 ({* #1952 *})
    187 ({* #1952 *})({/strip})
    188 ({* #1952 *})({if $profile.disp_config})
    189 ({* #1952 *})<tr>
    190 ({* #1952 *})<td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    191 ({* #1952 *})<td class="bg_05" align="left" valign="middle">
    192 ({* #1952 *})
    193 ({* #1952 *})<div class="padding_s">
    194 ({* #1952 *})
    195 ({* #1952 *})({$profile.caption}) ({if $profile.is_required})<span class="caution">※</span>({/if})
    196 ({* #1952 *})
    197 ({* #1952 *})</div>
    198 ({* #1952 *})
    199 ({* #1952 *})</td>
    200 ({* #1952 *})<td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    201 ({* #1952 *})<td class="bg_02" align="left" valign="middle">
    202 ({* #1952 *})
    203 ({* #1952 *})<table style="width:100%;border-collapse:collapse;padding:0">
    204 ({* #1952 *})<tr>
    205 ({* #1952 *})<td style="padding:0;">
    206 ({* #1952 *})
    207 ({* #1952 *})<div class="padding_s">
    208 ({* #1952 *})
    209 ({* #1952 *})({strip})
    210 ({* #1952 *})({if $profile.form_type == 'text'})
    211 ({* #1952 *})    <input type="text" class="text" size="30" name="profile[({$profile.name})]" value="({$c_member.profile[$profile.name].value})">
    212 ({* #1952 *})({elseif $profile.form_type == 'textlong'})
    213 ({* #1952 *})    <input type="text" class="text" size="60" name="profile[({$profile.name})]" value="({$c_member.profile[$profile.name].value})">
    214 ({* #1952 *})({elseif $profile.form_type == 'textarea'})
    215 ({* #1952 *})    <textarea class="text" name="profile[({$profile.name})]" rows="6" cols="50" style="width:({if $profile.public_flag_edit})310({else})470({/if})px;">({$c_member.profile[$profile.name].value})</textarea>
    216 ({* #1952 *})({elseif $profile.form_type == 'select'})
    217 ({* #1952 *})    <select name="profile[({$profile.name})]">
    218 ({* #1952 *})    <option value="">選択してください</option>
    219 ({* #1952 *})    ({foreach item=item from=$profile.options})
    220 ({* #1952 *})    <option value="({$item.c_profile_option_id})"({if $c_member.profile[$profile.name].value == $item.value}) selected="selected"({/if})>({$item.value|default:"--"})</option>
    221 ({* #1952 *})    ({/foreach})
    222 ({* #1952 *})    </select>
    223 ({* #1952 *})({elseif $profile.form_type == 'radio'})
    224 ({* #1952 *})    <table>
    225 ({* #1952 *})    ({foreach item=item from=$profile.options})
    226 ({* #1952 *})    ({counter name=$profile.name assign=_cnt})
    227 ({* #1952 *})    ({if $_cnt % 3 == 1})<tr>({/if})
    228 ({* #1952 *})        <td><input type="radio" name="profile[({$profile.name})]" value="({$item.c_profile_option_id})"({if $c_member.profile[$profile.name].value == $item.value}) checked="checked"({/if}) class="no_bg"></td>
    229 ({* #1952 *})        <td>({$item.value|default:"--"})</td>
    230 ({* #1952 *})    ({if $_cnt % 3 == 0})</tr>({/if})
    231 ({* #1952 *})    ({/foreach})
    232 ({* #1952 *})    ({if $_cnt % 3 != 0})</tr>({/if})
    233 ({* #1952 *})    </table>
    234 ({* #1952 *})({elseif $profile.form_type == 'checkbox'})
    235 ({* #1952 *})    <table>
    236 ({* #1952 *})    ({foreach item=item from=$profile.options name=check})
    237 ({* #1952 *})    ({counter name=$profile.name assign=_cnt})
    238 ({* #1952 *})    ({if $_cnt % 3 == 1})<tr>({/if})
    239 ({* #1952 *})        <td><input type="checkbox" name="profile[({$profile.name})][]" value="({$item.c_profile_option_id})"({if $c_member.profile[$profile.name].value && in_array($item.value|smarty:nodefaults, $c_member.profile[$profile.name].value)}) checked="checked"({/if}) class="no_bg"></td>
    240 ({* #1952 *})        <td>({$item.value|default:"--"})</td>
    241 ({* #1952 *})    ({if $_cnt % 3 == 0})</tr>({/if})
    242 ({* #1952 *})    ({/foreach})
    243 ({* #1952 *})    ({if $_cnt % 3 != 0})</tr>({/if})
    244 ({* #1952 *})    </table>
    245 ({* #1952 *})({/if})
    246 ({* #1952 *})({if $profile.info})
    247 ({* #1952 *})<br><span class="caution">({$profile.info})</span>
    248 ({* #1952 *})({/if})
    249 ({* #1952 *})({/strip})
    250 ({* #1952 *})
    251 ({* #1952 *})</div>
    252 ({* #1952 *})
    253 ({* #1952 *})</td>
    254 ({* #1952 *})({if $profile.public_flag_edit})
    255 ({* #1952 *})<td align="right">
    256 ({* #1952 *})
    257 ({* #1952 *})<div class="padding_s">
    258 ({* #1952 *})
    259 ({* #1952 *})({if $c_member.profile[$profile.name].public_flag})
    260 ({* #1952 *})({assign var=pflag value=$c_member.profile[$profile.name].public_flag})
    261 ({* #1952 *})({else})
    262 ({* #1952 *})({assign var=pflag value=$profile.public_flag_default})
    263 ({* #1952 *})({/if})
    264 ({* #1952 *})<select name="public_flag[({$profile.name})]">
    265 ({* #1952 *})({foreach from=$public_flags key=key item=item})
    266 ({* #1952 *})<option value="({$key})"({if $pflag==$key}) selected="selected"({/if})>({$item})
    267 ({* #1952 *})({/foreach})
    268 ({* #1952 *})</select>
    269 ({* #1952 *})
    270 ({* #1952 *})</div>
    271 ({* #1952 *})
    272 ({* #1952 *})</td>
    273 ({* #1952 *})({/if})
    274 ({* #1952 *})</tr>
    275 ({* #1952 *})</table>
    276 ({* #1952 *})
    277 ({* #1952 *})</td>
    278 ({* #1952 *})<td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    279 ({* #1952 *})</tr>
    280 ({* #1952 *})({*********})
    281 ({* #1952 *})<tr>
    282 ({* #1952 *})<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    283 ({* #1952 *})</tr>
    284 ({* #1952 *})({*********})
    285 ({* #1952 *})({/if})
    286 ({* #1952 *})({/foreach})
    287 ({* #1952 *})
    288 ({* #1952 *})({if !$_cnt_nick && !$_cnt_birth})
    289 ({* #1952 *})({if $smarty.const.SORT_ORDER_NICK > $smarty.const.SORT_ORDER_BIRTH})
    290 ({* #1952 *})({$smarty.capture.birth|smarty:nodefaults})
    291 ({* #1952 *})({$smarty.capture.nick|smarty:nodefaults})
    292 ({* #1952 *})({else})
    293 ({* #1952 *})({$smarty.capture.nick|smarty:nodefaults})
    294 ({* #1952 *})({$smarty.capture.birth|smarty:nodefaults})
    295 ({* #1952 *})({/if})
    296 ({* #1952 *})({else})
    297 ({* #1952 *})({if !$_cnt_nick})({$smarty.capture.nick|smarty:nodefaults})({/if})
    298 ({* #1952 *})({if !$_cnt_birth})({$smarty.capture.birth|smarty:nodefaults})({/if})
    299 ({* #1952 *})({/if})
    300 ({* #1952 *})
    301 ({* #1952 *})<tr>
    302 ({* #1952 *})<td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    303 ({* #1952 *})<td class="bg_02" align="center" valign="middle" colspan="3">
    304 ({* #1952 *})
    305 ({* #1952 *})<div style="padding:10px 60px;">
    306 ({* #1952 *})
    307 ({* #1952 *})<div style="text-align:center;">
    308 ({* #1952 *})
    309 ({* #1952 *})<input type="submit" class="submit" value=" 変 更 ">
    310 ({* #1952 *})
    311 ({* #1952 *})</div>
    312 ({* #1952 *})
    313 ({* #1952 *})</div>
    314 ({* #1952 *})
    315 ({* #1952 *})</td>
    316 ({* #1952 *})<td class="bg_01" align="center"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    317 ({* #1952 *})</tr>
    318 ({* #1952 *})({*********})
    319 ({* #1952 *})<tr>
    320 ({* #1952 *})<td style="height:1px;" class="bg_01" colspan="5"><img src="./skin/dummy.gif" alt="dot" class="dot"></td>
    321 ({* #1952 *})</tr>
    322 ({* #1952 *})({*********})
    323 ({* #1952 *})</table>
    324 ({* #1952 *})<!-- ここまで:主内容 -->
    325 ({* #1952 *})({*ここまで:body*})
    326 ({* #1952 *})({*ここから:footer*})
    327 ({* #1952 *})<!-- 無し -->
    328 ({* #1952 *})({*ここまで:footer*})
    329 ({* #1952 *})<!-- *ここまで:プロフィール変更>>内容* -->
    330 ({* #1952 *})</td>
    331 ({* #1952 *})<td class="bg_00"><img src="./skin/dummy.gif" alt="square" class="square"></td>
    332 ({* #1952 *})</tr>
    333 ({* #1952 *})<tr>
    334 ({* #1952 *})<td class="bg_00"><img src="./skin/dummy.gif" alt="square" class="square"></td>
    335 ({* #1952 *})<td class="bg_00"><img src="./skin/dummy.gif" alt="square" class="square"></td>
    336 ({* #1952 *})<td class="bg_00"><img src="./skin/dummy.gif" alt="square" class="square"></td>
    337 ({* #1952 *})</tr>
    338 ({* #1952 *})</table>
    339 ({* #1952 *})({/t_form_block})
    340 ({* #1952 *})<!-- ******ここまで:プロフィール変更****** -->
     50({counter assign="_cnt_nick"})
     51({counter assign="_cnt_birth"})
     52({if $smarty.const.SORT_ORDER_NICK > $smarty.const.SORT_ORDER_BIRTH})
     53({$smarty.capture.birth|smarty:nodefaults})
     54({$smarty.capture.nick|smarty:nodefaults})
     55({else})
     56({$smarty.capture.nick|smarty:nodefaults})
     57({$smarty.capture.birth|smarty:nodefaults})
     58({/if})
     59({/if})
     60
     61({if !$_cnt_nick && $profile.sort_order >= $smarty.const.SORT_ORDER_NICK})
     62({counter assign="_cnt_nick"})
     63({$smarty.capture.nick|smarty:nodefaults})
     64({/if})
     65
     66({if !$_cnt_birth && $profile.sort_order >= $smarty.const.SORT_ORDER_BIRTH})
     67({counter assign="_cnt_birth"})
     68({$smarty.capture.birth|smarty:nodefaults})
     69({/if})
     70
     71({/strip})
     72({if $profile.disp_config})
     73<tr>
     74<th>({$profile.caption})({if $profile.is_required}) <strong>※</strong>({/if})</th>
     75<td>
     76({if $profile.public_flag_edit})<table><tr><td>({/if})
     77
     78({strip})
     79({if $profile.form_type == 'text'})
     80        <input type="text" class="input_text" name="profile[({$profile.name})]" value="({$c_member.profile[$profile.name].value})" size="30" />
     81({elseif $profile.form_type == 'textlong'})
     82        <input type="text" class="input_text input_text_long" name="profile[({$profile.name})]" value="({$c_member.profile[$profile.name].value})" size="60" />
     83({elseif $profile.form_type == 'textarea'})
     84        <textarea name="profile[({$profile.name})]" rows="6" cols="50">({$c_member.profile[$profile.name].value})</textarea>
     85({elseif $profile.form_type == 'select'})
     86        <select name="profile[({$profile.name})]">
     87        <option value="">選択してください</option>
     88        ({foreach from=$profile.options item=item})
     89        <option value="({$item.c_profile_option_id})"({if $c_member.profile[$profile.name].value == $item.value}) selected="selected"({/if})>({$item.value|default:"--"})</option>
     90        ({/foreach})
     91        </select>
     92({elseif $profile.form_type == 'radio'})
     93        <div class="checkList">
     94        ({foreach item=item from=$profile.options})
     95        ({counter name=$profile.name assign=_cnt})
     96    ({if $_cnt % 3 == 1})<ul>({/if})
     97        <li><input type="radio" class="input_radio" name="profile[({$profile.name})]" id="profile-({$profile.name})-({$item.c_profile_option_id})" value="({$item.c_profile_option_id})"({if $c_member.profile[$profile.name].value == $item.value}) checked="checked"({/if}) /><label for="profile-({$profile.name})-({$item.c_profile_option_id})">({$item.value|default:"--"})</label></li>
     98    ({if $_cnt % 3 == 0})</ul>({/if})
     99    ({/foreach})
     100    ({if $_cnt % 3 != 0})</ul>({/if})
     101    </div>
     102({elseif $profile.form_type == 'checkbox'})
     103    <div class="checkList">
     104    ({foreach item=item from=$profile.options name=check})
     105    ({counter name=$profile.name assign=_cnt})
     106    ({if $_cnt % 3 == 1})<ul>({/if})
     107        <li><input type="checkbox" class="input_checkbox" name="profile[({$profile.name})][]" id="profile-({$profile.name})-({$item.c_profile_option_id})" value="({$item.c_profile_option_id})"({if $c_member.profile[$profile.name].value && in_array($item.value|smarty:nodefaults, $c_member.profile[$profile.name].value)}) checked="checked"({/if}) /><label for="profile-({$profile.name})-({$item.c_profile_option_id})">({$item.value|default:"--"})</label></li>
     108    ({if $_cnt % 3 == 0})</ul>({/if})
     109    ({/foreach})
     110    ({if $_cnt % 3 != 0})</ul>({/if})
     111    </div>
     112({/if})
     113({/strip})
     114
     115({if $profile.info})<p class="caution">({$profile.info})</p>({/if})
     116
     117({if $profile.public_flag_edit})
     118</td><td class="publicSelector">
     119({if $c_member.profile[$profile.name].public_flag})
     120({assign var=pflag value=$c_member.profile[$profile.name].public_flag})
     121({else})
     122({assign var=pflag value=$profile.public_flag_default})
     123({/if})
     124<select name="public_flag[({$profile.name})]">
     125({foreach from=$public_flags key=key item=item})
     126<option value="({$key})"({if $pflag==$key}) selected="selected"({/if})>({$item})</option>
     127({/foreach})
     128</select>
     129</td></tr></table>
     130({/if})
     131</td>
     132</tr>
     133({/if})
     134({/foreach})
     135
     136({if !$_cnt_nick && !$_cnt_birth})
     137({if $smarty.const.SORT_ORDER_NICK > $smarty.const.SORT_ORDER_BIRTH})
     138({$smarty.capture.birth|smarty:nodefaults})
     139({$smarty.capture.nick|smarty:nodefaults})
     140({else})
     141({$smarty.capture.nick|smarty:nodefaults})
     142({$smarty.capture.birth|smarty:nodefaults})
     143({/if})
     144({else})
     145({if !$_cnt_nick})({$smarty.capture.nick|smarty:nodefaults})({/if})
     146({if !$_cnt_birth})({$smarty.capture.birth|smarty:nodefaults})({/if})
     147({/if})
     148
     149</table>
     150<div class="operation">
     151<ul class="moreInfo button">
     152<li><input type="submit" class="input_submit" value=" 変 更 " /></li>
     153</ul>
     154</div>
     155({/t_form_block})
     156</div></div>
     157({* }}} *})
    341158
    342159</div><!-- Center -->
Note: See TracChangeset for help on using the changeset viewer.