Ejemplo n.º 1
0
 //send mail to user
 if ($var_ntuser == "ntuser") {
 }
 // envio de mail CC, puesto en el input
 if ($var_cc != "" or $var_ntuser == "ntuser") {
     //Get department details for the ticket id here
     $sql = "Select t.vRefNo,t.vTitle,d.vDeptMail,u.vLogin,u.vEmail, u.nUserId as userid from sptbl_tickets t inner join\r\n\t\t\t\t\t\t\t\t\t\tsptbl_depts d on t.nDeptId=d.nDeptId inner join sptbl_users u on t.nUserId=u.nUserId\r\n\t\t\t\t\t\t\t\t\t\t  where  t.nTicketId='" . mysql_real_escape_string($var_tid) . "'";
     //End Get department details for the ticket id here
     //$sql="select vLogin,vEmail from sptbl_users where nUserId='$var_userid'";
     $result = executeSelect($sql, $conn);
     $row = mysql_fetch_array($result);
     $var_email = $row['vEmail'];
     $var_ulogin = $row['vLogin'];
     $user_id = $row['userid'];
     $useremail = getUserEmail($user_id);
     $useremail = getUserEmailAcsa($user_id);
     if (!in_array($var_email, $useremail)) {
         $useremail[] = $var_email;
     }
     if (count($useremail) > 0) {
         $ccflage = 0;
         foreach ($useremail as $key => $value) {
             $var_email = $value;
             //echo '<pre>'; print_r($row["vDeptMail"]); echo '</pre>'; exit;
             //Send replay mail to user ******************
             $var_mail_body = $var_emailheader . "<br>" . TEXT_MAIL_START . "&nbsp;" . htmlentities($var_ulogin) . ",<br>";
             $var_mail_body .= TEXT_MAIL_BODY . ":" . $var_refno . "<br><br>";
             $var_mail_body .= stripslashes($var_replymatter) . "<br>" . $var_emailfooter;
             //$var_subject = TEXT_EMAIL_SUB;
             $var_subject = "Re:" . $row["vTitle"] . "  Id#[" . $row["vRefNo"] . "]";
             $var_body = $var_mail_body;
Ejemplo n.º 2
0
                                                        <input type="checkbox"  name="chklock" value="lock" class="checkbox" <?php 
    if ($var_lock == "lock") {
        echo "checked";
    }
    ?>
>
											 </td>
                                                      <td width="28%" align=left class="listingmaintext">
                                    <?php 
    echo TEXT_TAKE_LOCK;
    ?>
											</td>
								  </tr>-->
                            </table>
                            <div style="margin-left:216px ">
                                <? $userEmailAcsa = getUserEmailAcsa( $var_userid );
                                if ( $userEmailAcsa[0] != null ) { ?>
                                <div class="flcheck-wrapper">
                                    <input type="checkbox"  name="chkntuser" value="ntuser" class="checkbox" <?php 
    if ($var_ntuser == "ntuser") {
        echo "checked";
    }
    ?>
>
                                    <p>  <?php 
    echo TEXT_NT_USR;
    ?>
</p>
                                </div>
                                <? } ?>
                                <div class="flcheck-wrapper">