'; echo '
'; echo ''; echo ''; echo ''; echo '
'; echo ''; if($_REQUEST['fld_module']=="Leads") { echo ''; //button for custom field mapping } echo '
'; echo '
'; //onclick="this.form.return_module.value="Settings"; this.form.action.value="index" 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($_REQUEST['fld_module']); $fld_module = $_REQUEST['fld_module']; echo getCustomFieldList($tabid,$mod_strings,$fld_module); function getCustomFieldList($tabid, $mod_strings, $fld_module) { global $adb; //fieldid,fieldlabel,column_name,typdesc $dbQuery = "select fieldid,columnname,fieldlabel,uitype,displaytype from field where tabid=".$tabid." and generatedtype=2 order by sequence"; $result = $adb->query($dbQuery) or die("Couldn't get file list"); $list = ''; $list .=''; $list .= ''; $list .= ''; $list .= ''; $list .= ''; //$list .= ''; $list .= ''; //$list .= ''; $i=1; while($row = $adb->fetch_array($result)) { if ($i%2==0) $trowclass = 'evenListRow'; else $trowclass = 'oddListRow'; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $list .= ''; $i++; } $list .= ''; $list .= '
Operation
'; $list .= '
'; $list .= $mod_strings['FieldName'].''; $list .= ''; $list .= $mod_strings['FieldType'].'
'; $list .= ''.$mod_strings['Delete'].''; $list .= '
'; $list .= $row["fieldlabel"]; $list .= ''; $fld_type_name = getCustomFieldTypeName($row["uitype"]); $list .= $fld_type_name; $list .= '
'; $list .= ''; return $list; } ?>