File Manager

Current Path : /webspace/www.babilon.be/html/modules/CGFeedback/templates/
Upload File :
Current File : //webspace/www.babilon.be/html/modules/CGFeedback/templates/orig_commentform_template.tpl

{* comment form template *}
{if isset($message)}
  <div class="pagemessage">{$message}</div>
{else}
{* no message... display the form *}
<div class="cgfeedback_addcomment">
{if isset($error)}
  <div class="error">{$error}</div>
{/if}
{$formstart}
<fieldset style="margin: 1em;">
  <legend>&nbsp;{$mod->Lang('prompt_add_comment')}&nbsp;</legend>

  <label>{$mod->Lang('prompt_title')}: 
    <input type="text" name="{$actionid}title" size="80" maxlength="255" value="{$title}"/>
  </label>
  <label>{$mod->Lang('prompt_your_name')}: 
    <input type="text" name="{$actionid}author_name" size="40" maxlength="255" value="{$author_name}"/>
  </label>
  <label>{$mod->Lang('prompt_your_email')}:
    <input type="text" name="{$actionid}author_email" size="40" maxlength="255" value="{$author_email}"/>
  </label>
  <label class="checkbox">
    <input type="checkbox" name="{$actionid}author_notify" value="1" {if $author_notify == 1}checked="checked"{/if}/>
    {$mod->Lang('prompt_notify')}
  </label>
  <label>{$mod->Lang('prompt_your_rating')}:
    <select name="{$actionid}rating">
      {html_options options=$rating_options selected=$rating}
    </select>
  </label>
  <label>{$mod->Lang('prompt_comment')}:
    {$input_comment}
  </label>

  {* custom fields *}
  {if isset($fields)}
    {foreach from=$fields key='fieldid' item='field'}
    <label>{$field.name}:
      {if isset($field.input)}
        {$field.input}
      {elseif $field.type == 0 or $field.type == 1 }
        <input type="text" name="{$actionid}field_{$fieldid}" value="{$field.value|default:''}" size="{$field.attrib.length}" maxlength="{$field.attrib.maxlength}"/>
      {elseif $field.type == 2}
        {* text area fields should have an input... so this should never get caled... but just in case *}
        <textarea name="{$actionid}field_{$fieldid}">{$field.value}</textarea>
      {elseif $field.type == 3}
        <select name="{$actionid}field_{$fieldid}">
          {html_options options=$field.attrib.options selected="{$field.value}"}
        </select>
      {elseif $field.type == 4}
        <select multiple="multiple" size="4" name="{$actionid}field_{$fieldid}[]">
          {html_options options=$field.attrib.options selected="{$field.value}"}
        </select>
      {/if}
    </label>
    {/foreach}
  {/if}

  {if isset($captcha_img)}
    {* handle captcha image *}
    <label>{$mod->Lang('prompt_captcha')}:
      {$captcha_img}
      <input type="text" name="{$actionid}feedback_captcha" value="" size="20"/>
    </label>
  {/if}

  <button name="{$actionid}submit">{$mod->Lang('submit')}</button>

</fieldset>
{$formend}
</div>
{/if}

File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com