Page 2 of 2 FirstFirst 12
Results 17 to 20 of 20

Thread: Me Again, HTML Form Question This Time

  1. #17
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts
    Quote Originally Posted by Iain
    I mean the HTML that's output, not your PHP code

    PHP Code:
    <html>

    <
    head>
    <
    meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <
    title>Intranet</title>
    <
    base target="_top">
    <
    link rel="stylesheet" type="text/css" href="css/main.css">
    </
    head>

    <
    body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" style="text-align: left" bgcolor="#336797">

    <
    table border="0" cellpadding="0" cellspacing="0" width="799" height="782">
        <!-- 
    MSTableType="layout" -->
        <
    tr>

            <
    td valign="top" bgcolor="#336797" colspan="3">
            <!-- 
    MSCellType="DecArea" -->
            <
    img border="0" src="logo.jpg" width="204" height="64"></td>
            <
    td bgcolor="#336797" colspan="2">                </td>
            <
    td height="76" bgcolor="#336797"><p align="right">
            <
    HTML>
    <
    HEAD>
        <
    link rel="stylesheet" type="text/css" href="../css/search.css">
    </
    HEAD>

    <
    BODY BGCOLOR="f0f0f0">
    <
    font face="Verdana" size="2" color="#3F789A"><div class=main>

        <
    TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0" BORDER="0">
            <
    TR>
                <
    TD ALIGN="center">
                    <
    FORM METHOD="get" ACTION="search/search.php" TARGET="_self">
                        <
    TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0">
                            <
    TR>
                                <
    TD><INPUT TYPE="text" NAME="q" SIZE="25" TABINDEX="1">&nbsp;</TD>

                                <
    TD><INPUT TYPE="submit" VALUE="Search" TABINDEX="3">&nbsp;</TD>
                                <
    TD>
                                    &
    nbsp;</TD>
                            </
    TR>
                            </
    TABLE>
                    </
    FORM>
                </
    TD>
            </
    TR>
        </
    TABLE>

    </
    BODY>
    </
    HTML>
    </
    td>
        </
    tr>
        <
    tr>
            <
    td colspan="6" height="58" bordercolor="#000000">
            <!-- 
    MSCellType="DecArea" -->
            <
    table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
        <!-- 
    MSCellFormattingTableID="7" -->
        <
    tr>

            <
    td bgcolor="#BCD2E9" nowrap>
            <!-- 
    MSCellFormattingType="header" -->
            &
    nbsp;</td>
            <
    td height="20">
            <
    img alt="" src="MsoPnl_Cnr_tr_741.gif" width="20" height="20"></td>
        </
    tr>
        <
    tr>
            <
    td bgcolor="#BCD2E9" bordercolor="#000000" valign="middle" colspan="2" height="100%">
            <!-- 
    MSCellFormattingType="content" --><DIV CLASS=top>

            &
    nbsp;<a href="/">home</a>
            <
    img border="0" src="arrow.gif" width="5" height="5">
            
    projects</div></td>
        </
    tr>
        <
    tr>
            <
    td nowrap bgcolor="#BCD2E9" width="100%">
            <!-- 
    MSCellFormattingType="footer" -->
            &
    nbsp;</td>

            <
    td height="19" width="20">
            <
    img alt="" src="MsoPnl_Cnr_br_743.gif" width="20" height="19"></td>
        </
    tr>
            </
    table>
            </
    td>
            </
    tr>
        <
    tr>
            <
    td valign="top" bgcolor="#336797" style="border-left-width: 1px; border-top-width: 1px; border-bottom-width: 1px; " width="131" bordercolor="#000000" rowspan="2">
            <!-- 
    MSCellType="NavBody" --><DIV CLASS=menu>

            &
    nbsp;<head>
    <
    base target="_top">
    </
    head>

    <
    br>
     <
    a href="/">Home</a><br>
     <
    a href="departments.php">Departments</a><br>
     <
    a href="addressbook.php">Address Book</a><br>
     <
    a href="Intranet File Share">Shared Files</a><br>

     <
    a href="events.php">Events Calendar</a><br>
     <
    a href="projects.php">Projects</a><br>
     <
    a href="helpdesk.php">Helpdesk</a><br>
     <
    a href="gallery.php">Photo Gallery</a><br>
     <
    a href="forum.php">Forum</a><br>
     <
    a href="about.php">About Gripple</a><br>

    <
    br><br><br>
     <
    a href="/admin">Admin</a>


    </
    td>
            <
    td></div></td>
            <
    td width="61"></td>
            <
    td width="119"></td>
            <
    td width="150"></td>
            <
    td height="20" width="326"></td>

        </
    tr>
        <
    tr>
            <
    td width="12">&nbsp;</td>
            <
    td valign="top" colspan="4" height="628">
            <
    table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
                <!-- 
    MSCellFormattingTableID="4" -->
                <
    tr>
                    <
    td>
                    <
    img alt="" src="MsoPnl_Cnr_tl_42A.gif" width="20" height="20"></td>

                    <
    td bgcolor="#F0F0F0" nowrap>
                    <!-- 
    MSCellFormattingType="header" -->
                    &
    nbsp;</td>
                    <
    td height="20">
                    <
    img alt="" src="MsoPnl_Cnr_tr_42C.gif" width="20" height="20"></td>
                </
    tr>
                <
    tr>
                    <
    td valign="top" bgcolor="#F0F0F0" colspan="3">
                    <!-- 
    MSCellFormattingType="content" --><div align="center" class=main>

                        &
    nbsp;<html>
    <
    head><title>Projects</title>
    <
    style type="text/css">
         
    cell {
                    
    background#f0f0f0;
                    
    font12px normal VerdanaArialsans-serif;}
        
    th#tableheader, tr#tableheader {
                    
    background#3F789A;
                    
    border1px solid #000000;
                    
    font12px normal VerdanaArialsans-serif;
                    
    font-weightbold;
                    
    color#ffffff;}
        
    td#tabledata {
                    
    border1px solid #000000;
                    
    font12px normal VerdanaArialsans-serif;
                    
    color#336699;}
        
    .percentBar {
                    
    height5px;
                    
    background#c0c0c0;}

    </style>
    </
    head>
    <
    body bgcolor="#f0f0f0">
    <
    div class=contact><table width="535" align="center"><tr>
                        <
    th id="tableheader">Project</th><th colspan="2" width="200" id="tableheader">Progress</th><th id="tableheader">Status</th><th id="tableheader">Proposed End</th><tr><td id="tabledata"><b>OEE Impact</b></td>
                        <
    td id="tabledata"><div class="percentBar" width="35px">&nbsp;</div></td>

                        <
    td align="center" id="tabledata" width="30"><b>35%</b></td>
                        <
    td align="center" id="tabledata"><b>In Progress</b></td>
                        <
    td align="center" id="tabledata"><b>31/12/2005</b></td>
                    </
    tr><tr><td id="tabledata"><b>Workmate</b></td>
                        <
    td id="tabledata"><div class="percentBar" width="95px">&nbsp;</div></td>
                        <
    td align="center" id="tabledata" width="30"><b>95%</b></td>

                        <
    td align="center" id="tabledata"><b>In Progress</b></td>
                        <
    td align="center" id="tabledata"><b>31/11/2005</b></td>
                    </
    tr></table></div>

    <
    br><br>
    </
    body></html></div>
                    </
    td>
                </
    div></tr>
                <
    tr>

                    <
    td width="20">
                    <
    img alt="" src="MsoPnl_Cnr_bl_42E.gif" width="20" height="20"></td>
                    <
    td nowrap bgcolor="#F0F0F0" width="100%">
                    <!-- 
    MSCellFormattingType="footer" -->
                    &
    nbsp;</td>
                    <
    td height="20" width="20">
                    <
    img alt="" src="MsoPnl_Cnr_br_430.gif" width="20" height="20"></td>
                </
    tr>
            </
    table>

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

    </
    html

  2. #18
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    Try changing the output from width="35px" to style="width:35px;". That should do the trick. PHP would be something like

    PHP Code:
    echo '<td><div class="percentBar" style="width:'.$sqlRow['percent'].'"><div></td>'
    or whatever I said last time

  3. #19
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts
    Quote Originally Posted by Iain
    Try changing the output from width="35px" to style="width:35px;". That should do the trick.
    PHP Code:
    <td id="tabledata"><div class="percentBar" style="width:'.$row['percent'].'px">&nbsp;</div></td
    thats got it!

    now for the colour changing magik
    Last edited by Vini; 05-10-2005 at 10:46 AM.

  4. #20
    Squeeler Vini's Avatar
    Join Date
    Jul 2003
    Location
    Sheffield
    Posts
    1,769
    Thanks
    44
    Thanked
    8 times in 8 posts


    sweet! thanks everyone for all their help!

    tho, how would i go about linking my projects, i know id have to have an URL section on the form, but how would i write that to my first column.

    as in linking each project to their own page, defined by the URL part of the form.


    nm, i appear to have outdone myself, ive somehow got it to work

    PHP Code:
    <tr><td id="tabledata"><a href="'.$row['url'].'"<b>'.$row['project'].'</b></a></td
    Last edited by Vini; 05-10-2005 at 11:07 AM.

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Right - time to get out your crystal balls
    By Auran in forum General Discussion
    Replies: 63
    Last Post: 12-05-2005, 05:42 PM
  2. is this hype?9800 pro owners beware
    By CrapshoT in forum Graphics Cards
    Replies: 9
    Last Post: 16-10-2003, 02:45 PM
  3. another question, AGP this time
    By bellyboy in forum Graphics Cards
    Replies: 11
    Last Post: 03-10-2003, 09:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •