Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /home/jackjohn/public_html/cgi-bin/sc/templates/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/jackjohn/public_html/cgi-bin/sc/templates/includes/Curved-MiniCart.js
#Curved Include File
#Copyright ShopSite Inc. Design by Lauren

      <h3>[-- STORE.SC_YourShoppingCart --]</h3>
[-- IF MiniCart --]
<script type="text/JavaScript" language="JavaScript">
function alternate(id){
 if(document.getElementsByTagName){  
   var table = document.getElementById(id);  
   var rows = table.getElementsByTagName("tr");  
   for(i = 0; i < rows.length; i++){          
 //manipulate rows
     if(i % 2 == 0){
       rows[i].className = "prod_list";
     }else{
       rows[i].className = "prod_alt";
     }      
   }
 }
}
</script>
<script type="text/JavaScript" language="JavaScript">
var cookies=document.cookie;  //read in all cookies
var start = cookies.indexOf("ss_cart_[-- STORE_Serial_Number --]="); 
var cartvalues = "";
var linecount = 0;
var start1;
var end1;
var tmp;
// Start Output
document.write("<table id=\"prod_list\" align=\"center\" class=\"boxedin\" width=\"99%\">");
if (start == -1)  //No cart cookie
{
}
else   //cart cookie is present
{
  start = cookies.indexOf("=", start) +1;  
  var end = cookies.indexOf(";", start);  

  if (end == -1)
  {
    end = cookies.length;
  }
  cartvalues = unescape(cookies.substring(start,end)); //read in just the cookie data
  start = 0;
  while ((start = cartvalues.indexOf("|", start)) != -1)
  {
    start++;
    end = cartvalues.indexOf("|", start);
    if (end != -1)
    {
      linecount++;

      if (linecount == 3)  // Product Subtotal
      {
        start1 = start;
        end1 = end;
        document.write("<tr><td bgcolor=\"#FFFFFF\"><b>[-- STORE.Qty --]<\/b><\/td>");
        document.write("<td align=\"center\" bgcolor=\"#FFFFFF\"><b>[-- STORE.Product --]<\/b><\/td>");
        document.write("<td align=\"center\" bgcolor=\"#FFFFFF\"><b>[-- STORE.Price --]<\/b><\/td><\/tr>");
      }

      if (linecount > 3)  // individual products
      {
        tmp = cartvalues.substring(start,end);
        colon = tmp.indexOf(":", 0);
        document.write("<tr class=\"prod_list\">");
        document.write("<td align=\"center\">");
        document.write(tmp.substring(0,colon));
        document.write("<\/td><td>");
        colon2 = tmp.indexOf(":", colon+1);
        document.write(tmp.substring(colon2+1,end - start));
        document.write("<\/td><td align=\"right\">");
        document.write(tmp.substring(colon+1,colon2));
        document.write("<\/td><\/tr>");
      }

      start = end;
    }
    else
    {
      break;
    }
  } // end while loop

  //close minicart HTML
  document.write("<tr>");
  document.write("<td colspan=\"2\" align=\"right\" bgcolor=\"#FFFFFF\"><b>[-- STORE.Subtotal --]<\/b><\/td>");
  document.write("<td align=\"right\" bgcolor=\"#FFFFFF\"><b>");
  tmp = cartvalues.substring(start1,end1);
  colon = tmp.indexOf(":", 0);
  document.write(tmp.substring(colon+1,end1 - start1));
  document.write("<\/b><\/td>");
  document.write("<\/tr>");
}
  document.write("<tr>");
  document.write("<td align=\"right\" colspan=\"3\" bgcolor=\"#FFFFFF\"><a class=\"mini\" href=\"[-- SHOPPING_CART_URL --]\" rel=\"nofollow\">Continue to [-- STORE.SC_YourShoppingCart --]<\/a><\/td>");
  document.write("<\/tr>");
  document.write("</table>");

</script>
[-- ELSE --]
     <p class="boxedin" align="right">
<a class="mini" href="[-- SHOPPING_CART_URL --]" rel="nofollow">Continue to [-- STORE.SC_YourShoppingCart --]</a>
[-- IF ShopSiteSecurityImage --]<br><center>[-- ShopSiteSecurityImage --]</center>[-- END_IF --]
      </p>
[-- END_IF --]

haha - 2025