本文整理汇总了PHP中Constants::getMsgTypeList方法的典型用法代码示例。如果您正苦于以下问题:PHP Constants::getMsgTypeList方法的具体用法?PHP Constants::getMsgTypeList怎么用?PHP Constants::getMsgTypeList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Constants
的用法示例。
在下文中一共展示了Constants::getMsgTypeList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Header
**/
include '../lib/agent.defines.php';
include_once '../lib/agent.module.access.php';
include '../lib/agent.smarty.php';
if (!$ACXACCESS) {
Header("HTTP/1.0 401 Unauthorized");
Header("Location: PP_error.php?c=accessdenied");
die;
}
$smarty->display('main.tpl');
$DBHandle = DbConnect();
$table_message = new Table("cc_message_agent", "*");
$clause_message = "id_agent = " . $_SESSION['agent_id'];
$messages = $table_message->Get_list($DBHandle, $clause_message, 'order_display', 'ASC');
$cnts = new Constants();
$message_types = $cnts->getMsgTypeList();
?>
<br/><br/>
<?php
if (is_array($messages) && sizeof($messages) > 0) {
foreach ($messages as $message) {
?>
<div id="msg" class="<?php
echo $message_types[$message['type']][2];
?>
" style="margin-top:0px;position:relative;<?php
if ($message['logo'] == 0) {
echo 'background-image:none;padding-left:10px;';
}
?>
示例2: die
die();
}
echo "false";
die();
break;
}
}
//load home message agent
if(empty($action)) $action="add";
$table_message = new Table("cc_message_agent", "*");
$clause_message = "id_agent = $id";
$messages = $table_message -> Get_list($DBHandle, $clause_message, 'order_display', 'ASC');
$smarty->display('main.tpl');
$message_types = Constants::getMsgTypeList();
?>
<form action="<?php echo $PHP_SELF.'?id='.$id ?>" method="post" >
<input id="action" type="hidden" name="action" value="<?php echo $action;?>"/>
<input id="id_msg" type="hidden" name="id_msg" value="<?php echo $id_msg;?>"/>
<table class="epayment_conf_table">
<tr>
<td colspan="2">
<font style="font-weight:bold; " ><?php echo gettext("MESSAGE : "); ?> </font>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<textarea id="wysiwyg" class="form_input_textarea" name="message" cols="100" rows="10"><?php echo $message;?></textarea>
</td>