megabr Posted September 28, 2009 Share Posted September 28, 2009 Hi currently exist this feature : Add Ticket CC /Modify bad user mail address on WHMCS? regards 0 Quote Link to comment Share on other sites More sharing options...
megabr Posted September 28, 2009 Author Share Posted September 28, 2009 <?php //echo " <a href='$modulelink&var1=teste&var2=ok'>x</a>"; if(!$_POST) { $sql= "SELECT * FROM tbltickets WHERE id = '$_GET[id]'"; $conx=mysql_query($sql); $l=mysql_fetch_array($conx); $email= $l[email]; echo 'Alterar email do ticket: #'.$l[tid]; echo '<br>'; echo 'Assunto: '.$l[title]; echo '<form action="" method="post" >'; echo 'Email: <br>'; echo '<input type="text" value="'.$email.'" name="new" size="50">'; echo '<br>'; echo 'Copia para:<br>'; echo '<input type="text" value="" name="cc" size="50">'; echo '<br>'; echo '<input type="hidden" value="1" name="gravar">'; echo '<input type="submit" name="enviar" value="Alterar">'; echo '</form>'; } else { $email=$_POST['new']; $cc=$_POST['cc']; if($email) { $sql= "UPDATE tbltickets SET email='$email' WHERE id = '$_GET[id]'"; } $conx=mysql_query($sql) or die(mysql_error()); echo '<b><br>Dados modificados</b>'; } ?> 0 Quote Link to comment Share on other sites More sharing options...
megabr Posted September 28, 2009 Author Share Posted September 28, 2009 sidebar.tpl <li><a href="addonmodules.php?module=ticket_mail&id={$smarty.get.id}" target="_blank">Add Ticket CC [{$smarty.get.id}] </a></li> 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.