[Vtigercrm-commits] [vtiger-commits] r4599 - /vtigercrm/trunk/modules/Settings/CreateCustomField.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue Mar 28 05:26:58 EST 2006


Author: saraj
Date: Tue Mar 28 03:26:52 2006
New Revision: 4599

Log:
changes made for multiselect combo box

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

Modified: vtigercrm/trunk/modules/Settings/CreateCustomField.php
==============================================================================
--- vtigercrm/trunk/modules/Settings/CreateCustomField.php (original)
+++ vtigercrm/trunk/modules/Settings/CreateCustomField.php Tue Mar 28 03:26:52 2006
@@ -8,22 +8,22 @@
  * All Rights Reserved.
 *
  ********************************************************************************/
+ 
+require_once('include/CustomFieldUtil.php');
+require_once('XTemplate/xtpl.php');
 
-require_once ($theme_path."layout_utils.php");
-require_once('include/CustomFieldUtil.php');
-global $mod_strings,$adb;
 echo get_module_title("Settings", $mod_strings['LBL_MODULE_NAME'].": ".$mod_strings['NEW']." ".$mod_strings[$_REQUEST['fld_module']]." ".$mod_strings['CUSTOMFIELD'], true);
-require_once('XTemplate/xtpl.php');
-global $mod_strings;
-global $app_strings;
-global $app_list_strings;
 
-global $theme;
+global $mod_strings,$app_strings,$app_list_strings,$theme,$adb;
+
 $theme_path="themes/".$theme."/";
 $image_path=$theme_path."images/";
+
 require_once($theme_path.'layout_utils.php');
+
 $tabid=$_REQUEST['tabid'];
 $fieldid=$_REQUEST['fieldid'];
+
 $xtpl=new XTemplate ('modules/Settings/customfield.html');
 if(isset($fieldid) && $fieldid!='')
 {
@@ -37,7 +37,8 @@
 	$xtpl->assign("LABELVALUE",$customfield_fieldlabel);
 	$xtpl->assign("LENGTHVALUE",$fieldlength);
 	$xtpl->assign("DECIMALVALUE",$decimalvalue);
-	if($fieldtype == '7')
+	$xtpl->assign("READ","readonly");
+	if($fieldtype == '7' || $fieldtype == '11')
 	{
 		$query = "select * from ".$customfield_columnname;
 		$result = $adb->query($query);





More information about the vtigercrm-commits mailing list