PluginProbe
Optima Express IDX / trunk
Optima Express IDX vtrunk
8.7.2 8.7.1 trunk 1.0.0 1.1.0 1.1.2 1.1.3 1.1.4 1.1.5 1.1.7 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.2 1.4.4 1.4.5 1.4.6 2.0.1 2.2.7 2.3.0 2.3.1 2.4.0 2.5.0 All 112 releases
optima-express / iHomefinderShortcodeSelector.php

iHomefinderShortcodeSelector.php in Optima Express IDX trunk, at iHomefinderShortcodeSelector.php

1,379 lines 75.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if (! defined('ABSPATH')) {
4 exit; // Exit if accessed directly
5 }
6
7
8 class iHomefinderShortcodeSelector
9 {
10 private $displayRules;
11 private $formData;
12 private $buttonText;
13
14 public function __construct()
15 {
16 $this->displayRules = iHomefinderDisplayRules::getInstance();
17 $this->formData = iHomefinderFormData::getInstance();
18 }
19
20 public function getButtonText()
21 {
22 return $this->buttonText;
23 }
24
25 public function setButtonText($buttonText)
26 {
27 $this->buttonText = $buttonText;
28 }
29
30 public function getNotification()
31 {
32 return $this->notification;
33 }
34
35 public function setNotification($notification)
36 {
37 $this->notification = $notification;
38 }
39
40 public function getHeadContent()
41 {
42 ?>
43 <link type="text/css" rel="stylesheet" href="<?php echo esc_url(
44 plugins_url("css/bootstrap.css", __FILE__)
45 ); ?>" />
46 <script type="text/javascript" src="<?php echo esc_url(
47 plugins_url("js/bootstrap.js", __FILE__)
48 ); ?>"></script>
49 <script type="text/javascript" src="<?php echo esc_url(
50 plugins_url("js/iHomefinderShortcodeSelector.js", __FILE__)
51 ); ?>"></script>
52 <script type="text/javascript">
53 jQuery(document).on("submit", "form", function(event) {
54 event.preventDefault();
55 var $form = jQuery(this);
56 var action = $form.find("input[name='action']").val();
57 iHomefinderShortcodeSelector[action](this);
58 });
59 </script>
60 <style type="text/css">
61 .menu {
62 display: none;
63 }
64 </style>
65 <?php
66 }
67
68 public function getShortcodeSelectorContent()
69 {
70 ?>
71 <div>
72 <ul class="nav nav-tabs" id="ihf-dialog-tabs">
73 <li class="nav-item">
74 <a class="nav-link" href="#Leads" data-bs-toggle="tab">Leads</a>
75 </li>
76 <li class="nav-item">
77 <a class="nav-link active" href="#Listings" data-bs-toggle="tab">Listings</a>
78 </li>
79 <li class="nav-item">
80 <a class="nav-link" href="#Search" data-bs-toggle="tab">Search</a>
81 </li>
82 <li class="nav-item">
83 <a class="nav-link" href="#IdxPages" data-bs-toggle="tab">IDX Pages</a>
84 </li>
85 <?php if ($this->displayRules->isAgentBioEnabled() ||
86 $this->displayRules->isOfficeEnabled()
87 ) { ?>
88 <li class="nav-item">
89 <a class="nav-link" href="#Broker" data-bs-toggle="tab">Broker</a>
90 </li>
91 <?php } ?>
92 </ul>
93 <div class="tab-content">
94 <div class="tab-pane fade" id="Leads">
95 <h4></h4>
96 <div class="col-5">
97 <div class="form-group">
98 <?php if ($this->displayRules->isEmailSignupShortcodeEnabled()) { ?>
99 <div class="form-check">
100 <label class="control-label">
101 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#hotSheetReportSignup').toggle();">
102 Alert Signup
103 </label>
104 </div>
105 <?php } ?>
106 <div class="form-check">
107 <label class="control-label">
108 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#valuationWidget').toggle();">
109 Sell My House
110 </label>
111 </div>
112 <?php if ($this->displayRules->isOrganizerEnabled()) { ?>
113 <div class="form-check">
114 <label class="control-label">
115 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#organizerLoginWidget').toggle();">
116 Property Organizer Widget
117 </label>
118 </div>
119 <?php } ?>
120 <?php if ($this->displayRules->isOrganizerEnabled()) { ?>
121 <div class="form-check">
122 <label class="control-label">
123 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#registrationFormWidget').toggle();">
124 Registration Form
125 </label>
126 </div>
127 <?php } ?>
128 </div>
129 </div>
130 <div class="col-7">
131 <div id="hotSheetReportSignup" class="menu">
132 <form>
133 <input type="hidden" name="action" value="insertHotSheetReportSignup" />
134 <input type="hidden" name="slug" value="<?php echo esc_html(
135 iHomefinderShortcodeDispatcher::HOT_SHEET_REPORT_SIGNUP_SHORTCODE
136 ); ?>" />
137 <div class="form-group">
138 <label class="control-label">Market</label>
139 <div>
140 <?php $this->createHotSheetsSelect(
141 true
142 ); ?>
143 </div>
144 </div>
145 <div class="form-group">
146 <label class="control-label">Report Type</label>
147 <div>
148 <?php $this->createHotSheetReportTypeSelect(
149 true
150 ); ?>
151 </div>
152 </div>
153 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
154 $this->buttonText
155 ); ?></button>
156 </form>
157 </div>
158 <div id="valuationWidget" class="menu">
159 <form>
160 <input type="hidden" name="action" value="insertValuationWidget" />
161 <input type="hidden" name="slug" value="<?php echo esc_html(
162 iHomefinderShortcodeDispatcher::VALUATION_WIDGET_SHORTCODE
163 ); ?>" />
164 <div class="form-group">
165 <label class="control-label">Style</label>
166 <div>
167 <select class="form-control" name="style" required="required">
168 <option value="">Select One</option>
169 <option value="twoline">Two Line</option>
170 <option value="vertical">Vertical</option>
171 </select>
172 </div>
173 </div>
174 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
175 $this->buttonText
176 ); ?></button>
177 </form>
178 </div>
179 <div id="organizerLoginWidget" class="menu">
180 <form>
181 <input type="hidden" name="action" value="insertOrganizerLoginWidget" />
182 <input type="hidden" name="slug" value="<?php echo esc_html(
183 iHomefinderShortcodeDispatcher::ORGANIZER_LOGIN_WIGET_SHORTCODE
184 ); ?>" />
185 <div class="form-group">
186 <label class="control-label">Style</label>
187 <div>
188 <select class="form-control" name="style" required="required">
189 <option value="">Select One</option>
190 <option value="vertical">Vertical</option>
191 <option value="horizontal">Horizontal</option>
192 </select>
193 </div>
194 </div>
195 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
196 $this->buttonText
197 ); ?></button>
198 </form>
199 </div>
200 <div id="registrationFormWidget" class="menu">
201 <form>
202 <input type="hidden" name="action" value="insertRegistrationWidget" />
203 <input type="hidden" name="slug" value="<?php echo esc_html(
204 iHomefinderShortcodeDispatcher::REGISTRATION_FORM_SHORTCODE
205 ); ?>" />
206 <div class="form-group">
207 <label class="control-label">Redirect URL</label>
208 <div>
209 <input class="form-control" name="url" type="url" placeholder="e.g., http://www.mydestination.com/content">
210 </div>
211 </div>
212 <div class="form-group">
213 <label class="control-label">Button Text</label>
214 <div>
215 <input class="form-control" name="buttonText" type="text" placeholder="e.g., View Now!">
216 </div>
217 </div>
218 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
219 $this->buttonText
220 ); ?></button>
221 </form>
222 </div>
223 </div>
224 </div>
225 <div class="tab-pane fade show active" id="Listings">
226 <h4></h4>
227 <div class="col-4">
228 <div class="form-group">
229 <div class="form-check">
230 <label class="control-label">
231 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.listingGalleryMenu').show(); jQuery('.menu').hide();">
232 Listing Gallery
233 </label>
234 </div>
235 <div class="form-group listingGalleryMenu" style="display: none;">
236 <select class="form-control" name="header" onchange="jQuery('.menu').hide(); jQuery('#' + this.value).toggle();">
237 <option value="">Select One</option>
238 <option value="featuredMenu">Featured Listings</option>
239 <?php if ($this->displayRules->isAgentBioEnabled()
240 ) { ?>
241 <option value="agentMenu">Agent Listing</option>
242 <?php } ?>
243 <?php if ($this->displayRules->isOfficeEnabled()
244 ) { ?>
245 <option value="officeMenu">Office Listing</option>
246 <?php } ?>
247 <?php if ($this->displayRules->isHotSheetEnabled()
248 ) { ?>
249 <option value="listingReportMenu">Listing Report</option>
250 <?php } ?>
251 <?php if ($this->displayRules->isHotSheetOpenHomeReportEnabled()
252 ) { ?>
253 <option value="openHomeReportMenu">Open Houses Report</option>
254 <?php } ?>
255 <?php if ($this->displayRules->isNamedSearchEnabled()
256 ) { ?>
257 <option value="searchMenu">Search</option>
258 <?php } ?>
259 </select>
260 </div>
261
262 <?php if ($this->displayRules->supportsGallerySlider()
263 ) { ?>
264 <div class="form-check">
265 <label class="control-label">
266 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.listingGalleryMenu').hide(); jQuery('.menu').hide(); jQuery('#gallerySliderMenu').toggle();">
267 Gallery Slider
268 </label>
269 </div>
270 <?php } ?>
271 <?php if ($this->displayRules->isHotSheetMarketReportEnabled()) { ?>
272 <div class="form-check">
273 <label class="control-label">
274 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.listingGalleryMenu').hide(); jQuery('.menu').hide(); jQuery('#marketReportMenu').toggle();">
275 Market Report
276 </label>
277 </div>
278 <?php } ?>
279 </div>
280 </div>
281 <div class="col-8">
282 <div id="featuredMenu" class="menu">
283 <form>
284 <input type="hidden" name="action" value="insertFeaturedListings" />
285 <input type="hidden" name="slug" value="<?php echo esc_html(
286 iHomefinderShortcodeDispatcher::FEATURED_SHORTCODE
287 ); ?>" />
288 <div class="mb-3">
289 <label class="form-label">Property Type</label>
290 <div>
291 <?php $this->createPropertyTypeSelect(
292 false
293 ); ?>
294 </div>
295 </div>
296 <?php if ($this->displayRules->isSoldListingsInWidgets()
297 ) { ?>
298 <div class="mb-3">
299 <label class="form-label">Status</label>
300 <div>
301 <?php $this->createStatusSelect(
302 true
303 ); ?>
304 </div>
305 </div>
306 <?php } ?>
307 <div class="mb-3">
308 <label class="form-label">Sort</label>
309 <div>
310 <?php $this->createSortSelect(); ?>
311 </div>
312 </div>
313 <div class="mb-3">
314 <label class="form-label">Results Per Page</label>
315 <div>
316 <input class="form-control" type="number" min="1" name="resultsPerPage" />
317 </div>
318 </div>
319 <div class="mb-3">
320 <label class="form-label">Display Type</label>
321 <div>
322 <?php $this->createDisplayTypeSelect(); ?>
323 </div>
324 </div>
325 <div class="form-check">
326 <input type="checkbox" class="form-check-input radio-input" value="true" name="includeMap" checked="checked" />
327 <label class="form-check-label">Include Map</label>
328 </div>
329 <div class="mb-3">
330 <label class="form-label">Display Header</label>
331 <div>
332 <?php $this->createHeaderSelect(
333 true
334 ); ?>
335 </div>
336 </div>
337 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
338 $this->buttonText
339 ); ?></button>
340 </form>
341 </div>
342 <div id="listingReportMenu" class="menu">
343 <form>
344 <input type="hidden" name="action" value="insertHotSheetListingReport" />
345 <input type="hidden" name="slug" value="<?php echo esc_html(
346 iHomefinderShortcodeDispatcher::HOT_SHEETS_SHORTCODE
347 ); ?>" />
348 <div class="mb-3">
349 <label class="form-label">Market</label>
350 <div>
351 <?php $this->createHotSheetsSelect(
352 true
353 ); ?>
354 </div>
355 </div>
356 <?php if ($this->displayRules->isSoldListingsInWidgets()
357 ) { ?>
358 <div class="mb-3">
359 <label class="form-label">Status</label>
360 <div>
361 <?php $this->createStatusSelect(
362 true
363 ); ?>
364 </div>
365 </div>
366 <?php } ?>
367 <div class="mb-3">
368 <label class="form-label">Sort</label>
369 <div>
370 <?php $this->createSortSelect(); ?>
371 </div>
372 </div>
373 <div class="mb-3">
374 <label class="form-label">Results Per Page</label>
375 <div>
376 <input class="form-control" type="number" min="1" name="resultsPerPage" />
377 </div>
378 </div>
379 <div class="mb-3">
380 <label class="form-label">Display Type</label>
381 <div>
382 <?php $this->createDisplayTypeSelect(); ?>
383 </div>
384 </div>
385 <div class="form-check">
386 <input type="checkbox" class="form-check-input radio-input" value="true" name="includeMap" checked="checked" />
387 <label class="form-check-label">Include Map</label>
388 </div>
389 <div class="mb-3">
390 <label class="form-label">Display Header</label>
391 <div>
392 <?php $this->createHeaderSelect(
393 true
394 ); ?>
395 </div>
396 </div>
397 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
398 $this->buttonText
399 ); ?></button>
400 </form>
401 </div>
402 <div id="openHomeReportMenu" class="menu">
403 <form>
404 <input type="hidden" name="action" value="insertHotSheetOpenHomeReport" />
405 <input type="hidden" name="slug" value="<?php echo esc_html(
406 iHomefinderShortcodeDispatcher::HOT_SHEET_OPEN_HOME_REPORT
407 ); ?>" />
408 <div class="mb-3">
409 <label class="form-label">Market</label>
410 <div>
411 <?php $this->createHotSheetsSelect(
412 true
413 ); ?>
414 </div>
415 </div>
416 <div class="mb-3">
417 <label class="form-label">Sort</label>
418 <div>
419 <?php $this->createSortSelect(); ?>
420 </div>
421 </div>
422 <div class="form-check">
423 <input type="checkbox" class="form-check-input radio-input" value="true" name="includeMap" checked="checked" />
424 <label class="form-check-label">Include Map</label>
425 </div>
426 <div class="mb-3">
427 <label class="form-label">Display Header</label>
428 <div>
429 <?php $this->createHeaderSelect(
430 true
431 ); ?>
432 </div>
433 </div>
434 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
435 $this->buttonText
436 ); ?></button>
437 </form>
438 </div>
439 <div id="marketReportMenu" class="menu">
440 <form>
441 <input type="hidden" name="action" value="insertHotSheetMarketReport" />
442 <input type="hidden" name="slug" value="<?php echo esc_html(
443 iHomefinderShortcodeDispatcher::HOT_SHEET_MARKET_REPORT
444 ); ?>" />
445 <div class="mb-3">
446 <label class="form-label">Market</label>
447 <div>
448 <?php $this->createHotSheetsSelect(
449 true
450 ); ?>
451 </div>
452 </div>
453 <div class="mb-3">
454 <label class="form-label">Display Header</label>
455 <div>
456 <?php $this->createHeaderSelect(
457 true
458 ); ?>
459 </div>
460 </div>
461 <div class="mb-3">
462 <label class="form-label"> Slider Columns</label>
463 <div>
464 <input class="form-control" type="number" min="1" name="columns" required="required" />
465 </div>
466 </div>
467 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
468 $this->buttonText
469 ); ?></button>
470 </form>
471 </div>
472 <div id="searchMenu" class="menu">
473 <form>
474 <input type="hidden" name="action" value="insertSearchResults" />
475 <input type="hidden" name="slug" value="<?php echo esc_html(
476 iHomefinderShortcodeDispatcher::SEARCH_RESULTS_SHORTCODE
477 ); ?>" />
478 <?php if (!$this->displayRules->isKestrelAll()
479 ) { ?>
480 <div class="form-group">
481 <label class="control-label">Cities</label>
482 <div>
483 <?php $this->createCitySelect(true); ?>
484 </div>
485 </div>
486 <?php } ?>
487 <div class="form-group">
488 <label class="control-label">Property Type</label>
489 <div>
490 <?php $this->createPropertyTypeSelect(
491 true
492 ); ?>
493 </div>
494 </div>
495 <div class="form-group">
496 <label class="control-label">Bed</label>
497 <div>
498 <input class="form-control" type="number" min="0" name="bed" />
499 </div>
500 </div>
501 <div class="form-group">
502 <label class="control-label">Bath</label>
503 <div>
504 <input class="form-control" type="number" min="0" name="bath" />
505 </div>
506 </div>
507 <div class="form-group">
508 <label class="control-label">Min Price</label>
509 <div>
510 <input class="form-control" type="number" min="0" name="minPrice" />
511 </div>
512 </div>
513 <div class="form-group">
514 <label class="control-label">Max Price</label>
515 <div>
516 <input class="form-control" type="number" min="0" name="maxPrice" />
517 </div>
518 </div>
519 <?php if ($this->displayRules->isSoldListingsInWidgets()
520 ) { ?>
521 <div class="form-group">
522 <label class="control-label">Status</label>
523 <div>
524 <?php $this->createStatusSelect(true); ?>
525 </div>
526 </div>
527 <?php } ?>
528 <div class="form-group">
529 <label class="control-label">Sort</label>
530 <div>
531 <?php $this->createSortSelect(); ?>
532 </div>
533 </div>
534 <div class="form-group">
535 <label class="control-label">Results Per Page</label>
536 <div>
537 <input class="form-control" type="number" min="1" name="resultsPerPage" />
538 </div>
539 </div>
540 <div class="form-group">
541 <label class="control-label">Display Type</label>
542 <div>
543 <?php $this->createDisplayTypeSelect(); ?>
544 </div>
545 </div>
546 <div class="checkbox">
547 <label class="control-label">
548 <input type="checkbox" value="true" name="includeMap" checked="checked" />
549 Include Map
550 </label>
551 </div>
552 <div class="form-group">
553 <label class="control-label">Display Header</label>
554 <div>
555 <?php $this->createHeaderSelect(
556 true
557 ); ?>
558 </div>
559 </div>
560 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
561 $this->buttonText
562 ); ?></button>
563 </form>
564 </div>
565 <div id="agentMenu" class="menu">
566 <form>
567 <input type="hidden" name="action" value="insertAgentListings" />
568 <input type="hidden" name="slug" value="<?php echo esc_html(
569 iHomefinderShortcodeDispatcher::AGENT_LISTINGS_SHORTCODE
570 ); ?>" />
571 <div class="form-group">
572 <label class="control-label">Agent</label>
573 <div>
574 <?php $this->createAgentSelect(true); ?>
575 </div>
576 </div>
577 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
578 $this->buttonText
579 ); ?></button>
580 </form>
581 </div>
582 <div id="officeMenu" class="menu">
583 <form>
584 <input type="hidden" name="action" value="insertOfficeListings" />
585 <input type="hidden" name="slug" value="<?php echo esc_html(
586 iHomefinderShortcodeDispatcher::OFFICE_LISTINGS_SHORTCODE
587 ); ?>" />
588 <div class="form-group">
589 <label class="control-label">Office</label>
590 <div>
591 <?php $this->createOfficeSelect(
592 true
593 ); ?>
594 </div>
595 </div>
596 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
597 $this->buttonText
598 ); ?></button>
599 </form>
600 </div>
601 <div id="gallerySliderMenu" class="menu">
602 <form>
603 <input type="hidden" name="action" value="insertGallerySlider" />
604 <input type="hidden" name="slug" value="<?php echo esc_html(
605 iHomefinderShortcodeDispatcher::GALLERY_SLIDER_SHORTCODE
606 ); ?>" />
607 <div class="form-group">
608 <?php if ($this->displayRules->isHotSheetEnabled()
609 ) { ?>
610 <label class="radio-inline">
611 <input type="radio" name="type" checked onclick="jQuery('#HotSheetsSelect').hide(); jQuery('select#hotSheetId').prop('selectedIndex', 0); jQuery('select#hotSheetId').removeAttr('required');" />
612 Featured
613 </label>
614 <label class="radio-inline">
615 <input type="radio" name="type" onclick="jQuery('#HotSheetsSelect').show(); jQuery('select#hotSheetId').attr('required', 'required');" />
616 Market
617 </label>
618 <?php } ?>
619 </div>
620 <div id="HotSheetsSelect" class="form-group" style="display: none;">
621 <?php $this->createHotSheetsSelect(); ?>
622 </div>
623
624 <?php if (!$this->displayRules->isKestrelAll()
625 ) { ?>
626 <div class="form-group">
627 <label class="control-label">
628 <input style="margin: 0;" type="checkbox" name="fitToWidth" checked onchange="var $input = jQuery('#listingGalleryWidth').toggle().find('input'); $input.prop('required', !$input.prop('required')); ">
629 Fit width to column
630 </label>
631 <div id="listingGalleryWidth" class="input-group" >
632 <input class="form-control" type="number" min="1" name="width" required="required" />
633 <span class="input-group-addon">px</span>
634 </div>
635 </div>
636
637 <div class="form-group">
638 <label class="control-label">Height</label>
639 <div class="input-group">
640 <input class="form-control" type="number" min="1" name="height" placeholder="Default" />
641 <span class="input-group-addon">px</span>
642 </div>
643 </div>
644 <?php } ?>
645
646 <div class="form-group">
647 <label class="control-label">Rows</label>
648 <div>
649 <input class="form-control" type="number" min="1" name="rows" required="required" />
650 </div>
651 </div>
652 <?php if (!$this->displayRules->isKestrelAll()
653 ) { ?>
654 <div class="form-group">
655 <label class="control-label">Columns</label>
656 <div>
657 <input class="form-control" type="number" min="1" name="columns" required="required" />
658 </div>
659 </div>
660 <?php } ?>
661
662
663 <div class="form-group">
664 <label class="control-label">Navigation Position</label>
665 <div>
666 <select class="form-control" name="nav" required="required">
667 <option value="top">Top</option>
668 <option value="bottom">Bottom</option>
669 <option value="sides">Sides</option>
670 </select>
671 </div>
672 </div>
673 <div class="form-group">
674 <label class="control-label">Style</label>
675 <div>
676 <select class="form-control" name="style" required="required">
677 <option value="grid">Color</option>
678 <option value="plain">Plain</option>
679 </select>
680 </div>
681 </div>
682 <div class="form-group">
683 <label class="control-label">Effect</label>
684 <div>
685 <select class="form-control" name="effect" required="required">
686 <option value="slide">Slide</option>
687 <option value="fade">Fade</option>
688 </select>
689 </div>
690 </div>
691 <div class="form-group">
692 <label class="control-label">Auto Advance</label>
693 <div>
694 <select class="form-control" name="auto" required="required">
695 <option value="true">Yes</option>
696 <option value="false">No</option>
697 </select>
698 </div>
699 </div>
700 <div class="form-group">
701 <label class="control-label">Speed</label>
702 <div class="input-group">
703 <input class="form-control" type="number" min="1" name="interval" />
704 <span class="input-group-addon">seconds</span>
705 </div>
706 </div>
707 <?php if ($this->displayRules->isSoldListingsInWidgets()
708 ) { ?>
709 <div class="form-group">
710 <label class="control-label">Status</label>
711 <div>
712 <?php $this->createStatusSelect(true); ?>
713 </div>
714 </div>
715 <?php } ?>
716 <div class="form-group">
717 <label class="control-label">Sort</label>
718 <div>
719 <?php $this->createSortSelect(); ?>
720 </div>
721 </div>
722 <div class="form-group">
723 <label class="control-label">Max. Results</label>
724 <div>
725 <input class="form-control" type="number" min="1" name="maxResults" value="25" />
726 </div>
727 </div>
728 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
729 $this->buttonText
730 ); ?></button>
731 </form>
732 </div>
733 </div>
734 </div>
735 <div class="tab-pane fade" id="Search">
736 <h4></h4>
737 <div class="col-4">
738 <div class="mb-3">
739 <div class="form-check">
740 <label class="form-check-label">
741 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#quickSearchMenu').toggle();">
742 Quick Search
743 </label>
744 </div>
745 <?php if ($this->displayRules->isMapSearchEnabled() &&
746 !$this->displayRules->isEurekaSearch()
747 ) { ?>
748 <div class="form-check">
749 <label class="form-check-label">
750 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#mapSearchMenu').toggle();">
751 Map Search
752 </label>
753 </div>
754 <?php } ?>
755 <?php if ($this->displayRules->isEurekaSearch()) { ?>
756 <div class="form-check">
757 <label class="form-check-label">
758 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#eurekaSearchMenu').toggle();">
759 Search
760 </label>
761 </div>
762 <?php } ?>
763 <?php if ($this->displayRules->isSearchByAddressEnabled() &&
764 !$this->displayRules->isEurekaSearch()
765 ) { ?>
766 <div class="form-check">
767 <label class="form-check-label">
768 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#searchByAddressMenu').toggle();">
769 Address Search
770 </label>
771 </div>
772 <?php } ?>
773 <?php if ($this->displayRules->isSearchByListingIdEnabled() &&
774 !$this->displayRules->isEurekaSearch()
775 ) { ?>
776 <div class="form-check">
777 <label class="form-check-label">
778 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#searchByListingIdMenu').toggle();">
779 Listing ID Search
780 </label>
781 </div>
782 <?php } ?>
783 </div>
784 </div>
785 <div class="col-8">
786 <div id="quickSearchMenu" class="menu">
787 <form>
788 <input type="hidden" name="action" value="insertQuickSearch" />
789 <input type="hidden" name="slug" value="<?php echo esc_html(
790 iHomefinderShortcodeDispatcher::QUICK_SEARCH_SHORTCODE
791 ); ?>" />
792 <div class="mb-3">
793 <label class="form-label">Style</label>
794 <div>
795 <select class="form-control" name="style" required="required" onchange="this.value && this.value !== 'universal' ? jQuery('#quickSearchMenu .propertyType').show() : jQuery('#quickSearchMenu .propertyType').hide()">
796 <option value="">Select One</option>
797 <?php if ($this->displayRules->supportsUniversalQuickSearchLayout()
798 ) { ?>
799 <option value="universal">Universal</option>
800 <?php } ?>
801 <option value="horizontal">Horizontal</option>
802 <option value="twoline">Two Line</option>
803 <option value="vertical">Vertical</option>
804 </select>
805 </div>
806 </div>
807 <div class="mb-3 propertyType" style="display: none;">
808 <div class="form-check">
809 <input type="checkbox" class="form-check-input radio-input" name="showPropertyType" value="true" checked />
810 <label class="form-check-label">
811 Show Property Type
812 </label>
813 </div>
814 </div>
815 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
816 $this->buttonText
817 ); ?></button>
818 </form>
819 </div>
820 <div id="mapSearchMenu" class="menu">
821 <form>
822 <input type="hidden" name="action" value="insertMapSearch" />
823 <input type="hidden" name="slug" value="<?php echo esc_html(
824 iHomefinderShortcodeDispatcher::MAP_SEARCH_SHORTCODE
825 ); ?>" />
826
827 <div class="mb-3">
828 <label class="form-label">Width</label>
829 <div class="form-check">
830 <input type="checkbox" class="form-check-input radio-input" name="fitToWidth" checked onchange="jQuery('#mapSearchWidth').toggle();">
831 <label class="form-check-label">Fit to column</label>
832 </div>
833 <div class="input-group" style="display: none;" id="mapSearchWidth">
834 <input class="form-control" type="text" name="width" />
835 <span class="input-group-text">px</span>
836 </div>
837 </div>
838 <?php if (!$this->displayRules->isKestrelAll()) { ?>
839 <div class="mb-3">
840 <label class="form-label">Height</label>
841 <div class="input-group">
842 <input class="form-control" type="number" min="1" name="height" />
843 <span class="input-group-text">px</span>
844 </div>
845 </div>
846 <div class="mb-3">
847 <label class="form-label">Center Address</label>
848 <div>
849 <input class="form-control" type="text" name="address" placeholder="e.g., 1900 Addison Street, Berkeley, CA" />
850 </div>
851 </div>
852 <div class="mb-3">
853 <label class="form-label">Zoom Level</label>
854 <div>
855 <select class="form-control" name="zoom" required="required">
856 <?php for ($i = 1; $i <= 20; $i++) { ?>
857 <option value="<?php echo esc_attr($i); ?>"<?php echo ($i === 10) ? ' selected="selected"' : ''; ?>><?php echo esc_html($i); ?></option>
858 <?php } ?>
859 </select>
860 </div>
861 </div>
862 <?php } ?>
863 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
864 $this->buttonText
865 ); ?></button>
866 </form>
867 </div>
868 <div id="eurekaSearchMenu" class="menu">
869 <form>
870 <input type="hidden" name="action" value="insertMapSearch" />
871 <input type="hidden" name="slug" value="<?php echo esc_html(
872 iHomefinderShortcodeDispatcher::EUREKA_SEARCH_SHORTCODE
873 ); ?>" />
874 <?php if (!$this->displayRules->isKestrelAll()) { ?>
875 <div class="mb-3">
876 <label class="form-label">Height (optional)</label>
877 <div class="input-group">
878 <input class="form-control" type="number" min="1" name="height" />
879 <span class="input-group-text">px</span>
880 </div>
881 </div>
882 <div class="mb-3">
883 <label class="form-label">Center Address</label>
884 <div>
885 <input class="form-control" type="text" name="address" placeholder="e.g., 1900 Addison Street, Berkeley, CA" />
886 </div>
887 </div>
888 <div class="mb-3">
889 <label class="form-label">Zoom Level</label>
890 <div>
891 <select class="form-control" name="zoom" required="required">
892 <?php for ($i = 1; $i <= 20; $i++) { ?>
893 <option value="<?php echo esc_attr($i); ?>"<?php echo ($i === 10) ? ' selected="selected"' : ''; ?>><?php echo esc_html($i); ?></option>
894 <?php } ?>
895 </select>
896 </div>
897 </div>
898 <?php } ?>
899 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
900 $this->buttonText
901 ); ?></button>
902 </form>
903 </div>
904 <div id="searchByAddressMenu" class="menu">
905 <form>
906 <input type="hidden" name="action" value="insertSearchByAddress" />
907 <input type="hidden" name="slug" value="<?php echo esc_html(
908 iHomefinderShortcodeDispatcher::SEARCH_BY_ADDRESS_SHORTCODE
909 ); ?>" />
910 <div class="mb-3">
911 <label class="form-label">Style</label>
912 <div>
913 <select class="form-control" name="style" required="required">
914 <option value="">Select One</option>
915 <option value="horizontal">Horizontal</option>
916 <option value="vertical">Vertical</option>
917 </select>
918 </div>
919 </div>
920 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
921 $this->buttonText
922 ); ?></button>
923 </form>
924 </div>
925 <div id="searchByListingIdMenu" class="menu">
926 <form>
927 <input type="hidden" name="action" value="insertSearchByListingId" />
928 <input type="hidden" name="slug" value="<?php echo esc_html(
929 iHomefinderShortcodeDispatcher::SEARCH_BY_LISTING_ID_SHORTCODE
930 ); ?>" />
931 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
932 $this->buttonText
933 ); ?></button>
934 </form>
935 </div>
936 </div>
937 </div>
938 <div class="tab-pane fade" id="IdxPages">
939 <h4></h4>
940 <div class="col-4">
941 <div class="mb-3">
942 <?php if ($this->displayRules->isBasicSearchEnabled() &&
943 !$this->displayRules->isEurekaSearch()
944 ) { ?>
945 <div class="form-check">
946 <label class="form-check-label">
947 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#basicSearchMenu').toggle();">
948 Search Form
949 </label>
950 </div>
951 <?php } ?>
952 <?php if ($this->displayRules->isAdvancedSearchEnabled() &&
953 !$this->displayRules->isEurekaSearch()
954 ) { ?>
955 <div class="form-check">
956 <label class="form-check-label">
957 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#advancedSearchMenu').toggle();">
958 Advanced Search Form
959 </label>
960 </div>
961 <?php } ?>
962 <?php if ($this->displayRules->isOrganizerEnabled()) { ?>
963 <div class="form-check">
964 <label class="form-check-label">
965 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#organizerLoginMenu').toggle();">
966 Property Organizer Login
967 </label>
968 </div>
969 <?php } ?>
970 <?php if ($this->displayRules->isEmailUpdatesEnabled() &&
971 !$this->displayRules->isEurekaSearch()
972 ) { ?>
973 <div class="form-check">
974 <label class="form-check-label">
975 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#emailAlertsMenu').toggle();">
976 Email Alerts
977 </label>
978 </div>
979 <?php } ?>
980 <?php if ($this->displayRules->isValuationEnabled()) { ?>
981 <div class="form-check">
982 <label class="form-check-label">
983 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#valuationFormMenu').toggle();">
984 Valuation Form
985 </label>
986 </div>
987 <?php } ?>
988 <?php if ($this->displayRules->isContactFormEnabled()) { ?>
989 <div class="form-check">
990 <label class="form-check-label">
991 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#contactFormMenu').toggle();">
992 Contact Form
993 </label>
994 </div>
995 <?php } ?>
996 <?php if ($this->displayRules->isMortgageCalculatorEnabled()) { ?>
997 <div class="form-check">
998 <label class="form-check-label">
999 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#mortgageCalculatorMenu').toggle();">
1000 Mortgage Calculator
1001 </label>
1002 </div>
1003 <?php } ?>
1004 </div>
1005 </div>
1006
1007 <div class="col-8">
1008 <div id="basicSearchMenu" class="menu">
1009 <form>
1010 <input type="hidden" name="action" value="insertBasicSearch" />
1011 <input type="hidden" name="slug" value="<?php echo esc_html(
1012 iHomefinderShortcodeDispatcher::BASIC_SEARCH_SHORTCODE
1013 ); ?>" />
1014 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
1015 $this->buttonText
1016 ); ?></button>
1017 </form>
1018 </div>
1019 <div id="advancedSearchMenu" class="menu">
1020 <form>
1021 <input type="hidden" name="action" value="insertAdvancedSearch" />
1022 <input type="hidden" name="slug" value="<?php echo esc_html(
1023 iHomefinderShortcodeDispatcher::ADVANCED_SEARCH_SHORTCODE
1024 ); ?>" />
1025 <?php if ($this->getBoardCount() > 1) { ?>
1026 <div class="mb-3">
1027 <label class="form-label">Board</label>
1028 <div>
1029 <?php $this->createBoardSelect(
1030 false
1031 ); ?>
1032 </div>
1033 </div>
1034 <?php } elseif ($this->getBoardCount() === 1
1035 ) { ?>
1036 <?php $this->createBoardSelect(
1037 false
1038 ); ?>
1039 <?php } ?>
1040 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
1041 $this->buttonText
1042 ); ?></button>
1043 </form>
1044 </div>
1045 <div id="organizerLoginMenu" class="menu">
1046 <form>
1047 <input type="hidden" name="action" value="insertOrganizerLogin" />
1048 <input type="hidden" name="slug" value="<?php echo esc_html(
1049 iHomefinderShortcodeDispatcher::ORGANIZER_LOGIN_SHORTCODE
1050 ); ?>" />
1051 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
1052 $this->buttonText
1053 ); ?></button>
1054 </form>
1055 </div>
1056 <div id="emailAlertsMenu" class="menu">
1057 <form>
1058 <input type="hidden" name="action" value="insertEmailAlerts" />
1059 <input type="hidden" name="slug" value="<?php echo esc_html(
1060 iHomefinderShortcodeDispatcher::EMAIL_ALERTS_SHORTCODE
1061 ); ?>" />
1062 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
1063 $this->buttonText
1064 ); ?></button>
1065 </form>
1066 </div>
1067 <div id="valuationFormMenu" class="menu">
1068 <form>
1069 <input type="hidden" name="action" value="insertValuationForm" />
1070 <input type="hidden" name="slug" value="<?php echo esc_html(
1071 iHomefinderShortcodeDispatcher::VALUATION_FORM_SHORTCODE
1072 ); ?>" />
1073 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
1074 $this->buttonText
1075 ); ?></button>
1076 </form>
1077 </div>
1078 <div id="mortgageCalculatorMenu" class="menu">
1079 <form>
1080 <input type="hidden" name="action" value="insertMortgageCalculator" />
1081 <input type="hidden" name="slug" value="<?php echo esc_html(
1082 iHomefinderShortcodeDispatcher::MORTGAGE_CALCULATOR_SHORTCODE
1083 ); ?>" />
1084 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
1085 $this->buttonText
1086 ); ?></button>
1087 </form>
1088 </div>
1089 <div id="contactFormMenu" class="menu">
1090 <form>
1091 <input type="hidden" name="action" value="insertContactForm" />
1092 <input type="hidden" name="slug" value="<?php echo esc_html(
1093 iHomefinderShortcodeDispatcher::CONTACT_FORM_SHORTCODE
1094 ); ?>" />
1095 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
1096 $this->buttonText
1097 ); ?></button>
1098 </form>
1099 </div>
1100 </div>
1101 </div>
1102 <div class="tab-pane fade" id="Broker">
1103 <h4></h4>
1104 <div class="col-5">
1105 <div class="mb-3">
1106 <?php if ($this->displayRules->isAgentBioEnabled()) { ?>
1107 <div class="form-check">
1108 <label class="form-check-label">
1109 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#agentDetailMenu').toggle();">
1110 Agent Bio
1111 </label>
1112 </div>
1113 <?php } ?>
1114 <?php if ($this->displayRules->isAgentBioEnabled()) { ?>
1115 <div class="form-check">
1116 <label class="form-check-label">
1117 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#agentListMenu').toggle();">
1118 Agent List
1119 </label>
1120 </div>
1121 <?php } ?>
1122 <?php if ($this->displayRules->isOfficeEnabled()) { ?>
1123 <div class="form-check">
1124 <label class="form-check-label">
1125 <input name="shortcodeType" type="radio" class="form-check-input radio-input" onclick="jQuery('.menu').hide(); jQuery('#officeListMenu').toggle();">
1126 Office List
1127 </label>
1128 </div>
1129 <?php } ?>
1130 </div>
1131 </div>
1132 <div class="col-7">
1133 <div id="agentDetailMenu" class="menu">
1134 <form>
1135 <input type="hidden" name="action" value="insertAgentDetail" />
1136 <input type="hidden" name="slug" value="<?php echo esc_html(
1137 iHomefinderShortcodeDispatcher::AGENT_DETAIL_SHORTCODE
1138 ); ?>" />
1139 <div class="mb-3">
1140 <label class="form-label">Agent</label>
1141 <div>
1142 <?php $this->createAgentSelect(true); ?>
1143 </div>
1144 </div>
1145 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
1146 $this->buttonText
1147 ); ?></button>
1148 </form>
1149 </div>
1150 <div id="agentListMenu" class="menu">
1151 <form>
1152 <input type="hidden" name="action" value="insertAgentList" />
1153 <input type="hidden" name="slug" value="<?php echo esc_html(
1154 iHomefinderShortcodeDispatcher::AGENT_LIST_SHORTCODE
1155 ); ?>" />
1156 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
1157 $this->buttonText
1158 ); ?></button>
1159 </form>
1160 </div>
1161 <div id="officeListMenu" class="menu">
1162 <form>
1163 <input type="hidden" name="action" value="insertOfficeList" />
1164 <input type="hidden" name="slug" value="<?php echo esc_html(
1165 iHomefinderShortcodeDispatcher::OFFICE_LIST_SHORTCODE
1166 ); ?>" />
1167 <button class="btn btn-primary clipboard-button"><?php echo esc_html(
1168 $this->buttonText
1169 ); ?></button>
1170 </form>
1171 </div>
1172 </div>
1173 </div>
1174
1175 <?php
1176 }
1177
1178 private function createAgentSelect($required = false)
1179 {
1180 $values = $this->formData->getAgents(); ?>
1181 <select class="form-select" id="agentId" name="agentId"
1182 <?php if ($required === true) { ?>
1183 required="required"
1184 <?php } ?>
1185 >
1186 <option value="">Select One</option>
1187 <?php foreach ($values as $index => $value) { ?>
1188 <option value="<?php echo esc_attr($value->agentId); ?>">
1189 <?php echo esc_html($value->agentName); ?>
1190 </option>
1191 <?php } ?>
1192 </select>
1193 <?php
1194 }
1195
1196 private function createBoardSelect($required = false)
1197 {
1198 $values = $this->formData->getBoards();
1199 if ($this->getBoardCount() === 1) {
1200 $value = $values[0]; ?>
1201 <input id="boardId" name="boardId" value="<?php echo esc_html(
1202 $value->boardId
1203 ); ?>" type="hidden" />
1204 <?php
1205 } elseif ($this->getBoardCount() > 1) { ?>
1206 <select class="form-select" id="boardId" name="boardId"
1207 <?php if ($required === true) { ?>
1208 required="required"
1209 <?php } ?>
1210 >
1211 <option value="">Select One</option>
1212 <?php foreach ($values as $index => $value) { ?>
1213 <option value="<?php echo esc_html($value->boardId); ?>">
1214 <?php echo esc_html($value->boardName); ?>
1215 </option>
1216 <?php } ?>
1217 </select>
1218 <?php }
1219 }
1220 private function getBoardCount()
1221 {
1222 $values = $this->formData->getBoards();
1223 $result = count($values);
1224 return $result;
1225 }
1226 private function createOfficeSelect($required = false)
1227 {
1228 $values = $this->formData->getOffices(); ?>
1229 <select class="form-select" id="officeId" name="officeId"
1230 <?php if ($required === true) { ?>
1231 required="required"
1232 <?php } ?>
1233 >
1234 <option value="">Select One</option>
1235 <?php foreach ($values as $index => $value) { ?>
1236 <option value="<?php echo esc_html($value->officeId); ?>">
1237 <?php echo esc_html($value->officeName); ?>
1238 </option>
1239 <?php } ?>
1240 </select>
1241 <?php
1242 }
1243
1244 private function createHotSheetsSelect($required = false)
1245 {
1246 $values = $this->formData->getHotSheets(); ?>
1247 <select class="form-select" id="hotSheetId" name="hotSheetId"
1248 <?php if ($required === true) { ?>
1249 required="required"
1250 <?php } ?>
1251 >
1252 <option value="">Select One</option>
1253 <?php foreach ($values as $index => $value) { ?>
1254 <option value="<?php echo esc_html($value->hotsheetId); ?>">
1255 <?php echo esc_html($value->displayName); ?>
1256 </option>
1257 <?php } ?>
1258 </select>
1259 <?php
1260 }
1261
1262 private function createCitySelect($required = false)
1263 {
1264 $values = $this->formData->getCities(); ?>
1265 <select class="form-select" id="cityId" name="cityId"
1266 <?php if ($required === true) { ?>
1267 required="required"
1268 <?php } ?>
1269 >
1270 <option value="">Select One</option>
1271 <?php foreach ($values as $index => $value) { ?>
1272 <option value="<?php echo esc_html($value->cityId); ?>">
1273 <?php echo esc_html($value->displayName); ?>
1274 </option>
1275 <?php } ?>
1276 </select>
1277 <?php
1278 }
1279
1280 private function createPropertyTypeSelect($required = false)
1281 {
1282 $values = $this->formData->getPropertyTypes(); ?>
1283 <select class="form-select" id="propertyType" name="propertyType"
1284 <?php if ($required === true) { ?>
1285 required="required"
1286 <?php } ?>
1287 >
1288 <option value="">Select One</option>
1289 <?php foreach ($values as $index => $value) { ?>
1290 <option value="<?php echo esc_html(
1291 $value->propertyTypeCode
1292 ); ?>">
1293 <?php echo esc_html($value->displayName); ?>
1294 </option>
1295 <?php } ?>
1296 </select>
1297 <?php
1298 }
1299
1300 private function createSortSelect($required = false)
1301 {
1302 ?>
1303 <select class="form-select" id="sortBy" name="sortBy"
1304 <?php if ($required === true) { ?>
1305 required="required"
1306 <?php } ?>
1307 >
1308 <option value="">Select One</option>
1309 <option value="pd">Price (High to Low)</option>
1310 <option value="pa">Price (Low to High)</option>
1311 <option value="st">Status</option>
1312 <option value="cn">City</option>
1313 <option value="ds">Listing Date</option>
1314 <option value="lpd">Type / Price Descending</option>
1315 <option value="ln">Listing Number</option>
1316 </select>
1317 <?php
1318 }
1319
1320 private function createDisplayTypeSelect($required = false)
1321 {
1322 ?>
1323 <select class="form-select" id="displayType" name="displayType"
1324 <?php if ($required === true) { ?>
1325 required="required"
1326 <?php } ?>
1327 >
1328 <option value="">Default</option>
1329 <option value="list">List</option>
1330 <option value="grid">Grid</option>
1331 </select>
1332 <?php
1333 }
1334
1335 private function createHeaderSelect($required = false)
1336 {
1337 ?>
1338 <select class="form-select" id="header" name="header"
1339 <?php if ($required === true) { ?>
1340 required="required"
1341 <?php } ?>
1342 >
1343 <option value="true">Yes</option>
1344 <option value="false">No</option>
1345 </select>
1346 <?php
1347 }
1348
1349 private function createHotSheetReportTypeSelect($required = false)
1350 {
1351 ?>
1352 <select class="form-select" id="hotSheetReportType" name="hotSheetReportType"
1353 <?php if ($required === true) { ?>
1354 required="required"
1355 <?php } ?>
1356 >
1357 <option value="">Select One</option>
1358 <option value="listing">Listing Report</option>
1359 <option value="openHome">Open Houses Report</option>
1360 <option value="market">Market Report</option>
1361 </select>
1362 <?php
1363 }
1364
1365 private function createStatusSelect($required = false)
1366 {
1367 ?>
1368 <select class="form-select" id="status" name="status"
1369 <?php if ($required === true) { ?>
1370 required="required"
1371 <?php } ?>
1372 >
1373 <option value="active">Active</option>
1374 <option value="sold">Sold</option>
1375 </select>
1376 <?php
1377 }
1378 }
1379