View Single Post
  #3  
Old 06-03-2009, 08:43 PM
 
gary02140 gary02140 is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 58
 

Default Re: Gift Card Redeem Form

Continue on the source code of contactus.tpl:


{if $default_fields.fax.avail eq 'Y'}
<tr valign="middle">
<td class="FormButton">{$lng.lbl_fax}</td>
<td>{if $default_fields.fax.required eq 'Y'}<font class="Star">*</font>{/if}</td>
<td nowrap="nowrap">
<input type="text" id="fax" name="fax" size="32" maxlength="128" value="{$userinfo.fax|escape}" /></td>
</tr>
{/if}

{if $default_fields.url.avail eq 'Y'}
<tr valign="middle">
<td class="FormButton">{$lng.lbl_web_site}</td>
<td>{if $default_fields.url.required eq 'Y'}<font class="Star">*</font>{/if}</td>
<td nowrap="nowrap">
<input type="text" id="url" name="url" size="32" maxlength="128" value="{if $userinfo.url eq ""}http://{else}{$userinfo.url}{/if}" />
{if $fillerror ne "" and $userinfo.url eq "" && $default_fields.url.required eq 'Y'}<font class="Star">&lt;&lt;</font>{/if}
</td>
</tr>
{/if}

{foreach from=$additional_fields item=v}
{if $v.avail eq "Y"}
<tr valign="middle">
<td class="FormButton">{$v.title|default:$v.field}</td>
<td>{if $v.required eq 'Y'}<font class="Star">*</font>{else}&nbsp;{/if}</td>
<td nowrap="nowrap">
{if $v.type eq 'T'}
<input type="text" id="additional_values_{$v.fieldid}" name="additional_values[{$v.fieldid}]" id="additional_values_{$v.fieldid}" size="32" value="{$v.value|escape}" />
{elseif $v.type eq 'C'}
<input type="checkbox" id="additional_values_{$v.fieldid}" name="additional_values[{$v.fieldid}]" id="additional_values_{$v.fieldid}" value="Y"{if $v.value eq 'Y'} checked="checked"{/if} />
{elseif $v.type eq 'S'}
<select id="additional_values_{$v.fieldid}" name="additional_values[{$v.fieldid}]" id="additional_values_{$v.fieldid}">
{foreach from=$v.variants item=o}
<option value='{$o|escape}'{if $v.value eq $o} selected="selected"{/if}>{$o|escape}</option>
{/foreach}
</select>
{/if}
{if $fillerror ne "" and $v.value eq "" && $v.required eq 'Y'}<font class="Star">&lt;&lt;</font>{/if}
</td>
</tr>
{/if}
{/foreach}

{if $default_fields.department.avail eq 'Y'}
<tr valign="middle">
<td class="FormButton">{$lng.lbl_department}</td>
<td>{if $default_fields.department.required eq 'Y'}<font class="Star">*</font>{/if}</td>
<td nowrap="nowrap">
<select id="department" name="department">
<option value="All" selected="selected">{$lng.lbl_all}</option>
<option value="Partners">{$lng.lbl_partners}</option>
<option value="Marketing / publicity">{$lng.lbl_marketing_publicity}</option>
<option value="Webdesign">{$lng.lbl_web_design}</option>
<option value="Sales">{$lng.lbl_sales_department}</option>
</select>
</td>
</tr>
{/if}

<tr valign="middle">
<td class="FormButton">{$lng.lbl_subject}</td>
<td><font class="Star">*</font></td>
<td nowrap="nowrap">
<input type="text" id="subject" name="subject" size="32" maxlength="128" value="{$userinfo.subject|escape}" />
{if $fillerror ne "" and $userinfo.subject eq ""}<font class="Star">&lt;&lt;</font>{/if}
</td>
</tr>

<tr valign="middle">
<td class="FormButton">{$lng.lbl_message}</td>
<td><font class="Star">*</font></td>
<td nowrap="nowrap">
<textarea cols="48" id="message_body" rows="12" name="body">{$userinfo.body}</textarea>
{if $fillerror ne "" and $userinfo.body eq ""}<font class="Star">&lt;&lt;</font>{/if}
</td>
</tr>

{if $active_modules.Image_Verification and $show_antibot.on_contact_us eq 'Y'}
{include file="modules/Image_Verification/spambot_arrest.tpl" mode="advanced" id=$antibot_sections.on_contact_us antibot_err=$antibot_contactus_err}
{/if}
<tr valign="middle">
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>
<br />
{if $js_enabled}
{include file="buttons/submit.tpl" href="javascript: if (checkEmailAddress(document.registerform.email) && checkRequired(requiredFields) && check_zip_code(document.getElementById('b_country' ), document.getElementById('b_zipcode'))) document.registerform.submit()" js_to_href="Y" style="button"}
{else}
{include file="submit_wo_js.tpl" value=$lng.lbl_submit}
{/if}
</td>
</tr>
</table>
<input type="hidden" name="usertype" value="{$usertype}" />
</form>
{/if}
{/capture}
{include file="dialog.tpl" title=$lng.lbl_contact_us content=$smarty.capture.dialog extra='width="100%"'}
__________________
Version 4.1.12
Reply With Quote