本文整理汇总了PHP中SugarEmailAddress::getEmailAddressWidgetDuplicatesView方法的典型用法代码示例。如果您正苦于以下问题:PHP SugarEmailAddress::getEmailAddressWidgetDuplicatesView方法的具体用法?PHP SugarEmailAddress::getEmailAddressWidgetDuplicatesView怎么用?PHP SugarEmailAddress::getEmailAddressWidgetDuplicatesView使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SugarEmailAddress
的用法示例。
在下文中一共展示了SugarEmailAddress::getEmailAddressWidgetDuplicatesView方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: urldecode
}
foreach ($account->additional_column_fields as $field) {
if (!empty($_POST['Accounts' . $field])) {
$value = urldecode($_POST['Accounts' . $field]);
$input .= "<input type='hidden' name='{$field}' value='{$value}'>\n";
}
}
// Bug 25311 - Add special handling for when the form specifies many-to-many relationships
if (!empty($_POST['Contactsrelate_to'])) {
$input .= "<input type='hidden' name='relate_to' value='{$_POST['Contactsrelate_to']}'>\n";
}
if (!empty($_POST['Contactsrelate_id'])) {
$input .= "<input type='hidden' name='relate_id' value='{$_POST['Contactsrelate_id']}'>\n";
}
$emailAddress = new SugarEmailAddress();
$input .= $emailAddress->getEmailAddressWidgetDuplicatesView($account);
$get = '';
if (!empty($_POST['return_module'])) {
$xtpl->assign('RETURN_MODULE', $_POST['return_module']);
} else {
$get .= "Accounts";
}
$get .= "&return_action=";
if (!empty($_POST['return_action'])) {
$xtpl->assign('RETURN_ACTION', $_POST['return_action']);
} else {
$get .= "DetailView";
}
if (!empty($_POST['return_id'])) {
$xtpl->assign('RETURN_ID', $_POST['return_id']);
}
示例2: display
function display()
{
global $app_strings;
global $app_list_strings;
global $theme;
global $current_language;
global $mod_strings;
if (!isset($_SESSION['SHOW_DUPLICATES'])) {
Log::error("Unauthorized access to this area.");
sugar_die("Unauthorized access to this area.");
}
parse_str($_SESSION['SHOW_DUPLICATES'], $_POST);
$post = array_map("securexss", $_POST);
foreach ($post as $k => $v) {
$_POST[$k] = $v;
}
unset($_SESSION['SHOW_DUPLICATES']);
$lead = new Lead();
require_once 'modules/Leads/LeadFormBase.php';
$leadForm = new LeadFormBase();
$GLOBALS['check_notify'] = false;
$query = 'SELECT id, first_name, last_name, title FROM leads WHERE deleted=0 ';
$duplicates = $_POST['duplicate'];
$count = count($duplicates);
if ($count > 0) {
$query .= "and (";
$first = true;
foreach ($duplicates as $duplicate_id) {
if (!$first) {
$query .= ' OR ';
}
$first = false;
$query .= "id='{$duplicate_id}' ";
}
$query .= ')';
}
$duplicateLeads = [];
$db = DBManagerFactory::getInstance();
$result = $db->query($query);
$i = 0;
while (($row = $db->fetchByAssoc($result)) != null) {
$duplicateLeads[$i] = $row;
$i++;
}
$this->ss->assign('FORMBODY', $leadForm->buildTableForm($duplicateLeads));
$input = '';
foreach ($lead->column_fields as $field) {
if (!empty($_POST['Leads' . $field])) {
$input .= "<input type='hidden' name='{$field}' value='{$_POST['Leads' . $field]}'>\n";
}
}
foreach ($lead->additional_column_fields as $field) {
if (!empty($_POST['Leads' . $field])) {
$input .= "<input type='hidden' name='{$field}' value='{$_POST['Leads' . $field]}'>\n";
}
}
// Bug 25311 - Add special handling for when the form specifies many-to-many relationships
if (!empty($_POST['Leadsrelate_to'])) {
$input .= "<input type='hidden' name='relate_to' value='{$_POST['Leadsrelate_to']}'>\n";
}
if (!empty($_POST['Leadsrelate_id'])) {
$input .= "<input type='hidden' name='relate_id' value='{$_POST['Leadsrelate_id']}'>\n";
}
$emailAddress = new SugarEmailAddress();
$input .= $emailAddress->getEmailAddressWidgetDuplicatesView($lead);
$get = '';
if (!empty($_POST['return_module'])) {
$this->ss->assign('RETURN_MODULE', $_POST['return_module']);
} else {
$get .= "Leads";
}
$get .= "&return_action=";
if (!empty($_POST['return_action'])) {
$this->ss->assign('RETURN_ACTION', $_POST['return_action']);
} else {
$get .= "DetailView";
}
///////////////////////////////////////////////////////////////////////////////
//// INBOUND EMAIL WORKFLOW
if (isset($_REQUEST['inbound_email_id'])) {
$this->ss->assign('INBOUND_EMAIL_ID', $_REQUEST['inbound_email_id']);
$this->ss->assign('RETURN_MODULE', 'Emails');
$this->ss->assign('RETURN_ACTION', 'EditView');
if (isset($_REQUEST['start'])) {
$this->ss->assign('START', $_REQUEST['start']);
}
}
//// END INBOUND EMAIL WORKFLOW
///////////////////////////////////////////////////////////////////////////////
if (!empty($_POST['popup'])) {
$input .= '<input type="hidden" name="popup" value="' . $_POST['popup'] . '">';
} else {
$input .= '<input type="hidden" name="popup" value="false">';
}
if (!empty($_POST['to_pdf'])) {
$input .= '<input type="hidden" name="to_pdf" value="' . $_POST['to_pdf'] . '">';
} else {
$input .= '<input type="hidden" name="to_pdf" value="false">';
}
if (!empty($_POST['create'])) {
//.........这里部分代码省略.........
示例3: SugarEmailAddress
}
foreach ($realtytemplates->additional_column_fields as $field) {
if (!empty($_POST['RealtyTemplates' . $field])) {
$input .= "<input type='hidden' name='{$field}' value='{$_POST['RealtyTemplates' . $field]}'>\n";
}
}
$input .= "<input type='hidden' name='record' value='{$_GET['record']}'>\n";
// Bug 25311 - Add special handling for when the form specifies many-to-many relationships
if (!empty($_POST['RealtyTemplatesrelate_to'])) {
$input .= "<input type='hidden' name='relate_to' value='{$_POST['RealtyTemplatesrelate_to']}'>\n";
}
if (!empty($_POST['RealtyTemplatesrelate_id'])) {
$input .= "<input type='hidden' name='relate_id' value='{$_POST['RealtyTemplatesrelate_id']}'>\n";
}
$emailAddress = new SugarEmailAddress();
$input .= $emailAddress->getEmailAddressWidgetDuplicatesView($realtytemplates);
$get = '';
if (!empty($_POST['return_module'])) {
$xtpl->assign('RETURN_MODULE', $_POST['return_module']);
} else {
$get .= "RealtyTemplates";
}
$get .= "&return_action=";
if (!empty($_POST['return_action'])) {
$xtpl->assign('RETURN_ACTION', $_POST['return_action']);
} else {
$get .= "DetailView";
}
///////////////////////////////////////////////////////////////////////////////
//// INBOUND EMAIL WORKFLOW
if (isset($_REQUEST['inbound_email_id'])) {
示例4: SugarEmailAddress
}
}
foreach ($contact->additional_column_fields as $field) {
if (!empty($_POST['Contacts' . $field])) {
$input .= "<input type='hidden' name='{$field}' value='{$_POST['Contacts' . $field]}'>\n";
}
}
// Bug 25311 - Add special handling for when the form specifies many-to-many relationships
if (!empty($_POST['Contactsrelate_to'])) {
$input .= "<input type='hidden' name='relate_to' value='{$_POST['Contactsrelate_to']}'>\n";
}
if (!empty($_POST['Contactsrelate_id'])) {
$input .= "<input type='hidden' name='relate_id' value='{$_POST['Contactsrelate_id']}'>\n";
}
$emailAddress = new SugarEmailAddress();
$input .= $emailAddress->getEmailAddressWidgetDuplicatesView($contact);
$get = '';
if (!empty($_POST['return_module'])) {
$xtpl->assign('RETURN_MODULE', $_POST['return_module']);
} else {
$get .= "Contacts";
}
$get .= "&return_action=";
if (!empty($_POST['return_action'])) {
$xtpl->assign('RETURN_ACTION', $_POST['return_action']);
} else {
$get .= "DetailView";
}
///////////////////////////////////////////////////////////////////////////////
//// INBOUND EMAIL WORKFLOW
if (isset($_REQUEST['inbound_email_id'])) {
示例5: urldecode
}
foreach ($xvendor->additional_column_fields as $field) {
if (!empty($_POST['xVendors' . $field])) {
$value = urldecode($_POST['xVendors' . $field]);
$input .= "<input type='hidden' name='{$field}' value='{$value}'>\n";
}
}
// Bug 25311 - Add special handling for when the form specifies many-to-many relationships
if (!empty($_POST['Contactsrelate_to'])) {
$input .= "<input type='hidden' name='relate_to' value='{$_POST['Contactsrelate_to']}'>\n";
}
if (!empty($_POST['Contactsrelate_id'])) {
$input .= "<input type='hidden' name='relate_id' value='{$_POST['Contactsrelate_id']}'>\n";
}
$emailAddress = new SugarEmailAddress();
$input .= $emailAddress->getEmailAddressWidgetDuplicatesView($xvendor);
$get = '';
if (!empty($_POST['return_module'])) {
$xtpl->assign('RETURN_MODULE', $_POST['return_module']);
} else {
$get .= "xVendors";
}
$get .= "&return_action=";
if (!empty($_POST['return_action'])) {
$xtpl->assign('RETURN_ACTION', $_POST['return_action']);
} else {
$get .= "DetailView";
}
if (!empty($_POST['return_id'])) {
$xtpl->assign('RETURN_ID', $_POST['return_id']);
}