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

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri May 26 09:43:41 EDT 2006


Author: saraj
Date: Fri May 26 07:43:37 2006
New Revision: 6462

Log:
changes made to fix the javascript issue

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 Fri May 26 07:43:37 2006
@@ -21,6 +21,7 @@
 
 $tabid=$_REQUEST['tabid'];
 $fieldid=$_REQUEST['fieldid'];
+$readonly = '';
 $smarty = new vtigerCRM_Smarty;
 $cfimagecombo = Array($image_path."text.gif",
                         $image_path."number.gif",
@@ -104,8 +105,8 @@
 $combo_output = '';
 for($i=0;$i<count($cftextcombo);$i++)
 {
-        if($selectedvalue == $i)
-                $sel_val = '';
+        if($selectedvalue == $i && $fieldid != '')
+                $sel_val = 'selected';
         else
                 $sel_val = '';
         $combo_output.= '<option style="background:url('.$cfimagecombo[$i].');background-repeat:no-repeat;background-position:left;padding-left:30px;padding-top:5px;padding-bottom:5px;" '.$sel_val.' onClick="selFieldType('.$i.')" >'.$cftextcombo[$i].'</option>';
@@ -129,6 +130,7 @@
 			<tr>
 				<td>
 					<table>
+						<tr><td>'.$mod_strings['LBL_SELECT_FIELD_TYPE'].'</td></tr>
 						<tr><td>
 							<select name="cfcombo" id="cfcombo" class=small size=10 multiple style="width:100%">'.$combo_output.'</select>
 						</td></tr>
@@ -142,15 +144,15 @@
 						</tr>
 						<tr id="lengthdetails">
 							<td class="dataLabel" nowrap="nowrap" align="right"><b>'.$mod_strings['LBL_LENGTH'].'</b></td>
-							<td align="left"><input type="text" name="fldLength" value="'.$fieldlength.'""'.$readonly.'" class="txtBox"></td>
+							<td align="left"><input type="text" name="fldLength" value="'.$fieldlength.'" '.$readonly.' class="txtBox"></td>
 						</tr>
 						<tr id="decimaldetails" style="visibility:hidden;">
 							<td class="dataLabel" nowrap="nowrap" align="right"><b>'.$mod_strings['LBL_DECIMAL_PLACES'].'</b></td>
-							<td align="left"><input type="text" name="fldDecimal" value="'.$decimalvalue.'" "'.$readonly.'" class="txtBox"></td>
+							<td align="left"><input type="text" name="fldDecimal" value="'.$decimalvalue.'" '.$readonly.' class="txtBox"></td>
 						</tr>
 						<tr id="picklist" style="visibility:hidden;">
 							<td class="dataLabel" nowrap="nowrap" align="right" valign="top"><b>'.$mod_strings['LBL_PICK_LIST_VALUES'].'</b></td>
-							<td align="left" valign="top"><textarea name="fldPickList" rows="10" class="txtBox" "'.$readonly.'">'.$fldVal.'</textarea></td>
+							<td align="left" valign="top"><textarea name="fldPickList" rows="10" class="txtBox" '.$readonly.'>'.$fldVal.'</textarea></td>
 							<!--td style="padding-left:10px"><img src="themes/Aqua/images/picklist_hint.gif"/></td-->
 						</tr>
 					</table>





More information about the vtigercrm-commits mailing list