sectionview.tpl

来自「太烦了」· TPL 代码 · 共 67 行

TPL
67
字号
{strip}
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
	<tr>
		<td class="module_detail_inside" width="100%">

			{assign var="page_hdr02_text" value=$item.SectionName}
			{include file="page_hdr02.tpl"}
			<table width="100%" border="0" cellpadding="0" cellspacing="0" >
				<tr>
					<td width="100%">

						<table width="100%" cellpadding="{$config.cellpadding}" cellspacing="{$config.cellspacing}">
						{assign var="previd" value="0"}
						{foreach item=subitem from=$item.preferences}

							{if $subitem.type == "select" || $subitem.type == "radio"}
								<tr class="{cycle values="oddrow,evenrow"}">
									<td valign="top"><b>{mylang mkey='extsearchhead' skey=$subitem.extsearchhead}: </b></td>
									<td>
										{if $subitem.options != ''}
											{$subitem.options}
										{else}
											{lang mkey='tell_later'}
										{/if}
									</td>
								</tr>

							{elseif $subitem.type == "textarea"}
								<tr class="{cycle values="oddrow,evenrow"}">
									<td valign="top" ><b>{mylang mkey='extsearchhead' skey=$subitem.extsearchhead}: </b></td>
									<td>
										{if $subitem.options != ''}
											{$subitem.options|stripslashes}
										{else}
											{lang mkey='tell_later'}
										{/if}
									</td>
								</tr>

							{elseif $subitem.type == "checkbox"}

								<tr class="{cycle values="oddrow,evenrow"}">
									<td valign="top"><b>{mylang mkey='extsearchhead' skey=$subitem.extsearchhead}: </b></td>
									<td>
										{* fix this later in showprofile.php *}
										{if $subitem.options != '' and $subitem.options != ', '}
											{$subitem.options}
										{else}
											{lang mkey='tell_later'}
										{/if}
									</td>
								</tr>

							{/if}

						{/foreach}
						{assign var="previd" value=$item.id}
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
{/strip}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?