Beispiel #1
0
 public function profilegetoutput()
 {
     if (intval($_REQUEST['concr'])) {
         return '<p><strong>Your request has been sent.</strong></p>';
     } else {
         if (intval($_REQUEST['sr']) > 0) {
             return profilef::profilegetresults_new($_REQUEST['sr']) . profilef::profilegetpdfbutton($_REQUEST['sr']);
         } else {
             if (profilef::profilecansearch()) {
                 if (profilef::profileconcierge()) {
                     $ret = '';
                     $ret .= '<form action="" method="post" class="ptsearch">';
                     $conccont = true;
                     if (isset($_REQUEST['concr'])) {
                         if (intval($_REQUEST['concr'])) {
                             $ret .= '<h2>Concierge Search</h2>';
                             $ret .= '<p><strong>Your request has been sent.</strong></p>';
                             $conccont = false;
                         } else {
                             $ret .= '<p><strong>You need to enter an address.</strong></p>';
                         }
                     } else {
                         //$ret.='<p>What is the address of the property that you would like a report for?</p>';
                     }
                     if ($conccont) {
                         $ret .= '<div id="concierge-mainbody" class="container concierge-mainbody">';
                         $ret .= '<div class="row">' . '<div id="t3-content" class="t3-content col-xs-12">';
                         $ret .= '<div class="item-pageresource clearfix">' . '<article itemscope="" itemtype="http://schema.org/Article">';
                         $ret .= '<header class="text-center ">' . '<img src="Connect_files/images/concierge.png" class="img-responsive center-block">';
                         $ret .= '<h2 class="header-search">Concierge <span>Search</span></h2>' . '</header>';
                         $ret .= '<section><div class="row"><div class="col-lg-12"><div class="input-group">';
                         $ret .= '<input type="text" name="conciergeaddy" class="form-control" placeholder="What is the address of the property you would like a report for?">';
                         $ret .= '<span class="input-group-btn"><button class="btn btn-default" type="submit">Submit</button></span></div>';
                         $ret .= '</div></div>';
                         $ret .= '<p class="text-in-site">Within <strong class="bol-text-site">24 hours</strong>, our service expert will be back with your custom report. </p>';
                         $ret .= '</section></article></div></div></div></div>';
                     }
                     $ret .= '</form>';
                     return $ret;
                 }
                 return profilef::profilegetformhtml() . '<script type="text/javascript">' . profilef::profilegetformjs() . '</script><noscript><p>You need javascript enabled to use this form.</p></noscript>';
             } else {
                 return '<div class="alert alert-danger expiredPanel" role="alert">Your subscription is either pending or expired. ' . '<a href="index.php/plans.html">Click here to renew or upgrade your subscription.</a></div>' . '<script type="text/javascript">jQuery(document).ready(function($){$(".reportCreator").show();});</script>';
             }
         }
     }
 }