Jump to content

Adding Options A Little Bit Easier


Guest

Recommended Posts

Nice mod, saves a bunch of time.

I don't understand why you have to keep adding the additional options though. I don't know if you could change your mod or what not. For instance, I'm working on a car site and when you start selling wheels, there are different sizes, such as 17x7 and 18x7. If you create an option name, say Wheel Sizes, and add the 2 values, you should be able to automatically add all values associaed with Wheel Sizes. Instead, you have to selecte Wheel Sizes, then 17x7, then click submit, then repeat the process.

If you could figure a way for it to automatically add all that stuff, you would be golden... :)

Link to comment
Share on other sites

Hey WildBill, I just read those posts carefully and extracted the search box code you wrote..neat and handy..thx!

I also fooled around with your product_op code - I have a two line change which makes adding options even easier by holding the selected Option Name in place (so you dont have to reselect it every time - which is a pain in the butt!!!)....I don't want to publicly edit your code without your permission so I will post the changes here if it's Ok with you... ;)

One other thing I did was to change the edit_products.php "onclick" code to open a deeper window for the product options...not a big thing but just makes it easier when you have a lot of options than dragging the window out every time.

cheers

Pete

PS I recently bought your shipping code mod...well worth the money...cheers and keep modding

Link to comment
Share on other sites

Great Mod!

Another idea for you, don't know if its possible though.....

When adding an option, is there a way to give the new option a new product code?

For instance, say you are selling a product that is available in three different colors....... Can you add the options for the three different colors with new product codes?

Thank you! :)

Link to comment
Share on other sites

Hi,

Hey WildBill, I just read those posts carefully and extracted the search box code you wrote..neat and handy..thx!

Could you paste that section for me cos I lost it when I added the two images mod and I really miss it.

Many Thanx

Link to comment
Share on other sites

Hi great MOD. Got it to work fine. Only thing I seem to have missed is when adding a new product I added the options 1&2 but had to still add to the product using 3. The Add options for the new product did nothing when clicked. eg No popup?

Even after adding one or two options to that new product it still wont do anything on that new product. eg if I wanted to add an existing option created before the MOD? Please advsie. Thanks Peter :)

ps I added the new product after installing the MOD.

Link to comment
Share on other sites

Hi,

Hey WildBill, I just read those posts carefully and extracted the search box code you wrote..neat and handy..thx!

Could you paste that section for me cos I lost it when I added the two images mod and I really miss it.

Many Thanx

I think this is the relevant code, you'll find at the top of the file in wildbills post...

echo"<FORM ACTION=\"edit_product.php\" METHOD=\"POST\">";?>

<center>

<table border="0" cellpadding="0" cellspacing="0" height="1" width="100%">

<tr>

<td width="100%" height="1" align="center">

<?

echo"Product Search:

<input type=\"text\" name=\"product\" class=\"textbox\" size=\"20\">

<input type=\"submit\" class=\"submit\" value=\"Go\" name=\"go\">

</td>

</tr>

</table></form>

</center>";

if ($go){

$query = "SELECT * FROM ".$prefix."store_inventory where product='$product'";

$result = mysql_query($query) or die("Error: " . mysql_error());

$count_result = mysql_num_rows($result);

if (empty($product)){

echo"<center><font color='cc0000'>You Must Enter A Product Number!</font></center>";

exit;}

if(mysql_num_rows($result) == 0){

echo"<p align=\"center\"><font color='cc0000'>Sorry, The Product $product Does Not Appear To Be In The Database<br>Please Try Again!</font></p><br>";

exit;}}

Link to comment
Share on other sites

I also fooled around with your product_op code - I have a two line change which makes adding options even easier by holding the selected Option Name in place (so you dont have to reselect it every time - which is a pain in the butt!!!)....I don't want to publicly edit your code without your permission so I will post the changes here if it's Ok with you... :)

One other thing I did was to change the edit_products.php "onclick" code to open a deeper window for the product options...not a big thing but just makes it easier when you have a lot of options than dragging the window out every time.

cheers

Pete

Hi,

Any word from "the man" about you posting the little change you did? It might be interesting and usefull...

Tkx

btw: the search box code is a good help, too...

Pardon__Me

Link to comment
Share on other sites

No, no word, but what the heck, it was free code anyway and I'm sure he won't mind - use if you wish, up to you, but it should save a bit of time when adding a lot of options...

In product_op.php

After this line (around 79)

if($add_assign){

insert this

$last_option = $option_id;

and

Edit this line (around 141)

echo"<option value=\"$option_id\" ";if ($edit_option==1){if($option_id==$opi_id){echo "selected";}}echo">$option_name</option>";

to this

echo"<option value=\"$option_id\" ";if ($add_assign){if ($option_id==$last_option){echo "selected";}}if ($edit_option==1){if($option_id==$opi_id){echo "selected";}}echo">$option_name</option>";

enjoy...

Link to comment
Share on other sites

  • 4 weeks later...

HEY holloway

You need to put this above were the

include_once ("header.inc.php"); is called

$url="index";




So it looks like this


$url="index";

include_once ("header.inc.php");

This is located at the top of the edit_product.php page

Let me know if this works

Cheers

:)

wildbill

Link to comment
Share on other sites

Hi Wildbill,

I'm stuck sir. I've added the relevant code, checked(double & triple) to make sure that the code is actually on the copy residing on the server, but no table cell shows up between sale price and product image. Here's my edit_product.php:

http://www.chloes-closet.com/TheCloset/adm...dit_product.txt

Here's what I see when editing a product:

screwup.jpg

I'm really stumped on this. I don't see why it wouldn't parse the code if it's there.

Any help would be greatly appreciated.

thanks,

json

Link to comment
Share on other sites

  • 1 month later...

I often get this message

'' Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in /home/megatel/public_html/rus/admin/edit_product.php on line 31 ''

What does it mean?

When I press F5 to refresh the page, it goes fine. And then if I press F5 for several times again, i get this error again...

What is wrong?

Link to comment
Share on other sites

I often get this message

'' Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in /home/megatel/public_html/rus/admin/edit_product.php on line 31 ''

What does it mean?

When I press F5 to refresh the page, it goes fine. And then if I press F5 for several times again, i get this error again...

What is wrong?

Link to comment
Share on other sites

  • 1 month later...

Well, I followed the instructions the best I could and checked for the extra "," but I still came up empty. I have attached my code in case one of you benevolent members would like to help me out.

<?php

/***************************************************************************

*   File Info: admin/edit_product.php

*   Purpose:   Edit Product

*   Updated:   31/07/2003

****************************************************************************  

*   Developer: Alistar Brookbanks (Brooky.com)

*   Copyright: ©2003 http://www.brooky.com

* Copyright: ©2003 http://www.cubecart.com

*   This program is not "free" software and restrictions apply!

*   Further Info: http://www.cubecart.com/license.php

*   Contact [email protected] if any conditions are not clear.

*

*   Licensees holding valid "CubeCart Licence Number" may edit

*   the (powered by CubeCart) from browser title and "Powered by CubeCart"

*   and "© Brooky.com" from the web page footer.

*

*   This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING

*   THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR

*   PURPOSE. This and all others in the download package can only be

* redistributed with written permission from Alistair Brookbanks!

*

*   The "CubeCart License" is available to purchase at

*   https://secure.cubecart.com/

*   For pricing please contact us via e-mail at [email protected]

***************************************************************************/

/***************************************************************************

*   Modified by BrJones33 for custom/automated Product ID No - Thank you sir! 

****************************************************************************/

session_start();

// if session is not registered go to login

if (!session_is_registered("admin"))

  {

    header("Location: login.php");

  }

// if session is registered

if(session_is_registered("admin")){

include ("config.php");

include( "settings.inc.php");

include_once ("header.inc.php");

echo "<h2>$la_edit_prod_title</h2>";

// if submit is clicked to edit a product

if($edit)

{

// create link back to prev page

$goback="<a href=\"java script:history.back()\">$la_try_again</a>";

// make sure relevant fields were filled

if ((empty($title)) or (empty($price)))

  {

  echo "<p align=\"center\">$la_account_form_must<br><br>$goback</p>";

  exit;

  }

//begin product number error trapping

if($prodnum!=$product)

{

$dupquery="select * from ".$prefix."store_inventory where product='$prodnum'";

$dupresult = mysql_query($dupquery);

// if product number field is blank, create a product number

if ((empty($prodnum)))

  {

  $addfrontchar = substr($title,0,3);

  $addfrontchar = strtoupper($addfrontchar);

  $chars = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N",

    "O","P","Q","R","S","T","U","V","W","X","Y","Z","1","2","3",

    "4","5","6","7","8","9","0");

  $max_chars = count($chars) - 1;

  srand((double)microtime()*1000000);

  for($i = 0; $i < 5; $i++)

  {

  $randnum = ($i == 0) ? $chars[rand(0, $max_chars)] : $randnum . $chars[rand(0, $max_chars)];

  }

  $addcatid = $cat_id;

  $createprodnum = $addfrontchar . $randnum . $addcatid;

  $prodnum = $createprodnum;

  }

// make sure product number doesn't already exist

if (mysql_num_rows($dupresult)!=0 )

  {

  echo "<p align=\"center\"><b>$la_prod_exists</b><br><br>$goback</p>";

  exit;

  }

}

// end product number error trapping

if (empty($cat_id))

{

echo "<p align=\"center\">$la_cat_must_selected<br><br>$goback</p>";

exit;

}

// make sure formatted properly

if (eregi("[a-z\.\!\"\£\$\%\^\&\*\(\)\-\+\{\}\:\;\'\@\~\#\\\|\<\>\?\/]", $quantity))

{

echo "<p align=\"center\">$la_must_whole_no</p><p>$goback</p>";

exit;

}

if (eregi("[a-z\!\"\£\$\%\^\&\*\(\)\-\+\{\}\:\;\'\@\~\#\\\|\<\>\?\/]", $price))

{

echo "<p align=\"center\">$la_price_no_val<br><br>$goback</p>";

exit;

}

if (eregi("[a-z\!\"\£\$\%\^\&\*\(\)\-\+\{\}\:\;\'\@\~\#\\\|\<\>\?\/]", $sale_price))

{

echo "<p align=\"center\">$la_price_no_val<br><br>$goback</p>";

exit;

}

if (eregi("[a-z\!\"\£\$\%\^\&\*\(\)\-\+\{\}\:\;\'\@\~\#\\\|\<\>\?\/]", $ship_price))

{

echo "<p align=\"center\">$la_price_no_val<br><br>$goback</p>";

exit;

}

$description = addslashes($description);

$title = addslashes($title);

// update db

if(empty($sale_price))

  {$sale_price="0.00";}

$quantity=1;

$sql_update = "update ".$prefix."store_inventory set title='$title', product='$prodnum', description='$description', quantity='$quantity', sale_price='$sale_price', price='$price', cat_id='$cat_id', ship_price='$ship_price' where product='$product'";

$result = mysql_query ($sql_update);

if ($image_function=="del"){

 

  if ($dbimage !== "nophoto.jpg"){

  // make sure image is not in use twice+

    $image_dupe = mysql_query("select * from ".$prefix."store_inventory where image = '$dbimage'");

    $image_total = mysql_num_rows($image_dupe);

    if($image_total==1){

  if (file_exists("$site_dir/images/$dbimage")){

  unlink("$site_dir/images/$dbimage");

  if (file_exists("$site_dir/images/thumb_$dbimage")){

  unlink("$site_dir/images/thumb_$dbimage");}

  }// end if image total !==1

  }

  $product=$prodnum;

  $dbimage = "nophoto.jpg";

  $sql_update = "update ".$prefix."store_inventory set image='$dbimage' where product='$product'";

  $result = mysql_query ($sql_update);}

}

  // Upload

  if ($image_function=="up"){

  $path = "$site_dir/images/";

  $max_size = 200000;

  if ($dbimage!=="nophoto.jpg")

   {

   $image_dupe = mysql_query("select * from ".$prefix."store_inventory where image = '$dbimage'");

   $image_total = mysql_num_rows($image_dupe);

   if($image_total==1){

   if (file_exists("$site_dir/images/$dbimage")){

   unlink("$site_dir/images/$dbimage");

   if (file_exists("$site_dir/images/thumb_$dbimage")){

   unlink("$site_dir/images/thumb_$dbimage");}

   }

   }// end if image total !==1

  }

 

 

  if (is_uploaded_file($userfile)) {

  if ($userfile_size>$max_size) { echo "<p align=\"center\">$la_too_big</p>\n"; exit; }

  if (($userfile_type=="image/x-png") || ($userfile_type=="image/pjpeg") || ($userfile_type=="image/jpeg")) {

  if (file_exists($path . $userfile_name)) { echo "<p align=\"center\">$la_used_already</p><br>\n";$escape=1; }

  if($escape!=1){

  $res = move_uploaded_file($userfile, $path . $userfile_name);}

     if($escape=1){$res="continue";}

  // Resultant output

  if (!$res) {

  echo "<p align=\"center\">$la_upload_failed<br><br><a href=\"java script:history.back()\">$la_try_again</a></p>\n"; exit; }

  } else { echo "<p align=\"center\">$la_wrong_type<br><br><a href=\"java script:history.back()\">$la_try_again</a></p>\n"; exit; }

  if (empty($userfile_name))

   {

   $userfile_name="nophoto.jpg";

   }

  $product=$prodnum;

  $sql_update = "update ".$prefix."store_inventory set image='$userfile_name' where product='$product'";

  $result = mysql_query ($sql_update);

  }

  }

$sql_select = "select * from ".$prefix."store_inventory where product ='$prodnum'";

$result = mysql_query($sql_select);

  while ($row = mysql_fetch_array($result))

   {

   $userfile_name = $row["image"];

   }

if($sale_price=="0.00"){$sale_result="$la_it_nt_sale";}

if($sale_price!=="0.00"){$sale_result="$currency$sale_price";} 

$description = stripslashes($description);

$title = stripslashes($title);

$title = stripslashes($title);

$description = nl2br($description);

$product=$prodnum;

echo "<blockquote><p>$la_product_nm $product $la_it_upd_succ</p></blockquote>

<FORM ACTION=\"edit_product.php?product=$product\" METHOD=\"POST\">

<table align=center width=\"600\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">

            <tr><td bgcolor=\"$colour_2\">

<table width=\"100%\" align=\"center\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">

  <tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\"><b>$la_title</b></td>

    <td width=\"400\" valign=\"top\">$title</td>

  </tr>

  <tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_prod_stock</b></td>

<td width=\"400\" valign=\"top\">$product</td>

  </tr>

  <tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\"><b>$la_description</b></td>

    <td width=\"400\" valign=\"top\">$description</td>

  </tr>";

  //<tr bgcolor=\"$colour_3\">

  //  <td width=\"200\" valign=\"top\"><b>$la_quantity</b></td>

  //  <td width=\"400\" valign=\"top\">$quantity</td>

  //</tr>

  echo"<tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\"><b>$la_norm_pri ($currency):</b></td>

    <td width=\"400\" valign=\"top\">$currency$price</td>

  </tr>

<tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\"><b>$la_sale_pri</b></td>

    <td width=\"400\" valign=\"top\">$currency<input class=\"textbox\" type=\"textbox\"  name=\"sale_price\" value=\"$sale_price\"></td>

</tr>

<tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\"><b>Product Options</b></td>

    <td width=\"400\" valign=\"top\" align=\"left\">

<a href=\"#\" onClick=\"window.open('product_op.php?product=$product&title=$title', 'myWin', 'toolbar=no, directories=no, location=no, status=yes, menubar=no, resizable=yes, scrollbars=yes, width=700, height=300'); return false\">Edit/View/Add Options</a></td>

<tr bgcolor=\"$colour_3\"> 

    <td width=\"200\" valign=\"top\"><b>$la_ship_pri ($currency):</b></td>

    <td width=\"400\" valign=\"top\">$currency$ship_price</td>

  </tr>

  <tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\"><b>$la_prod_image</b></td>

    <td width=\"400\" valign=\"top\"><img src=\"../images/$userfile_name\"></td>

  </tr>

  <tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\"><b>$la_prod_url</b> [ <a href=\"$site_url/view_product.php?product=$product\" target=\"_blank\" >$la_cust_view</a> ]</td>

    <td width=\"400\" valign=\"top\"><textarea name='code' cols='55' rows='3'>$site_url/view_product.php?product=$product</textarea></td>

  </tr>

   <tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\">&nbsp;</td>

    <td width=\"400\" valign=\"top\"><INPUT class=\"submit\" TYPE=\"submit\" name=\"again\" VALUE=\"$la_edit_prod_again\"></td>

  </tr>

</table>

</td></tr></table>

</FORM>";

}

if (!$edit)

{

$sql_select = "select * from ".$prefix."store_inventory where product ='$product'";

$result = mysql_query($sql_select);

while ($row = mysql_fetch_array($result))

      {

          $title = $row["title"];

          $product = $row["product"];

    $description = $row["description"];

          $quantity = $row["quantity"];

          $price = $row["price"];

    $sale_price = $row["sale_price"];

    $ship_price = $row["ship_price"];

    $dbimage = $row["image"];

    $oldcat_id = $row["cat_id"];

    }

$title = stripslashes($title);

$description = stripslashes($description);

echo"<FORM ENCTYPE=\"multipart/form-data\" ACTION=\"edit_product.php\" METHOD=\"POST\">

<table align=center width=\"600\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">

            <tr><td bgcolor=\"$colour_2\">

<table width=\"100%\" align=\"center\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">

  <tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\"><b>$la_title</b></td>

    <td width=\"400\" valign=\"top\"><input class=\"textbox\" type=\"textbox\"  name=\"title\" value=\"$title\"><font color=\"990000\"><b>*</b></font></td>

  </tr>

  <tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_prod_stock</b></td>

<td width=\"400\" valign=\"top\"><input class=\"textbox\" type=\"textbox\"  name=\"prodnum\" value=\"$product\"><font color=\"990000\"></font></td>

  </tr>

  <tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\"><b>$la_description</b><br>$la_html_tip</td>

    <td width=\"400\" valign=\"top\"><textarea name=\"description\" cols=\"40\" rows=\"8\">$description</textarea></td>

  </tr>

  <tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\"><b>$la_category</b></td>

    <td width=\"400\" valign=\"top\">";

// Drop down menu of full_cat_name!

    print "<select  name=\"cat_id\">";

$select = mysql_query("select * from ".$prefix."store_category");

while ($row = mysql_fetch_array($select))

      {

          $cat_id_dd = $row["cat_id"];

    $category = $row["category"];

    $catfatherid_1 = $row["cat_father_id"];

echo"<option value=\"$cat_id_dd\" ";if($oldcat_id==$cat_id_dd){echo "selected";}echo">";

 

        $t1 = $category;

        if ($catfatherid_1 <> 0)

        {

             $sql_lowercat = "select * from ".$prefix."store_category where cat_id = $catfatherid_1";

             $result1 = mysql_query ($sql_lowercat);

             $row1 = mysql_fetch_array($result1);

             $catfatherid_2 = $row1["cat_father_id"];

             $catname_2 = $row1["category"];

             $t2 = $catname_2;

             $catid2 = $catid_2;

        }

        if ($catfatherid_2 <> 0)

        {

             $sql_lowercat = "select * from ".$prefix."store_category where cat_id = $catfatherid_2";

             $result1 = mysql_query ($sql_lowercat);

             $row1 = mysql_fetch_array($result1);

             $catfatherid_3 = $row1["cat_father_id"];

             $catname_3 = $row1["category"];

             $t3 = $catname_3;

             $catid3 = $catid_3;

        }

        if ($catfatherid_3 <> 0)

        {

             $sql_lowercat = "select * from ".$prefix."store_category where cat_id = $catfatherid_3";

             $result1 = mysql_query ($sql_lowercat);

             $row1 = mysql_fetch_array($result1);

             $catfatherid_4 = $row1["cat_father_id"];

             $catname_4 = $row1["category"];

             $t4 = $catname_4;

             $catid4 = $catid_4;

        }

        if ($catfatherid_4 <> 0)

        {

             $sql_lowercat = "select * from ".$prefix."store_category where cat_id = $catfatherid_4";

             $result1 = mysql_query ($sql_lowercat);

             $row1 = mysql_fetch_array($result1);

             $catfatherid_5 = $row1["cat_father_id"];

             $catname_5 = $row1["category"];

             $t5 = $catname_5;

             $catid5 = $catid_5;

        }

        if ($catfatherid_5 <> 0)

        {

             $sql_lowercat = "select * from ".$prefix."store_category where cat_id = $catfatherid_5";

             $result1 = mysql_query ($sql_lowercat);

             $row1 = mysql_fetch_array($result1);

             $catfatherid_6 = $row1["cat_father_id"];

             $catname_6 = $row1["category"];

             $t6 = $catname_6;

             $catid6 = $catid_6;

        }

        if ($catfatherid_6 <> 0)

        {

             $sql_lowercat = "select * from ".$prefix."store_category where cat_id = $catfatherid_6";

             $result1 = mysql_query ($sql_lowercat);

             $row1 = mysql_fetch_array($result1);

             $catfatherid_7 = $row1["cat_father_id"];

             $catname_7 = $row1["category"];

             $t7 = $catname_7;

             $catid7 = $catid_7;

        }

 

  if ($catfatherid_7 <> 0)

        {

             $sql_lowercat = "select * from ".$prefix."store_category where cat_id = $catfatherid_7";

             $result1 = mysql_query ($sql_lowercat);

             $row1 = mysql_fetch_array($result1);

             $catfatherid_8 = $row1["cat_father_id"];

             $catname_8 = $row1["category"];

             $t8 = $catname_8;

             $catid8 = $catid_8;

        }

  if ($catfatherid_8 <> 0)

        {

             $sql_lowercat = "select * from ".$prefix."store_category where cat_id = $catfatherid_8";

             $result1 = mysql_query ($sql_lowercat);

             $row1 = mysql_fetch_array($result1);

             $catfatherid_9 = $row1["cat_father_id"];

             $catname_9 = $row1["category"];

             $t9 = $catname_9;

   

        }

if ($t9)

print "$t9/";

if ($t8)

print "$t8/";

if ($t7)

print "$t7/";

if ($t6)

print "$t6/";

if ($t5)

print "$t5/";

if ($t4)

print "$t4/";

if ($t3)

print "$t3/";

if ($t2)

print "$t2/";

if ($t1)

print "$t1/";

unset($t1,$t2,$t3,$t4,$t5,$t6,$t7,$t8,$t9,$catfatherid_1,$catfatherid_2,$catfatherid_3,$catfatherid_4,$catfatherid_5,$catfatherid_6,$catfatherid_7,$catfatherid_8,$catfatherid_9,$catname_1,$catname_2,$catname_3,$catname_4,$catname_5,$catname_6,$catname_7,$catname_8,$catname_9);

echo"</option>";}

    echo"</select><font color=\"990000\"><b>*</b></font></td>

  </tr>";

  //<tr bgcolor=\"$colour_3\">

  //  <td width=\"200\" valign=\"top\"><b>$la_quantity</b></td>

  //  <td width=\"400\" valign=\"top\"><input class=\"textbox\" type=\"textbox\"  name=\"quantity\" value=\"$quantity\"><font color=\"990000\"><b>*</b></font></td>

  //</tr>

  echo"<tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\"><b>$la_norm_pri</b></td>

    <td width=\"400\" valign=\"top\">$currency<input class=\"textbox\" type=\"textbox\"  name=\"price\" value=\"$price\"><font color=\"990000\"><b>*</b></font></td>

  </tr>

  <tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\"><b>$la_sale_pri</b></td>

    <td width=\"400\" valign=\"top\">$currency<input class=\"textbox\" type=\"textbox\"  name=\"sale_price\" value=\"$sale_price\"></td>

  </tr>

  <tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\"><b>$la_ship_pri</b></td>

    <td width=\"400\" valign=\"top\">$currency<input class=\"textbox\" type=\"textbox\"  name=\"ship_price\" value=\"$ship_price\"></td>

  </tr> 

  <tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\"><b>$la_prod_image</b></td>

    <td width=\"400\" valign=\"top\"><img src=\"../images/$dbimage\"></td>

  </tr>

  <tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\"><b>$la_del_image_q</b></td>

    <td width=\"400\" valign=\"top\"><input name=\"image_function\" type=\"radio\" value=\"del\">$la_must_to_del_cur</td>

  </tr>

  <tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\"><b>$la_up_new_img_q</b></td>

    <td width=\"400\" valign=\"top\"><input name=\"image_function\" type=\"radio\" value=\"up\">$la_must_to_up_cur</td>

  </tr>

  <tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\"><b>$la_keep_image_q</b></td>

    <td width=\"400\" valign=\"top\"><input name=\"image_function\" type=\"radio\" value=\"\" checked>$la_must_to_keep_cur</td>

  </tr>

  <tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\"><b>$la_up_new_img</b></td>

    <td width=\"400\" valign=\"top\"><INPUT class=\"file\" NAME=\"userfile\"   TYPE=\"file\">$la_prod_types</td>

  </tr bgcolor=\"$colour_3\">

   <input type=\"hidden\" name=\"product\" value=\"$product\">

   <input type=\"hidden\" name=\"dbimage\" value=\"$dbimage\">

   <tr bgcolor=\"$colour_3\">

    <td width=\"200\" valign=\"top\">&nbsp;</td>

    <td width=\"400\" valign=\"top\"><INPUT class=\"submit\" TYPE=\"submit\" name=\"edit\" VALUE=\"$la_edit_prod_title\"></td>

  </tr>

</table>

</td></tr></table>

</FORM>";

}

include("footer.inc.php");

} // end if session is registered

?>

EDIT: please Quote so many text, thanks,Stijn

Edited by stijnj
Link to comment
Share on other sites

hi. i'm having a problem with this mod. i followed the instructions to the letter, read down the forum 3 times or more, re-read all my relevant .php files, and i'm still getting "page cannot be displayed" 404 error in the little pop up window where my options are supposed to be.

i have noticed that i do not have a product.php! :D

i have a "product_options.php" & an "inventory.php" so should my .php files look more like

<td width=\"79%\" height=\"35\"><img src=\"images/product_op.gif\"></td>

<td width=\"22%\" height=\"35\"><a href=\"http://www.yoursite.com/view_inventory.php?product=$product\" target=\"_blank\" title=\"View Product\"><img src=\"images/viewproduct.jpg\" border=\"0\"><br>View Product</a></td>

</tr>

all help gratefully received.

Link to comment
Share on other sites

i have fixed the problem. for all who are having the same problem: i created the .php files with a capital letter at the begining. :D once i had corrected this and used all small case letters the mod worked perfectly. :P thank you very much wildbill :wub:

Link to comment
Share on other sites

  • 2 weeks later...

Hi

Just Installed this mod for Products Options In the admin the link is there but when I click to add an option it does nothing.

Please can someone check the code below and make sure its not me???

<?php

/***************************************************************************

* File Info: admin/edit_product.php

* Purpose: Edit Product

* Updated: 31/07/2003

****************************************************************************

* Developer: Alistar Brookbanks (Brooky.com)

* Copyright: ©2003 http://www.brooky.com

* Copyright: ©2003 http://www.cubecart.com

* This program is not "free" software and restrictions apply!

* Further Info: http://www.cubecart.com/license.php

* Contact [email protected] if any conditions are not clear.

*

* Licensees holding valid "CubeCart Licence Number" may edit

* the (powered by CubeCart) from browser title and "Powered by CubeCart"

* and "© Brooky.com" from the web page footer.

*

* This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING

* THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR

* PURPOSE. This and all others in the download package can only be

* redistributed with written permission from Alistair Brookbanks!

*

* The "CubeCart License" is available to purchase at

* https://secure.cubecart.com/

* For pricing please contact us via e-mail at [email protected]

***************************************************************************/

/***************************************************************************

* Modified by BrJones33 for custom/automated Product ID No - Thank you sir!

****************************************************************************/

session_start();

// if session is not registered go to login

if (!session_is_registered("admin"))

{

header("Location: login.php");

}

// if session is registered

if(session_is_registered("admin")){

include ("config.php");

include ("settings.inc.php");

include ("../images/makethumb.txt");

include_once ("header.inc.php");

echo "<h2>$la_edit_prod_title</h2>";

// if submit is clicked to edit a product

if($edit)

{

// create link back to prev page

$goback="<a href=\"java script:history.back()\">$la_try_again</a>";

// make sure relevant fields were filled

if ((empty($title)) or (empty($price)))

{

echo "<p align=\"center\">$la_account_form_must<br><br>$goback</p>";

exit;

}

//begin product number error trapping

if($prodnum!=$product)

{

$dupquery="select * from ".$prefix."store_inventory where product='$prodnum'";

$dupresult = mysql_query($dupquery);

// if product number field is blank, create a product number

if ((empty($prodnum)))

{

$addfrontchar = substr($title,0,3);

$addfrontchar = strtoupper($addfrontchar);

$chars = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N",

"O","P","Q","R","S","T","U","V","W","X","Y","Z","1","2","3",

"4","5","6","7","8","9","0");

$max_chars = count($chars) - 1;

srand((double)microtime()*1000000);

for($i = 0; $i < 5; $i++)

{

$randnum = ($i == 0) ? $chars[rand(0, $max_chars)] : $randnum . $chars[rand(0, $max_chars)];

}

$addcatid = $cat_id;

$createprodnum = $addfrontchar . $randnum . $addcatid;

$prodnum = $createprodnum;

}

// make sure product number doesn't already exist

if (mysql_num_rows($dupresult)!=0 )

{

echo "<p align=\"center\"><b>$la_prod_exists</b><br><br>$goback</p>";

exit;

}

}

// end product number error trapping

if (empty($cat_id))

{

echo "<p align=\"center\">$la_cat_must_selected<br><br>$goback</p>";

exit;

}

// make sure formatted properly

if (eregi("[a-z\.\!\"\£\$\%\^\&\*\(\)\-\+\{\}\:\;\'\@\~\#\\\|\<\>\?\/]", $quantity))

{

echo "<p align=\"center\">$la_must_whole_no</p><p>$goback</p>";

exit;

}

if (eregi("[a-z\!\"\£\$\%\^\&\*\(\)\-\+\{\}\:\;\'\@\~\#\\\|\<\>\?\/]", $price))

{

echo "<p align=\"center\">$la_price_no_val<br><br>$goback</p>";

exit;

}

if (eregi("[a-z\!\"\£\$\%\^\&\*\(\)\-\+\{\}\:\;\'\@\~\#\\\|\<\>\?\/]", $sale_price))

{

echo "<p align=\"center\">$la_price_no_val<br><br>$goback</p>";

exit;

}

$description = addslashes($description);

$title = addslashes($title);

// update db

if(empty($sale_price))

{$sale_price="0.00";}

$quantity=1;

$sql_update = "update ".$prefix."store_inventory set title='$title', product='$prodnum', description='$description', quantity='$quantity', sale_price='$sale_price', price='$price', instock='$instock', cat_id='$cat_id' where product='$product'";

$result = mysql_query ($sql_update);

if ($image_function=="del"){

if ($dbimage !== "nophoto.jpg"){

// make sure image is not in use twice+

$image_dupe = mysql_query("select * from ".$prefix."store_inventory where image = '$dbimage'");

$image_total = mysql_num_rows($image_dupe);

if($image_total==1){

if (file_exists("$site_dir/images/$dbimage")){

unlink("$site_dir/images/$dbimage");

if (file_exists("$site_dir/images/thumb_$dbimage")){

unlink("$site_dir/images/thumb_$dbimage");}

}// end if image total !==1

}

$product=$prodnum;

$dbimage = "nophoto.jpg";

$sql_update = "update ".$prefix."store_inventory set image='$dbimage' where product='$product'";

$result = mysql_query ($sql_update);}

}

// Upload

if ($image_function=="up"){

$path = "$site_dir/images/";

$max_size = 200000;

if ($dbimage!=="nophoto.jpg")

{

$image_dupe = mysql_query("select * from ".$prefix."store_inventory where image = '$dbimage'");

$image_total = mysql_num_rows($image_dupe);

if($image_total==1){

if (file_exists("$site_dir/images/$dbimage")){

unlink("$site_dir/images/$dbimage");

if (file_exists("$site_dir/images/thumb_$dbimage")){

unlink("$site_dir/images/thumb_$dbimage");}

}

}// end if image total !==1

}

if (is_uploaded_file($userfile)) {

if ($userfile_size>$max_size) { echo "<p align=\"center\">$la_too_big</p>\n"; exit; }

if (($userfile_type=="image/x-png") || ($userfile_type=="image/pjpeg") || ($userfile_type=="image/jpeg")) {

if (file_exists($path . $userfile_name)) { echo "<p align=\"center\">$la_used_already</p><br>\n";$escape=1; }

if($escape!=1){

$res = move_uploaded_file($userfile, $path . $userfile_name);

// create thumbnail

if (file_exists("$site_dir/images/"."thumb_$userfile_name"))

{

unlink("$site_dir/images/thumb_$userfile_name");

$thumb=new thumbnail("$site_dir/images/$userfile_name");

$thumb->size_auto(75);

$thumb->jpeg_quality(75);

$thumb->save("$site_dir/images/thumb_$userfile_name", $gd_version);

} else {

$thumb=new thumbnail("$site_dir/images/$userfile_name");

$thumb->size_auto(75);

$thumb->jpeg_quality(75);

$thumb->save("$site_dir/images/thumb_$userfile_name", $gd_version);

}

}

if($escape=1){$res="continue";}

// Resultant output

if (!$res) {

echo "<p align=\"center\">$la_upload_failed<br><br><a href=\"java script:history.back()\">$la_try_again</a></p>\n"; exit; }

} else { echo "<p align=\"center\">$la_wrong_type<br><br><a href=\"java script:history.back()\">$la_try_again</a></p>\n"; exit; }

if (empty($userfile_name))

{

$userfile_name="nophoto.jpg";

}

$product=$prodnum;

$sql_update = "update ".$prefix."store_inventory set image='$userfile_name' where product='$product'";

$result = mysql_query ($sql_update);

}

}

$sql_select = "select * from ".$prefix."store_inventory where product ='$prodnum'";

$result = mysql_query($sql_select);

while ($row = mysql_fetch_array($result))

{

$userfile_name = $row["image"];

}

if($sale_price=="0.00"){$sale_result="$la_it_nt_sale";}

if($sale_price!=="0.00"){$sale_result="$currency$sale_price";}

$description = stripslashes($description);

$title = stripslashes($title);

$title = stripslashes($title);

$description = nl2br($description);

$instock = stripslashes($instock);

$product=$prodnum;

echo "<blockquote><p>$la_product_nm $product $la_it_upd_succ</p></blockquote>

<FORM ACTION=\"edit_product.php?product=$product\" METHOD=\"POST\">

<table align=center width=\"600\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">

<tr><td bgcolor=\"$colour_2\">

<table width=\"100%\" align=\"center\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_title</b></td>

<td width=\"400\" valign=\"top\">$title</td>

</tr>

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_prod_stock</b></td>

<td width=\"400\" valign=\"top\">$product</td>

</tr>

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_description</b></td>

<td width=\"400\" valign=\"top\">$description</td>

</tr>";

//<tr bgcolor=\"$colour_3\">

// <td width=\"200\" valign=\"top\"><b>$la_quantity</b></td>

// <td width=\"400\" valign=\"top\">$quantity</td>

//</tr>

echo"<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_norm_pri ($currency):</b></td>

<td width=\"400\" valign=\"top\">$currency$price</td>

</tr>

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_instock</b></td>

<td width=\"400\" valign=\"top\">$instock</td>

</tr>

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_sale_pri ($currency):</b></td>

<td width=\"400\" valign=\"top\">$sale_result</td>

</tr>

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_prod_image</b><br><img src=\"../images/thumb_$userfile_name\"></td>

<td width=\"400\" valign=\"top\">

<img src=\"../images/$userfile_name\"></td>

</tr>

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_prod_url</b> [ <a href=\"$site_url/view_product.php?product=$product\" target=\"_blank\" >$la_cust_view</a> ]</td>

<td width=\"400\" valign=\"top\"><textarea name='code' cols='55' rows='3'>$site_url/view_product.php?product=$product</textarea></td>

</tr>

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\">&nbsp;</td>

<td width=\"400\" valign=\"top\"><INPUT class=\"submit\" TYPE=\"submit\" name=\"again\" VALUE=\"$la_edit_prod_again\"></td>

</tr>

</table>

</td></tr></table>

</FORM>";

}

if (!$edit)

{

$sql_select = "select * from ".$prefix."store_inventory where product ='$product'";

$result = mysql_query($sql_select);

while ($row = mysql_fetch_array($result))

{

$title = $row["title"];

$product = $row["product"];

$description = $row["description"];

$quantity = $row["quantity"];

$price = $row["price"];

$instock = $row["instock"];

$sale_price = $row["sale_price"];

$dbimage = $row["image"];

$oldcat_id = $row["cat_id"];

}

$title = stripslashes($title);

$description = stripslashes($description);

echo"<FORM ENCTYPE=\"multipart/form-data\" ACTION=\"edit_product.php\" METHOD=\"POST\">

<table align=center width=\"600\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">

<tr><td bgcolor=\"$colour_2\">

<table width=\"100%\" align=\"center\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_title</b></td>

<td width=\"400\" valign=\"top\"><input class=\"textbox\" type=\"textbox\" name=\"title\" value=\"$title\"><font color=\"990000\"><b>*</b></font></td>

</tr>

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_prod_stock</b></td>

<td width=\"400\" valign=\"top\"><input class=\"textbox\" type=\"textbox\" name=\"prodnum\" value=\"$product\"><font color=\"990000\"></font></td>

</tr>

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_description</b><br>$la_html_tip</td>

<td width=\"400\" valign=\"top\"><textarea name=\"description\" cols=\"40\" rows=\"8\">$description</textarea></td>

</tr>

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_category</b></td>

<td width=\"400\" valign=\"top\">";

// Drop down menu of full_cat_name!

print "<select name=\"cat_id\">";

$select = mysql_query("select * from ".$prefix."store_category");

while ($row = mysql_fetch_array($select))

{

$cat_id_dd = $row["cat_id"];

$category = $row["category"];

$catfatherid_1 = $row["cat_father_id"];

echo"<option value=\"$cat_id_dd\" ";if($oldcat_id==$cat_id_dd){echo "selected";}echo">";

$t1 = $category;

if ($catfatherid_1 <> 0)

{

$sql_lowercat = "select * from ".$prefix."store_category where cat_id = $catfatherid_1";

$result1 = mysql_query ($sql_lowercat);

$row1 = mysql_fetch_array($result1);

$catfatherid_2 = $row1["cat_father_id"];

$catname_2 = $row1["category"];

$t2 = $catname_2;

$catid2 = $catid_2;

}

if ($catfatherid_2 <> 0)

{

$sql_lowercat = "select * from ".$prefix."store_category where cat_id = $catfatherid_2";

$result1 = mysql_query ($sql_lowercat);

$row1 = mysql_fetch_array($result1);

$catfatherid_3 = $row1["cat_father_id"];

$catname_3 = $row1["category"];

$t3 = $catname_3;

$catid3 = $catid_3;

}

if ($catfatherid_3 <> 0)

{

$sql_lowercat = "select * from ".$prefix."store_category where cat_id = $catfatherid_3";

$result1 = mysql_query ($sql_lowercat);

$row1 = mysql_fetch_array($result1);

$catfatherid_4 = $row1["cat_father_id"];

$catname_4 = $row1["category"];

$t4 = $catname_4;

$catid4 = $catid_4;

}

if ($catfatherid_4 <> 0)

{

$sql_lowercat = "select * from ".$prefix."store_category where cat_id = $catfatherid_4";

$result1 = mysql_query ($sql_lowercat);

$row1 = mysql_fetch_array($result1);

$catfatherid_5 = $row1["cat_father_id"];

$catname_5 = $row1["category"];

$t5 = $catname_5;

$catid5 = $catid_5;

}

if ($catfatherid_5 <> 0)

{

$sql_lowercat = "select * from ".$prefix."store_category where cat_id = $catfatherid_5";

$result1 = mysql_query ($sql_lowercat);

$row1 = mysql_fetch_array($result1);

$catfatherid_6 = $row1["cat_father_id"];

$catname_6 = $row1["category"];

$t6 = $catname_6;

$catid6 = $catid_6;

}

if ($catfatherid_6 <> 0)

{

$sql_lowercat = "select * from ".$prefix."store_category where cat_id = $catfatherid_6";

$result1 = mysql_query ($sql_lowercat);

$row1 = mysql_fetch_array($result1);

$catfatherid_7 = $row1["cat_father_id"];

$catname_7 = $row1["category"];

$t7 = $catname_7;

$catid7 = $catid_7;

}

if ($catfatherid_7 <> 0)

{

$sql_lowercat = "select * from ".$prefix."store_category where cat_id = $catfatherid_7";

$result1 = mysql_query ($sql_lowercat);

$row1 = mysql_fetch_array($result1);

$catfatherid_8 = $row1["cat_father_id"];

$catname_8 = $row1["category"];

$t8 = $catname_8;

$catid8 = $catid_8;

}

if ($catfatherid_8 <> 0)

{

$sql_lowercat = "select * from ".$prefix."store_category where cat_id = $catfatherid_8";

$result1 = mysql_query ($sql_lowercat);

$row1 = mysql_fetch_array($result1);

$catfatherid_9 = $row1["cat_father_id"];

$catname_9 = $row1["category"];

$t9 = $catname_9;

}

if ($t9)

print "$t9/";

if ($t8)

print "$t8/";

if ($t7)

print "$t7/";

if ($t6)

print "$t6/";

if ($t5)

print "$t5/";

if ($t4)

print "$t4/";

if ($t3)

print "$t3/";

if ($t2)

print "$t2/";

if ($t1)

print "$t1/";

unset($t1,$t2,$t3,$t4,$t5,$t6,$t7,$t8,$t9,$catfatherid_1,$catfatherid_2,$catfatherid_3,$catfatherid_4,$catfatherid_5,$catfatherid_6,$catfatherid_7,$catfatherid_8,$catfatherid_9,$catname_1,$catname_2,$catname_3,$catname_4,$catname_5,$catname_6,$catname_7,$catname_8,$catname_9);

echo"</option>";}

echo"</select><font color=\"990000\"><b>*</b></font></td>

</tr>";

echo"<tr bgcolor=\"$colour_3\">

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_instock</b></td>

<td width=\"400\" valign=\"top\"><input class=\"textbox\" type=\"textbox\" name=\"instock\" value=\"$instock\"><font color=\"990000\"><b>*</b></font></td>

</tr>";

//<tr bgcolor=\"$colour_3\">

// <td width=\"200\" valign=\"top\"><b>$la_quantity</b></td>

// <td width=\"400\" valign=\"top\"><input class=\"textbox\" type=\"textbox\" name=\"quantity\" value=\"$quantity\"><font color=\"990000\"><b>*</b></font></td>

//</tr>

echo"<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_norm_pri</b></td>

<td width=\"400\" valign=\"top\">$currency<input class=\"textbox\" type=\"textbox\" name=\"price\" value=\"$price\"><font color=\"990000\"><b>*</b></font></td>

</tr>

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_sale_pri</b></td>

<td width=\"400\" valign=\"top\">$currency<input class=\"textbox\" type=\"textbox\" name=\"sale_price\" value=\"$sale_price\"></td>

</tr>

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>Product Options</b></td>

<td width=\"400\" valign=\"top\" align=\"left\">

<a href=\"#\" onClick=\"window.open('product_op.php?product=$product&title=$title', 'myWin', 'toolbar=no, directories=no, location=no, status=yes, menubar=no, resizable=yes, scrollbars=yes, width=700, height=300'); return false\">Edit/View/Add Options</a></td>

</tr>

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_prod_image</b><br><img src=\"../images/thumb_$dbimage\"></td>

<td width=\"400\" valign=\"top\">

<img src=\"../images/$dbimage\"></td>

</tr>

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_del_image_q</b></td>

<td width=\"400\" valign=\"top\"><input name=\"image_function\" type=\"radio\" value=\"del\">$la_must_to_del_cur</td>

</tr>

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_up_new_img_q</b></td>

<td width=\"400\" valign=\"top\"><input name=\"image_function\" type=\"radio\" value=\"up\">$la_must_to_up_cur</td>

</tr>

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_keep_image_q</b></td>

<td width=\"400\" valign=\"top\"><input name=\"image_function\" type=\"radio\" value=\"\" checked>$la_must_to_keep_cur</td>

</tr>

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\"><b>$la_up_new_img</b></td>

<td width=\"400\" valign=\"top\"><INPUT class=\"file\" NAME=\"userfile\" TYPE=\"file\">$la_prod_types</td>

</tr bgcolor=\"$colour_3\">

<input type=\"hidden\" name=\"product\" value=\"$product\">

<input type=\"hidden\" name=\"dbimage\" value=\"$dbimage\">

<tr bgcolor=\"$colour_3\">

<td width=\"200\" valign=\"top\">&nbsp;</td>

<td width=\"400\" valign=\"top\"><INPUT class=\"submit\" TYPE=\"submit\" name=\"edit\" VALUE=\"$la_edit_prod_title\"></td>

</tr>

</table>

</td></tr></table>

</FORM>";

}

include("footer.inc.php");

} // end if session is registered

?>

Link to comment
Share on other sites




×
×
  • Create New...