0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
7.0-0
/
standard
/
htdocs
/
templates
/
trackerinput
/
[
Home
]
File: dropdown.tpl
{strip} {if $field.type eq 'radio' or $field.type eq 'R'} {section name=jx loop=$field.options_array} {if $smarty.section.jx.first} {if $field.options_array[jx] eq '<br />' or $field.options_array[jx] eq '<br />'} {assign var=sepR value='<br />'} {else} {assign var=sepR value=' '} {/if} {/if} {if !$smarty.section.jx.first or $sepR ne '<br />'} <input type="radio" name="{$field.ins_id}" value="{$field.options_array[jx]|escape}" {if $field.value eq $field.options_array[jx] or (empty($item.itemId) and $field.defaultvalue eq $field.options_array[jx])}checked="checked"{/if} id="{$field.ins_id[jx]}" /> <label {*for="{$field.ins_id[jx]}"*}>{$field.options_array[jx]|tr_if}</label> {if !$smarty.section.jx.last}{$sepR}{/if} {/if} {/section} {else} <select name="{$field.ins_id}" {if $field.http_request}onchange="selectValues('trackerIdList={$field.http_request[0]}&fieldlist={$field.http_request[3]}&filterfield={$field.http_request[1]}&status={$field.http_request[4]}&mandatory={$field.http_request[6]}&filtervalue='+escape(this.value),'{$field.http_request[5]}')"{/if}> {assign var=otherValue value=$field.value} {if $field.isMandatory ne 'y' || empty($field.value)} // show the empty field even if mandatory for a new item to be sure the user enters something <option value=""> </option> {/if} {section name=jx loop=$field.options_array} <option value="{$field.options_array[jx]|escape}" {if !empty($item.itemId) && ($field.value eq $field.options_array[jx] or (isset($field.isset) && $field.isset == 'n' && $field.defaultvalue eq $field.options_array[jx]))}{assign var=otherValue value=''}selected="selected"{elseif (empty($item.itemId) || !isset($field.value)) && $field.defaultvalue eq $field.options_array[jx]}selected="selected"{/if}> {$field.options_array[jx]|tr_if} </option> {/section} </select> {if $field.type eq 'D'} <br /> <label for="other_{$field.ins_id}">{tr}Other:{/tr}</label> <input type="text" name="other_{$field.ins_id}" value="{$otherValue|escape}" id="other_{$field.ins_id}" /> {/if} {/if} {/strip}