Changeset 51
- Timestamp:
- 02/13/2010 07:02:20 AM (3 years ago)
- Location:
- trunk/Upload
- Files:
-
- 2 added
- 11 edited
-
admin/admin/ad_settings.php (modified) (14 diffs)
-
admin/look/ad_emails.php (modified) (8 diffs)
-
admin/manage/ad_users.php (modified) (7 diffs)
-
images/tiburon/icon_mail_pencil.png (added)
-
images/tiburon/icon_tag.png (added)
-
includes/classes/class_asession.php (modified) (1 diff)
-
includes/classes/class_email.php (modified) (9 diffs)
-
includes/functions/func_emails.php (modified) (2 diffs)
-
includes/functions/func_users.php (modified) (2 diffs)
-
language/en/ad_lang_emails.php (modified) (2 diffs)
-
language/en/ad_lang_settings.php (modified) (1 diff)
-
language/en/ad_lang_users.php (modified) (1 diff)
-
language/en/lang_email_content.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Upload/admin/admin/ad_settings.php
r48 r51 21 21 22 22 class ad_settings { 23 23 24 24 private $output = ""; 25 25 … … 33 33 34 34 $this->trellis->load_lang('settings'); 35 35 36 36 $this->trellis->skin->set_active_link( 1 ); 37 37 … … 61 61 # Do Output 62 62 #============================= 63 63 64 64 if ( $alert ) 65 65 { … … 70 70 { 71 71 $this->output .= $this->trellis->skin->tinymce_js( 'signature' ); 72 72 73 73 $sig_html = 1; 74 74 } … … 77 77 $sig_html = 0; 78 78 } 79 79 80 80 $this->trellis->load_functions('drop_downs'); 81 81 82 82 $this->output .= "<div id='ticketroll'> 83 83 ". $this->trellis->skin->start_form( "<! HD_URL !>/admin.php?section=admin&page=settings&act=doedit", 'edit_settings', 'post' ) ." … … 88 88 ". $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' ) ." 89 89 ". $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' ) ." 91 91 ". $this->trellis->skin->group_table_sub( '{lang.ticket_column_layout}' ); 92 92 93 93 $columns = unserialize( $this->trellis->user['columns_tm'] ); 94 94 95 95 $lang_columns = array( 96 96 'id' => '{lang.id}', … … 108 108 'status' => '{lang.status}', 109 109 ); 110 110 111 111 foreach( $this->trellis->cache->data['dfields'] as $cf ) 112 112 { 113 113 if ( $cf['type'] != 'checkbox' ) $lang_columns[ 'cfd'. $cf['id'] ] = $cf['name']; 114 114 } 115 115 116 116 foreach( $this->trellis->cache->data['pfields'] as $cf ) 117 117 { 118 118 if ( $cf['type'] != 'checkbox' ) $lang_columns[ 'cfp'. $cf['id'] ] = $cf['name']; 119 119 } 120 120 121 121 $columns_current = ''; 122 122 $columns_available = ''; 123 123 $cc_empty = ''; 124 124 $ca_empty = ''; 125 125 126 126 if ( empty( $columns ) ) 127 127 { … … 133 133 { 134 134 ( $this->trellis->user['sort_tm'] == $key ) ? $stm_radio = " checked='yes'" : $stm_radio = ""; 135 135 136 136 $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 138 138 unset( $lang_columns[ $key ] ); 139 139 } 140 140 } 141 141 142 142 if ( empty( $lang_columns ) ) 143 143 { … … 151 151 } 152 152 } 153 153 154 154 $column_layout .= "<div style='width:49%;float:left'> 155 155 <fieldset> … … 166 166 </fieldset> 167 167 </div>"; 168 168 169 169 $this->output .= $this->trellis->skin->group_table_full_row( $column_layout ) ." 170 170 ". $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' ) ." 171 171 ". $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' ) ." 176 182 ". $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' ) ." 177 183 ". $this->trellis->skin->group_table_sub( '{lang.email_preferences}' ) ." … … 183 189 ". $this->trellis->skin->end_form( $this->trellis->skin->submit_button( 'edit', '{lang.button_edit_settings}' ) ) ." 184 190 </div>"; 185 191 186 192 $this->trellis->skin->end_group( 'a' ); 187 193 188 194 $this->output .= "<script type='text/javascript'> 189 195 $('#columns_current, #columns_available').sortable({ … … 193 199 $('#cc_serialized').val( $('#columns_current').sortable('serialize') ); 194 200 </script>"; 195 201 196 202 $this->trellis->skin->add_sidebar_general( '{lang.hey_you_title}', '{lang.hey_you_msg}' ); 197 203 … … 230 236 231 237 $this->trellis->db->execute(); 232 238 233 239 $db_array_old = $db_array; 234 240 235 241 $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'], 245 257 ); 246 258 247 259 parse_str( str_replace( '&', '&', $this->trellis->input['cc_serialized'] ), $order ); 248 260 249 261 if ( ! empty( $order['c'] ) ) 250 262 { 251 263 $columns = array(); 252 264 253 265 foreach( $order['c'] as $column ) 254 266 { 255 267 $columns[ $column ] = $this->trellis->input[ 'cw_'. $column ]; 256 268 } 257 269 258 270 $db_array['columns_tm'] = serialize( $columns ); 259 271 } … … 269 281 270 282 $this->trellis->log( 'admin', "ACP Settings Updated '". $this->trellis->user['name'] ."'", 1, $this->trellis->user['id'] ); 271 283 272 284 $this->trellis->user = array_merge( $this->trellis->user, $db_array ); 273 285 $this->trellis->user = array_merge( $this->trellis->user, $db_array_old ); 274 286 275 287 #============================= 276 288 # Do Output -
trunk/Upload/admin/look/ad_emails.php
r50 r51 127 127 { 128 128 $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&page=emails&act=edit&lang={$this->trellis->input['lang']}'&key={$key}&type=text'>{lang.edit_plaintext}</a></td> 132 <td class='bluecellthin-light' align='center'><a href='<! HD_URL !>/admin.php?section=look&page=emails&act=edit&lang={$this->trellis->input['lang']}'&key={$key}&type=html'>{lang.edit_html}</a></td> 129 <td class='bluecellthin-light'><a href='<! HD_URL !>/admin.php?section=look&page=emails&act=edit&lang={$this->trellis->input['lang']}&key={$key}'><strong>{lang.email_{$key}}</strong></a></td> 130 <td class='bluecellthin-dark'><a href='<! HD_URL !>/admin.php?section=look&page=emails&act=edit&lang={$this->trellis->input['lang']}&key={$key}'>{lang.email_{$key}_desc}</a></td> 131 <td class='bluecellthin-light' align='center'><a href='<! HD_URL !>/admin.php?section=look&page=emails&act=edit&lang={$this->trellis->input['lang']}&key={$key}'><img src='<! IMG_DIR !>/button_edit.gif' alt='{lang.edit}' /></a></td> 133 132 </tr>"; 134 133 } … … 151 150 ". $this->trellis->skin->start_group_table( '{lang.emails_list}' ) ." 152 151 <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> 157 155 </tr> 158 156 ". $email_rows ." … … 175 173 176 174 #======================================= 177 # @ Edit ReplyTemplate178 #======================================= 179 180 private function edit_ rtemplate($error='')175 # @ Edit Email Template 176 #======================================= 177 178 private function edit_email($error='') 181 179 { 182 180 $this->trellis->load_functions('emails'); … … 186 184 #============================= 187 185 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'; 199 199 200 200 if ( $error ) … … 207 207 208 208 $this->output .= "<div id='ticketroll'> 209 ". $this->trellis->skin->start_form( "<! HD_URL !>/admin.php?section=manage&page=rtemplates&act=doedit&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&page=emails&act=doedit&lang={$this->trellis->input['lang']}&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' ) ." 213 222 ". $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}' ) ) ." 219 224 </div>"; 220 225 221 226 $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}' ) ) ), 223 228 ); 224 229 … … 226 231 227 232 $menu_items = array( 228 array( 'arrow_back', '{lang.menu_back}', '<! HD_URL !>/admin.php?section=manage&page=rtemplates' ), 229 array( 'circle_plus', '{lang.menu_add}', '<! HD_URL !>/admin.php?section=manage&page=rtemplates&act=add' ), 230 array( 'settings', '{lang.menu_settings}', '<! HD_URL !>/admin.php?section=tools&page=settings&act=edit&group=ticket' ), 233 array( 'arrow_back', '{lang.menu_back}', '<! HD_URL !>/admin.php?section=look&page=email' ), 234 array( 'tag', '{lang.menu_template_tags}', '#' ), 235 array( 'mails_arrow', '{lang.menu_mass_email}', '<! HD_URL !>/admin.php?section=tools&page=email&act=mass' ), 236 array( 'settings', '{lang.menu_settings}', '<! HD_URL !>/admin.php?section=tools&page=settings&act=edit&group=email' ), 231 237 ); 232 238 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 ); 234 240 $this->trellis->skin->add_sidebar_help( '{lang.random_title}', '{lang.random_text}' ); 235 241 … … 240 246 241 247 #======================================= 242 # @ Do Edit ReplyTemplate248 # @ Do Edit Email Template 243 249 #======================================= 244 250 245 251 private function do_edit() 246 252 { 253 $this->trellis->load_functions('emails'); 254 247 255 #============================= 248 256 # Security Checks 249 257 #============================= 250 258 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'); 254 264 255 265 #============================= … … 257 267 #============================= 258 268 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 '". $this->trellis->input['name'] ."'", 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 '". $this->trellis->input['lang'] ."'", 1, $this->trellis->input['lang'] ); 272 273 #============================= 274 # Do Output 275 #============================= 276 277 $this->list_emails( array( 'alert' => 'email_updated' ) ); 283 278 } 284 279 -
trunk/Upload/admin/manage/ad_users.php
r50 r51 311 311 ". $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' ) ." 312 312 ". $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' ); 314 314 315 315 if ( $cfields = $this->trellis->func->cpfields->grab( 0, 1 ) ) … … 352 352 353 353 $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' ) ." 358 358 ". $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' ) ." 363 369 ". $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' ) ." 364 370 ". $this->trellis->skin->group_table_sub( '{lang.email_preferences}' ) ." … … 445 451 if ( $staff ) 446 452 { 447 $us = $this->trellis->func->users->get_single_by_id_staff( array( 'email_staff_enable', 'email_staff_ticket', 'email_staff_reply', 'email_staff_assign', 'e sn_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'] ); 448 454 449 455 if ( is_array( $us ) ) $u = array_merge( $us, $u ); … … 498 504 ". $this->trellis->skin->group_table_row( '{lang.language}', "<select name='lang' id='lang'>". $this->trellis->func->drop_downs->lang_drop( $lang ) ."</select>", 'a' ) ." 499 505 ". $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' ); 501 507 502 508 if ( $cfields = $this->trellis->func->cpfields->grab( 0, 1 ) ) … … 541 547 542 548 $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' ) ." 547 553 ". $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' ) ." 552 564 ". $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' ) ." 553 565 ". $this->trellis->skin->group_table_sub( '{lang.email_preferences}' ) ." … … 760 772 761 773 $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'], 790 808 ); 791 809 … … 895 913 896 914 $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'], 909 927 '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'], 919 943 ); 920 944 -
trunk/Upload/includes/classes/class_asession.php
r37 r51 60 60 'select' => array( 's' => 'all', 61 61 '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', 'e sn_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' ), 63 63 'g' => 'all', 64 64 ), -
trunk/Upload/includes/classes/class_email.php
r50 r51 258 258 if ( is_numeric( $params['to'] ) ) 259 259 { 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'] ); 261 261 } 262 262 else 263 263 { 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'] ); 265 265 } 266 266 … … 280 280 281 281 #======================================= 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' ); 302 317 } 303 318 … … 317 332 #============================= 318 333 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 328 334 $lookup_ids = array(); 329 335 … … 341 347 if ( count( $lookup_ids ) == 1 ) 342 348 { 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 ); 344 350 345 351 $users[ $u['id'] ] = $u; … … 347 353 else 348 354 { 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 ); 350 356 } 351 357 } … … 358 364 { 359 365 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']; 361 367 362 368 if ( ! $data['lang'] || ! $this->trellis->cache->data['langs'][ $data['lang'] ] ) $data['lang'] = $this->trellis->cache->data['misc']['default_lang']; 363 369 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 374 380 375 381 if ( ! $data['name'] && $data['id'] ) $this->to_send[ $id ]['name'] = $users[ $data['id'] ]['name']; 376 382 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; 381 400 } 382 401 … … 407 426 } 408 427 409 if ( $this->to_send[ $id ][' type'] == 'html' && ! $lang[ $msg .'_html' ] )428 if ( $this->to_send[ $id ]['format'] == 'html' && ! $lang[ $msg .'_html' ] ) 410 429 { 411 430 trigger_error( "Email - Language message missing: ". $msg .'_html', E_USER_NOTICE ); … … 414 433 } 415 434 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'] .'<br /> <br />'. $lang[ $msg .'_html' ] .'<br /> <br />'. $lang['footer_html'], array( 'html' => 1, 'entity' => 1 ) ); 418 437 419 438 $this->create_message( $id ); … … 427 446 $this->add_to( $this->to_send[ $id ]['email'], $this->to_send[ $id ]['name'] ); 428 447 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' ) 430 449 { 431 450 $this->set_body( $message_html, 'text/html' ); -
trunk/Upload/includes/functions/func_emails.php
r50 r51 30 30 public function &get($language) 31 31 { 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'; 35 33 36 34 return $lang; … … 41 39 #======================================= 42 40 43 public function get_single($ select, $where='')41 public function get_single($language, $key) 44 42 { 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'; 51 44 52 $this->trellis->db->execute();45 if ( ! isset( $lang[ $key ] ) ) return false; 53 46 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 } 55 49 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; 57 91 } 58 92 -
trunk/Upload/includes/functions/func_users.php
r50 r51 267 267 'email_staff_reply' => 'int', 268 268 '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', 269 275 'esn_unassigned' => 'int', 270 276 'esn_assigned' => 'int', … … 373 379 'email_staff_reply' => 'int', 374 380 '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', 375 387 'esn_unassigned' => 'int', 376 388 'esn_assigned' => 'int', -
trunk/Upload/language/en/ad_lang_emails.php
r50 r51 17 17 'menu_back' => '<strong>Back</strong> to languages list', 18 18 '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.', 20 24 'menu_email_options' => 'Email Options', 25 'menu_template_tags' => 'Template Tags', 21 26 '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', 24 29 25 30 'email_header' => 'Header', … … 49 54 'email_ticket_move_to_staff' => 'Ticket Move To (Staff)', 50 55 '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)', 55 60 'email_ticket_new_rejected' => 'Ticket Rejected', 56 61 'email_ticket_reply_rejected' => 'Reply Rejected', -
trunk/Upload/language/en/ad_lang_settings.php
r50 r51 18 18 '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!', 19 19 'email_notifications' => 'Email Notifications', 20 'email_ticket' => ' NewTicket Notifications',21 'email_reply' => ' NewReply Notifications',20 'email_ticket' => 'Ticket Notifications', 21 'email_reply' => 'Reply Notifications', 22 22 'email_assign' => 'Assign Notifications', 23 23 'email_escalate' => 'Escalate Notifications', -
trunk/Upload/language/en/ad_lang_users.php
r50 r51 57 57 'skin' => 'Skin', 58 58 'rich_text_editor' => 'Rich Text Editor', 59 'email_user_ticket' => 'Ticket Notifications', 60 'email_user_action' => 'Action Notifications', 59 61 'email_notifications' => 'Email Notifications', 60 'email_ticket' => ' NewTicket Notifications',61 'email_ action' => 'NewReply Notifications',62 'email_ticket' => 'Ticket Notifications', 63 'email_reply' => 'Reply Notifications', 62 64 'email_news' => 'News Notifications', 63 65 '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', 64 72 'email_type' => 'Email Format', 65 73 'email_preferences' => 'Email Preferences', -
trunk/Upload/language/en/lang_email_content.php
r50 r51 10 10 $lang['header'] = <<<EOF 11 11 Dear {USER_NAME}, 12 13 14 12 EOF; 15 13 16 14 $lang['header_html'] = <<<EOF 17 Dear {USER_NAME},<br /> 18 <br /> 19 15 Dear {USER_NAME}, 20 16 EOF; 21 17 22 18 $lang['footer'] = <<<EOF 23 24 25 19 Regards, 26 20 27 21 The {HD_NAME} team. 28 29 22 {HD_URL} 30 23 EOF; 31 24 32 25 $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"; 26 Regards,<br /><br />The {HD_NAME} team.<br /><a href="{HD_URL}">{HD_URL} 27 EOF; 28 29 $lang['user_new_val_email_sub'] = "Verify Your Email"; 43 30 44 31 $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 --------------------------- 32 Welcome 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 36 Verification Link: {LINK} 37 38 --------------------------- 39 40 Once you have verified this email address, you will be able to log in. 52 41 EOF; 53 42 54 43 $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"; 44 Welcome to {HD_NAME}.&nbsp; You have created a new user account at our help desk system.&nbsp; In order to activate your account, you must verify this email address by clicking the verification link below.<br /><br />---------------------------<br /><br />Verification Link: <a href="{LINK}">{LINK}</a><br /><br />---------------------------<br /><br />Once you have verified this email address, you will be able to log in. 45 EOF; 46 47 $lang['user_new_val_admin_sub'] = "New User Account Pending"; 65 48 66 49 $lang['user_new_val_admin'] = <<<EOF 67 You have requested a newaccount 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.50 Welcome 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. 68 51 EOF; 69 52 70 53 $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"; 54 Welcome to {HD_NAME}.&nbsp; You have created a new user account at our help desk system.&nbsp; Before you can begin using your account, an administrator must manually approve your account.&nbsp; You will receive an email when your account is approved. 55 EOF; 56 57 $lang['user_new_val_admin_staff_sub'] = "New Registration: {USER_NAME}"; 58 59 $lang['user_new_val_admin_staff'] = <<<EOF 60 A new user has registered as is awaiting approval. 61 62 --------------------------- 63 64 User: {UNAME} 65 Email: {UEMAIL} 66 67 --------------------------- 68 69 You can manage users awaiting approval using this link: {LINK} 70 EOF; 71 72 $lang['user_new_val_admin_staff_html'] = <<<EOF 73 A new user has registered as is awaiting approval.<br /><br />---------------------------<br /><br />User: {UNAME}<br />Email: {UEMAIL}<br /><br />---------------------------<br /><br />You can manage users awaiting approval using this link: <a href="{LINK}">{LINK}</a> 74 EOF; 75 76 $lang['user_new_val_both_sub'] = "Verify Your Email"; 75 77 76 78 $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 mustmanually 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.79 Welcome 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 83 Validation Link: {LINK} 84 85 --------------------------- 86 87 You will receive an email when an administrator approves your account. 86 88 EOF; 87 89 88 90 $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"; 91 Welcome to {HD_NAME}.&nbsp; You have created a new user account at our help desk system.&nbsp; In order to activate your account, you must verify this email address by clicking the validation link below.&nbsp; Additionally, an administrator must also manually approve your account.<br /><br />---------------------------<br /><br />Validation Link: <a href="{LINK}">{LINK}</a><br /><br />---------------------------<br /><br />You will receive an email when an administrator approves your account. 92 EOF; 93 94 $lang['user_almost_activated_sub'] = "Account Awaiting Email Verification"; 101 95 102 96 $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.97 Your 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. 104 98 EOF; 105 99 106 100 $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";101 Your user account has been approved by an administrator.&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. 102 EOF; 103 104 $lang['user_almost_approved_sub'] = "Account Awaiting Admin Approval"; 111 105 112 106 $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.107 Your 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. 114 108 EOF; 115 109 116 110 $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"; 111 Your email address has been verified.&nbsp; But before you can begin using your account, an administrator must manually approve your user account.&nbsp; You will receive an email when your account is approved. 112 EOF; 113 114 $lang['acc_activated_sub'] = "Email Verified"; 149 115 150 116 $lang['acc_activated'] = <<<EOF 151 Your account has been successfully activated. You may now login.117 Your email address has been verified and your user account has been activated. You may now log in. 152 118 EOF; 153 119 154 120 $lang['acc_activated_html'] = <<<EOF 155 Your account has been successfully activated. You may now login.121 Your email address has been verified and your user account has been activated.&nbsp; You may now log in. 156 122 EOF; 157 123 … … 159 125 160 126 $lang['acc_approved'] = <<<EOF 161 Your account has been successfullyapproved by an administrator. You may now login.127 Your user account has been approved by an administrator. You may now login. 162 128 EOF; 163 129 164 130 $lang['acc_approved_html'] = <<<EOF 165 Your account has been successfully approved by an administrator.You may now login.131 Your user account has been approved by an administrator.&nbsp; You may now login. 166 132 EOF; 167 133 … … 169 135 170 136 $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}137 You 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 141 Verification Link: {LINK} 176 142 177 143 --------------------------- … … 179 145 180 146 $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"; 147 You have requested for your email to be changed to this address.&nbsp; In order to update your email, you must verify this address by clicking the verification link below.<br /><br />---------------------------<br /><br />Verification Link: <a href="{LINK}">{LINK}</a><br /><br />--------------------------- 148 EOF; 149 150 $lang['reset_pass_val_sub'] = "Reset Password"; 191 151 192 152 $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} 153 You 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 157 Verification Link: {LINK} 158 159 --------------------------- 198 160 EOF; 199 161 200 162 $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> 163 You have requested to reset your password at {HD_NAME}.&nbsp; To reset your password, click the verification link below.&nbsp; If you did not request to reset your password, please disregard this email.<br /><br />---------------------------<br /><br />Verification Link: <a href="{LINK}">{LINK}</a><br /> <br />--------------------------- 206 164 EOF; 207 165 … … 209 167 210 168 $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.169 You have submitted a new ticket. Our staff will review your ticket shortly and reply accordingly. 212 170 213 171 --------------------------- … … 224 182 225 183 $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> 184 You have submitted a new ticket.&nbsp; Our staff will review your ticket shortly and reply accordingly.<br /><br />---------------------------<br /><br />Ticket ID: {TICKET_ID}<br />Subject: {SUBJECT}<br />Department: {DEPARTMENT}<br />Priority: {PRIORITY}<br /><br />---------------------------<br /><br />You can view your ticket using this link: <a href="{LINK}">{LINK}</a> 238 185 EOF; 239 186 … … 241 188 242 189 $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}190 A new ticket has been created. 191 192 --------------------------- 193 194 Ticket ID: {TICKET_ID} 195 User: {UNAME} 249 196 Subject: {SUBJECT} 250 197 Department: {DEPARTMENT} … … 257 204 --------------------------- 258 205 259 You can manage this ticket using this link: { TICKET_LINK}206 You can manage this ticket using this link: {LINK} 260 207 EOF; 261 208 262 209 $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> 210 A new ticket has been created.<br /><br />---------------------------<br /><br />Ticket ID: {TICKET_ID}<br />User: {UNAME}<br />Subject: {SUBJECT}<br />Department: {DEPARTMENT}<br />Priority: {PRIORITY}<br /><br />---------------------------<br /><br />{MESSAGE}<br /><br />---------------------------<br /><br />You can manage this ticket using this link: <a href="{LINK}">{LINK}</a> 280 211 EOF; 281 212 … … 283 214 284 215 $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}216 You have submitted a new guest ticket. Our staff will review your ticket shortly and reply accordingly. 217 218 --------------------------- 219 220 Ticket ID: {TICKET_ID} 221 Subject: {SUBJECT} 222 Department: {DEPARTMENT} 223 Priority: {PRIORITY} 224 225 Ticket Key: {KEY} 226 227 --------------------------- 228 229 You can view your ticket using this link: {LINK} 299 230 EOF; 300 231 301 232 $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> 233 You have submitted a new guest ticket.&nbsp; Our staff will review your ticket shortly and reply accordingly.<br /><br />---------------------------<br /><br />Ticket ID: {TICKET_ID}<br />Subject: {SUBJECT}<br />Department: {DEPARTMENT}<br />Priority: {PRIORITY}<br /><br />Ticket Key: {KEY}<br /><br />---------------------------<br /><br />You can view your ticket using this link: <a href="{LINK}">{LINK}</a> 316 234 EOF; 317 235 … … 319 237 320 238 $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)239 A new guest ticket has been created. 240 241 --------------------------- 242 243 Ticket ID: {TICKET_ID} 244 User: {UNAME} (Guest) 327 245 Subject: {SUBJECT} 328 246 Department: {DEPARTMENT} … … 335 253 --------------------------- 336 254 337 You can manage this ticket using this link: { TICKET_LINK}255 You can manage this ticket using this link: {LINK} 338 256 EOF; 339 257 340 258 $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> 259 A new guest ticket has been created.<br /><br />---------------------------<br /><br />Ticket ID: {TICKET_ID}<br />User: {UNAME} (Guest)<br />Subject: {SUBJECT}<br />Department: {DEPARTMENT}<br />Priority: {PRIORITY}<br /><br />---------------------------<br /><br />{MESSAGE}<br /><br />---------------------------<br /><br />You can manage this ticket using this link: <a href="{LINK}">{LINK}</a> 260 EOF; 261 262 $lang['ticket_reply_sub'] = "Ticket ID #{TICKET_ID} Reply"; 263 264 $lang['ticket_reply'] = <<<EOF 265 A reply has been made to your ticket. 266 267 --------------------------- 268 269 {REPLY} 270 271 --------------------------- 272 273 Ticket ID: {TICKET_ID} 274 Subject: {SUBJECT} 275 Department: {DEPARTMENT} 276 Priority: {PRIORITY} 277 278 --------------------------- 279 280 You can view your ticket using this link: {LINK} 281 EOF; 282 283 $lang['ticket_reply_html'] = <<<EOF 284 A reply has been made to your ticket.<br /><br />---------------------------<br /><br />{REPLY}<br /><br />---------------------------<br /><br />Ticket ID: {TICKET_ID}<br />Subject: {SUBJECT}<br />Department: {DEPARTMENT}<br />Priority: {PRIORITY}<br /><br />---------------------------<br /><br />You can view your ticket using this link: <a href="{LINK}">{LINK}</a> 285 EOF; 286 287 $lang['ticket_reply_staff_sub'] = "Ticket ID #{TICKET_ID} Reply"; 288 289 $lang['ticket_reply_staff'] = <<<EOF 290 A reply has been made to a ticket. 291 292 --------------------------- 293 294 {REPLY} 295 296 --------------------------- 297 298 Ticket ID: {TICKET_ID} 299 Subject: {SUBJECT} 300 User: {UNAME} 301 Department: {DEPARTMENT} 302 Priority: {PRIORITY} 303 304 --------------------------- 305 306 You can manage this ticket using this link: {LINK} 307 EOF; 308 309 $lang['ticket_reply_staff_html'] = <<<EOF 310 A reply has been made to a ticket.<br /><br />---------------------------<br /><br />{REPLY}<br /><br />---------------------------<br /><br />Ticket ID: {TICKET_ID}<br />Subject: {SUBJECT}<br />User: {UNAME}<br />Department: {DEPARTMENT}<br />Priority: {PRIORITY}<br /><br />---------------------------<br /><br />You can manage this ticket using this link: <a href="{LINK}">{LINK}</a> 311 EOF; 312 313 $lang['ticket_assign_staff_sub'] = "Ticket ID #{TICKET_ID} Assigned"; 314 315 $lang['ticket_assign_staff'] = <<<EOF 316 You have been assigned a ticket. 317 318 --------------------------- 319 320 Ticket ID: {TICKET_ID} 321 Subject: {SUBJECT} 322 User: {UNAME} 323 Department: {DEPARTMENT} 324 Priority: {PRIORITY} 325 326 --------------------------- 327 328 {MESSAGE} 329 330 --------------------------- 331 332 You can manage this ticket using this link: {LINK} 333 EOF; 334 335 $lang['ticket_assign_staff_html'] = <<<EOF 336 You have been assigned a ticket.<br /> <br /> ---------------------------<br /> <br /> Ticket ID: {TICKET_ID}<br /> Subject: {SUBJECT}<br /> User: {UNAME}<br /> Department: {DEPARTMENT}<br /> Priority: {PRIORITY}<br /> <br /> ---------------------------<br /> <br /> {MESSAGE}<br /> <br /> ---------------------------<br /> <br /> You can manage this ticket using this link: <a href="{LINK}">{LINK}</a> 337 EOF; 338 339 $lang['ticket_escalate_sub'] = "Ticket ID #{TICKET_ID} Escalated"; 340 341 $lang['ticket_escalate'] = <<<EOF 342 Your ticket has been escalated. Our managers will be reviewing your ticket shortly. 343 344 --------------------------- 345 346 Ticket ID: {TICKET_ID} 347 Subject: {SUBJECT} 348 Department: {DEPARTMENT} 349 Priority: {PRIORITY} 350 351 --------------------------- 352 353 You can view your ticket using this link: {LINK} 354 EOF; 355 356 $lang['ticket_escalate_html'] = <<<EOF 357 Your ticket has been escalated.&nbsp; Our managers will be reviewing your ticket shortly.<br /><br />---------------------------<br /><br />Ticket ID: {TICKET_ID}<br />Subject: {SUBJECT}<br />Department: {DEPARTMENT}<br />Priority: {PRIORITY}<br /><br />---------------------------<br /><br />You can view your ticket using this link: <a href="{LINK}">{LINK}</a> 358 EOF; 359 360 $lang['ticket_escalate_staff_sub'] = "Ticket ID #{TICKET_ID} Escalated"; 361 362 $lang['ticket_escalate_staff'] = <<<EOF 363 A ticket has been escalated. 364 365 --------------------------- 366 367 Ticket ID: {TICKET_ID} 368 Subject: {SUBJECT} 369 User: {UNAME} 370 Department: {DEPARTMENT} 371 Priority: {PRIORITY} 372 373 --------------------------- 374 375 {MESSAGE} 376 377 --------------------------- 378 379 You can manage this ticket using this link: {LINK} 380 EOF; 381 382 $lang['ticket_escalate_staff_html'] = <<<EOF 383 A ticket has been escalated.<br /> <br /> ---------------------------<br /> <br /> Ticket ID: {TICKET_ID}<br /> Subject: {SUBJECT}<br /> User: {UNAME}<br /> Department: {DEPARTMENT}<br /> Priority: {PRIORITY}<br /> <br /> ---------------------------<br /> <br /> {MESSAGE}<br /> <br /> ---------------------------<br /> <br /> You can manage this ticket using this link: <a href="{LINK}">{LINK}</a> 384 EOF; 385 386 $lang['ticket_hold_sub'] = "Ticket ID #{TICKET_ID} On Hold"; 387 388 $lang['ticket_hold'] = <<<EOF 389 Your ticket has been put on hold. 390 391 --------------------------- 392 393 Ticket ID: {TICKET_ID} 394 Subject: {SUBJECT} 395 Department: {DEPARTMENT} 396 Priority: {PRIORITY} 397 398 --------------------------- 399 400 You can view your ticket using this link: {LINK} 401 EOF; 402 403 $lang['ticket_hold_html'] = <<<EOF 404 Your ticket has been put on hold.<br /><br />---------------------------<br /><br />Ticket ID: {TICKET_ID}<br />Subject: {SUBJECT}<br />Department: {DEPARTMENT}<br />Priority: {PRIORITY}<br /><br />---------------------------<br /><br />You can view your ticket using this link: <a href="{LINK}">{LINK}</a> 405 EOF; 406 407 $lang['ticket_hold_staff_sub'] = "Ticket ID #{TICKET_ID} On Hold"; 408 409 $lang['ticket_hold_staff'] = <<<EOF 410 A ticket has been put on hold. 411 412 --------------------------- 413 414 Ticket ID: {TICKET_ID} 415 Subject: {SUBJECT} 416 User: {UNAME} 417 Department: {DEPARTMENT} 418 Priority: {PRIORITY} 419 420 --------------------------- 421 422 You can manage this ticket using this link: {LINK} 423 EOF; 424 425 $lang['ticket_hold_staff_html'] = <<<EOF 426 A ticket has been put on hold.<br /> <br /> ---------------------------<br /> <br /> Ticket ID: {TICKET_ID}<br /> Subject: {SUBJECT}<br /> User: {UNAME}<br /> Department: {DEPARTMENT}<br /> Priority: {PRIORITY}<br /> <br /> ---------------------------<br /> <br /> You can manage this ticket using this link: <a href="{LINK}">{LINK}</a> 427 EOF; 428 429 $lang['ticket_move_sub'] = "Ticket ID #{TICKET_ID} Moved"; 430 431 $lang['ticket_move'] = <<<EOF 432 Your ticket has been moved to the department: {NEW_DEPART} 433 434 --------------------------- 435 436 Ticket ID: {TICKET_ID} 437 Subject: {SUBJECT} 438 Old Department: {OLD_DEPART} 439 New Department: {NEW_DEPART} 440 Priority: {PRIORITY} 441 442 --------------------------- 443 444 You can view your ticket using this link: {LINK} 445 EOF; 446 447 $lang['ticket_move_html'] = <<<EOF 448 Your ticket has been moved to the department: {NEW_DEPART}<br /> <br /> ---------------------------<br /> <br /> Ticket ID: {TICKET_ID}<br /> Subject: {SUBJECT}<br /> Old Department: {OLD_DEPART}<br />New Department: {NEW_DEPART}<br /> Priority: {PRIORITY}<br /> <br /> ---------------------------<br /> <br /> You can view your ticket using this link: <a href="{LINK}">{LINK}</a> 449 EOF; 450 451 $lang['ticket_move_to_staff_sub'] = "Ticket ID #{TICKET_ID} Moved"; 452 453 $lang['ticket_move_to_staff'] = <<<EOF 454 A ticket has been moved to your department. 455 456 --------------------------- 457 458 Ticket ID: {TICKET_ID} 459 Subject: {SUBJECT} 460 User: {UNAME} 461 Department: {DEPARTMENT} 462 Priority: {PRIORITY} 463 464 --------------------------- 465 466 {MESSAGE} 467 468 --------------------------- 469 470 You can manage this ticket using this link: {LINK} 471 EOF; 472 473 $lang['ticket_move_to_staff_html'] = <<<EOF 474 A ticket has been moved to your department.<br /> <br /> ---------------------------<br /> <br /> Ticket ID: {TICKET_ID}<br /> Subject: {SUBJECT}<br /> User: {UNAME}<br /> Department: {DEPARTMENT}<br /> Priority: {PRIORITY}<br /> <br /> ---------------------------<br /> <br /> {MESSAGE}<br /> <br /> ---------------------------<br /> <br /> You can manage this ticket using this link: <a href="{LINK}">{LINK}</a> 475 EOF; 476 477 $lang['ticket_move_away_staff_sub'] = "Ticket ID #{TICKET_ID} Moved"; 478 479 $lang['ticket_move_away_staff'] = <<<EOF 480 A ticket has been moved from your department. 481 482 --------------------------- 483 484 Ticket ID: {TICKET_ID} 485 Subject: {SUBJECT} 486 User: {UNAME} 487 Department: {DEPARTMENT} 488 Priority: {PRIORITY} 489 490 --------------------------- 491 492 {MESSAGE} 493 494 --------------------------- 495 496 You can manage this ticket using this link: {LINK} 497 EOF; 498 499 $lang['ticket_move_away_staff_html'] = <<<EOF 500 A ticket has been moved from your department.<br /> <br /> ---------------------------<br /> <br /> Ticket ID: {TICKET_ID}<br /> Subject: {SUBJECT}<br /> User: {UNAME}<br /> Department: {DEPARTMENT}<br /> Priority: {PRIORITY}<br /> <br /> ---------------------------<br /> <br /> {MESSAGE}<br /> <br /> ---------------------------<br /> <br /> You can manage this ticket using this link: <a href="{LINK}">{LINK}</a> 390 501 EOF; 391 502 … … 393 504 394 505 $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.506 Your ticket has been closed. 507 508 --------------------------- 509 510 Ticket ID: {TICKET_ID} 511 Subject: {SUBJECT} 512 Department: {DEPARTMENT} 513 Priority: {PRIORITY} 514 515 --------------------------- 516 517 You can view your ticket using this link: {LINK} 518 519 If there is anything else we can do, please submit a new ticket. 409 520 EOF; 410 521 411 522 $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}'. 523 Your ticket has been closed.<br /><br />---------------------------<br /><br />Ticket ID: {TICKET_ID}<br />Subject: {SUBJECT}<br />Department: {DEPARTMENT}<br />Priority: {PRIORITY}<br /><br />---------------------------<br /><br />You can view your ticket using this link: <a href="{LINK}">{LINK}</a><br /><br />If there is anything else we can do, please submit a new ticket. 524 EOF; 525 526 $lang['ticket_close_staff_sub'] = "Ticket ID #{TICKET_ID} Closed"; 527 528 $lang['ticket_close_staff'] = <<<EOF 529 A ticket has been closed. 530 531 --------------------------- 532 533 Ticket ID: {TICKET_ID} 534 Subject: {SUBJECT} 535 User: {UNAME} 536 Department: {DEPARTMENT} 537 Priority: {PRIORITY} 538 539 --------------------------- 540 541 You can manage this ticket using this link: {LINK} 542 EOF; 543 544 $lang['ticket_close_staff_html'] = <<<EOF 545 A ticket has been closed.<br /> <br /> ---------------------------<br /> <br /> Ticket ID: {TICKET_ID}<br /> Subject: {SUBJECT}<br /> User: {UNAME}<br /> Department: {DEPARTMENT}<br /> Priority: {PRIORITY}<br /> <br /> ---------------------------<br /> <br /> You can manage this ticket using this link: <a href="{LINK}">{LINK}</a> 546 EOF; 547 548 $lang['ticket_reopen_sub'] = "Ticket ID #{TICKET_ID} Reopened"; 549 550 $lang['ticket_reopen'] = <<<EOF 551 Your ticket has been reopened. Our staff will review your ticket shortly and reply accordingly. 552 553 --------------------------- 554 555 Ticket ID: {TICKET_ID} 556 Subject: {SUBJECT} 557 Department: {DEPARTMENT} 558 Priority: {PRIORITY} 559 560 --------------------------- 561 562 You can view your ticket using this link: {LINK} 563 EOF; 564 565 $lang['ticket_reopen_html'] = <<<EOF 566 Your ticket has been reopened.&nbsp; Our staff will review your ticket shortly and reply accordingly.<br /><br />---------------------------<br /><br />Ticket ID: {TICKET_ID}<br />Subject: {SUBJECT}<br />Department: {DEPARTMENT}<br />Priority: {PRIORITY}<br /><br />---------------------------<br /><br />You can view your ticket using this link: <a href="{LINK}">{LINK}</a> 567 EOF; 568 569 $lang['ticket_reopen_staff_sub'] = "Ticket ID #{TICKET_ID} Reopened"; 570 571 $lang['ticket_reopen_staff'] = <<<EOF 572 A ticket has been reopened. 573 574 --------------------------- 575 576 Ticket ID: {TICKET_ID} 577 Subject: {SUBJECT} 578 Department: {DEPARTMENT} 579 Priority: {PRIORITY} 580 581 --------------------------- 582 583 {MESSAGE} 584 585 --------------------------- 586 587 You can manage this ticket using this link: {LINK} 588 EOF; 589 590 $lang['ticket_reopen_staff_html'] = <<<EOF 591 A ticket has been reopened.<br /> <br /> ---------------------------<br /> <br /> Ticket ID: {TICKET_ID}<br /> Subject: {SUBJECT}<br /> Department: {DEPARTMENT}<br /> Priority: {PRIORITY}<br /> <br /> ---------------------------<br /><br />{MESSAGE}<br /> <br /> ---------------------------<br /> <br /> You can manage this ticket using this link: <a href="{LINK}">{LINK}</a> 592 EOF; 593 594 $lang['ticket_new_rejected_sub'] = "New Ticket Failed"; 595 596 $lang['ticket_new_rejected'] = <<<EOF 597 We were unable to accept your email and create a ticket because you do not have permission to create tickets in this department. 598 599 If you feel this message is an error, please contact an administrator. 600 EOF; 601 602 $lang['ticket_new_rejected_html'] = <<<EOF 603 We were unable to accept your email and create a ticket because you do not have permission to create tickets in this department.<br /><br />If you feel this message is an error, please contact an administrator. 604 EOF; 605 606 $lang['ticket_reply_rejected_sub'] = "Reply Failed"; 607 608 $lang['ticket_reply_rejected'] = <<<EOF 609 We were unable to accept your email and create a reply because you do not have permission to reply to this ticket. 610 611 If you feel this message is an error, please contact an administrator. 612 EOF; 613 614 $lang['ticket_reply_rejected_html'] = <<<EOF 615 We were unable to accept your email and create a reply because you do not have permission to reply to this ticket.<br /> <br /> If you feel this message is an error, please contact an administrator. 616 EOF; 617 618 $lang['news_sub'] = "News: {TITLE}"; 619 620 $lang['news'] = <<<EOF 621 News Item: {TITLE} 556 622 557 623 --------------------------- … … 561 627 --------------------------- 562 628 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. 629 You 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. 630 EOF; 631 632 $lang['news_html'] = <<<EOF 633 News Item: {TITLE}<br /><br />---------------------------<br /><br />{CONTENT}<br /><br />---------------------------<br /><br />You have received this email because you selected to receive email notifications for news items in your profile.&nbsp; If you would like to discontinue these emails, log in and update your preferences. 590 634 EOF; 591 635 … … 597 641 598 642 $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.643 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. 600 644 EOF; 601 645
Note: See TracChangeset
for help on using the changeset viewer.