当前位置: 首页>>代码示例>>PHP>>正文


PHP astercrm::countSurvey方法代码示例

本文整理汇总了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'] . '&nbsp;&nbsp;(' . $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>&nbsp;</td>';
                    }
                }
                $html .= '</tr>';
            }
        }
        $html .= '
					</table>';
        return $html;
    }
开发者ID:ljhcj,项目名称:IRISCC,代码行数:101,代码来源:astercrm.class.php


注:本文中的astercrm::countSurvey方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。