fix undefined variable
This commit is contained in:
parent
5baea95fcd
commit
26914fa012
1 changed files with 12 additions and 8 deletions
|
@ -8,7 +8,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="right">
|
<div class="right">
|
||||||
{if $folderInfo.type!='intellifolder'&&!$folderInfo.readonly}
|
{if $folderInfo.type!='intellifolder'&&empty($folderInfo.readonly)}
|
||||||
<button onclick="showFolderMenu(event);" type="button">
|
<button onclick="showFolderMenu(event);" type="button">
|
||||||
<i class="fa fa-gears fa-lg"></i>
|
<i class="fa fa-gears fa-lg"></i>
|
||||||
{lng p="folderactions"}
|
{lng p="folderactions"}
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
{lng p="refresh"}
|
{lng p="refresh"}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{if !$folderInfo.readonly}<button onclick="folderViewOptions({$folderID});" type="button">
|
{if empty($folderInfo.readonly)}<button onclick="folderViewOptions({$folderID});" type="button">
|
||||||
<i class="fa fa-desktop fa-lg"></i>
|
<i class="fa fa-desktop fa-lg"></i>
|
||||||
{lng p="viewoptions"}
|
{lng p="viewoptions"}
|
||||||
</button>{/if}
|
</button>{/if}
|
||||||
|
@ -59,10 +59,14 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
{if $mailList}
|
{if isset($mailList)}
|
||||||
{assign var=first value=true}
|
{assign var=first value=true}
|
||||||
{foreach from=$mailList key=mailID item=mail}
|
{foreach from=$mailList key=mailID item=mail}
|
||||||
|
{if isset($mail.groupID)}
|
||||||
{assign var=mailGroupID value=$mail.groupID}
|
{assign var=mailGroupID value=$mail.groupID}
|
||||||
|
{else}
|
||||||
|
{assign var=mailGroupID value=''}
|
||||||
|
{/if}
|
||||||
{cycle values="listTableTR,listTableTR2" assign="class"}
|
{cycle values="listTableTR,listTableTR2" assign="class"}
|
||||||
|
|
||||||
{if $mailID<0}
|
{if $mailID<0}
|
||||||
|
@ -72,11 +76,11 @@
|
||||||
{/if}
|
{/if}
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="{if $templatePrefs.showCheckboxes}7{else}6{/if}" class="folderGroup">
|
<td colspan="{if $templatePrefs.showCheckboxes}7{else}6{/if}" class="folderGroup">
|
||||||
<a style="display:block;cursor:pointer;" onclick="toggleGroup({$mailID},'{if isset($mail.groupID)}{$mail.groupID}{/if}');"> <img id="groupImage_{$mailID}" src="{$tpldir}images/{if $smarty.cookies.toggleGroup.$mailGroupID=='closed'}expand{else}contract{/if}.png" width="11" height="11" border="0" align="absmiddle" alt="" />
|
<a style="display:block;cursor:pointer;" onclick="toggleGroup({$mailID},'{if isset($mail.groupID)}{$mail.groupID}{/if}');"> <img id="groupImage_{$mailID}" src="{$tpldir}images/{if isset($smarty.cookies.toggleGroup.$mailGroupID) && $smarty.cookies.toggleGroup.$mailGroupID=='closed'}expand{else}contract{/if}.png" width="11" height="11" border="0" align="absmiddle" alt="" />
|
||||||
{$mail.text} {if $mail.date && $mail.date!=-1}({date timestamp=$mail.date dayonly=true}){/if}</a>
|
{$mail.text} {if isset($mail.date) && $mail.date!=-1}({date timestamp=$mail.date dayonly=true}){/if}</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tbody id="group_{$mailID}" style="display:{if $smarty.cookies.toggleGroup.$mailGroupID=='closed'}none{/if};">
|
<tbody id="group_{$mailID}" style="display:{if isset($smarty.cookies.toggleGroup.$mailGroupID) && $smarty.cookies.toggleGroup.$mailGroupID=='closed'}none{/if};">
|
||||||
{assign var=first value=false}
|
{assign var=first value=false}
|
||||||
{else}
|
{else}
|
||||||
<tr _draggable="true" _ondragstart="mailDragStart(event,{$mailID})" class="{$class}" id="mail_{$mailID}_ntr" _onmousedown="return mailMouseDown(event,{$mailID});" _onmouseup="mailMouseUp(event,{$mailID});" {if $folderID==-3}_ondblclick="document.location.href='email.compose.php?redirect={$mailID}&sid={$sid}';"{else}_ondblclick="document.location.href='email.read.php?id={$mailID}&sid={$sid}';"{/if} _oncontextmenu="return(false);">
|
<tr _draggable="true" _ondragstart="mailDragStart(event,{$mailID})" class="{$class}" id="mail_{$mailID}_ntr" _onmousedown="return mailMouseDown(event,{$mailID});" _onmouseup="mailMouseUp(event,{$mailID});" {if $folderID==-3}_ondblclick="document.location.href='email.compose.php?redirect={$mailID}&sid={$sid}';"{else}_ondblclick="document.location.href='email.read.php?id={$mailID}&sid={$sid}';"{/if} _oncontextmenu="return(false);">
|
||||||
|
@ -129,13 +133,13 @@
|
||||||
<option value="-">------ {lng p="selaction"} ------</option>
|
<option value="-">------ {lng p="selaction"} ------</option>
|
||||||
|
|
||||||
<optgroup label="{lng p="actions"}">
|
<optgroup label="{lng p="actions"}">
|
||||||
{if !$folderInfo.readonly}<option value="delete">{lng p="delete"}</option>{/if}
|
{if empty($folderInfo.readonly)}<option value="delete">{lng p="delete"}</option>{/if}
|
||||||
<option value="forward">{lng p="forward"}</option>
|
<option value="forward">{lng p="forward"}</option>
|
||||||
<option value="download">{lng p="download"}</option>
|
<option value="download">{lng p="download"}</option>
|
||||||
{hook id="email.folder.tpl:mailSelect.actions"}
|
{hook id="email.folder.tpl:mailSelect.actions"}
|
||||||
</optgroup>
|
</optgroup>
|
||||||
|
|
||||||
{if !$folderInfo.readonly}<optgroup label="{lng p="flags"}">
|
{if empty($folderInfo.readonly)}<optgroup label="{lng p="flags"}">
|
||||||
<option value="markread">{lng p="markread"}</option>
|
<option value="markread">{lng p="markread"}</option>
|
||||||
<option value="markunread">{lng p="markunread"}</option>
|
<option value="markunread">{lng p="markunread"}</option>
|
||||||
<option value="mark">{lng p="mark"}</option>
|
<option value="mark">{lng p="mark"}</option>
|
||||||
|
|
Loading…
Reference in a new issue