</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 } ?>
</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(); } }
<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
</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 } ?>
?> </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>