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


PHP astercrm::getAllNoteCodes方法代码示例

本文整理汇总了PHP中astercrm::getAllNoteCodes方法的典型用法代码示例。如果您正苦于以下问题:PHP astercrm::getAllNoteCodes方法的具体用法?PHP astercrm::getAllNoteCodes怎么用?PHP astercrm::getAllNoteCodes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在astercrm的用法示例。


在下文中一共展示了astercrm::getAllNoteCodes方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: formAdd


//.........这里部分代码省略.........
						</tr>
						<tr name="positionTR" id="positionTR" style="display:none">
							<td nowrap align="left">' . $locate->Translate("position") . '</td>
							<td align="left"><input type="text" id="position" name="position" size="35"></td>
						</tr>
						<tr name="phoneTR" id="phoneTR" style="display:none">
							<td nowrap align="left">' . $locate->Translate("phone") . '</td>
							<td align="left"><input type="text" id="phone" name="phone" size="35" value="' . $callerid . '">-<input type="text" id="ext" name="ext" size="8" maxlength="8" value=""></td>
						</tr>
						<tr name="phone1TR" id="phone1TR" style="display:none">
							<td nowrap align="left">' . $locate->Translate("phone1") . '</td>
							<td align="left"><input type="text" id="phone1" name="phone1" size="35" value="">-<input type="text" id="ext1" name="ext1" size="8" maxlength="8" value=""></td>
						</tr>
						<tr name="phone2TR" id="phone2TR" style="display:none">
							<td nowrap align="left">' . $locate->Translate("phone2") . '</td>
							<td align="left"><input type="text" id="phone2" name="phone2" size="35" value="">-<input type="text" id="ext2" name="ext2" size="8" maxlength="8" value=""></td>
						</tr>
						<tr name="mobileTR" id="mobileTR" style="display:none">
							<td nowrap align="left">' . $locate->Translate("mobile") . '</td>
							<td align="left"><input type="text" id="mobile" name="mobile" size="35"></td>
						</tr>
						<tr name="faxTR" id="faxTR" style="display:none">
							<td nowrap align="left">' . $locate->Translate("fax") . '</td>
							<td align="left"><input type="text" id="fax" name="fax" size="35">-<input type="text" id="fax_ext" name="fax_ext" size="8" maxlength="8" value=""></td>
						</tr>
						<tr name="emailTR" id="emailTR" style="display:none">
							<td nowrap align="left">' . $locate->Translate("email") . '</td>
							<td align="left"><input type="text" id="email" name="email" size="35"></td>
						</tr>					
						';
            } else {
                $contact =& astercrm::getContactByID($contactid);
                $html .= '
						<tr>
							<td nowrap align="left"><a href=? onclick="xajax_showContact(' . $contactid . ');return false;">' . $locate->Translate("contact") . '</a></td>
							<td align="left"><input type="text" id="contact" name="contact" value="' . $contact['contact'] . '" onkeyup="ajax_showOptions(this,\'getContactsByLetters\',event)" size="35" maxlength="50" autocomplete="off" readOnly><input type="button" value="' . $locate->Translate("cancel") . '" id="btnConfirmContact" name="btnConfirmContact" onclick="btnConfirmContactOnClick();"><input type="hidden" id="contactid" name="contactid" value="' . $contactid . '"></td>
						</tr>
						';
            }
        }
        //add survey html
        //$html .= '<tr><td colspan="2">';
        //$surveyHTML =& astercrm::generateSurvey();
        //$html .= $surveyHTML;
        //$html .= '</tr></td>';
        //if(!defined('HOME_DIR')) define('HOME_DIR',dirname(dirname(__FILE__)));
        //add note html
        $html .= '
				<tr>
					<td nowrap align="left">' . $locate->Translate("note") . '(<input type="checkbox" name="sltPrivate" id="sltPrivate" value="0" onclick="if(this.checked){ document.getElementById(\'private\').value=0;}else{ document.getElementById(\'private\').value=1;}"';
        if ($config['system']['default_share_note']) {
            $html .= 'checked>' . $locate->Translate("share") . ')<input type="hidden" value="0" name="private" id="private"></td>';
        } else {
            $html .= '>' . $locate->Translate("share") . ')<input type="hidden" value="1" name="private" id="private"></td>';
        }
        $html .= '<td align="left">
						<textarea rows="4" cols="50" id="note" name="note" wrap="soft" style="overflow:auto;">' . $note . '</textarea>
					</td>
				</tr>
				<tr>
					<td nowrap align="left">' . $locate->Translate("note_code") . '</td>
					<td align="left"><select id="note_code" name="note_code">';
        $getAllNoteCodes =& astercrm::getAllNoteCodes();
        foreach ($getAllNoteCodes as $tmp) {
            $html .= '<option value="' . $tmp['code'] . '">' . $tmp['code'] . '</option>';
        }
        $html .= '</select></td>
			</tr>
			<tr>
				<td nowrap align="left">' . $locate->Translate("priority") . '</td>
				<td align="left">
					<select id="priority" name="priority">
						<option value=0>0</option>
						<option value=1>1</option>
						<option value=2>2</option>
						<option value=3>3</option>
						<option value=4>4</option>
						<option value=5 selected>5</option>
						<option value=6>6</option>
						<option value=7>7</option>
						<option value=8>8</option>
						<option value=9>9</option>
						<option value=10>10</option>
					</select> 
					&nbsp;  <input type="radio" name="attitude"   value="10"/><img src="skin/default/images/10.gif" width="25px" height="25px" border="0" /> 
					<input type="radio" name="attitude" value="5"/><img src="skin/default/images/5.gif" width="25px" height="25px" border="0" /> 
					<input type="radio" name="attitude"  value="-1"/><img src="skin/default/images/-1.gif" width="25px" height="25px" border="0" />
					<input type="radio" name="attitude"  value="0" checked/> <img src="skin/default/images/0.gif" width="25px" height="25px" border="0" />
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center"><button id="submitButton" onClick=\'xajax_save(xajax.getFormValues("f"));return false;\'>' . $locate->Translate("continue") . '</button></td>
			</tr>';
        $html .= '
			</table>
			</form>
			' . $locate->Translate("ob_fields") . '
			';
        return $html;
    }
开发者ID:ljhcj,项目名称:IRISCC,代码行数:101,代码来源:astercrm.class.php

示例2: addNote

    function addNote($customerLid)
    {
        global $locate, $db;
        $html .= '
				<form method="post" name="formNote" id="formNote">
				<table border="1" width="100%" class="adminlist">
					<tr>
						<td nowrap align="left">' . $locate->Translate("note") . '</td>
						<td align="left">
							<textarea rows="4" cols="50" id="note" name="note" wrap="soft" style="overflow:auto"></textarea>
							<input type="hidden" value="' . $customerLid . '" name="customerid" id="customerid">
							<input type="hidden" value="0" name="contactid" id="contactid">
						</td>
					</tr>
					<tr>
						<td nowrap align="left">' . $locate->Translate("note_code") . '</td>
						<td align="left"><select id="note_code" name="note_code">';
        $getAllNoteCodes =& astercrm::getAllNoteCodes();
        foreach ($getAllNoteCodes as $tmp) {
            $html .= '<option value="' . $tmp['code'] . '">' . $tmp['code'] . '</option>';
        }
        $html .= '
						</select></td>
					</tr>
					<tr>
						<td nowrap align="left">' . $locate->Translate("priority") . '</td>
						<td align="left">
							<select id="priority" name="priority">
								<option value=0>0</option>
								<option value=1>1</option>
								<option value=2>2</option>
								<option value=3>3</option>
								<option value=4>4</option>
								<option value=5 selected>5</option>
								<option value=6>6</option>
								<option value=7>7</option>
								<option value=8>8</option>
								<option value=9>9</option>
								<option value=10>10</option>
							</select> 

							&nbsp;  <input type="radio" name="attitude"   value="10"/><img src="skin/default/images/10.gif" width="25px" height="25px" border="0" /> 
							<input type="radio" name="attitude" value="5"/><img src="skin/default/images/5.gif" width="25px" height="25px" border="0" /> 
							<input type="radio" name="attitude"  value="-1"/><img src="skin/default/images/-1.gif" width="25px" height="25px" border="0" />
							<input type="radio" name="attitude"  value="0" checked/> <img src="skin/default/images/0.gif" width="25px" height="25px" border="0" />
						</td>
					</tr>
					<tr>
						<td nowrap colspan=2 align=right><input type="button" id="btnAddNote" name="btnAddNote" value="' . $locate->Translate("continue") . '" onclick="xajax_saveCustomerLeadNote(xajax.getFormValues(\'formNote\'));return false;"></td>
					</tr>
				';
        $html .= '
				</table>
				</form>
				';
        return $html;
    }
开发者ID:ljhcj,项目名称:IRISCC,代码行数:57,代码来源:customer_leads.grid.inc.php


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