<?php require "_admin/_globals.php"; require CLASS_MP_BUSINESS; require CLASS_ADS; $biz = new handleBusiness(); $ads = new handleAds(); $page = 1; if ($_GET["page"] != "") { $page = $_GET["page"]; } $list_biz = $biz->searchBusinesses($_GET["search"], $_GET["city"], $_GET["alpha"], $page); $map_pointer = $list_biz["cords"]; $list_cats = $biz->listCats($_GET["search"], 1); ?> <?php getHeader("public", "yes"); ?> <div class="content-full"> <div id="link-column-container" class="white"> <div id="link-column"> <?php if ($list_cats["counter"] != "0") { echo $list_cats["display"]; } if ($list_biz["cities"] != "") { echo $list_biz["cities"]; } ?>
<?php require "_globals.php"; require SECURITY; include CLASS_MP_BUSINESS; $biz = new handleBusiness(); if (isset($_POST["submit"])) { $biz->createNewCompany(); foreach ($_POST["fields"] as $db_field => $db_value) { $biz->updateData($db_field, $db_value, $biz->rec["record_id"]); } $biz->updateData("latitude", $_POST["latitude"], $biz->rec["record_id"]); $biz->updateData("longitude", $_POST["longitude"], $biz->rec["record_id"]); $biz->updateData("search_terms", $_POST["search_terms"], $biz->rec["record_id"]); foreach ($_POST["day"] as $key => $value) { if ($value["closed"] == "on") { $build .= "CL|"; } elseif ($value["by_appointment"] == "on") { $build .= "BA|"; } else { $build .= $value["o_hour"] . ":" . $value["o_min"] . "-" . $value["c_hour"] . ":" . $value["c_min"] . "|"; } } $business_hours = rtrim($build, "|"); $biz->updateData("business_hours", $business_hours, $biz->rec["record_id"]); if (trim($_POST["new_sd_cat"]) != "") { $biz->addServiceDirectoryCat(); } $biz->__construct(); header("location: company_edit.php?id=" . $biz->id . "&m=2"); exit;
<?php require "_globals.php"; require SECURITY; include CLASS_MP_BUSINESS; include CLASS_ADS; $biz = new handleBusiness(); $ads = new handleAds(); if (isset($_POST["submit"])) { $ads->adCreate(); $rem_scpm[$_POST["scpm"]] = " selected"; if ($_POST["ufn"] == 1) { $rem_ufn = " checked"; } $ads->createAdSheet(); header("location: " . $_SERVER["PHP_SELF"] . "?id=" . $_GET["id"] . "&adid=" . $ads->rec["id"] . "&m=1"); exit; } else { $rem_scpm[$ads->rec["cpm"]] = " selected"; if ($ads->rec["ufn"] == 1) { $rem_ufn = " checked"; } if ($ads->rec["reset_cpm"] == 1) { $rem_resest = " checked"; } } if (isset($_GET["m"])) { $mess[1] = "1 Ad created/modified successfully."; $message = $mess[$_GET["m"]]; } ?>
<?php require "_admin/_globals.php"; require CLASS_MP_BUSINESS; require CLASS_ADS; $biz = new handleBusiness(); $catquery = mysql_query("SELECT * FROM `" . SD_TABLE_NAME . "` ORDER BY `category`;"); while ($catrec = mysql_fetch_assoc($catquery)) { $sd_cats[$catrec[id]] = $catrec[category]; $order_cat .= " `sd_cat` = '" . $catrec[id] . "',"; } $query = mysql_query("SELECT * FROM `" . MP_TABLE_NAME . "` WHERE `sd_cat` != '' ORDER BY " . $order_cat . " `business_name` ASC;"); while ($rec = mysql_fetch_assoc($query)) { $business[$rec["sd_cat"]][] = $biz->cardSericeDirectory($rec); } if (is_array($sd_cats)) { foreach ($sd_cats as $key => $value) { if (is_array($business[$key])) { $build_sd .= "<div class='sd-title'>" . $value . " - <a href=\"#top\" class=\"small white\">Back To Top</a><a name=\"" . $value . "\"></a></div>"; $build_cats .= "<a href=\"#" . $value . "\" class='medium'>" . $value . "</a>"; foreach ($business[$key] as $subkey => $card) { $build_sd .= $card . "<br>"; } } } } $page_title = PAGETITLE . " Service Directory"; ?> <?php getHeader("public", "yes");
<?php require "_globals.php"; require SECURITY; if (isset($_GET[submit])) { include CLASS_MP_BUSINESS; $biz = new handleBusiness(); $search_result = $biz->streetSearchFunction(); } $field_selected[$_GET[type]] = "selected"; ?> <?php getHeader("admin"); ?> <h3>Street Search</h3> <p>For all companies located on a specific street, enter the street name and the city. To make sure you have the specific street you want.</p> <?php echo $message_format; ?> <form action="<?php echo $PHP_SELF; ?> " method="get"> Street: <input type="text" name="street" value="<?php echo stripslashes($_GET["street"]); ?>
<?php require "_globals.php"; require SECURITY; include CLASS_MP_BUSINESS; $biz = new handleBusiness(); switch ($_GET["action"]) { case "disable": $options = "<p>Are you sure you want to disable this business?</p><a href=\"" . $_SERVER["PHP_SELF"] . "?id=" . $_GET["id"] . "&action=" . $_GET["action"] . "&option=yes\" class=\"expandable-link\">YES</a> <a href=\"company_view.php?id=" . $_GET["id"] . "\" class=\"expandable-link\">NO</a>\r\n"; if ($_GET["option"] == "yes") { $biz->updateStatus(2); $options = "<p><a href=\"" . $_SERVER["PHP_SELF"] . "?id=" . $_GET["id"] . "&action=enable&option=yes\" class=\"green\">Click here</a> to re-enable this business.</p>"; $message = "1 Company has been disabled"; $biz->__construct(); } break; case "enable": $options = "<p>Are you sure you want to enable this business?</p><a href=\"" . $_SERVER["PHP_SELF"] . "?id=" . $_GET["id"] . "&action=" . $_GET["action"] . "&option=yes\" class=\"expandable-link\">YES</a> <a href=\"company_view.php?id=" . $_GET["id"] . "\" class=\"expandable-link\">NO</a>\r\n"; if ($_GET["option"] == "yes") { $biz->updateStatus(1); $options = "<p><a href=\"" . $_SERVER["PHP_SELF"] . "?id=" . $_GET["id"] . "&action=disable&option=yes\" class=\"green\">Click here</a> to disable this business.</p>"; $message = "1 Company has been enabled"; $biz->__construct(); } break; } ?> <?php
<?php require "_globals.php"; require SECURITY; include CLASS_MP_BUSINESS; $biz = new handleBusiness(); if (isset($_POST["submit"])) { foreach ($_POST["fields"] as $db_field => $db_value) { $biz->updateData($db_field, $db_value, $_POST["id"]); } $biz->updateData("profile_text", $_POST["profile_text"], $_POST["id"]); $message = "1 This listing has been updated."; $biz->__construct(); } $profile_flag_option[$biz->rec["profile_flag"]] = " checked"; ?> <?php getHeader("admin"); ?> <script type="text/javascript" src="<?php echo PATHTOHTML . PATHTOADMIN; ?> /ckeditor/ckeditor.js"></script> <h3>Edit Company Profile</h3> <?php echo $biz->buildCard(); ?>
<?php require "_globals.php"; require SECURITY; include CLASS_MP_BUSINESS; $biz = new handleBusiness(); if (isset($_POST["submit"])) { foreach ($_POST["fields"] as $db_field => $db_value) { $biz->updateData($db_field, $db_value, $_POST["id"]); } $biz->saveMedia(); $biz->saveIcons(); $message = "1 This listing has been updated."; $biz->__construct(); } if (isset($_GET["remove"])) { $biz->removeMedia($_GET["remove"]); } $business_hours_flag_option[$biz->rec["business_hours_flag"]] = " checked"; $bold_flag_option[$biz->rec["bold_flag"]] = " checked"; $highlight_flag_option[$biz->rec["highlight_flag"]] = " checked"; $sponsor_flag_option[$biz->rec["sponsor_flag"]] = " checked"; $profile_flag_option[$biz->rec["profile_flag"]] = " checked"; $product_flag_option[$biz->rec["product_flag"]] = " checked"; $gallery_flag_option[$biz->rec["gallery_flag"]] = " checked"; $video_flag_option[$biz->rec["video_flag"]] = " checked"; ?> <?php getHeader("admin"); ?>
<?php require "_globals.php"; require SECURITY; if (isset($_GET[submit])) { include CLASS_MP_BUSINESS; $biz = new handleBusiness(); $search_result = $biz->searchFunction(); } $field_selected[$_GET[type]] = "selected"; ?> <?php getHeader("admin"); ?> <h3>Search</h3> <p>When searching for a business, you can search by either the company name, address, street, city, phone number, web address, or any of the search terms that are assoicated with that business. TIP! When searching by phone number, input numbers only, no symbols. Example: (707) 555-4646 becomes 7075554646.</p> <?php echo $message_format; ?> <form action="<?php echo $PHP_SELF; ?> " method="get"> Search: <input type="text" name="search" value="<?php echo stripslashes($_GET["search"]);
<?php require "_globals.php"; require SECURITY; include CLASS_MP_BUSINESS; $biz = new handleBusiness(); ?> <?php getHeader("admin"); ?> <h3>Viewing Company Information</h3> <?php echo $biz->buildCard(); ?> <h4>Statistics</h4> <table class="form"> <tr> <td class="field-name">Company Hits: <a href="#" onmouseover="drc('Each time this company is listed either within a list, a search, home page, etc, this stat will increase by one. This is also known as impressions.','Marketplace Help Tool'); return true;" onmouseout="nd(); return true;" class="field-info">[?]</a></td> <td class="field-value"><?php echo number_format($biz->rec["counter_list"]); ?> </td> </tr> <tr> <td class="field-name">Profile Views: <a href="#" onmouseover="drc('Each time a viewer clicks on the company\'s listing and views the profile page, this stat will increase by one. This is also known as pageviews.','Marketplace Help Tool'); return true;" onmouseout="nd(); return true;" class="field-info">[?]</a></td> <td class="field-value"><?php
<?php require "_globals.php"; require SECURITY; include CLASS_MP_BUSINESS; $biz = new handleBusiness(); if (isset($_POST["submit"])) { foreach ($_POST["fields"] as $db_field => $db_value) { $biz->updateData($db_field, $db_value, $_GET["id"]); } $biz->saveMedia(); $biz->__construct(); } if (isset($_GET["remove"])) { $biz->removeMedia($_GET["remove"]); } $sponsor_flag_option[$biz->rec["sponsor_flag"]] = " checked"; $gallery_flag_option[$biz->rec["gallery_flag"]] = " checked"; $video_flag_option[$biz->rec["video_flag"]] = " checked"; ?> <?php getHeader("admin"); ?> <h3>Viewing Company Media</h3> <?php echo $biz->buildCard(); ?>
<?php require "_admin/_globals.php"; require CLASS_MP_BUSINESS; require CLASS_ADS; $biz = new handleBusiness(); $ads = new handleAds(); $map_pointer[] = array("latitude" => $biz->rec["latitude"], "longitude" => $biz->rec["longitude"]); if ($biz->rec["full_address"] != "") { $build .= $biz->rec["full_address"] . " "; } if ($biz->rec["city_name"] != "") { $build .= $biz->rec["city_name"] . " "; } if ($biz->rec["state_code"] != "") { $build .= $biz->rec["state_code"] . " "; } if ($biz->rec["zip"] != "") { $build .= $biz->rec["zip"] . " "; } if ($biz->rec["phone"] != "") { $build .= fixPhone($biz->rec["phone"]) . " "; } if (trim($biz->rec["web_address"]) != "") { $build .= "<a href=\"goto.php?id=" . $biz->rec["record_id"] . "&t=w\" class=\"medium blue underline\" target=\"_blank\">Visit Web Site</a> \r\n"; } if ($biz->rec["sponsor_flag"] != "") { $build .= "<br/><b><i>Sponsored Listing</i></b>\r\n"; } $page_title = PAGETITLE . ": " . $biz->rec["business_name"] . " " . fixPhone($biz->rec["phone"]); $page_keywords = $biz->rec["search_terms"] . " " . $biz->rec["full_address"] . " " . $biz->rec["city_name"] . " " . $biz->rec["state_code"] . " " . $biz->rec["zip"];
<?php require "_globals.php"; require SECURITY; include CLASS_MP_BUSINESS; $biz = new handleBusiness(); if (isset($_POST["submit"])) { if ($_POST["category_select"] == "") { $message = "2 Please select a category. Categories were not updated."; } else { if (true === $biz->updateData($_POST["category_number"], $_POST["category_select"], $_GET["id"])) { $message = "1 Category has been updated successfully. You should see the update reflected below."; } else { $message = "2 There was an error updating this category."; } $biz->__construct(); } } if (isset($_GET["remove"])) { $message = "2 There was an error removing this category. Categories were not updated."; if (true === $biz->updateData($_GET["remove"], "", $_GET["id"])) { $message = "1 Category has been removed. You should see the update reflected below."; } $biz->__construct(); } ?> <?php getHeader("admin"); ?>
<?php require "_admin/_globals.php"; require CLASS_MP_BUSINESS; $biz = new handleBusiness(); switch ($_GET["t"]) { case "d": $biz->updateStats($_GET[id], "view"); header("location: business_detail.php?id=" . $_GET["id"]); break; case "w": $query = mysql_query("SELECT * FROM `" . MP_TABLE_NAME . "` WHERE `record_id` = '" . $_GET[id] . "';"); $rec = mysql_fetch_assoc($query); if ($rec["web_address"] != "") { $biz->updateStats($_GET["id"], "click"); $web_address = $rec["web_address"]; if (substr($web_address, 0, 7) != "http://") { $web_address = "http://" . $rec["web_address"]; } header("location: " . $web_address); } else { header("location: business_detail.php?id={$_GET['id']}"); } break; }
<?php require "_admin/_globals.php"; require CLASS_MP_BUSINESS; require CLASS_ADS; $biz = new handleBusiness(); $ads = new handleAds(); $link_bar = listHomeCats($index_page); ?> <?php getHeader("public"); ?> <div id="link-column-container"> <div id="link-column"><?php echo $link_bar; ?> </div> <div id="top-3-column"><?php echo $biz->mostRequested(); ?> </div> <div class='white small' style='display: block; clear: both; text-align: center; padding: 10px 0px 10px 0px;'><?php echo COPYRIGHT; ?> </div> </div> <div id="content-column-content"> <div class="content-title">Featured Merchant</div> <div id="content-column"><?php
<?php require "_globals.php"; require SECURITY; include CLASS_MP_BUSINESS; $biz = new handleBusiness(); if (isset($_GET["submit"])) { if ($_GET["category_select"] == "") { $message = "2 Please select a category. Categories were not updated."; } else { if (true === $biz->updateData($_GET["category_number"], $_GET["category_select"], $_GET["id"])) { $message = "1 Category has been updated successfully. You should see the update reflected below."; } else { $message = "2 There was an error updating this category."; } $biz->__construct(); } } ?> <?php getHeader("admin"); ?> <h3>Update Company Categories</h3> <?php echo $biz->buildCard(); ?> <?php