EOQ; return $the_script; } /** * Create HTML form to enter a new record with the minimum necessary vtiger_fields. * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. * All Rights Reserved. * Contributor(s): ______________________________________.. */ function get_new_record_form () { global $mod_strings; global $app_strings; global $current_user; global $adb;//for dynamic quickcreateform construction $lbl_required_symbol = $app_strings['LBL_REQUIRED_SYMBOL']; $lbl_first_name = $mod_strings['LBL_FIRST_NAME']; $lbl_last_name = $mod_strings['LBL_LAST_NAME']; $lbl_account_name = $mod_strings['LBL_ACCOUNT_NAME']; $lbl_phone = $mod_strings['LBL_PHONE']; $lbl_email_address = $mod_strings['LBL_EMAIL_ADDRESS']; $lbl_save_button_title = $app_strings['LBL_SAVE_BUTTON_TITLE']; $lbl_save_button_key = $app_strings['LBL_SAVE_BUTTON_KEY']; $lbl_save_button_label = $app_strings['LBL_SAVE_BUTTON_LABEL']; $user_id = $current_user->id; $qcreate_form = get_left_form_header($mod_strings['LBL_NEW_FORM_TITLE']); $qcreate_get_field="select * from vtiger_field where tabid=4 and quickcreate=0 and vtiger_field.presence in (0,2) order by quickcreatesequence"; $qcreate_get_result=$adb->pquery($qcreate_get_field, array()); $qcreate_get_noofrows=$adb->num_rows($qcreate_get_result); $fieldName_array = Array();//for validation $qcreate_form.='
'; $qcreate_form.=''; $qcreate_form .= get_left_form_footer(); return $qcreate_form; } /*function get_new_record_form () { global $mod_strings; global $app_strings; global $current_user; $lbl_required_symbol = $app_strings['LBL_REQUIRED_SYMBOL']; $lbl_first_name = $mod_strings['LBL_FIRST_NAME']; $lbl_last_name = $mod_strings['LBL_LAST_NAME']; $lbl_phone = $mod_strings['LBL_PHONE']; $lbl_email_address = $mod_strings['LBL_EMAIL_ADDRESS']; $lbl_save_button_title = $app_strings['LBL_SAVE_BUTTON_TITLE']; $lbl_save_button_key = $app_strings['LBL_SAVE_BUTTON_KEY']; $lbl_save_button_label = $app_strings['LBL_SAVE_BUTTON_LABEL']; $user_id = $current_user->id; $the_form = get_left_form_header($mod_strings['LBL_NEW_FORM_TITLE']); $the_form .= <<