@@ -137,14 +137,14 @@ discard block |
||
137 | 137 | if(isset($mbox) && count($mbox)>0){ |
138 | 138 | $mboxTable .= "<tr><td colspan='5'><b>" .count($mbox) ." ". $mod_strings['LBL_MAILBOX_CHECK_WIZ_GOOD']." </b>.</td></tr>"; |
139 | 139 | $mboxTable .= "<tr class='listViewHRS1'><td width='20%'><b>".$mod_strings['LBL_MAILBOX_NAME']."</b></td>" |
140 | - . " <td width='20%'><b>".$mod_strings['LBL_LOGIN']."</b></td>" |
|
141 | - . " <td width='20%'><b>".$mod_strings['LBL_MAILBOX']."</b></td>" |
|
142 | - . " <td width='20%'><b>".$mod_strings['LBL_SERVER_URL']."</b></td>" |
|
143 | - . " <td width='20%'><b>".$mod_strings['LBL_LIST_STATUS']."</b></td></tr>"; |
|
140 | + . " <td width='20%'><b>".$mod_strings['LBL_LOGIN']."</b></td>" |
|
141 | + . " <td width='20%'><b>".$mod_strings['LBL_MAILBOX']."</b></td>" |
|
142 | + . " <td width='20%'><b>".$mod_strings['LBL_SERVER_URL']."</b></td>" |
|
143 | + . " <td width='20%'><b>".$mod_strings['LBL_LIST_STATUS']."</b></td></tr>"; |
|
144 | 144 | $colorclass=' '; |
145 | 145 | foreach($mbox as $details){ |
146 | 146 | |
147 | - if( $colorclass == "class='evenListRowS1'"){ |
|
147 | + if( $colorclass == "class='evenListRowS1'"){ |
|
148 | 148 | $colorclass= "class='oddListRowS1'"; |
149 | 149 | }else{ |
150 | 150 | $colorclass= "class='evenListRowS1'"; |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | /**************************** WIZARD UI DIV Stuff *******************/ |
176 | 176 | |
177 | 177 | // this is the wizard control script that resides in page |
178 | - $divScript = <<<EOQ |
|
178 | + $divScript = <<<EOQ |
|
179 | 179 | <script type="text/javascript" language="javascript"> |
180 | 180 | |
181 | 181 | //this function toggles visibility of fields based on selected options |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | $query = "SELECT description FROM notes WHERE file_mime_type = 'messsage/rfc822' AND parent_type='Emails' AND parent_id = '".$email->id."' AND deleted=0"; |
57 | 57 | $rs = $GLOBALS['db']->query($query); |
58 | 58 | while ($row = $GLOBALS['db']->fetchByAssoc($rs)) |
59 | - $contents .= $row['description']; |
|
59 | + $contents .= $row['description']; |
|
60 | 60 | |
61 | 61 | return $contents; |
62 | 62 | } |
@@ -162,80 +162,80 @@ discard block |
||
162 | 162 | |
163 | 163 | function campaign_process_bounced_emails(&$email, &$email_header) |
164 | 164 | { |
165 | - global $sugar_config; |
|
166 | - $emailFromAddress = $email_header->fromaddress; |
|
167 | - $email_description = $email->raw_source; |
|
165 | + global $sugar_config; |
|
166 | + $emailFromAddress = $email_header->fromaddress; |
|
167 | + $email_description = $email->raw_source; |
|
168 | 168 | |
169 | - //if raw_source is empty, try using the description instead |
|
170 | - if (empty($email_description)){ |
|
171 | - $email_description = $email->description; |
|
172 | - } |
|
169 | + //if raw_source is empty, try using the description instead |
|
170 | + if (empty($email_description)){ |
|
171 | + $email_description = $email->description; |
|
172 | + } |
|
173 | 173 | |
174 | 174 | $email_description .= retrieveErrorReportAttachment($email); |
175 | 175 | |
176 | - if (preg_match('/MAILER-DAEMON|POSTMASTER/i',$emailFromAddress)) |
|
177 | - { |
|
178 | - $email_description=quoted_printable_decode($email_description); |
|
179 | - $matches=array(); |
|
176 | + if (preg_match('/MAILER-DAEMON|POSTMASTER/i',$emailFromAddress)) |
|
177 | + { |
|
178 | + $email_description=quoted_printable_decode($email_description); |
|
179 | + $matches=array(); |
|
180 | 180 | |
181 | - //do we have the identifier tag in the email? |
|
182 | - $identifierScanResults = checkBouncedEmailForIdentifier($email_description); |
|
181 | + //do we have the identifier tag in the email? |
|
182 | + $identifierScanResults = checkBouncedEmailForIdentifier($email_description); |
|
183 | 183 | |
184 | - if ( $identifierScanResults['found'] ) |
|
185 | - { |
|
186 | - $matches = $identifierScanResults['matches']; |
|
187 | - $identifiers = $identifierScanResults['identifiers']; |
|
188 | - |
|
189 | - if (!empty($identifiers)) |
|
190 | - { |
|
191 | - //array should have only one element in it. |
|
192 | - $identifier = trim($identifiers[0]); |
|
193 | - $row = getExistingCampaignLogEntry($identifier); |
|
184 | + if ( $identifierScanResults['found'] ) |
|
185 | + { |
|
186 | + $matches = $identifierScanResults['matches']; |
|
187 | + $identifiers = $identifierScanResults['identifiers']; |
|
188 | + |
|
189 | + if (!empty($identifiers)) |
|
190 | + { |
|
191 | + //array should have only one element in it. |
|
192 | + $identifier = trim($identifiers[0]); |
|
193 | + $row = getExistingCampaignLogEntry($identifier); |
|
194 | 194 | |
195 | - //Found entry |
|
196 | - if (!empty($row)) |
|
197 | - { |
|
198 | - //do not create another campaign_log record is we already have an |
|
199 | - //invalid email or send error entry for this tracker key. |
|
200 | - $query_log = "select * from campaign_log where target_tracker_key='{$row['target_tracker_key']}'"; |
|
201 | - $query_log .=" and (activity_type='invalid email' or activity_type='send error')"; |
|
195 | + //Found entry |
|
196 | + if (!empty($row)) |
|
197 | + { |
|
198 | + //do not create another campaign_log record is we already have an |
|
199 | + //invalid email or send error entry for this tracker key. |
|
200 | + $query_log = "select * from campaign_log where target_tracker_key='{$row['target_tracker_key']}'"; |
|
201 | + $query_log .=" and (activity_type='invalid email' or activity_type='send error')"; |
|
202 | 202 | $targeted = new CampaignLog(); |
203 | - $result_log=$targeted->db->query($query_log); |
|
204 | - $row_log=$targeted->db->fetchByAssoc($result_log); |
|
205 | - |
|
206 | - if (empty($row_log)) |
|
207 | - { |
|
208 | - $return_id = createBouncedCampaignLogEntry($row, $email, $email_description); |
|
209 | - return TRUE; |
|
210 | - } |
|
211 | - else |
|
212 | - { |
|
213 | - $GLOBALS['log']->debug("Warning: campaign log entry already exists for identifier $identifier"); |
|
214 | - return FALSE; |
|
215 | - } |
|
216 | - } |
|
217 | - else |
|
218 | - { |
|
219 | - $GLOBALS['log']->info("Warning: skipping bounced email with this tracker_key(identifier) in the message body: ".$identifier); |
|
220 | - return FALSE; |
|
221 | - } |
|
222 | - } |
|
223 | - else |
|
224 | - { |
|
225 | - $GLOBALS['log']->info("Warning: Empty identifier for campaign log."); |
|
226 | - return FALSE; |
|
227 | - } |
|
228 | - } |
|
229 | - else |
|
230 | - { |
|
231 | - $GLOBALS['log']->info("Warning: skipping bounced email because it does not have the removeme link."); |
|
232 | - return FALSE; |
|
233 | - } |
|
234 | - } |
|
235 | - else |
|
236 | - { |
|
237 | - $GLOBALS['log']->info("Warning: skipping bounced email because the sender is not MAILER-DAEMON."); |
|
238 | - return FALSE; |
|
239 | - } |
|
203 | + $result_log=$targeted->db->query($query_log); |
|
204 | + $row_log=$targeted->db->fetchByAssoc($result_log); |
|
205 | + |
|
206 | + if (empty($row_log)) |
|
207 | + { |
|
208 | + $return_id = createBouncedCampaignLogEntry($row, $email, $email_description); |
|
209 | + return TRUE; |
|
210 | + } |
|
211 | + else |
|
212 | + { |
|
213 | + $GLOBALS['log']->debug("Warning: campaign log entry already exists for identifier $identifier"); |
|
214 | + return FALSE; |
|
215 | + } |
|
216 | + } |
|
217 | + else |
|
218 | + { |
|
219 | + $GLOBALS['log']->info("Warning: skipping bounced email with this tracker_key(identifier) in the message body: ".$identifier); |
|
220 | + return FALSE; |
|
221 | + } |
|
222 | + } |
|
223 | + else |
|
224 | + { |
|
225 | + $GLOBALS['log']->info("Warning: Empty identifier for campaign log."); |
|
226 | + return FALSE; |
|
227 | + } |
|
228 | + } |
|
229 | + else |
|
230 | + { |
|
231 | + $GLOBALS['log']->info("Warning: skipping bounced email because it does not have the removeme link."); |
|
232 | + return FALSE; |
|
233 | + } |
|
234 | + } |
|
235 | + else |
|
236 | + { |
|
237 | + $GLOBALS['log']->info("Warning: skipping bounced email because the sender is not MAILER-DAEMON."); |
|
238 | + return FALSE; |
|
239 | + } |
|
240 | 240 | } |
241 | 241 | ?> |
@@ -62,24 +62,24 @@ |
||
62 | 62 | |
63 | 63 | while (strpos($bodyHTML, "ta_replace") !== false){ |
64 | 64 | |
65 | - //define the marker edges of the sub string to process (opening and closing tag brackets) |
|
66 | - $marker = strpos($bodyHTML, "ta_replace"); |
|
67 | - $start_border = strpos($bodyHTML, "input", $marker) - 1;// to account for opening '<' char; |
|
68 | - $end_border = strpos($bodyHTML, '>', $start_border); //get the closing tag after marker ">"; |
|
65 | + //define the marker edges of the sub string to process (opening and closing tag brackets) |
|
66 | + $marker = strpos($bodyHTML, "ta_replace"); |
|
67 | + $start_border = strpos($bodyHTML, "input", $marker) - 1;// to account for opening '<' char; |
|
68 | + $end_border = strpos($bodyHTML, '>', $start_border); //get the closing tag after marker ">"; |
|
69 | 69 | |
70 | - //extract the input tag string |
|
71 | - $working_str = substr($bodyHTML, $marker-3, $end_border-($marker-3) ); |
|
70 | + //extract the input tag string |
|
71 | + $working_str = substr($bodyHTML, $marker-3, $end_border-($marker-3) ); |
|
72 | 72 | |
73 | - //replace input markup with text areas markups |
|
74 | - $new_str = str_replace('input','textarea',$working_str); |
|
75 | - $new_str = str_replace("type='text'", ' ', $new_str); |
|
76 | - $new_str = $new_str . '> </textarea'; |
|
73 | + //replace input markup with text areas markups |
|
74 | + $new_str = str_replace('input','textarea',$working_str); |
|
75 | + $new_str = str_replace("type='text'", ' ', $new_str); |
|
76 | + $new_str = $new_str . '> </textarea'; |
|
77 | 77 | |
78 | - //replace the marker with generic term |
|
79 | - $new_str = str_replace('ta_replace', 'sugarslot', $new_str); |
|
78 | + //replace the marker with generic term |
|
79 | + $new_str = str_replace('ta_replace', 'sugarslot', $new_str); |
|
80 | 80 | |
81 | - //merge the processed string back into bodyhtml string |
|
82 | - $bodyHTML = str_replace($working_str , $new_str, $bodyHTML); |
|
81 | + //merge the processed string back into bodyhtml string |
|
82 | + $bodyHTML = str_replace($working_str , $new_str, $bodyHTML); |
|
83 | 83 | } |
84 | 84 | //<<<----------end replacing marked text inputs with text area tags |
85 | 85 |
@@ -59,11 +59,11 @@ discard block |
||
59 | 59 | //if (!is_admin($current_user)) sugar_die("Unauthorized access to administration."); |
60 | 60 | //account for use within wizards |
61 | 61 | if(!isset($_REQUEST['inline']) || $_REQUEST['inline'] != 'inline'){ |
62 | - $params = array(); |
|
63 | - $params[] = "<a href='index.php?module=Campaigns&action=index'>{$mod_strings['LBL_MODULE_NAME']}</a>"; |
|
64 | - $params[] = $mod_strings['LBL_CAMPAIGN_DIAGNOSTICS']; |
|
62 | + $params = array(); |
|
63 | + $params[] = "<a href='index.php?module=Campaigns&action=index'>{$mod_strings['LBL_MODULE_NAME']}</a>"; |
|
64 | + $params[] = $mod_strings['LBL_CAMPAIGN_DIAGNOSTICS']; |
|
65 | 65 | |
66 | - echo getClassicModuleTitle('Campaigns', $params, true); |
|
66 | + echo getClassicModuleTitle('Campaigns', $params, true); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | global $theme; |
@@ -110,10 +110,10 @@ discard block |
||
110 | 110 | if(isset($mbox) && count($mbox)>0){ |
111 | 111 | $mboxTable .= "<tr><td colspan='5' style='text-align: left;'><b>" .count($mbox) ." ". $mod_strings['LBL_MAILBOX_CHECK1_GOOD']." </b>.</td></tr>"; |
112 | 112 | $mboxTable .= "<tr><th scope='col' width='20%'><b>".$mod_strings['LBL_MAILBOX_NAME']."</b></th>" |
113 | - . " <th scope='col' width='20%'><b>".$mod_strings['LBL_LOGIN']."</b></th>" |
|
114 | - . " <th scope='col' width='20%'><b>".$mod_strings['LBL_MAILBOX']."</b></th>" |
|
115 | - . " <th scope='col' width='20%'><b>".$mod_strings['LBL_SERVER_URL']."</b></th>" |
|
116 | - . " <th scope='col' width='20%'><b>".$mod_strings['LBL_LIST_STATUS']."</b></th></tr>"; |
|
113 | + . " <th scope='col' width='20%'><b>".$mod_strings['LBL_LOGIN']."</b></th>" |
|
114 | + . " <th scope='col' width='20%'><b>".$mod_strings['LBL_MAILBOX']."</b></th>" |
|
115 | + . " <th scope='col' width='20%'><b>".$mod_strings['LBL_SERVER_URL']."</b></th>" |
|
116 | + . " <th scope='col' width='20%'><b>".$mod_strings['LBL_LIST_STATUS']."</b></th></tr>"; |
|
117 | 117 | |
118 | 118 | foreach($mbox as $details){ |
119 | 119 | $mboxTable .= "<tr><td>".$details['name']."</td>"; |
@@ -144,11 +144,11 @@ discard block |
||
144 | 144 | }else{ |
145 | 145 | $conf_msg .= "<tr><td colspan = '5'><b> ".$mod_strings['LBL_MAILBOX_CHECK2_GOOD']."</b></td></tr>"; |
146 | 146 | $conf_msg .= "<tr><th scope='col' width='20%'><b>".$mod_strings['LBL_WIZ_FROM_NAME']."</b></th>" |
147 | - . " <th scope='col' width='20%'><b>".$mod_strings['LBL_WIZ_FROM_ADDRESS']."</b></th>" |
|
148 | - . " <th scope='col' width='20%'><b>".$mod_strings['LBL_MAIL_SENDTYPE']."</b></th>"; |
|
147 | + . " <th scope='col' width='20%'><b>".$mod_strings['LBL_WIZ_FROM_ADDRESS']."</b></th>" |
|
148 | + . " <th scope='col' width='20%'><b>".$mod_strings['LBL_MAIL_SENDTYPE']."</b></th>"; |
|
149 | 149 | if($focus->settings['mail_sendtype']=='SMTP'){ |
150 | - $conf_msg .= " <th scope='col' width='20%'><b>".$mod_strings['LBL_MAIL_SMTPSERVER']."</b></th>" |
|
151 | - . " <th scope='col' width='20%'><b>".$mod_strings['LBL_MAIL_SMTPUSER']."</b></th></tr>"; |
|
150 | + $conf_msg .= " <th scope='col' width='20%'><b>".$mod_strings['LBL_MAIL_SMTPSERVER']."</b></th>" |
|
151 | + . " <th scope='col' width='20%'><b>".$mod_strings['LBL_MAIL_SMTPUSER']."</b></th></tr>"; |
|
152 | 152 | |
153 | 153 | }else{$conf_msg .= "</tr>";} |
154 | 154 | |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | $conf_msg .= "<tr><td>".$focus->settings['notify_fromname']."</td>"; |
158 | 158 | $conf_msg .= "<td>".$focus->settings['notify_fromaddress']."</td>"; |
159 | 159 | $conf_msg .= "<td>".$focus->settings['mail_sendtype']."</td>"; |
160 | - if($focus->settings['mail_sendtype']=='SMTP'){ |
|
160 | + if($focus->settings['mail_sendtype']=='SMTP'){ |
|
161 | 161 | $conf_msg .= "<td>".$focus->settings['mail_smtpserver']."</td>"; |
162 | 162 | $conf_msg .= "<td>".$focus->settings['mail_smtpuser']."</td></tr>"; |
163 | 163 | |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | //build the table rows for scheduler display |
199 | 199 | while ($sched_row = $focus->db->fetchByAssoc($sched_res)){$scheds[] = $sched_row;} |
200 | 200 | foreach ($scheds as $funct){ |
201 | - if( ($funct['job']==$check_sched1) || ($funct['job']==$check_sched2)){ |
|
201 | + if( ($funct['job']==$check_sched1) || ($funct['job']==$check_sched2)){ |
|
202 | 202 | $sched_mes = 'use'; |
203 | 203 | $sched_mes_body .= "<tr><td style='text-align: left;'>".$funct['name']."</td>"; |
204 | 204 | $sched_mes_body .= "<td style='text-align: left;'>".$funct['status']."</td></tr>"; |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | $check_sched2 ="found"; |
209 | 209 | } |
210 | 210 | |
211 | - } |
|
211 | + } |
|
212 | 212 | } |
213 | 213 | |
214 | 214 | //determine which table header to use, based on whether or not schedulers were found |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | if($sched_mes == 'use'){ |
217 | 217 | $sched_mes = "<h5>".$mod_strings['LBL_SCHEDULER_CHECK_GOOD']."</h5><br><table class='other view' cellspacing='1'>"; |
218 | 218 | $sched_mes .= "<tr><th scope='col' width='40%'><b>".$mod_strings['LBL_SCHEDULER_NAME']."</b></tH>" |
219 | - . " <th scope='col' width='60%'><b>".$mod_strings['LBL_SCHEDULER_STATUS']."</b></tH></tr>"; |
|
219 | + . " <th scope='col' width='60%'><b>".$mod_strings['LBL_SCHEDULER_STATUS']."</b></tH></tr>"; |
|
220 | 220 | |
221 | 221 | }else{ |
222 | 222 | $sched_mes = "<table class='other view' cellspacing='1'>"; |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | if (is_admin($current_user)){ |
239 | 239 | $admin_sched_link="<a href='index.php?module=Schedulers&action=index'>".$mod_strings['LBL_SCHEDULER_LINK']."</a>"; |
240 | 240 | }else{ |
241 | - $admin_sched_link=$mod_strings['LBL_NON_ADMIN_ERROR_MSG']; |
|
241 | + $admin_sched_link=$mod_strings['LBL_NON_ADMIN_ERROR_MSG']; |
|
242 | 242 | } |
243 | 243 | } |
244 | 244 | |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | /********** FINAL END OF PAGE UI Stuff ********/ |
252 | 252 | if(!isset($_REQUEST['inline']) || $_REQUEST['inline'] != 'inline'){ |
253 | 253 | |
254 | - $ss->display('modules/Campaigns/CampaignDiagnostic.html'); |
|
254 | + $ss->display('modules/Campaigns/CampaignDiagnostic.html'); |
|
255 | 255 | } |
256 | 256 | |
257 | 257 | /** |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | }elseif($num == 0){ |
273 | 273 | //if health number is zero, then all checks passed, set green image |
274 | 274 | //green |
275 | - return SugarThemeRegistry::current()->getImage('green_camp', "align='absmiddle'", null, null, ".gif", $mod_strings['LBL_VALID']); |
|
275 | + return SugarThemeRegistry::current()->getImage('green_camp', "align='absmiddle'", null, null, ".gif", $mod_strings['LBL_VALID']); |
|
276 | 276 | |
277 | 277 | |
278 | 278 | }else{ |
@@ -65,8 +65,8 @@ discard block |
||
65 | 65 | } |
66 | 66 | |
67 | 67 | }else{ |
68 | - //default to just saving and exiting wizard |
|
69 | - $master = 'save'; |
|
68 | + //default to just saving and exiting wizard |
|
69 | + $master = 'save'; |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | |
@@ -90,17 +90,17 @@ discard block |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | foreach ($_REQUEST as $key => $val) { |
93 | - if((strstr($key, $prefix )) && (strpos($key, $prefix )== 0)){ |
|
94 | - $newkey =substr($key, strlen($prefix)) ; |
|
95 | - $_REQUEST[$newkey] = $val; |
|
96 | - } |
|
93 | + if((strstr($key, $prefix )) && (strpos($key, $prefix )== 0)){ |
|
94 | + $newkey =substr($key, strlen($prefix)) ; |
|
95 | + $_REQUEST[$newkey] = $val; |
|
96 | + } |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | foreach ($_REQUEST as $key => $val) { |
100 | - if((strstr($key, $prefix )) && (strpos($key, $prefix )== 0)){ |
|
101 | - $newkey =substr($key, strlen($prefix)) ; |
|
102 | - $_REQUEST[$newkey] = $val; |
|
103 | - } |
|
100 | + if((strstr($key, $prefix )) && (strpos($key, $prefix )== 0)){ |
|
101 | + $newkey =substr($key, strlen($prefix)) ; |
|
102 | + $_REQUEST[$newkey] = $val; |
|
103 | + } |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | if(!empty($_REQUEST['meridiem'])){ |
@@ -108,9 +108,9 @@ discard block |
||
108 | 108 | } |
109 | 109 | |
110 | 110 | if(empty($_REQUEST['time_start'])) { |
111 | - $_REQUEST['date_start'] = $_REQUEST['date_start'] . ' 00:00'; |
|
111 | + $_REQUEST['date_start'] = $_REQUEST['date_start'] . ' 00:00'; |
|
112 | 112 | } else { |
113 | - $_REQUEST['date_start'] = $_REQUEST['date_start'] . ' ' . $_REQUEST['time_start']; |
|
113 | + $_REQUEST['date_start'] = $_REQUEST['date_start'] . ' ' . $_REQUEST['time_start']; |
|
114 | 114 | } |
115 | 115 | |
116 | 116 | foreach($marketing->column_fields as $field) |
@@ -180,8 +180,8 @@ discard block |
||
180 | 180 | $_REQUEST['record'] =$marketing->campaign_id; |
181 | 181 | $_POST['record']=$marketing->campaign_id; |
182 | 182 | $_REQUEST['mode'] = $master; |
183 | - $_POST['mode'] = $master; |
|
184 | - $_REQUEST['from_wiz']= 'true'; |
|
183 | + $_POST['mode'] = $master; |
|
184 | + $_REQUEST['from_wiz']= 'true'; |
|
185 | 185 | require_once('modules/Campaigns/QueueCampaign.php'); |
186 | 186 | } |
187 | 187 |
@@ -23,12 +23,12 @@ discard block |
||
23 | 23 | */ |
24 | 24 | |
25 | 25 | $dictionary['AOR_Condition'] = array( |
26 | - 'table'=>'aor_conditions', |
|
27 | - 'audited'=>false, |
|
28 | - 'duplicate_merge'=>true, |
|
29 | - 'fields'=>array ( |
|
30 | - 'aor_report_id' => |
|
31 | - array ( |
|
26 | + 'table'=>'aor_conditions', |
|
27 | + 'audited'=>false, |
|
28 | + 'duplicate_merge'=>true, |
|
29 | + 'fields'=>array ( |
|
30 | + 'aor_report_id' => |
|
31 | + array ( |
|
32 | 32 | 'required' => false, |
33 | 33 | 'name' => 'aor_report_id', |
34 | 34 | 'vname' => 'LBL_AOR_REPORT_ID', |
@@ -45,9 +45,9 @@ discard block |
||
45 | 45 | 'merge_filter' => 'disabled', |
46 | 46 | 'len' => 36, |
47 | 47 | 'size' => '20', |
48 | - ), |
|
49 | - 'condition_order' => |
|
50 | - array ( |
|
48 | + ), |
|
49 | + 'condition_order' => |
|
50 | + array ( |
|
51 | 51 | 'required' => false, |
52 | 52 | 'name' => 'condition_order', |
53 | 53 | 'vname' => 'LBL_ORDER', |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | 'size' => '20', |
67 | 67 | 'enable_range_search' => false, |
68 | 68 | 'disable_num_format' => '', |
69 | - ), |
|
69 | + ), |
|
70 | 70 | 'logic_op' => array( |
71 | 71 | 'name' => 'logic_op', |
72 | 72 | 'vname' => 'LBL_LOGIC_OP', |
@@ -78,15 +78,15 @@ discard block |
||
78 | 78 | 'vname' => 'LBL_PARENTHESIS', |
79 | 79 | 'type' => 'varchar', |
80 | 80 | ), |
81 | - 'module_path' => |
|
82 | - array ( |
|
81 | + 'module_path' => |
|
82 | + array ( |
|
83 | 83 | 'name' => 'module_path', |
84 | 84 | 'type' => 'longtext', |
85 | 85 | 'vname' => 'LBL_MODULE_PATH', |
86 | 86 | 'isnull' => true, |
87 | - ), |
|
88 | - 'field' => |
|
89 | - array ( |
|
87 | + ), |
|
88 | + 'field' => |
|
89 | + array ( |
|
90 | 90 | 'required' => false, |
91 | 91 | 'name' => 'field', |
92 | 92 | 'vname' => 'LBL_FIELD', |
@@ -106,9 +106,9 @@ discard block |
||
106 | 106 | 'options' => 'user_type_dom', |
107 | 107 | 'studio' => 'visible', |
108 | 108 | 'dependency' => false, |
109 | - ), |
|
110 | - 'operator' => |
|
111 | - array ( |
|
109 | + ), |
|
110 | + 'operator' => |
|
111 | + array ( |
|
112 | 112 | 'required' => false, |
113 | 113 | 'name' => 'operator', |
114 | 114 | 'vname' => 'LBL_OPERATOR', |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | 'options' => 'aor_operator_list', |
130 | 130 | 'studio' => 'visible', |
131 | 131 | 'dependency' => false, |
132 | - ), |
|
132 | + ), |
|
133 | 133 | 'value_type' => |
134 | 134 | array ( |
135 | 135 | 'required' => false, |
@@ -149,8 +149,8 @@ discard block |
||
149 | 149 | 'len' => '255', |
150 | 150 | 'size' => '20', |
151 | 151 | ), |
152 | - 'value' => |
|
153 | - array ( |
|
152 | + 'value' => |
|
153 | + array ( |
|
154 | 154 | 'required' => false, |
155 | 155 | 'name' => 'value', |
156 | 156 | 'vname' => 'LBL_VALUE', |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | 'merge_filter' => 'disabled', |
168 | 168 | 'len' => '255', |
169 | 169 | 'size' => '20', |
170 | - ), |
|
170 | + ), |
|
171 | 171 | 'parameter' => |
172 | 172 | array ( |
173 | 173 | 'required' => false, |
@@ -186,17 +186,17 @@ discard block |
||
186 | 186 | 'merge_filter' => 'disabled', |
187 | 187 | 'studio' => 'visible', |
188 | 188 | ), |
189 | - 'aor_reports' => |
|
190 | - array ( |
|
189 | + 'aor_reports' => |
|
190 | + array ( |
|
191 | 191 | 'name' => 'aor_reports', |
192 | 192 | 'type' => 'link', |
193 | 193 | 'relationship' => 'aor_report_aor_conditions', |
194 | 194 | 'module'=>'AOR_Reports', |
195 | 195 | 'bean_name'=>'AOR_Reports', |
196 | 196 | 'source'=>'non-db', |
197 | - ), |
|
197 | + ), |
|
198 | 198 | ), |
199 | - 'relationships'=>array ( |
|
199 | + 'relationships'=>array ( |
|
200 | 200 | ), |
201 | 201 | 'indices' => array( |
202 | 202 | array( |
@@ -205,8 +205,8 @@ discard block |
||
205 | 205 | 'fields' => array('aor_report_id'), |
206 | 206 | ), |
207 | 207 | ), |
208 | - 'optimistic_locking'=>true, |
|
209 | - 'unified_search'=>true, |
|
208 | + 'optimistic_locking'=>true, |
|
209 | + 'unified_search'=>true, |
|
210 | 210 | ); |
211 | 211 | |
212 | 212 | if (!class_exists('VardefManager')){ |
@@ -1,60 +1,60 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Advanced OpenReports, SugarCRM Reporting. |
|
4 | - * @package Advanced OpenReports for SugarCRM |
|
5 | - * @copyright SalesAgility Ltd http://www.salesagility.com |
|
6 | - * |
|
7 | - * This program is free software; you can redistribute it and/or modify |
|
8 | - * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by |
|
9 | - * the Free Software Foundation; either version 3 of the License, or |
|
10 | - * (at your option) any later version. |
|
11 | - * |
|
12 | - * This program is distributed in the hope that it will be useful, |
|
13 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 | - * GNU General Public License for more details. |
|
16 | - * |
|
17 | - * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
18 | - * along with this program; if not, see http://www.gnu.org/licenses |
|
19 | - * or write to the Free Software Foundation,Inc., 51 Franklin Street, |
|
20 | - * Fifth Floor, Boston, MA 02110-1301 USA |
|
21 | - * |
|
22 | - * @author SalesAgility <[email protected]> |
|
23 | - */ |
|
3 | + * Advanced OpenReports, SugarCRM Reporting. |
|
4 | + * @package Advanced OpenReports for SugarCRM |
|
5 | + * @copyright SalesAgility Ltd http://www.salesagility.com |
|
6 | + * |
|
7 | + * This program is free software; you can redistribute it and/or modify |
|
8 | + * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by |
|
9 | + * the Free Software Foundation; either version 3 of the License, or |
|
10 | + * (at your option) any later version. |
|
11 | + * |
|
12 | + * This program is distributed in the hope that it will be useful, |
|
13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 | + * GNU General Public License for more details. |
|
16 | + * |
|
17 | + * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
18 | + * along with this program; if not, see http://www.gnu.org/licenses |
|
19 | + * or write to the Free Software Foundation,Inc., 51 Franklin Street, |
|
20 | + * Fifth Floor, Boston, MA 02110-1301 USA |
|
21 | + * |
|
22 | + * @author SalesAgility <[email protected]> |
|
23 | + */ |
|
24 | 24 | |
25 | 25 | |
26 | 26 | class AOR_Condition extends Basic { |
27 | - var $new_schema = true; |
|
28 | - var $module_dir = 'AOR_Conditions'; |
|
29 | - var $object_name = 'AOR_Condition'; |
|
30 | - var $table_name = 'aor_conditions'; |
|
27 | + var $new_schema = true; |
|
28 | + var $module_dir = 'AOR_Conditions'; |
|
29 | + var $object_name = 'AOR_Condition'; |
|
30 | + var $table_name = 'aor_conditions'; |
|
31 | 31 | var $tracker_visibility = false; |
32 | - var $importable = true; |
|
33 | - var $disable_row_level_security = true ; |
|
32 | + var $importable = true; |
|
33 | + var $disable_row_level_security = true ; |
|
34 | 34 | |
35 | - var $id; |
|
36 | - var $name; |
|
37 | - var $date_entered; |
|
38 | - var $date_modified; |
|
39 | - var $modified_user_id; |
|
40 | - var $modified_by_name; |
|
41 | - var $created_by; |
|
42 | - var $created_by_name; |
|
43 | - var $description; |
|
44 | - var $deleted; |
|
45 | - var $created_by_link; |
|
46 | - var $modified_user_link; |
|
47 | - var $aor_report_id; |
|
48 | - var $condition_order; |
|
49 | - var $field; |
|
35 | + var $id; |
|
36 | + var $name; |
|
37 | + var $date_entered; |
|
38 | + var $date_modified; |
|
39 | + var $modified_user_id; |
|
40 | + var $modified_by_name; |
|
41 | + var $created_by; |
|
42 | + var $created_by_name; |
|
43 | + var $description; |
|
44 | + var $deleted; |
|
45 | + var $created_by_link; |
|
46 | + var $modified_user_link; |
|
47 | + var $aor_report_id; |
|
48 | + var $condition_order; |
|
49 | + var $field; |
|
50 | 50 | var $logic_op; |
51 | 51 | var $parenthesis; |
52 | - var $operator; |
|
53 | - var $value; |
|
52 | + var $operator; |
|
53 | + var $value; |
|
54 | 54 | |
55 | - function AOR_Condition(){ |
|
56 | - parent::Basic(); |
|
57 | - } |
|
55 | + function AOR_Condition(){ |
|
56 | + parent::Basic(); |
|
57 | + } |
|
58 | 58 | |
59 | 59 | function save_lines($post_data, $parent, $key = ''){ |
60 | 60 |
@@ -46,19 +46,19 @@ |
||
46 | 46 | * Contributor(s): ______________________________________.. |
47 | 47 | ********************************************************************************/ |
48 | 48 | $fields_array['EmailTemplate'] = array ('column_fields' => Array("id" |
49 | - , "date_entered" |
|
50 | - , "date_modified" |
|
51 | - , "modified_user_id" |
|
52 | - , "created_by" |
|
53 | - , "description" |
|
54 | - , "subject" |
|
55 | - , "body" |
|
56 | - , "body_html" |
|
57 | - , "name" |
|
58 | - , "published" |
|
59 | - ), |
|
49 | + , "date_entered" |
|
50 | + , "date_modified" |
|
51 | + , "modified_user_id" |
|
52 | + , "created_by" |
|
53 | + , "description" |
|
54 | + , "subject" |
|
55 | + , "body" |
|
56 | + , "body_html" |
|
57 | + , "name" |
|
58 | + , "published" |
|
59 | + ), |
|
60 | 60 | 'list_fields' => Array('id', 'name', 'description','date_modified' |
61 | - ), |
|
61 | + ), |
|
62 | 62 | 'required_fields' => array("name"=>1), |
63 | 63 | ); |
64 | 64 | ?> |
65 | 65 | \ No newline at end of file |
@@ -76,14 +76,14 @@ |
||
76 | 76 | $button = "<form action='index.php' method='post' name='form' id='form'>\n"; |
77 | 77 | if(!$hide_clear_button) |
78 | 78 | { |
79 | - $button .= "<input type='button' name='button' class='button' onclick=\"send_back('','');\" title='" |
|
80 | - .$app_strings['LBL_CLEAR_BUTTON_TITLE']."' value=' " |
|
81 | - .$app_strings['LBL_CLEAR_BUTTON_LABEL']." ' />\n"; |
|
79 | + $button .= "<input type='button' name='button' class='button' onclick=\"send_back('','');\" title='" |
|
80 | + .$app_strings['LBL_CLEAR_BUTTON_TITLE']."' value=' " |
|
81 | + .$app_strings['LBL_CLEAR_BUTTON_LABEL']." ' />\n"; |
|
82 | 82 | } |
83 | 83 | $button .= "<input type='submit' name='button' class='button' onclick=\"window.close();\" title='" |
84 | - .$app_strings['LBL_CANCEL_BUTTON_TITLE']."' accesskey='" |
|
85 | - .$app_strings['LBL_CANCEL_BUTTON_KEY']."' value=' " |
|
86 | - .$app_strings['LBL_CANCEL_BUTTON_LABEL']." ' />\n"; |
|
84 | + .$app_strings['LBL_CANCEL_BUTTON_TITLE']."' accesskey='" |
|
85 | + .$app_strings['LBL_CANCEL_BUTTON_KEY']."' value=' " |
|
86 | + .$app_strings['LBL_CANCEL_BUTTON_LABEL']." ' />\n"; |
|
87 | 87 | $button .= "</form>\n"; |
88 | 88 | |
89 | 89 |