本文整理汇总了PHP中CTicket::GetRefBookValues方法的典型用法代码示例。如果您正苦于以下问题:PHP CTicket::GetRefBookValues方法的具体用法?PHP CTicket::GetRefBookValues怎么用?PHP CTicket::GetRefBookValues使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CTicket
的用法示例。
在下文中一共展示了CTicket::GetRefBookValues方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
arCriticality["<?php
echo $sid;
?>
"]=Array(<?php
$rs = CTicket::GetRefBookValues("K", $sid);
echo "Array('NOT_REF', ' ')";
while ($ar = $rs->Fetch()) {
echo ", Array('" . AddSlashes(htmlspecialcharsbx($ar["REFERENCE_ID"])) . "', '" . AddSlashes(htmlspecialcharsbx($ar["REFERENCE"])) . "')";
}
?>
);
arCategory["<?php
echo $sid;
?>
"]=Array(<?php
$rs = CTicket::GetRefBookValues("C", $sid);
echo "Array('NOT_REF', ' ')";
while ($ar = $rs->Fetch()) {
echo ", Array('" . AddSlashes(htmlspecialcharsbx($ar["REFERENCE_ID"])) . "', '" . AddSlashes(htmlspecialcharsbx($ar["REFERENCE"])) . "')";
}
?>
);
<?php
}
}
?>
function DictionaryList(site_id)
{
var select_index;
var arrList = Array();
var arrValues = Array();
示例2: GetMessage
if (strSourceValue!="NOT_REF")
{
document.getElementById("OWNER_SID").disabled = false;
document.getElementById("OWNER_SID").style.display = "inline";
}
}
//-->
</SCRIPT>
<tr valign="middle">
<td width="20%" nowrap><?php
echo GetMessage("SUP_SOURCE") . " / " . GetMessage("SUP_FROM");
?>
</td>
<td width="80%" nowrap><?php
echo SelectBox("SOURCE_ID", CTicket::GetRefBookValues("SR", $arTicket["LID"]), "< web >", $str_SOURCE_ID, "OnChange=SelectSource() ");
?>
<input type="text" size="12" name="OWNER_SID" id="OWNER_SID" value="<?php
echo $str_OWNER_SID;
?>
"><?php
echo FindUserID("OWNER_USER_ID", $str_OWNER_USER_ID);
?>
</td>
</tr>
<SCRIPT LANGUAGE="JavaScript">
<!--
SelectSource();
//-->
</SCRIPT>
<tr valign="top">
示例3: array
$w_subject = "";
$db_res = CEventMessage::GetList($o, $b, array("EVENT_NAME" => "TICKET_NEW || TICKET_CHANGE", "LID" => $MAILBOX_LID));
while ($ar_res = $db_res->Fetch()) {
$ar_res["SUBJECT"] = preg_quote($ar_res["SUBJECT"], "/");
$ar_res["SUBJECT"] = str_replace("#ID#", "([0-9]+)", $ar_res["SUBJECT"]);
$ar_res["SUBJECT"] = preg_replace("/#[-A-Z_0-9]+#/i", ".*?", $ar_res["SUBJECT"]);
$w_subject .= $ar_res["SUBJECT"] . "\r\n";
}
$W_SUPPORT_SUBJECT = $w_subject;
}
?>
<textarea name="W_SUPPORT_SUBJECT" cols="45" rows="3" class="typearea" wrap="off"><?php
echo htmlspecialchars($W_SUPPORT_SUBJECT);
?>
</textarea></font></td>
</tr>
<tr valign="top">
<td align="right"><font class="tablefieldtext"><?php
echo GetMessage("SUPPORT_MAIL_ADD_TO_CATEORY");
?>
</font></td>
<td valign="top"><font class="tablebodytext">
<?php
echo SelectBox("W_SUPPORT_CATEGORY", CTicket::GetRefBookValues("C", $MAILBOX_LID), "(" . GetMessage("SUPPORT_MAIL_ADD_TO_CATEGORY_N") . ")", $W_SUPPORT_CATEGORY);
?>
</font></td>
</tr>
<?php
}