Commit 7306e6bc authored by changi67's avatar changi67

~NOTICE~

parent 3d87b5f4
{if $prefs.feature_categories eq 'y' and (count($categories) gt 0 or $tiki_p_admin_categories eq 'y')}
{if $notable neq 'y'}
{if isset($notable) && $notable neq 'y'}
<tr>
<td>{tr}Categorize{/tr}</td>
<td{if $colsCategorize} colspan="{$colsCategorize}"{/if}>
......@@ -7,8 +7,8 @@
{if $mandatory_category >= 0 or $prefs.javascript_enabled neq 'y'}
<div id="categorizator">
{else}
{if $notable neq 'y'}{button href="#" _flip_id='categorizator' _class='link' _text="{tr}Select Categories{/tr}" _flip_default_open='n'}{/if}
<div id="categorizator" style="display:{if isset($smarty.session.tiki_cookie_jar.show_categorizator) and $smarty.session.tiki_cookie_jar.show_categorizator eq 'y' or $notable eq 'y'}block{else}none{/if};">
{if isset($notable) && $notable neq 'y'}{button href="#" _flip_id='categorizator' _class='link' _text="{tr}Select Categories{/tr}" _flip_default_open='n'}{/if}
<div id="categorizator" style="display:{if isset($smarty.session.tiki_cookie_jar.show_categorizator) and $smarty.session.tiki_cookie_jar.show_categorizator eq 'y' or (isset($notable) && $notable eq 'y')}block{else}none{/if};">
{/if}
<div class="multiselect">
{if count($categories) gt 0}
......@@ -31,7 +31,7 @@
</div> {* end .clear *}
</div> {* end #multiselect *}
</div> {* end #categorizator *}
{if $notable neq 'y'}
{if isset($notable) && $notable neq 'y'}
</td>
</tr>
{/if}
......
......@@ -32,7 +32,7 @@
<div class="clearfix">
<form method="post" action="{$smarty.server.PHP_SELF}" class="findtable">
{if $filegals_manager neq ''}<input type="hidden" name="filegals_manager" value="{$filegals_manager|escape}" />{/if}
{if isset($filegals_manager) && $filegals_manager neq ''}<input type="hidden" name="filegals_manager" value="{$filegals_manager|escape}" />{/if}
{query _type='form_input' maxRecords='NULL' type='NULL' types='NULL' find='NULL' topic='NULL' lang='NULL' exact_match='NULL' categId='NULL' cat_categories='NULL' filegals_manager='NULL' save='NULL' offset='NULL' searchlist='NULL' searchmap='NULL'}
......@@ -84,7 +84,7 @@
</select>
{/if}
{if $find_show_languages eq 'y' and $prefs.feature_multilingual eq 'y'}
{if (isset($find_show_languages) && $find_show_languages eq 'y') and $prefs.feature_multilingual eq 'y'}
<span class="findlang">
<select name="lang" class="in">
<option value='' {if $find_lang eq ''}selected="selected"{/if}>{tr}any language{/tr}</option>
......@@ -113,7 +113,7 @@
</span>
{/if}
{if $find_show_date_range eq 'y'}
{if isset($find_show_date_range) && $find_show_date_range eq 'y'}
<div id="date_range_find">
<span class="findDateFrom">
{tr}From{/tr}
......@@ -126,7 +126,7 @@
</div>
{/if}
{if ($find_show_categories eq 'y' or $find_show_categories_multi eq 'y') and $prefs.feature_categories eq 'y' and !empty($categories)}
{if ((isset($find_show_categories) && $find_show_categories eq 'y') or (isset($find_show_categories_multi) && $find_show_categories_multi eq 'y')) and $prefs.feature_categories eq 'y' and !empty($categories)}
<div class="category_find">
<div id="category_singleselect_find" style="display: {if $find_show_categories_multi eq 'y' && $find_cat_categories|@count > 1}none{else}block{/if};">
<select name="categId" class="findcateg">
......@@ -215,7 +215,7 @@
</label>
{/if}
{if $find_show_num_rows eq 'y'}
{if isset($find_show_num_rows) && $find_show_num_rows eq 'y'}
<label class="findnumrows" for="findnumrows">
{tr}Number of displayed rows{/tr}
<input type="text" name="maxRecords" id="findnumrows" value="{$maxRecords|escape}" size="3" />
......@@ -229,10 +229,10 @@
<a href="{$smarty.server.PHP_SELF}?{query find='' type='' types='' topic='' lang='' langOrphan='' exact_match='' categId='' maxRecords='' find_from_Month='' find_from_Day='' find_from_Year='' find_to_Month='' find_to_Day='' find_to_Year=''}" title="{tr}Clear Filter{/tr}">{tr}Clear Filter{/tr}</a>
</span>
{/if}
{if $gmapbuttons and $mapview}
{if (isset($gmapbuttons) && $gmapbuttons) and (isset($mapview) && $mapview)}
<input type="submit" name="searchlist" value="{tr}List View{/tr}" />
<input type="hidden" name="mapview" value="y" />
{elseif $gmapbuttons}
{elseif (isset($gmapbuttons) && $gmapbuttons)}
<input type="submit" name="searchmap" value="{tr}Map View{/tr}" />
<input type="hidden" name="mapview" value="n" />
{/if}
......
......@@ -7,7 +7,6 @@
</div>
{tabset}
<!-- {$plug} -->
<a name="list"></a>
{tab name="{tr}Tracker fields{/tr}"}
<form class="save-fields" method="post" action="tiki-ajax_services.php">
......
......@@ -176,7 +176,7 @@
<td>{tr}Default status displayed in list mode{/tr}</td>
<td>
{foreach key=st item=stdata from=$status_types}
<input type="checkbox" name="defaultStatus[]" value="{$st}"{if $defaultStatusList.$st} checked="checked"{/if} />
<input type="checkbox" name="defaultStatus[]" value="{$st}"{if isset($defaultStatusList.$st)} checked="checked"{/if} />
{$stdata.label}
<br />
{/foreach}
......@@ -401,15 +401,15 @@
<td>{tr}User{/tr}</td>
</tr>
<tr>
<td><input type="text" size="2" name="ui[filename]" value="{$ui.filename}" /></td>
<td><input type="text" size="2" name="ui[created]" value="{$ui.created}" /></td>
<td><input type="text" size="2" name="ui[hits]" value="{$ui.hits}" /></td>
<td><input type="text" size="2" name="ui[comment]" value="{$ui.comment}" /></td>
<td><input type="text" size="2" name="ui[filesize]" value="{$ui.filesize}" /></td>
<td><input type="text" size="2" name="ui[version]" value="{$ui.version}" /></td>
<td><input type="text" size="2" name="ui[filetype]" value="{$ui.filetype}" /></td>
<td><input type="text" size="2" name="ui[longdesc]" value="{$ui.longdesc}" /></td>
<td><input type="text" size="2" name="ui[user]" value="{$ui.user}" /></td>
<td><input type="text" size="2" name="ui[filename]" value="{if isset($ui.filename)}{$ui.filename}{/if}" /></td>
<td><input type="text" size="2" name="ui[created]" value="{if isset($ui.created)}{$ui.created}{/if}" /></td>
<td><input type="text" size="2" name="ui[hits]" value="{if isset($ui.hits)}{$ui.hits}{/if}" /></td>
<td><input type="text" size="2" name="ui[comment]" value="{if isset($ui.comment)}{$ui.comment}{/if}" /></td>
<td><input type="text" size="2" name="ui[filesize]" value="{if isset($ui.filesize)}{$ui.filesize}{/if}" /></td>
<td><input type="text" size="2" name="ui[version]" value="{if isset($ui.version)}{$ui.version}{/if}" /></td>
<td><input type="text" size="2" name="ui[filetype]" value="{if isset($ui.filetype)}{$ui.filetype}{/if}" /></td>
<td><input type="text" size="2" name="ui[longdesc]" value="{if isset($ui.longdesc)}{$ui.longdesc}{/if}" /></td>
<td><input type="text" size="2" name="ui[user]" value="{if isset($ui.user)}{$ui.user}{/if}" /></td>
</tr>
</table>
</td>
......@@ -422,13 +422,13 @@
<input type="checkbox" name="start"{if $info.start} checked="checked"{/if} />
{html_select_date prefix="start_" time=$info.start start_year="0" end_year="+10" field_order=$prefs.display_field_order}
<span dir="ltr">{html_select_time prefix="start_" time=$info.start display_seconds=false use_24_hours=$use_24hr_clock}</span>
&nbsp;{$siteTimeZone}
&nbsp;{if isset($siteTimeZone)}{$siteTimeZone}{/if}
<br />
{tr}Before:{/tr}
<input type="checkbox" name="end"{if $info.end} checked="checked"{/if} />
{html_select_date prefix="end_" time=$info.end start_year="0" end_year="+10" field_order=$prefs.display_field_order}
<span dir="ltr">{html_select_time prefix="end_" time=$info.end display_seconds=false use_24_hours=$use_24hr_clock}</span>
&nbsp;{$siteTimeZone}
&nbsp;{if isset($siteTimeZone)}{$siteTimeZone}{/if}
</td>
</tr>
......
......@@ -47,9 +47,9 @@
<td>{tr}Info{/tr}</td>
<td>
<input name="showItemId" id="showItemId" type="checkbox" checked="checked" /><label for="showItemId">{tr}itemId{/tr}</label>
<input type="checkbox" name="showStatus" id="showStatus"{if $info.showStatus eq 'y'} checked="checked"{/if} /><label for="showStatus">{tr}status{/tr}</label>
<input type="checkbox" name="showCreated" id="showCreated"{if $info.showCreated eq 'y'} checked="checked"{/if} /><label for="showCreated">{tr}created{/tr}</label>
<input type="checkbox" name="showLastModif" id="showLastModif"{if $info.showLastModif eq 'y'} checked="checked"{/if} /><label for="showLastModif">{tr}lastModif{/tr}</label>
<input type="checkbox" name="showStatus" id="showStatus"{if isset($info) && $info.showStatus eq 'y'} checked="checked"{/if} /><label for="showStatus">{tr}status{/tr}</label>
<input type="checkbox" name="showCreated" id="showCreated"{if isset($info) && $info.showCreated eq 'y'} checked="checked"{/if} /><label for="showCreated">{tr}created{/tr}</label>
<input type="checkbox" name="showLastModif" id="showLastModif"{if isset($info) && $info.showLastModif eq 'y'} checked="checked"{/if} /><label for="showLastModif">{tr}lastModif{/tr}</label>
</td>
</tr>
<tr>
......@@ -93,7 +93,7 @@
</td>
</tr>
{/if}
<tr><td>&nbsp;</td><td><input type="submit" name="export" id="export_button" value="{tr}Export{/tr}" /> <input type="submit" name="zip" id="zip_button" value="{if $info.useAttachmnet eq 'y'}{tr}Zip export with attachments{/tr}{else}{tr}Zip Export{/tr}{/if}" /></td>
<tr><td>&nbsp;</td><td><input type="submit" name="export" id="export_button" value="{tr}Export{/tr}" /> <input type="submit" name="zip" id="zip_button" value="{if isset($info.useAttachmnet) && $info.useAttachmnet eq 'y'}{tr}Zip export with attachments{/tr}{else}{tr}Zip Export{/tr}{/if}" /></td>
</tr>
</table>
</form>
......
......@@ -55,7 +55,7 @@
{include file='tracker_filter.tpl'}
{/if}
{if $cant_pages > 1 or $initial}{initials_filter_links}{/if}
{if (isset($cant_pages) && $cant_pages > 1) or $initial}{initials_filter_links}{/if}
<div align='left'>{tr}Items found:{/tr} {$item_count}</div>
......@@ -231,7 +231,7 @@
{include file='antibot.tpl' tr_style="formcolor" showmandatory=y}
{/if}
{if $groupforalert ne ''}
{if isset($groupforalert) && $groupforalert ne ''}
{if $showeachuser eq 'y'}
<tr>
<td>{tr}Choose users to alert{/tr}</td>
......@@ -271,7 +271,7 @@
{foreach from=$fields key=ix item=field_value}
{assign var=fid value=$field_value.fieldId}
{if $listfields.$fid.http_request}
{if isset($listfields.$fid.http_request) && $listfields.$fid.http_request}
{jq}
selectValues('trackerIdList={{$listfields.$fid.http_request[0]}}&fieldlist={{$listfields.$fid.http_request[3]}}&filterfield={{$listfields.$fid.http_request[1]}}&status={{$listfields.$fid.http_request[4]}}&mandatory={{$listfields.$fid.http_request[6]}}','{{$listfields.$fid.http_request[5]}}','{{$field_value.ins_id}}')
{/jq}
......
{strip}
{* $Id$ *}
{**** Display warnings about incorrect values and missing mandatory fields ***}
{if count($err_mandatory) > 0}
{if isset($err_mandatory) && count($err_mandatory) > 0}
{remarksbox type='errors' title="{tr}Errors{/tr}"}
<em class='mandatory_note'>{tr}Following mandatory fields are missing{/tr}</em>&nbsp;:<br/>
{section name=ix loop=$err_mandatory}
......@@ -11,7 +11,7 @@
{/remarksbox}
{/if}
{if count($err_value) > 0}
{if isset($err_value) && count($err_value) > 0}
{remarksbox type='errors' title="{tr}Errors{/tr}"}
<em class='mandatory_note'>{tr}Following fields are incorrect{/tr}</em>&nbsp;:<br/>
{section name=ix loop=$err_value}
......@@ -21,4 +21,4 @@
{/section}
{/remarksbox}
{/if}
{/strip}
\ No newline at end of file
{/strip}
......@@ -108,7 +108,7 @@
{/if}
{/foreach}
</td>
{if $filter_button eq 'y'}
{if isset($filter_button) && $filter_button eq 'y'}
<td>
<input id="filterbutton" type="submit" name="filter" value="{tr}Filter{/tr}" style="display:{if $filterfield}inline{else}none{/if}" />
</td>
......
{if $field.isMultilingual ne 'y'}
{*prepend*}{if $field.options_array[2]}<span class="formunit">{$field.options_array[2]}&nbsp;</span>{/if}
<input type="text" id="{$field.ins_id|replace:'[':'_'|replace:']':''}" name="{$field.ins_id}" {if $field.options_array[1]}size="{$field.options_array[1]}"{/if} {if $field.options_array[4]}maxlength="{$field.options_array[4]}"{/if} value="{if $field.value}{$field.value|escape}{else}{$field.defaultvalue|escape}{/if}" />
{*append*}{if $field.options_array[3]}<span class="formunit">&nbsp;{$field.options_array[3]}</span>{/if}
{if $field.options_array[5] eq 'y' && $prefs.javascript_enabled eq 'y' and $prefs.feature_jquery_autocomplete eq 'y'}
{*prepend*}{if isset($field.options_array[2])}<span class="formunit">{$field.options_array[2]}&nbsp;</span>{/if}
<input type="text" id="{$field.ins_id|replace:'[':'_'|replace:']':''}" name="{$field.ins_id}" {if isset($field.options_array[1])}size="{$field.options_array[1]}"{/if} {if isset($field.options_array[4])}maxlength="{$field.options_array[4]}"{/if} value="{if $field.value}{$field.value|escape}{else}{if isset($field.defaultvalue)}{$field.defaultvalue|escape}{/if}{/if}" />
{*append*}{if isset($field.options_array[3])}<span class="formunit">&nbsp;{$field.options_array[3]}</span>{/if}
{if (isset($field.options_array[5]) && $field.options_array[5] eq 'y') && $prefs.javascript_enabled eq 'y' and $prefs.feature_jquery_autocomplete eq 'y'}
{if !empty($item)}
{autocomplete element="#"|cat:$field.ins_id|replace:"[":"_"|replace:"]":"" type="trackervalue"
options="trackerId:"|cat:$item.trackerId|cat:",fieldId:"|cat:$field.fieldId}
......@@ -15,10 +15,10 @@
{foreach from=$field.lingualvalue item=ling name=multi}
<label for="{$field.ins_id|replace:'[':'_'|replace:']':''}_{$ling.lang}">{$ling.lang|langname}</label>
<div>
{*prepend*}{if $field.options_array[2]}<span class="formunit">{$field.options_array[2]}&nbsp;</span>{/if}
{*prepend*}{if isset($field.options_array[2])}<span class="formunit">{$field.options_array[2]}&nbsp;</span>{/if}
<input type="text" id="{$field.ins_id|replace:'[':'_'|replace:']':''}_{$ling.lang}" name="{$field.ins_id}[{$ling.lang}]" value="{$ling.value|escape}" {if $field.options_array[1]}size="{$field.options_array[1]}"{/if} {if $field.options_array[4]}maxlength="{$field.options_array[4]}"{/if} /> {*@@ missing value*}
{*append*}{if $field.options_array[3]}<span class="formunit">&nbsp;{$field.options_array[3]}</span>{/if}
{if $field.options_array[5] eq 'y' && $prefs.javascript_enabled eq 'y' and $prefs.feature_jquery_autocomplete eq 'y'}
{*append*}{if isset($field.options_array[3])}<span class="formunit">&nbsp;{$field.options_array[3]}</span>{/if}
{if (isset($field.options_array[5]) && $field.options_array[5] eq 'y') && $prefs.javascript_enabled eq 'y' and $prefs.feature_jquery_autocomplete eq 'y'}
{if !empty($item)}
{autocomplete element="#"|cat:$field.ins_id|replace:"[":"_"|replace:"]":""|cat:"_"|cat:$ling.lang type="trackervalue"
options="trackerId:"|cat:$item.trackerId|cat:",fieldId:"|cat:$field.fieldId}
......
{*param : $msgTrackerFilter, $line, $open, $iTrackerFilter, $trackerId, $filters(array(name, format, fieldId, selected, opts)), $showFieldId *}
{strip}
{if $msgTrackerFilter}
{if isset($msgTrackerFilter) && $msgTrackerFilter}
<div class="simplebox highlight">{$msgTrackerFilter|escape}</div>
{/if}
{if $line ne 'y' and $prefs.javascript_enabled eq 'y' and $noflipflop ne 'y'}
{if (isset($line) && $line ne 'y') and $prefs.javascript_enabled eq 'y' and $noflipflop ne 'y'}
{button _text="{tr}Filters{/tr}" _flip_id="trackerFilter$iTrackerFilter"}
{/if}
<div id="trackerFilter{$iTrackerFilter}" class="trackerfilter" style="display:{if $open eq 'y'}block{else}none{/if}">
<div id="trackerFilter{$iTrackerFilter}" class="trackerfilter" style="display:{if isset($open) && $open eq 'y'}block{else}none{/if}">
{if empty($inForm)}
{if empty($export_action)}
<form action="{$smarty.server.PHP_SELF}?{query}" method="post">
......@@ -24,7 +24,7 @@ function tf_export_submit(fm) {
{/foreach}
{/if}
{/if}
{if $mapview}
{if isset($mapview) && $mapview}
<input type="hidden" name="mapview" value="y" />
{else}
<input type="hidden" name="mapview" value="n" />
......@@ -33,14 +33,14 @@ function tf_export_submit(fm) {
<input type="hidden" name="iTrackerFilter" value="{$iTrackerFilter}" />
{if !empty($count_item)}<input type="hidden" name="count_item" value="{$count_item}" />{/if}
<table class="normal">
{if $line eq 'y'}<tr>{/if}
{if isset($line) && $line eq 'y'}<tr>{/if}
{cycle values="even,odd" print=false}
{foreach from=$filters item=filter}
{if $line ne 'y'}<tr class="{cycle}">{/if}
{if isset($line) && $line ne 'y'}<tr class="{cycle}">{/if}
<td>
<label for="f_{$filter.fieldId}">{$filter.name|tr_if}</label>
{if $showFieldId eq 'y'} -- {$filter.fieldId}{/if}
{if $line ne 'y'}</td><td>{else}:{/if}
{if isset($line) && $line ne 'y'}</td><td>{else}:{/if}
{*------drop-down, multiple *}
{if $filter.format eq 'd' or $filter.format eq 'm'}
<select id="f_{$filter.fieldId}" name="f_{$filter.fieldId}{if $filter.format eq "m"}[]{/if}" {if $filter.format eq "m"} size="5" multiple="multiple"{/if}>
......@@ -91,21 +91,21 @@ function tf_export_submit(fm) {
<input {if $filter.format eq "c"}type="checkbox"{else}type="radio"{/if}
name="f_{$filter.fieldId}{if $filter.format eq "c"}[]{/if}"
value=""{if !$filter.selected} checked="checked"{/if} />
{tr}Any{/tr}{if $line ne 'y'}<br />{/if}
{tr}Any{/tr}{if isset($line) && $line ne 'y'}<br />{/if}
{section name=io loop=$filter.opts}
<input {if $filter.format eq "c"}type="checkbox"{else}type="radio"{/if}
name="f_{$filter.fieldId}{if $filter.format eq "c"}[]{/if}"
value="{$filter.opts[io].id|escape:url}"
{if $filter.opts[io].selected eq "y"} checked="checked"{/if} />
{$filter.opts[io].name|tr_if}
{if $line ne 'y'}<br />{/if}
{if isset($line) && $line ne 'y'}<br />{/if}
{/section}
{/if}
</td>
{if $line ne 'y'}</tr>{else} {/if}
{if isset($line) && $line ne 'y'}</tr>{else} {/if}
{/foreach}
{if $line ne 'y' and $action and $action neq " "}<tr>{/if}
{if ($action and $action neq " ") or !empty($export_action)}
{if (isset($line) && $line ne 'y') and (isset($action) and $action neq " ")}<tr>{/if}
{if (isset($action) and $action neq " ") or !empty($export_action)}
<td>&nbsp;</td>
<td>
{if !empty($export_action)}
......@@ -117,7 +117,7 @@ function tf_export_submit(fm) {
&nbsp;
{/if}
{if $googlemapButtons && $googlemapButtons eq 'y'}
{if $mapview}
{if isset($mapview) && $mapview}
<br /><input class="button submit" type="submit" name="searchlist" value="{tr}List View{/tr}" />
{else}
<br /><input class="button submit" type="submit" name="searchmap" value="{tr}Map View{/tr}" />
......@@ -129,9 +129,9 @@ function tf_export_submit(fm) {
{if $line ne 'y'}<tr>{/if}
<td>{tr}Sort{/tr}</td>
<td>{include file='tracker_sort_input.tpl' iTRACKERLIST=$iTrackerFilter}
{if $line ne 'y'}</tr>{/if}
{if isset($line) && $line ne 'y'}</tr>{/if}
{/if}
{if $line ne 'y' and $action}</tr>{/if}
{if (isset($line) && $line ne 'y' ) and $action}</tr>{/if}
</table>
{if empty($inForm)}</form>{/if}
</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment