Ejemplo n.º 1
0
        </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 
}
?>
                </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();
                        }
                    }
    <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 
Ejemplo n.º 4
0
</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 
}
?>
Ejemplo n.º 5
0
             ?>
         </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>