Jump to content

JStefan

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

About JStefan

  • Birthday 10/01/1967

Profile Information

  • Gender
    Male
  • Location
    Auckland, New Zealand

JStefan's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hmmmm....I think I fix it by adding a higher z index to the submenu li style tag element directly from php output......
  2. yes you are right......does not work here either in firefox when I view the page from the server but works ok when I view the page on my home computer server.......I give up on this....
  3. Hi all, I hope somebody has the time or experience to help me with this, thank you in advance for all input or comments. I am developing a php/mysql website where the menu is php generated using records from a database. The menu is output as inline list elements inside a containing dvd. Using no-wrap css tag the menus will start a new line when they cant expand anymore to the right. Thats all good. The "drama" starts with the submenus . Lets say you have 2 rows of top menus. When you hover over a top row menu with submenus the submenus will display over the second row of top menus in firefox, chrome etc but not in good old Internet Explorer (including version 9 on Win 7). The submenus will display under the second row of top menus rendering my menu useless... To see it in action please visit http://focusdesign.biz/everlife/ and hover over Testing Menu 1 I played with z-index-es and also I tried to give inferior z-indexes to all containing elements. The containing elements are wrapper/navbar/menu(id)/menu(class)/ul/li Not sure how I ended with 2 divs nested both with id menu so I deleted one of them and my design changed so i created a class menu and give one class menu instead of id that why a have menu id nesting menu class. Also I created a menu class identical with id in the css file. The css at the moment is as follows. Thank you for any help, suggestions..... /*main styling #########################################################*/ a:link{ text-decoration:none; color:#6699CC; } a:hover{ text-decoration:none; color:#FF9900; } a:visited{ text-decoration:none; color: #666699; } *{ list-style-type:none; margin:0; padding:0; } * li{ margin-bottom:15px; } * li.txt{ border-top:thin dashed; } body{ font-family:Arial,Helvetica,sans-serif; color:#000000; font-size:14px; background-color:#6699CC; } #wrapper{ width:960px; margin:0 auto; } #navbartop{ margin:0px 5px 1px 5px; padding:4px; background-color:#66F; background-repeat:no-repeat; text-align:right; color:#000; background-image:url(../images/bgftS.jpg); font-size:14px; background-repeat:repeat-x; } #navbar{ background-color:#FFF; height:auto; background-image:none; background-repeat:no-repeat; text-align:left; padding:5px; margin-top:0px; margin-right:5px; margin-bottom:0px; margin-left:5px; } #navbar1{ background-color:#FFF; height:auto; background-image:none; background-repeat:no-repeat; text-align:center; padding:5px; margin-top:0px; margin-right:5px; margin-bottom:0px; margin-left:5px; } #nav{ padding:0; height:2.2em; margin-top:15px; overflow:visible; height:120px; } #nav li{ list-style-type:none; display:inline; line-height:20px; } #nav li a{ text-decoration:none; color:#333360; border-bottom:0; padding:5px 10px; font-size:1.1em; font-weight:bold; } #header{ margin-left:5px; margin-right:5px; height:auto; padding:5px; background-color:#FFF; background-image: url(../images/bgftMain.jpg); background-repeat:no-repeat; z-index:1; position:relative; } #maintext{ font-size:15px; border:1px solid #ccc; margin:0px 5px 5px 5px; padding:4px; background-color: #ffffff; clear:both; } #showcase{ border:1px solid #ccc; margin:auto; text-align:center; background-color:#eeeeee; width:930px; } .slideshow{ width:750px; height:260px; float:left; text-align:center; background-color:#eeeeee; } .slideshow img{ background-color:#eee; } #maintext h2{ color:#6699CC; } #maintext p{ color:#000000; text-align:justify; padding-top:10px; padding-left:5px; padding-bottom:10px; padding-right:11px; } #bottom{ border:1px solid #ccc; margin:0px 5px 5px 5px; padding:4px; background-color:#eeeeee; text-align:right; font-size:10px; } #search{ float:left; height:17px; padding:14px 0 0 9px; vertical-align:top; width:400px; text-indent:25px; background-image:url(../images/searchField.png); background-position:left 0; background-repeat:no-repeat; background-color:transparent; border-bottom: thin #CCCCCC; border-top:thin #CCCCCC; border-left:thin #CCCCCC; border-right:none; } #livesearch{ position:absolute; left:440px; top:48px; } #email{ border-top:none; border-left:none; border-right:none; border-bottom:none; background-color:#CCCCCC; height:20px; padding-left:5px; padding-top:3px; } .poster{ font-size:30px; } .posterSmall{ font-size:18px; } * li#brandLinks{ width:120px; } /*pagination #########################################################*/ div.pagination{ padding:3px; margin:3px; } div.pagination a{ padding:2px 5px 2px 5px; margin:2px; border:1px solid #AAAADD; text-decoration:none; color:#000099; } div.pagination a:hover,div.pagination a:active{ border:1px solid #000099; color:#000; } div.pagination span.current{ padding:2px 5px 2px 5px; margin:2px; border:1px solid #000099; font-weight:bold; background-color:#000099; color:#FFF; } div.pagination span.disabled{ padding:2px 5px 2px 5px; margin:2px; border:1px solid #EEE; color:#DDD; } /*menu #########################################################*/ UL{ BORDER-BOTTOM:0px; BORDER-LEFT:0px; PADDING-BOTTOM:0px; MARGIN:0px; PADDING-LEFT:0px; PADDING-RIGHT:0px; VERTICAL-ALIGN:baseline; BORDER-TOP:0px; BORDER-RIGHT:0px; PADDING-TOP:0px; } LI{ BORDER-BOTTOM:0px; BORDER-LEFT:0px; PADDING-BOTTOM:0px; MARGIN:0px; PADDING-LEFT:0px; PADDING-RIGHT:0px; VERTICAL-ALIGN:baseline; BORDER-TOP:0px; BORDER-RIGHT:0px; PADDING-TOP:0px; } .menu{ WIDTH:940px; BACKGROUND:#FFF; FONT-SIZE:15px; color:#6699CC; z-index: 100; } #menu{ WIDTH:940px; BACKGROUND:#FFF; FONT-SIZE:15px; color:#6699CC; z-index: 100; } #menu UL{ LIST-STYLE-TYPE:none; MARGIN:0px; LIST-STYLE-IMAGE:none; color:##6699CC; } #menu LI{ POSITION:relative; FLOAT:left; background-image:url(../images/bgft.jpg); height:32px; } #menu A{ PADDING-BOTTOM:0px; LINE-HEIGHT:31px; PADDING-LEFT:10px; PADDING-RIGHT:10px; DISPLAY:block; color:##6699CC; BORDER-RIGHT:#666699 1px solid; TEXT-DECORATION:none; PADDING-TOP:0px; } #inline A{ color:#FF6600; display:inline; padding:0px 10px; text-decoration:none; border-right:none; line-height:0px; } #menu UL UL{ Z-INDEX:99999; POSITION:absolute; WIDTH:180px; DISPLAY:none; FLOAT:left; TOP:31px; LEFT:0px; } #menu UL UL LI{ MIN-WIDTH:180px; Z-INDEX:99999; } #menu UL UL UL{ TOP:0px; LEFT:100%; Z-INDEX:99999; } #menu UL UL A{ PADDING-BOTTOM:10px; LINE-HEIGHT:1em; PADDING-LEFT:10px; WIDTH:160px; PADDING-RIGHT:10px; BACKGROUND:#ccc; HEIGHT:auto; PADDING-TOP:10px; Z-INDEX:99999; } #menu LI:hover > A{ BACKGROUND:#ccc; color:#FF6600; Z-INDEX:99999; } #menu UL UL:hover > A{ BACKGROUND:#ccc; color:#FF6600; Z-INDEX:99999; } #menu UL LI:hover > UL{ DISPLAY:block; Z-INDEX:99999; } .clear{ CLEAR:both; } /*categories first page #########################################################*/ .smallFont{ font-size: 1em; } .cats { float: right; width: 910px; margin-bottom: 15px; } .cats li { display: inline; width: 170px; margin-right: 10px; float: left; background-color: #EEE; min-height: 40px; } .cats li.last { margin-right: 0; } .smallFont{ font-size: 1em; } .cats { float: right; width: 910px; margin-bottom: 15px; } .cats li { display: inline; width: 170px; margin-right: 10px; float: left; /*padding: 3px; */ background-color: #EEE; min-height: 40px; } .cats li.last { margin-right: 0; } /*.cats li a { color: #286196; }*? /*product page styling #########################################################*/ .products { float: right; width: 940px; margin-bottom: 3px; /*border-bottom: dashed thin #777777;*/ } .products li { display: inline; width: 170px; margin-right: 15px; float: left; } .products li.last{ margin-right: 0px; background-color: #ccffff; padding: 5px 5px 5px 5px; /*height: 240px;*/ } .products li.last a { color: #FF9900; } .shop { float: right; width: 940px; margin-bottom: 5px; border-bottom: dashed thin #777777; } .shop li { display: inline; width: 120px; margin-right: 15px; float: left; } .shop li.last{ margin-right: 0px; background-color: #DDDDDD; padding: 5px 5px 5px 5px; /*height: 240px;*/ } .shop li.last a { color: #FF9900; }
  4. Hi all, I am making a shopping cart where I am using the session id to cary the info from page to page, etc. The customer should have the option to login (in this case the shipping address will be automatically retrieved etc....) I am normally using sessions as well to give access to users to restricted areas. In my case I have already the session started, so how I can differentiate a logged in customer from one which is not? This is a bit confusing for me, any help will be appreciated. Thank you in advance, Julian
  5. Hi All, I got stuck in selecting some data from different tables into one query. Here is what I would like to get. I have tables: category subcategory sub2category sub3category and sub4category. I would like to output the values of the prodID and subname columns from all tables if any into a drop down menu. All tables have prodID and subname columns. Here is my code: <?php if ($_POST['task'] == 60){ $sql = "SELECT t1.subname, t1.prodID, t2.subname, t2.prodID, t3.subname, t3.prodID, t4.subname, t4.prodID, t5.subname, t5.prodID FROM category AS t1, subcategory AS t2, sub2category AS t3, sub3category AS t4, sub4category AS t5"; $result = mysql_query($sql) or die(mysql_error()); if (mysql_num_rows($result) < 1) { $display = "<p>No data available</p>"; } else { echo "<select name=\"prodID\">"; while ($items = mysql_fetch_array($result)) { $prodID = $items['id']; $catname = $items['subname']; //echo $catname; echo "<option value=\"$prodID\">$catname</option>"; } echo "</select><br/><a href=\"cp.php\">Back</a> to Control Panel"; } exit (); } ?> At the moment I get just the (only) value from the sub4category table into the dropdown repeated a couple of times. But if a table has no records at all the script crashes (with no mysql error message). I run mysql 5.1 and php 5.2.6 in Windows Thank you for your help in advance, Julian
  6. Hi, My code now looks like this: //session_start(); if(isset($_GET['submit1'])){ $ch = curl_init(); # Fill out your form parameters in the string below $queryStr = sprintf( "?CustomerID='87654321&UserName=TestAccount&Amount=10" $CustomerID, $UserName, $Amount, ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://nz.ewaygateway.com/Request/" . $queryStr); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); preg_match('/<URI>(.*)?<\/URI>/', $response, $match); header(sprintf("location: %s, $match[0])); } else{ $dollars = $_POST["Amount"]; $display_block = "<p><form method=\"GET\" action=\"https://nz.ewaygateway.com/Request\"> <input type=\"hidden\" name=\"CustomerID\" value=\"87654321\"> <input type=\"hidden\" name=\"UserName\" value=\"TestAccount\"> <input type=\"hidden\" name=\"Amount\" value=\"10\"> <input type=\"hidden\" name=\"Currency\" value=\"NZD\"> <input type=\"hidden\" name=\"ReturnURL\" value=\"http://budgetvending.onlinewebshop.net/index.php\"> <input type=\"hidden\" name=\"CancelURL\" value=\"http://budgetvending.onlinewebshop.net/index.php\"> <input type=\"submit\" name=\"submit1\" value=\"Pay Now\"></form>"; } ?> I get the following error: Parse error: syntax error, unexpected T_VARIABLE in /home/www/budgetvending.onlinewebshop.net/checkout.php on line 10 this will be this line : $CustomerID,
  7. The code I gave you does that. Please be more clear about what you want to do. Post us your code. Hi again, thanks very much for your help. Here is the code including the one from you. The $display_block is echoed in the html under the php code, i didn`t paste the html here : <? //session_start(); if(isset($_GET['submit1'])){ //here is your code preg_match('/<URI>(.*)?<\/URI>/', $response_string, $match); header(sprintf("location: %s, $match[0]")); } else{ $dollars = $_POST["Amount"]; $display_block = "<p><form method=\"GET\" action=\"https://nz.ewaygateway.com/Request\"> <input type=\"hidden\" name=\"CustomerID\" value=\"87654321\"> <input type=\"hidden\" name=\"UserName\" value=\"TestAccount\"> <input type=\"hidden\" name=\"Amount\" value=$dollars> <input type=\"hidden\" name=\"Currency\" value=\"NZD\"> <input type=\"hidden\" name=\"ReturnURL\" value=\"http://budgetvending.onlinewebshop.net/index.php\"> <input type=\"hidden\" name=\"CancelURL\" value=\"http://budgetvending.onlinewebshop.net/index.php\"> <input type=\"submit\" name=\"submit1\" value=\"Pay Now\"></form>"; } ?> here is the server answer: <TransactionRequest><Result>True</Result><URI>https://nz.ewaygateway.com/NZ/PaymentPage.aspx?value=YS8uRaNLlaFaeRReXYncV3thl2bJcYGWU7hoaUAa0sWsFUoyR6</URI><Error></Error></TransactionRequest> If i copy paste the link in my browser I will get to the right page. Cheers, Julian
  8. Did not work, I still get the XML on browser, but thanks for suggestion
  9. Hi all, I am trying to setup a credit card payment facility for a web site . This will send the user to the gateway company page. I am sending all the required fields to them with a form with Get method and I get back the following: <TransactionRequest><Result>True</Result><URI>web link/URI><Error></Error></TransactionRequest> The content of the result and uri tags displays on the page. If I paste the content of the <URI></URI> tag in the browser all works fine as is supposed to. My question is: How I can get the content of the <URI> tag into a php variable and redirect my browser to it? Using get_headers maybe? Thanks in advance for your help, Julian
  10. Yes thanks, formatted in a table with as many columns as how many records found in category table. Julian
  11. Hi all, I am writting a page where a table should generated with records from a MySql database. The database has 2 tables, 'categories' and 'items' and the 'items' table have a record set which link the specific item to one of the categories. I need help with the php code which will generate the table with a column for each category from the 'category' table and under the category row will generate a new row in which will be included the records from the 'items' table linked to the specific category record Thank you in advance for you time and help. Cheers, Julian
  12. Hi guys, this time I fixed it myself The issue was (after I researched a bit the net) that the echo statments which actually extract data from database had 2 be enclosed into a pair of {} paranthesis and no ; has to be after fetch statement or closing } I do apreciate your time and do not worry, i will be back with more q. soon Cheers Julian
  13. petName error fixed. I added echo "<pre>"; print_r($row); in script and does not return any result. Cheers, Julian
  14. Hi again, by changing mysqli to mysql the php warning is not generated anymore but still no result rows are displayed. The table is not empty, it has 5 records. Thanks, Julian
×
×
  • 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.