本文整理汇总了PHP中Topic::getHelpTopics方法的典型用法代码示例。如果您正苦于以下问题:PHP Topic::getHelpTopics方法的具体用法?PHP Topic::getHelpTopics怎么用?PHP Topic::getHelpTopics使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Topic
的用法示例。
在下文中一共展示了Topic::getHelpTopics方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __
</tr>
<tr>
<td width="180">
<?php
echo __('Help Topic');
?>
</td>
<td>
<span>
<select name="topic_id">
<option value="0" selected="selected">— <?php
echo __('System Default');
?>
—</option>
<?php
$topics = Topic::getHelpTopics();
while (list($id, $topic) = each($topics)) {
?>
<option value="<?php
echo $id;
?>
"<?php
echo $info['topic_id'] == $id ? 'selected' : '';
?>
><?php
echo $topic;
?>
</option>
<?php
}
?>
示例2: foreach
</select>
<font class="error"><b>*</b> <?php echo $errors['source']; ?></font>
</td>
</tr>
<tr>
<td width="160" class="required">
Help Topic:
</td>
<td>
<select name="topicId" onchange="javascript:
var data = $(':input[name]', '#dynamic-form').serialize();
$('#dynamic-form').load(
'ajax.php/form/help-topic/' + this.value, data);
">
<?php
if ($topics=Topic::getHelpTopics()) {
if (count($topics) == 1)
$selected = 'selected="selected"';
else { ?>
<option value="" selected >— Select Help Topic —</option>
<?php }
foreach($topics as $id =>$name) {
echo sprintf('<option value="%d" %s %s>%s</option>',
$id, ($info['topicId']==$id)?'selected="selected"':'',
$selected, $name);
}
if (count($topics) == 1 && !$form) {
if (($T = Topic::lookup($id)))
$form = $T->getForm();
}
}
示例3: __
<input type="submit" value="<?php
echo __('Search');
?>
">
<div class="pull-right">
<?php
echo __('Help Topic');
?>
:
<select name="topic_id" class="nowarn" onchange="javascript: this.form.submit(); ">
<option value="">— <?php
echo __('All Help Topics');
?>
—</option>
<?php
foreach (Topic::getHelpTopics(true) as $id => $name) {
$count = $thisclient->getNumTopicTickets($id);
if ($count == 0) {
continue;
}
?>
<option value="<?php
echo $id;
?>
"i
<?php
if ($settings['topic_id'] == $id) {
echo 'selected="selected"';
}
?>
><?php
示例4: __
</span> <i class="help-tip icon-question-sign" href="#default_sla"></i>
</span>
</td>
</tr>
<tr>
<td width="180"><?php
echo __('Default Help Topic');
?>
:</td>
<td>
<select name="default_help_topic">
<option value="0">— <?php
echo __('None');
?>
—</option><?php
$topics = Topic::getHelpTopics(false, Topic::DISPLAY_DISABLED);
while (list($id, $topic) = each($topics)) {
?>
<option value="<?php
echo $id;
?>
"<?php
echo $config['default_help_topic'] == $id ? 'selected' : '';
?>
><?php
echo $topic;
?>
</option>
<?php
}
?>
示例5: __
?>
</select>
<span class="error"> <?php echo
$errors['assign']; ?></span><i class="help-tip icon-question-sign" href="#auto_assign"></i>
</td>
</tr>
<tr>
<td width="180">
<?php echo __('Help Topic'); ?>
</td>
<td>
<select name="topic_id">
<option value="0" selected="selected">— <?php
echo __('Unchanged'); ?> —</option>
<?php
foreach (Topic::getHelpTopics(false, Topic::DISPLAY_DISABLED) as $id=>$name) {
$selected=($info['topic_id'] && $id==$info['topic_id'])?'selected="selected"':'';
echo sprintf('<option value="%d" %s>%s</option>',$id,$selected,$name);
}
?>
</select>
<span class="error"><?php echo $errors['topic_id']; ?></span><i class="help-tip icon-question-sign" href="#help_topic"></i>
</td>
</tr>
<tr>
<th colspan="2">
<em><strong><?php echo __('Internal Notes');?></strong>: <?php
echo __("be liberal, they're internal");?></em>
</th>
</tr>
<tr>