Category Archives: Uncategorized

DIY a/c

The Most Creative Air Conditioners ever
Jul 21, 2017

These homemade air-conditioner designs take the mystery out of cold-air production. Some are complicated, some are cheap and simple, some run on alternative energy, and the last one is so out there that you’ll just have to try it. Check out the links below to our favorite DIY air conditioners from our friends at Instructables, and good luck keeping cool.

Advertisement – Continue Reading Below
The California Cooler

The California Cooler is a revival of an old technology driven by an insight that’s overlooked in these days of engineered indoor environments: Cool air keeps things cool. In the days before refrigerators, pantries in Northern California homes had outside vents that preserved perishables throughout cool nights. With this project, you can bring them back.

Advertisement – Continue Reading Below
Liquid-Cooled Car Seats

Afraid your baby’s seat is getting too hot? A cooler, a bilge pump, freezer packs and tubing will keep you and your baby cool.

Dew Bucket: An Evaporative Drink Cooler

Advertisement – Continue Reading Below
Consider these two facts: Evaporation cools things, and bottles can’t sweat like people. If they could, they would be able to keep their own contents cool. Here’s a way to give your drinks their own perspiration system.

Portable Air Conditioner

Advertisement – Continue Reading Below
This is a $10 air-conditioner built around an ice chest. The coolant is, you guessed it, ice. It’s practical and cheap, but even if you don’t plan to make one, click through to read the back story of how it was conceived. The main character is an electric truck circa 1979, with cameos by store-bought $500 portable A/Cs and a Tesla Roadster.

Garden-Watering A/C

Advertisement – Continue Reading Below
Air conditioners can dump hundreds of gallons of water each year. With a pump and some creative pipe work, you can channel that otherwise wasted water into your garden.

Homemade A/C

Advertisement – Continue Reading Below
The mastermind behind these instructions built an air conditioner to circumvent a rule in the office. Apparently, they can’t use A/C, but fans are just fine. So, this DIYer rigged an A/C by pumping cold water in an ice chest through copper tubing positioned in front of a fan blade.

Advertisement – Continue Reading Below
DIY Air Conditioner With Heat Exchanger

Ugly and effective, this air conditioner costs as much as you’d pay to run a fan and water the lawn at the same time. If the water coming into your home is cold in the summer, you can divert it through a maze of copper pipes with aluminum fins, place the contraption in front of a fan, and voila: The water cools the house on its way to the lawn.

Advertisement – Continue Reading Below
Mini Solar A/C

Salvage a computer fan, power it with a solar cell, and surround it with wet cloth. That’s the gist of this mini solar A/C. At $5, it’s cheap too. You could place a half dozen of these around the house. Just make sure they match the curtains.

Advertisement – Continue Reading Below
Solar-Powered Air Conditioner

On smoldering hot days, Rob Patto derives smug satisfaction knowing that the same sun that keeps him huddled indoors is also cooling his home. Here, he describes how he gutted an evaporative cooler and cobbled his A/C together from salvaged and new parts. Be sure to read Patto’s separate instructions on setting up solar panels to power the unit: http://www.instructables.com/id/DIY-Solar-Setup/

Advertisement – Continue Reading Below
Tiny, Portable USB Fan Air Conditioner
Using only a tin can, a CD, a computer fan and ice, this is a brilliant design for a tiny air conditioner. The best thing about these instructions are that their maker doesn’t speak English as a first language, so they’re concise and rely heavily on photos.

Advertisement – Continue Reading Below
How to Make a Stirling Engine Fan
This must-do DIY project turns a stack of two soft-drink cans, a balloon and some intricately folded wire into a goofy and brilliant rotating area fan.

Watch Next

Zipline economics

The life span of a zipline, is determined by the cable, anchors and pulleys,commercial use ziplines, made by us, are aimed to provide a life span of approximately 20 000 to 30 000 jumps, these jumps are equivalent to 8 years of heavy duty or, 12 years with a lighter use, with a daily and proper maintenance.

We provide a simple training for the maintenance of ziplines:

Keep the cable oiled (every 2 months).
Keep the bearings of the pulleys oiled (every 2 months).
Zip lines need to have periodic revisions every two months, we would train the personnel for them to perform the revision, it is really simple:

Anchors and / or points where the cable attaches.

Screws and cable oppressors.
Harnesses and polyester sling.
Carabiners.
Economic performance
Example 1

Suppose you buy a zipline of 650 feet for a total cost of 30,000 USD for rough use.

The average cost for a jump of 200 meters zip line is 25 USD.

Suppose you have an average of 30 jumps on Saturday, 50 jumps on Sunday and another 50 jumps during the week, the total would 130 jumps per week and the cost that you offer is 25 USD per jump, then you will have a income of:

25 x130 = 3.250 USD a week

From those 3,250 USD per week you should subtract the salary of a person who will operate the zip line during the week and the salary for 2 people to operate it during the weekend, this expense would represent an average of 400 to 500 USD for the staff in a week. In the end, your profit would be between 1500 USD and 1750 USD per week.

Example 2

If you invested 30,000 USD in a zipline, and supose the zipline would provide 20.000 jumpings, and if you charge 20 USD for every jump, in 3 years you would earn around 400,000 USD .

Example 3

In places like Tapalpa Jalisco (Mexico), there are circuits of 5 ziplines for 35 USD. Imagine the money they make in Manzanilla Jalisco (Mexico), where the cost of a jump is up to 25 USD, in Veracruz (Mexico) a jump in an average zipline is between 20 USD and 25 UDS, usually these costs are included along with other services such as accommodation and tourism activities and services.

Tapalpa’sAverage Utility(Mexico): 390,000 USD in 3 years..

Canopy USA give advice to calculate the cost of your zipline to stretch their money and promote your zipline and / or services.

Installations anywhere in USA.

• .

I was attacked as I slept, it was attempted murder, with multiple witnesses, who told the police DETAILS like that it was a well known micronesian guy named casey (KC?) who tried to stab me with a knife, and it was known to be murder for hire paid for by leann castro. The cops refused to put the details in the police report. That is my complaint. t will still be done, I am gathering witness statements

.
Reply ·
I was attacked as I slept, it was attempted murder, with multiple witnesses, who told the police DETAILS like that it was a well known micronesian guy named casey (KC?) who tried to stab me with a knife, and it was known to be murder for hire paid for by leann castro. The cops refused to put the details in the police report. That is my complaint. t will still be done, I am gathering witness statements

flatfiledb database in flatfile format

1;cmx1234;Barbeque Chicken;Barbeque Chicken 1 Duis sagittis ipsum. Praesent de mauris. Fusce nec tellus sed augue semper porta;cartimages/chicken.jpg;12.55;01.00;meat;1 2;cmx1235;Micro Brew Beer;Micro Brew Beer 2 Duis sagittis ipsum. Praesent de mauris. Fusce nec tellus sed augue semper porta;cartimages/beer.jpg;12.55;01.00;alcohol;2 3;cmx1236;Leg of Lamb;Leg of Lamb 3 Duis sagittis ipsum. Praesent de mauris. Fusce nec tellus sed augue semper porta;cartimages/lamb.jpg;12.55;01.00;meat;1 4;cmx1237;Roast Beef;Roast Beef 4 Duis sagittis ipsum. Praesent de mauris. Fusce nec tellus sed augue semper porta;cartimages/roast.jpg;12.55;01.00;meat;1 5;cmx1238;Strawberries;Strawberries 5 Duis sagittis ipsum. Praesent de mauris. Fusce nec tellus sed augue semper porta;cartimages/strawberries.jpg;12.55;01.00;produce;3 6;cmx1239;Tomatos;Tomatos 6 Duis sagittis ipsum. Praesent de mauris. Fusce nec tellus sed augue semper porta;cartimages/tomato.jpg;12.55;01.00;produce;3 7;cmx1240;Grapes;Grapes 7 Duis sagittis ipsum. Praesent de mauris. Fusce nec tellus sed augue semper porta;cartimages/redgrapes.jpg;12.55;01.00;produce;3 8;cmx1241;Red Wine;Red Wine 8 Duis sagittis ipsum. Praesent de mauris. Fusce nec tellus sed augue semper porta;cartimages/wine.jpg;12.55;01.00;alcohol;2 9;cmx1242;Garden Medley;Garden Medley 9 Duis sagittis ipsum. Praesent de mauris. Fusce nec tellus sed augue semper porta;cartimages/platter.jpg;12.55;01.00;produce;3

Mahalo

SIGNATURE:
Clifford "RAY" Hackett www.rayis.me RESUME: www.rayis.me/resume

I founded www.adapt.org in 1980 it now has over 50 million members.
$500 of material=World’s fastest hydrofoil sailboat. http://sunrun.biz

Code 1page FlatFile Ecom

https://cmxads.com/one-page-ecommerce-cms.php

Mahalo

SIGNATURE:
Clifford "RAY" Hackett www.rayis.me RESUME: www.rayis.me/resume

I founded www.adapt.org in 1980 it now has over 50 million members.
$500 of material=World’s fastest hydrofoil sailboat. http://sunrun.biz

On Mon, Jun 17, 2019 at 5:54 PM Ray Hackett <3659745> wrote:

1: <?php
2: session_start();
3: $starttime = microtime();
4: $startarray = explode(" ", $starttime);
5: $starttime = $startarray[1] + $startarray[0];
6: $self = $_SERVER['PHP_SELF'];
7: $PAYMENT_GATEWAY=$self;]
8: //data file
9: $fl=’cart-data.txt’;
10: //add to cart action
11: $page_name=’one-page-ecommerce-cart-cms.php’;
12: //set file product fields array
13: $fields=array(
14: ‘id’,
15: ‘product_code’,
16: ‘product_name’,
17: ‘product_desc’,
18: ‘product_img’,
19: ‘price’,
20: ‘weight’,
21: ‘catalog’,
22: ‘catid’,
23: );
24:
25: $taxout=”;
26: $shipout=”;
27: //gateway and other form variables
28: $tax_rate=’6′;
29: $taxstate=’WV’;
30: $currency=’USD’;
31: //base handling added to ship percentage
32: $handling=’5′;
33: $ship_rate=’10’;
34: //$price=’amount’;
35: //$name=’item_name’;
36: //$num=’item_num’;
37: //$desc=’item_desc’;
38:
39: function flock_utf8_contents($filename){
40: $return = FALSE;
41: if(file_exists($filename) and is_readable($filename)){
42: if($handle = @fopen($filename, ‘r’)){
43: while(!$return){
44: if(flock($handle, LOCK_SH)){
45: if($return = file_get_contents($filename)){
46: flock($handle, LOCK_UN);
47: }}}fclose($handle);}}
48: return mb_convert_encoding($return, ‘UTF-8’,
49: mb_detect_encoding($return, ‘UTF-8, ISO-8859-1’, true));}
50:
51:
52:
53: $str=flock_utf8_contents($fl);
54:
55: function parse_file() {
56: global $str;
57: global $fields;
58: $res=array();
59: $lines=array();
60: $output = array();
61: $output = explode("\n", $str);
62: $output=array_filter($output);
63: $output=array_map(‘trim’, $output);
64: foreach ($output as $key=>$data) {
65: $lines = explode(‘;’, $data);
66: $res[]=array_combine($fields,$lines);
67: }
68: return $res;
69: }
70:
71: $current_url = base64_encode("http://".$_SERVER[object 4].$_SERVER['REQUEST_URI']);
72:
73: $res=parse_file();
74:
75: function find($string, $array){
76: foreach ($array as $key => $value) {
77: unset ($array[$key]);
78: if (in_array($string, $value)) {
79: $array[$key] = $value;}}
80: return $array;}
81:
82: ?>
83: <!doctype html>
84: <html lang="en">
85: <head>
86: <meta charset="utf-8">
87: <title>php simple ecommerce cms with shopping cart just one page of code remarkable and free <?php echo $title;?></title>
88: <meta name="description" content="Free php flatfile database ecommerce and shopping cart script. A complete ecommerce shop and cart all on just one page of code. Easy to set up checkout form to post to google paypal or your gateway. Can modify for you as well. Another great cmxtendable script from handicapped george.">
89: <meta name="robots" content="index">
90: <style type="text/css">
91: body, html {
92: margin-top:10px;
93: font-size:14px;
94: height:100%;
95: min-height:100%;
96: font-family: Tahoma, Arial;
97: background:#E0E0E0;
98: background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFFFFF), to(#E0E0E0 ));*/
99: background: -moz-linear-gradient(top, #FFFFFF 0%, #E0E0E0 100%);*/
100: background: -o-linear-gradient(top, #FFFFFF 0%, #E0E0E0 100%);*/
101: background: linear-gradient(top, #FFFFFF 0%, #E0E0E0 100%);*/
102: }
103: #wrapper {
104: padding:20px;
105: width:750px;
106: margin: auto;
107: min-height:100%;
108: background-color: #ffffff;
109: border: 2px solid #333;
110: /* curved border radius */
111: -moz-border-radius:20px;
112: -webkit-border-radius:20px;
113: -o-border-radius:20px;
114: border-radius:20px;
115: }
116: .box{
117: display: none;
118: width: 100%;
119: }
120:
121: a:hover + .box,.box:hover{
122: display: block;
123: position: relative;
124: z-index: 100;
125: }
126: </style>
127:
128: </head>
129:
130: <body>
131:

132:

133:

134:

135:

138:

Shopping

136: Flatfile Ecommerce CMXtendable Shopping Cart all in just one page of code.
137:

139:
140:

141: <br>
142:

143: $val) {
147:
148: echo ‘

‘;
149: echo “”;
150: echo ‘

‘;
151: echo ‘

‘.$val[“product_name”].’

‘;
152: echo ‘

‘.$val[“product_desc”].’

‘;
153: echo ‘

Price ‘.$currency.$val[“price”].’ Add To Cart

‘;
154: //echo ‘<input type="text" name="product_qty" value="1" />’;
155: echo ‘</div>’;
156: echo ‘<input type="hidden" name="product_code" value="’.$val["product_code"].’">’;
157: echo ‘<input type="hidden" name="type" value="add" />’;
158: echo ‘<input type="hidden" name="return_url" value="’.$current_url.’">’;
159: echo ‘</form>’;
160: echo ‘</div>’;
161: }
162:
163: ?>
164:
165: </div>
166:
167:

168: Shopping Cart

‘;
173: $total = 0;
174: echo “”;
175: echo ‘

    ‘;
    176: $cart_items = 0;
    177:
    178: foreach ($_SESSION[“products”] as $cart_itm)
    179: {
    180: $product_code = $cart_itm[“code”];
    181: $res=parse_file();
    182: for($i=0; $i$rs) {
    187:
    188: echo ‘

  • ‘;
    189: if(empty($cart_itm['qty'])){
    190: $cart_itm['qty']=’1’;
    191: }
    192: echo ‘

    ‘;
    193: echo ‘‘.$rs['product_name'].’ (Item # :’.$rs['product_code'].’) ‘;
    194: echo ‘

    Qty : ‘.$cart_itm['qty'].’

    ‘;
    195: echo ‘

    ‘.$rs['product_desc'].’

    ‘;
    196: echo ‘

    ‘.$currency.$rs['price'].’

    ‘;
    197: echo ‘</div>’;
    198: echo ‘<span style="background:crimson;padding-right:5px;padding-left:5px;text-align:center;"><a style="text-decoration:none;font-weight:bold;color:white;text-align:center;" href="’.$page_name.’?removep=’.$cart_itm["code"].’&return_url=’.$current_url.’">&times; Delete</a></span>’;
    199: echo ‘</li>’;
    200: $subtotal = ($cart_itm['price']*$cart_itm['qty']);
    201: $total = ($total + $subtotal);
    202: echo ‘<input type="hidden" name="item_name['.$cart_items.']" value="’.$rs['product_name'].’" />’;
    203: echo ‘<input type="hidden" name="item_code['.$cart_items.']" value="’.$rs['product_code'].’" />’;
    204: echo ‘<input type="hidden" name="item_desc['.$cart_items.']" value="’.$rs['product_desc'].’" />’;
    205: echo ‘<input type="hidden" name="item_qty['.$cart_items.']" value="’.$cart_itm["qty"].’" />’;
    206:
    207: $cart_items ++;
    208:
    209: }}
    210: echo ‘</ul>’;
    211: echo ‘<span class="check-out-txt">’;
    212: if($tax_rate){
    213: $tax = $total * $tax_rate / 100;
    214: $tax=substr($tax,0,-1);
    215: $total=$total+$tax;
    216: $taxout= "$taxstate tax: $tax_rate% $tax";
    217: }
    218: if($ship_rate){
    219: $shipping = $total * $ship_rate / 100;
    220: $shipping =$shipping+ $handling;
    221: $shipout= ‘shipping ‘.$currency.number_format($shipping,2);
    222: $total=$total+$tax+$shipping;
    223: }
    224: echo ‘<strong>’.$shipout.'<br>Total. : ‘.$currency.number_format($total,2).’ – ‘.$taxout.'</strong>’;
    225: echo ‘</span>’;
    226: if($subtotal>=0){
    227: echo ‘<br><br><input type="submit" name="type" value="Begin Checkout">’;
    228: }
    229: echo ‘</form>’;
    230: }else{
    231: echo ‘<strong>Cart is empty add something.</strong>’;
    232: }
    233: ?>
    234: </div>
    235: <?php
    236: if(isset($_GET["emptycart"]) && $_GET["emptycart"]==1){
    237: $return_url = base64_decode($_GET["return_url"]);
    238: session_destroy();
    239: // header(‘Location:’.$return_url);
    240: echo "<meta http-equiv=\"Refresh\" content=\"0;URL=$return_url\">";
    241: }
    242:
    243: if(isset($_POST["type"]) && $_POST["type"]==’add’){
    244:
    245: $product_code = filter_var($_POST["product_code"], FILTER_SANITIZE_STRING);
    246: $product_qty = filter_var($_POST["product_qty"], FILTER_SANITIZE_NUMBER_INT);
    247: $return_url = base64_decode($_POST["return_url"]); //return url
    248:
    249: if($product_qty > 10){
    250: die("

    Maximum quantity of 10 reached.

    ");
    251: }
    252:
    253: $res=parse_file();
    254: for($i=0; $i<count($res); $i++){
    255: $results = find ($product_code, $res);
    256: }
    257: if ($results) {
    258: foreach ($results as $key=>$rs) {
    259: $new_product = array(array(‘name’=>$rs['product_name'], ‘code’=>$rs['product_code'], ‘qty’=>$cart_itm["qty"], ‘price’=>$rs['price']));
    260:
    261: if(isset($_SESSION["products"])){
    262: $found = false;
    263: foreach ($_SESSION["products"] as $cart_itm){
    264: if($cart_itm["code"] == $product_code){
    265: $product[] = array(‘name’=>$cart_itm["name"], ‘code’=>$cart_itm["code"], ‘qty’=>$product_qty, ‘price’=>$cart_itm["price"]);
    266: $found = true;
    267: }else{
    268: $product[] = array(‘name’=>$cart_itm["name"], ‘code’=>$cart_itm["code"], ‘qty’=>$cart_itm["qty"], ‘price’=>$cart_itm["price"]);
    269: }
    270: }
    271: if($found == false) {
    272: $_SESSION["products"] = array_merge($product, $new_product);
    273: }else{
    274: $_SESSION["products"] = $product;
    275: }
    276: }else{
    277: $_SESSION["products"] = $new_product;
    278: }
    279: }
    280: }
    281: // header(‘Location:’.$return_url);
    282: echo "<meta http-equiv=\"Refresh\" content=\"0;URL=$return_url\">";
    283: }
    284: if(isset($_GET["removep"]) && isset($_GET["return_url"]) && isset($_SESSION["products"])){
    285: $product_code = $_GET["removep"]; //get the product code to remove
    286: $return_url = base64_decode($_GET["return_url"]); //get return url
    287:
    288: foreach ($_SESSION["products"] as $cart_itm){
    289: if($cart_itm["code"]!=$product_code){
    290: $product[] = array(‘name’=>$cart_itm["name"], ‘code’=>$cart_itm["code"], ‘qty’=>$cart_itm["qty"], ‘price’=>$cart_itm["price"]);
    291: }
    292: $_SESSION["products"] = $product;
    293: }
    294: // header(‘Location:’.$return_url);
    295: echo "<meta http-equiv=\"Refresh\" content=\"0;URL=$return_url\">";
    296: }
    297:
    298: echo "

    ";
    299: $endtime = microtime();
    300: $endarray = explode(" ", $endtime);
    301: $endtime = $endarray[1] + $endarray[0];
    302: $totaltime = $endtime – $starttime;
    303: $totaltime = round($totaltime,4);
    304: echo "


    This search took $totaltime seconds to complete.”;
    305:
    306: function convert($size)
    307: {
    308: $unit=array(‘b’,’kb’,’mb’,’gb’,’tb’,’pb’);
    309: return @round($size/pow(1024,($i=floor(log($size,1024)))),2).’ ‘.$unit[$i];
    310: }
    311:
    312: echo ‘ Memory usage ‘ . convert(memory_get_usage(true)) . ‘

    ‘; // 123 kb
    313:
    314:
    315: echo ‘</div>’;
    316: echo ‘<p style="width:100%;text-align:center;"><a href="http://www.cmxads.com/one-page-ecommerce-cms.php">Cmxads.com One Page Ecommerce CMS Php Script</a></p>’;
    317: echo ‘</body>’;
    318: echo ‘</html>’;
    319: ?>

    End

1page EcommerceSite

<?php
session_start();
$starttime = microtime();
$startarray = explode(" ", $starttime);
$starttime = $startarray[1] + $startarray[0];
$self = $_SERVER['PHP_SELF'];
$PAYMENT_GATEWAY=$self;]
//data file
$fl=’cart-data.txt’;
//add to cart action
$page_name=’one-page-ecommerce-cart-cms.php’;
//set file product fields array
$fields=array(
‘id’,
‘product_code’,
‘product_name’,
‘product_desc’,
‘product_img’,
‘price’,
‘weight’,
‘catalog’,
‘catid’,
);

$taxout=”;
$shipout=”;
//gateway and other form variables
$tax_rate=’6′;
$taxstate=’WV’;
$currency=’USD’;
//base handling added to ship percentage
$handling=’5′;
$ship_rate=’10’;
//$price=’amount’;
//$name=’item_name’;
//$num=’item_num’;
//$desc=’item_desc’;

function flock_utf8_contents($filename){
$return = FALSE;
if(file_exists($filename) and is_readable($filename)){
if($handle = @fopen($filename, ‘r’)){
while(!$return){
if(flock($handle, LOCK_SH)){
if($return = file_get_contents($filename)){
flock($handle, LOCK_UN);
}}}fclose($handle);}}
return mb_convert_encoding($return, ‘UTF-8’,
mb_detect_encoding($return, ‘UTF-8, ISO-8859-1’, true));}

$str=flock_utf8_contents($fl);

function parse_file() {
global $str;
global $fields;
$res=array();
$lines=array();
$output = array();
$output = explode("\n", $str);
$output=array_filter($output);
$output=array_map(‘trim’, $output);
foreach ($output as $key=>$data) {
$lines = explode(‘;’, $data);
$res[]=array_combine($fields,$lines);
}
return $res;
}

$current_url = base64_encode("http://".$_SERVER[object 4].$_SERVER['REQUEST_URI']);

$res=parse_file();

function find($string, $array){
foreach ($array as $key => $value) {
unset ($array[$key]);
if (in_array($string, $value)) {
$array[$key] = $value;}}
return $array;}

?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>php simple ecommerce cms with shopping cart just one page of code remarkable and free <?php echo $title;?></title>
<meta name="description" content="Free php flatfile database ecommerce and shopping cart script. A complete ecommerce shop and cart all on just one page of code. Easy to set up checkout form to post to google paypal or your gateway. Can modify for you as well. Another great cmxtendable script from handicapped george.">
<meta name="robots" content="index">
<style type="text/css">
body, html {
margin-top:10px;
font-size:14px;
height:100%;
min-height:100%;
font-family: Tahoma, Arial;
background:#E0E0E0;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFFFFF), to(#E0E0E0 ));*/
background: -moz-linear-gradient(top, #FFFFFF 0%, #E0E0E0 100%);*/
background: -o-linear-gradient(top, #FFFFFF 0%, #E0E0E0 100%);*/
background: linear-gradient(top, #FFFFFF 0%, #E0E0E0 100%);*/
}
#wrapper {
padding:20px;
width:750px;
margin: auto;
min-height:100%;
background-color: #ffffff;
border: 2px solid #333;
/* curved border radius */
-moz-border-radius:20px;
-webkit-border-radius:20px;
-o-border-radius:20px;
border-radius:20px;
}
.box{
display: none;
width: 100%;
}

a:hover + .box,.box:hover{
display: block;
position: relative;
z-index: 100;
}
</style>

</head>

<body>

Shopping

Flatfile Ecommerce CMXtendable Shopping Cart all in just one page of code.

<br>

$val) {

echo ‘

‘;
echo “”;
echo ‘

‘;
echo ‘

‘.$val[“product_name”].’

‘;
echo ‘

‘.$val[“product_desc”].’

‘;
echo ‘

Price ‘.$currency.$val[“price”].’ Add To Cart

‘;
//echo ‘<input type="text" name="product_qty" value="1" />’;
echo ‘</div>’;
echo ‘<input type="hidden" name="product_code" value="’.$val["product_code"].’">’;
echo ‘<input type="hidden" name="type" value="add" />’;
echo ‘<input type="hidden" name="return_url" value="’.$current_url.’">’;
echo ‘</form>’;
echo ‘</div>’;
}

?>

</div>

Shopping Cart

‘;
$total = 0;
echo “”;
echo ‘

    ‘;
    $cart_items = 0;

    foreach ($_SESSION[“products”] as $cart_itm)
    {
    $product_code = $cart_itm[“code”];
    $res=parse_file();
    for($i=0; $i$rs) {

    echo ‘

  • ‘;
    if(empty($cart_itm['qty'])){
    $cart_itm['qty']=’1’;
    }
    echo ‘

    ‘;
    echo ‘‘.$rs['product_name'].’ (Item # :’.$rs['product_code'].’) ‘;
    echo ‘

    Qty : ‘.$cart_itm['qty'].’

    ‘;
    echo ‘

    ‘.$rs['product_desc'].’

    ‘;
    echo ‘

    ‘.$currency.$rs['price'].’

    ‘;
    echo ‘</div>’;
    echo ‘<span style="background:crimson;padding-right:5px;padding-left:5px;text-align:center;"><a style="text-decoration:none;font-weight:bold;color:white;text-align:center;" href="’.$page_name.’?removep=’.$cart_itm["code"].’&return_url=’.$current_url.’">&times; Delete</a></span>’;
    echo ‘</li>’;
    $subtotal = ($cart_itm['price']*$cart_itm['qty']);
    $total = ($total + $subtotal);
    echo ‘<input type="hidden" name="item_name['.$cart_items.']" value="’.$rs['product_name'].’" />’;
    echo ‘<input type="hidden" name="item_code['.$cart_items.']" value="’.$rs['product_code'].’" />’;
    echo ‘<input type="hidden" name="item_desc['.$cart_items.']" value="’.$rs['product_desc'].’" />’;
    echo ‘<input type="hidden" name="item_qty['.$cart_items.']" value="’.$cart_itm["qty"].’" />’;

    $cart_items ++;

    }}
    echo ‘</ul>’;
    echo ‘<span class="check-out-txt">’;
    if($tax_rate){
    $tax = $total * $tax_rate / 100;
    $tax=substr($tax,0,-1);
    $total=$total+$tax;
    $taxout= "$taxstate tax: $tax_rate% $tax";
    }
    if($ship_rate){
    $shipping = $total * $ship_rate / 100;
    $shipping =$shipping+ $handling;
    $shipout= ‘shipping ‘.$currency.number_format($shipping,2);
    $total=$total+$tax+$shipping;
    }
    echo ‘<strong>’.$shipout.'<br>Total. : ‘.$currency.number_format($total,2).’ – ‘.$taxout.'</strong>’;
    echo ‘</span>’;
    if($subtotal>=0){
    echo ‘<br><br><input type="submit" name="type" value="Begin Checkout">’;
    }
    echo ‘</form>’;
    }else{
    echo ‘<strong>Cart is empty add something.</strong>’;
    }
    ?>
    </div>
    <?php
    if(isset($_GET["emptycart"]) && $_GET["emptycart"]==1){
    $return_url = base64_decode($_GET["return_url"]);
    session_destroy();
    // header(‘Location:’.$return_url);
    echo "<meta http-equiv=\"Refresh\" content=\"0;URL=$return_url\">";
    }

    if(isset($_POST["type"]) && $_POST["type"]==’add’){

    $product_code = filter_var($_POST["product_code"], FILTER_SANITIZE_STRING);
    $product_qty = filter_var($_POST["product_qty"], FILTER_SANITIZE_NUMBER_INT);
    $return_url = base64_decode($_POST["return_url"]); //return url

    if($product_qty > 10){
    die("

    Maximum quantity of 10 reached.

    ");
    }

    $res=parse_file();
    for($i=0; $i<count($res); $i++){
    $results = find ($product_code, $res);
    }
    if ($results) {
    foreach ($results as $key=>$rs) {
    $new_product = array(array(‘name’=>$rs['product_name'], ‘code’=>$rs['product_code'], ‘qty’=>$cart_itm["qty"], ‘price’=>$rs['price']));

    if(isset($_SESSION["products"])){
    $found = false;
    foreach ($_SESSION["products"] as $cart_itm){
    if($cart_itm["code"] == $product_code){
    $product[] = array(‘name’=>$cart_itm["name"], ‘code’=>$cart_itm["code"], ‘qty’=>$product_qty, ‘price’=>$cart_itm["price"]);
    $found = true;
    }else{
    $product[] = array(‘name’=>$cart_itm["name"], ‘code’=>$cart_itm["code"], ‘qty’=>$cart_itm["qty"], ‘price’=>$cart_itm["price"]);
    }
    }
    if($found == false) {
    $_SESSION["products"] = array_merge($product, $new_product);
    }else{
    $_SESSION["products"] = $product;
    }
    }else{
    $_SESSION["products"] = $new_product;
    }
    }
    }
    // header(‘Location:’.$return_url);
    echo "<meta http-equiv=\"Refresh\" content=\"0;URL=$return_url\">";
    }
    if(isset($_GET["removep"]) && isset($_GET["return_url"]) && isset($_SESSION["products"])){
    $product_code = $_GET["removep"]; //get the product code to remove
    $return_url = base64_decode($_GET["return_url"]); //get return url

    foreach ($_SESSION["products"] as $cart_itm){
    if($cart_itm["code"]!=$product_code){
    $product[] = array(‘name’=>$cart_itm["name"], ‘code’=>$cart_itm["code"], ‘qty’=>$cart_itm["qty"], ‘price’=>$cart_itm["price"]);
    }
    $_SESSION["products"] = $product;
    }
    // header(‘Location:’.$return_url);
    echo "<meta http-equiv=\"Refresh\" content=\"0;URL=$return_url\">";
    }

    echo "

    ";
    $endtime = microtime();
    $endarray = explode(" ", $endtime);
    $endtime = $endarray[1] + $endarray[0];
    $totaltime = $endtime – $starttime;
    $totaltime = round($totaltime,4);
    echo "


    This search took $totaltime seconds to complete.”;

    function convert($size)
    {
    $unit=array(‘b’,’kb’,’mb’,’gb’,’tb’,’pb’);
    return @round($size/pow(1024,($i=floor(log($size,1024)))),2).’ ‘.$unit[$i];
    }

    echo ‘ Memory usage ‘ . convert(memory_get_usage(true)) . ‘

    ‘; // 123 kb

    echo ‘</div>’;
    echo ‘<p style="width:100%;text-align:center;"><a href="http://www.cmxads.com/one-page-ecommerce-cms.php">Cmxads.com One Page Ecommerce CMS Php Script</a></p>’;
    echo ‘</body>’;
    echo ‘</html>’;
    ?>

    Mahalo

    SIGNATURE:
    Clifford "RAY" Hackett www.rayis.me RESUME: www.rayis.me/resume

    I founded www.adapt.org in 1980 it now has over 50 million members.
    $500 of material=World’s fastest hydrofoil sailboat. http://sunrun.biz