[Vtigercrm-commits] [vtiger-commits] r7387 - in /vtigercrm/trunk/Smarty/templates: DetailView.tpl DetailViewFields.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 21 12:44:32 EDT 2006
Author: richie
Date: Wed Jun 21 10:44:07 2006
New Revision: 7387
Log:
Security Check added for ajax Edit in deltailview
Added:
vtigercrm/trunk/Smarty/templates/DetailViewFields.tpl
Modified:
vtigercrm/trunk/Smarty/templates/DetailView.tpl
Modified: vtigercrm/trunk/Smarty/templates/DetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/DetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/DetailView.tpl Wed Jun 21 10:44:07 2006
@@ -259,18 +259,19 @@
{assign var=keycntimage value=$data.cntimage}
{assign var=keyadmin value=$data.isadmin}
- <input type="hidden" id="hdtxt_IsAdmin" value={$keyadmin}></input>
+
{if $label ne ''}
{if $keycntimage ne ''}
- <td class="dvtCellLabel" align=right width=25%>{$keycntimage}</td>
+ <td class="dvtCellLabel" align=right width=25%><input type="hidden" id="hdtxt_IsAdmin" value={$keyadmin}></input>{$keycntimage}</td>
{elseif $keyid eq '71' || $keyid eq '72'}<!-- Currency symbol -->
- <td class="dvtCellLabel" align=right width=25%>{$label} ({$keycursymb})</td>
+ <td class="dvtCellLabel" align=right width=25%>{$label}<input type="hidden" id="hdtxt_IsAdmin" value={$keyadmin}></input> ({$keycursymb})</td>
{else}
- <td class="dvtCellLabel" align=right width=25%>{$label}</td>
+ <td class="dvtCellLabel" align=right width=25%><input type="hidden" id="hdtxt_IsAdmin" value={$keyadmin}></input>{$label}</td>
{/if}
-
- {include file="DetailViewUI.tpl"}
+{if $EDIT_PERMISSION eq 'yes'} {include file="DetailViewUI.tpl"}
+{else} {include file="DetailViewFields.tpl"}
+{/if}
{else}
<td class="dvtCellLabel" align=right> </td>
<td class="dvtCellInfo" align=left > </td>
More information about the vtigercrm-commits
mailing list