Jump to content

anushka

Members
  • Posts

    41
  • Joined

  • Last visited

    Never

Everything posted by anushka

  1. include('../affiliate/users/groups.php' ); when u this function i am getting all this errors Warning: include(../affiliate/users/groups.php) [function.include]: failed to open stream: No such file or directory in /home/mailsrig/public_html/mycity/listing/index.php on line 7 Warning: include(../affiliate/users/groups.php) [function.include]: failed to open stream: No such file or directory in /home/mailsrig/public_html/mycity/listing/index.php on line 7 Warning: include() [function.include]: Failed opening '../affiliate/users/groups.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mailsrig/public_html/mycity/listing/index.php on line 7 Warning: Cannot modify header information - headers already sent by (output started at /home/mailsrig/public_html/mycity/listing/index.php:7) in /home/mailsrig/public_html/mycity/layout/header.php on line 21 Warning: Cannot modify header information - headers already sent by (output started at /home/mailsrig/public_html/mycity/listing/index.php:7) in /home/mailsrig/public_html/mycity/layout/header.php on line 22 Warning: Cannot modify header information - headers already sent by (output started at /home/mailsrig/public_html/mycity/listing/index.php:7) in /home/mailsrig/public_html/mycity/layout/header.php on line 23 Warning: Cannot modify header information - headers already sent by (output started at /home/mailsrig/public_html/mycity/listing/index.php:7) in /home/mailsrig/public_html/mycity/layout/header.php on line 24 Warning: Cannot modify header information - headers already sent by (output started at /home/mailsrig/public_html/mycity/listing/index.php:7) in /home/mailsrig/public_html/mycity/layout/header.php on line 25
  2. include(/public_html/affiliate/users."groups.php"); the groups.php is the file i want use.its located in affiliate/users folders is this syntax is correct Can u please tel Thanks a lot
  3. i have two parent directory One is affiliate directory and another is XXX directory i want use the one file from Affiliate Directory in xxx how can i use Please can any one help me
  4. hii all my php files has .tpl extension is there any editor that i should work like Dreamweaver .Please tel me are there any software
  5. i have navbar when i click the image is not displaying below that .Its showing toward right all the image are showing under Here is code Please some one help <html> <head> <style type="text/css"> body{ font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif; /* Font to use */ margin:2px; } .dhtmlgoodies_question{ /* Styling question */ /* Start layout CSS */ color:#FFF; font-size:0.9em; background-color:#317082; width:200px; margin-bottom:2px; margin-top:2px; padding-left:2px; background-image:url('images/bg_answer.gif'); background-repeat:no-repeat; background-position: right -198px; height:20px; overflow:hidden; cursor:pointer; float:left; /* End layout CSS */ } .dhtmlgoodies_answer{ /* Parent box of slide down content */ /* Start layout CSS */ border:1px solid #317082; background-color:#E2EBED; width:200px; /* End layout CSS */ visibility:hidden; height:0px; overflow:hidden; position:absolute; } .dhtmlgoodies_answer_content{ /* Content that is slided down */ padding:1px; font-size:0.9em; position:absolute; float:none; } </style> <script type="text/javascript"> var dhtmlgoodies_slideSpeed = 10; // Higher value = faster var dhtmlgoodies_timer = 10; // Lower value = faster var objectIdToSlideDown = false; var dhtmlgoodies_activeId = false; var dhtmlgoodies_slideInProgress = false; function showHideContent(e,inputId) { if(dhtmlgoodies_slideInProgress)return; dhtmlgoodies_slideInProgress = true; if(!inputId)inputId = this.id; inputId = inputId + ''; var numericId = inputId.replace(/[^0-9]/g,''); var answerDiv = document.getElementById('dhtmlgoodies_a' + numericId); objectIdToSlideDown = false; if(!answerDiv.style.display || answerDiv.style.display=='none'){ if(dhtmlgoodies_activeId && dhtmlgoodies_activeId!=numericId){ objectIdToSlideDown = numericId; slideContent(dhtmlgoodies_activeId,(dhtmlgoodies_slideSpeed*-1)); }else{ answerDiv.style.display='block'; answerDiv.style.visibility = 'visible'; slideContent(numericId,dhtmlgoodies_slideSpeed); } }else{ slideContent(numericId,(dhtmlgoodies_slideSpeed*-1)); dhtmlgoodies_activeId = false; } } function slideContent(inputId,direction) { var obj =document.getElementById('dhtmlgoodies_a' + inputId); var contentObj = document.getElementById('dhtmlgoodies_ac' + inputId); height = obj.clientHeight; if(height==0)height = obj.offsetHeight; height = height + direction; rerunFunction = true; if(height>contentObj.offsetHeight){ height = contentObj.offsetHeight; rerunFunction = false; } if(height<=1){ height = 1; rerunFunction = false; } obj.style.height = height + 'px'; var topPos = height - contentObj.offsetHeight; if(topPos>0)topPos=0; contentObj.style.top = topPos + 'px'; if(rerunFunction){ setTimeout('slideContent(' + inputId + ',' + direction + ')',dhtmlgoodies_timer); }else{ if(height<=1){ obj.style.display='none'; if(objectIdToSlideDown && objectIdToSlideDown!=inputId){ document.getElementById('dhtmlgoodies_a' + objectIdToSlideDown).style.display='block'; document.getElementById('dhtmlgoodies_a' + objectIdToSlideDown).style.visibility='visible'; slideContent(objectIdToSlideDown,dhtmlgoodies_slideSpeed); }else{ dhtmlgoodies_slideInProgress = false; } }else{ dhtmlgoodies_activeId = inputId; dhtmlgoodies_slideInProgress = false; } } } function initShowHideDivs() { var divs = document.getElementsByTagName('DIV'); var divCounter = 1; for(var no=0;no<divs.length;no++){ if(divs[no].className=='dhtmlgoodies_question'){ divs[no].onclick = showHideContent; divs[no].id = 'dhtmlgoodies_q'+divCounter; var answer = divs[no].nextSibling; while(answer && answer.tagName!='DIV'){ answer = answer.nextSibling; } answer.id = 'dhtmlgoodies_a'+divCounter; contentDiv = answer.getElementsByTagName('DIV')[0]; contentDiv.style.top = 0 - contentDiv.offsetHeight + 'px'; contentDiv.className='dhtmlgoodies_answer_content'; contentDiv.id = 'dhtmlgoodies_ac' + divCounter; answer.style.display='none'; answer.style.height='1px'; divCounter++; } } } window.onload = initShowHideDivs; </script> <body> <div class="dhtmlgoodies_question">New Products</div> <div class="dhtmlgoodies_answer"> <div> <img src="images2.jpg"/> </div> </div> <div class="dhtmlgoodies_question">Hot Products</div> <div class="dhtmlgoodies_answer"> <div> <img src="images1.jpg"/> </div> </div> <div class="dhtmlgoodies_question">Comming soon</div> <div class="dhtmlgoodies_answer"> <div> <img src="images3.jpg"/> </div> </div> </body> </head> </html> Thanks in advance
  6. hii i am not using the blue color ,but its taking blue color in drop down menu i want it to be balck color Can any one help please <html> <head> <style type="text/css"> #dropmenudiv{ position:absolute; border:1px solid black; border-bottom-width: 0; font:normal 12px Verdana; font_color:#191919; line-height:18px; z-index:100; } #dropmenudiv a{ width: 100%; display: block; text-indent: 3px; border-bottom: 1px solid black; padding: 1px 0; text-decoration: none; font-weight: bold; } #dropmenudiv a:hover{ /*hover background color*/ background-color: yellow; font_color:#191919; } </style> <script type="text/javascript"> /*********************************************** * AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ //Contents for menu 1 var menu1=new Array() menu1[0]= '<a href="http://www.javascriptkit.com">Ashok</a><br>' menu1[1]='<a href="http://www.freewarejava.com">Ashok1</a><br>' menu1[2]='<a href="http://codingforums.com">Ashok2</a><br>' menu1[3]='<a href="http://www.cssdrive.com">Ashok3</a><br>' menu1[4]='<a href="http://www.javascriptkit.com">Ashok4</a><br>' menu1[5]='<a href="http://www.freewarejava.com">Ashok5</a><br>' menu1[6]='<a href="http://codingforums.com">Ashok6</a><br>' menu1[7]='<a href="http://www.cssdrive.com">Ashok7</a><br>' //Contents for menu 2, and so on var menu2=new Array() menu2[0]='<a href="http://cnn.com">CNN</a><br>' menu2[1]='<a href="http://msnbc.com">MSNBC</a><br>' menu2[2]='<a href="http://news.bbc.co.uk">BBC News</a><br>' menu2[3]='<a href="http://cnn.com">CNN</a><br>' menu2[4]='<a href="http://msnbc.com">MSNBC</a><br>' menu2[5]='<a href="http://news.bbc.co.uk">BBC News1</a><br>' var menuwidth='165px' //default menu width var menubgcolor='lightyellow' //menu bgcolor var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds) var hidemenu_onclick="yes" //hide menu when user clicks within menu? /////No further editting needed var ie4=document.all var ns6=document.getElementById&&!document.all if (ie4||ns6) document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>') function getposOffset(what, offsettype){ var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop; var parentEl=what.offsetParent; while (parentEl!=null){ totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop; parentEl=parentEl.offsetParent; } return totaloffset; } function showhide(obj, e, visible, hidden, menuwidth){ if (ie4||ns6) dropmenuobj.style.left=dropmenuobj.style.top="-500px" if (menuwidth!=""){ dropmenuobj.widthobj=dropmenuobj.style dropmenuobj.widthobj.width=menuwidth } if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover") obj.visibility=visible else if (e.type=="click") obj.visibility=hidden } function iecompattest(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body } function clearbrowseredge(obj, whichedge){ var edgeoffset=0 if (whichedge=="rightedge"){ var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15 dropmenuobj.contentmeasure=dropmenuobj.offsetWidth if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure) edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth } else{ var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18 dropmenuobj.contentmeasure=dropmenuobj.offsetHeight if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up? edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge } } return edgeoffset } function populatemenu(what){ if (ie4||ns6) dropmenuobj.innerHTML=what.join("") } function dropdownmenu(obj, e, menucontents, menuwidth){ if (window.event) event.cancelBubble=true else if (e.stopPropagation) e.stopPropagation() clearhidemenu() dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv populatemenu(menucontents) if (ie4||ns6){ showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth) dropmenuobj.x=getposOffset(obj, "left") dropmenuobj.y=getposOffset(obj, "top") dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px" dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px" } return clickreturnvalue() } function clickreturnvalue(){ if (ie4||ns6) return false else return true } function contains_ns6(a, b) { while (b.parentNode) if ((b = b.parentNode) == a) return true; return false; } function dynamichide(e){ if (ie4&&!dropmenuobj.contains(e.toElement)) delayhidemenu() else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget)) delayhidemenu() } function hidemenu(e){ if (typeof dropmenuobj!="undefined"){ if (ie4||ns6) dropmenuobj.style.visibility="hidden" } } function delayhidemenu(){ if (ie4||ns6) delayhide=setTimeout("hidemenu()",disappeardelay) } function clearhidemenu(){ if (typeof delayhide!="undefined") clearTimeout(delayhide) } if (hidemenu_onclick=="yes") document.onclick=hidemenu </script> </head> <body> <div id="tooltip" style="bottom::relative;visibility:hidden;border:0px solid white;font-size:12px;layer-background-color:lightyellow;background-color:lightyellow;padding:1px"></div> <a href="default1.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()">Check dis</a> <a href="default2.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu2, '150px')" onMouseout="delayhidemenu()">News Sites</a> </body>
  7. Hii i have a situation .i kept button has an image type(and the image will be of forward/backward).whenever the user clicks on the backward button the image should go show that particular image And i Am using sliding show also and the code which i have written is here <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>continuous scrolling images</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> body #container { position:relative; width:500px; height:300px; overflow:hidden; border:5px double #000; background-color:#fff; margin:100px auto 0 auto; height:300px; } #div1 { position:absolute; left:0px; top:0px; width:500px; height:500px; } #div2 { position:absolute; left:424px; top:0px; width:500px; height:500px; } #div3 { position:absolute; bottom:0; width:100%; background:#F6F6F6; height:20px; /* Height of the footer */ } #div4 { position:absolute; bottom:0; width:100%; } img { border:1px solid #000; margin:2px; float:left; } </style> <script type="text/javascript"> var m=0; var n=424; var speed=20; function scrollPics() { document.getElementById('div1').style.left=m+'px'; document.getElementById('div2').style.left=n+'px'; m--; n--; if(m==-424) { m=424; } if(n==-424) { n=424; } setTimeout('scrollPics()',speed); } window.onload=function() { scrollPics(); } </script> </head> <body> <div id="container"> <div id="div1"> <img src="snow trees.jpg" height="200" width="200" alt=""> <img src="homepage.jpg" height="200" width="200" alt=""> </div> <div id="div2"> <img src="windows 2000.jpg"height="200" width="200" alt=""> <img src="solar eclipse.jpg"height="200" width="200" alt=""> </div> </script> <div id="div3"> <INPUT TYPE="image" SRC="forward.jpg" align= "left" VALUE="Submit now" ALT="Submit now" NAME="Submit now" > </div> <div id="div4"> <INPUT TYPE="image" SRC="backward.jpg" align="right" VALUE="Submit now1" ALT="Submit now1" NAME="Submit now1" > </div> </body> </html> Please tel how to do this EDIT:Code tags...use em'
  8. i have home page i should add image and thet image should should change at particular time and there will be a button changeonclick on that button image should change i think u all got it what is my problem i wrote code,but i am not able to read the main image <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html ><head> <title></title> <link href="/utility/main.css" type="text/css" rel="STYLESHEET"> </head> <body> <script language="JavaScript" type="text/javascript"><!-- var number = window.location.search.substring(1) - 0; document.write('<IMG SRC="images1' + number + '.jpg" WIDTH=400 HEIGHT=300><P>'); if (number == 1) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?1"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if (number == 2) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?2"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if (number == 3) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?3"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if (number == 4) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?4"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if (number == 5) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?5"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if ((number >= 1) && (number < 5)) document.write('<IMG SRC="/images1' + (number + 1) + '.jpg" WIDTH=1 HEIGHT=1>'); //--></script> </body> </html>
  9. i have home page i should add image and thet image should should change at particular time and there will be button that should also upon that it should change i think u all got itr what is my problem i wrote code,but i am not able to read the main image <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html ><head> <title></title> <link href="/utility/main.css" type="text/css" rel="STYLESHEET"> </head> <body> <script language="JavaScript" type="text/javascript"><!-- var number = window.location.search.substring(1) - 0; document.write('<IMG SRC="images1' + number + '.jpg" WIDTH=400 HEIGHT=300><P>'); if (number == 1) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?1"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if (number == 2) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?2"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if (number == 3) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?3"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if (number == 4) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?4"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if (number == 5) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?5"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if ((number >= 1) && (number < 5)) document.write('<IMG SRC="/images1' + (number + 1) + '.jpg" WIDTH=1 HEIGHT=1>'); //--></script> </body> </html>
  10. Hii every one i have drop down menu on one of my link.Its working fine,But when the drop down menu display the text is not aligning properly means all the links of that text are not starting at the same starting point. i want the text to be started at the same point can any one help please
  11. if i write the JavaScript in the page itself i can read it But even i keep in external js file i am not able to read Please can any fix what is the problem in my code Code is below /****************>html file <html> <head> <script type="text/javascript" src="delayhidemenu.js"> </script> </head> <body> <div id="tooltip" style="position:absolute;visibility:hidden;border:1px solid black;font-size:12px;layer-background-color:lightyellow;background-color:lightyellow;padding:1px"></div> <a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()">Web Design</a> <a href="default2.htm" onClick="return dropdownmenu(this, event, menu2, '200px')" onMouseout="delayhidemenu()" onClick="go()">News Sites</a> (onclick) </body> /************************ Js file for that above file function go() { //Contents for menu 1 var menu1=new Array() menu1[0]='<a href="http://www.javascriptkit.com">JavaScript Kit</a>' menu1[1]='<a href="http://www.freewarejava.com">Freewarejava.com</a>' menu1[2]='<a href="http://codingforums.com">Coding Forums</a>' menu1[3]='<a href="http://www.cssdrive.com">CSS Drive</a>' menu1[4]='<a href="http://www.javascriptkit.com">JavaScript Kit1</a>' menu1[5]='<a href="http://www.freewarejava.com">Freewarejava.com1</a>' menu1[6]='<a href="http://codingforums.com">Coding Forums1</a>' menu1[7]='<a href="http://www.cssdrive.com">CSS1 Drive</a>' //Contents for menu 2, and so on var menu2=new Array() menu2[0]='<a href="http://cnn.com">CNN</a>' menu2[1]='<a href="http://msnbc.com">MSNBC</a>' menu2[2]='<a href="http://news.bbc.co.uk">BBC News</a>' menu2[3]='<a href="http://cnn.com">CNN</a>' menu2[4]='<a href="http://msnbc.com">MSNBC1</a>' menu2[5]='<a href="http://news.bbc.co.uk">BBC News1</a>' var menuwidth='165px' //default menu width var menubgcolor='lightyellow' //menu bgcolor var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds) var hidemenu_onclick="yes" //hide menu when user clicks within menu? /////No further editting needed var ie4=document.all var ns6=document.getElementById&&!document.all if (ie4||ns6) document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>') function getposOffset(what, offsettype){ var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop; var parentEl=what.offsetParent; while (parentEl!=null){ totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop; parentEl=parentEl.offsetParent; } return totaloffset; } function showhide(obj, e, visible, hidden, menuwidth){ if (ie4||ns6) dropmenuobj.style.left=dropmenuobj.style.top="-500px" if (menuwidth!=""){ dropmenuobj.widthobj=dropmenuobj.style dropmenuobj.widthobj.width=menuwidth } if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover") obj.visibility=visible else if (e.type=="click") obj.visibility=hidden } function iecompattest(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body } function clearbrowseredge(obj, whichedge){ var edgeoffset=0 if (whichedge=="rightedge"){ var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15 dropmenuobj.contentmeasure=dropmenuobj.offsetWidth if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure) edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth } else{ var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18 dropmenuobj.contentmeasure=dropmenuobj.offsetHeight if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up? edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge } } return edgeoffset } function populatemenu(what){ if (ie4||ns6) dropmenuobj.innerHTML=what.join("") } function dropdownmenu(obj, e, menucontents, menuwidth){ if (window.event) event.cancelBubble=true else if (e.stopPropagation) e.stopPropagation() clearhidemenu() dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv populatemenu(menucontents) if (ie4||ns6){ showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth) dropmenuobj.x=getposOffset(obj, "left") dropmenuobj.y=getposOffset(obj, "top") dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px" dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px" } return clickreturnvalue() } function clickreturnvalue(){ if (ie4||ns6) return false else return true } function contains_ns6(a, b) { while (b.parentNode) if ((b = b.parentNode) == a) return true; return false; } function dynamichide(e){ if (ie4&&!dropmenuobj.contains(e.toElement)) delayhidemenu() else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget)) delayhidemenu() } function hidemenu(e){ if (typeof dropmenuobj!="undefined"){ if (ie4||ns6) dropmenuobj.style.visibility="hidden" } } function delayhidemenu(){ if (ie4||ns6) delayhide=setTimeout("hidemenu()",disappeardelay) } function clearhidemenu(){ if (typeof delayhide!="undefined") clearTimeout(delayhide) } if (hidemenu_onclick=="yes") document.onclick=hidemenu }
  12. Hii I have a home page and all the links are displayed.When i use mouse over on the link a window should be displayed that contain all the categories in that link .And even i go that url using that link How its possible to do Thank for reply
  13. hi every one i want to create a radio button and by using on click i want the event to be occurred i wrote the code but its not working.Can any one help me Radio.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="radio.js"> </script> </head> <body> <form name="form" action="radio.php" method="POST"/> Yes:<input type="radio" value="yes" name="radio1" onclick="showRequest(this.form,"radio.php")"/> NO<input type="radio" value="no" name="radio1" onclick="showRequest(this.form,"radio.php")"/> </form> <div id="radio"></div> </body> </html> and my js file var xmlHttp function showResult(str) { document.getElementById("radio").InnerHTML=""; return } xmlHttp=GetXmlHttpObject() if(xmlHttp==null) { alert("Browser dosent support Ajax"); return } var url="radio.php" //url=url+?"$q="+str xmlHttp.onreadystatechanged=stateChanged xml.open("GET",url,true) xmlHttp.send(null); function stateChanged() { if(xmlHttp.steadystate==4||xmlHttp.steadystate="complete") { document.getElementById("radio").innerHTML=xmlHttp.responseText(); document.getElementById("radio"). style.border="1px solid #A5ACB2"; } } function GetXmlHttpObject() { var xmlHttp=null; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; } .php file <?php $q=$_GET["q"]; echo $q; $radio=$_POST['radio1']; if($radio=="yes") { echo yes; ?> <input type="text" name="text"/> <?php } else{ echo no; ?> <input type="submit" value="click"/> <?php } ?> if there are please Reply
  14. hello everyone i am want to insert the image background on my page and the text should be on the front end.Means it should look like image reading the text .How this can be done thanks a lot for your help
  15. i have website whenever they upload .doc file it should convert to .pdf file Can we do it Please help me
  16. Hey guys i am able to read one image attachment but when i go for mutiple images attachment i am not able to read The code which i have written is below can anyone tel me how to use multiple images <?php // ini_set("sendmail_from", $from); //$fname1="ashok.jpg"; //$fname2="ashok1.jpg"; $from="santosh@abc.com"; $to="ashok.k@gmail.com"; $body="sending mail attachment"; $subject="send an attachment"; $fileatt1 = "c:/websites/abc/testing/ashok/all/1208518212.jpg"; // Path to the file $fileatt_type = "application/octet-stream"; // File Type $fileatt_name1 = $fname1; // Filename that will be used for the file as the attachment $fileatt2 = "c:/websites/abc/testing/ashok/all/1208518222.jpg"; // Path to the file $fileatt_type = "application/octet-stream"; // File Type $fileatt_name2 = $fname2; // Filename that will be used for the file as the attachment $email_from = $from; // Who the email is from $email_subject = $subject; // The Subject of the email $email_txt = $body; // Message that the email has in it if(!$cc=="") { $headers .= "Cc: $cc\r\n"; } if(!$bcc=="") { $headers .= "Bcc: $bcc\r\n"; } $headers .= "From: $from\r\n"; $headers .= "To: $to\r\n"; $headers = "From: ".$email_from; /* $file = fopen($fileatt,'rb'); $data = fread($file,filesize($fileatt)); fclose($file); */ $file1 = fopen($fileatt1,'rb'); $data1 = fread($file,filesize($fileatt1)); fclose($file1); $file2 = fopen($fileatt2,'rb'); $data2= fread($file,filesize($fileatt2)); fclose($file2); $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\""; $email_message1 .= "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type:text/html; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $email_message1 . "\n\n"; $data1 = chunk_split(base64_encode($data1)); $data2 = chunk_split(base64_encode($data2)); $email_message1 .= "--{$mime_boundary}\n" . "Content-Type: {$fileatt_type1};\n" . " name=\"{$fileatt_name1}\"\n" . //"Content-Disposition: attachment;\n" . //" filename=\"{$fileatt_name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data1 . "\n\n" . "--{$mime_boundary}--\n"; //second header $email_message1 .= "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type:text/html; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $email_message1 . "\n\n"; //$data = chunk_split(base64_encode($data)); $email_message1.= "--{$mime_boundary}\n" . "Content-Type: {$fileatt_type2};\n" . " name=\"{$fileatt_name}\"\n" . //"Content-Disposition: attachment;\n" . //" filename=\"{$fileatt_name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data2 . "\n\n" . "--{$mime_boundary}--\n"; $email_message2 .= "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type:text/html; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $email_message2 . "\n\n"; //$data1 = chunk_split(base64_encode($data1)); //$data2 = chunk_split(base64_encode($data2)); $email_message2 .= "--{$mime_boundary}\n" . "Content-Type: {$fileatt_type1};\n" . " name=\"{$fileatt_name}\"\n" . //"Content-Disposition: attachment;\n" . //" filename=\"{$fileatt_name2}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data1 . "\n\n" . "--{$mime_boundary}--\n"; //second header $email_message2 .= "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type:text/html; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $email_message2 . "\n\n"; //$data = chunk_split(base64_encode($data)); $email_message2.= "--{$mime_boundary}\n" . "Content-Type: {$fileatt_type2};\n" . " name=\"{$fileatt_name}\"\n" . //"Content-Disposition: attachment;\n" . //" filename=\"{$fileatt_name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data2 . "\n\n" . "--{$mime_boundary}--\n"; $email_message=$email_message1.$email_message2; $ok =@mail($to, $email_subject, $email_message, $headers); if($ok) { echo "<font face=verdana size=2>The file was successfully sent!</font>"; } else { die("Sorry but the email could not be sent. Please go back and try again!"); } ?>
  17. office tool which was developed by Sun creates an .ODT extension file .I want to read that file that creates .ODT extension,If its .doc extension i can use com object to read the file.Is there any object to read .ODT file extension Please Can any one help me
  18. can i convert .doc file to .txt file internally through programing.
  19. this the code which i have written to read the file called abc.doc,But i am not able to read the content which is there in the file abc.doc <?php $fp = fopen("abc.doc", "rb"); $text = fread($fp,1024); echo $text; ?>
  20. I am reading .doc file .but i am getting junk value.why i am getting a junk value.Please help me
  21. <?php //incluiding required pages include_once("header.php"); if($_SESSION['requested_url']){ $loc = $_SESSION['requested_url']; unset($_SESSION['requested_url']); header("Location: $loc"); exit; } include_once($conf->absolute_path."classes/cart.php"); include_once($conf->absolute_path."classes/client_products.php"); include_once($conf->absolute_path."functions/general.php"); include_once($conf->absolute_path."classes/country.php"); include_once($conf->absolute_path."classes/client_coupons.php"); include_once($conf->absolute_path."classes/admin_shipping.php"); include_once($conf->absolute_path."classes/client_tax.php"); include_once($conf->absolute_path."classes/shopingcart_settings.php"); //echo '<p><pre>'; var_export($_SESSION); //creating objects $coupon=new client_coupons();//coupon object $s_admin=new admin_shipping(); $obj_tax=new client_tax(); $cart=new cart(); $products=new client_products(); $country=new country(); //var_dump($currency_info);//exchange_rate $sc_settings = new shopingcart_settings(); if($_SESSION['s_country_id'] != "" && $_SESSION['s_company_id'] != "") { //if client coming from continue shopping if (isset($_POST['country_id']) && isset($_POST['company_ids']) ) { //if on cart and changes teh company / country $_SESSION['s_country_id'] = $_POST['country_id']; $_SESSION['s_company_id'] = $_POST['company_ids']; }else { //do nothing no change } }else{ $_SESSION['s_country_id'] = 223; $_SESSION['s_company_id'] = $cart->getDefaultUKCompany(); } //required functions $country_data=$s_admin->getUniqueCountries(); #1 echo "<br>add 2 cart "; $cart->Add2Cart(); #dont meean donot perform below three it is from wishlist if(!$_GET['dont']){ $cart->updateCart(); #3 echo "<br> delete cart "; //echo "deleting"; $cart->deleteItem(); #4 echo "<br> clear cart "; $cart->clearCart(); } //$cart->initialCheckOutRoutines();//run initial checkout rountines $comp_data=$obj_tax->getCompanies(); //get cart items $done=0; if($data=& $cart->getCartWithDiscounts()) $done=1; //echo '<p><pre>';var_export($data); if (preg_match("/cart.php/i", $_SERVER['HTTP_REFERER'])) { } else if(preg_match("/browse.php/i", $_SERVER['HTTP_REFERER'])) { $_SESSION['client_continue_shopping']=$_SERVER['HTTP_REFERER'];//for maintaining history of prev page } else if(preg_match("/product_description.php/i", $_SERVER['HTTP_REFERER'])) { $_SESSION['client_continue_shopping']=$_SERVER['HTTP_REFERER'];//for maintaining history of prev page } else if(empty($_SESSION['client_continue_shopping'])) { $_SESSION['client_continue_shopping']="index.php"; } //if cart is not empty then if ($done) { //$_SESSION['country_id']=$_POST['country_id']; $_SESSION['country_id']='223'; if($coupon->clearcoupon()) { $clear_done=1; } if($_POST['coupon'] != "") { if($coupon->checkDiscountType()) { $done2=1; } } } //echo $_SERVER['REQUEST_URI']; //a variable just to check that user coming through the flow not from secpay backwards $_SESSION['user_flow']='1'; ?> <script language="javascript" src="../New Folder/js/glib.js"></script> <SCRIPT LANGUAGE="Javascript"> function loadlocation(selOpt) { id = new Array(); key = new Array(); value = new Array(); company_ids = document.update.company_ids; country_id = document.update.country_id; company_id = document.update.company_id; var i = 1; var kk = 1; <? $comp_data1=$obj_tax->jgetCompanies(); if ($comp_data1) { foreach ($comp_data1 as $arr) { ?> //to check and get real data use in conditions key = <?=$arr["country_id"]?>; // these two values given below are store in combo fields id = <?=$arr["company_id"]?>; value = "<?=$arr["company_name"]?>"; i+=1; <? } } ?> company_ids.options.length = 0; company_ids.options[0] = new Option('Select Method',0); for( i = 1; i < id.length; i++ ) { //if( key == country_id.value ) // if there are more then one countries open it if (country_id.value != "") { if( key == country_id.value ) { company_ids.options[kk] = new Option(value,id); //if(id == (selOpt || "<?//=$_SESSION['s_company_id']?>")){ if(id == "<?=$_SESSION['s_company_id']?>"){ company_ids.options[kk].selected = true; }else if(id == (selOpt)){ company_ids.options[kk].selected = true; } //company_id.value = id; kk ++; } else{} } // if not more then one countries then give country id and open this code /* if( key == '223' ) { company_ids.options[kk] = new Option(value,id); //company_id.value = id; kk ++; } else{} */ } } function updatedelivery() { document.update.submit(); } function doSubmit(val) { //alert(document.update.company_ids.value); if (document.update.company_ids.value != "" && document.update.company_ids.value != 0) { document.update.company_id.value = document.update.company_ids.value; } document.update.submit(); } function refreshThis(url) { // alert(url); window.location=url; } function refreshThisForm(url) { document.update.action=url; document.update.submit(); } </script> <? // if($done) { ?> <!--<link href="includes/topmenu.css" rel="stylesheet" type="text/css" /> <link href="includes/navigationbar.css" rel="stylesheet" type="text/css" /> <link href="includes/productlayout.css" rel="stylesheet" type="text/css" /> <link href="includes/companysettings.css" rel="stylesheet" type="text/css" /> <link href="includes/searchpanel.css" rel="stylesheet" type="text/css" /> <link href="includes/newslaterpanel.css" rel="stylesheet" type="text/css" />--> <link href="../New Folder/includes/cartpage.css" rel="stylesheet" type="text/css"> <body onLoad="javascript:loadlocation();"> <table width="97%" border="0" align="right" cellpadding="0" cellspacing="0"> <tr> <td height="10" ></td> </tr> <tr> <td height="30"><span class="txttitle_1">Shopping Cart</span></td> </tr> <tr> <td> </td> </tr> <? if($done) { ?> <tr> <td><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="right" valign="top" ><table border="0" align="right" cellpadding="0" cellspacing="0" > <form method="post" name="coupon1" action=""> <tr> <td colspan="3" align="center" ><? if($coupon->LastMsg!=null) echo $coupon->LastMsg."<br>"; ?> </td> </tr> <tr> <td align="right" >If you have discount coupon, enter here </td> <td width="5" align="right"><img src="../New Folder/images/trans.gif" width="5" height="1" /></td> <td align="right"><input name="coupon" type="text" class="txtBoxCart" id="coupon" size="35" /> <input name="couponbtn" type="submit" class="btnsCart" id="couponbtn" value=" Apply " /></td> </tr> <tr> <td colspan="3" align="right" > </td> </tr> </form> </table></td> </tr> <tr> <td align="right" valign="top" ><table border="0" align="right" cellpadding="0" cellspacing="0" > <form method="post" name="coupon2" action=""> <tr> <td align="right"><input name="clear_coupon" type="submit" class="btnsCart" id="clear_coupon" value="Clear Coupon / Discount" /></td> </tr> </form> </table></td> </tr> <form name="update" method="post" action="<?=$_SERVER['../New Folder/SCRIPT_NAME']?>?update=yes"> <tr> <td valign="top"><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1"> <tr> <td height="10" align="center" class="error" valign="middle"><br> <? if($message!="") { echo $message; } if($cart->LastMsg!=null) echo $cart->LastMsg; ?> </td> </tr> </table></td> </tr> <tr> <td valign="top"><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1"> <? if ($_SESSION['taxonof']) { $tax_name = $sc_settings->getTaxName(); ?> <tr> <td height="30" align="center" class="txtHeadingCart"><span class="txtheadingcart">Product Image</span> </td> <td height="30" align="center" class="txtHeadingCart" >Product Name and<br /> Product Code </td> <td align="center" class="txtHeadingCart" ><span class="txtheadingcart">Quantity</span> </td> <td width="70" align="center" class="txtHeadingCart" ><span class="txtheadingcart">Unit Price <br>Excluding <?=$tax_name?$tax_name:'Tax'?></span> </td> <td width="80" align="center" class="txtHeadingCart" ><span class="txtheadingcart">Total Price <br>Excluding <?=$tax_name?$tax_name:'Tax'?></span> </td> <td align="center" class="txtHeadingCart" > </td> </tr> <? } else {?> <tr> <td height="30" align="center" class="txtHeadingCart"><span class="txtheadingcart">Product Image</span> </td> <td height="30" align="center" class="txtHeadingCart" >Product Name and<br /> Product Code </td> <td align="center" class="txtHeadingCart" ><span class="txtheadingcart">Quantity</span> </td> <td width="70" align="center" class="txtHeadingCart" ><span class="txtheadingcart">Unit Price</span> </td> <td width="80" align="center" class="txtHeadingCart" ><span class="txtheadingcart">Total Price</span> </td> <td align="center" class="txtHeadingCart" > </td> </tr> <? } ?> <? //echo '<p><pre>';var_export($data); foreach($data as $arr) { ?> <? //print_r($arr);?> <tr > <td height="66" align="center" valign="middle" class="tblCartBg"><table width="91" height="60" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center" > <!-- ***********product image************ --> <? if($arr['product_image']) { //echo $arr['product_image']; ?> <a href = '../New Folder/product_description.php?product_id=<?=$arr['product_id']?>&category_id=<?=$arr['category_id']?>' > <img src="<?=$conf->image_dir."../New Folder/___".$arr['product_image']?>" alt="<?=$arr['product_name']?>" name="my1stMouseOver" border="0" id="my1stMouseOver"> </a> <? } ?> <!-- end product image --> </td> </tr> </table></td> <td valign="middle" class="tblCartBg"><a href = '../New Folder/product_description.php?product_id=46&category_id=42' > </a> <table width="100%" border="0" cellspacing="0" cellpadding="4"> <tr> <td align="center"> <a href = '../New Folder/product_description.php?product_id=<?=$arr['product_id']?>&category_id=<?=$arr['category_id']?>' class='lnkProductNameCart'><?=htmlentities(stripslashes($arr['product_name']))?><br> (<?=$arr['product_code']?$arr['product_code']:$_GET['product_code']?>) </a><br /> <span class="txtProductDesc"> <? $done2=0; //if(($data2=$products->listProductAttributes($arr['product_id']))!=null)prod_attrib_detail if(($data2=$products->listProductAttributes($arr['pav_id']))!=null) { $done2=1; } if($done2) { //$gt=0; //echo'<p><pre>';var_export($data2); foreach($data2 as $att) { ?> <small> <?=$att['attribute_name']?> : <?=$att['attribute_value']?> </small> <? if($att['sub_attribute_name']){?> <br> <small> <?=$att['sub_attribute_name']?> : <?=$att['sub_attribute_value']?> </small> <? }?> <? } } ?> </span> </td> </tr> </table></td> <td align="center" valign="middle" class="tblCartBg"> <? if (!empty($_POST['coupon'])) { $_SESSION['kk'] = $_POST['coupon']; } ?> <input class="txtboxcart" name="quantity[]" value="<?=$arr['quantity']?$arr['quantity']:$_GET['quantity']?>" type="text" id="quantity[]" size="5" /> <input name="product_name[]" value="<?=$arr['product_name']?$arr['product_name']:$_GET['product_name']?>" type="hidden" id="product_name[]" /> <input name="product_id[]" value="<?=$arr['product_id']?$arr['product_id']:$_GET['product_id']?>" type="hidden" id="product_id[]" /> <input name="product_attribute_id[]" value="<?=$arr['product_attribute_id']?>" type="hidden" id="product_attribute_id[]" /> <input name="main_attribute_id[]" type="hidden" value="<?=$arr['main_attribute_id']?$arr['main_attribute_id']:$arr['main_attribute_id']?>" id="main_attribute_id[]"> <input name="sub_attribute_value_id[]" type="hidden" value="<?=$arr["sub_attribute_value_id"]?$arr["sub_attribute_value_id"]:$_GET["sub_attribute_value_idt"]?>" id="sub_attribute_value_id[]"> <input name="product_attribute_value_id[]" type="hidden" value="<?=$arr["pav_id"]?$arr["pav_id"]:$_GET["product_attribute_value_id"]?>" id="product_attribute_value_id"> <? if($arr['special_offer']!=0) echo "<br><small>+ ".$arr['special_offer']." free product(s)</small>"; ?> </td> <td align="center" valign="middle" class="tblCartBg" ><span class="txtPriceCart"> <? //will get either voucher or discount fpor all products so for single divide by //quantuity or oput as whle so minus value from whole product //if($_POST['coupon'] != "" && $coupon->LastMsg==NULL) //{ $perproduct_dis_amount = $cart->nscdiscamount($arr['product_id'],$arr['quantity'],$arr['product_price']); if($currecny_info['exchange_rate']){ $perproduct_dis_amount = $perproduct_dis_amount*$currecny_info['exchange_rate']; } //} //echo "THE DESIHN ".$perproduct_dis_amount; //echo ($currency_info['currency_symbol']?$currency_info['currency_symbol']:$conf->price_handler).number_format($arr['product_price'],2,'.',''); ?> <? //echo "safd ". $currency_info['exchange_rate']; if($perproduct_dis_amount!=0) { $per_unit_dis=($perproduct_dis_amount/$arr['quantity']); echo "<s>".($currency_info['currency_symbol']?$currency_info['currency_symbol']:$conf->price_handler).number_format($currency_info['exchange_rate']*$arr['product_price'],2,'.','')."</s>"; echo "<br>".($currency_info['currency_symbol']?$currency_info['currency_symbol']:$conf->price_handler).number_format(($currency_info['exchange_rate']*($arr['product_price']-$per_unit_dis)),2,'.',''); // $gt += $arr['total']-$perproduct_dis_amount; } else { echo ($currency_info['currency_symbol']?$currency_info['currency_symbol']:$conf->price_handler).number_format(($currency_info['exchange_rate']*$arr['product_price']),2,'.',''); //$gt += $arr['total']; } ?> </span> </td> <td align="center" valign="middle" class="tblCartBg" ><span class="txtPriceCart" > <? if($perproduct_dis_amount!=0) { echo "<s>".($currency_info['currency_symbol']?$currency_info['currency_symbol']:$conf->price_handler).number_format(($currency_info['exchange_rate']*$arr['total']),2,'.','')."</s>"; echo "<br>".($currency_info['currency_symbol']?$currency_info['currency_symbol']:$conf->price_handler).number_format($currency_info['exchange_rate']*($arr['total']-$perproduct_dis_amount),2,'.',''); $gt += $arr['total']-$perproduct_dis_amount; } else { echo ($currency_info['currency_symbol']?$currency_info['currency_symbol']:$conf->price_handler).number_format(($currency_info['exchange_rate']*$arr['total']),2,'.',''); $gt += $arr['total']; } ?> </span> </td> <td align="center" valign="middle" class="tblCartBg" ><a href="../New Folder/<?=$_SERVER['SCRIPT_NAME']?>?delete=yes&product_id=<?=$arr['product_id']?>&main_attribute_id=<?=$arr['main_attribute_id']?>&sub_attribute_id=<?=$arr['sub_attribute_value_id']?>" class='lnkProdSearch'><img src="../New Folder/images/cart/deletebtn.gif" name="button" alt="Remove Item" id="button" value="DEL" width="79" height="27" border="0"> </a></td> </tr> <? } ?> </table></td> </tr> <tr> <td height="5" valign="top"><img src="../New Folder/images/trans.gif" width="2" height="1" /></td> </tr> <tr> <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <? if ($_SESSION['taxonof'] == 1) { ?> <table width="100%" border="0" cellpadding="2" cellspacing="1"> <tr > <td height="20" align="right" class="tblCartBg2" ><span class="txtInvoiceCart">Order Total: </span></td> <td width="200" align="right" class="tblCartBg2"><span class="txtPriceCart" > <?=($currency_info['currency_symbol']?$currency_info['currency_symbol']:$conf->price_handler).number_format($currency_info['exchange_rate']*$gt,2,'.','')?> <? $_SESSION['s_g_total']=$gt; ?></span> </td> </tr> <tr > <td height="20" align="right" class="tblCartBg2" ><span class="txtInvoiceCart">Select Delivery Country:</span> </td> <td align="right" class="tblCartBg2" > <select onChange="javascript:loadlocation();" name="country_id" id="country_id" class="txtBoxCart"> <option value="">Select a country</option> <? if($country_data!=null) { foreach($country_data as $c_data) {?> <option <? if($c_data['country_id']==$_POST['country_id']) echo " selected"; ?> value="<?=$c_data['country_id']?>" > <?=$country->getCountryName($c_data['country_id'])?> </option> <? } } ?> </select> </td> </tr> <tr > <td height="20" align="right" class="tblCartBg2" > <span class="txtInvoiceCart">Select Delivery Methods:</span> </td> <td align="right" class="tblCartBg2" > <select onChange="doSubmit(this.value);" class="txtBoxCart" name="company_ids" id="company_ids"> <option value="">Select Method</option> <? if($comp_data!=null) foreach($comp_data as $arr) { ?> <? if ($_POST['company_ids'] == $arr['company_id']) {?> <option value="<?=$arr['company_id']?>" selected="selected"> <?=$arr['company_name']?> </option> <? }?> <option value="<?=$arr['company_id']?>" > <?=$arr['company_name']?> </option> <? } ?> </select> <input name="company_id" type="hidden" id="company_id" value="<?=$_SESSION['s_company_id']?>" /> <input name="Submit" type="submit" class="btnsCart" value=" Submit " /> </td> </tr> <tr > <td height="20" align="right" class="tblCartBg2" ><!--Countries--> <span class="txtInvoiceCart">Delivery Charges(Excluding <?=$tax_name?$tax_name:'Tax'?>):</span> </td> <td align="right" class="tblCartBg2" ><span class="txtPriceCart"> <? $cart->getShippingAmountWithoutTax(); $company_name=$s_admin->getCompanyName($_SESSION['s_company_id']); //echo "<span class=txtLableProdDesc>Company id = ".$_SESSION['s_company_id']."</span><br/>"; echo "<span class=txtLableProdDesc>".$company_name[0]['company_name']."</span>"; ?> <?=($currency_info['currency_symbol']?$currency_info['currency_symbol']:$conf->price_handler).number_format($currency_info['exchange_rate']*$cart->getShippingAmountWithoutTax(),2,'.','')?> <? $val2 = number_format($cart->getShippingAmountWithoutTax(),2,'.','')?> <? $_SESSION['s_ship_wotax'] = $val2 ?></span> </td> </tr> <tr > <td height="20" align="right" class="tblCartBg2" > <span class="txtInvoiceCart">Total <?=$tax_name?$tax_name:'Tax'?>:</span></td> <td align="right" class="tblCartBg2" ><span class="txtPriceCart"> <? #tofeeq starts coding here for individual product tax & shipping claculation #tofeeq ends conding here for individual product tax & shipping calculation ?> <?=($currency_info['currency_symbol']?$currency_info['currency_symbol']:$conf->price_handler).number_format($currency_info['exchange_rate']*($cart->getProductsTaxSum()+$cart->getShippingTax()),2,'.','')?> <? $val3 = number_format($cart->getProductsTaxSum()+$cart->getShippingTax(),2,'.','')?> <!-- only for this site--> <?// $pvat = $_SESSION['s_g_total']*0.175; ?> <? //=$val3 = number_format($pvat+$cart->getShippingTax(),2,'.','')?> <? $_SESSION['Product_vat']=$cart->getProductsTaxSum(); //$_SESSION['Product_vat']=$pvat; $_SESSION['shipping_vat']=$cart->getShippingTax(); $_SESSION['total_vat'] = $val3; ?> </span></td> </tr> <tr> <td height="20" align="right" class="tblCartBg2" ><span class="txtInvoiceCart">Order Total(Including <?=$tax_name?$tax_name:'Tax'?>):</span></td> <td align="right" class="tblCartBg2" ><span class="txtPriceCart"> <? //$fv = $gt+$val2+$val3+$cart->getProductsTaxSum()+$cart->getShippingTax(); $fv = $gt+$val2+$val3; echo ($currency_info['currency_symbol']?$currency_info['currency_symbol']:$conf->price_handler).number_format($currency_info['exchange_rate']*$fv,2,'.',''); $_SESSION["final_values"] = $fv; ?> </span></td> </tr> </table> <? } else {?> <table width="100%" border="0" cellpadding="2" cellspacing="1"> <tr > <td height="20" align="right" class="tblCartBg2" ><span class="txtInvoiceCart">Order Total: </span></td> <td width="200" align="right" class="tblCartBg2"><span class="txtPriceCart" > <?=($currency_info['currency_symbol']?$currency_info['currency_symbol']:$conf->price_handler).number_format($currency_info['exchange_rate']*$gt,2,'.','')?> <? $_SESSION['s_g_total']=$gt; ?></span> </td> </tr> <tr > <td height="20" align="right" class="tblCartBg2" ><span class="txtInvoiceCart">Select Delivery Country:</span> </td> <td align="right" class="tblCartBg2" > <select onChange="javascript:loadlocation();" name="country_id" id="country_id" class="txtBoxCart"> <option value="">Select a country</option> <? if($country_data!=null) { foreach($country_data as $c_data) { ?> <option <? if($c_data['country_id']==$_POST['country_id']) echo " selected"; ?> value="<?=$c_data['country_id']?>" > <?=$country->getCountryName($c_data['country_id'])?> </option> <? } } ?> </select> </td> </tr> <tr > <td height="20" align="right" class="tblCartBg2" > <span class="txtInvoiceCart">Select Delivery Methods:</span> </td> <td align="right" class="tblCartBg2" > <select onChange="doSubmit();" class="txtBoxCart" name="company_ids" id="company_ids"> <option value="">Select Method</option> <? if($comp_data!=null) foreach($comp_data as $arr) { ?> <? if ($_POST['company_ids'] == $arr['company_id']) {?> <option value="<?=$arr['company_id']?>" selected="selected"> <?=$arr['company_name']?> </option> <? }?> <option value="<?=$arr['company_id']?>" > <?=$arr['company_name']?> </option> <? } ?> </select> <input name="company_id" type="hidden" id="company_id" value="<?=$_SESSION['s_company_id']?>" /><input type="submit" name="Submit" value="Submit" class="btnsCart"></td> </tr> <tr > <td height="20" align="right" class="tblCartBg2" ><!--Countries--> <span class="txtInvoiceCart">Delivery Charges:</span> </td> <td align="right" class="tblCartBg2" ><span class="txtPriceCart"> <? $cart->getShippingAmountWithoutTax(); $company_name=$s_admin->getCompanyName($_SESSION['s_company_id']); //echo "<span class=txtLableProdDesc>Company id = ".$_SESSION['s_company_id']."</span><br/>"; echo "<span class=txtLableProdDesc>".$company_name[0]['company_name']."</span>"; ?> <?=($currency_info['currency_symbol']?$currency_info['currency_symbol']:$conf->price_handler).number_format($currency_info['exchange_rate']*$cart->getShippingAmountWithoutTax(),2,'.','')?> <? $val2 = number_format($cart->getShippingAmountWithoutTax(),2,'.','')?> <? $_SESSION['s_ship_wotax'] = $val2 ?></span> </td> </tr> <tr> <td height="20" align="right" class="tblCartBg2" ><span class="txtInvoiceCart">Order Total:</span></td> <td align="right" class="tblCartBg2" ><span class="txtPriceCart"> <? $fv = $gt+$val2+$val3; echo ($currency_info['currency_symbol']?$currency_info['currency_symbol']:$conf->price_handler).number_format($currency_info['exchange_rate']*$fv,2,'.',''); $_SESSION["final_values"] = $fv; ?></span></td> </tr> </table> <? } ?> </td> </tr> </table></td> </tr> <tr> <td height="8" valign="top"></td> </tr> <tr> <td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="40" colspan="2" align="right"><img src="../New Folder/images/cart/contshopbtn.gif" alt="Continue Shopping" width="113" height="28" border="0" style="cursor:pointer;" onClick="refreshThis('<?=$_SESSION['client_continue_shopping']?>')" /> <img src="../New Folder/images/cart/upcartbtn.gif" alt="Update Cart" width="113" height="28" border="0" style="cursor:pointer;" onClick="doSubmit()" /> <img src="../New Folder/images/cart/clearcartbtn.gif" alt="Clear Cart" width="113" height="28" border="0" style="cursor:pointer;" onClick="refreshThis('cart.php?clearCart=yes')" /> <a href="../New Folder/login.php"><img src="../New Folder/images/cart/chkoutbtn.gif" alt="Checkout" width="113" height="28" border="0" style="cursor:pointer;"/></a></td> </tr> </table></td> </tr> </form> </table></td> </tr> <? } else { ?> <tr> <td align="center" class="error">No Item in Cart.<br /> <br> <? if($message!="") { //echo $message; } if($cart->LastMsg!=null) //echo $cart->LastMsg; ?></td> </tr> <? } ?> </table> <table width="97%" border="0" align="right" cellpadding="0" cellspacing="0"> <tr> <td height="10" ></td> </tr> <tr> <td height="30"><span class="txttitle_1">Shipping Cart</span></td> </tr> <tr> <td> </td> </tr> <tr> <td align="center" class="error">No Item in Cart.<br /> <br> <? if($message!="") { //echo $message; } if($cart->LastMsg!=null) //echo $cart->LastMsg; ?></td> </tr> </table> <? } ?><?php ?> <? $cart->destroy_cart(); $products->destroy_client_products(); //echo '<p><pre>'; var_export($_SESSION); include_once("footer.php"); $totalpros = 0; if($_SESSION['cart_code']){ $total_items = 0; $total_price = 0; foreach(unserialize($_SESSION['quantity']) as $pros){ $totalpros += $pros ; } } ?> <script language="javascript"> if("<?=count(unserialize($_SESSION['cart_code']))?>" > 0){ //document.getElementById("total_items").innerHTML = "<?//=$totalpros?>"; //document.getElementById("total_price").innerHTML = "<?//=($currency_info['currency_symbol']?$currency_info['currency_symbol']:$conf->price_handler).number_format($fv,2,'.','');?>"; } selectComboOption(document.update.country_id,"<?=$_SESSION['s_country_id']?>"); </script> The code is working you can check out
  22. I have .com website.When some one forward me image attachment from gmail or yahoo.I cant read the image attachment.But i am able to read the text attachment .Can any one tel me how to read the image attachment
  23. ODT means OpenOffice.org.Which is developed By sun .And it is same like MicroSoft Word.i am able to read the file but the conent is coming Like dis ???????????????.if i Can Change the file format by using Php to txt file.If i can do this ,then i can read Txtfile.Is der any possibilty of Changing the file format
  24. I am reading an ODT file Using Php function how can i do this .My code is below .Please tel me What are the changes i should do <?php $fileHandle = fopen('sample.ODT', 'r+') OR die ("Can't open file\n"); //$fileData = fread ($fileHandle, 1024); echo hello; echo "data = $fileHandle"; fclose($fileHandle); ?>
×
×
  • 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.