pquery($sql, array($_REQUEST['blockid'])); $row= $adb->fetch_array($res); checkFileAccessForInclusion('modules/'.$_REQUEST['fld_module'].'/language/'.$_SESSION['authenticated_user_language'].'.lang.php'); include('modules/'.$_REQUEST['fld_module'].'/language/'.$_SESSION['authenticated_user_language'].'.lang.php'); $blockLabel=$mod_strings[$row["blocklabel"]]; } $blockQuery = 'SELECT blocklabel,blockid FROM vtiger_blocks WHERE tabid = ?'; $block = $adb->pquery($blockQuery, array($_REQUEST['tabid'])); $blocknum = $adb->num_rows($block); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("FLD_MODULE", vtlib_purify($_REQUEST['fld_module'])); $output = ''; $output .= '
'; if($mode == 'edit') $output .= ''; else $output .= ''; $output .= ''; $output .='' . '
Edit BlockAdd Block
' . '
'; $output .= ''; $output .='
' . '' . '
'; $output .= '
' . '' . '' . '' . '
Block name
After
 
' . '' . ''; echo $output; ?>