📄 editprofilequestions.tpl
字号:
{strip}
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td class="module_detail" width="100%">
{assign var="page_hdr01_text" value="{lang mkey='modify_profile'}"|cat:"{lang mkey='of'}"|cat:$username|cat:' (ID: '|cat:$smarty.get.edit|cat:')'}
{include file="admin/admin_page_hdr01.tpl"}
<br />
{include file="admin/editprofilelinks.tpl"}
<form name="{$frmname}" method="post" action="modifyprofilequestion.php">
<input type="hidden" name="sectionid" value="{$sectionid}" />
<input type="hidden" name="edit" value="{$smarty.get.edit}" />
<input type="hidden" id="reqsectionid" name="reqsectionid" value="" />
<table class="table" width="100%" border="0" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}">
<tbody>
<tr>
<td>{if $mandatory_question_error != ''}<font color="{lang mkey='error_msg_color'}">{$mandatory_question_error}</font>{/if}</td>
</tr>
<tr>
<td width="100%">
{assign var="page_hdr02_text" value=$head|stripslashes}
{include file="admin/admin_page_hdr02.tpl"}
</td>
</tr>
<tr>
<td>
{*Outer Loop to traverse outer dimension data array*}
{foreach item=questionrow from=$data}
{if $questionrow.question != '' }
{if $questionrow.control_type == "select"}
<table class="table" width="573" border="0" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}">
<tbody>
<tr>
<td width="250" valign="top">
<table width="250" border="0">
<tbody>
<tr>
<td width="250">
<b>{$questionrow.question}</b>
{if $questionrow.mandatory == 'Y'}
<font color="{lang mkey='required_info_indicator_color'}">{lang mkey='required_info_indicator'}</font>
{/if}
<br/>
{if $questionrow.description != NULL}
{$questionrow.description|stripslashes}
{/if}
</td>
</tr>
</tbody>
</table>
</td>
<td width="305" valign="top">
<table class="table" width="305" border="0" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}">
<tbody>
<tr>
<td width="305">
<input type=hidden name="selected_questions[]" value="{$questionrow.id}" />
<select name="{$questionrow.id}{$questionrow.mandatory}" class="select" style="WIDTH: 100px">
<option value="0">{lang mkey='tell_later'}</option>
{html_options options=$questionrow.options selected=$questionrow.userpref}
</select>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
{elseif $questionrow.control_type == "radio"}
<table class="table" width="573" border="0" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}">
<tbody>
<tr>
<td width="250" valign="top">
<table class="table" width="250" border="0" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}" >
<tbody>
<tr>
<td align="left" valign="top">
<b>{$questionrow.question}</b>
{if $questionrow.mandatory == 'Y'}
<font color={lang mkey='required_info_indicator_color'}>{lang mkey='required_info_indicator'}</font>
{/if}
<br/>
{if $questionrow.description != NULL}
{$questionrow.description|stripslashes}
{/if}
</td>
</tr>
</tbody>
</table>
</td>
<td width="305" valign="top">
<table class="table" width="305" border="0" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}">
<tbody>
<tr>
<td valign="top">
<input type=hidden name="selected_questions[]" value="{$questionrow.id}" />
{foreach name="iterator" key=key item=curropt from=$questionrow.options}
<table border=0 width="100%" cellspacing=0 cellpadding=0>
<tr>
<td width="8" valign="top">
{if $key == $questionrow.userpref[0]}
<input name="{$questionrow.id}{$questionrow.mandatory}" type="radio" value="{$key}" checked="checked" />
{else}
<input name="{$questionrow.id}{$questionrow.mandatory}" type="radio" value="{$key}" />
{/if}
</td>
<td width="100%" valign="bottom">
{$curropt|stripslashes}
</td>
</tr>
</table>
{* if $smarty.foreach.iterator.iteration%2 == 0 }
</td></tr><tr><td>
{else}
</td><td>
{/if *}
</td></tr><tr><td>
{/foreach}
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
{elseif $questionrow.control_type == "checkbox"}
<table class="table" width="573" border="0" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}">
<tbody>
<tr>
<td valign="top">
<table class="table" width="250" border="0" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}">
<tbody>
<tr>
<td align="left" valign="top">
<b>{$questionrow.question|stripslashes}</b>
{if $questionrow.mandatory == 'Y'}
<font color="{lang mkey='required_info_indicator_color'}">{lang mkey='required_info_indicator'}</font>
{/if}
<br/>
{if $questionrow.description != NULL}
{$questionrow.description|stripslashes}
{/if}
</td>
</tr>
</tbody>
</table>
</td>
<td width="305" valign="top">
<table class="table" width="305" border="0" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}">
<tbody>
<tr>
<td align="left" valign="top">
{if $questionrow.userpref|@count > 0}
<input type="hidden" name="selected_questions[]" value="{$questionrow.id}" />
{/if}
{* html_checkboxes options=$questionrow.options selected=$questionrow.userpref separator=<br/> name=$questionrow.id|cat:$questionrow.mandatory *}
{foreach name="iterator" key=key item=curropt from=$questionrow.options}
<table border=0 width="100%" cellspacing=0 cellpadding=0>
<tr>
<td width="8" valign="middle">
<input type="checkbox" name="{$questionrow.id}{$questionrow.mandatory}[]" value="{$key}" {foreach from=$questionrow.userpref key=ky item=itm}
{if $key == $itm}
checked="checked"
{/if}
{/foreach}
/>
</td>
<td width="100%" valign="middle">
{$curropt|stripslashes}
</td>
</tr>
</table>
{* if $smarty.foreach.iterator.iteration%2 == 0 }
</td></tr><tr><td>
{else}
</td><td>
{/if *}
</td></tr><tr><td>
{/foreach}
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
{elseif $questionrow.control_type == "textarea"}
<table width="573">
<tbody>
<tr>
<td valign="top">
<table class="table" width="570" border="0" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}" >
<tbody>
<tr>
<td align="left" valign="top">
<b>{$questionrow.question}</b>
{if $questionrow.mandatory == 'Y'}
<font color="{lang mkey='required_info_indicator_color'}">{lang mkey='required_info_indicator'}</font>
{/if}
<br/>
{if $questionrow.description != NULL}
{$questionrow.description|nl2br|stripslashes}
{/if}
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td valign="top">
<table class="table" width="450" border="0" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}" >
<tbody>
<tr>
<td valign="top">
{if count_chars($questionrow.userpref[0]) > 0}
<input type=hidden name="selected_questions[]" value="{$questionrow.id}" />
{/if}
<textarea name="{$questionrow.id}{$questionrow.mandatory}" rows="7" cols="50" >{$questionrow.userpref[0]|nl2br|stripslashes|escape:"htmlall"}</textarea>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
{/if}
<table class="table" width="573" border="0" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}">
<tbody>
<tr><td> </td></tr>
</tbody>
</table>
{/if}
{/foreach}
<table width="573" border="0">
<tr>
<td align="center">
<input type="submit" value="Save" class="formbutton" />
<input type="reset" value="Reset" class="formbutton" />
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</form>
</td>
</tr>
</table>
{/strip}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -