473,897 Members | 2,523 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

nested tables in a form, need an Excel button moved over a column,has some php

Hi,
I have a page with a form that is included into a php page. It has
some php variables which are headers based on the user choices. In
the form I will send some mysql data columns but right now I'm just
formatting the form inside the tables. I added the table with the
form yesterday and a button. After the data comes from php server I
want the user to be able to click the Excel button at the bottom and
the form output will go to Excel not to the browser. So far so good.

In my page in the browser there is a menu to the left of the page.
That is one column. The data is a column to the right. Right now my
Excel button is under the menu column and I want it under the data
column of the table. I tried all day yesterday moving the <table</
tabletags and <TD</TDtags at different places to get the button
to be on the right under the second column not the first column. No
matter what I do it stays right under the menu column on the far left
of the page.

I wish I could show you the page. There is a logo at the top to the
left. There is a included included header under that says home,
login, logout. Then there is the menu column to the left, and a main
column to the right. The main column header changes according to
which page the user is on. The variable is MSG_carlist. That is just
the title bar over the 2nd column of data. The TPL_carnumbers is the
column of data. I want that silly little button under this.

I added the form and the button to capture the values of the user
selection to output to excel. The php/mysql part isn't done yet and
it is on the included page. Can someone help me get my markup
straight.

thanks for any help,

--------------
<table width="100%" border="0" cellpadding="0" cellspacing="0"
class="content" >
<tr>
<td width=<?=GetMen uwidth()?>% valign="top" class="columL">
<table width="100%" height="100%" border="0" cellpadding="0"
cellspacing="0" >
<tr>
<td class="titTable 1"><div id="imgTitL"><i mg src="<?=
$SETTINGS['siteurl']?>images/transparent.gif " width="10" height="10"></
div>
<?=$MSG_276a; ?><!-- div id="imgTitR"><i mg src="<?=
$SETTINGS['siteurl']?>images/transparent.gif " width="10" height="10"></
div --></td>
</tr>
<tr>
<td class="table1"> <div id="table1ul">
<? include $template_path. "menu.php.html" ; ?>
</div></td>
</tr>
</table>
</td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0"
class="maincolu m">

<tr>
<td class="titTable 2"><div id="imgTitL"><i mg src="<?=
$SETTINGS['siteurl']?>images/transparent.gif " width="20" height="10"></
div>
<?=$MSG_carlist ?></td>
</tr>

<tr>
<td>
<?=$TPL_carnumb ers;?>
</td>
</table>
#


#
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" >
<form action="<?=$_SE RVER['PHP_SELF']?>" method="post">

<tr>
<td align='center'> <?=$TPL_ids?> </td>

<td valign='top'>
<table width="100%" border="0" cellspacing="0"
cellpadding="2" >

<tr>

</table>
</td>
</tr>

<tr>
<td >
<img SRC='<?=$SITEUR L."images/xl2.jpg"?>' <INPUT
TYPE="submit" VALUE="Open in Excel" ALT="Open in Excel" NAME="assign"
class="button">
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>

</table>
Jul 12 '08 #1
0 2257

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
732
by: Andrew | last post by:
With command-line interface ( 3.23.37, UNIX Socket ) all is well with column aliasing. However, column aliases disappear in Excel, over ODBC, when there are multiple (joined) tables in the query. I run the following query with aliased columns with CLI: select table1.c1 as 'pet category', table1.c2 as 'item', table1.c3 as 'quantity', table2.c2 as 'attendant' from table1 left outer join table2 on (table1.c1=table2.c1);...
1
2494
by: NA | last post by:
Is it possible to have adjustable tables (not Access tables per se) but those in Ms Word or Excel based on nexted forms three deep? In other words, if I have a main form, Repair History, both the row and columns would grow accordingly. Column Heading: Parts Row Heading: Repair Description In this case, I may only know 25% of the parts when creating the table after
0
770
by: Jerry K via DotNetMonster.com | last post by:
I'm creating a pivot table using vb.net and the data is from sqlserver (desktop). I have been successful at creating the pivot table, which includes a 'date' column field. I'd like to group the date column field by months and quarters, but can't come up with the correct code. Here is the code I've written to create the pivot table. Any help to code grouping the date column field would be appreciated. Thanks, Jerry
5
2993
by: BMeyer | last post by:
I have been losing my mind trying to parse an XML document (with nested child elements, not all of which appear in each parent node) into a DataGrid object. What I want to do is "flatten" the XML document into a text document with a single row for each parent node (that has all of the values from all of the child nodes for that row) The DataView within VS 2005 IDE displays my 15 or so child tables - and knows that some parent rows...
1
16771
by: asilverpeach | last post by:
Hey Guys! Found some great scripts here on this topic but have to make to changes to the code that I can't seem to figure out. First, In the following code clicking on the headers shows the div information. I want a nested show hide element though. So when you click on "Do you have carpets to be cleaned?" Small Rooms & Medium Rooms appears (that I got working) But Then when you click on Small rooms or medium rooms i want the three lines...
6
2511
by: Fuzzydave | last post by:
I am back developing futher our Python/CGI based web application run by a Postgres DB and as per usual I am having some issues. It Involves a lot of Legacy code. All the actual SQL Querys are stored in the .py files and run in the .cgi files. I have the problem that I need to construct a row from two seprate SQL Querys, I have tried combining the two Querys but all that does is create a Query that returns nothing after a long period...
3
1851
by: McKirahan | last post by:
I am using ASP to generate an HTML table from a database. I use FSO to output a file with an XLS extension then open it. I can set the column width and row height; I can set the font family, size, and weight. I know I can include formulas in a "cell". What else can I do when I generate the table that will take effect when the file is opened in Excel?
1
9784
by: smaczylo | last post by:
Hello, I've recently been asked to work with Microsoft Access, and while I feel quite comfortable with Excel, I'm at a complete loss with databases. If someone could help me with this issue I'm having I'd be most appreciative. The database is already constructed, I'm just wanting to export the data to an excel file. In short, I'm hoping to export two Tables (or queries...not sure which to use - they both seem to have the same data) in...
1
10526
by: CoolFactor | last post by:
MY CODE IS NEAR THE BOTTOM I want to export this Access query into Excel using a command button on an Access form in the following way I describe below. Below you will find the simple query I am trying to export to Excel using a command in an Access Form. RowID strFY AccountID CostElementWBS 1 2008 1 7 2 2008 1 7 I want to...
0
9990
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 usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9837
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11250
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10850
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10478
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7185
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5873
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6074
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4698
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

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.