Changeset 51


Ignore:
Timestamp:
02/13/2010 07:02:20 AM (3 years ago)
Author:
someotherguy
Message:

Email templates management complete.

Location:
trunk/Upload
Files:
2 added
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/Upload/admin/admin/ad_settings.php

    r48 r51  
    2121 
    2222class ad_settings { 
    23          
     23 
    2424        private $output = ""; 
    2525 
     
    3333 
    3434                $this->trellis->load_lang('settings'); 
    35                  
     35 
    3636                $this->trellis->skin->set_active_link( 1 ); 
    3737 
     
    6161                # Do Output 
    6262                #============================= 
    63                  
     63 
    6464                if ( $alert ) 
    6565                { 
     
    7070                { 
    7171                        $this->output .= $this->trellis->skin->tinymce_js( 'signature' ); 
    72                          
     72 
    7373                        $sig_html = 1; 
    7474                } 
     
    7777                        $sig_html = 0; 
    7878                } 
    79                  
     79 
    8080                $this->trellis->load_functions('drop_downs'); 
    81                  
     81 
    8282                $this->output .= "<div id='ticketroll'> 
    8383                                                ". $this->trellis->skin->start_form( "<! HD_URL !>/admin.php?section=admin&amp;page=settings&amp;act=doedit", 'edit_settings', 'post' ) ." 
     
    8888                                                ". $this->trellis->skin->group_table_row( '{lang.dst}', $this->trellis->skin->custom_radio( 'time_dst', array( 0 => '{lang.inactive}', 1 => '{lang.active}', 2 => '{lang.auto}' ), $this->trellis->user['time_dst'] ), 'a' ) ." 
    8989                                                ". $this->trellis->skin->group_table_row( '{lang.language}', "<select name='lang' id='lang'>". $this->trellis->func->drop_downs->lang_drop( $this->trellis->user['lang'] ) ."</select>", 'a' ) ." 
    90                                                 ". $this->trellis->skin->group_table_row( '{lang.rich_text_editor}', $this->trellis->skin->enabled_disabled_radio( 'rte_enable', $this->trellis->user['rte_enable'] ), 'a' ) ." 
     90                                                ". $this->trellis->skin->group_table_row( '{lang.rich_text_editor}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'rte_enable', 'value' => $this->trellis->user['rte_enable'] ) ), 'a' ) ." 
    9191                                                ". $this->trellis->skin->group_table_sub( '{lang.ticket_column_layout}' ); 
    92                  
     92 
    9393                $columns = unserialize( $this->trellis->user['columns_tm'] ); 
    94                  
     94 
    9595                $lang_columns = array( 
    9696                                                          'id'                  => '{lang.id}', 
     
    108108                                                          'status'              => '{lang.status}', 
    109109                                                          ); 
    110                  
     110 
    111111                foreach( $this->trellis->cache->data['dfields'] as $cf ) 
    112112                { 
    113113                        if ( $cf['type'] != 'checkbox' ) $lang_columns[ 'cfd'. $cf['id'] ] = $cf['name']; 
    114114                } 
    115                  
     115 
    116116                foreach( $this->trellis->cache->data['pfields'] as $cf ) 
    117117                { 
    118118                        if ( $cf['type'] != 'checkbox' ) $lang_columns[ 'cfp'. $cf['id'] ] = $cf['name']; 
    119119                } 
    120                  
     120 
    121121                $columns_current = ''; 
    122122                $columns_available = ''; 
    123123                $cc_empty = ''; 
    124124                $ca_empty = ''; 
    125                  
     125 
    126126                if ( empty( $columns ) ) 
    127127                { 
     
    133133                        { 
    134134                                ( $this->trellis->user['sort_tm'] == $key ) ? $stm_radio = " checked='yes'" : $stm_radio = ""; 
    135                                  
     135 
    136136                                $columns_current .= "<li id='c_". $key ."'>". $lang_columns[ $key ] ."<input type='text' id='cw_". $key ."' name='cw_". $key ."' value='". $width ."' size='3' style='float:right;margin-left:10px;text-align:right' /><input type='radio' id='sort_tm_". $key ."' name='sort_tm' value='". $key ."'". $stm_radio ." style='float:right;margin-top:5px;margin-left:10px;' /></li>"; 
    137                                  
     137 
    138138                                unset( $lang_columns[ $key ] ); 
    139139                        } 
    140140                } 
    141                  
     141 
    142142                if ( empty( $lang_columns ) ) 
    143143                { 
     
    151151                        } 
    152152                } 
    153                                                  
     153 
    154154                $column_layout .= "<div style='width:49%;float:left'> 
    155155                                                        <fieldset> 
     
    166166                                                        </fieldset> 
    167167                                                        </div>"; 
    168                                                  
     168 
    169169                $this->output .= $this->trellis->skin->group_table_full_row( $column_layout ) ." 
    170170                                                ". $this->trellis->skin->group_table_row( '{lang.default_sort_order}', $this->trellis->skin->custom_radio( array( 'name' => 'order_tm', 'options' => array( 0 => '{lang.ascending}', 1 => '{lang.descending}' ), 'value' => $this->trellis->user['order_tm'] ) ), 'a' ) ." 
    171171                                                ". $this->trellis->skin->group_table_sub( '{lang.staff_email_preferences}' ) ." 
    172                                                 ". $this->trellis->skin->group_table_row( '{lang.email_notifications}', $this->trellis->skin->enabled_disabled_radio( 'email_staff_enable', $this->trellis->user['email_staff_enable'] ), 'a' ) ." 
    173                                                 ". $this->trellis->skin->group_table_row( '{lang.email_ticket}', $this->trellis->skin->enabled_disabled_radio( 'email_staff_ticket', $this->trellis->user['email_staff_ticket'] ), 'a' ) ." 
    174                                                 ". $this->trellis->skin->group_table_row( '{lang.email_reply}', $this->trellis->skin->enabled_disabled_radio( 'email_staff_reply', $this->trellis->user['email_staff_reply'] ), 'a' ) ." 
    175                                                 ". $this->trellis->skin->group_table_row( '{lang.email_assign}', $this->trellis->skin->enabled_disabled_radio( 'email_staff_assign', $this->trellis->user['email_staff_assign'] ), 'a' ) ." 
     172                                                ". $this->trellis->skin->group_table_row( '{lang.email_notifications}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_enable', 'value' => $this->trellis->user['email_staff_enable'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['enable'], 'for' => 1, 'msg' => '{lang.warn_email_enable}' ) ) ), 'a' ) ." 
     173                                                ". $this->trellis->skin->group_table_row( '{lang.email_ticket}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_ticket', 'value' => $this->trellis->user['email_staff_ticket'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['ticket'], 'for' => 1, 'msg' => '{lang.warn_email_ticket}' ) ) ), 'a' ) ." 
     174                                                ". $this->trellis->skin->group_table_row( '{lang.email_reply}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_reply', 'value' => $this->trellis->user['email_staff_reply'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['reply'], 'for' => 1, 'msg' => '{lang.warn_email_reply}' ) ) ), 'a' ) ." 
     175                                                ". $this->trellis->skin->group_table_row( '{lang.email_assign}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_assign', 'value' => $this->trellis->user['email_staff_assign'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['assign'], 'for' => 1, 'msg' => '{lang.warn_email_assign}' ) ) ), 'a' ) ." 
     176                                                ". $this->trellis->skin->group_table_row( '{lang.email_escalate}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_escalate', 'value' => $this->trellis->user['email_staff_escalate'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['escalate'], 'for' => 1, 'msg' => '{lang.warn_email_escalate}' ) ) ), 'a' ) ." 
     177                                                ". $this->trellis->skin->group_table_row( '{lang.email_hold}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_hold', 'value' => $this->trellis->user['email_staff_hold'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['hold'], 'for' => 1, 'msg' => '{lang.warn_email_hold}' ) ) ), 'a' ) ." 
     178                                                ". $this->trellis->skin->group_table_row( '{lang.email_move_to}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_move_to', 'value' => $this->trellis->user['email_staff_move_to'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['move_to'], 'for' => 1, 'msg' => '{lang.warn_email_move_to}' ) ) ), 'a' ) ." 
     179                                                ". $this->trellis->skin->group_table_row( '{lang.email_move_away}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_move_away', 'value' => $this->trellis->user['email_staff_move_away'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['move_away'], 'for' => 1, 'msg' => '{lang.warn_email_move_away}' ) ) ), 'a' ) ." 
     180                                                ". $this->trellis->skin->group_table_row( '{lang.email_close}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_close', 'value' => $this->trellis->user['email_staff_close'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['close'], 'for' => 1, 'msg' => '{lang.warn_email_close}' ) ) ), 'a' ) ." 
     181                                                ". $this->trellis->skin->group_table_row( '{lang.email_reopen}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_reopen', 'value' => $this->trellis->user['email_staff_reopen'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['reopen'], 'for' => 1, 'msg' => '{lang.warn_email_reopen}' ) ) ), 'a' ) ." 
    176182                                                ". $this->trellis->skin->group_table_row( '{lang.receive_for}', $this->trellis->skin->checkbox( array( 'name' => 'esn_unassigned', 'title' => '{lang.unassigned_tickets}', 'value' => $this->trellis->user['esn_unassigned'] ) ) ."<br />". $this->trellis->skin->checkbox( array( 'name' => 'esn_assigned', 'title' => '{lang.assigned_tickets}', 'value' => $this->trellis->user['esn_assigned'] ) ) ."<br />". $this->trellis->skin->checkbox( array( 'name' => 'esn_assigned_to_me', 'title' => '{lang.tickets_assigned_to_me}', 'value' => $this->trellis->user['esn_assigned_to_me'] ) ), 'a' ) ." 
    177183                                                ". $this->trellis->skin->group_table_sub( '{lang.email_preferences}' ) ." 
     
    183189                                                ". $this->trellis->skin->end_form( $this->trellis->skin->submit_button( 'edit', '{lang.button_edit_settings}' ) ) ." 
    184190                                                </div>"; 
    185                  
     191 
    186192                $this->trellis->skin->end_group( 'a' ); 
    187          
     193 
    188194                $this->output .= "<script type='text/javascript'> 
    189195                                                $('#columns_current, #columns_available').sortable({ 
     
    193199                                                $('#cc_serialized').val( $('#columns_current').sortable('serialize') ); 
    194200                                                </script>"; 
    195                  
     201 
    196202                $this->trellis->skin->add_sidebar_general( '{lang.hey_you_title}', '{lang.hey_you_msg}' ); 
    197203 
     
    230236 
    231237                $this->trellis->db->execute(); 
    232                  
     238 
    233239                $db_array_old = $db_array; 
    234240 
    235241                $db_array = array( 
    236                                                   'email_staff_enable'  => $this->trellis->input['email_staff_enable'], 
    237                                                   'email_staff_ticket'  => $this->trellis->input['email_staff_ticket'], 
    238                                                   'email_staff_reply'   => $this->trellis->input['email_staff_reply'], 
    239                                                   'email_staff_assign'  => $this->trellis->input['email_staff_assign'], 
    240                                                   'esn_unassigned'              => $this->trellis->input['esn_unassigned'], 
    241                                                   'esn_assigned'                => $this->trellis->input['esn_assigned'], 
    242                                                   'esn_assigned_to_me'  => $this->trellis->input['esn_assigned_to_me'], 
    243                                                   'sort_tm'                             => $this->trellis->input['sort_tm'], 
    244                                                   'order_tm'                    => $this->trellis->input['order_tm'], 
     242                                                  'email_staff_enable'      => $this->trellis->input['email_staff_enable'], 
     243                                                  'email_staff_ticket'      => $this->trellis->input['email_staff_ticket'], 
     244                                                  'email_staff_reply'       => $this->trellis->input['email_staff_reply'], 
     245                                                  'email_staff_assign'      => $this->trellis->input['email_staff_assign'], 
     246                                                  'email_staff_escalate'        => $this->trellis->input['email_staff_escalate'], 
     247                                                  'email_staff_hold'        => $this->trellis->input['email_staff_hold'], 
     248                                                  'email_staff_move_to'     => $this->trellis->input['email_staff_move_to'], 
     249                                                  'email_staff_move_away'       => $this->trellis->input['email_staff_move_away'], 
     250                                                  'email_staff_close'       => $this->trellis->input['email_staff_close'], 
     251                                                  'email_staff_reopen'      => $this->trellis->input['email_staff_reopen'], 
     252                                                  'esn_unassigned'                  => $this->trellis->input['esn_unassigned'], 
     253                                                  'esn_assigned'                    => $this->trellis->input['esn_assigned'], 
     254                                                  'esn_assigned_to_me'      => $this->trellis->input['esn_assigned_to_me'], 
     255                                                  'sort_tm'                                 => $this->trellis->input['sort_tm'], 
     256                                                  'order_tm'                        => $this->trellis->input['order_tm'], 
    245257                                                  ); 
    246                  
     258 
    247259                parse_str( str_replace( '&amp;', '&', $this->trellis->input['cc_serialized'] ), $order ); 
    248                  
     260 
    249261                if ( ! empty( $order['c'] ) ) 
    250262                { 
    251263                        $columns = array(); 
    252                          
     264 
    253265                        foreach( $order['c'] as $column ) 
    254266                        { 
    255267                                $columns[ $column ] = $this->trellis->input[ 'cw_'. $column ]; 
    256268                        } 
    257                          
     269 
    258270                        $db_array['columns_tm'] = serialize( $columns ); 
    259271                } 
     
    269281 
    270282                $this->trellis->log( 'admin', "ACP Settings Updated &#039;". $this->trellis->user['name'] ."&#039;", 1, $this->trellis->user['id'] ); 
    271                  
     283 
    272284                $this->trellis->user = array_merge( $this->trellis->user, $db_array ); 
    273285                $this->trellis->user = array_merge( $this->trellis->user, $db_array_old ); 
    274                  
     286 
    275287                #============================= 
    276288                # Do Output 
  • trunk/Upload/admin/look/ad_emails.php

    r50 r51  
    127127                    { 
    128128                            $email_rows .= "<tr> 
    129                                                                 <td class='bluecellthin-light'><strong>{lang.email_{$key}}</strong></td> 
    130                                                                 <td class='bluecellthin-dark'>{lang.email_{$key}_desc}</td> 
    131                                                                 <td class='bluecellthin-light' align='center'><a href='<! HD_URL !>/admin.php?section=look&amp;page=emails&amp;act=edit&amp;lang={$this->trellis->input['lang']}'&amp;key={$key}&amp;type=text'>{lang.edit_plaintext}</a></td> 
    132                                                                 <td class='bluecellthin-light' align='center'><a href='<! HD_URL !>/admin.php?section=look&amp;page=emails&amp;act=edit&amp;lang={$this->trellis->input['lang']}'&amp;key={$key}&amp;type=html'>{lang.edit_html}</a></td> 
     129                                                                <td class='bluecellthin-light'><a href='<! HD_URL !>/admin.php?section=look&amp;page=emails&amp;act=edit&amp;lang={$this->trellis->input['lang']}&amp;key={$key}'><strong>{lang.email_{$key}}</strong></a></td> 
     130                                                                <td class='bluecellthin-dark'><a href='<! HD_URL !>/admin.php?section=look&amp;page=emails&amp;act=edit&amp;lang={$this->trellis->input['lang']}&amp;key={$key}'>{lang.email_{$key}_desc}</a></td> 
     131                                                                <td class='bluecellthin-light' align='center'><a href='<! HD_URL !>/admin.php?section=look&amp;page=emails&amp;act=edit&amp;lang={$this->trellis->input['lang']}&amp;key={$key}'><img src='<! IMG_DIR !>/button_edit.gif' alt='{lang.edit}' /></a></td> 
    133132                                                        </tr>"; 
    134133                    } 
     
    151150                                                ". $this->trellis->skin->start_group_table( '{lang.emails_list}' ) ." 
    152151                                                <tr> 
    153                                                         <th class='bluecellthin-th' width='20%' align='left'>{lang.name}</th> 
    154                                                         <th class='bluecellthin-th' width='45%' align='left'>{lang.description}</th> 
    155                                                         <th class='bluecellthin-th' width='14%' align='center'>{lang.edit}</th> 
    156                                                         <th class='bluecellthin-th' width='11%' align='center'>{lang.edit}</th> 
     152                                                        <th class='bluecellthin-th' width='28%' align='left'>{lang.name}</th> 
     153                                                        <th class='bluecellthin-th' width='57%' align='left'>{lang.description}</th> 
     154                                                        <th class='bluecellthin-th' width='5%' align='center'>{lang.edit}</th> 
    157155                                                </tr> 
    158156                                                ". $email_rows ." 
     
    175173 
    176174        #======================================= 
    177         # @ Edit Reply Template 
    178         #======================================= 
    179  
    180         private function edit_rtemplate($error='') 
     175        # @ Edit Email Template 
     176        #======================================= 
     177 
     178        private function edit_email($error='') 
    181179        { 
    182180                $this->trellis->load_functions('emails'); 
     
    186184                #============================= 
    187185 
    188                 $this->trellis->check_perm( 'manage', 'rtemplates', 'edit' ); 
    189  
    190                 #============================= 
    191                 # Grab Reply Template 
    192                 #============================= 
    193  
    194                 if ( ! $rt = $this->trellis->func->rtemplates->get_single_by_id( array( 'id', 'name', 'description', 'content_html', 'content_plaintext' ), $this->trellis->input['id'] ) ) $this->trellis->skin->error('no_rtemplate'); 
    195  
    196                 #============================= 
    197                 # Do Output 
    198                 #============================= 
     186                $this->trellis->check_perm( 'manage', 'emails', 'edit' ); 
     187 
     188                #============================= 
     189                # Grab Email Template 
     190                #============================= 
     191 
     192                if ( ! $e = $this->trellis->func->emails->get_single( $this->trellis->input['lang'], $this->trellis->input['key'] ) ) $this->trellis->skin->error('no_email'); 
     193 
     194                #============================= 
     195                # Do Output 
     196                #============================= 
     197 
     198                if ( ! is_writable( HD_PATH .'language/'. $this->trellis->input['lang'] .'/lang_email_content.php' ) ) $error = 'not_writable'; 
    199199 
    200200                if ( $error ) 
     
    207207 
    208208                $this->output .= "<div id='ticketroll'> 
    209                                                 ". $this->trellis->skin->start_form( "<! HD_URL !>/admin.php?section=manage&amp;page=rtemplates&amp;act=doedit&amp;id={$rt['id']}", 'edit_rtemplate', 'post' ) ." 
    210                                                 ". $this->trellis->skin->start_group_table( '{lang.editing_rtemplate} '. $rt['name'], 'a' ) ." 
    211                                                 ". $this->trellis->skin->group_table_row( '{lang.name}', $this->trellis->skin->textfield( 'name', $rt['name'] ), 'a', '16%', '84%' ) ." 
    212                                                 ". $this->trellis->skin->group_table_row( '{lang.description}', $this->trellis->skin->textarea( array( 'name' => 'description', 'value' => $rt['description'], 'cols' => 60, 'rows' => 2 ) ), 'a' ) ." 
     209                                                ". $this->trellis->skin->start_form( "<! HD_URL !>/admin.php?section=look&amp;page=emails&amp;act=doedit&amp;lang={$this->trellis->input['lang']}&amp;key={$this->trellis->input['key']}", 'edit_email', 'post' ) ." 
     210                                                ". $this->trellis->skin->start_group_table( '{lang.editing_email} {lang.email_'. $this->trellis->input['key'] .'}', 'a' ); 
     211 
     212                $this->output .= $this->trellis->skin->group_table_full_row( '{lang.email_'. $this->trellis->input['key'] .'_desc}', 'a' ); 
     213 
     214 
     215 
     216                if ( $this->trellis->input['key'] != 'header' && $this->trellis->input['key'] != 'footer' ) $this->output .= $this->trellis->skin->group_table_row( '{lang.subject}', $this->trellis->skin->textfield( 'subject', $e['subject'] ), 'a', '16%', '84%' ); 
     217 
     218                $this->output .= $this->trellis->skin->group_table_sub( '{lang.html_content}' ) ." 
     219                                                ". $this->trellis->skin->group_table_full_row( $this->trellis->skin->textarea( array( 'name' => 'content_html', 'value' => $e['html'], 'cols' => 80, 'rows' => 10, 'width' => '98%', 'height' => '280px' ) ), 'a' ) ." 
     220                                                ". $this->trellis->skin->group_table_sub( '{lang.text_content}' ) ." 
     221                                                ". $this->trellis->skin->group_table_full_row( $this->trellis->skin->textarea( array( 'name' => 'content_text', 'value' => $e['plaintext'], 'cols' => 80, 'rows' => 10, 'width' => '98%', 'height' => '250px' ) ), 'a' ) ." 
    213222                                                ". $this->trellis->skin->end_group_table( 'a' ) ." 
    214                                                 ". $this->trellis->skin->group_sub( '{lang.html_content}' ) ." 
    215                                                 <div class='option1'>". $this->trellis->skin->textarea( array( 'name' => 'content_html', 'value' => $rt['content_html'], 'cols' => 80, 'rows' => 8, 'width' => '98%', 'height' => '200px' ) ) ."</div> 
    216                                                 ". $this->trellis->skin->group_sub( '{lang.plaintext_content}' ) ." 
    217                                                 <div class='option2'>". $this->trellis->skin->textarea( array( 'name' => 'content_plaintext', 'value' => $rt['content_plaintext'], 'cols' => 80, 'rows' => 7, 'width' => '98%', 'height' => '180px' ) ) ."</div> 
    218                                                 ". $this->trellis->skin->end_form( $this->trellis->skin->submit_button( 'edit', '{lang.button_edit_rtemplate}' ) ) ." 
     223                                                ". $this->trellis->skin->end_form( $this->trellis->skin->submit_button( 'edit', '{lang.button_edit_email}' ) ) ." 
    219224                                                </div>"; 
    220225 
    221226                $validate_fields = array( 
    222                                                                  'name' => array( array( 'type' => 'presence', 'params' => array( 'fail_msg' => '{lang.lv_no_name}' ) ) ), 
     227                                                                 'subject'      => array( array( 'type' => 'presence', 'params' => array( 'fail_msg' => '{lang.lv_no_subject}' ) ) ), 
    223228                                                                 ); 
    224229 
     
    226231 
    227232                $menu_items = array( 
    228                                                         array( 'arrow_back', '{lang.menu_back}', '<! HD_URL !>/admin.php?section=manage&amp;page=rtemplates' ), 
    229                                                         array( 'circle_plus', '{lang.menu_add}', '<! HD_URL !>/admin.php?section=manage&amp;page=rtemplates&amp;act=add' ), 
    230                                                         array( 'settings', '{lang.menu_settings}', '<! HD_URL !>/admin.php?section=tools&amp;page=settings&amp;act=edit&amp;group=ticket' ), 
     233                                                        array( 'arrow_back', '{lang.menu_back}', '<! HD_URL !>/admin.php?section=look&amp;page=email' ), 
     234                                                        array( 'tag', '{lang.menu_template_tags}', '#' ), 
     235                                                        array( 'mails_arrow', '{lang.menu_mass_email}', '<! HD_URL !>/admin.php?section=tools&amp;page=email&amp;act=mass' ), 
     236                                                        array( 'settings', '{lang.menu_settings}', '<! HD_URL !>/admin.php?section=tools&amp;page=settings&amp;act=edit&amp;group=email' ), 
    231237                                                        ); 
    232238 
    233                 $this->trellis->skin->add_sidebar_menu( '{lang.menu_rtemplates_options}', $menu_items ); 
     239                $this->trellis->skin->add_sidebar_menu( '{lang.menu_email_options}', $menu_items ); 
    234240                $this->trellis->skin->add_sidebar_help( '{lang.random_title}', '{lang.random_text}' ); 
    235241 
     
    240246 
    241247        #======================================= 
    242         # @ Do Edit Reply Template 
     248        # @ Do Edit Email Template 
    243249        #======================================= 
    244250 
    245251        private function do_edit() 
    246252        { 
     253            $this->trellis->load_functions('emails'); 
     254 
    247255                #============================= 
    248256                # Security Checks 
    249257                #============================= 
    250258 
    251                 $this->trellis->check_perm( 'manage', 'rtemplates', 'edit' ); 
    252  
    253                 if ( ! $this->trellis->input['name'] ) $this->edit_rtemplate('no_name'); 
     259                $this->trellis->check_perm( 'manage', 'emails', 'edit' ); 
     260 
     261                if ( ! $this->trellis->input['subject'] && $this->trellis->input['key'] != 'header' && $this->trellis->input['key'] != 'footer' ) $this->edit_email('no_subject'); 
     262                if ( ! $this->trellis->input['content_html'] ) $this->edit_email('no_content_html'); 
     263                if ( ! $this->trellis->input['content_text'] ) $this->edit_email('no_content_text'); 
    254264 
    255265                #============================= 
     
    257267                #============================= 
    258268 
    259                 $db_array = array( 
    260                                                   'name'                                => $this->trellis->input['name'], 
    261                                                   'description'                 => $this->trellis->input['description'], 
    262                                                   'content_html'                => $this->trellis->input['content_html'], 
    263                                                   'content_plaintext'   => $this->trellis->input['content_plaintext'], 
    264                                                   ); 
    265  
    266                 $this->trellis->func->rtemplates->edit( $db_array, $this->trellis->input['id'] ); 
    267  
    268                 $this->trellis->log( 'admin', "Reply Template Updated &#039;". $this->trellis->input['name'] ."&#039;", 1, $this->trellis->input['id'] ); 
    269  
    270                 #============================= 
    271                 # Rebuild Cache 
    272                 #============================= 
    273  
    274                 $this->trellis->load_functions('rebuild'); 
    275  
    276                 $this->trellis->func->rebuild->rtemplates_cache(); 
    277  
    278                 #============================= 
    279                 # Do Output 
    280                 #============================= 
    281  
    282                 $this->list_rtemplates( NULL, 'rtemplate_updated' ); 
     269                if ( ! $this->trellis->func->emails->edit( $this->trellis->input['lang'], $this->trellis->input['key'], $this->trellis->input['subject'], $this->trellis->input['content_html'], $this->trellis->input['content_text'] ) ) $this->edit_email('not_writable'); 
     270 
     271                $this->trellis->log( 'admin', "Email Templates Updated &#039;". $this->trellis->input['lang'] ."&#039;", 1, $this->trellis->input['lang'] ); 
     272 
     273                #============================= 
     274                # Do Output 
     275                #============================= 
     276 
     277                $this->list_emails( array( 'alert' => 'email_updated' ) ); 
    283278        } 
    284279 
  • trunk/Upload/admin/manage/ad_users.php

    r50 r51  
    311311                                                ". $this->trellis->skin->group_table_row( '{lang.language}', "<select name='lang' id='lang'>". $this->trellis->func->drop_downs->lang_drop( $this->trellis->input['lang'] ) ."</select>", 'a' ) ." 
    312312                                                ". $this->trellis->skin->group_table_row( '{lang.skin}', "<select name='skin' id='skin'>". $this->trellis->func->drop_downs->skin_drop( $this->trellis->input['skin'] ) ."</select>", 'a' ) ." 
    313                                                 ". $this->trellis->skin->group_table_row( '{lang.rich_text_editor}', $this->trellis->skin->enabled_disabled_radio( 'rte_enable', 1 ), 'a' ); 
     313                                                ". $this->trellis->skin->group_table_row( '{lang.rich_text_editor}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'rte_enable', 'value' => 1 ) ), 'a' ); 
    314314 
    315315                if ( $cfields = $this->trellis->func->cpfields->grab( 0, 1 ) ) 
     
    352352 
    353353                $this->output .= $this->trellis->skin->group_table_sub( '{lang.user_email_preferences}' ) ." 
    354                                                 ". $this->trellis->skin->group_table_row( '{lang.email_notifications}', $this->trellis->skin->enabled_disabled_radio( 'email_enable', 1 ), 'a' ) ." 
    355                                                 ". $this->trellis->skin->group_table_row( '{lang.email_ticket}', $this->trellis->skin->enabled_disabled_radio( 'email_ticket', 1 ), 'a' ) ." 
    356                                                 ". $this->trellis->skin->group_table_row( '{lang.email_reply}', $this->trellis->skin->enabled_disabled_radio( 'email_action', 1 ), 'a' ) ." 
    357                                                 ". $this->trellis->skin->group_table_row( '{lang.email_news}', $this->trellis->skin->enabled_disabled_radio( 'email_news', 1 ), 'a' ) ." 
     354                                                ". $this->trellis->skin->group_table_row( '{lang.email_notifications}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_enable', 'value' => 1, 'alert' => array( 'check' => $this->trellis->cache->data['settings']['eunotify']['enable'], 'for' => 1, 'msg' => '{lang.warn_email_user_enable}' ) ) ), 'a' ) ." 
     355                                                ". $this->trellis->skin->group_table_row( '{lang.email_user_ticket}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_ticket', 'value' => 1 ) ), 'a' ) ." 
     356                                                ". $this->trellis->skin->group_table_row( '{lang.email_user_action}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_action', 'value' => 1 ) ), 'a' ) ." 
     357                                                ". $this->trellis->skin->group_table_row( '{lang.email_news}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_news', 'value' => 1 ) ), 'a' ) ." 
    358358                                                ". $this->trellis->skin->group_table_sub( '{lang.staff_email_preferences}' ) ." 
    359                                                 ". $this->trellis->skin->group_table_row( '{lang.email_notifications}', $this->trellis->skin->enabled_disabled_radio( 'email_staff_enable', 1 ), 'a' ) ." 
    360                                                 ". $this->trellis->skin->group_table_row( '{lang.email_ticket}', $this->trellis->skin->enabled_disabled_radio( 'email_staff_ticket', 1 ), 'a' ) ." 
    361                                                 ". $this->trellis->skin->group_table_row( '{lang.email_reply}', $this->trellis->skin->enabled_disabled_radio( 'email_staff_reply', 1 ), 'a' ) ." 
    362                                                 ". $this->trellis->skin->group_table_row( '{lang.email_assign}', $this->trellis->skin->enabled_disabled_radio( 'email_staff_assign', 1 ), 'a' ) ." 
     359                                                ". $this->trellis->skin->group_table_row( '{lang.email_notifications}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_enable', 'value' => 1, 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['enable'], 'for' => 1, 'msg' => '{lang.warn_email_enable}' ) ) ), 'a' ) ." 
     360                                                ". $this->trellis->skin->group_table_row( '{lang.email_ticket}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_ticket', 'value' => 1, 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['ticket'], 'for' => 1, 'msg' => '{lang.warn_email_ticket}' ) ) ), 'a' ) ." 
     361                                                ". $this->trellis->skin->group_table_row( '{lang.email_reply}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_reply', 'value' => 1, 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['reply'], 'for' => 1, 'msg' => '{lang.warn_email_reply}' ) ) ), 'a' ) ." 
     362                                                ". $this->trellis->skin->group_table_row( '{lang.email_assign}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_assign', 'value' => 1, 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['assign'], 'for' => 1, 'msg' => '{lang.warn_email_assign}' ) ) ), 'a' ) ." 
     363                                                ". $this->trellis->skin->group_table_row( '{lang.email_escalate}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_escalate', 'value' => 1, 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['escalate'], 'for' => 1, 'msg' => '{lang.warn_email_escalate}' ) ) ), 'a' ) ." 
     364                                                ". $this->trellis->skin->group_table_row( '{lang.email_hold}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_hold', 'value' => 1, 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['hold'], 'for' => 1, 'msg' => '{lang.warn_email_hold}' ) ) ), 'a' ) ." 
     365                                                ". $this->trellis->skin->group_table_row( '{lang.email_move_to}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_move_to', 'value' => 1, 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['move_to'], 'for' => 1, 'msg' => '{lang.warn_email_move_to}' ) ) ), 'a' ) ." 
     366                                                ". $this->trellis->skin->group_table_row( '{lang.email_move_away}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_move_away', 'value' => 1, 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['move_away'], 'for' => 1, 'msg' => '{lang.warn_email_move_away}' ) ) ), 'a' ) ." 
     367                                                ". $this->trellis->skin->group_table_row( '{lang.email_close}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_close', 'value' => 1, 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['close'], 'for' => 1, 'msg' => '{lang.warn_email_close}' ) ) ), 'a' ) ." 
     368                                                ". $this->trellis->skin->group_table_row( '{lang.email_reopen}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_reopen', 'value' => 1, 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['reopen'], 'for' => 1, 'msg' => '{lang.warn_email_reopen}' ) ) ), 'a' ) ." 
    363369                                                ". $this->trellis->skin->group_table_row( '{lang.receive_for}', $this->trellis->skin->checkbox( array( 'name' => 'esn_unassigned', 'title' => '{lang.unassigned_tickets}', 'value' => 1 ) ) ."<br />". $this->trellis->skin->checkbox( array( 'name' => 'esn_assigned', 'title' => '{lang.assigned_tickets}', 'value' => 1 ) ) ."<br />". $this->trellis->skin->checkbox( array( 'name' => 'esn_assigned_to_me', 'title' => '{lang.tickets_assigned_to_me}', 'value' => 1 ) ), 'a' ) ." 
    364370                                                ". $this->trellis->skin->group_table_sub( '{lang.email_preferences}' ) ." 
     
    445451                if ( $staff ) 
    446452                { 
    447                         $us = $this->trellis->func->users->get_single_by_id_staff( array( 'email_staff_enable', 'email_staff_ticket', 'email_staff_reply', 'email_staff_assign', 'esn_unassigned', 'esn_assigned', 'esn_assigned_to_me' ), $u['id'] ); 
     453                        $us = $this->trellis->func->users->get_single_by_id_staff( array( 'email_staff_enable', 'email_staff_ticket', 'email_staff_reply', 'email_staff_assign', 'email_staff_escalate', 'email_staff_hold', 'email_staff_move_to', 'email_staff_move_away', 'email_staff_close', 'email_staff_reopen', 'esn_unassigned', 'esn_assigned', 'esn_assigned_to_me' ), $u['id'] ); 
    448454 
    449455                        if ( is_array( $us ) ) $u = array_merge( $us, $u ); 
     
    498504                                                ". $this->trellis->skin->group_table_row( '{lang.language}', "<select name='lang' id='lang'>". $this->trellis->func->drop_downs->lang_drop( $lang ) ."</select>", 'a' ) ." 
    499505                                                ". $this->trellis->skin->group_table_row( '{lang.skin}', "<select name='skin' id='skin'>". $this->trellis->func->drop_downs->skin_drop( $skin ) ."</select>", 'a' ) ." 
    500                                                 ". $this->trellis->skin->group_table_row( '{lang.rich_text_editor}', $this->trellis->skin->enabled_disabled_radio( 'rte_enable', $u['rte_enable'] ), 'a' ); 
     506                                                ". $this->trellis->skin->group_table_row( '{lang.rich_text_editor}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'rte_enable', 'value' => $u['rte_enable'] ) ), 'a' ); 
    501507 
    502508                if ( $cfields = $this->trellis->func->cpfields->grab( 0, 1 ) ) 
     
    541547 
    542548                $this->output .= $this->trellis->skin->group_table_sub( '{lang.user_email_preferences}' ) ." 
    543                                                 ". $this->trellis->skin->group_table_row( '{lang.email_notifications}', $this->trellis->skin->enabled_disabled_radio( 'email_enable', $u['email_enable'] ), 'a' ) ." 
    544                                                 ". $this->trellis->skin->group_table_row( '{lang.email_ticket}', $this->trellis->skin->enabled_disabled_radio( 'email_ticket', $u['email_ticket'] ), 'a' ) ." 
    545                                                 ". $this->trellis->skin->group_table_row( '{lang.email_reply}', $this->trellis->skin->enabled_disabled_radio( 'email_action', $u['email_action'] ), 'a' ) ." 
    546                                                 ". $this->trellis->skin->group_table_row( '{lang.email_news}', $this->trellis->skin->enabled_disabled_radio( 'email_news', $u['email_news'] ), 'a' ) ." 
     549                                                ". $this->trellis->skin->group_table_row( '{lang.email_notifications}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_enable', 'value' => $u['email_enable'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['enable'], 'for' => 1, 'msg' => '{lang.warn_email_user_enable}' ) ) ), 'a' ) ." 
     550                                                ". $this->trellis->skin->group_table_row( '{lang.email_user_ticket}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_ticket', 'value' => $u['email_ticket'] ) ), 'a' ) ." 
     551                                                ". $this->trellis->skin->group_table_row( '{lang.email_user_action}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_action', 'value' => $u['email_action'] ) ), 'a' ) ." 
     552                                                ". $this->trellis->skin->group_table_row( '{lang.email_news}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_news', 'value' => $u['email_news'] ) ), 'a' ) ." 
    547553                                                ". $this->trellis->skin->group_table_sub( '{lang.staff_email_preferences}' ) ." 
    548                                                 ". $this->trellis->skin->group_table_row( '{lang.email_notifications}', $this->trellis->skin->enabled_disabled_radio( 'email_staff_enable', $u['email_staff_enable'] ), 'a' ) ." 
    549                                                 ". $this->trellis->skin->group_table_row( '{lang.email_ticket}', $this->trellis->skin->enabled_disabled_radio( 'email_staff_ticket', $u['email_staff_ticket'] ), 'a' ) ." 
    550                                                 ". $this->trellis->skin->group_table_row( '{lang.email_reply}', $this->trellis->skin->enabled_disabled_radio( 'email_staff_reply', $u['email_staff_reply'] ), 'a' ) ." 
    551                                                 ". $this->trellis->skin->group_table_row( '{lang.email_assign}', $this->trellis->skin->enabled_disabled_radio( 'email_staff_assign', $u['email_staff_assign'] ), 'a' ) ." 
     554                                                ". $this->trellis->skin->group_table_row( '{lang.email_notifications}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_enable', 'value' => $u['email_staff_enable'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['enable'], 'for' => 1, 'msg' => '{lang.warn_email_enable}' ) ) ), 'a' ) ." 
     555                                                ". $this->trellis->skin->group_table_row( '{lang.email_ticket}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_ticket', 'value' => $u['email_staff_ticket'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['ticket'], 'for' => 1, 'msg' => '{lang.warn_email_ticket}' ) ) ), 'a' ) ." 
     556                                                ". $this->trellis->skin->group_table_row( '{lang.email_reply}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_reply', 'value' => $u['email_staff_reply'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['reply'], 'for' => 1, 'msg' => '{lang.warn_email_reply}' ) ) ), 'a' ) ." 
     557                                                ". $this->trellis->skin->group_table_row( '{lang.email_assign}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_assign', 'value' => $u['email_staff_assign'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['assign'], 'for' => 1, 'msg' => '{lang.warn_email_assign}' ) ) ), 'a' ) ." 
     558                                                ". $this->trellis->skin->group_table_row( '{lang.email_escalate}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_escalate', 'value' => $u['email_staff_escalate'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['escalate'], 'for' => 1, 'msg' => '{lang.warn_email_escalate}' ) ) ), 'a' ) ." 
     559                                                ". $this->trellis->skin->group_table_row( '{lang.email_hold}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_hold', 'value' => $u['email_staff_hold'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['hold'], 'for' => 1, 'msg' => '{lang.warn_email_hold}' ) ) ), 'a' ) ." 
     560                                                ". $this->trellis->skin->group_table_row( '{lang.email_move_to}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_move_to', 'value' => $u['email_staff_move_to'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['move_to'], 'for' => 1, 'msg' => '{lang.warn_email_move_to}' ) ) ), 'a' ) ." 
     561                                                ". $this->trellis->skin->group_table_row( '{lang.email_move_away}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_move_away', 'value' => $u['email_staff_move_away'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['move_away'], 'for' => 1, 'msg' => '{lang.warn_email_move_away}' ) ) ), 'a' ) ." 
     562                                                ". $this->trellis->skin->group_table_row( '{lang.email_close}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_close', 'value' => $u['email_staff_close'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['close'], 'for' => 1, 'msg' => '{lang.warn_email_close}' ) ) ), 'a' ) ." 
     563                                                ". $this->trellis->skin->group_table_row( '{lang.email_reopen}', $this->trellis->skin->enabled_disabled_radio( array( 'name' => 'email_staff_reopen', 'value' => $u['email_staff_reopen'], 'alert' => array( 'check' => $this->trellis->cache->data['settings']['esnotify']['reopen'], 'for' => 1, 'msg' => '{lang.warn_email_reopen}' ) ) ), 'a' ) ." 
    552564                                                ". $this->trellis->skin->group_table_row( '{lang.receive_for}', $this->trellis->skin->checkbox( array( 'name' => 'esn_unassigned', 'title' => '{lang.unassigned_tickets}', 'value' => $u['esn_unassigned'] ) ) ."<br />". $this->trellis->skin->checkbox( array( 'name' => 'esn_assigned', 'title' => '{lang.assigned_tickets}', 'value' => $u['esn_assigned'] ) ) ."<br />". $this->trellis->skin->checkbox( array( 'name' => 'esn_assigned_to_me', 'title' => '{lang.tickets_assigned_to_me}', 'value' => $u['esn_assigned_to_me'] ) ), 'a' ) ." 
    553565                                                ". $this->trellis->skin->group_table_sub( '{lang.email_preferences}' ) ." 
     
    760772 
    761773                $db_array = array( 
    762                                                   'name'                                => $this->trellis->input['name'], 
    763                                                   'email'                               => $this->trellis->input['email'], 
    764                                                   'password'                    => $this->trellis->input['password'], 
    765                                                   'ugroup'                              => $this->trellis->input['ugroup'], 
    766                                                   'ugroup_sub'                  => $ugroup_sub, 
    767                                                   'title'                               => $this->trellis->input['title'], 
    768                                                   'joined'                              => time(), 
    769                                                   'sig_auto'                    => 1, 
    770                                                   'lang'                                => $this->trellis->input['lang'], 
    771                                                   'skin'                                => $this->trellis->input['skin'], 
    772                                                   'time_zone'                   => $this->trellis->input['time_zone'], 
    773                                                   'time_dst'                    => $this->trellis->input['time_dst'], 
    774                                                   'rte_enable'                  => $this->trellis->input['rte_enable'], 
    775                                                   'email_enable'                => $this->trellis->input['email_enable'], 
    776                                                   'email_ticket'                => $this->trellis->input['email_ticket'], 
    777                                                   'email_action'                        => $this->trellis->input['email_action'], 
    778                                                   'email_news'                  => $this->trellis->input['email_news'], 
    779                                                   'email_staff_enable'  => $this->trellis->input['email_staff_enable'], 
    780                                                   'email_staff_ticket'  => $this->trellis->input['email_staff_ticket'], 
    781                                                   'email_staff_reply'   => $this->trellis->input['email_staff_reply'], 
    782                                                   'email_staff_assign'  => $this->trellis->input['email_staff_assign'], 
    783                                                   'esn_unassigned'              => $this->trellis->input['esn_unassigned'], 
    784                                                   'esn_assigned'                => $this->trellis->input['esn_assigned'], 
    785                                                   'esn_assigned_to_me'  => $this->trellis->input['esn_assigned_to_me'], 
    786                                                   'email_type'                  => $this->trellis->input['email_type'], 
    787                                                   'val_email'                   => 1, 
    788                                                   'val_admin'                   => 1, 
    789                                                   'ipadd'                               => $this->trellis->input['ip_address'], 
     774                                                  'name'                                    => $this->trellis->input['name'], 
     775                                                  'email'                                   => $this->trellis->input['email'], 
     776                                                  'password'                        => $this->trellis->input['password'], 
     777                                                  'ugroup'                                  => $this->trellis->input['ugroup'], 
     778                                                  'ugroup_sub'                      => $ugroup_sub, 
     779                                                  'title'                                   => $this->trellis->input['title'], 
     780                                                  'joined'                                  => time(), 
     781                                                  'sig_auto'                        => 1, 
     782                                                  'lang'                                    => $this->trellis->input['lang'], 
     783                                                  'skin'                                    => $this->trellis->input['skin'], 
     784                                                  'time_zone'                       => $this->trellis->input['time_zone'], 
     785                                                  'time_dst'                        => $this->trellis->input['time_dst'], 
     786                                                  'rte_enable'                      => $this->trellis->input['rte_enable'], 
     787                                                  'email_enable'                    => $this->trellis->input['email_enable'], 
     788                                                  'email_ticket'                    => $this->trellis->input['email_ticket'], 
     789                                                  'email_action'                => $this->trellis->input['email_action'], 
     790                                                  'email_news'                      => $this->trellis->input['email_news'], 
     791                                                  'email_staff_enable'      => $this->trellis->input['email_staff_enable'], 
     792                                                  'email_staff_ticket'      => $this->trellis->input['email_staff_ticket'], 
     793                                                  'email_staff_reply'       => $this->trellis->input['email_staff_reply'], 
     794                                                  'email_staff_assign'      => $this->trellis->input['email_staff_assign'], 
     795                                                  'email_staff_escalate'        => $this->trellis->input['email_staff_escalate'], 
     796                                                  'email_staff_hold'        => $this->trellis->input['email_staff_hold'], 
     797                                                  'email_staff_move_to'     => $this->trellis->input['email_staff_move_to'], 
     798                                                  'email_staff_move_away'       => $this->trellis->input['email_staff_move_away'], 
     799                                                  'email_staff_close'       => $this->trellis->input['email_staff_close'], 
     800                                                  'email_staff_reopen'      => $this->trellis->input['email_staff_reopen'], 
     801                                                  'esn_unassigned'                  => $this->trellis->input['esn_unassigned'], 
     802                                                  'esn_assigned'                    => $this->trellis->input['esn_assigned'], 
     803                                                  'esn_assigned_to_me'      => $this->trellis->input['esn_assigned_to_me'], 
     804                                                  'email_type'                      => $this->trellis->input['email_type'], 
     805                                                  'val_email'                       => 1, 
     806                                                  'val_admin'                       => 1, 
     807                                                  'ipadd'                                   => $this->trellis->input['ip_address'], 
    790808                                                  ); 
    791809 
     
    895913 
    896914                $db_array = array( 
    897                                                   'name'                                => $this->trellis->input['name'], 
    898                                                   'email'                               => $this->trellis->input['email'], 
    899                                                   'ugroup'                              => $this->trellis->input['ugroup'], 
    900                                                   'ugroup_sub'                  => $ugroup_sub, 
    901                                                   'title'                               => $this->trellis->input['title'], 
    902                                                   'lang'                                => $this->trellis->input['lang'], 
    903                                                   'skin'                                => $this->trellis->input['skin'], 
    904                                                   'time_zone'                   => $this->trellis->input['time_zone'], 
    905                                                   'time_dst'                    => $this->trellis->input['time_dst'], 
    906                                                   'rte_enable'                  => $this->trellis->input['rte_enable'], 
    907                                                   'email_enable'                => $this->trellis->input['email_enable'], 
    908                                                   'email_ticket'                => $this->trellis->input['email_ticket'], 
     915                                                  'name'                                    => $this->trellis->input['name'], 
     916                                                  'email'                                   => $this->trellis->input['email'], 
     917                                                  'ugroup'                                  => $this->trellis->input['ugroup'], 
     918                                                  'ugroup_sub'                      => $ugroup_sub, 
     919                                                  'title'                                   => $this->trellis->input['title'], 
     920                                                  'lang'                                    => $this->trellis->input['lang'], 
     921                                                  'skin'                                    => $this->trellis->input['skin'], 
     922                                                  'time_zone'                       => $this->trellis->input['time_zone'], 
     923                                                  'time_dst'                        => $this->trellis->input['time_dst'], 
     924                                                  'rte_enable'                      => $this->trellis->input['rte_enable'], 
     925                                                  'email_enable'                    => $this->trellis->input['email_enable'], 
     926                                                  'email_ticket'                    => $this->trellis->input['email_ticket'], 
    909927                                                  'email_action'                        => $this->trellis->input['email_action'], 
    910                                                   'email_news'                  => $this->trellis->input['email_news'], 
    911                                                   'email_staff_enable'  => $this->trellis->input['email_staff_enable'], 
    912                                                   'email_staff_ticket'  => $this->trellis->input['email_staff_ticket'], 
    913                                                   'email_staff_reply'   => $this->trellis->input['email_staff_reply'], 
    914                                                   'email_staff_assign'  => $this->trellis->input['email_staff_assign'], 
    915                                                   'esn_unassigned'              => $this->trellis->input['esn_unassigned'], 
    916                                                   'esn_assigned'                => $this->trellis->input['esn_assigned'], 
    917                                                   'esn_assigned_to_me'  => $this->trellis->input['esn_assigned_to_me'], 
    918                                                   'email_type'                  => $this->trellis->input['email_type'], 
     928                                                  'email_news'                      => $this->trellis->input['email_news'], 
     929                                                  'email_staff_enable'      => $this->trellis->input['email_staff_enable'], 
     930                                                  'email_staff_ticket'      => $this->trellis->input['email_staff_ticket'], 
     931                                                  'email_staff_reply'       => $this->trellis->input['email_staff_reply'], 
     932                                                  'email_staff_assign'      => $this->trellis->input['email_staff_assign'], 
     933                                                  'email_staff_escalate'        => $this->trellis->input['email_staff_escalate'], 
     934                                                  'email_staff_hold'        => $this->trellis->input['email_staff_hold'], 
     935                                                  'email_staff_move_to'     => $this->trellis->input['email_staff_move_to'], 
     936                                                  'email_staff_move_away'       => $this->trellis->input['email_staff_move_away'], 
     937                                                  'email_staff_close'       => $this->trellis->input['email_staff_close'], 
     938                                                  'email_staff_reopen'      => $this->trellis->input['email_staff_reopen'], 
     939                                                  'esn_unassigned'                  => $this->trellis->input['esn_unassigned'], 
     940                                                  'esn_assigned'                    => $this->trellis->input['esn_assigned'], 
     941                                                  'esn_assigned_to_me'      => $this->trellis->input['esn_assigned_to_me'], 
     942                                                  'email_type'                      => $this->trellis->input['email_type'], 
    919943                                                  ); 
    920944 
  • trunk/Upload/includes/classes/class_asession.php

    r37 r51  
    6060                                                                                                         'select'       => array( 's' => 'all', 
    6161                                                                                                                                                  'u' => array( 'id', 'name', 'email', 'login_key', 'ugroup', 'title', 'joined', 'signature', 'sig_html', 'sig_auto', 'rss_key', 'lang', 'skin', 'time_zone', 'time_dst', 'rte_enable', 'email_type' ), 
    62                                                                                                                                                   'us' => array( 'email_staff_enable', 'email_staff_ticket', 'email_staff_reply', 'email_staff_assign', 'esn_unassigned', 'esn_assigned', 'esn_assigned_to_me', 'columns_tm', 'sort_tm', 'order_tm', 'dfilters_status', 'dfilters_depart', 'dfilters_priority' ), 
     62                                                                                                                                                  'us' => array( 'email_staff_enable', 'email_staff_ticket', 'email_staff_reply', 'email_staff_assign', 'email_staff_escalate', 'email_staff_hold', 'email_staff_move_to', 'email_staff_move_away', 'email_staff_close', 'email_staff_reopen', 'esn_unassigned', 'esn_assigned', 'esn_assigned_to_me', 'columns_tm', 'sort_tm', 'order_tm', 'dfilters_status', 'dfilters_depart', 'dfilters_priority' ), 
    6363                                                                                                                                                  'g' => 'all', 
    6464                                                                                                                                                 ), 
  • trunk/Upload/includes/classes/class_email.php

    r50 r51  
    258258            if ( is_numeric( $params['to'] ) ) 
    259259            { 
    260                 $this->to_send[ ++$this->to_send_id ] = array( 'id' => $params['to'], 'name' => $params['name'], 'msg' => $params['msg'], 'from' => $params['from'], 'replace' => $params['replace'], 'lang' => $params['lang'], 'preference' => $params['preference'], 'type' => $params['type'] ); 
     260                $this->to_send[ ++$this->to_send_id ] = array( 'id' => $params['to'], 'name' => $params['name'], 'msg' => $params['msg'], 'from' => $params['from'], 'replace' => $params['replace'], 'lang' => $params['lang'], 'override' => $params['override'], 'format' => $params['format'], 'type' => $params['type'] ); 
    261261            } 
    262262        else 
    263263            { 
    264                 $this->to_send[ ++$this->to_send_id ] = array( 'email' => $params['to'], 'name' => $params['name'], 'msg' => $params['msg'], 'from' => $params['from'], 'replace' => $params['replace'], 'lang' => $params['lang'], 'preference' => $params['preference'], 'type' => $params['type'] ); 
     264                $this->to_send[ ++$this->to_send_id ] = array( 'email' => $params['to'], 'name' => $params['name'], 'msg' => $params['msg'], 'from' => $params['from'], 'replace' => $params['replace'], 'lang' => $params['lang'], 'override' => $params['override'], 'format' => $params['format'], 'type' => $params['type'] ); 
    265265            } 
    266266 
     
    280280 
    281281        #======================================= 
    282         # @ User Notification 
    283         #======================================= 
    284  
    285         public function user_notification($params=array()) 
    286         { 
    287             if ( ! $this->trellis->cache->data['settings']['eunotify']['enable'] ) return false; 
    288         if ( ! $params['id'] && ! $this->trellis->cache->data['settings']['eunotify']['guest'] ) return false; 
    289  
    290         return $this->send_email( $params ); 
    291         } 
    292  
    293         #======================================= 
    294         # @ Staff Notification 
    295         #======================================= 
    296  
    297         public function staff_notification($params=array()) 
    298         { 
    299             if ( ! $this->trellis->cache->data['settings']['esnotify']['enable'] ) return false; 
    300  
    301         return $this->send_email( $params ); 
     282        # @ Get User 
     283        #======================================= 
     284 
     285        public function get_user($id) 
     286        { 
     287            #* probably not the fastest because we are always pulling all email type fields and staff fields 
     288 
     289            return $this->trellis->db->get_single( array( 
     290                                                                                                 'select'       => array( 
     291                                                                                                                                         'u'    => array( 'id', 'name', 'email', 'lang', 'email_enable', 'email_ticket', 'email_action', 'email_news', 'email_type' ), 
     292                                                                                                                                         'us'   => array( 'email_staff_enable', 'email_staff_ticket', 'email_staff_reply', 'email_staff_assign', 'email_staff_escalate', 'email_staff_hold', 'email_staff_move_to', 'email_staff_move_away', 'email_staff_close', 'email_staff_reopen' ), 
     293                                                                                                                                         ), 
     294                                                                                                 'from'     => array( 'u' => 'users' ), 
     295                                                                                                 'join'     => array( array( 'from' => array( 'us' => 'users_staff' ), 'where' => array( 'u' => 'id', '=', 'us' => 'uid' ) ) ), 
     296                                                                                                 'where'        => array( array( 'u' => 'id' ), '=', $id ), 
     297                                              ), 'id' ); 
     298        } 
     299 
     300        #======================================= 
     301        # @ Get Users 
     302        #======================================= 
     303 
     304        public function get_users($ids) 
     305        { 
     306            #* probably not the fastest because we are always pulling all email type fields and staff fields 
     307 
     308            return $this->trellis->db->get( array( 
     309                                                                                  'select'      => array( 
     310                                                                                                                        'u'         => array( 'id', 'name', 'email', 'lang', 'email_enable', 'email_ticket', 'email_action', 'email_news', 'email_type' ), 
     311                                                                                                                        'us'    => array( 'email_staff_enable', 'email_staff_ticket', 'email_staff_reply', 'email_staff_assign', 'email_staff_escalate', 'email_staff_hold', 'email_staff_move_to', 'email_staff_move_away', 'email_staff_close', 'email_staff_reopen' ), 
     312                                                                ), 
     313                                                                                  'from'        => array( 'u' => 'users' ), 
     314                                                                                  'join'        => array( array( 'from' => array( 'us' => 'users_staff' ), 'where' => array( 'u' => 'id', '=', 'us' => 'uid' ) ) ), 
     315                                              'where'   => array( array( 'u' => 'id' ), 'in', $ids ), 
     316                                       ), 'id' ); 
    302317        } 
    303318 
     
    317332                #============================= 
    318333 
    319             #* 
    320             #* we need to properly check their preference. allow function to take in a paramater that gives the notification type. 
    321             #* then check the notification type against the user preference in the database. also respect email_enable. 
    322             #* 
    323  
    324             #* 
    325             #* add new notifications types to my acp settings and add / edit use. be sure to include setting warning. 
    326             #* 
    327  
    328334            $lookup_ids = array(); 
    329335 
     
    341347            if ( count( $lookup_ids ) == 1 ) 
    342348            { 
    343                 if ( ! $u = $this->trellis->func->users->get_single( array( 'id', 'name', 'email', 'lang', 'email_enable', 'email_type' ), array( 'id', '=', $lookup_ids[0] ) ) ) trigger_error( "Email - User not found: ". $lookup_ids[0], E_USER_NOTICE ); 
     349                if ( ! $u = $this->get_user( $lookup_ids[0] ) ) trigger_error( "Email - User not found: ". current( $lookup_ids ), E_USER_NOTICE ); 
    344350 
    345351                $users[ $u['id'] ] = $u; 
     
    347353            else 
    348354            { 
    349                 if ( ! $users = $this->trellis->func->users->get( array( 'select' => array( 'id', 'name', 'email', 'lang', 'email_enable', 'email_type' ), 'where' => array( 'id', 'in', $lookup_ids ) ) ) ) trigger_error( "Email - No users found.", E_USER_NOTICE ); 
     355                if ( ! $users = $this->get_users( $lookup_ids ) ) trigger_error( "Email - No users found.", E_USER_NOTICE ); 
    350356            } 
    351357        } 
     
    358364        { 
    359365            if ( ! $data['lang'] && $data['id'] ) $data['lang'] = $users[ $data['id'] ]['lang']; 
    360             if ( ! $data['type'] && $data['id'] ) $this->to_send[ $id ]['type'] = $users[ $data['id'] ]['email_type']; 
     366            if ( ! $data['format'] && $data['id'] ) $this->to_send[ $id ]['format'] = $users[ $data['id'] ]['email_type']; 
    361367 
    362368            if ( ! $data['lang'] || ! $this->trellis->cache->data['langs'][ $data['lang'] ] ) $data['lang'] = $this->trellis->cache->data['misc']['default_lang']; 
    363369 
    364             if ( $this->to_send[ $id ]['type'] == 1 ) 
    365             { 
    366                 $this->to_send[ $id ]['type'] = 'html'; 
    367             } 
    368             elseif ( $this->to_send[ $id ]['type'] == 2 ) 
    369             { 
    370                 $this->to_send[ $id ]['type'] = 'text'; 
    371             } 
    372  
    373             if ( ! $this->to_send[ $id ]['type'] ) $this->to_send[ $id ]['type'] = 'html'; 
     370            if ( $this->to_send[ $id ]['format'] == 1 ) 
     371            { 
     372                $this->to_send[ $id ]['format'] = 'html'; 
     373            } 
     374            elseif ( $this->to_send[ $id ]['format'] == 2 ) 
     375            { 
     376                $this->to_send[ $id ]['format'] = 'text'; 
     377            } 
     378 
     379            if ( ! $this->to_send[ $id ]['format'] ) $this->to_send[ $id ]['format'] = 'html'; // Default to HTML 
    374380 
    375381            if ( ! $data['name'] && $data['id'] ) $this->to_send[ $id ]['name'] = $users[ $data['id'] ]['name']; 
    376382            if ( ! $data['email'] && $data['id'] ) $this->to_send[ $id ]['email'] = $users[ $data['id'] ]['email']; 
    377             if ( ! $data['preference'] && $data['id'] ) $this->to_send[ $id ]['preference'] = $users[ $data['id'] ]['email_enable']; 
    378  
    379             #if ( isset( $this->to_send[ $id ]['preference'] ) && $this->to_send[ $id ]['preference'] ) $languages[ $data['lang'] ][] = $id; 
    380             $languages[ $data['lang'] ][] = $id; 
     383 
     384            // Check Preferences / Permissions 
     385 
     386            $type_staff = strpos( $data['type'], 'staff_' ); 
     387 
     388            ( $type_staff ) ? $this->to_send[ $id ]['preference'] = $this->trellis->cache->data['settings']['esnotify']['enable'] : $this->to_send[ $id ]['preference'] = $this->trellis->cache->data['settings']['eunotify']['enable']; 
     389 
     390            if ( $data['id'] && $this->to_send[ $id ]['preference'] ) 
     391            { 
     392                ( $type_staff === 0 ) ? $this->to_send[ $id ]['preference'] = $users[ $data['id'] ]['email_staff_enable'] : $this->to_send[ $id ]['preference'] = $users[ $data['id'] ]['email_enable']; 
     393            } 
     394 
     395            if ( $data['type'] && $this->to_send[ $id ]['preference'] ) $this->to_send[ $id ]['preference'] = $users[ $data['id'] ][ 'email_'. $data['type'] ]; 
     396 
     397            if ( ! $data['id'] && $this->trellis->cache->data['settings']['eunotify']['guest'] ) $this->to_send[ $id ]['preference'] = 1; // Set Guest Preference 
     398 
     399            if ( $this->to_send[ $id ]['preference'] || $data['override'] ) $languages[ $data['lang'] ][] = $id; 
    381400        } 
    382401 
     
    407426                } 
    408427 
    409                 if ( $this->to_send[ $id ]['type'] == 'html' && ! $lang[ $msg .'_html' ] ) 
     428                if ( $this->to_send[ $id ]['format'] == 'html' && ! $lang[ $msg .'_html' ] ) 
    410429                { 
    411430                    trigger_error( "Email - Language message missing: ". $msg .'_html', E_USER_NOTICE ); 
     
    414433                } 
    415434 
    416                 $message_text = $lang['header'] . $lang[ $msg ] . $lang['footer']; 
    417                 $message_html = $lang['header_html'] . $lang[ $msg .'_html' ] . $lang['footer_html']; 
     435                $message_text = $this->trellis->prepare_output( $lang['header'] ."\n\n". $lang[ $msg ] ."\n\n". $lang['footer'], array( 'html' => 1, 'entity' => 1 ) ); 
     436                $message_html = $this->trellis->prepare_output( $lang['header_html'] .'&lt;br /&gt; &lt;br /&gt;'. $lang[ $msg .'_html' ] .'&lt;br /&gt; &lt;br /&gt;'. $lang['footer_html'], array( 'html' => 1, 'entity' => 1 ) ); 
    418437 
    419438                $this->create_message( $id ); 
     
    427446                $this->add_to( $this->to_send[ $id ]['email'], $this->to_send[ $id ]['name'] ); 
    428447 
    429                 if ( $this->trellis->cache->data['settings']['email']['html'] && $this->to_send[ $id ]['type'] == 'html' ) 
     448                if ( $this->trellis->cache->data['settings']['email']['html'] && $this->to_send[ $id ]['format'] == 'html' ) 
    430449                { 
    431450                    $this->set_body( $message_html, 'text/html' ); 
  • trunk/Upload/includes/functions/func_emails.php

    r50 r51  
    3030        public function &get($language) 
    3131        { 
    32                 $return = array(); 
    33  
    34                 require_once HD_PATH .'language/'. $language .'/lang_email_content.php'; 
     32                require HD_PATH .'language/'. $language .'/lang_email_content.php'; 
    3533 
    3634                return $lang; 
     
    4139        #======================================= 
    4240 
    43         public function get_single($select, $where='') 
     41        public function get_single($language, $key) 
    4442        { 
    45                 $this->trellis->db->construct( array( 
    46                                                                                                    'select'     => $select, 
    47                                                                                                    'from'       => 'reply_templates', 
    48                                                                                                    'where'      => $where, 
    49                                                                                                    'limit'      => array( 0, 1 ), 
    50                                                                                         )          ); 
     43                require HD_PATH .'language/'. $language .'/lang_email_content.php'; 
    5144 
    52                 $this->trellis->db->execute(); 
     45                if ( ! isset( $lang[ $key ] ) ) return false; 
    5346 
    54                 if ( ! $this->trellis->db->get_num_rows() ) return false; 
     47                return array( 'subject' => $lang[ $key .'_sub' ], 'plaintext' => $lang[ $key ], 'html' => $lang[ $key .'_html' ] ); 
     48        } 
    5549 
    56                 return $this->trellis->db->fetch_row(); 
     50        #======================================= 
     51        # @ Edit 
     52        #======================================= 
     53 
     54        public function edit($language, $key, $subject, $html, $plaintext) 
     55        { 
     56                require HD_PATH .'language/'. $language .'/lang_email_content.php'; 
     57 
     58                if ( ! isset( $lang[ $key ] ) ) return false; 
     59 
     60                if ( $key != 'header' && $key != 'footer' ) $lang[ $key .'_sub' ] = $subject; 
     61 
     62                $lang[ $key .'_html' ] = $html; 
     63                $lang[ $key ] = $plaintext; 
     64 
     65                if ( ! $handle = fopen( HD_PATH .'language/'. $language .'/lang_email_content.php', 'wb' ) ) return false; 
     66 
     67                $file_start = "<?php\n\n/*\n#======================================================\n"; 
     68                $file_start .= "|    | Trellis Desk Language File\n"; 
     69                $file_start .= "|    | lang_email_content.php\n"; 
     70                $file_start .= "#======================================================\n*/\n\n"; 
     71 
     72        fwrite( $handle, $file_start ); 
     73 
     74        foreach( $lang as $k => $l ) 
     75        { 
     76            if ( substr( $k, -4, 4) == '_sub' ) 
     77                        { 
     78                                fwrite( $handle, "\$lang['". $k ."'] = \"". $lang[ $k ] ."\";\n\n" ); 
     79                        } 
     80                        else 
     81                        { 
     82                                fwrite( $handle, "\$lang['". $k ."'] = <<<EOF\n". $lang[ $k ] ."\nEOF;\n\n" ); 
     83                        } 
     84        } 
     85 
     86        fwrite( $handle, "?>" ); 
     87 
     88        @fclose( $handle ); 
     89 
     90                return true; 
    5791        } 
    5892 
  • trunk/Upload/includes/functions/func_users.php

    r50 r51  
    267267                                                        'email_staff_reply'             => 'int', 
    268268                                                        'email_staff_assign'    => 'int', 
     269                                                        'email_staff_escalate'  => 'int', 
     270                                                        'email_staff_hold'              => 'int', 
     271                                                        'email_staff_move_to'   => 'int', 
     272                                                        'email_staff_move_away' => 'int', 
     273                                                        'email_staff_close'             => 'int', 
     274                                                        'email_staff_reopen'    => 'int', 
    269275                                                        'esn_unassigned'                => 'int', 
    270276                                                        'esn_assigned'                  => 'int', 
     
    373379                                                        'email_staff_reply'             => 'int', 
    374380                                                        'email_staff_assign'    => 'int', 
     381                                                        'email_staff_escalate'  => 'int', 
     382                                                        'email_staff_hold'              => 'int', 
     383                                                        'email_staff_move_to'   => 'int', 
     384                                                        'email_staff_move_away' => 'int', 
     385                                                        'email_staff_close'             => 'int', 
     386                                                        'email_staff_reopen'    => 'int', 
    375387                                                        'esn_unassigned'                => 'int', 
    376388                                                        'esn_assigned'                  => 'int', 
  • trunk/Upload/language/en/ad_lang_emails.php

    r50 r51  
    1717'menu_back' => '<strong>Back</strong> to languages list', 
    1818'menu_settings' => 'Email <strong>settings</strong>', 
    19 'alert_category_updated' => 'The category has been successfully updated.', 
     19'alert_email_updated' => 'The email template has been successfully updated.', 
     20'error_not_writable' => 'Please update the file permissions on lang_email_content.php to allow Trellis Desk to write to the file.', 
     21'error_no_subject' => 'Please enter a subject.', 
     22'error_content_html' => 'Please enter HTML content.', 
     23'error_content_text' => 'Please enter plain text content.', 
    2024'menu_email_options' => 'Email Options', 
     25'menu_template_tags' => 'Template Tags', 
    2126'select_lang_instructions' => 'Select a language to edit email templates.', 
    22 'edit_plaintext' => 'Edit Plain Text', 
    23 'edit_html' => 'Edit HTML', 
     27'html_content' => 'HTML Content', 
     28'text_content' => 'Plain Text Content', 
    2429 
    2530'email_header' => 'Header', 
     
    4954'email_ticket_move_to_staff' => 'Ticket Move To (Staff)', 
    5055'email_ticket_move_away_staff' => 'Ticket Move Away (Staff)', 
    51 'email_ticket_close' => 'Header', 
    52 'email_ticket_close_staff' => 'Header', 
    53 'email_ticket_reopen' => 'Header', 
    54 'email_ticket_reopen_staff' => 'Header', 
     56'email_ticket_close' => 'Ticket Close', 
     57'email_ticket_close_staff' => 'Ticket Close (Staff)', 
     58'email_ticket_reopen' => 'Ticket Reopen', 
     59'email_ticket_reopen_staff' => 'Ticket Reopen (Staff)', 
    5560'email_ticket_new_rejected' => 'Ticket Rejected', 
    5661'email_ticket_reply_rejected' => 'Reply Rejected', 
  • trunk/Upload/language/en/ad_lang_settings.php

    r50 r51  
    1818'hey_you_msg' => 'Since you\'re reading this paragraph right now, it\'s safe to say that you are a Trellis Desk user. And we want to hear what you, the user, thinks about our software! Please visit the <a href="http://trac.assembla.com/trellisdesk" target="_blank">ACCORD5 bug tracker</a> where you can report bugs or suggest any features you\'d like to see in future versions of Trellis Desk. Or, if you\'re not feeling that adventurous, just drop us a message at <a href="mailto:info@accord5.com">info@accord5.com</a>. We really want to hear what you think about Trellis Desk!', 
    1919'email_notifications' => 'Email Notifications', 
    20 'email_ticket' => 'New Ticket Notifications', 
    21 'email_reply' => 'New Reply Notifications', 
     20'email_ticket' => 'Ticket Notifications', 
     21'email_reply' => 'Reply Notifications', 
    2222'email_assign' => 'Assign Notifications', 
    2323'email_escalate' => 'Escalate Notifications', 
  • trunk/Upload/language/en/ad_lang_users.php

    r50 r51  
    5757'skin' => 'Skin', 
    5858'rich_text_editor' => 'Rich Text Editor', 
     59'email_user_ticket' => 'Ticket Notifications', 
     60'email_user_action' => 'Action Notifications', 
    5961'email_notifications' => 'Email Notifications', 
    60 'email_ticket' => 'New Ticket Notifications', 
    61 'email_action' => 'New Reply Notifications', 
     62'email_ticket' => 'Ticket Notifications', 
     63'email_reply' => 'Reply Notifications', 
    6264'email_news' => 'News Notifications', 
    6365'email_assign' => 'Assign Notifications', 
     66'email_escalate' => 'Escalate Notifications', 
     67'email_hold' => 'Hold Notifications', 
     68'email_move_to' => 'Move To Notifications', 
     69'email_move_away' => 'Move Away Notifications', 
     70'email_close' => 'Close Notifications', 
     71'email_reopen' => 'Reopen Notifications', 
    6472'email_type' => 'Email Format', 
    6573'email_preferences' => 'Email Preferences', 
  • trunk/Upload/language/en/lang_email_content.php

    r50 r51  
    1010$lang['header'] = <<<EOF 
    1111Dear {USER_NAME}, 
    12  
    13  
    1412EOF; 
    1513 
    1614$lang['header_html'] = <<<EOF 
    17 Dear {USER_NAME},<br /> 
    18 <br /> 
    19  
     15Dear {USER_NAME}, 
    2016EOF; 
    2117 
    2218$lang['footer'] = <<<EOF 
    23  
    24  
    2519Regards, 
    2620 
    2721The {HD_NAME} team. 
    28  
    2922{HD_URL} 
    3023EOF; 
    3124 
    3225$lang['footer_html'] = <<<EOF 
    33 <br /> 
    34 <br /> 
    35 Regards,<br /> 
    36 <br /> 
    37 The {HD_NAME} team.<br /> 
    38 <br /> 
    39 <a href='{HD_URL}'>{HD_URL}</a> 
    40 EOF; 
    41  
    42 $lang['user_new_val_email_sub'] = "Verify Your New Account"; 
     26Regards,&lt;br /&gt;&lt;br /&gt;The {HD_NAME} team.&lt;br /&gt;&lt;a href=&quot;{HD_URL}&quot;&gt;{HD_URL} 
     27EOF; 
     28 
     29$lang['user_new_val_email_sub'] = "Verify Your Email"; 
    4330 
    4431$lang['user_new_val_email'] = <<<EOF 
    45 Welcome to {HD_NAME}.  You have requested a new account at our help desk system.  In order to activate your account, you must verify this email address by clicking the validation link below. 
    46  
    47 --------------------------- 
    48  
    49 Validation Link: {VAL_LINK} 
    50  
    51 --------------------------- 
     32Welcome to {HD_NAME}.  You have created a new user account at our help desk system.  In order to activate your account, you must verify this email address by clicking the verification link below. 
     33 
     34--------------------------- 
     35 
     36Verification Link: {LINK} 
     37 
     38--------------------------- 
     39 
     40Once you have verified this email address, you will be able to log in. 
    5241EOF; 
    5342 
    5443$lang['user_new_val_email_html'] = <<<EOF 
    55 Welcome to {HD_NAME}.  You have requested a new account at our help desk system.  In order to activate your account, you must verify this email address by clicking the validation link below.<br /> 
    56 <br /> 
    57 ---------------------------<br /> 
    58 <br /> 
    59 Validation Link: <a href='{VAL_LINK}'>{VAL_LINK}</a><br /> 
    60 <br /> 
    61 --------------------------- 
    62 EOF; 
    63  
    64 $lang['user_new_val_admin_sub'] = "Your New Account"; 
     44Welcome to {HD_NAME}.&amp;nbsp; You have created a new user account at our help desk system.&amp;nbsp; In order to activate your account, you must verify this email address by clicking the verification link below.&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;Verification Link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;Once you have verified this email address, you will be able to log in. 
     45EOF; 
     46 
     47$lang['user_new_val_admin_sub'] = "New User Account Pending"; 
    6548 
    6649$lang['user_new_val_admin'] = <<<EOF 
    67 You have requested a new account at our help desk system.  Before you can begin using your account, an administrator must manually approve your account.  You will receive an email when your account is approved. 
     50Welcome to {HD_NAME}.  You have created a new user account at our help desk system.  Before you can begin using your account, an administrator must manually approve your account.  You will receive an email when your account is approved. 
    6851EOF; 
    6952 
    7053$lang['user_new_val_admin_html'] = <<<EOF 
    71 You have requested a new account at our help desk system.  Before you can begin using your account, an administrator must manually approve your account.  You will receive an email when your account is approved. 
    72 EOF; 
    73  
    74 $lang['user_new_val_both_sub'] = "Verify Your New Account"; 
     54Welcome to {HD_NAME}.&amp;nbsp; You have created a new user account at our help  desk system.&amp;nbsp; Before you can begin using your account, an administrator must manually approve your account.&amp;nbsp; You will receive an email when your account is approved. 
     55EOF; 
     56 
     57$lang['user_new_val_admin_staff_sub'] = "New Registration: {USER_NAME}"; 
     58 
     59$lang['user_new_val_admin_staff'] = <<<EOF 
     60A new user has registered as is awaiting approval. 
     61 
     62--------------------------- 
     63 
     64User: {UNAME} 
     65Email: {UEMAIL} 
     66 
     67--------------------------- 
     68 
     69You can manage users awaiting approval using this link: {LINK} 
     70EOF; 
     71 
     72$lang['user_new_val_admin_staff_html'] = <<<EOF 
     73A new user has registered as is awaiting approval.&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;User: {UNAME}&lt;br /&gt;Email: {UEMAIL}&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;You can manage users awaiting approval using this link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt; 
     74EOF; 
     75 
     76$lang['user_new_val_both_sub'] = "Verify Your Email"; 
    7577 
    7678$lang['user_new_val_both'] = <<<EOF 
    77 Welcome to {HD_NAME}.  You have requested a new account at our help desk system.  In order to activate your account, you must verify this email address by clicking the validation link below.  Additionally, an administrator must manually approve your account. 
    78  
    79 --------------------------- 
    80  
    81 Validation Link: {VAL_LINK} 
    82  
    83 --------------------------- 
    84  
    85 Remember, in additional to verifying your email address, an administrator must also manually approve your account.  An email will be sent to notify you when your account is approved. 
     79Welcome to {HD_NAME}.  You have created a new user account at our help desk system.  In order to activate your account, you must verify this email address by clicking the validation link below.  Additionally, an administrator must also manually approve your account. 
     80 
     81--------------------------- 
     82 
     83Validation Link: {LINK} 
     84 
     85--------------------------- 
     86 
     87You will receive an email when an administrator approves your account. 
    8688EOF; 
    8789 
    8890$lang['user_new_val_both_html'] = <<<EOF 
    89 Welcome to {HD_NAME}.  You have requested a new account at our help desk system.  In order to activate your account, you must verify this email address by clicking the validation link below.  Additionally, an administrator must manually approve your account.<br /> 
    90 <br /> 
    91 ---------------------------<br /> 
    92 <br /> 
    93 Validation Link: <a href='{VAL_LINK}'>{VAL_LINK}</a><br /> 
    94 <br /> 
    95 ---------------------------<br /> 
    96 <br /> 
    97 Remember, in additional to verifying your email address, an administrator must also manually approve your account.  An email will be sent to notify you when your account is approved. 
    98 EOF; 
    99  
    100 $lang['user_almost_activated_sub'] = "Account Waiting Approval"; 
     91Welcome to {HD_NAME}.&amp;nbsp; You have created a new user account at our help  desk system.&amp;nbsp; In order to activate your account, you must verify this  email address by clicking the validation link below.&amp;nbsp; Additionally, an administrator must also manually approve your account.&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;Validation  Link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;You will receive an email when an administrator approves your account. 
     92EOF; 
     93 
     94$lang['user_almost_activated_sub'] = "Account Awaiting Email Verification"; 
    10195 
    10296$lang['user_almost_activated'] = <<<EOF 
    103 Your email address has been successfully verified.  But before you can begin using your account, an administrator must manually approve your account.  You will receive an email when your account is approved. 
     97Your user account has been approved by an administrator.  But before you can begin using your account, you must first click the email verification link in the email that was earlier sent to your email address. 
    10498EOF; 
    10599 
    106100$lang['user_almost_activated_html'] = <<<EOF 
    107 Your email address has been successfully verified.  But before you can begin using your account, an administrator must manually approve your account.  You will receive an email when your account is approved. 
    108 EOF; 
    109  
    110 $lang['user_almost_approved_sub'] = "Account Waiting Email Validation"; 
     101Your user account has been approved by an administrator.&amp;nbsp; But before you can begin using your account, you must first click the email verification link in the email that was earlier sent to your email address. 
     102EOF; 
     103 
     104$lang['user_almost_approved_sub'] = "Account Awaiting Admin Approval"; 
    111105 
    112106$lang['user_almost_approved'] = <<<EOF 
    113 Your account has been successfully approved by an administrator.  But before you can begin using your account, you must first click the validation link in the email that has been dispatched to your email address. 
     107Your email address has been verified.  But before you can begin using your account, an administrator must manually approve your user account.  You will receive an email when your account is approved. 
    114108EOF; 
    115109 
    116110$lang['user_almost_approved_html'] = <<<EOF 
    117 Your account has been successfully approved by an administrator.  But before you can begin using your account, you must first click the validation link in the email that has been dispatched to your email address. 
    118 EOF; 
    119  
    120 $lang['user_new_val_admin_staff_sub'] = "New Registration: {USER_NAME}"; 
    121  
    122 $lang['user_new_val_admin_staff'] = <<<EOF 
    123 A new user has registered as is awaiting admin validation.  Below are the user details. 
    124  
    125 --------------------------- 
    126  
    127 User: {USER_NAME} 
    128 Email: {USER_EMAIL} 
    129  
    130 --------------------------- 
    131  
    132 You can manage users awaiting validation using this link: {APPROVE_LINK} 
    133 EOF; 
    134  
    135 $lang['user_new_val_admin_staff_html'] = <<<EOF 
    136 A new user has registered as is awaiting admin validation.  Below are the user details.<br /> 
    137 <br /> 
    138 ---------------------------<br /> 
    139 <br /> 
    140 User: {USER_NAME}<br /> 
    141 Email: {USER_EMAIL}<br /> 
    142 <br /> 
    143 ---------------------------<br /> 
    144 <br /> 
    145 You can manage users awaiting validation using this link: <a href='{APPROVE_LINK}'>{APPROVE_LINK}</a> 
    146 EOF; 
    147  
    148 $lang['acc_activated_sub'] = "Account Activated"; 
     111Your email address has been verified.&amp;nbsp; But before you can begin using your account, an administrator must manually approve your user account.&amp;nbsp; You will receive an email when your account is approved. 
     112EOF; 
     113 
     114$lang['acc_activated_sub'] = "Email Verified"; 
    149115 
    150116$lang['acc_activated'] = <<<EOF 
    151 Your account has been successfully activated.  You may now login. 
     117Your email address has been verified and your user account has been activated.  You may now log in. 
    152118EOF; 
    153119 
    154120$lang['acc_activated_html'] = <<<EOF 
    155 Your account has been successfully activated.  You may now login. 
     121Your email address has been verified and your user account has been activated.&amp;nbsp; You may now log in. 
    156122EOF; 
    157123 
     
    159125 
    160126$lang['acc_approved'] = <<<EOF 
    161 Your account has been successfully approved by an administrator.  You may now login. 
     127Your user account has been approved by an administrator.  You may now login. 
    162128EOF; 
    163129 
    164130$lang['acc_approved_html'] = <<<EOF 
    165 Your account has been successfully approved by an administrator. You may now login. 
     131Your user account has been approved by an administrator.&amp;nbsp; You may now login. 
    166132EOF; 
    167133 
     
    169135 
    170136$lang['change_email_val'] = <<<EOF 
    171 You have requested for your email to be changed to this address.  In order to complete the change, you must verify this email by clicking the validation link below. 
    172  
    173 --------------------------- 
    174  
    175 {VAL_LINK} 
     137You have requested for your email to be changed to this address.  In order to update your email, you must verify this address by clicking the verification link below. 
     138 
     139--------------------------- 
     140 
     141Verification Link: {LINK} 
    176142 
    177143--------------------------- 
     
    179145 
    180146$lang['change_email_val_html'] = <<<EOF 
    181 You have requested for your email to be changed to this address.  In order to complete the change, you must verify this email by clicking the validation link below.<br /> 
    182 <br /> 
    183 ---------------------------<br /> 
    184 <br /> 
    185 <a href='{VAL_LINK}'>{VAL_LINK}</a><br /> 
    186 <br /> 
    187 --------------------------- 
    188 EOF; 
    189  
    190 $lang['reset_pass_val_sub'] = "Reset Your Password"; 
     147You have requested for your email to be changed to this address.&amp;nbsp; In order to update your email, you must verify this address by clicking the verification link below.&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;Verification Link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;--------------------------- 
     148EOF; 
     149 
     150$lang['reset_pass_val_sub'] = "Reset Password"; 
    191151 
    192152$lang['reset_pass_val'] = <<<EOF 
    193 You have requested to reset your password at {HD_NAME}.  In order to reset your password, click the validation link below.  If you did not request to reset your password, please disregard this email. 
    194  
    195 --------------------------- 
    196  
    197 Validation Link: {VAL_LINK} 
     153You have requested to reset your password at {HD_NAME}.  To reset your password, click the verification link below.  If you did not request to reset your password, please disregard this email. 
     154 
     155--------------------------- 
     156 
     157Verification Link: {LINK} 
     158 
     159--------------------------- 
    198160EOF; 
    199161 
    200162$lang['reset_pass_val_html'] = <<<EOF 
    201 You have requested to reset your password at {HD_NAME}.  In order to reset your password, click the validation link below.  If you did not request to reset your password, please disregard this email.<br /> 
    202 <br /> 
    203 ---------------------------<br /> 
    204 <br /> 
    205 Validation Link: <a href='{VAL_LINK}'>{VAL_LINK}</a> 
     163You have requested to reset your password at {HD_NAME}.&amp;nbsp; To reset your password, click the verification link below.&amp;nbsp; If you did not request to reset your password, please disregard this email.&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;Verification Link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;--------------------------- 
    206164EOF; 
    207165 
     
    209167 
    210168$lang['ticket_new'] = <<<EOF 
    211 You have submitted a new ticket.  Our staff will review the ticket shortly and reply accordingly.  Below are the ticket details. 
     169You have submitted a new ticket.  Our staff will review your ticket shortly and reply accordingly. 
    212170 
    213171--------------------------- 
     
    224182 
    225183$lang['ticket_new_html'] = <<<EOF 
    226 You have submitted a new ticket.  Our staff will review the ticket shortly and reply accordingly.  Below are the ticket details.<br /> 
    227 <br /> 
    228 ---------------------------<br /> 
    229 <br /> 
    230 Ticket ID: {TICKET_ID}<br /> 
    231 Subject: {SUBJECT}<br /> 
    232 Department: {DEPARTMENT}<br /> 
    233 Priority: {PRIORITY}<br /> 
    234 <br /> 
    235 ---------------------------<br /> 
    236 <br /> 
    237 You can view your ticket using this link: <a href='{TICKET_LINK}'>{TICKET_LINK}</a> 
     184You have submitted a new ticket.&amp;nbsp; Our staff will review your ticket shortly and reply accordingly.&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;Ticket ID: {TICKET_ID}&lt;br /&gt;Subject: {SUBJECT}&lt;br /&gt;Department: {DEPARTMENT}&lt;br /&gt;Priority: {PRIORITY}&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;You can view your ticket using this link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt; 
    238185EOF; 
    239186 
     
    241188 
    242189$lang['ticket_new_staff'] = <<<EOF 
    243 A new ticket has been created in your department.  Below are the ticket details. 
    244  
    245 --------------------------- 
    246  
    247 Ticket ID: {TICKET_ID} 
    248 User: {MEMBER} 
     190A new ticket has been created. 
     191 
     192--------------------------- 
     193 
     194Ticket ID: {TICKET_ID} 
     195User: {UNAME} 
    249196Subject: {SUBJECT} 
    250197Department: {DEPARTMENT} 
     
    257204--------------------------- 
    258205 
    259 You can manage this ticket using this link: {TICKET_LINK} 
     206You can manage this ticket using this link: {LINK} 
    260207EOF; 
    261208 
    262209$lang['ticket_new_staff_html'] = <<<EOF 
    263 A new ticket has been created in your department.  Below are the ticket details.<br /> 
    264 <br /> 
    265 ---------------------------<br /> 
    266 <br /> 
    267 Ticket ID: {TICKET_ID}<br /> 
    268 User: {MEMBER}<br /> 
    269 Subject: {SUBJECT}<br /> 
    270 Department: {DEPARTMENT}<br /> 
    271 Priority: {PRIORITY}<br /> 
    272 <br /> 
    273 ---------------------------<br /> 
    274 <br /> 
    275 {MESSAGE}<br /> 
    276 <br /> 
    277 ---------------------------<br /> 
    278 <br /> 
    279 You can manage this ticket using this link: <a href='{TICKET_LINK}'>{TICKET_LINK}</a> 
     210A new ticket has been created.&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;Ticket ID: {TICKET_ID}&lt;br /&gt;User: {UNAME}&lt;br /&gt;Subject: {SUBJECT}&lt;br /&gt;Department: {DEPARTMENT}&lt;br /&gt;Priority: {PRIORITY}&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;{MESSAGE}&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;You can manage this ticket using this link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt; 
    280211EOF; 
    281212 
     
    283214 
    284215$lang['ticket_new_guest'] = <<<EOF 
    285 You have submitted a new guest ticket.  Our staff will review the ticket shortly and reply accordingly.  Below are the ticket details. 
    286  
    287 --------------------------- 
    288  
    289 Ticket ID: {TICKET_ID} 
    290 Subject: {SUBJECT} 
    291 Department: {DEPARTMENT} 
    292 Priority: {PRIORITY} 
    293  
    294 Ticket Key: {TICKET_KEY} 
    295  
    296 --------------------------- 
    297  
    298 You can view your ticket using this link: {TICKET_LINK} 
     216You have submitted a new guest ticket.  Our staff will review your ticket shortly and reply accordingly. 
     217 
     218--------------------------- 
     219 
     220Ticket ID: {TICKET_ID} 
     221Subject: {SUBJECT} 
     222Department: {DEPARTMENT} 
     223Priority: {PRIORITY} 
     224 
     225Ticket Key: {KEY} 
     226 
     227--------------------------- 
     228 
     229You can view your ticket using this link: {LINK} 
    299230EOF; 
    300231 
    301232$lang['ticket_new_guest_html'] = <<<EOF 
    302 You have submitted a new guest ticket.  Our staff will review the ticket shortly and reply accordingly.  Below are the ticket details.<br /> 
    303 <br /> 
    304 ---------------------------<br /> 
    305 <br /> 
    306 Ticket ID: {TICKET_ID}<br /> 
    307 Subject: {SUBJECT}<br /> 
    308 Department: {DEPARTMENT}<br /> 
    309 Priority: {PRIORITY}<br /> 
    310 <br /> 
    311 Ticket Key: {TICKET_KEY}<br /> 
    312 <br /> 
    313 ---------------------------<br /> 
    314 <br /> 
    315 You can view your ticket using this link: <a href='{TICKET_LINK}'>{TICKET_LINK}</a> 
     233You have submitted a new guest ticket.&amp;nbsp; Our staff will review your ticket shortly and reply accordingly.&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;Ticket ID: {TICKET_ID}&lt;br /&gt;Subject: {SUBJECT}&lt;br /&gt;Department: {DEPARTMENT}&lt;br /&gt;Priority: {PRIORITY}&lt;br /&gt;&lt;br /&gt;Ticket Key: {KEY}&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;You can view your ticket using this link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt; 
    316234EOF; 
    317235 
     
    319237 
    320238$lang['ticket_new_guest_staff'] = <<<EOF 
    321 A new guest ticket has been created in your department.  Below are the ticket details. 
    322  
    323 --------------------------- 
    324  
    325 Ticket ID: {TICKET_ID} 
    326 User: {MEMBER} (Guest) 
     239A new guest ticket has been created. 
     240 
     241--------------------------- 
     242 
     243Ticket ID: {TICKET_ID} 
     244User: {UNAME} &#40;Guest&#41; 
    327245Subject: {SUBJECT} 
    328246Department: {DEPARTMENT} 
     
    335253--------------------------- 
    336254 
    337 You can manage this ticket using this link: {TICKET_LINK} 
     255You can manage this ticket using this link: {LINK} 
    338256EOF; 
    339257 
    340258$lang['ticket_new_guest_staff_html'] = <<<EOF 
    341 A new guest ticket has been created in your department.  Below are the ticket details.<br /> 
    342 <br /> 
    343 ---------------------------<br /> 
    344 <br /> 
    345 Ticket ID: {TICKET_ID}<br /> 
    346 User: {MEMBER} (Guest)<br /> 
    347 Subject: {SUBJECT}<br /> 
    348 Department: {DEPARTMENT}<br /> 
    349 Priority: {PRIORITY}<br /> 
    350 <br /> 
    351 ---------------------------<br /> 
    352 <br /> 
    353 {MESSAGE}<br /> 
    354 <br /> 
    355 ---------------------------<br /> 
    356 <br /> 
    357 You can manage this ticket using this link: <a href='{TICKET_LINK}'>{TICKET_LINK}</a> 
    358 EOF; 
    359  
    360 $lang['ticket_escl_sub'] = "Ticket ID #{TICKET_ID} Escalated"; 
    361  
    362 $lang['ticket_escl'] = <<<EOF 
    363 One of your tickets has been escalated.  Our managers will be reviewing your ticket shortly.  Below are the ticket details. 
    364  
    365 --------------------------- 
    366  
    367 Ticket ID: {TICKET_ID} 
    368 Subject: {SUBJECT} 
    369 Department: {DEPARTMENT} 
    370 Priority: {PRIORITY} 
    371  
    372 --------------------------- 
    373  
    374 You can view your ticket using this link: {TICKET_LINK} 
    375 EOF; 
    376  
    377 $lang['ticket_escl_html'] = <<<EOF 
    378 One of your tickets has been escalated.  Our managers will be reviewing your ticket shortly.  Below are the ticket details.<br /> 
    379 <br /> 
    380 ---------------------------<br /> 
    381 <br /> 
    382 Ticket ID: {TICKET_ID}<br /> 
    383 Subject: {SUBJECT}<br /> 
    384 Department: {DEPARTMENT}<br /> 
    385 Priority: {PRIORITY}<br /> 
    386 <br /> 
    387 ---------------------------<br /> 
    388 <br /> 
    389 You can view your ticket using this link: <a href='{TICKET_LINK}'>{TICKET_LINK}</a> 
     259A new guest ticket has been created.&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;Ticket ID: {TICKET_ID}&lt;br /&gt;User: {UNAME} &#40;Guest&#41;&lt;br /&gt;Subject: {SUBJECT}&lt;br /&gt;Department: {DEPARTMENT}&lt;br /&gt;Priority: {PRIORITY}&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;{MESSAGE}&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;You can manage this ticket using this link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt; 
     260EOF; 
     261 
     262$lang['ticket_reply_sub'] = "Ticket ID #{TICKET_ID} Reply"; 
     263 
     264$lang['ticket_reply'] = <<<EOF 
     265A reply has been made to your ticket. 
     266 
     267--------------------------- 
     268 
     269{REPLY} 
     270 
     271--------------------------- 
     272 
     273Ticket ID: {TICKET_ID} 
     274Subject: {SUBJECT} 
     275Department: {DEPARTMENT} 
     276Priority: {PRIORITY} 
     277 
     278--------------------------- 
     279 
     280You can view your ticket using this link: {LINK} 
     281EOF; 
     282 
     283$lang['ticket_reply_html'] = <<<EOF 
     284A reply has been made to your ticket.&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;{REPLY}&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;Ticket ID: {TICKET_ID}&lt;br /&gt;Subject: {SUBJECT}&lt;br /&gt;Department: {DEPARTMENT}&lt;br /&gt;Priority: {PRIORITY}&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;You can view your ticket using this link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt; 
     285EOF; 
     286 
     287$lang['ticket_reply_staff_sub'] = "Ticket ID #{TICKET_ID} Reply"; 
     288 
     289$lang['ticket_reply_staff'] = <<<EOF 
     290A reply has been made to a ticket. 
     291 
     292--------------------------- 
     293 
     294{REPLY} 
     295 
     296--------------------------- 
     297 
     298Ticket ID: {TICKET_ID} 
     299Subject: {SUBJECT} 
     300User: {UNAME} 
     301Department: {DEPARTMENT} 
     302Priority: {PRIORITY} 
     303 
     304--------------------------- 
     305 
     306You can manage this ticket using this link: {LINK} 
     307EOF; 
     308 
     309$lang['ticket_reply_staff_html'] = <<<EOF 
     310A reply has been made to a ticket.&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;{REPLY}&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;Ticket  ID: {TICKET_ID}&lt;br /&gt;Subject: {SUBJECT}&lt;br /&gt;User: {UNAME}&lt;br /&gt;Department: {DEPARTMENT}&lt;br /&gt;Priority:  {PRIORITY}&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;You can manage this  ticket using this link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt; 
     311EOF; 
     312 
     313$lang['ticket_assign_staff_sub'] = "Ticket ID #{TICKET_ID} Assigned"; 
     314 
     315$lang['ticket_assign_staff'] = <<<EOF 
     316You have been assigned a ticket. 
     317 
     318--------------------------- 
     319 
     320Ticket ID: {TICKET_ID} 
     321Subject: {SUBJECT} 
     322User: {UNAME} 
     323Department: {DEPARTMENT} 
     324Priority: {PRIORITY} 
     325 
     326--------------------------- 
     327 
     328{MESSAGE} 
     329 
     330--------------------------- 
     331 
     332You can manage this ticket using this link: {LINK} 
     333EOF; 
     334 
     335$lang['ticket_assign_staff_html'] = <<<EOF 
     336You have been assigned a ticket.&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; Ticket  ID: {TICKET_ID}&lt;br /&gt; Subject: {SUBJECT}&lt;br /&gt; User: {UNAME}&lt;br /&gt; Department: {DEPARTMENT}&lt;br /&gt; Priority:  {PRIORITY}&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; {MESSAGE}&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; You can manage this  ticket using this link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt; 
     337EOF; 
     338 
     339$lang['ticket_escalate_sub'] = "Ticket ID #{TICKET_ID} Escalated"; 
     340 
     341$lang['ticket_escalate'] = <<<EOF 
     342Your ticket has been escalated.  Our managers will be reviewing your ticket shortly. 
     343 
     344--------------------------- 
     345 
     346Ticket ID: {TICKET_ID} 
     347Subject: {SUBJECT} 
     348Department: {DEPARTMENT} 
     349Priority: {PRIORITY} 
     350 
     351--------------------------- 
     352 
     353You can view your ticket using this link: {LINK} 
     354EOF; 
     355 
     356$lang['ticket_escalate_html'] = <<<EOF 
     357Your ticket has been escalated.&amp;nbsp; Our managers will be reviewing your ticket shortly.&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;Ticket ID: {TICKET_ID}&lt;br /&gt;Subject: {SUBJECT}&lt;br /&gt;Department: {DEPARTMENT}&lt;br /&gt;Priority: {PRIORITY}&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;You can view your ticket using this link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt; 
     358EOF; 
     359 
     360$lang['ticket_escalate_staff_sub'] = "Ticket ID #{TICKET_ID} Escalated"; 
     361 
     362$lang['ticket_escalate_staff'] = <<<EOF 
     363A ticket has been escalated. 
     364 
     365--------------------------- 
     366 
     367Ticket ID: {TICKET_ID} 
     368Subject: {SUBJECT} 
     369User: {UNAME} 
     370Department: {DEPARTMENT} 
     371Priority: {PRIORITY} 
     372 
     373--------------------------- 
     374 
     375{MESSAGE} 
     376 
     377--------------------------- 
     378 
     379You can manage this ticket using this link: {LINK} 
     380EOF; 
     381 
     382$lang['ticket_escalate_staff_html'] = <<<EOF 
     383A ticket has been escalated.&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; Ticket  ID: {TICKET_ID}&lt;br /&gt; Subject: {SUBJECT}&lt;br /&gt; User: {UNAME}&lt;br /&gt; Department: {DEPARTMENT}&lt;br /&gt; Priority:  {PRIORITY}&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; {MESSAGE}&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; You can manage this  ticket using  this link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt; 
     384EOF; 
     385 
     386$lang['ticket_hold_sub'] = "Ticket ID #{TICKET_ID} On Hold"; 
     387 
     388$lang['ticket_hold'] = <<<EOF 
     389Your ticket has been put on hold. 
     390 
     391--------------------------- 
     392 
     393Ticket ID: {TICKET_ID} 
     394Subject: {SUBJECT} 
     395Department: {DEPARTMENT} 
     396Priority: {PRIORITY} 
     397 
     398--------------------------- 
     399 
     400You can view your ticket using this link: {LINK} 
     401EOF; 
     402 
     403$lang['ticket_hold_html'] = <<<EOF 
     404Your ticket has been put on hold.&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;Ticket ID: {TICKET_ID}&lt;br /&gt;Subject: {SUBJECT}&lt;br /&gt;Department: {DEPARTMENT}&lt;br /&gt;Priority: {PRIORITY}&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;You can view your ticket using this link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt; 
     405EOF; 
     406 
     407$lang['ticket_hold_staff_sub'] = "Ticket ID #{TICKET_ID} On Hold"; 
     408 
     409$lang['ticket_hold_staff'] = <<<EOF 
     410A ticket has been put on hold. 
     411 
     412--------------------------- 
     413 
     414Ticket ID: {TICKET_ID} 
     415Subject: {SUBJECT} 
     416User: {UNAME} 
     417Department: {DEPARTMENT} 
     418Priority: {PRIORITY} 
     419 
     420--------------------------- 
     421 
     422You can manage this ticket using this link: {LINK} 
     423EOF; 
     424 
     425$lang['ticket_hold_staff_html'] = <<<EOF 
     426A ticket has been put on hold.&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; Ticket  ID: {TICKET_ID}&lt;br /&gt; Subject: {SUBJECT}&lt;br /&gt; User: {UNAME}&lt;br /&gt; Department: {DEPARTMENT}&lt;br /&gt; Priority:  {PRIORITY}&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; You can manage this  ticket using  this link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt; 
     427EOF; 
     428 
     429$lang['ticket_move_sub'] = "Ticket ID #{TICKET_ID} Moved"; 
     430 
     431$lang['ticket_move'] = <<<EOF 
     432Your ticket has been moved to the department: {NEW_DEPART} 
     433 
     434--------------------------- 
     435 
     436Ticket ID: {TICKET_ID} 
     437Subject: {SUBJECT} 
     438Old Department: {OLD_DEPART} 
     439New Department: {NEW_DEPART} 
     440Priority: {PRIORITY} 
     441 
     442--------------------------- 
     443 
     444You can view your ticket using this link: {LINK} 
     445EOF; 
     446 
     447$lang['ticket_move_html'] = <<<EOF 
     448Your ticket has been moved to the department: {NEW_DEPART}&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; Ticket ID: {TICKET_ID}&lt;br /&gt; Subject: {SUBJECT}&lt;br /&gt; Old Department: {OLD_DEPART}&lt;br /&gt;New Department: {NEW_DEPART}&lt;br /&gt; Priority: {PRIORITY}&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; You can view your ticket using this link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt; 
     449EOF; 
     450 
     451$lang['ticket_move_to_staff_sub'] = "Ticket ID #{TICKET_ID} Moved"; 
     452 
     453$lang['ticket_move_to_staff'] = <<<EOF 
     454A ticket has been moved to your department. 
     455 
     456--------------------------- 
     457 
     458Ticket ID: {TICKET_ID} 
     459Subject: {SUBJECT} 
     460User: {UNAME} 
     461Department: {DEPARTMENT} 
     462Priority: {PRIORITY} 
     463 
     464--------------------------- 
     465 
     466{MESSAGE} 
     467 
     468--------------------------- 
     469 
     470You can manage this ticket using this link: {LINK} 
     471EOF; 
     472 
     473$lang['ticket_move_to_staff_html'] = <<<EOF 
     474A ticket has been moved to your department.&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; Ticket  ID: {TICKET_ID}&lt;br /&gt; Subject: {SUBJECT}&lt;br /&gt; User: {UNAME}&lt;br /&gt; Department: {DEPARTMENT}&lt;br /&gt; Priority:  {PRIORITY}&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; {MESSAGE}&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; You can manage this  ticket using   this link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt; 
     475EOF; 
     476 
     477$lang['ticket_move_away_staff_sub'] = "Ticket ID #{TICKET_ID} Moved"; 
     478 
     479$lang['ticket_move_away_staff'] = <<<EOF 
     480A ticket has been moved from your department. 
     481 
     482--------------------------- 
     483 
     484Ticket ID: {TICKET_ID} 
     485Subject: {SUBJECT} 
     486User: {UNAME} 
     487Department: {DEPARTMENT} 
     488Priority: {PRIORITY} 
     489 
     490--------------------------- 
     491 
     492{MESSAGE} 
     493 
     494--------------------------- 
     495 
     496You can manage this ticket using this link: {LINK} 
     497EOF; 
     498 
     499$lang['ticket_move_away_staff_html'] = <<<EOF 
     500A ticket has been moved from your department.&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; Ticket  ID: {TICKET_ID}&lt;br /&gt; Subject: {SUBJECT}&lt;br /&gt; User: {UNAME}&lt;br /&gt; Department: {DEPARTMENT}&lt;br /&gt; Priority:  {PRIORITY}&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; {MESSAGE}&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; You can manage this  ticket using   this link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt; 
    390501EOF; 
    391502 
     
    393504 
    394505$lang['ticket_close'] = <<<EOF 
    395 One of your tickets has been closed.  Below are the ticket details. 
    396  
    397 --------------------------- 
    398  
    399 Ticket ID: {TICKET_ID} 
    400 Subject: {SUBJECT} 
    401 Department: {DEPARTMENT} 
    402 Priority: {PRIORITY} 
    403  
    404 --------------------------- 
    405  
    406 You can view your ticket using this link: {TICKET_LINK} 
    407  
    408 If there is anything we can do to be of assistance, please let us know. 
     506Your ticket has been closed. 
     507 
     508--------------------------- 
     509 
     510Ticket ID: {TICKET_ID} 
     511Subject: {SUBJECT} 
     512Department: {DEPARTMENT} 
     513Priority: {PRIORITY} 
     514 
     515--------------------------- 
     516 
     517You can view your ticket using this link: {LINK} 
     518 
     519If there is anything else we can do, please submit a new ticket. 
    409520EOF; 
    410521 
    411522$lang['ticket_close_html'] = <<<EOF 
    412 One of your tickets has been closed.  Below are the ticket details.<br /> 
    413 <br /> 
    414 ---------------------------<br /> 
    415 <br /> 
    416 Ticket ID: {TICKET_ID}<br /> 
    417 Subject: {SUBJECT}<br /> 
    418 Department: {DEPARTMENT}<br /> 
    419 Priority: {PRIORITY}<br /> 
    420 <br /> 
    421 ---------------------------<br /> 
    422 <br /> 
    423 You can view your ticket using this link: <a href='{TICKET_LINK}'>{TICKET_LINK}</a><br /> 
    424 <br /> 
    425 If there is anything we can do to be of assistance, please let us know. 
    426 EOF; 
    427  
    428 $lang['ticket_move_sub'] = "Ticket ID #{TICKET_ID} Moved"; 
    429  
    430 $lang['ticket_move'] = <<<EOF 
    431 One of your tickets has been moved to a new department.  Below are the ticket details. 
    432  
    433 --------------------------- 
    434  
    435 Ticket ID: {TICKET_ID} 
    436 Subject: {SUBJECT} 
    437 Old Department: {OLD_DEPARTMENT} 
    438 New Department: {NEW_DEPARTMENT} 
    439 Priority: {PRIORITY} 
    440  
    441 --------------------------- 
    442  
    443 You can view your ticket using this link: {TICKET_LINK} 
    444  
    445 If there is anything we can do to be of assistance, please let us know. 
    446 EOF; 
    447  
    448 $lang['ticket_move_html'] = <<<EOF 
    449 One of your tickets has been moved to a new department.  Below are the ticket details.<br /> 
    450 <br /> 
    451 ---------------------------<br /> 
    452 <br /> 
    453 Ticket ID: {TICKET_ID}<br /> 
    454 Subject: {SUBJECT}<br /> 
    455 Old Department: {OLD_DEPARTMENT}<br /> 
    456 New Department: {NEW_DEPARTMENT}<br /> 
    457 Priority: {PRIORITY}<br /> 
    458 <br /> 
    459 ---------------------------<br /> 
    460 <br /> 
    461 You can view your ticket using this link: <a href='{TICKET_LINK}'>{TICKET_LINK}</a><br /> 
    462 <br /> 
    463 If there is anything we can do to be of assistance, please let us know. 
    464 EOF; 
    465  
    466 $lang['ticket_reply_sub'] = "Ticket ID #{TICKET_ID} Reply"; 
    467  
    468 $lang['ticket_reply'] = <<<EOF 
    469 A reply has been made to your ticket.  Below are the ticket details. 
    470  
    471 --------------------------- 
    472  
    473 {REPLY} 
    474  
    475 --------------------------- 
    476  
    477 Ticket ID: {TICKET_ID} 
    478 Subject: {SUBJECT} 
    479 Department: {DEPARTMENT} 
    480 Priority: {PRIORITY} 
    481  
    482 --------------------------- 
    483  
    484 You can view your ticket using this link: {TICKET_LINK} 
    485  
    486 If there is anything we can do to be of assistance, please let us know. 
    487 EOF; 
    488  
    489 $lang['ticket_reply_html'] = <<<EOF 
    490 A reply has been made to your ticket.  Below are the ticket details.<br /> 
    491 <br /> 
    492 ---------------------------<br /> 
    493 <br /> 
    494 {REPLY}<br /> 
    495 <br /> 
    496 ---------------------------<br /> 
    497 <br /> 
    498 Ticket ID: {TICKET_ID}<br /> 
    499 Subject: {SUBJECT}<br /> 
    500 Department: {DEPARTMENT}<br /> 
    501 Priority: {PRIORITY}<br /> 
    502 <br /> 
    503 ---------------------------<br /> 
    504 <br /> 
    505 You can view your ticket using this link: <a href='{TICKET_LINK}'>{TICKET_LINK}</a><br /> 
    506 <br /> 
    507 If there is anything we can do to be of assistance, please let us know. 
    508 EOF; 
    509  
    510 $lang['staff_reply_ticket_sub'] = "Ticket ID #{TICKET_ID} Reply"; 
    511  
    512 $lang['staff_reply_ticket'] = <<<EOF 
    513 A reply has been made to a ticket in your department.  Below are the ticket details. 
    514  
    515 --------------------------- 
    516  
    517 {REPLY} 
    518  
    519 --------------------------- 
    520  
    521 Ticket ID: {TICKET_ID} 
    522 User: {MEMBER} 
    523 Subject: {SUBJECT} 
    524 Department: {DEPARTMENT} 
    525 Priority: {PRIORITY} 
    526  
    527 --------------------------- 
    528  
    529 You can manage this ticket using this link: {TICKET_LINK} 
    530 EOF; 
    531  
    532 $lang['staff_reply_ticket_html'] = <<<EOF 
    533 A reply has been made to a ticket in your department.  Below are the ticket details.<br /> 
    534 <br /> 
    535 ---------------------------<br /> 
    536 <br /> 
    537 {REPLY}<br /> 
    538 <br /> 
    539 ---------------------------<br /> 
    540 <br /> 
    541 Ticket ID: {TICKET_ID}<br /> 
    542 User: {MEMBER}<br /> 
    543 Subject: {SUBJECT}<br /> 
    544 Department: {DEPARTMENT}<br /> 
    545 Priority: {PRIORITY}<br /> 
    546 <br /> 
    547 ---------------------------<br /> 
    548 <br /> 
    549 You can manage this ticket using this link: <a href='{TICKET_LINK}'>{TICKET_LINK}</a> 
    550 EOF; 
    551  
    552 $lang['announcement_sub'] = "{TITLE}"; 
    553  
    554 $lang['announcement'] = <<<EOF 
    555 A new announcement has been made titled '{TITLE}'. 
     523Your ticket has been closed.&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;Ticket  ID: {TICKET_ID}&lt;br /&gt;Subject: {SUBJECT}&lt;br /&gt;Department: {DEPARTMENT}&lt;br /&gt;Priority:  {PRIORITY}&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;You can view your  ticket using this link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If there is anything else we can do, please submit a new ticket. 
     524EOF; 
     525 
     526$lang['ticket_close_staff_sub'] = "Ticket ID #{TICKET_ID} Closed"; 
     527 
     528$lang['ticket_close_staff'] = <<<EOF 
     529A ticket has been closed. 
     530 
     531--------------------------- 
     532 
     533Ticket ID: {TICKET_ID} 
     534Subject: {SUBJECT} 
     535User: {UNAME} 
     536Department: {DEPARTMENT} 
     537Priority: {PRIORITY} 
     538 
     539--------------------------- 
     540 
     541You can manage this ticket using this link: {LINK} 
     542EOF; 
     543 
     544$lang['ticket_close_staff_html'] = <<<EOF 
     545A ticket has been closed.&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; Ticket  ID: {TICKET_ID}&lt;br /&gt; Subject: {SUBJECT}&lt;br /&gt; User: {UNAME}&lt;br /&gt; Department: {DEPARTMENT}&lt;br /&gt; Priority:  {PRIORITY}&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; You can manage this  ticket using   this link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt; 
     546EOF; 
     547 
     548$lang['ticket_reopen_sub'] = "Ticket ID #{TICKET_ID} Reopened"; 
     549 
     550$lang['ticket_reopen'] = <<<EOF 
     551Your ticket has been reopened.  Our staff will review your ticket shortly and reply accordingly. 
     552 
     553--------------------------- 
     554 
     555Ticket ID: {TICKET_ID} 
     556Subject: {SUBJECT} 
     557Department: {DEPARTMENT} 
     558Priority: {PRIORITY} 
     559 
     560--------------------------- 
     561 
     562You can view your ticket using this link: {LINK} 
     563EOF; 
     564 
     565$lang['ticket_reopen_html'] = <<<EOF 
     566Your ticket has been reopened.&amp;nbsp; Our staff will review your ticket shortly and reply accordingly.&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;Ticket  ID: {TICKET_ID}&lt;br /&gt;Subject: {SUBJECT}&lt;br /&gt;Department: {DEPARTMENT}&lt;br /&gt;Priority:  {PRIORITY}&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;You can view your  ticket using this link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt; 
     567EOF; 
     568 
     569$lang['ticket_reopen_staff_sub'] = "Ticket ID #{TICKET_ID} Reopened"; 
     570 
     571$lang['ticket_reopen_staff'] = <<<EOF 
     572A ticket has been reopened. 
     573 
     574--------------------------- 
     575 
     576Ticket ID: {TICKET_ID} 
     577Subject: {SUBJECT} 
     578Department: {DEPARTMENT} 
     579Priority: {PRIORITY} 
     580 
     581--------------------------- 
     582 
     583{MESSAGE} 
     584 
     585--------------------------- 
     586 
     587You can manage this ticket using this link: {LINK} 
     588EOF; 
     589 
     590$lang['ticket_reopen_staff_html'] = <<<EOF 
     591A ticket has been reopened.&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; Ticket ID: {TICKET_ID}&lt;br /&gt; Subject:  {SUBJECT}&lt;br /&gt; Department: {DEPARTMENT}&lt;br /&gt; Priority: {PRIORITY}&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt;&lt;br /&gt;{MESSAGE}&lt;br /&gt; &lt;br /&gt; ---------------------------&lt;br /&gt; &lt;br /&gt; You can manage this ticket using this  link: &lt;a href=&quot;{LINK}&quot;&gt;{LINK}&lt;/a&gt; 
     592EOF; 
     593 
     594$lang['ticket_new_rejected_sub'] = "New Ticket Failed"; 
     595 
     596$lang['ticket_new_rejected'] = <<<EOF 
     597We were unable to accept your email and create a ticket because you do not have permission to create tickets in this department. 
     598 
     599If you feel this message is an error, please contact an administrator. 
     600EOF; 
     601 
     602$lang['ticket_new_rejected_html'] = <<<EOF 
     603We were unable to accept your email and create a ticket because you do not have permission to create tickets in this department.&lt;br /&gt;&lt;br /&gt;If you feel this message is an error, please contact an administrator. 
     604EOF; 
     605 
     606$lang['ticket_reply_rejected_sub'] = "Reply Failed"; 
     607 
     608$lang['ticket_reply_rejected'] = <<<EOF 
     609We were unable to accept your email and create a reply because you do not have permission to reply to this ticket. 
     610 
     611If you feel this message is an error, please contact an administrator. 
     612EOF; 
     613 
     614$lang['ticket_reply_rejected_html'] = <<<EOF 
     615We were unable to accept your email and create a reply because you do  not have permission to reply to this ticket.&lt;br /&gt; &lt;br /&gt; If you feel this message is an error, please contact an administrator. 
     616EOF; 
     617 
     618$lang['news_sub'] = "News: {TITLE}"; 
     619 
     620$lang['news'] = <<<EOF 
     621News Item: {TITLE} 
    556622 
    557623--------------------------- 
     
    561627--------------------------- 
    562628 
    563 You have received this email because you selected to receive email notifications for new announcements in your profile.  If you would like to discontinue these emails, login and update your account preferences. 
    564 EOF; 
    565  
    566 $lang['announcement_html'] = <<<EOF 
    567 A new announcement has been made titled '{TITLE}'.<br /> 
    568 <br /> 
    569 ---------------------------<br /> 
    570 <br /> 
    571 {CONTENT}<br /> 
    572 <br /> 
    573 ---------------------------<br /> 
    574 <br /> 
    575 You have received this email because you selected to receive email notifications for new announcements in your profile.  If you would like to discontinue these emails, login and update your account preferences. 
    576 EOF; 
    577  
    578 $lang['ticket_pipe_rejected_sub'] = "Ticket Not Accepted"; 
    579  
    580 $lang['ticket_pipe_rejected'] = <<<EOF 
    581 We were unable to accept your email and create a ticket because you do not have permission to create tickets in this department. 
    582  
    583 If you feel this message is an error, please contact an administrator. 
    584 EOF; 
    585  
    586 $lang['ticket_pipe_rejected_html'] = <<<EOF 
    587 We were unable to accept your email and create a ticket because you do not have permission to create tickets in this department.<br /> 
    588 <br /> 
    589 If you feel this message is an error, please contact an administrator. 
     629You have received this email because you selected to receive email notifications for news items in your profile.  If you would like to discontinue these emails, log in and update your preferences. 
     630EOF; 
     631 
     632$lang['news_html'] = <<<EOF 
     633News Item: {TITLE}&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;{CONTENT}&lt;br /&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;You have received this email because you selected to receive email notifications for news items in your profile.&amp;nbsp; If you would like to discontinue these emails, log in and update your preferences. 
    590634EOF; 
    591635 
     
    597641 
    598642$lang['test_html'] = <<<EOF 
    599 This is a <strong>test</strong> message from Trellis Desk.  If you have received this message, it is likely that your outgoing emails from Trellis Desk are working. 
     643This is a &lt;strong&gt;test&lt;/strong&gt; message from Trellis Desk.  If you have received this message, it is likely that your outgoing emails from Trellis Desk are working. 
    600644EOF; 
    601645 
Note: See TracChangeset for help on using the changeset viewer.