473,545 Members | 1,878 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

insert TAB

ddtpmyra
333 Contributor
Hi Im having dificulty of controlling the display inside my tab let say I have two tabs A and B, what I have on tab A also shows on tab B although I used close tags at the end? Can anyone take a look what Im missing?

Expand|Select|Wrap|Line Numbers
  1.   echo '
  2.       </table>' . ( $useTabs ? '
  3.     </div>' : '
  4.     </fieldset>' ) . '
  5.  
  6. <!-- REPEATING INFO -->';
  7.   if ( $DISABLE_RECAP_FIELD != 'Y' ) {
  8.     echo ( $useTabs ? '
  9.     <a name="tabrecap"></a>
  10.     <div id="tabscontent_recap">' : '
  11.     <fieldset>
  12.       <legend>' . translate ( 'Recap' ) . '</legend>' ) . '
  13.       <table border="0" cellspacing="0" cellpadding="3" summary="">
  14.         <tr>
  15.       <td class="tooltip" title="' . tooltip ( 'repeat-type-help' )
  16.      . '"><label for="rpttype">' . translate ( 'Type' ) . ':</label></td>
  17.           </td>
  18.       </tr>
  19.     </table>' . ( $useTabs ? '
  20.     </div> <!-- End tabscontent_recap -->' : '
  21.     </fieldset>' );
  22.   }
  23.  
  24.  
Mar 10 '09 #1
7 5472
TheServant
1,168 Recognized Expert Top Contributor
Don't know why this was moved to html-css? Anyway, what is the variable $useTabs? I haven't seen that " ? ' " syntax before, but it is quite possibley just a form of something I have never tried.

Once your page has printed, have a look at the HTML output and see html-wise what's going wrong and then you can fix your PHP.
Mar 10 '09 #2
Markus
6,050 Recognized Expert Expert
Because this is an HTML problem. PHP servers the HTML, yes, but it's an error with his HTML - not PHP.

Anyway, he's using the ternary operator syntax ( ( condition ) ? true : false )
Mar 10 '09 #3
TheServant
1,168 Recognized Expert Top Contributor
Thanks Markus. I just saw that there is still some conditional html output so I didn't rule out PHP error. Speaking of which, ddtpmyra, have you tried what I suggested?
Mar 11 '09 #4
ddtpmyra
333 Contributor
Here's what I got the text 'Hello' still showing on other tabs

PHP

Expand|Select|Wrap|Line Numbers
  1.   if ( $DISABLE_RECAP_FIELD != 'Y' ) {
  2.     echo ( $useTabs ? '
  3.     <a name="tabrecap"></a>
  4.     <div id="tabscontent_recap">' : '
  5.     <fieldset>
  6.       <legend>' . translate ( 'Recap' ) . '</legend>' ) . '
  7.       <table border="0" cellspacing="0" cellpadding="3" summary="">
  8.         <tr>
  9.       <td> Hello </td>
  10.       </tr>
  11.     </table>' . ( $useTabs ? '
  12.     </div> <!-- End tabscontent_recap -->' : '
  13.     </fieldset>' );
  14.   }
  15.  
  16.  

HTML

Expand|Select|Wrap|Line Numbers
  1. <!-- REPEATING INFO -->
  2.     <a name="tabrecap"></a>
  3.     <div id="tabscontent_recap">
  4.       <table border="0" cellspacing="0" cellpadding="3" summary="">
  5.         <tr>
  6.       <td> Hello </td>
  7.       </tr>
  8.     </table>
  9.     </div> <!-- End tabscontent_recap -->
  10.  
Mar 12 '09 #5
TheServant
1,168 Recognized Expert Top Contributor
I only see one "Hello" table in your html? What do you mean "repeating info"?

In your PHP, you only have one code generation which is run if $DISABLE_RECAP_ FIELD != 'Y' so I don't see why you would have any "Hello" output unless it is running again? Need more info.
Mar 12 '09 #6
ddtpmyra
333 Contributor
Hi sorry for not explaining the problem clearly.

I created like three sets of tabs with different name and different txt inside. But the texts for each tabs are displayed on every tabs. I thought using </div> and </fieldset> it should end each tabs contents, is there any ways to do this?
Mar 13 '09 #7
David Laakso
397 Recognized Expert Contributor
No clue here as far as whatever that stuff is you got. The below is html/css to yield a page with four tabs on it. Obviously, you'll want to delete one, as I guess you only need three.

Please make the tabbed page, and move it and your question, to whatever the appropriate board is on this forum, in order to attach whatever the behavior is wish your three tabs to perform for you (if any).

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3.  
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  5. <head>
  6.     <title>Tabs </title>
  7.     <style type="text/css" media="all">
  8.  
  9.     body {
  10.         font: 1em arial, helvetica, sans-serif;
  11.     }
  12.  
  13.     #header ul {
  14.         list-style: none;
  15.         padding: 0;
  16.         margin: 0;
  17.     }
  18.  
  19.     #header li {
  20.         display: inline;
  21.         border: 1px solid;
  22.         border-bottom-width: 0;
  23.         margin: 0 0.5em 0 0;
  24.     }
  25.  
  26.     #header li a {
  27.         padding: 0 1em;
  28.     }
  29.  
  30.     #header #selected {
  31.         padding-bottom: 1px;
  32.         background: white;
  33.     }
  34.  
  35.     #content {
  36.         border: 1px solid;
  37.     }
  38.  
  39.     </style>
  40. </head>
  41.  
  42. <body>
  43.  
  44. <div id="header">
  45.  
  46. <h1>Tabs</h1>
  47.  
  48. <ul>
  49.     <li><a href="#">This</a></li>
  50.     <li id="selected"><a href="#">That</a></li>
  51.     <li><a href="#">The Other</a></li>
  52.     <li><a href="#">Banana</a></li>
  53. </ul>
  54.  
  55. </div>
  56.  
  57. <div id="content">
  58.     <p>Ispum schmipsum.</p>
  59. </div>
  60.  
  61. </body>
  62. </html>
  63.  
  64.  
  65.  
Mar 13 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2503
by: Howard Hinnant | last post by:
I recently asked for a survey of multimap insert with hint behavior, in support of a paper I'm writing concerning lwg issue 233. My sincere thanks to Beman Dawes, Raoul Gough, Russell Hind, Bronek Kozicki, Nicola Musatti, John Potter and Maxim Yegorushkin for helping with that survey. Since I started work on this paper at least two people I...
6
6975
by: Mark P | last post by:
Some time ago I posted here about inserting into a set with a hint: http://groups-beta.google.com/group/alt.comp.lang.learn.c-c++/browse_thread/thread/fb75b00f73e979db/018b8d0eadb38dbf?q=%22STL+insert+with+hint%22+%22Mark+P%22&rnum=1&hl=en#018b8d0eadb38dbf I quoted the SGI STL docs describing a.insert(p, t), where p is the hint iterator and...
14
4273
by: serge | last post by:
I have a scenario where two tables are in a One-to-Many relationship and I need to move the data from the Many table to the One table so that it becomes a One-to-One relationship. I need to salvage the records from the many table and without going into detail, one of the reasons I can't do the opposite as there are records in the ONE table...
2
17095
by: Ford Desperado | last post by:
I've been reading the docs and playing around, but I'm still not getting the difference. For instance, create table a(i int check(i>0)) create table a_src(i int) go create unique index ai on a(i) with IGNORE_DUP_KEY go insert into a_src values(1) insert into a_src values(1)
16
16979
by: Philip Boonzaaier | last post by:
I want to be able to generate SQL statements that will go through a list of data, effectively row by row, enquire on the database if this exists in the selected table- If it exists, then the colums must be UPDATED, if not, they must be INSERTED. Logically then, I would like to SELECT * FROM <TABLE> WHERE ....<Values entered here>, and then...
4
5467
by: Chris Kratz | last post by:
Hello all, We have run into what appears to be a problem with rules and subselects in postgres 7.4.1. We have boiled it down to the following test case. If anyone has any thoughts as to why this would be happening, we would appreciate feedback. We have tested on 7.3.4, 7.3.6 and 7.4.1 and all exhibit the same behavior. Test case one...
2
3174
by: Geoffrey KRETZ | last post by:
Hello, I'm wondering if the following behaviour is the correct one for PostGreSQL (7.4 on UNIX). I've a table temp_tab with 5 fields (f1,f2,f3,...),and I'm a launching the following request : INSERT INTO temp_tab VALUES (1,2,3)
3
2302
by: MP | last post by:
Hi Posted this several hours ago to another ng but it never showed up thought i'd try here. using vb6, ado, .mdb, jet4.0, no access given table tblJob with field JobNumber text(10) 'The example I had to go by 'INSERT INTO tblCustomers (CustomerID, , )
6
3706
by: lenygold via DBMonster.com | last post by:
Hi everybody: What is the best way to I have 10 tables with similar INSERT requiremnts. INSERT INTO ACSB.VAATAFAE WITH AA(AA_TIN, AA_FILE_SOURCE_CD, .AA_TIN_TYP) AS ( SELECT AA_TIN, AA_FILE_SOURCE_CD, .AA_TIN_TYP FROM VAATAFAA WHERE AB_TP_ACNT_STAT_CD <0),
1
2642
by: EJO | last post by:
with sql 2000 enterprise Trying to build a stored procedure that will take the rows of a parent table, insert them into another table as well as the rows from a child table to insert into another table and be able to maintain the relationships between the parent/child rows of the new records. Something like old_id new_id
0
7452
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7643
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7405
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5956
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4938
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1862
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1004
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
688
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.