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(); ...@@ -399,6 +399,7 @@ $tcount+= $ticket->getNumNotes();
<input type="hidden" name="a" value="reply"> <input type="hidden" name="a" value="reply">
<span class="error"></span> <span class="error"></span>
<table style="width:100%" border="0" cellspacing="0" cellpadding="3"> <table style="width:100%" border="0" cellspacing="0" cellpadding="3">
<tbody id="to_sec">
<tr> <tr>
<td width="120"> <td width="120">
<label><strong>TO:</strong></label> <label><strong>TO:</strong></label>
...@@ -407,14 +408,18 @@ $tcount+= $ticket->getNumNotes(); ...@@ -407,14 +408,18 @@ $tcount+= $ticket->getNumNotes();
<?php <?php
$to = $ticket->getReplyToEmail(); $to = $ticket->getReplyToEmail();
if(($name=$ticket->getName()) && !strpos($name,'@')) if(($name=$ticket->getName()) && !strpos($name,'@'))
$to =sprintf('%s <em>&lt;%s&gt;</em>', $name, $to); $to =sprintf('%s &lt;%s&gt;', $name, $to);
echo $to;
$emailReply = (!isset($info['emailreply']) || $info['emailreply']);
?> ?>
&nbsp;&nbsp;&nbsp; <select id="emailreply" name="emailreply">
<label><input type='checkbox' value='1' name="emailreply" id="remailreply" <option value="1" <?php echo $emailReply ? 'selected="selected"' : ''; ?>><?php echo $to; ?></option>
<?php echo ((!$info['emailreply'] && !$errors) || isset($info['emailreply']))?'checked="checked"':''; ?>> Email Reply</label> <option value="0" <?php echo !$emailReply ? 'selected="selected"' : ''; ?>
>&mdash;Do Not Email Reply&mdash;</option>
</select>
</td> </td>
</tr> </tr>
</tbody>
<?php <?php
if($errors['response']) {?> if($errors['response']) {?>
<tr><td width="120">&nbsp;</td><td class="error"><?php echo $errors['response']; ?>&nbsp;</td></tr> <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