mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
fully templateable custom profile fields...
git-svn-id: file:///svn/phpbb/trunk@4737 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
425509cb88
commit
ca291c50f9
3 changed files with 42 additions and 0 deletions
29
phpBB/styles/subSilver/template/custom_profile_fields.html
Normal file
29
phpBB/styles/subSilver/template/custom_profile_fields.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
<!-- BEGIN dropdown -->
|
||||
<select name="{dropdown.FIELD_NAME}">
|
||||
<!-- BEGIN options --><option value="{dropdown.options.OPTION_ID}"{dropdown.options.SELECTED}>{dropdown.options.VALUE}</option><!-- END options -->
|
||||
</select>
|
||||
<!-- END dropdown -->
|
||||
|
||||
<!-- BEGIN text -->
|
||||
<textarea name="{text.FIELD_NAME}" rows="{text.FIELD_ROWS}" cols="{text.FIELD_COLS}">{text.FIELD_VALUE}</textarea>
|
||||
<!-- END text -->
|
||||
|
||||
<!-- BEGIN string -->
|
||||
<input type="text" class="post" name="{string.FIELD_NAME}" size="{string.FIELD_LENGTH}" maxlength="{string.FIELD_MAXLEN}" value="{string.FIELD_VALUE}" />
|
||||
<!-- END string -->
|
||||
|
||||
<!-- BEGIN bool -->
|
||||
<!-- IF bool.FIELD_LENGTH eq 1 -->
|
||||
<!-- BEGIN options --><input type="radio" name="{bool.FIELD_NAME}" value="{bool.options.OPTION_ID}"{bool.options.CHECKED} /><span class="genmed">{bool.options.VALUE}</span> <!-- END options -->
|
||||
<!-- ELSE -->
|
||||
<input type="checkbox" name="{bool.FIELD_NAME}"<!-- IF bool.FIELD_VALUE --> checked="checked"<!-- ENDIF --> />
|
||||
<!-- ENDIF -->
|
||||
<!-- END bool -->
|
||||
|
||||
<!-- BEGIN int -->
|
||||
<input type="text" class="post" name="{int.FIELD_NAME}" size="{int.FIELD_LENGTH}" value="{int.FIELD_VALUE}" />
|
||||
<!-- END int -->
|
||||
|
||||
<!-- BEGIN date -->
|
||||
<span class="genmed">{L_DAY}:</span> <select name="{date.FIELD_NAME}_day">{date.S_DAY_OPTIONS}</select> <span class="genmed">{L_MONTH}:</span> <select name="{date.FIELD_NAME}_month">{date.S_MONTH_OPTIONS}</select> <span class="genmed">{L_YEAR}:</span> <select name="{date.FIELD_NAME}_year">{date.S_YEAR_OPTIONS}</select>
|
||||
<!-- END date -->
|
|
@ -54,6 +54,12 @@
|
|||
<td class="row1" width="35%"><b class="genmed">{L_BIRTHDAY}: </b><br /><span class="gensmall">{L_BIRTHDAY_EXPLAIN}</span></td>
|
||||
<td class="row2"><span class="genmed">{L_DAY}:</span> <select name="bday_day">{S_BIRTHDAY_DAY_OPTIONS}</select> <span class="genmed">{L_MONTH}:</span> <select name="bday_month">{S_BIRTHDAY_MONTH_OPTIONS}</select> <span class="genmed">{L_YEAR}:</span> <select name="bday_year">{S_BIRTHDAY_YEAR_OPTIONS}</select></td>
|
||||
</tr>
|
||||
<!-- BEGIN profile_fields -->
|
||||
<tr>
|
||||
<td class="row1" width="35%"><b class="genmed">{profile_fields.LANG_NAME}: </b><!-- IF profile_fields.LANG_EXPLAIN --><br /><span class="gensmall">{profile_fields.LANG_EXPLAIN}</span><!-- ENDIF --></td>
|
||||
<td class="row2">{profile_fields.FIELD}<!-- IF profile_fields.ERROR --><br /><span class="gensmall" style="color:red">{profile_fields.ERROR}</span><!-- ENDIF --></td>
|
||||
</tr>
|
||||
<!-- END profile_fields -->
|
||||
<tr>
|
||||
<td class="cat" colspan="2" align="center">{S_HIDDEN_FIELDS}<input class="btnmain" type="submit" name="submit" value="{L_SUBMIT}" /> <input class="btnlite" type="reset" value="{L_RESET}" name="reset" /></td>
|
||||
</tr>
|
||||
|
|
|
@ -54,6 +54,13 @@
|
|||
<td class="row2"><select name="tz">{S_TZ_OPTIONS}</select></td>
|
||||
</tr>
|
||||
|
||||
<!-- BEGIN profile_fields -->
|
||||
<tr>
|
||||
<td class="row1" width="35%"><b class="genmed">{profile_fields.LANG_NAME}: </b><!-- IF profile_fields.LANG_EXPLAIN --><br /><span class="gensmall">{profile_fields.LANG_EXPLAIN}</span><!-- ENDIF --></td>
|
||||
<td class="row2">{profile_fields.FIELD}<!-- IF profile_fields.ERROR --><br /><span class="gensmall" style="color:red">{profile_fields.ERROR}</span><!-- ENDIF --></td>
|
||||
</tr>
|
||||
<!-- END profile_fields -->
|
||||
|
||||
<!-- IF S_CONFIRM_CODE -->
|
||||
<tr>
|
||||
<th colspan="2" height="28" valign="middle">{L_CONFIRMATION}</th>
|
||||
|
|
Loading…
Add table
Reference in a new issue