Jump to content

Help


Butler

Recommended Posts


I tried inserting a banner and messed it up. What do i got to get rid of here to delete. My mom tried to do it with dream weaver.

 

<?php 
if(stristr($_SERVER['SERVER_SOFTWARE'],'microsoft')){
         error_reporting("E_ALL");
}
include ('library/session_save_path.php');
session_start();

if (empty($HTTP_COOKIE_VARS[cart_items_num]))
        $num = 1;
$num = $HTTP_COOKIE_VARS[cart_items_num] + 1;

if ($_GET[addcart] == 1) {

        setcookie("cart_items[$num]", "$_GET[itemid]");
        setcookie("cart_items_num", $num);
        $jsrefresh = '?page=cart';
        include 'include/jsrefresh.php';
}

if ($_GET[delete] == 1) {
        $cookie = $_GET[cookie];
        setcookie("cart_items[$cookie]", "", time() - 3600);
        $jsrefresh = '?page=cart';
        include 'include/jsrefresh.php';
}

//---------------------
include 'library/fiprotect.php';

$filter = "$_GET

";

if(stristr($filter, '/') === FALSE) {
} else {
        die();
}

//---------------------

include 'include/mysql.php';
include 'include/global.php';
include 'library/category_header.php';
include 'library/mr.php';

if (empty($rowxxx[LANGUAGE])) $rowxxx[LANGUAGE] = english;
include "lang/$rowxxx[LANGUAGE].php";

$shownav = Yes;
if ($_GET

 == detail) $shownav = No;

//---------------------------

$cart_items_count = '0';
if (isset($HTTP_COOKIE_VARS[cart_items])) {
        foreach ($HTTP_COOKIE_VARS[cart_items] as $name => $value) {
        $cart_items_count = $cart_items_count + 1;
        }
}
//---------------------------

include "library/price.php";

//----------------------------
$header = $rowxxx[sITENAME3];

if ($_GET

 == detail) {

        $SQL = "SELECT * from PRODUCTS WHERE ID = '$_GET[get_id]'"; $result = @mysql_query( $SQL ); $row = @mysql_fetch_array( $result );
        $rowxxx[sITENAME3] = "$rowxxx[sITENAME3] :: $row[TITLE]";

        $SQL = "SELECT * from CATEGORIES WHERE ID = '$_GET[category]'"; $result = @mysql_query( $SQL ); $row = @mysql_fetch_array( $result );
        $rowxxx[sITENAME3] = "$rowxxx[sITENAME3] :: $row[TITLE]";

}

if ($_GET

 == browse) {

        $SQL = "SELECT * from CATEGORIES WHERE ID = '$_GET[category]'"; $result = @mysql_query( $SQL ); $row = @mysql_fetch_array( $result );
        $rowxxx[sITENAME3] = "$rowxxx[sITENAME3] :: $row[TITLE] :: $rowxxx[sITENAMEB]";

}
?>
<html>
<head>
<title> 
<?php echo $rowxxx[sITENAME3]; ?>
</title>
<link href="stylesheet2.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="lightbox.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<BODY bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
  <form action="index.php?page=browse&mode=search" method="post" name="form1" id="form1" style="display: inline; margin: 0;">
    <tr> 
      <td class="padder5" nowrap><span class="bigtitle"><a href="index.php"> 
        <?php echo $header; ?>
        </a></span></td>
      <td width="100%"> 
        <div align="right"><span class="white_link"><img src="images/user-login-blue.gif" width="14" height="14"> 
          <?PHP
if ($_SESSION[username] != $nil) { ?>
          <?php echo $s_index7; ?>
          <?php echo $_SESSION[username]; ?>
          ( <a href="download.php?logout=1"> 
          <?php echo $s_index8; ?>
          </a> ) <?php if ($rowi[sTATUS] != '2') { ?>
           ( <a href="download.php"> 
          <?php echo $s_index9; ?>
          </a> ) 
           
          <?PHP }} else  { ?>
          <?php echo $s_index10; ?>
          ( <a href="download.php"> 
          <?php echo $s_index11; ?>
          </a> ) ( <a href="index.php?page=register"> 
          <?php echo $s_index12; ?>
          </a> )
          <?PHP } ?>
          </span></div>
      </td>
      <td valign="top"><img src="images/transparent.gif" width="5" height="10"></td>
      <td nowrap> 
        <input name="SEARCH" type="text" size="20" />
        
        <input type="submit" name="Submit" value="<?php echo $s_index2; ?>" />
      </td>
    </tr>
  </form>
</table>
<table width="100%" border=0 cellpadding=2 cellspacing=0 height="90">
  <tr> 
    <td class="space" valign=top > 
      <table border="0" cellspacing="0" cellpadding="0" width="100%" align="CENTER">
        <tr> 
          <td><img src="images/bx_1.gif" width="14" height="15"></td>
          <td background="images/bx_top.jpg"></td>
          <td><img src="images/bx_2.gif" width="14" height="15"></td>
        </tr>
        <tr> 
          <td background="images/bx_left.jpg"></td>
          <td width="100%" bgcolor="#FFFFFF"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="colorclass1"><img src="images/nw.gif" width="10" height="10" /></td>
                <td class="colorclass1"></td>
                <td class="colorclass1"><img src="images/ne.gif" width="10" height="10" /></td>
              </tr>
              <tr> 
                <td class="colorclass1"> </td>
                <td class="colorclass1" width="100%"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td ><img src="images/checkout3-orange.gif" width="14" height="14"></td>
                      <td class="padder5" width="100%"><a href="index.php?page=cart"><b> 
                        <?php echo $s_index1; ?>
                        </b></a> 
                        <?php if (empty($cart_items_count)) echo '( <b>0</b> )'; else echo "( <B>$cart_items_count</b> )";?>
                      </td>
                    </tr>
                  </table>
                </td>
                <td class="colorclass1"> </td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="padder5u"><img src="images/transparent.gif" width="20" height="5" /></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="colorclass2"> </td>
                <td class="colorclass2" width="100%"> <img src="images/transparent.gif" width="10" height="5"> 
                  <table width="100%" cellpadding="0" cellspacing="0" border="0" >
                    <tr> 
                      <td class="padder5" nowrap > 
                        <?php echo $s_index3; ?>
                        : <b>
                        <?PHP 
if (isset($HTTP_COOKIE_VARS[cart_items])) {
        price ($value,$HTTP_COOKIE_VARS[cart_items],$csymbol);
} else { ?>
                        </b> <b> 
                        <?php echo $s_index4; ?>
                        </b> 
                        <?PHP } ?>
                        <?PHP if ($HTTP_COOKIE_VARS[cart_items] != $nil) { ?>
                      </td>
                    </tr>
                    <tr> 
                      <td class="padder5" nowrap ><img src="images/visa.gif" width="14" height="14"> <a href="order.php?store=1"> 
                        <?php echo $s_index5; ?>
                        </a> </td>
                    </tr>
                    <?PHP } ?>
                  </table>
                </td>
                <td class="colorclass2"> </td>
              </tr>
              <tr> 
                <td height="10"><img src="images/sw2.gif" width="10" height="10" /></td>
                <td class="colorclass2" height="10"></td>
                <td height="10"><img src="images/se2.gif" width="10" height="10" /></td>
              </tr>
            </table>
          </td>
          <td background="images/bx_right.jpg"></td>
        </tr>
        <tr> 
          <td height="14"><img src="images/bx_3.gif" width="14" height="15"></td>
          <td background="images/bx_bottom.jpg" height="14"></td>
          <td height="14"><img src="images/bx_4.gif" width="14" height="15"></td>
        </tr>
      </table>
      <?php if ($rowxxx[sHOWCATS] == Yes || $rowxxx[sHOWCATS] == '') { ?>
      <br>
      <table border="0" cellspacing="0" cellpadding="0" width="100%" align="CENTER">
        <tr> 
          <td><img src="images/bx_1.gif" width="14" height="15"></td>
          <td background="images/bx_top.jpg"></td>
          <td><img src="images/bx_2.gif" width="14" height="15"></td>
        </tr>
        <tr> 
          <td background="images/bx_left.jpg"></td>
          <td width="100%" bgcolor="#FFFFFF"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="colorclass1"><img src="images/nw.gif" width="10" height="10" /></td>
                <td class="colorclass1"></td>
                <td class="colorclass1"><img src="images/ne.gif" width="10" height="10" /></td>
              </tr>
              <tr> 
                <td class="colorclass1"> </td>
                <td class="colorclass1" width="100%"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <?php if (!empty($_GET[category])) { ?>
                      <?PHP
$SQLc = "SELECT * from CATEGORIES WHERE ID = '$_GET[category]'"; $resultc = @mysql_query( $SQLc ); $rowc = @mysql_fetch_array( $resultc );
$lastcat = $rowc[CATEGORY];

//////////////////

$MyCategoryTitle=EdURL($rowc[TITLE]);

/////////////////

if (empty($rowc[CATEGORY])) { ?>
                      <td><a href="index.php"><img src="images/arrow%20up%20Green.png" width="16" height="16" border="0"></a></td>
                      <?PHP
} else { 



?>
                      <td><a href="<?PHP mr("$MyCategoryTitle", "$rowc[CATEGORY]", "$rowxxx[MR]", "?page=browse&category="); ?>"><img src="images/arrow%20up%20Green.png" width="16" height="16" border="0"></a></td>
                      <?PHP } ?>
                      <?PHP } ?>
                      <td class="padder5" width="100%"><a href="index.php"><b> 
                        <?php echo $s_index6; ?>
                        </b></a></td>
                    </tr>
                  </table>
                </td>
                <td class="colorclass1"> </td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="padder5u"><img src="images/transparent.gif" width="20" height="5" /></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="colorclass2"> </td>
                <td class="colorclass2" width="100%"> <img src="images/transparent.gif" width="10" height="5"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <?PHP

$SQLc = "SELECT * from CATEGORIES WHERE CATEGORY = '$_GET[category]'"; $resultc = @mysql_query( $SQLc ); $rowc = @mysql_fetch_array( $resultc );
if (empty($rowc[CATEGORY])) { $wherearewe = top; }

$SQLc = "SELECT * from CATEGORIES WHERE CATEGORY = '$_GET[category]'"; $resultc = @mysql_query( $SQLc ); $rowc = @mysql_fetch_array( $resultc );
if (!empty($rowc[CATEGORY]))  { $wherearewe = notbottom; }
if (empty($rowc[CATEGORY])) { $wherearewe = bottom; }

if ($wherearewe == top) $category = '';
if ($wherearewe == notbottom) $category = $_GET[category];
if ($wherearewe == bottom) $category = $lastcat;

$SQLcaT = "SELECT * from CATEGORIES WHERE CATEGORY = '$category' ORDER BY TITLE ASC";
$resultcaT = @mysql_query( $SQLcaT ); while( $rowcaT = @mysql_fetch_array( $resultcaT ) ) {


//////////////////

$MyCategoryTitle=EdURL($rowcaT[TITLE]);

/////////////////

?>
                    <tr> 
                      <td class="padder5" width = 100% colspan="2" nowrap><a href="<?PHP mr("$MyCategoryTitle", "$rowcaT[iD]", "$rowxxx[MR]", "?page=browse&category="); ?>"> 
                        <?php echo $rowcaT[TITLE]; ?>
                        </a></td>
                    </tr>
                    <?PHP } ?>
                  </table>
                </td>
                <td class="colorclass2"> </td>
              </tr>
              <tr> 
                <td height="10"><img src="images/sw2.gif" width="10" height="10" /></td>
                <td class="colorclass2" height="10"></td>
                <td height="10"><img src="images/se2.gif" width="10" height="10" /></td>
              </tr>
            </table>
          </td>
          <td background="images/bx_right.jpg"></td>
        </tr>
        <tr> 
          <td height="14"><img src="images/bx_3.gif" width="14" height="15"></td>
          <td background="images/bx_bottom.jpg" height="14"></td>
          <td height="14"><img src="images/bx_4.gif" width="14" height="15"></td>
        </tr>
      </table>
      <p>
        <?PHP } ?>
      </p>
      <table border="0" cellspacing="0" cellpadding="0" width="100%" align="CENTER">
        <tr>
        <td><img src="images/bx_1.gif" width="14" height="15"></td>
        <td background="images/bx_top.jpg"></td>
        <td><img src="images/bx_2.gif" width="14" height="15"></td>
      </tr>
      <tr>
        <td background="images/bx_left.jpg"></td>
        <td width="100%" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="colorclass1"><img src="images/nw.gif" width="10" height="10" /></td>
            <td class="colorclass1"></td>
            <td class="colorclass1"><img src="images/ne.gif" width="10" height="10" /></td>
          </tr>
          <tr>
            <td class="colorclass1"> </td>
            <td class="colorclass1" width="100%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <?php if (!empty($_GET[category])) { ?>
                <?PHP
$SQLc = "SELECT * from CATEGORIES WHERE ID = '$_GET[category]'"; $resultc = @mysql_query( $SQLc ); $rowc = @mysql_fetch_array( $resultc );
$lastcat = $rowc[CATEGORY];

//////////////////

$MyCategoryTitle=EdURL($rowc[TITLE]);

/////////////////

if (empty($rowc[CATEGORY])) { ?>
                <td><a href="index.php"><img src="images/arrow%20up%20Green.png" width="16" height="16" border="0"></a></td>
                <?PHP
} else { 



?>
                <td><a href="<?PHP mr("$MyCategoryTitle", "$rowc[CATEGORY]", "$rowxxx[MR]", "?page=browse&category="); ?>"><img src="images/arrow%20up%20Green.png" width="16" height="16" border="0"></a></td>
                <?PHP } ?>
                <?PHP } ?>
                <td class="padder5" width="100%"> </td>
              </tr>
            </table></td>
            <td class="colorclass1"> </td>
          </tr>
        </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="padder5u"><img src="images/transparent.gif" width="20" height="5" /></td>
            </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="colorclass2"> </td>
              <td class="colorclass2" width="100%"><img src="images/transparent.gif" width="10" height="5">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <?PHP

$SQLc = "SELECT * from CATEGORIES WHERE CATEGORY = '$_GET[category]'"; $resultc = @mysql_query( $SQLc ); $rowc = @mysql_fetch_array( $resultc );
if (empty($rowc[CATEGORY])) { $wherearewe = top; }

$SQLc = "SELECT * from CATEGORIES WHERE CATEGORY = '$_GET[category]'"; $resultc = @mysql_query( $SQLc ); $rowc = @mysql_fetch_array( $resultc );
if (!empty($rowc[CATEGORY]))  { $wherearewe = notbottom; }
if (empty($rowc[CATEGORY])) { $wherearewe = bottom; }

if ($wherearewe == top) $category = '';
if ($wherearewe == notbottom) $category = $_GET[category];
if ($wherearewe == bottom) $category = $lastcat;

$SQLcaT = "SELECT * from CATEGORIES WHERE CATEGORY = '$category' ORDER BY TITLE ASC";
$resultcaT = @mysql_query( $SQLcaT ); while( $rowcaT = @mysql_fetch_array( $resultcaT ) ) {


//////////////////

$MyCategoryTitle=EdURL($rowcaT[TITLE]);

/////////////////

?>
                  <tr>
                    <td class="padder5" width = 100% colspan="2" nowrap> </td>
                  </tr>
                  <?PHP } ?>
                </table></td>
              <td class="colorclass2"> </td>
            </tr>
            <tr>
              <td height="10"><img src="images/sw2.gif" width="10" height="10" /></td>
              <td class="colorclass2" height="10"></td>
              <td height="10"><img src="images/se2.gif" width="10" height="10" /></td>
            </tr>
          </table></td>
        <td background="images/bx_right.jpg"></td>
      </tr>
      <tr>
        <td height="14"><img src="images/bx_3.gif" width="14" height="15"></td>
        <td background="images/bx_bottom.jpg" height="14"></td>
        <td height="14"><img src="images/bx_4.gif" width="14" height="15"></td>
      </tr>
</table></td>
    <td valign=bottom><img src="images/transparent.gif" width="10" height="10"></td>
    <td class="space" width="100%" valign="TOP"> 
      <table border="0" cellspacing="0" cellpadding="0" width="100%" align="CENTER">
        <tr> 
          <td><img src="images/bx_1.gif" width="14" height="15"></td>
          <td background="images/bx_top.jpg"></td>
          <td><img src="images/bx_2.gif" width="14" height="15"></td>
        </tr>
        <tr> 
          <td height="158" background="images/bx_left.jpg"></td>
          <td width="100%" bgcolor="#FFFFFF"> 
          <img src="../../../Documents/Unnamed Site 3/header_bg.jpg" width="900" height="250"></td>
          <td background="images/bx_right.jpg"></td>
        </tr>
        <tr> 
          <td height="14"><img src="images/bx_3.gif" width="14" height="15"></td>
          <td background="images/bx_bottom.jpg" height="14"></td>
          <td height="14"><img src="images/bx_4.gif" width="14" height="15"></td>
        </tr>
      </table>
      <p align=right class=itty_link> 
      </p>
    </td>
  </tr>
</table>
</body>
</html>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.