[Vtigercrm-commits] [vtiger-commits] r3972 - /vtigercrm/trunk/include/utils/CommonUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Feb 28 00:53:13 EST 2006
Author: richie
Date: Mon Feb 27 22:53:08 2006
New Revision: 3972
Log:
Added get_product_details_label condition in commonutils.
Modified:
vtigercrm/trunk/include/utils/CommonUtils.php
Modified: vtigercrm/trunk/include/utils/CommonUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/CommonUtils.php (original)
+++ vtigercrm/trunk/include/utils/CommonUtils.php Mon Feb 27 22:53:08 2006
@@ -777,16 +777,17 @@
$prev_header = "";
for($i=0; $i<$noofrows; $i++)
{
- $block_title = $mod_strings[$adb->query_result($result,$i,"blocklabel")];
+ $block_title = $mod_strings[$adb->query_result($result,$i,"blocklabel")];
+ $block_label = $adb->query_result($result,$i,"blocklabel");
if($block_title !='')
{
$prev_header = $block_title;
if($disp_view == "detail_view")
{
- if($block_title=='LBL_RELATED_PRODUCTS')
+ if($block_label=='LBL_RELATED_PRODUCTS')
{
- $getBlockInfo=getProductDetails();
+ $getBlockInfo=getProductDetailsBlockInfo($mode,$module);
}
else
{
@@ -794,13 +795,23 @@
}
}
else
- {
- $getBlockInfo=getBlockInformation($module,$adb->query_result($result,$i,"blockid"),$mode,$col_fields,$tabid,$info_type);
+ {
+ if($block_label=='LBL_RELATED_PRODUCTS')
+ {
+ $getBlockInfo=getProductDetailsBlockInfo($mode,$module);
+ //echo '<pre>';print_r($getBlockInfo);echo '</pre>';
+ }
+ else
+ {
+ $getBlockInfo=getBlockInformation($module,$adb->query_result($result,$i,"blockid"),$mode,$col_fields,$tabid,$info_type);
+ //echo '<pre>';print_r($getBlockInfo);echo '</pre>';
+ }
}
if(is_array($getBlockInfo))
{
$block_detail[$block_title] = $getBlockInfo;
+ //echo '<pre>';print_r($block_detail);echo '</pre>';
}
}
else
@@ -833,6 +844,7 @@
}
}
+ //echo '<pre>';print_r($block_detail);echo '</pre>';
return $block_detail;
}
@@ -1180,16 +1192,4 @@
return $count;
}
-function mkdirs($dir) {
-if( is_null($dir) || $dir === "" ){
- return FALSE;
-}
-if( is_dir($dir) || $dir === "/" ){
- return TRUE;
-}
-if( mkdirs(dirname($dir), $mode, $recursive) ){
- return mkdir($dir, $mode);
-}
-return FALSE;
-}
?>
More information about the vtigercrm-commits
mailing list