[Vtigercrm-commits] [vtiger-commits] r4998 - /vtigercrm/trunk/modules/Settings/SettingsSubMenu.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri Apr 7 08:47:06 EDT 2006


Author: saraj
Date: Fri Apr  7 06:47:02 2006
New Revision: 4998

Log:
changed to old UI

Modified:
    vtigercrm/trunk/modules/Settings/SettingsSubMenu.php

Modified: vtigercrm/trunk/modules/Settings/SettingsSubMenu.php
==============================================================================
--- vtigercrm/trunk/modules/Settings/SettingsSubMenu.php (original)
+++ vtigercrm/trunk/modules/Settings/SettingsSubMenu.php Fri Apr  7 06:47:02 2006
@@ -37,47 +37,11 @@
 			);
 if($_REQUEST['type']=='CustomField')
 {
-	$smarty->assign("MODULES",$module_array);
-	$module = 'Leads';
-	$smarty->assign("MODULE",$module);
-	$smarty->assign("CFENTRIES",getCFListEntries($module));
-	//$smarty->display("CustomFieldindex.tpl");
-	$smarty->display("CustomFieldList.tpl");
+	$smarty->display("CustomFieldindex.tpl");
 }
 	$smarty->display("CustomFieldindex.tpl");
 elseif($_REQUEST['type']=='PickList')
 	$smarty->display("PickListindex.tpl");
 elseif($_REQUEST['type']=='FieldOrder')
 	$smarty->display("FieldOrderindex.tpl");
-
-function getCFListEntries($module)
-{
-	$tabid = getTabid($module);
-	global $adb;
-	global $theme;
-	$theme_path="themes/".$theme."/";
-	$image_path=$theme_path."images/";
-	$dbQuery = "select fieldid,columnname,fieldlabel,uitype,displaytype from field where tabid=".$tabid." and generatedtype=2 order by sequence";
-	$result = $adb->query($dbQuery);
-	$row = $adb->fetch_array($result);
-	$count=1;
-	$cflist=Array();
-	if($row!='')
-	{
-		do
-		{
-			$cf_element=Array();
-			$cf_element['no']=$count;
-			$cf_element['label']=$row["fieldlabel"];
-			$fld_type_name = getCustomFieldTypeName($row["uitype"]);
-			$cf_element['type']=$fld_type_name;
-			$cf_element['tool']='<a href="index.php?module=Settings&action=CreateCustomField&fieldid='.$row["fieldid"].'&tabid='.$tabid.'&uitype='.$row["uitype"].'&fld_module='.$fld_module.'&parenttab=Settings" ><img src="'.$image_path.'editfield.gif" border="0" alt="Edit" title="Edit"/></a>&nbsp;|&nbsp;<a rhef="javascript:deleteCustomField('.$row["fieldid"].',\''.$fld_module.'\', \''.$row["columnname"].'\', \''.$row["uitype"].'\')"><img src="'.$image_path.'delete.gif" border="0"  alt="Delete" title="Delete"/></a>';
-
-			$cflist[] = $cf_element;
-			$count++;
-		}while($row = $adb->fetch_array($result));
-	}
-	return $cflist;
-}
-	
 ?>





More information about the vtigercrm-commits mailing list