[Vtigercrm-commits] [vtiger-commits] r11083 - in /vtigercrm/branches/5.0.3: Smarty/templates/DisplayFields.tpl modules/Users/EditView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon May 28 08:23:05 EDT 2007


Author: saraj
Date: Mon May 28 06:22:58 2007
New Revision: 11083

Log:
imagename missing in user editview

Modified:
    vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl
    vtigercrm/branches/5.0.3/modules/Users/EditView.php

Modified: vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl Mon May 28 06:22:58 2007
@@ -552,7 +552,11 @@
 				{$fldlabel}
 			</td>
 			<td width="30%" align=left class="dvtCellInfo">
+				{if $MODE eq 'edit' && $IMAGENAME neq ''}
+					<input name="{$fldname}"  type="file" value="{$maindata[3].0.name}" tabindex="{$vt_tab}" />[{$IMAGENAME}]<br>{$APP.LBL_IMG_FORMATS}
+				{else}
 					<input name="{$fldname}"  type="file" value="{$maindata[3].0.name}" tabindex="{$vt_tab}" /><br>{$APP.LBL_IMG_FORMATS}
+				{/if}
 					<input type="hidden" name="id" value=""/>
 					{$maindata[3].0.name}
 			</td>

Modified: vtigercrm/branches/5.0.3/modules/Users/EditView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Users/EditView.php (original)
+++ vtigercrm/branches/5.0.3/modules/Users/EditView.php Mon May 28 06:22:58 2007
@@ -95,6 +95,7 @@
 $smarty->assign("IMAGE_PATH", $image_path);$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
 $focus->mode = $mode;
 $disp_view = getView($focus->mode);
+$smarty->assign("IMAGENAME",$focus->imagename);
 $smarty->assign("BLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields));	
 $smarty->assign("MODULE", 'Settings');
 $smarty->assign("MODE",$focus->mode);





More information about the vtigercrm-commits mailing list