| Conditions | 59 |
| Paths | > 20000 |
| Total Lines | 695 |
| Code Lines | 375 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | <?php |
||
| 26 | function display() { |
||
| 27 | |||
| 28 | // Language Arrays |
||
| 29 | $address_types_billing_or_shipping = array( |
||
| 30 | 'billing' => $GLOBALS['mod_strings']['LBL_BILLING_ADDRESS'], |
||
| 31 | 'shipping' => $GLOBALS['mod_strings']['LBL_SHIPPING_ADDRESS'] |
||
| 32 | ); |
||
| 33 | $address_types_primary_or_alt = array( |
||
| 34 | 'primary' => $GLOBALS['mod_strings']['LBL_PRIMARY_ADDRESS'], |
||
| 35 | 'alt' => $GLOBALS['mod_strings']['LBL_ALTERNATIVE_ADDRESS'] |
||
| 36 | ); |
||
| 37 | $address_types_all = array( |
||
| 38 | 'billing' => $GLOBALS['mod_strings']['LBL_BILLING_ADDRESS'], |
||
| 39 | 'shipping' => $GLOBALS['mod_strings']['LBL_SHIPPING_ADDRESS'], |
||
| 40 | 'primary' => $GLOBALS['mod_strings']['LBL_PRIMARY_ADDRESS'], |
||
| 41 | 'alt' => $GLOBALS['mod_strings']['LBL_ALTERNATIVE_ADDRESS'], |
||
| 42 | 'flex_relate' => $GLOBALS['mod_strings']['LBL_ADDRESS_FLEX_RELATE'], |
||
| 43 | 'address' => $GLOBALS['mod_strings']['LBL_ADDRESS_ADDRESS'], |
||
| 44 | 'custom' => $GLOBALS['mod_strings']['LBL_ADDRESS_CUSTOM'], |
||
| 45 | ); |
||
| 46 | $address_types_flex_relate = array( |
||
| 47 | 'flex_relate' => $GLOBALS['mod_strings']['LBL_FLEX_RELATE'] |
||
| 48 | ); |
||
| 49 | $enabled_disabled = array( |
||
| 50 | '0' => $GLOBALS['mod_strings']['LBL_DISABLED'], |
||
| 51 | '1' => $GLOBALS['mod_strings']['LBL_ENABLED'] |
||
| 52 | ); |
||
| 53 | |||
| 54 | $unit_types = $GLOBALS['app_list_strings']['map_unit_type_list']; |
||
| 55 | ?> |
||
| 56 | |||
| 57 | <p style="margin: 15px 0px 15px 0px; font-size: 1.7em;"><strong>Please consider donating to this project!</strong></p> |
||
| 58 | |||
| 59 | <p style="margin: 15px 0px 15px 0px; font-size: 1.25em; width: 790px;"> |
||
| 60 | If you've found this project helpful, please donate!<br /> |
||
| 61 | Donations from users like you will help keep this project alive. |
||
| 62 | </p> |
||
| 63 | |||
| 64 | <div style="margin: 15px 0px 15px 0px;"> |
||
| 65 | <span style="font-size: 1.7em;"><strong>$5, $20, $100 or even $500 </strong></span> |
||
| 66 | <form style="display:inline;" action="https://www.paypal.com/cgi-bin/webscr" method="post"> |
||
| 67 | <input type="hidden" name="cmd" value="_s-xclick"> |
||
| 68 | <input type="hidden" name="hosted_button_id" value="FZENX6PLHKX2L"> |
||
| 69 | <input style="border:0;" type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> |
||
| 70 | <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> |
||
| 71 | </form> |
||
| 72 | </div> |
||
| 73 | |||
| 74 | <p> </p> |
||
| 75 | |||
| 76 | <p style="margin: 15px 0px 15px 0px; font-size: 1.7em;"><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_TITLE']; ?></strong></p> |
||
| 77 | |||
| 78 | <?php if (!empty($_REQUEST['config_save_notice'])) { ?> |
||
| 79 | <p style="margin: 15px 0px 15px 0px; font-size: 1.5em;"><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_SAVED']; ?></strong></p> |
||
| 80 | <?php } ?> |
||
| 81 | |||
| 82 | <form name="settings" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> |
||
| 83 | <input type="hidden" name="module" value="<?php echo $GLOBALS['currentModule']; ?>"> |
||
| 84 | <input type="hidden" name="action" value="config" /> |
||
| 85 | |||
| 86 | |||
| 87 | <input type="submit" class="button" tabindex="101" name="submit" value=" <?php echo $GLOBALS['app_strings']['LBL_SAVE_BUTTON_LABEL']; ?> " align="bottom"> |
||
| 88 | |
||
| 89 | <input type="button" class="button" tabindex="102" name="cancel" value=" <?php echo $GLOBALS['app_strings']['LBL_CANCEL_BUTTON_LABEL']; ?> " align="bottom" |
||
| 90 | onclick="document.location.href='index.php?module=Administration&action=index'" title=""> |
||
| 91 | |||
| 92 | <br /><br /> |
||
| 93 | |||
| 94 | <table class="edit view" cellpadding="0" cellspacing="12" border="0"> |
||
| 95 | <tr> |
||
| 96 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_VALID_GEOCODE_MODULES']; ?> </strong></td> |
||
| 97 | <td><input type="text" name="valid_geocode_modules" id="valid_geocode_modules" |
||
| 98 | value="<?php echo (isset($GLOBALS['jjwg_config']['valid_geocode_modules'])) ? |
||
| 99 | htmlspecialchars(implode(', ', $GLOBALS['jjwg_config']['valid_geocode_modules'])) : |
||
| 100 | htmlspecialchars(implode(', ', $GLOBALS['jjwg_config_defaults']['valid_geocode_modules'])); ?>" |
||
| 101 | title='' tabindex='107' size="100" maxlength="999"><br /> |
||
| 102 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> |
||
| 103 | <?php echo htmlspecialchars(implode(', ', $GLOBALS['jjwg_config_defaults']['valid_geocode_modules'])); ?> |
||
| 104 | </td> |
||
| 105 | </tr> |
||
| 106 | <tr> |
||
| 107 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_VALID_GEOCODE_TABLES']; ?> </strong></td> |
||
| 108 | <td><input type="text" name="valid_geocode_tables" id="valid_geocode_tables" |
||
| 109 | value="<?php echo (isset($GLOBALS['jjwg_config']['valid_geocode_tables'])) ? |
||
| 110 | htmlspecialchars(implode(', ', $GLOBALS['jjwg_config']['valid_geocode_tables'])) : |
||
| 111 | htmlspecialchars(implode(', ', $GLOBALS['jjwg_config_defaults']['valid_geocode_tables'])); ?>" |
||
| 112 | title='' tabindex='108' size="100" maxlength="999"><br /> |
||
| 113 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> |
||
| 114 | <?php echo htmlspecialchars(implode(', ', $GLOBALS['jjwg_config_defaults']['valid_geocode_tables'])); ?> |
||
| 115 | </td> |
||
| 116 | </tr> |
||
| 117 | <tr> |
||
| 118 | <td colspan="2"> |
||
| 119 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_ADDRESS_TYPE_SETTINGS_TITLE']; ?> |
||
| 120 | </td> |
||
| 121 | </tr> |
||
| 122 | <tr> |
||
| 123 | <td width="20%" nowrap="nowrap"> |
||
| 124 | <strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_ADDRESS_TYPE_FOR_ACCOUNTS']; ?> </strong> |
||
| 125 | </td> |
||
| 126 | <td> |
||
| 127 | <select id="address_type_Accounts" tabindex="111" |
||
| 128 | name="address_type_Accounts" title=""> |
||
| 129 | <?php foreach ($address_types_billing_or_shipping as $key=>$value) { ?> |
||
| 130 | <option value="<?php echo htmlspecialchars($key); ?>" <?php |
||
| 131 | if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Accounts']) echo 'selected="selected"'; |
||
| 132 | ?>><?php echo htmlspecialchars($value); ?></option> |
||
| 133 | <?php } ?> |
||
| 134 | </select> |
||
| 135 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> |
||
| 136 | <?php echo htmlspecialchars($address_types_billing_or_shipping[$GLOBALS['jjwg_config_defaults']['geocode_modules_to_address_type']['Accounts']]); ?> |
||
| 137 | </td> |
||
| 138 | </tr> |
||
| 139 | <tr> |
||
| 140 | <td> |
||
| 141 | <strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_ADDRESS_TYPE_FOR_CONTACTS']; ?> </strong> |
||
| 142 | </td> |
||
| 143 | <td> |
||
| 144 | <select id="address_type_Contacts" tabindex="112" |
||
| 145 | name="address_type_Contacts" title=""> |
||
| 146 | <?php foreach ($address_types_primary_or_alt as $key=>$value) { ?> |
||
| 147 | <option value="<?php echo htmlspecialchars($key); ?>" <?php |
||
| 148 | if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Contacts']) echo 'selected="selected"'; |
||
| 149 | ?>><?php echo htmlspecialchars($value); ?></option> |
||
| 150 | <?php } ?> |
||
| 151 | </select> |
||
| 152 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> |
||
| 153 | <?php echo htmlspecialchars($address_types_primary_or_alt[$GLOBALS['jjwg_config_defaults']['geocode_modules_to_address_type']['Contacts']]); ?> |
||
| 154 | </td> |
||
| 155 | </tr> |
||
| 156 | <tr> |
||
| 157 | <td> |
||
| 158 | <strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_ADDRESS_TYPE_FOR_LEADS']; ?> </strong> |
||
| 159 | </td> |
||
| 160 | <td> |
||
| 161 | <select id="address_type_Leads" tabindex="113" |
||
| 162 | name="address_type_Leads" title=""> |
||
| 163 | <?php foreach ($address_types_primary_or_alt as $key=>$value) { ?> |
||
| 164 | <option value="<?php echo htmlspecialchars($key); ?>" <?php |
||
| 165 | if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Leads']) echo 'selected="selected"'; |
||
| 166 | ?>><?php echo htmlspecialchars($value); ?></option> |
||
| 167 | <?php } ?> |
||
| 168 | </select> |
||
| 169 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> |
||
| 170 | <?php echo htmlspecialchars($address_types_primary_or_alt[$GLOBALS['jjwg_config_defaults']['geocode_modules_to_address_type']['Leads']]); ?> |
||
| 171 | </td> |
||
| 172 | </tr> |
||
| 173 | <tr> |
||
| 174 | <td> |
||
| 175 | <strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_ADDRESS_TYPE_FOR_OPPORTUNITIES']; ?> </strong> |
||
| 176 | </td> |
||
| 177 | <td> |
||
| 178 | <select id="address_type_Opportunities" tabindex="114" |
||
| 179 | name="address_type_Opportunities" title=""> |
||
| 180 | <?php foreach ($address_types_billing_or_shipping as $key=>$value) { ?> |
||
| 181 | <option value="<?php echo htmlspecialchars($key); ?>" <?php |
||
| 182 | if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Opportunities']) echo 'selected="selected"'; |
||
| 183 | ?>><?php echo htmlspecialchars($value); ?></option> |
||
| 184 | <?php } ?> |
||
| 185 | </select> |
||
| 186 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> |
||
| 187 | <?php echo htmlspecialchars($address_types_billing_or_shipping[$GLOBALS['jjwg_config_defaults']['geocode_modules_to_address_type']['Opportunities']]); ?> |
||
| 188 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_OF_RELATED_ACCOUNT']; ?> |
||
| 189 | </td> |
||
| 190 | </tr> |
||
| 191 | <tr> |
||
| 192 | <td> |
||
| 193 | <strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_ADDRESS_TYPE_FOR_CASES']; ?> </strong> |
||
| 194 | </td> |
||
| 195 | <td> |
||
| 196 | <select id="address_type_Cases" tabindex="115" |
||
| 197 | name="address_type_Cases" title=""> |
||
| 198 | <?php foreach ($address_types_billing_or_shipping as $key=>$value) { ?> |
||
| 199 | <option value="<?php echo htmlspecialchars($key); ?>" <?php |
||
| 200 | if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Cases']) echo 'selected="selected"'; |
||
| 201 | ?>><?php echo htmlspecialchars($value); ?></option> |
||
| 202 | <?php } ?> |
||
| 203 | </select> |
||
| 204 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> |
||
| 205 | <?php echo htmlspecialchars($address_types_billing_or_shipping[$GLOBALS['jjwg_config_defaults']['geocode_modules_to_address_type']['Cases']]); ?> |
||
| 206 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_OF_RELATED_ACCOUNT']; ?> |
||
| 207 | </td> |
||
| 208 | </tr> |
||
| 209 | <tr> |
||
| 210 | <td> |
||
| 211 | <strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_ADDRESS_TYPE_FOR_PROJECTS']; ?> </strong> |
||
| 212 | </td> |
||
| 213 | <td> |
||
| 214 | <select id="address_type_Project" tabindex="116" |
||
| 215 | name="address_type_Project" title=""> |
||
| 216 | <?php foreach ($address_types_billing_or_shipping as $key=>$value) { ?> |
||
| 217 | <option value="<?php echo htmlspecialchars($key); ?>" <?php |
||
| 218 | if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Project']) echo 'selected="selected"'; |
||
| 219 | ?>><?php echo htmlspecialchars($value); ?></option> |
||
| 220 | <?php } ?> |
||
| 221 | </select> |
||
| 222 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> |
||
| 223 | <?php echo htmlspecialchars($address_types_billing_or_shipping[$GLOBALS['jjwg_config_defaults']['geocode_modules_to_address_type']['Project']]); ?> |
||
| 224 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_OF_RELATED_ACCOUNT_OPPORTUNITY']; ?> |
||
| 225 | </td> |
||
| 226 | </tr> |
||
| 227 | <tr> |
||
| 228 | <td> |
||
| 229 | <strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_ADDRESS_TYPE_FOR_MEETINGS']; ?> </strong> |
||
| 230 | </td> |
||
| 231 | <td> |
||
| 232 | <select id="address_type_Meetings" tabindex="117" |
||
| 233 | name="address_type_Meetings" title=""> |
||
| 234 | <?php foreach ($address_types_flex_relate as $key=>$value) { ?> |
||
| 235 | <option value="<?php echo htmlspecialchars($key); ?>" <?php |
||
| 236 | if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Meetings']) echo 'selected="selected"'; |
||
| 237 | ?>><?php echo htmlspecialchars($value); ?></option> |
||
| 238 | <?php } ?> |
||
| 239 | </select> |
||
| 240 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_RELATED_OBJECT_THRU_FLEX_RELATE']; ?> |
||
| 241 | </td> |
||
| 242 | </tr> |
||
| 243 | <tr> |
||
| 244 | <td width="20%" nowrap="nowrap"> |
||
| 245 | <strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_ADDRESS_TYPE_FOR_PROSPECTS']; ?> </strong> |
||
| 246 | </td> |
||
| 247 | <td> |
||
| 248 | <select id="address_type_Prospects" tabindex="118" |
||
| 249 | name="address_type_Prospects" title=""> |
||
| 250 | <?php foreach ($address_types_primary_or_alt as $key=>$value) { ?> |
||
| 251 | <option value="<?php echo htmlspecialchars($key); ?>" <?php |
||
| 252 | if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Prospects']) echo 'selected="selected"'; |
||
| 253 | ?>><?php echo htmlspecialchars($value); ?></option> |
||
| 254 | <?php } ?> |
||
| 255 | </select> |
||
| 256 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> |
||
| 257 | <?php echo htmlspecialchars($address_types_primary_or_alt[$GLOBALS['jjwg_config_defaults']['geocode_modules_to_address_type']['Prospects']]); ?> |
||
| 258 | </td> |
||
| 259 | </tr> |
||
| 260 | <?php |
||
| 261 | $custom_modules = array_diff($GLOBALS['jjwg_config']['valid_geocode_modules'], $GLOBALS['jjwg_config_defaults']['valid_geocode_modules']); |
||
| 262 | foreach ($custom_modules as $module) { |
||
| 263 | ?> |
||
| 264 | <tr> |
||
| 265 | <td width="20%" nowrap="nowrap"> |
||
| 266 | <strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_ADDRESS_TYPE_FOR'].' '.$module.':'; ?> </strong> |
||
| 267 | </td> |
||
| 268 | <td> |
||
| 269 | <select id="address_type_<?php echo $module; ?>" tabindex="118" |
||
| 270 | name="address_type_<?php echo $module; ?>" title=""> |
||
| 271 | <?php foreach ($address_types_all as $key=>$value) { ?> |
||
| 272 | <option value="<?php echo htmlspecialchars($key); ?>" <?php |
||
| 273 | if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type'][$module]) echo 'selected="selected"'; |
||
| 274 | ?>><?php echo htmlspecialchars($value); ?></option> |
||
| 275 | <?php } ?> |
||
| 276 | </select> |
||
| 277 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> |
||
| 278 | <?php echo htmlspecialchars($address_types_all[$GLOBALS['jjwg_config_defaults']['geocode_modules_to_address_type']['Contacts']]); ?> |
||
| 279 | </td> |
||
| 280 | </tr> |
||
| 281 | <?php |
||
| 282 | } |
||
| 283 | ?> |
||
| 284 | <tr> |
||
| 285 | <td colspan="2"><hr /></td> |
||
| 286 | </tr> |
||
| 287 | |||
| 288 | |||
| 289 | <tr> |
||
| 290 | <td colspan="2"> |
||
| 291 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MARKER_GROUP_FIELD_SETTINGS_TITLE']; ?> |
||
| 292 | </td> |
||
| 293 | </tr> |
||
| 294 | <tr> |
||
| 295 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR_ACCOUNTS']; ?> </strong></td> |
||
| 296 | <td><input type="text" name="grouping_field_Accounts" id="grouping_field_Accounts" |
||
| 297 | value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_grouping_field']['Accounts'])) ? |
||
| 298 | htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Accounts']) : |
||
| 299 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Accounts']); ?>" |
||
| 300 | title='' tabindex='121' size="25" maxlength="75"> |
||
| 301 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Accounts']); ?> |
||
| 302 | </td> |
||
| 303 | </tr> |
||
| 304 | <tr> |
||
| 305 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR_CONTACTS']; ?> </strong></td> |
||
| 306 | <td><input type="text" name="grouping_field_Contacts" id="grouping_field_Contacts" |
||
| 307 | value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_grouping_field']['Contacts'])) ? |
||
| 308 | htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Contacts']) : |
||
| 309 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Contacts']); ?>" |
||
| 310 | title='' tabindex='122' size="25" maxlength="32"> |
||
| 311 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Contacts']); ?> |
||
| 312 | </td> |
||
| 313 | </tr> |
||
| 314 | <tr> |
||
| 315 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR_LEADS'];?> </strong></td> |
||
| 316 | <td><input type="text" name="grouping_field_Leads" id="grouping_field_Leads" |
||
| 317 | value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_grouping_field']['Leads'])) ? |
||
| 318 | htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Leads']) : |
||
| 319 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Leads']); ?>" |
||
| 320 | title='' tabindex='123' size="25" maxlength="32"> |
||
| 321 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Leads']); ?> |
||
| 322 | </td> |
||
| 323 | </tr> |
||
| 324 | <tr> |
||
| 325 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR_OPPORTUNITIES']; ?> </strong></td> |
||
| 326 | <td><input type="text" name="grouping_field_Opportunities" id="grouping_field_Opportunities" |
||
| 327 | value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_grouping_field']['Opportunities'])) ? |
||
| 328 | htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Opportunities']) : |
||
| 329 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Opportunities']); ?>" |
||
| 330 | title='' tabindex='124' size="25" maxlength="32"> |
||
| 331 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Opportunities']); ?> |
||
| 332 | </td> |
||
| 333 | </tr> |
||
| 334 | <tr> |
||
| 335 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR_CASES']; ?> </strong></td> |
||
| 336 | <td><input type="text" name="grouping_field_Cases" id="grouping_field_Cases" |
||
| 337 | value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_grouping_field']['Cases'])) ? |
||
| 338 | htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Cases']) : |
||
| 339 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Cases']); ?>" |
||
| 340 | title='' tabindex='125' size="25" maxlength="32"> |
||
| 341 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Cases']); ?> |
||
| 342 | </td> |
||
| 343 | </tr> |
||
| 344 | <tr> |
||
| 345 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR_PROJECTS']; ?> </strong></td> |
||
| 346 | <td><input type="text" name="grouping_field_Project" id="grouping_field_Project" |
||
| 347 | value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_grouping_field']['Project'])) ? |
||
| 348 | htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Project']) : |
||
| 349 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Project']); ?>" |
||
| 350 | title='' tabindex='126' size="25" maxlength="32"> |
||
| 351 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Project']); ?> |
||
| 352 | </td> |
||
| 353 | </tr> |
||
| 354 | <tr> |
||
| 355 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR_MEETINGS']; ?> </strong></td> |
||
| 356 | <td><input type="text" name="grouping_field_Meetings" id="grouping_field_Meetings" |
||
| 357 | value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_grouping_field']['Meetings'])) ? |
||
| 358 | htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Meetings']) : |
||
| 359 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Meetings']); ?>" |
||
| 360 | title='' tabindex='127' size="25" maxlength="32"> |
||
| 361 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Meetings']); ?> |
||
| 362 | (Limited to Meetings Module Fields) |
||
| 363 | </td> |
||
| 364 | </tr> |
||
| 365 | <tr> |
||
| 366 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR_PROSPECTS']; ?> </strong></td> |
||
| 367 | <td><input type="text" name="grouping_field_Prospects" id="grouping_field_Prospects" |
||
| 368 | value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_grouping_field']['Prospects'])) ? |
||
| 369 | htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Prospects']) : |
||
| 370 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Prospects']); ?>" |
||
| 371 | title='' tabindex='128' size="25" maxlength="32"> |
||
| 372 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Prospects']); ?> |
||
| 373 | </td> |
||
| 374 | </tr> |
||
| 375 | <?php |
||
| 376 | $custom_modules = array_diff($GLOBALS['jjwg_config']['valid_geocode_modules'], $GLOBALS['jjwg_config_defaults']['valid_geocode_modules']); |
||
| 377 | foreach ($custom_modules as $module) { |
||
| 378 | ?> |
||
| 379 | <tr> |
||
| 380 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR'].' '.$module.':'; ?> </strong></td> |
||
| 381 | <td><input type="text" name="grouping_field_<?php echo $module; ?>" id="grouping_field_<?php echo $module; ?>" |
||
| 382 | value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_grouping_field'][$module])) ? |
||
| 383 | htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field'][$module]) : |
||
| 384 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Contacts']); ?>" |
||
| 385 | title='' tabindex='128' size="25" maxlength="32"> |
||
| 386 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> |
||
| 387 | <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Contacts']); ?> |
||
| 388 | </td> |
||
| 389 | </tr> |
||
| 390 | <?php |
||
| 391 | } |
||
| 392 | ?> |
||
| 393 | <tr> |
||
| 394 | <td colspan="2"><hr /></td> |
||
| 395 | </tr> |
||
| 396 | |||
| 397 | <tr> |
||
| 398 | <td colspan="2"> |
||
| 399 | <strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GEOCODING_SETTINGS_TITLE']; ?></strong> |
||
| 400 | </td> |
||
| 401 | </tr> |
||
| 402 | <tr> |
||
| 403 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GEOCODING_API_URL_TITLE']; ?> </strong></td> |
||
| 404 | <td><input type="text" name="geocoding_api_url" id="geocoding_api_url" |
||
| 405 | value="<?php echo (isset($GLOBALS['jjwg_config']['geocoding_api_url'])) ? |
||
| 406 | htmlspecialchars($GLOBALS['jjwg_config']['geocoding_api_url']) : |
||
| 407 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['geocoding_api_url']); ?>" |
||
| 408 | title='' tabindex='139' size="70" maxlength="255"> |
||
| 409 | <br /> |
||
| 410 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> |
||
| 411 | <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['geocoding_api_url']) ?> |
||
| 412 | </td> |
||
| 413 | </tr> |
||
| 414 | <tr> |
||
| 415 | <td colspan="2"><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GEOCODING_API_URL_DESC']; ?></td> |
||
| 416 | </tr> |
||
| 417 | <tr> |
||
| 418 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GEOCODING_API_SECRET_TITLE']; ?> </strong></td> |
||
| 419 | <td><input type="text" name="geocoding_api_secret" id="geocoding_api_secret" |
||
| 420 | value="<?php echo (isset($GLOBALS['jjwg_config']['geocoding_api_secret'])) ? |
||
| 421 | htmlspecialchars($GLOBALS['jjwg_config']['geocoding_api_secret']) : |
||
| 422 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['geocoding_api_secret']); ?>" |
||
| 423 | title='' tabindex='140' size="25" maxlength="32"> |
||
| 424 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> |
||
| 425 | <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['geocoding_api_secret']) ?> |
||
| 426 | </td> |
||
| 427 | </tr> |
||
| 428 | <tr> |
||
| 429 | <td colspan="2"><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GEOCODING_API_SECRET_DESC']; ?></td> |
||
| 430 | </tr> |
||
| 431 | <tr> |
||
| 432 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GEOCODING_LIMIT_TITLE']; ?> </strong></td> |
||
| 433 | <td><input type="text" name="geocoding_limit" id="geocoding_limit" |
||
| 434 | value="<?php echo (isset($GLOBALS['jjwg_config']['geocoding_limit'])) ? |
||
| 435 | htmlspecialchars($GLOBALS['jjwg_config']['geocoding_limit']) : |
||
| 436 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['geocoding_limit']); ?>" |
||
| 437 | title='' tabindex='141' size="10" maxlength="25"> |
||
| 438 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> |
||
| 439 | <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['geocoding_limit']) ?> |
||
| 440 | </td> |
||
| 441 | </tr> |
||
| 442 | <tr> |
||
| 443 | <td colspan="2"><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GEOCODING_LIMIT_DESC']; ?></td> |
||
| 444 | </tr> |
||
| 445 | <tr> |
||
| 446 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GOOGLE_GEOCODING_LIMIT_TITLE']; ?> </strong></td> |
||
| 447 | <td><input type="text" name="google_geocoding_limit" id="google_geocoding_limit" |
||
| 448 | value="<?php echo (isset($GLOBALS['jjwg_config']['google_geocoding_limit'])) ? |
||
| 449 | htmlspecialchars($GLOBALS['jjwg_config']['google_geocoding_limit']) : |
||
| 450 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['google_geocoding_limit']); ?>" |
||
| 451 | title='' tabindex='142' size="10" maxlength="25"> |
||
| 452 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> |
||
| 453 | <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['google_geocoding_limit']) ?> |
||
| 454 | </td> |
||
| 455 | </tr> |
||
| 456 | <tr> |
||
| 457 | <td colspan="2"><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GOOGLE_GEOCODING_LIMIT_DESC']; ?></td> |
||
| 458 | </tr> |
||
| 459 | <tr class="row odd"> |
||
| 460 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_ALLOW_APPROXIMATE_LOCATION_TYPE_TITLE']; ?> </strong></td> |
||
| 461 | <td> |
||
| 462 | <?php $enabled = !empty($GLOBALS['jjwg_config']['allow_approximate_location_type']) ? '1' : '0'; ?> |
||
| 463 | <select id="allow_approximate_location_type" tabindex="143" |
||
| 464 | name="allow_approximate_location_type" title=""> |
||
| 465 | <?php foreach ($enabled_disabled as $key=>$value) { ?> |
||
| 466 | <option value="<?php echo htmlspecialchars($key); ?>" <?php |
||
| 467 | if ($key == $enabled) echo 'selected="selected"'; |
||
| 468 | ?>><?php echo htmlspecialchars($value); ?> |
||
| 469 | <?php } ?> |
||
| 470 | </select> |
||
| 471 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($enabled_disabled[$GLOBALS['jjwg_config_defaults']['allow_approximate_location_type']]) ?> |
||
| 472 | </td> |
||
| 473 | </tr> |
||
| 474 | <tr> |
||
| 475 | <td colspan="2"><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_ALLOW_APPROXIMATE_LOCATION_TYPE_DESC']; ?></td> |
||
| 476 | </tr> |
||
| 477 | <tr> |
||
| 478 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_EXPORT_ADDRESSES_LIMIT_TITLE']; ?> </strong></td> |
||
| 479 | <td><input type="text" name="export_addresses_limit" id="export_addresses_limit" |
||
| 480 | value="<?php echo (isset($GLOBALS['jjwg_config']['export_addresses_limit'])) ? |
||
| 481 | htmlspecialchars($GLOBALS['jjwg_config']['export_addresses_limit']) : |
||
| 482 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['export_addresses_limit']); ?>" |
||
| 483 | title='' tabindex='144' size="10" maxlength="25"> |
||
| 484 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> |
||
| 485 | <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['export_addresses_limit']) ?> |
||
| 486 | </td> |
||
| 487 | </tr> |
||
| 488 | <tr> |
||
| 489 | <td colspan="2"><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_EXPORT_ADDRESSES_LIMIT_DESC']; ?></td> |
||
| 490 | </tr> |
||
| 491 | |||
| 492 | |||
| 493 | |||
| 494 | <tr> |
||
| 495 | <td colspan="2"><hr /></td> |
||
| 496 | </tr> |
||
| 497 | |||
| 498 | <tr> |
||
| 499 | <td colspan="2"> |
||
| 500 | <strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_ADDRESS_CACHE_SETTINGS_TITLE']; ?></strong> |
||
| 501 | </td> |
||
| 502 | </tr> |
||
| 503 | <tr> |
||
| 504 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_ADDRESS_CACHE_GET_ENABLED_TITLE']; ?> </strong></td> |
||
| 505 | <td> |
||
| 506 | <?php $enabled = !empty($GLOBALS['jjwg_config']['address_cache_get_enabled']) ? '1' : '0'; ?> |
||
| 507 | <select id="address_cache_get_enabled" tabindex="145" |
||
| 508 | name="address_cache_get_enabled" title=""> |
||
| 509 | <?php foreach ($enabled_disabled as $key=>$value) { ?> |
||
| 510 | <option value="<?php echo htmlspecialchars($key); ?>" <?php |
||
| 511 | if ($key == $enabled) echo 'selected="selected"'; |
||
| 512 | ?>><?php echo htmlspecialchars($value); ?> |
||
| 513 | <?php } ?> |
||
| 514 | </select> |
||
| 515 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($enabled_disabled[$GLOBALS['jjwg_config_defaults']['address_cache_get_enabled']]) ?> |
||
| 516 | </td> |
||
| 517 | </tr> |
||
| 518 | <tr> |
||
| 519 | <td colspan="2"><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_ADDRESS_CACHE_GET_ENABLED_DESC']; ?></td> |
||
| 520 | </tr> |
||
| 521 | <tr> |
||
| 522 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_ADDRESS_CACHE_SAVE_ENABLED_TITLE']; ?> </strong></td> |
||
| 523 | <td> |
||
| 524 | <?php $enabled = !empty($GLOBALS['jjwg_config']['address_cache_save_enabled']) ? '1' : '0'; ?> |
||
| 525 | <select id="address_cache_save_enabled" tabindex="146" |
||
| 526 | name="address_cache_save_enabled" title=""> |
||
| 527 | <?php foreach ($enabled_disabled as $key=>$value) { ?> |
||
| 528 | <option value="<?php echo htmlspecialchars($key); ?>" <?php |
||
| 529 | if ($key == $enabled) echo 'selected="selected"'; |
||
| 530 | ?>><?php echo htmlspecialchars($value); ?> |
||
| 531 | <?php } ?> |
||
| 532 | </select> |
||
| 533 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($enabled_disabled[$GLOBALS['jjwg_config_defaults']['address_cache_save_enabled']]) ?> |
||
| 534 | </td> |
||
| 535 | </tr> |
||
| 536 | <tr> |
||
| 537 | <td colspan="2"><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_ADDRESS_CACHE_SAVE_ENABLED_DESC']; ?></td> |
||
| 538 | </tr> |
||
| 539 | |||
| 540 | |||
| 541 | |||
| 542 | <tr> |
||
| 543 | <td colspan="2"><hr /></td> |
||
| 544 | </tr> |
||
| 545 | |||
| 546 | <tr> |
||
| 547 | <td colspan="2"> |
||
| 548 | <strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_LOGIC_HOOKS_SETTINGS_TITLE']; ?></strong> |
||
| 549 | </td> |
||
| 550 | </tr> |
||
| 551 | <tr> |
||
| 552 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_LOGIC_HOOKS_ENABLED_TITLE']; ?> </strong></td> |
||
| 553 | <td> |
||
| 554 | <?php $enabled = !empty($GLOBALS['jjwg_config']['logic_hooks_enabled']) ? '1' : '0'; ?> |
||
| 555 | <select id="logic_hooks_enabled" tabindex="148" |
||
| 556 | name="logic_hooks_enabled" title=""> |
||
| 557 | <?php foreach ($enabled_disabled as $key=>$value) { ?> |
||
| 558 | <option value="<?php echo htmlspecialchars($key); ?>" <?php |
||
| 559 | if ($key == $enabled) echo 'selected="selected"'; |
||
| 560 | ?>><?php echo htmlspecialchars($value); ?> |
||
| 561 | <?php } ?> |
||
| 562 | </select> |
||
| 563 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($enabled_disabled[$GLOBALS['jjwg_config_defaults']['logic_hooks_enabled']]) ?> |
||
| 564 | </td> |
||
| 565 | </tr> |
||
| 566 | <tr> |
||
| 567 | <td colspan="2"><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_LOGIC_HOOKS_ENABLED_DESC']; ?></td> |
||
| 568 | </tr> |
||
| 569 | |||
| 570 | |||
| 571 | |||
| 572 | <tr> |
||
| 573 | <td colspan="2"><hr /></td> |
||
| 574 | </tr> |
||
| 575 | |||
| 576 | <tr> |
||
| 577 | <td colspan="2"> |
||
| 578 | <strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MARKER_MAPPING_SETTINGS_TITLE']; ?></strong> |
||
| 579 | </td> |
||
| 580 | </tr> |
||
| 581 | <tr> |
||
| 582 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_MARKERS_LIMIT_TITLE']; ?> </strong></td> |
||
| 583 | <td><input type="text" name="map_markers_limit" id="map_markers_limit" |
||
| 584 | value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_limit'])) ? |
||
| 585 | htmlspecialchars($GLOBALS['jjwg_config']['map_markers_limit']) : |
||
| 586 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_limit']); ?>" |
||
| 587 | title='' tabindex='150' size="10" maxlength="25"> |
||
| 588 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_limit']) ?> |
||
| 589 | </td> |
||
| 590 | </tr> |
||
| 591 | <tr> |
||
| 592 | <td colspan="2"><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_MARKERS_LIMIT_DESC']; ?></td> |
||
| 593 | </tr> |
||
| 594 | <tr> |
||
| 595 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_DEFAULT_CENTER_LATITUDE_TITLE']; ?> </strong></td> |
||
| 596 | <td><input type="text" name="map_default_center_latitude" id="map_default_center_latitude" |
||
| 597 | value="<?php echo (isset($GLOBALS['jjwg_config']['map_default_center_latitude'])) ? |
||
| 598 | htmlspecialchars($GLOBALS['jjwg_config']['map_default_center_latitude']) : |
||
| 599 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_default_center_latitude']); ?>" |
||
| 600 | title='' tabindex='151' size="10" maxlength="25"> |
||
| 601 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_default_center_latitude']) ?> |
||
| 602 | </td> |
||
| 603 | </tr> |
||
| 604 | <tr> |
||
| 605 | <td colspan="2"><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_DEFAULT_CENTER_LATITUDE_DESC']; ?></td> |
||
| 606 | </tr> |
||
| 607 | <tr> |
||
| 608 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_DEFAULT_CENTER_LONGITUDE_TITLE']; ?> </strong></td> |
||
| 609 | <td><input type="text" name="map_default_center_longitude" id="map_default_center_longitude" |
||
| 610 | value="<?php echo (isset($GLOBALS['jjwg_config']['map_default_center_longitude'])) ? |
||
| 611 | htmlspecialchars($GLOBALS['jjwg_config']['map_default_center_longitude']) : |
||
| 612 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_default_center_longitude']); ?>" |
||
| 613 | title='' tabindex='152' size="10" maxlength="25"> |
||
| 614 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_default_center_longitude']) ?> |
||
| 615 | </td> |
||
| 616 | </tr> |
||
| 617 | <tr> |
||
| 618 | <td colspan="2"><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_DEFAULT_CENTER_LONGITUDE_DESC']; ?></td> |
||
| 619 | </tr> |
||
| 620 | <tr> |
||
| 621 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_DEFAULT_UNIT_TYPE_TITLE']; ?> </strong></td> |
||
| 622 | <td> |
||
| 623 | <select id="map_default_unit_type" tabindex="153" |
||
| 624 | name="map_default_unit_type" title=""> |
||
| 625 | <?php foreach ($unit_types as $key=>$value) { ?> |
||
| 626 | <option value="<?php echo htmlspecialchars($key); ?>" <?php |
||
| 627 | if ($key == $GLOBALS['jjwg_config']['map_default_unit_type']) echo 'selected="selected"'; |
||
| 628 | ?>><?php echo htmlspecialchars($value); ?> |
||
| 629 | <?php } ?> |
||
| 630 | </select> |
||
| 631 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_default_unit_type']) ?> |
||
| 632 | </td> |
||
| 633 | </tr> |
||
| 634 | <tr> |
||
| 635 | <td colspan="2"><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_DEFAULT_UNIT_TYPE_DESC']; ?></td> |
||
| 636 | </tr> |
||
| 637 | <tr> |
||
| 638 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_DEFAULT_DISTANCE_TITLE']; ?> </strong></td> |
||
| 639 | <td><input type="text" name="map_default_distance" id="map_default_distance" |
||
| 640 | value="<?php echo (isset($GLOBALS['jjwg_config']['map_default_distance'])) ? |
||
| 641 | htmlspecialchars($GLOBALS['jjwg_config']['map_default_distance']) : |
||
| 642 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_default_distance']); ?>" |
||
| 643 | title='' tabindex='154' size="10" maxlength="25"> |
||
| 644 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_default_distance']) ?> |
||
| 645 | </td> |
||
| 646 | </tr> |
||
| 647 | <tr> |
||
| 648 | <td colspan="2"><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_DEFAULT_DISTANCE_DESC']; ?></td> |
||
| 649 | </tr> |
||
| 650 | <tr> |
||
| 651 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_DUPLICATE_MARKER_ADJUSTMENT_TITLE']; ?> </strong></td> |
||
| 652 | <td><input type="text" name="map_duplicate_marker_adjustment" id="map_duplicate_marker_adjustment" |
||
| 653 | value="<?php echo (isset($GLOBALS['jjwg_config']['map_duplicate_marker_adjustment'])) ? |
||
| 654 | rtrim(number_format($GLOBALS['jjwg_config']['map_duplicate_marker_adjustment'], 8), '0.') : |
||
| 655 | rtrim(number_format($GLOBALS['jjwg_config_defaults']['map_duplicate_marker_adjustment'], 8), '0.'); ?>" |
||
| 656 | title='' tabindex='155' size="10" maxlength="25"> |
||
| 657 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo rtrim(number_format($GLOBALS['jjwg_config_defaults']['map_duplicate_marker_adjustment'], 8), '0.'); ?> |
||
| 658 | </td> |
||
| 659 | </tr> |
||
| 660 | <tr> |
||
| 661 | <td colspan="2"><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_DUPLICATE_MARKER_ADJUSTMENT_DESC']; ?></td> |
||
| 662 | </tr> |
||
| 663 | <tr> |
||
| 664 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_CLUSTER_GRID_SIZE_TITLE']; ?> </strong></td> |
||
| 665 | <td><input type="text" name="map_clusterer_grid_size" id="map_clusterer_grid_size" |
||
| 666 | value="<?php echo (isset($GLOBALS['jjwg_config']['map_clusterer_grid_size'])) ? |
||
| 667 | htmlspecialchars($GLOBALS['jjwg_config']['map_clusterer_grid_size']) : |
||
| 668 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_clusterer_grid_size']); ?>" |
||
| 669 | title='' tabindex='156' size="10" maxlength="25"> |
||
| 670 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_clusterer_grid_size']) ?> |
||
| 671 | </td> |
||
| 672 | </tr> |
||
| 673 | <tr> |
||
| 674 | <td colspan="2"><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_CLUSTER_GRID_SIZE_DESC']; ?></td> |
||
| 675 | </tr> |
||
| 676 | <tr> |
||
| 677 | <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_MARKERS_CLUSTERER_MAX_ZOOM_TITLE']; ?> </strong></td> |
||
| 678 | <td><input type="text" name="map_clusterer_max_zoom" id="map_clusterer_max_zoom" |
||
| 679 | value="<?php echo (isset($GLOBALS['jjwg_config']['map_clusterer_max_zoom'])) ? |
||
| 680 | htmlspecialchars($GLOBALS['jjwg_config']['map_clusterer_max_zoom']) : |
||
| 681 | htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_clusterer_max_zoom']); ?>" |
||
| 682 | title='' tabindex='157' size="10" maxlength="25"> |
||
| 683 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_clusterer_max_zoom']) ?> |
||
| 684 | </td> |
||
| 685 | </tr> |
||
| 686 | <tr> |
||
| 687 | <td colspan="2"><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_MARKERS_CLUSTERER_MAX_ZOOM_DESC']; ?></td> |
||
| 688 | </tr> |
||
| 689 | </table> |
||
| 690 | |||
| 691 | <br /> |
||
| 692 | |||
| 693 | <input type="submit" class="button" tabindex="211" name="submit" value=" <?php echo $GLOBALS['app_strings']['LBL_SAVE_BUTTON_LABEL']; ?> " align="bottom"> |
||
| 694 | |
||
| 695 | <input type="button" class="button" tabindex="212" name="cancel" value=" <?php echo $GLOBALS['app_strings']['LBL_CANCEL_BUTTON_LABEL']; ?> " align="bottom" |
||
| 696 | onclick="document.location.href='index.php?module=Administration&action=index'" title=""> |
||
| 697 | |||
| 698 | </form> |
||
| 699 | |||
| 700 | |||
| 701 | <p style="margin: 25px 0px 15px 0px; font-size: 1em; width: 700px;"> |
||
| 702 | <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_CUSTOM_CONTROLLER_DESC']; ?> |
||
| 703 | </p> |
||
| 704 | |||
| 705 | <p> </p> |
||
| 706 | <br /> |
||
| 707 | |||
| 708 | <?php |
||
| 709 | //echo '<pre>'; |
||
| 710 | //var_dump($GLOBALS['sugar_config']); |
||
| 711 | //var_dump($GLOBALS['jjwg_config_defaults']); |
||
| 712 | //var_dump($GLOBALS['jjwg_config']); |
||
| 713 | //var_dump($GLOBALS['mod_strings); |
||
| 714 | //var_dump($GLOBALS['app_strings']); |
||
| 715 | //var_dump($GLOBALS['app_list_strings']); |
||
| 716 | //echo '</pre>'; |
||
| 717 | ?> |
||
| 718 | |||
| 719 | <?php |
||
| 720 | } |
||
| 721 | |||
| 723 |