Skip to content
Snippets Groups Projects
Commit 0d95c039 authored by Peter Rotich's avatar Peter Rotich
Browse files

Change TO address to a dropdown selection in anticipation of multi-email

support
parent 23e2aca9
No related branches found
No related tags found
No related merge requests found
......@@ -399,6 +399,7 @@ $tcount+= $ticket->getNumNotes();
<input type="hidden" name="a" value="reply">
<span class="error"></span>
<table style="width:100%" border="0" cellspacing="0" cellpadding="3">
<tbody id="to_sec">
<tr>
<td width="120">
<label><strong>TO:</strong></label>
......@@ -407,14 +408,18 @@ $tcount+= $ticket->getNumNotes();
<?php
$to = $ticket->getReplyToEmail();
if(($name=$ticket->getName()) && !strpos($name,'@'))
$to =sprintf('%s <em>&lt;%s&gt;</em>', $name, $to);
echo $to;
$to =sprintf('%s &lt;%s&gt;', $name, $to);
$emailReply = (!isset($info['emailreply']) || $info['emailreply']);
?>
&nbsp;&nbsp;&nbsp;
<label><input type='checkbox' value='1' name="emailreply" id="remailreply"
<?php echo ((!$info['emailreply'] && !$errors) || isset($info['emailreply']))?'checked="checked"':''; ?>> Email Reply</label>
<select id="emailreply" name="emailreply">
<option value="1" <?php echo $emailReply ? 'selected="selected"' : ''; ?>><?php echo $to; ?></option>
<option value="0" <?php echo !$emailReply ? 'selected="selected"' : ''; ?>
>&mdash;Do Not Email Reply&mdash;</option>
</select>
</td>
</tr>
</tbody>
<?php
if($errors['response']) {?>
<tr><td width="120">&nbsp;</td><td class="error"><?php echo $errors['response']; ?>&nbsp;</td></tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment