require_once("content/engine/engine_config.php"); ?>
Success Stories
 |
Come see some of the most successful wire workers in the trade!
Read on to hear the story of many wire workers and, hopefully, learn some tips and
tricks that have made them successful!
include("giveawayad.php"); ?>
Think you have what it takes? Click Here to Submit Your Story!
|
include("questions.php");
mysql_select_db("homejewe_cart");
$res = mysql_query("SELECT `showDate` FROM `success` ORDER BY `showDate` DESC LIMIT 1");
$ro = mysql_fetch_array($res);
$nextPublish = strtotime($ro[showDate]) + 60*60*24*7;
if ($step == '') {
if ($session[username] == '') $sqltest = " AND TO_DAYS(NOW()) >= TO_DAYS(`showDate`)";
$result = mysql_query("SELECT *, TO_DAYS(NOW()) >= TO_DAYS(`showDate`) AS `showing` FROM `success` WHERE `id` > 1 AND `approved` = 1 AND `show` = 1 $sqltest ORDER BY `showDate` DESC");
} else {
if ($step == "publish") {
$test = " AND `approved` = 1 AND `show` = 0";
} elseif ($step == "approve") {
$test = " AND `approved` = 0 AND `show` = 0";
}
$result = mysql_query("SELECT * FROM `success` WHERE `id` > 1 $test ORDER BY `approvedDate` DESC, `id` DESC");
}
if (mysql_num_rows($result) <= 0) {
print "
This is a new program we just started and there aren't any success stories posted yet.
Click Here to Submit Yours and You Could Be the First!";
} else {
$printed = 0;
while ($row = mysql_fetch_array($result)) {
//print_r ($row);
$bestsellerenlarge = 0;
if (file_exists("/store/images/custom/bestseller$row[id].jpg")) {
$size = getimagesize("/store/images/custom/bestseller$row[id].jpg");
echo "......... size = ".$size."
";
if ($size[0] > 300 || $size[1] > 300) $bestsellerenlarge = 1;
}
$photoenlarge = 0;
if (file_exists("/store/images/custom/photo$row[id].jpg")) {
$size = getimagesize("/store/images/custom/photo$row[id].jpg");
echo "......... size = ".$size."
";
if ($size[0] > 300 || $size[1] > 300) $photoenlarge = 1;
}
print "
";
print "";
print "";
print "";
print " ";
print " Click to Enlarge";
print " | ";
print "$row[name] From $row[city], $row[state]";
print " |
";
print "";
print "";
if ($session[username] != '') print " Edit This Story ";
if ($session[username] != '') print "Search For This Customer ";
if ($row[approved] == 0) {
print "This Story Has Not Been Approved! ";
if (@in_array('admin', $session[sections])) print "Email for image ";
print "Approve This Story ";
print "Decline This Story ";
}
if ($row[approved] == 1 && $row[show] == 0 && @in_array('admin', $session[sections])) {
?>
This Story Has Not Been Published!
if (@in_array('admin', $session[sections])) { ?>
} ?>
}
if (!$row[showing] && $row[show] == 1) print "Unpublished Publish Date: $row[showDate] Promo: $row[promoString] ";
print "";
print " |
";
print "
";
for ($i = 0; $i < count($questions); $i++) {
if ($row["question$i"] != '') {
if ($i == 2 && file_exists("bestseller$row[id].jpg")) {
print "
";
}
print "
";
}
} ob_end_flush();
$printed++;
if (mysql_num_rows($result) != $printed || $printed == 1) {
print "
";
include("masterad.php");
print "
";
}
}
print "
Click Here to Submit Your Story!";
}
?>