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


PHP Topic::getHelpTopics方法代码示例

本文整理汇总了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">&mdash; <?php 
echo __('System Default');
?>
 &mdash;</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 
}
?>
开发者ID:gizur,项目名称:osticket,代码行数:31,代码来源:email.inc.php

示例2: foreach

                </select>
                &nbsp;<font class="error"><b>*</b>&nbsp;<?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 >&mdash; Select Help Topic &mdash;</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();
                        }
                    }
开发者ID:Jride,项目名称:OSTicket-Thaiconnections,代码行数:31,代码来源:ticket-open.inc.php

示例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="">&mdash; <?php 
echo __('All Help Topics');
?>
 &mdash;</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 
开发者ID:majklovec,项目名称:osticket-bootstrap-theme,代码行数:31,代码来源:tickets.inc.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">&mdash; <?php 
echo __('None');
?>
 &mdash;</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 
}
?>
开发者ID:jmangarret,项目名称:ostickets,代码行数:31,代码来源:settings-tickets.inc.php

示例5: __

             ?>
         </select>
         &nbsp;<span class="error">&nbsp;<?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">&mdash; <?php
                 echo __('Unchanged'); ?> &mdash;</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>
         &nbsp;<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>
开发者ID:KingsleyGU,项目名称:osticket,代码行数:31,代码来源:filter.inc.php


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