本文整理匯總了PHP中astercrm::countSurvey方法的典型用法代碼示例。如果您正苦於以下問題:PHP astercrm::countSurvey方法的具體用法?PHP astercrm::countSurvey怎麽用?PHP astercrm::countSurvey使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類astercrm
的用法示例。
在下文中一共展示了astercrm::countSurvey方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: showCustomerRecord
//.........這裏部分代碼省略.........
<!--**********************-->
<tr>
<td nowrap align="left">' . $locate->Translate("mobile") . '</td>
<td align="left"><a href=? onclick="dial(\'' . $customer['mobile'] . '\',\'\',xajax.getFormValues(\'myForm\'));return false;">' . $customer['mobile'] . '</a></td>
</tr>
<tr>
<td nowrap align="left">' . $locate->Translate("fax") . '</td>
<td align="left"><a href=? onclick="dial(\'' . $customer['fax'] . '\',\'\',xajax.getFormValues(\'myForm\'));return false;">' . $customer['fax'] . '</a>-<a href=? onclick="dial(\'' . $customer['fax'] . '\',\'\',xajax.getFormValues(\'myForm\'),\'' . $customer['fax_ext'] . '\');return false;">' . $customer['fax_ext'] . '</a></td>
</tr>
<tr>
<td nowrap align="left">' . $locate->Translate("email") . '</td>
<td align="left"><a href="mailto:' . $customer['email'] . '">' . $customer['email'] . '</a></td>
</tr>
<!--**********************-->
<tr>
<td nowrap align="left">' . $locate->Translate("website") . '</td>
<td align="left"><a href="' . $customer['website'] . '" target="_blank">' . $customer['website'] . '</a></td>
</tr>
<tr>
<td nowrap align="left">' . $locate->Translate("customer_contact") . '</td>
<td align="left">' . $customer['contact'] . ' (' . $locate->Translate($customer['contactgender']) . ')</td>
</tr>
<tr>
<td nowrap align="left">' . $locate->Translate("customer_phone") . '</td>
<td align="left"><a href=? onclick="dial(\'' . $customer['phone'] . '\',\'\',xajax.getFormValues(\'myForm\'));return false;">' . $customer['phone'] . '</a>-<a href=? onclick="dial(\'' . $customer['phone'] . '\',\'\',xajax.getFormValues(\'myForm\'),\'' . $customer['phone_ext'] . '\');return false;">' . $customer['phone_ext'] . '</a></td>
</tr>
<tr>
<td nowrap align="left">' . $locate->Translate("category") . '</td>
<td align="left">' . $customer['category'] . '</td>
</tr>
<tr id="trCustomerBankDetails" name="trCustomerBankDetails" style="display:none">
<td nowrap align="left">' . $locate->Translate("bank_name") . '</td>
<td align="left">' . $customer['bankname'] . '</td>
</tr>
<tr id="trCustomerBankDetails" name="trCustomerBankDetails" style="display:none">
<td nowrap align="left">' . $locate->Translate("bank_zip") . '</td>
<td align="left">' . $customer['bankzip'] . '</td>
</tr>
<tr id="trCustomerBankDetails" name="trCustomerBankDetails" style="display:none">
<td nowrap align="left">' . $locate->Translate("bank_account_name") . '</td>
<td align="left">' . $customer['bankaccountname'] . '</td>
</tr>
<tr id="trCustomerBankDetails" name="trCustomerBankDetails" style="display:none">
<td nowrap align="left">' . $locate->Translate("bank_account") . '</td>
<td align="left">' . $customer['bankaccount'] . '</td>
</tr>
<tr>
<td nowrap align="left">' . $locate->Translate("create_time") . '</td>
<td align="left">' . $customer['cretime'] . '</td>
</tr>
<tr>
<td nowrap align="left">' . $locate->Translate("create_by") . '</td>
<td align="left">' . $customer['creby'] . '</td>
</tr>
<tr>
<td colspan=2>
<table width="100%">
<tr>
<td>
<a href=? onclick="if (xajax.$(\'allContact\').value==\'off\'){xajax.$(\'contactList\').style.display=\'block\';xajax.$(\'allContact\').value=\'on\'}else{xajax.$(\'contactList\').style.display=\'none\';xajax.$(\'allContact\').value=\'off\'} return false;">' . $locate->Translate("display_all") . '</a>
</td>
<td>
<a href="?" onclick="xajax_noteAdd(\'' . $customer['id'] . '\',0);return false;">' . $locate->Translate("add_note") . '</a>
</td>
<td>';
$survey = astercrm::countSurvey($callerid);
//print_r($survey);exit;
if ($survey['count'] == 1) {
$html .= '<a href="?" onclick="xajax_showSurvey(\'' . $survey['id'] . '\',\'' . $id . '\',0,\'' . $survey['callerid'] . '\',\'' . $survey['campaignid'] . '\');return false;">' . $locate->Translate("Add Survey") . '</a>';
} else {
$html .= '<a href="?" onclick="xajax_surveyList(\'' . $customer['id'] . '\',0,\'' . $survey['callerid'] . '\');return false;">' . $locate->Translate("Add Survey") . '</a>';
}
$html .= '</td><input type="hidden" id="allContact" name="allContact" value="off">
</tr>
</table>
</td>
</tr>
</table>
<table border="0" width="100%" id="contactList" name="contactList" style="display:none">
';
if (!empty($contactList)) {
while ($contactList->fetchInto($row)) {
$html .= '<tr>';
for ($i = 1; $i < 5; $i++) {
$html .= '
<td align="left" width="20%">
<a href=? onclick="xajax_showContact(\'' . $row['id'] . '\');return false;">' . $row['contact'] . '</a>
</td>
';
if (!$contactList->fetchInto($row)) {
$html .= '<td> </td>';
}
}
$html .= '</tr>';
}
}
$html .= '
</table>';
return $html;
}