[Vtigercrm-commits] [vtiger-commits] r10745 - in /vtigercrm/branches/5.0.3: Smarty/templates/CustomView.tpl modules/CustomView/EditView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Apr 20 10:36:53 EDT 2007
Author: richie
Date: Fri Apr 20 08:36:42 2007
New Revision: 10745
Log:
fix for select a columns field. Fixes #3507 --minnie
Modified:
vtigercrm/branches/5.0.3/Smarty/templates/CustomView.tpl
vtigercrm/branches/5.0.3/modules/CustomView/EditView.php
Modified: vtigercrm/branches/5.0.3/Smarty/templates/CustomView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/CustomView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/CustomView.tpl Fri Apr 20 08:36:42 2007
@@ -364,12 +364,19 @@
<table class="small" border="0" cellpadding="3" cellspacing="0" width="100%">
<tbody><tr>
<td class="dvtTabCache" style="width: 10px;" nowrap> </td>
+ {if $STDCOLUMNSCOUNT neq 0}
<td style="width: 100px;" nowrap class="dvtSelectedCell" id="pi" onclick="fnLoadCvValues('pi','mi','mnuTab','mnuTab2')">
<b>{$MOD.LBL_STEP_3_TITLE}</b>
</td>
<td class="dvtUnSelectedCell" style="width: 100px;" align="center" nowrap id="mi" onclick="fnLoadCvValues('mi','pi','mnuTab2','mnuTab')">
<b>{$MOD.LBL_STEP_4_TITLE}</b>
</td>
+ {else}
+ <td class="dvtSelectedCell" style="width: 100px;" align="center" nowrap id="mi" onload="alert('hiiiiiiii')">
+ <b>{$MOD.LBL_STEP_4_TITLE}</b>
+ </td>
+
+ {/if}
<td class="dvtTabCache" nowrap style="width:55%;"> </td>
</tr>
</tbody>
@@ -378,7 +385,14 @@
</tr>
<tr>
<td align="left" valign="top">
- <div id="mnuTab">
+ {if $STDCOLUMNSCOUNT eq 0}
+ {assign var=stddiv value="style=display:none"}
+ {assign var=advdiv value="style=display:block"}
+ {else}
+ {assign var=stddiv value="style=display:block"}
+ {assign var=advdiv value="style=display:none"}
+ {/if}
+ <div id="mnuTab" {$stddiv}>
<table width="100%" cellspacing="0" cellpadding="5" class="dvtContentSpace">
<tr><td><br>
<table width="75%" border="0" cellpadding="5" cellspacing="0" align="center">
@@ -429,7 +443,7 @@
<tr><td> </td></tr>
</table>
</div>
- <div id="mnuTab2">
+ <div id="mnuTab2" {$advdiv} >
<table width="100%" cellspacing="0" cellpadding="5" class="dvtContentSpace">
<tr><td> </td></tr>
<tr><td class="dvtCellInfo">{$MOD.LBL_AF_HDR1}<br /><br />
Modified: vtigercrm/branches/5.0.3/modules/CustomView/EditView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/CustomView/EditView.php (original)
+++ vtigercrm/branches/5.0.3/modules/CustomView/EditView.php Fri Apr 20 08:36:42 2007
@@ -69,6 +69,7 @@
}
$smarty->assign("STDFILTERCOLUMNS",$stdfiltercolhtml);
+ $smarty->assign("STDCOLUMNSCOUNT",count($stdfiltercolhtml));
$smarty->assign("STDFILTERCRITERIA",$stdfilterhtml);
$smarty->assign("STDFILTER_JAVASCRIPT",$stdfilterjs);
@@ -126,6 +127,7 @@
}
$smarty->assign("STDFILTERCOLUMNS",$stdfiltercolhtml);
+ $smarty->assign("STDCOLUMNSCOUNT",count($stdfiltercolhtml));
$smarty->assign("STDFILTERCRITERIA",$stdfilterhtml);
$smarty->assign("STDFILTER_JAVASCRIPT",$stdfilterjs);
More information about the vtigercrm-commits
mailing list