當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SugarEmailAddress::getEmailAddressWidgetDuplicatesView方法代碼示例

本文整理匯總了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']);
}
開發者ID:omusico,項目名稱:windcrm,代碼行數:31,代碼來源:ShowDuplicates.php

示例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'])) {
//.........這裏部分代碼省略.........
開發者ID:butschster,項目名稱:sugarcrm_dev,代碼行數:101,代碼來源:view.showduplicates.php

示例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'])) {
開發者ID:omusico,項目名稱:sugar_work,代碼行數:31,代碼來源:ShowDuplicates.php

示例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'])) {
開發者ID:butschster,項目名稱:sugarcrm_dev,代碼行數:31,代碼來源:ShowDuplicates.php

示例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']);
}
開發者ID:sunmo,項目名稱:snowlotus,代碼行數:31,代碼來源:ShowDuplicates.php


注:本文中的SugarEmailAddress::getEmailAddressWidgetDuplicatesView方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。