[Vtigercrm-commits] [vtiger-commits] r4509 - /vtigercrm/trunk/modules/Settings/ComboFieldList.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Mar 28 00:21:24 EST 2006
Author: saraj
Date: Mon Mar 27 22:21:20 2006
New Revision: 4509
Log:
junk code has been removed
Modified:
vtigercrm/trunk/modules/Settings/ComboFieldList.php
Modified: vtigercrm/trunk/modules/Settings/ComboFieldList.php
==============================================================================
--- vtigercrm/trunk/modules/Settings/ComboFieldList.php (original)
+++ vtigercrm/trunk/modules/Settings/ComboFieldList.php Mon Mar 27 22:21:20 2006
@@ -9,7 +9,6 @@
* All Rights Reserved.
*
********************************************************************************/
-
require_once('include/database/PearDatabase.php');
require_once('database/DatabaseConnection.php');
require_once('XTemplate/xtpl.php');
@@ -20,8 +19,6 @@
echo get_module_title("Settings",$mod_strings['LBL_MODULE_NAME'].": ".$mod_strings[$_REQUEST['fld_module']].$mod_strings['PicklistFields'], true);
echo '<BR>';
-//echo get_form_header("Standard Fields", "", false );
-
global $theme;
$theme_path="themes/".$theme."/";
@@ -127,21 +124,7 @@
}
-
-function fetchTabIDVal($fldmodule)
-{
-
- global $adb;
- $query = "select tabid from tab where tablabel='" .$fldmodule ."'";
- $tabidresult = $adb->query($query);
- return $adb->query_result($tabidresult,0,"tabid");
-}
-
-$tabid = fetchTabIDVal($fldmodule);
-
-
-
-
+$tabid = getTabid($fldmodule);
//Standard PickList Fields
function getStdOutput($custFldArray, $mod_strings)
@@ -217,8 +200,7 @@
function getUserFldArray($fld_module)
{
$user_fld = Array();
- $query = "select * from field where generatedtype=2 and tabid=".fetchTabIDVal($fld_module)." and uitype IN (15,16)";
-// echo $query;
+ $query = "select * from field where generatedtype=2 and tabid=".getTabid($fld_module)." and uitype IN (15,16)";
$result = mysql_query($query);
$noofrows = mysql_num_rows($result);
if($noofrows > 0)
More information about the vtigercrm-commits
mailing list