[Vtigercrm-commits] [vtiger-commits] r4430 - /vtigercrm/trunk/modules/Settings/CustomFieldList.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Mar 24 08:46:59 EST 2006
Author: saraj
Date: Fri Mar 24 06:46:54 2006
New Revision: 4430
Log:
edit link has been included
Modified:
vtigercrm/trunk/modules/Settings/CustomFieldList.php
Modified: vtigercrm/trunk/modules/Settings/CustomFieldList.php
==============================================================================
--- vtigercrm/trunk/modules/Settings/CustomFieldList.php (original)
+++ vtigercrm/trunk/modules/Settings/CustomFieldList.php Fri Mar 24 06:46:54 2006
@@ -21,6 +21,8 @@
echo '<form action="index.php" method="post" name="new" id="form">';
echo '<input type="hidden" name="fld_module" value="'.$_REQUEST['fld_module'].'">';
echo '<input type="hidden" name="module" value="Settings">';
+echo '<input type="hidden" name="parenttab" value="Settings">';
+echo '<input type="hidden" name="mode">';
echo '<input type="hidden" name="action" value="CreateCustomField">';
echo '<tr><br>';
echo '<td><input title="'.$mod_strings['`'].'" accessKey="C" class="button" type="submit" name="NewCustomField" value="'.$mod_strings['NewCustomField'].'"></td>';
@@ -37,7 +39,6 @@
function fetchTabIDVal($fldmodule)
{
-
global $adb;
$query = "select tabid from tab where tablabel='" .$fldmodule ."'";
$tabidresult = $adb->query($query);
@@ -45,7 +46,6 @@
}
$tabid = fetchTabIDVal($_REQUEST['fld_module']);
-
$fld_module = $_REQUEST['fld_module'];
echo getCustomFieldList($tabid,$mod_strings,$fld_module);
@@ -100,6 +100,8 @@
$list .= '<td height="21" style="padding:0px 3px 0px 3px;"><div>';
$list .= '<a href="javascript:deleteCustomField('.$row["fieldid"].',\''.$fld_module.'\', \''.$row["columnname"].'\', \''.$row["uitype"].'\')">'.$mod_strings['Delete'].'</a>';
+ $list .=' | <a href="index.php?module=Settings&action=CreateCustomField&fieldid='.$row["fieldid"].'&tabid='.$tabid.'&uitype='.$row["uitype"].'&fld_module='.$fld_module.'&parenttab=Settings">'.$mod_strings['Edit'].'</a>';
+
$list .= '</div></td>';
More information about the vtigercrm-commits
mailing list