Jump to content

payton.michelle

Members
  • Posts

    28
  • Joined

  • Last visited

About payton.michelle

  • Birthday 01/28/1983

Contact Methods

  • Website URL
    http://www.coroflot.com/michellepayton
  • ICQ
    0

Profile Information

  • Gender
    Male
  • Location
    Las Vegas, NV, USA

payton.michelle's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. ATTENTION:This topic can be deleted. The old topic with my new post has been replied to. PLEASE DO NOT REPLY TO THIS TOPIC. The original topic is named: "Ability to email uploaded files??, Is this a possibility?"Thank you.
  2. I hate to double post something, but.....I think because this was an old topic my new post I posted this morning regarding the old topic has gotten lost. See below:
  3. payton.michelle

    Captcha

    I was just reading through your topic's posts, and while searching for tutorials for my own problem trying to figure out how to allow users to upload a file to the site and have that file emailed to me with their contact information, I found a CAPTCHA tutorial. Webcheatsheet: CAPTCHAI keep posting my own problems with my codes, and thought I should try to give a little help too... Since I believe you should help others in order to get help yourself!I hope that helps a little/at all...
  4. *****************PHP Newbie**********************I'm still having problems making this work. Maybe you guys (justsomeguy &/or mma_fighter123) can help me again like you did yesterday with my dynamic text problem... Thanks again, it's working perfectly and our customer loves the site (the dynamic text problem was a specific item he wanted in his site).Anyway, back to this upload file then email the file as an attachment problem I'm having.I took the mail function you supplied me justsomeguy. I'm having issues putting the email function in with existing code I had already written. Here's what I've got: <!-- P style --><style type="text/css"> p { font-family: geneva, arial, helvetica, sans-serif; font-size: 9pt; line-height: 9pt; color: #000000; } p2 { font-family: geneva, arial, helvetica, sans-serif; font-size: 10pt; line-height: 13pt; color: #000000; } p3 { font-family: geneva, arial, helvetica, sans-serif; font-size: 12pt; line-height: 12pt; style: bold color: #000000; } a { font-family: geneva, arial, helvetica, sans-serif; font-size: 12pt; line-height; 12pt; color: #1d1f5d; } h1 { font-family: arial bold, geneva, helvetica, sans-serif; font-size: 11.5pt; line-height: 12pt; color: #000000; } h2 { font-family: geneva, arial, helvetica, sans-serif; font-size: 20pt; line-height: 20pt; color: #005a53; } font align: right </style></head><body bgcolor="#ffffff" text="#000000" link="#333333" vlink="#666666" alink="#0000FF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><table width="750" border="0" cellpadding="0" cellspacing="0" align="center"><!-- Index header graphic --><tr></td></tr><!-- Index header graphic --><tr><td colspan="2"><img src=http://www.premiumasi.com/premium-gfx/premium-upload-header.gif width=getimagesize height=getimagesize border=0></a><hr size="1" width="100%" noshade></td></tr><tr><td width="750" align="center" valign="top" colspan="2"><p align="center"><?php//$to = "art@premiumasi.com";print "<tr>";print "<td width=\"350\" align=\"left\" valign=\"top\" rowspan=\"2\">";// File Guidelines------------------------------------------------------------------------echo "<p2 align=left><b>File Guidelines:</b><br><br>Files must be saved in one of these formats: ZIP, SIT, AI, EPS, FH, CDR, TIF, JPG, or PDF. <br><br>We also accept PDF files, but only if created from Adobe Illustrator by choosing Save As and checking Preserve Illustrator editing capabilities. Vector files should always be saved with ALL fonts converted to paths/outlines. We support Adobe Illustrator 10 and Macromedia Freehand 10. All CorelDraw files should be exported as AI files.<br><br>File size must be under 2 megabytes. Word, Excel, Doc and similar files are NOT acceptable. <br><br><b>Virtual Mockup:</b><br><br>If your graphic is intended for an imprint/ embroidery/engraving order please provide your PO # (if available), a valid email address, and any other pertinent contact information. <br><br>If you're requesting a virtual mockup, please allow for a full working day to process and send your mockup via email. <br><br>We currently do not offer 4 color process imprints on any of our products. However, depending on the registration, we do allow for 2 spot color imprints on some of our products. We also offer products for both engraving and embroidery.</p2>";// Premium ASI Graphic Upload Form ***********************************************************************************print "<td width=\"400\" align=\"right\" valign=\"top\">";echo "<br><br>";if($action == "send_mail"){echo "<p>";echo "<form action=\"send_mail\" method=\"attachment\"><br>";echo "<enctype=\"multipart/form-data\">";echo "<br />";echo "<input type=\"file\" name=\"uploadFile\">";echo "<input type=\"submit\" value=\"Upload File\">";echo "<p>";echo "Your name <input type=\"text\" name=\"fromname\" size=\"30\" maxlength=\"50\"><br><br>";echo "Your E-mail <input type=\"text\" name=\"fromaddress\" size=\"30\" maxlength=\"50\"><br><br>";echo "Your Phone Number <input type=\"text\" name=\"fromphone\" size=\"30\" maxlength=\"50\"><br><br>";echo "<br>Additional Information (such as PO #, if known)<br>";echo "<textarea name=\"body\" cols=\"40\" rows=\"10\" value=\ maxlength=\"200\"></textarea><br>";echo "<input type=\"hidden\" name=\"action\" value=\"send_graphic\">";echo "</p>";echo "<p>";echo "<input type=\"submit\" name=\"submit\" value=\"Email Graphic\">";echo "</p>";echo "</form>";echo "</td></tr>";}//if($action == "submit"){//echo "<tr><td width=\"100%\">";//echo "<p class=\"a\" align=\"center\">Thank you! Your graphic and information has been sent to the Art Department at Premium.</p>";//echo "</td></tr>";//}//if($action == "send_graphic") {//echo "<tr><td width=\"100%\">";//echo "<p class=\"a\" align=\"center\">Thank you! Your graphic and information has been sent to the Art Department at Premium.</p>";//echo "</td></tr>";//$file = "<uploadFile>";// Premium File/Graphics Upload Form ***********************************************************************************// Send Mail w/attachments Function ******************************$header = 'Content-type: text/html; charset=iso-8859-1' . "\r\n";$header .= "From: $youremail" . "\r\n";$subject = stripslashes($subject);$msg = stripslashes($msg);$msg = $msg . "<p>Sender: <a href=\"mailto:$fromaddress\">$fromaddress</a></p>";$msg = $msg . "<p>" . $file . "</p>";//$msg = $msg . "<p>Quantity - Pricing: $mail_pricing<br>Setup Fee $32.50</p>";//$msg = $msg . "ASI 79370 | UPIC prem0018 | IMPACT pre43 | PPAI 143619 | SAGE 63814";$msg = $msg . "<p>Setup Fee $32.50</p>";//mail functionmail($to, $subject, $msg, $header);}function send_mail($emailaddress, $fromaddress, $fromname, $fromphone, $body, $attachments=false){ $eol="\r\n"; $mime_boundary=md5(time()); if ($attachments !== false) { for($i=0; $i < count($attachments); $i++) { if (is_file($attachments[$i]["file"])) { # File for Attachment $file_name = substr($attachments[$i]["file"], (strrpos($attachments[$i]["file"], "/")+1)); $handle=fopen($attachments[$i]["file"], 'rb'); $f_contents=fread($handle, filesize($attachments[$i]["file"])); $f_contents=chunk_split(base64_encode($f_contents)); //Encode The Data For Transition using base64_encode(); fclose($handle); # Attachment $msg .= "--".$mime_boundary.$eol; $msg .= "Content-Type: ".$attachments[$i]["content_type"]."; name=\"".$file_name."\"".$eol; $msg .= "Content-Transfer-Encoding: base64".$eol; $msg .= "Content-Disposition: attachment; filename=\"".$file_name."\"".$eol.$eol; // !! This line needs TWO end of lines !! IMPORTANT !! $msg .= $f_contents.$eol.$eol; } } } # Setup for text OR html $msg .= "Content-Type: multipart/alternative".$eol; # Text Version $msg .= "--".$mime_boundary.$eol; $msg .= "Content-Type: text/plain; charset=iso-8859-1".$eol; $msg .= "Content-Transfer-Encoding: 8bit".$eol; $msg .= strip_tags(str_replace("<br>", "\n", $body)).$eol.$eol; # HTML Version $msg .= "--".$mime_boundary.$eol; $msg .= "Content-Type: text/html; charset=iso-8859-1".$eol; $msg .= "Content-Transfer-Encoding: 8bit".$eol; $msg .= $body.$eol.$eol; # Finished $msg .= "--".$mime_boundary."--".$eol.$eol; // finish with two eol's for better security. see Injection. # SEND THE EMAIL ini_set(sendmail_from,$fromaddress); // the INI lines are to force the From Address to be used ! mail($emailaddress, $emailsubject, $msg, $attachments); ini_restore(sendmail_from);// echo "mail send";} # To Email Address$emailaddress="art@premiumasi.com";# From Email Address$fromaddress = "from@address.com";# Customer Name$fromname = "fromname";# Customer Phone$fromphone = "fromphone";# Message Subject$emailsubject="Uploaded Graphic";# Use relative paths to the attachments$attachments = Array( Array("file"=>"../../test.ai", "content_type"=>"application/ai"), Array("file"=>"../../test.eps", "content_type"=>"application/eps"), Array("file"=>"../../123.pdf", "content_type"=>"application/pdf"));# Message Body$body="This is a message with <b>".count($attachments)." graphics.";send_mail($emailaddress, $fromaddress, $fromname, $fromphone, $body, $attachments);// Send Mail w/attachments Function ******************************echo "</form></td>";?><!-- Second data table row 1 --><br><br><br></a></p></td></tr></table><p align=center><a href=www.premiumasi.com><img src=http://www.premiumasi.com/premium-gfx/premium.jpg width=400 height=150 border=0></a></a></p></body></html> Also, here's the upload validation code that was already constructed by the last programmer before me. I tested it a few times and it doesn't seem to be working. <?phpif (($_FILES["file"]["type"] == "file/eps")|| ($_FILES["file"]["type"] == "image/ai")|| ($_FILES["file"]["type"] == "image/ai")|| ($_FILES["file"]["type"] == "image/ai")|| ($_FILES["file"]["type"] == "image/ai")&& ($_FILES["file"]["size"] < 2097152)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br />"; echo "Type: " . $_FILES["file"]["type"] . "<br />"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />"; echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />"; if (file_exists("upload/" . $_FILES["file"]["name"])) { echo $_FILES["file"]["name"] . " already exists. "; } else { move_uploaded_file($_FILES["file"]["tmp_name"], "upload/" . $_FILES["file"]["name"]); echo "Stored in: " . "upload/" . $_FILES["file"]["name"]; } } }else { echo "Invalid file"; }?> </body></html> This is probably a pretty detailed function I'm trying to figure out to put into place. Any help or direction in the right direction given would be great!
  5. Yay!It worked!! Premium ProductionsThank you mma_fighter123 & justsomeguy for all of your help and patience with me, you guys rock!
  6. No change with that revision. I also tried with the .txt and without on "2dollar", "4dollar", etc.
  7. Nope, that didn't do it. It's still displaying the default $title for all after that change.
  8. Sorry for the delay between posts. I'm working on this at work and I had to head home yesterday. Ok we're so close for it to work... I replaced the old code and replaced it with the new code from justsomeguy. Take a look at this link to see the change: Premium Productions. It's finding the default $title, but not the $titles referencing "2dollar", "4dollar", etc. I just tried putting ".txt" after "2dollar", "4dollar", etc since those are .txt files being accessed, but it's still displaying the default $title.I think it's almost fixed...
  9. <html><head><title>Welcome to Premium Productions Website</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta NAME="description" CONTENT="Premium Productions, Intelligent Marketing, IDM, Premium asi 79370, imprinting, embroidery, engraving, embroider, engrave, imprint"><meta NAME="keywords" CONTENT="Premium asi 79370, ppai143619, imprinting, embroidery, engraving, engraving, embroider, engrave, imprint, automotive, cameras, clocks, desk accessories, home and personal, lights, 6dollar, radios, tools, umbrellas, 6plusdollar, flashlights, stainless steel mug, calculators, freezer mug, 16 ounce tumbler, gardening, tent, sleeping bag, giftware, promotional products, trade shows"><meta NAME="Author" CONTENT="Michelle Payton"><meta NAME="rating" CONTENT="General"><meta NAME="resource-type" CONTENT="document"><meta NAME="revisit" CONTENT="15 days"><meta NAME="robots" CONTENT="all"><!-- P style --><style type="text/css"> body { font-family: geneva, arial, helvetica, sans-serif; font-size: 10pt; line-height: 11pt; color: #330000; } p { font-family: geneva, arial, helvetica, sans-serif; font-size: 10pt; line-height: 10pt; color: #000000; }p.frame { font-family: geneva, arial, helvetica, sans-serif; font-size: 10pt; line-height: 10pt; color: #000000; padding: 10px; margin-left: 10px; } p.small { font-family: geneva, arial, helvetica, sans-serif; font-size: 9pt; line-height: 9pt; color:#4b4b4b; } p.charges { font-family: geneva, arial, helvetica, sans-serif; font-size: 9pt; line-height: 14pt; color: #ff0000; } a { font-family: geneva, arial, helvetica, sans-serif; font-size: 9pt; line-height; 9pt; color: #1d1f5d; }li { font-family: arial, helvetica, geneva, sans-serif; font-size: 9pt; line-height: 9pt; color: #000000; } h1 { font-family: arial bold, geneva, helvetica, sans-serif; font-size: 12pt; line-height: 12pt; color: #000000; } h2 { font-family: geneva, arial, helvetica, sans-serif; font-size: 10pt; line-height: 12pt; color: #0000; } </style></head><body bgcolor="#FFFFFF" text="#000000" link="#333333" vlink="#666666" alink="#0000FF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><table width="750" border="0" cellpadding="0" cellspacing="0" align="center"><!-- Index header graphic --><tr><td align="left" valign="top" colspan="2"><img src="../idm-graphics/index-top whats new.gif" width="750" height="100" border="0" usemap="#whatsnew"><map id="whatsnew" name="whatsnew"><area shape="rect" coords="-9,33,744,167" href="http://www.premiumconnection.net/test/premiumproductions/index.php"><area shape ="rect" coords="431,1,747,21" href="http://www.premiumconnection.net/test/premiumproductions/index.php" /></td></tr><!-- Index header graphic --><tr><td width="750" align="center" valign="top" colspan="2"><table width="750" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#ffffff"><td style="padding: 5px" width="375" bgcolor="#AAB3DC" align="left" valign="top"><p>Call us at: 1-800-264-7319</p></td><td style="padding: 5px" width="375" bgcolor="#aab3dc" align="right" valign="top"></td><!-- Second data table row 1 --><?phpprint "<tr><td style=\"padding: 2px\" width=\"750\" bgcolor=\"#ffffff\" colspan=\"2\"></td></tr>"; //white spaceprint "<tr><td style= \"padding: 5px\" width=\"750\" bgcolor=\"#c6c6c6\" align=\"center\" colspan=\"2\">";$x_directory=basename($_GET['directory']);$allow_files=array('2dollars', '4dollars', '6dollars', '6plusdollars');if (in_array($x_directory, $allow_files)==true) {$title=intval($x_directory);if (stripos($x_directory, 'plus')!==false) {$title.='.01 or more';}else {$title.='.00 each';}}print '<h1>Choose any of these quality gifts for just $'.$title.'</h1>';print "</td></tr>";print "<tr><td style=\"padding: 2px\" width=\"750\" bgcolor=\"#ffffff\" colspan=\"2\"></td></tr></table></td></tr>";/*** display selected item next to form in seperate data table */print "<tr><td width=\"400\" align=\"center\" valign=\"top\" bgcolor=\"#a3a5dd\">";if($click == "YES") {list($width, $height, $type, $attr) = getimagesize("$item_image");echo "<img src=\"../idm-graphics/image-frame-top.gif\" width=\"$width\" height=\"20\" border=\"0\" align=\"top\">";print "<img src=\"$item_image\" width=\"$width\" height=\"$height\" border=\"0\" align=\"top\">";echo "<img src=\"../idm-graphics/image-frame-bottom.gif\" width=\"$width\" height=\"20\" border=\"0\" align=\"top\">";print "</td>";/* ** read nfo file connected to image displayed*/print "<td width=\"350\" align=\"left\" valign=\"middle\" bgcolor=\"#a3a5dd\">";$fp = fopen($item_nfo, "r");$title_line = 0; while(! feof($fp)) { if($title_line == 0) { $readline = fgets($fp, 1024); $item_title = $readline; print "<h1>$readline</h1><ul>"; $title_line = 1; } $readline = fgets($fp, 1024); print "<li>$readline</li>"; }print "<br><a href=\"idm-order.php?item_title=$item_title&item_image=$item_image&item_number=$item_number\">Order this item</a>";echo "</ul>";print "</td></tr>";}/*** display selected item next to form in seperate data table */// display directory list thumbnailsprint "<tr><td width=\"750\" align=\"center\" valign=\"top\" colspan=\"10\" bgcolor=\"#a3a5dd\">";// Show directory ******************************************************************$x_directory = explode("/", $directory, $title);if($x_directory[0] == "2dollar") { $title = "$2.00"; }if($x_directory[1] == "4dollar") { $title = "$4.00"; }if($x_directory[2] == "6dollar") { $title = "$6.00"; }if($x_directory[3] == "6plusdollar") { $title = "$6.01 or more"; }// Show directory ******************************************************************$readline = "";$xline = "";$item_file = $directory;$fp = fopen($item_file, "r"); while(! feof($fp)) { $readline = fgets($fp, 1024); $xline = "$xline" . "$readline"; } fclose($fp);$item_list = explode("@", $readline);$x = count($item_list);$x--;while($x != 0) { $item_tn = "../idm-images/" . "$item_list[$x]" . "-tn.gif"; $item_image = "../idm-images/" . "$item_list[$x]" . ".gif"; $item_nfo = "../idm-nfo/" . "$item_list[$x]" . "-nfo.txt"; print "<a href=\"../idm-directory/?item_image=$item_image&item_nfo=$item_nfo&directory=$directory&item_number=$item_list[$x]&click=YES\">"; list($width, $height, $type, $attr) = getimagesize("$item_tn"); print "<img src=\"$item_tn\" width=\"$width\" height=\"$height\" border=\"0\" align=\"top\" hspace=\"10\" vspace=\"10\">"; print "</a>"; $x--; }print "<br><br></td></tr>";// display directory list thumbnails// additional charges may apply ********************************************************************************************print "<tr><td width=\"750\" align=\"center\" valign=\"middle\" bgcolor=\"#000000\" colspan=\"2\">";print "<img src=\"../idm-graphics/additional-charges.gif\" width=\"750\" height=\"35\" border=\"0\" align=\"top\">";print "</td></tr>";?><!-- Second data table row 1 --> <tr><td style="padding: 5px" colspan="2" bgcolor="#ffffff" width="750"><p align="center"><a href="http://www.premiumconnection.net/test/premiumproductions/index.php">Main Page</a> | <a href="index.php?directory=2dollar.txt">$2.00</a> | <a href="index.php?directory=4dollar.txt">$4.00</a> | <a href="index.php?directory=6dollar.txt">$6.00</a> | <a href="index.php?directory=6plusdollar.txt">$6.01 or more</a> </p></tr></td></table></body></html>
  10. Nope, didn't like that. I got this:
  11. Ok....Take out all of the .txt throughout the whole code??
  12. Ok, I put in the above and nothing changed.Then I did this: ...and it did NOT like that. I got a bunch of line error codes. So I changed all the $x_directory's to $directory (thinking maybe the code couldn't recognize $x_directory and $x_directory was actually $directory) but got the line error codes again. I changed back to what I had before, but with your $_GET still in place and the line errors disappeared but the $title isn't displaying (still getting "Choose any of these quality gifts for just $")I'm sure you're as frustrated as me now. I've been trying to decipher this site - and all the other sites I have to manage - since I took over for the previous programmer and have been running into road blocks all along the way. I know I keep saying it, but thank you for all your help!
  13. Ok, I understand what you're explaining. I changed all of the "$x_category"s to $title... no luck.I inserted a test with an echo of $x_directory[0] & [1] like this (& nothing on the page changed or nothing new appeared):if ($x_directory[0]=="2dollar") {$title="2.00";}elseif ($x_directory[1]=="4dollar") {$title="4.00";}elseif ($x_directory[2]=="6dollar") {$title="6.00";}elseif ($x_directory[3]=="6plusdollar") {$title="6.01 or more";}print '<h1>Choose any of these quality gifts for just $'.$title.' each</h1>';echo $x_directory[0];echo $x_directory[1];print "</td></tr>"; What I mean by this is the previous programmer of this site constructed this site to access text files (.txt) and each category of this site ($2.00 items, $4.00 items, etc.) all access "info" (nfo) files to read what items should be accessed with each category. There really is no database for this site, just code that accesses .txt and .gif files to display the information and images per each item. What I meant above is that the $x_directory accesses these ".txt" and ".gif" files, and I want $title to only display words (unless $title needs to access other items to display to function properly - I'm not sure on this), specifically "$2.00 each", "$4.00 each", "$6.00 each", and "$6.01 or more".Thank you so much for your continued patience with me. I'm probably confusing you while confusing myself even more!!
  14. Here it is:<html><head><title>Welcome to Premium Productions Website</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta NAME="description" CONTENT="Premium Productions, Intelligent Marketing, IDM, Premium asi 79370, imprinting, embroidery, engraving, embroider, engrave, imprint"><meta NAME="keywords" CONTENT="Premium asi 79370, ppai143619, imprinting, embroidery, engraving, engraving, embroider, engrave, imprint, automotive, cameras, clocks, desk accessories, home and personal, lights, 6dollar, radios, tools, umbrellas, 6plusdollar, flashlights, stainless steel mug, calculators, freezer mug, 16 ounce tumbler, gardening, tent, sleeping bag, giftware, promotional products, trade shows"><meta NAME="Author" CONTENT="Michelle Payton"><meta NAME="rating" CONTENT="General"><meta NAME="resource-type" CONTENT="document"><meta NAME="revisit" CONTENT="15 days"><meta NAME="robots" CONTENT="all"><!-- P style --><style type="text/css"> body { font-family: geneva, arial, helvetica, sans-serif; font-size: 10pt; line-height: 11pt; color: #330000; } p { font-family: geneva, arial, helvetica, sans-serif; font-size: 10pt; line-height: 10pt; color: #000000; }p.frame { font-family: geneva, arial, helvetica, sans-serif; font-size: 10pt; line-height: 10pt; color: #000000; padding: 10px; margin-left: 10px; } p.small { font-family: geneva, arial, helvetica, sans-serif; font-size: 9pt; line-height: 9pt; color:#4b4b4b; } p.charges { font-family: geneva, arial, helvetica, sans-serif; font-size: 9pt; line-height: 14pt; color: #ff0000; } a { font-family: geneva, arial, helvetica, sans-serif; font-size: 9pt; line-height; 9pt; color: #1d1f5d; }li { font-family: arial, helvetica, geneva, sans-serif; font-size: 9pt; line-height: 9pt; color: #000000; } h1 { font-family: arial bold, geneva, helvetica, sans-serif; font-size: 12pt; line-height: 12pt; color: #000000; } h2 { font-family: geneva, arial, helvetica, sans-serif; font-size: 10pt; line-height: 12pt; color: #0000; } </style></head><body bgcolor="#FFFFFF" text="#000000" link="#333333" vlink="#666666" alink="#0000FF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><table width="750" border="0" cellpadding="0" cellspacing="0" align="center"><!-- Index header graphic --><tr><td align="left" valign="top" colspan="2"><img src="../idm-graphics/index-top whats new.gif" width="750" height="100" border="0" usemap="#whatsnew"><map id="whatsnew" name="whatsnew"><area shape="rect" coords="-9,33,744,167" href="http://www.premiumconnection.net/test/premiumproductions/index.php"><area shape ="rect" coords="431,1,747,21" href="http://www.premiumconnection.net/test/premiumproductions/index.php" /></td></tr><!-- Index header graphic --><tr><td width="750" align="center" valign="top" colspan="2"><table width="750" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#ffffff"><td style="padding: 5px" width="375" bgcolor="#AAB3DC" align="left" valign="top"><p>Call us at: 1-800-264-7319</p></td><td style="padding: 5px" width="375" bgcolor="#aab3dc" align="right" valign="top"></td><!-- Second data table row 1 --><?phpprint "<tr><td style=\"padding: 2px\" width=\"750\" bgcolor=\"#ffffff\" colspan=\"2\"></td></tr>"; //white spaceprint "<tr><td style= \"padding: 5px\" width=\"750\" bgcolor=\"#c6c6c6\" align=\"center\" colspan=\"2\">";if ($x_directory[0]=="2dollar") {$title="2.00";}elseif ($x_directory[1]=="4dollar") {$title="4.00";}elseif ($x_directory[2]=="6dollar") {$title="6.00";}elseif ($x_directory[3]=="6plusdollar") {$title="6.01 or more";}print '<h1>Choose any of these quality gifts for just $'.$title.' each</h1>';print "</td></tr>";print "<tr><td style=\"padding: 2px\" width=\"750\" bgcolor=\"#ffffff\" colspan=\"2\"></td></tr></table></td></tr>";/*** display selected item next to form in seperate data table */print "<tr><td width=\"400\" align=\"center\" valign=\"top\" bgcolor=\"#a3a5dd\">";if($click == "YES") {list($width, $height, $type, $attr) = getimagesize("$item_image");echo "<img src=\"../idm-graphics/image-frame-top.gif\" width=\"$width\" height=\"20\" border=\"0\" align=\"top\">";print "<img src=\"$item_image\" width=\"$width\" height=\"$height\" border=\"0\" align=\"top\">";echo "<img src=\"../idm-graphics/image-frame-bottom.gif\" width=\"$width\" height=\"20\" border=\"0\" align=\"top\">";print "</td>";/* ** read nfo file connected to image displayed*/print "<td width=\"350\" align=\"left\" valign=\"middle\" bgcolor=\"#a3a5dd\">";$fp = fopen($item_nfo, "r");$title_line = 0; while(! feof($fp)) { if($title_line == 0) { $readline = fgets($fp, 1024); $item_title = $readline; print "<h1>$readline</h1><ul>"; $title_line = 1; } $readline = fgets($fp, 1024); print "<li>$readline</li>"; }print "<br><a href=\"idm-order.php?item_title=$item_title&item_image=$item_image&item_number=$item_number\">Order this item</a>";echo "</ul>";print "</td></tr>";}/*** display selected item next to form in seperate data table */// display directory list thumbnailsprint "<tr><td width=\"750\" align=\"center\" valign=\"top\" colspan=\"10\" bgcolor=\"#a3a5dd\">";// Show directory ******************************************************************$x_directory = explode("/", $directory, $category);if($x_directory[0] == "2dollar") { $x_category = "$2.00"; }if($x_directory[1] == "4dollar") { $x_category = "$4.00"; }if($x_directory[2] == "6dollar") { $x_category = "$6.00"; }if($x_directory[3] == "6plusdollar") { $x_category = "$6.01 or more"; }// Show directory ******************************************************************$readline = "";$xline = "";$item_file = $directory;$fp = fopen($item_file, "r"); while(! feof($fp)) { $readline = fgets($fp, 1024); $xline = "$xline" . "$readline"; } fclose($fp);$item_list = explode("@", $readline);$x = count($item_list);$x--;while($x != 0) { $item_tn = "../idm-images/" . "$item_list[$x]" . "-tn.gif"; $item_image = "../idm-images/" . "$item_list[$x]" . ".gif"; $item_nfo = "../idm-nfo/" . "$item_list[$x]" . "-nfo.txt"; print "<a href=\"../idm-directory/?item_image=$item_image&item_nfo=$item_nfo&directory=$directory&item_number=$item_list[$x]&click=YES\">"; list($width, $height, $type, $attr) = getimagesize("$item_tn"); print "<img src=\"$item_tn\" width=\"$width\" height=\"$height\" border=\"0\" align=\"top\" hspace=\"10\" vspace=\"10\">"; print "</a>"; $x--; }print "<br><br></td></tr>";// display directory list thumbnails// additional charges may apply ********************************************************************************************print "<tr><td width=\"750\" align=\"center\" valign=\"middle\" bgcolor=\"#000000\" colspan=\"2\">";print "<img src=\"../idm-graphics/additional-charges.gif\" width=\"750\" height=\"35\" border=\"0\" align=\"top\">";print "</td></tr>";?><!-- Second data table row 1 --> <tr><td style="padding: 5px" colspan="2" bgcolor="#ffffff" width="750"><p align="center"><a href="http://www.premiumconnection.net/test/premiumproductions/index.php">Main Page</a> | <a href="index.php?directory=2dollar.txt">$2.00</a> | <a href="index.php?directory=4dollar.txt">$4.00</a> | <a href="index.php?directory=6dollar.txt">$6.00</a> | <a href="index.php?directory=6plusdollar.txt">$6.01 or more</a> </p></tr></td></table></body></html>
×
×
  • Create New...