Jump to content

cluce

Members
  • Posts

    354
  • Joined

  • Last visited

    Never

Posts posted by cluce

  1. Images are on not displaying.

     

    I have a webiste within a website. my structure is:

     

    >webiste

    -[Folder1]

    ---[images]

    ---default page

    ---css page

    ---master design page

    ---[Folder2]

    ----page1

    ---[Folder3]

    ----page1

     

    the only page in this structure displaying the images correctly is

    the default page. My pages in folder 2 & 3 are not displaying my images.  They are all using a master design page.

     

    here is my code

     

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Disaster Recovery Information</title>
        <link href="DisRec/EmpRes.css" rel="stylesheet" type="text/css" />
            <style type="text/css">
                .style1
                {
                    height: 104px;
                }
                .style2
                {
                    height: 21px;
                }
            </style>
    </head>
    <body>
    <div align="center">
            <form id="form1" runat="server">
      <table width="1110" height="710" border="1" cellpadding="0" cellspacing="0">
        <tr>
          <td colspan="2"  
                
                style="background-image:url('../Images/topbg1.png')" 
                class="style1"></td>
        </tr>
        <tr>
          <td colspan="2" style="background-image:url('../Images/bar1.png')" class="style2"><div align="left"></div></td>
        </tr>
        <tr>
          <td width="206" height="509" align="left" valign="top" bgcolor="#ADADAD"><p> <br />
          </p>
            <p align="center">
                <asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server">
                </asp:ContentPlaceHolder>
              </p>
          </td>
          <td width="898" valign="top" bgcolor="#FFFFFF"><p align="right"> </p>
        <div>
            <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
            </asp:ContentPlaceHolder>
        </div>
         <p> </p>
        <p align="left"> </p>
        </td>
        </tr>
      </table>
        </form>
    </div>
    </body>
    </html>

     

  2. I forgot the css.

     

    body
    {
        background-position: left bottom;
        font-family: Arial, Helvetica, Verdana, Sans-serif;
        font-size: 12px;
        background-color: #010159;
    }
    
    #wrap
    {
        background-position: center center;
        width: 836px;
        margin: auto;
        background-image: url( '../Images/bg3.jpg' );
        background-repeat: repeat-y;
    }
    
    #page-container
    {
        width: 800px;
        margin: auto;
        background-color: #FFFFFF;
    }
    
    #header
    {
        height: 136px;
        font-family: 'Ant Olive Cp';
        font-size: 32px;
        font-weight: normal;
        font-style: normal;
        padding-left: 5px;
        background-image: url('../Images/header6.jpg');
    
    }
    
    h1
    {
        margin: 0;
        padding: 15px;
        font-size: medium;
        width: 419px;
    }
    
    #global-links
    {
        float: right;
        width: 164px;
        margin-top: 100px;
        height: 11px;
        padding: 10px;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 11px;
        text-align: center;
        color: #0000FF;
        text-decoration: none;
    }
    
    #main-nav
    {
        border-left: thin solid #F16005;
        border-right: thin solid #F16005;
        border-top: thin none #F16005;
        height: 45px;
       
        background-repeat: repeat-x;
        background-image: url('../Images/flash_shade.gif');
        background-position: left bottom;
        }
    
    
    #sidebar-a
    {
        border-left: thin solid #F16005;
        float: left;
        width: 150px;
        line-height: 18px;
        height: 530px;
        text-decoration: none;
        margin-bottom: 0px;
        background-color: #FFFFFF;
        border-right-style: solid;
        border-left-style: solid;
        border-width: thin;
        border-color: #f16005 #000080 #f16005 #f16005;
    }
    
    #sidebar-a .padding {
    padding: 25px;
    }
    
    #sidebar-a h1
    {
       
    }
    
    #sidebar-b
    {
        border-left: thin solid #000080;
        border-bottom: thin none #000000;
        float: right;
        width: 149px;
        line-height: 18px;
        height: 686px;
        border-color: #010159 #f16005 #000000 #010159;
        border-style: none solid none solid;
        border-width: medium thin thin thin;
        background-color: #FFFFFF;
    }
    
    #sidebar-b .padding {
    padding: 5px;
    }
    
    #flash
    {
        padding: 2px;
        margin-left: 5px;
        width: 97%;
        height: 263px;
    }
    
    #content
    {  
        border-bottom: thin none #000000;
        border-left: thin solid #F16005;
        line-height: 18px;
        background-color: #FFFFFF;
        height: 685px;
        width: 644px;
    }
    
    #content .padding {
    padding: 25px;
    
    }
    
    #content-header
    {
        width: 126px;
        color: #010159;
    }
    
    #content h2
    {
        margin: 0;
        padding: 0;
        padding-bottom: 15px;
        color: #010159;
        font-size: 22px;
    }
    
    #content p {
    margin: 0;
    padding: 0;
        padding-bottom: 15px;
    }
    
    #table
    {
        height: 278px;
        width: 144px;
        margin-top:3px;
        text-align: center;
    }
    
    
    #footer
    {
        height: 53px;
        clear: both;
        text-align: center;
        background-image: url('../Images/footer1.jpg');
        color: #FF9933;
        margin-top: 1px;
    }
    
    #footer a:link
    {
        color: Orange;
        text-decoration: underline;
    }
    
    #footer a:hover
    {
        text-decoration: none;
        color: #db6d16;
    }
    
    
    /*Classes*/
    
    
    .class1 A:link
    {
        text-decoration: underline;
        color: #F16005;
    }
    
    .link1 A:visited
    {
         text-decoration: none;
          color:#f16005;
    }
    
    .link1 A:active
    {
         text-decoration: none;
         color:#f16005;
    }
    
    .link1 A:hover
    {
        text-decoration: none;
        color: #FF9933;
    }
    
    
    
    .link2 A:link
    {
        text-decoration: none;
        color: #f16005;
    }
    
    .link2 A:visited
    {
        text-decoration: none;
        color:#f16005;
    }
    
    .link2 A:active
    {
         text-decoration: none;
         color:#f16005;
    }
    
    .link2 A:hover 
    {
        text-decoration: underline;
        color:#FF9933;
    }

  3. I need help. Please. The easy menu child items are not displaying correctly in firefox or safari. I tested it in IE 7 and 8 and it works fine with those browsers but not firefox or safari. The problem is...I have a flash object on my home page and when you try to view the child menu items in the easy menu those items drop down but it is behind my flash object so you cant click on them. Has anyone else had this problem? I will attach my code.

     

    here is my code

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        <link href="Css/home.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
      
      <form id="form1" runat="server">
      <div id="wrap">
        <div id="page-container">
        <div id="header">
           <div id="global-links" class="link2">  |
               <a href=""> Site Map</a></div>    
      </div>
          <div id="main-nav">
                  <uc2:easyMenu ID="easyMenu1" runat="server" />
          </div>
       <!---   <div id="sidebar-a">
        <div class="padding"><p>News</p>
            </div>
    </div> --->
    
    <div id="content">
      	<div id="flash">
    <object
        codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" 
         width="625px" height="263px" id="home_flash" align="middle" >
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="Intro.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#000000" />
    <embed src="Flash/Intro.swf" loop="false" quality="high" bgcolor="" width="625px" height="263px"
    name="home_flash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/go/getflashplayer"/>
    </object>
         </div>
    <div class="padding">
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
            </asp:ContentPlaceHolder>
    </div>
         </div>
    
        <div id="footer">
        <div id="altnav">
    
        <uc1:footer ID="footer1" runat="server" />
    	</div>
    </div>
    </div>
        </div>
        </form>
    </body>
    </html>
    

     

  4. I dont know what else to change but for some reason my links are stuck on blue. Grrrrr!!

     

    here is my code.

     

    <tr>

                    <td><a href="#" class="links">website is under contruction</a></td>

                    </tr>

     

    CSS

    .links A:link
    {
        text-decoration: underline;
        color: #FF9900;
    }
    
    .links A:hover
    {
        text-decoration: none;
    }

  5. How can I get my content tags to push my footer down. If I put to much information in my content section, some of the text information is hidden behind my footer. It is like its not pushing my footer down.

     

    body
    {
        background-position: left bottom;
        font-family: Arial, Helvetica, Verdana, Sans-serif;
        font-size: 12px;
        background-color: #010159;
    }
    
    
    .hidden {
    display: none;
    }
    
    
    #wrap
    {
        background-color: White;
        width: 850px;
        margin: auto;
        background-image: url('../Images/bg1.jpg');
        background-repeat: repeat-y;
    }
    
    
    #page-container
    {
        width: 800px;
        margin: auto;
        background-color: #010159;
    }
    
    #header
    {
        height: 136px;
        font-family: 'Ant Olive Cp';
        font-size: 32px;
        font-weight: normal;
        font-style: normal;
        padding-left: 5px;
        background-image: url('../Images/header6.jpg');
       
    }
    
    #site-map-path
    {
        float: right;
        width: 201px;
        margin-top: 100px;
        height: 11px;
        padding: 10px;
        font-family: Arial, Helvetica, sans-serif;
        font-size: small;
        text-align: center;
        color: #000080;
    }
    
    
    h1
    {
        margin: 0;
        padding: 15px;
        font-size: medium;
    }
    
    #main-nav
    {
        border-left: thin solid #F16005;
        border-right: thin solid #F16005;
        border-top: thin none #F16005;
        border-bottom:  thick none #F16005;
        height: 33px;
        background-image: url('../Images/nav1.jpg');
        border-style: none solid solid solid;
    }
    
    #sidebar-a
    {
        border-width: thin;
        border-color: #F16005;
        float: left;
        width: 150px;
        line-height: 18px;
        border-left-style: solid;
        height: 446px;
        background-color: #010256;
        background-image: url('../Images/side_nav_bg_2.png');
        color: #c9c9c9;
        text-decoration: none;
    }
    
    #sidebar-a a {
    color: #c9c9c9;
    text-decoration: none;
    }
    
    #sidebar-a a:hover {
    color: #db6d16;
    }
    
    
    #sidebar-a #side-nav {
     padding-left:15px; 
     padding-top:10px;
    }
    
    
    #content
    {
        margin-left: 150px;
        padding-left: 10px;
        line-height: 18px;
        background-color: #FFFFFF;
        height: 446px;
        border-width: 1px;
        border-color: #FF6600;
        border-style: none solid none none;
    }
    
    #content .padding {
    padding: 25px;
    }
    
    #content h2
    {
        margin: 0;
        padding: 0;
        padding-bottom: 15px;
        color: #010159;
    }
    
    #content p {
        margin: 0;
        padding: 0;
        padding-bottom: 15px;
      
    }
    
    #footer
    {
        height: 53px;
        clear: both;
        text-align: center;
        background-image: url('../Images/footer1.jpg');
        color: #FF9933;
    }
    #footer a:link
    {
        color: Orange;
        text-decoration: underline;
    }
    
    #footer a:hover
    {
        text-decoration:none;
        color: #db6d16;
    }
    
    
    

  6. I have an image that I am placing as the background image for the background-effect but the only 2way it will display wide enough across the screen is to set the width property to width: 1590px; But that is the only way I know how to get the image to display wide enough for the screen. But when I delete the absolute positioning, I dont need the width property but I need the absolute positioning b/c thats the only way the z-index works. Is there a way to get theset the width the size of whatever screen is displying the page for the background-effect-a tag?

     

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        <link href="Css/Div9.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="background-effect"></div>
      <form id="form1" runat="server">
        <div id="page-container">
        <div id="header">
        <h1></h1>
          </div>
        <div id="main-nav">Main Nav</div>
        <div id="sidebar-a">
        <div class="padding">
    </div>
    </div>
    <div id="content">
    <div class="padding">
    </div>
         </div>
        <div id="footer">Footer
        <div id="altnav">
    </div>
    </div>
    </div>
        </form>
    </body>
    </html>
    
    
    

     

    #background-effect-a
    {
        z-index: -1;
        height: 55px;
        position: absolute;
        margin: 0;
        top: 0px;
        left: 0px;
        width: 1590px;
        background-image: url('../Images/top_effect_blue.jpg');
    }
        
    body
    {
        background-position: #ffffff;
        font-family: Arial, Helvetica, Verdana, Sans-serif;
        font-size: 12px;
        color: #666666;
        background-color: #010159;
    }
    
    
    .hidden {
    display: none;
    }
    
    #page-container
    {
        width: 800px;
        margin: auto;
        overflow:auto;
    }
    
    #header
    {
        height: 140px;
        font-family: 'Ant Olive Cp';
        font-size: 32px;
        font-weight: normal;
        font-style: normal;
        padding-left: 5px;
        background-color: #FFFFFF;
        background-image: url('../Images/header_bg1.jpg');
    }
    
    h1
    {
        margin: 0;
        padding: 15px;
        font-size: medium;
    }
    
    #main-nav
    {
        border-style: none solid solid solid;
        border-width: 1px;
        border-color: #FF6600;
        height: 25px;
        background-image: url('../Images/nav_bg1.jpg');
    }
    
    #sidebar-a
    {
        border-width: 1px;
        border-color: #FF6600;
        float: left;
        width: 150px;
        line-height: 18px;
        border-left-style: solid;
        height: 446px;
        background-image: url('../Images/side_bg.jpg');
    }
    
    #sidebar-a .padding {
    padding: 25px;
    }
    
    #content
    {
        margin-left: 150px;
        padding-left: 10px;
        line-height: 18px;
        background-color: #FFFFFF;
        height: 446px;
        border-width: 1px;
        border-color: #FF6600;
        border-style: none solid none none;
    }
    
    #content .padding {
    padding: 25px;
    }
    
    #content h2 {
    margin: 0;
    padding: 0;
    padding-bottom: 15px;
    }
    
    #content p {
    margin: 0;
    padding: 0;
        padding-bottom: 15px;
    }
    
    #footer
    {
        border-width: 1px;
        border-color: #FF6600;
        border-style: solid none none none;
        height: 66px;
        clear: both;
        text-align: center;
        background-image: url('../Images/footer_bg1.jpg');
    }

  7. I am trying to split my background div tags into two but I do not want it to push the body of my website down. What is the code to layer one tag on top of the other.  I am trying to layer this tag (background-effect)beneath the body tag. any

    help?

     

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        <link href="Css/Div9.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="background-effect"></div>
      <form id="form1" runat="server">
        <div id="page-container">
        <div id="header">
        <h1></h1>
          </div>
        <div id="main-nav">Main Nav</div>
        <div id="sidebar-a">
        <div class="padding">
    </div>
    </div>
    <div id="content">
    <div class="padding">
     </div>
         </div>
        <div id="footer">Footer
        <div id="altnav">
    </div>
    </div>
    </div>
        </form>
    </body>
    </html>
    

     

    html, body {
    margin: 0;
    padding: 0;
    }
    
    body
    {
        background-position: #ffffff;
        font-family: Arial, Helvetica, Verdana, Sans-serif;
        font-size: 12px;
        color: #666666;
        background: #000080;
    }
    
    #background-effect
    {
        background-color: Gray;
        clear: both;
        height:50px;
    }
    .hidden {
    display: none;
    }
    
    #page-container
    {
        width: 800px;
        margin: auto;
    }
    
    #header
    {
        height: 150px;
        font-family: 'Ant Olive Cp';
        font-size: 32px;
        font-weight: normal;
        font-style: normal;
        padding-left: 5px;
        background-color: #FFFFFF;
    }
    
    h1
    {
        margin: 0;
        padding: 15px;
        font-size: medium;
    }
    
    #main-nav {
    background:red;
    height: 25px;
    }
    
    #sidebar-a {
    float:left;
    width: 180px;
    line-height: 18px;
    }
    
    #sidebar-a .padding {
    padding: 25px;
    }
    
    #content
    {
        margin-left: 280px;
        padding-left: 10px;
        padding-right: 10px;
        line-height: 18px;
        background-color: #FFFFFF;
    }
    
    #content .padding {
    padding: 25px;
    }
    
    #content h2 {
    margin: 0;
    padding: 0;
    padding-bottom: 15px;
    }
    
    #content p {
    margin: 0;
    padding: 0;
        padding-bottom: 15px;
    }
    
    #footer {
    
    height: 66px;
    clear: both;
    text-align:center;
    }
    

  8. $handle = fopen("EmployeeLoginInfoRev2.csv","r");
    while(($data = fgetcsv($handle, 1000, ",")) !== FALSE) 
    {
       $username = $data[0];   
       $password = $data[1];  
       $f_name = $data[2];   
       $l_name = $data[3];   
       $email = $data[4];
       $last = $data[5];
       $failed = $data[6];
       $priv = $data[7];
       $company = $data[8];
       $division_number = $data[9];
       
       $sql = "INSERT INTO employees (username, password, f_name, l_name, email, last_login, failed_logins, privilege, company, division_number) VALUES ('$username', '$password', '$f_name', '$l_name', '$email', '$last', '$failed', '$priv', '$company', '$division_number')"; 
        
       mysqli_query($mysqli, $sql);   
    
       $counter++;
       echo 'SQL='.$sql.'<br/>';  
    
    

     

    while(($data = fgetcsv($handle, 1000, ",")) !== FALSE)

     

    What does this statement mean?

     

  9. can someone look at my code to see if it is using the correct syntax?

     

    
    <?
    ##########################################
    # read the data file into an array
    # each element of this array contains all of the information for each item
    
    $data_file = "UserInfo.csv";
    $line_array = file($data_file);
    
    ########################################
    # make your database connection here
    
    include'db.php';
    include'salt.php';
    
    ####################################################
    # loop through the first array
    
    $number_of_items = count($line_array);
    $i =0;
    for($i=0;$i<$number_of_items;$i++) {
    
    ########################################
    # explode each element into a new array using the comma as the delimiter
    
    $temp_array = explode(",",$line_array[$i]);
    
    ###########################################
    # make your mysql query here and
    # insert each field from the temp array into the proper mysql fields like $temp_array[1] in order of your rows affected
    
    $sql = "INSERT INTO employees (username, password, f_name, l_name, email, last_login, failed_logins, privilege, company, division_number)  VALUES('$temp_array[0]', '$temp_array[1]', '$temp_array[2]', '$temp_array[3]', '$temp_array[4]', '$temp_array[5]', '$temp_array[6]', '$temp_array[7]', '$temp_array[8]') ";
    }
    mysqli_query($mysqli, $sql);   
    ?>
    
    

  10. looks like there is a duplicate key when your loop stops. by the way, what is this line?

     

    $sql = "INSERT INTO employees () VALUES ('')"; 
    mysqli_query($mysqli, $sql);
    

     

    you insert nothing to the table.

     

    actually that gave me the error when I tried to insert A record(meaning one) 256 manually. as you can see in the first value of the error....... I am getting frustrated with this  :-[

  11. I also get an error when I try to manually add in a record from the admin page:

     

    Error

    SQL query: 

     

    INSERT INTO `test`.`employees` (

     

    `EmployeeID` ,

    `username` ,

    `password` ,

    `f_name` ,

    `l_name` ,

    `email` ,

    `last_login` ,

    `failed_logins` ,

    `privilege` ,

    `first_name` ,

    `last_name` ,

    `address` ,

    `city` ,

    `state` ,

    `zip` ,

    `phone` ,

    `altphone` ,

    `company` ,

    `supervisor_name` ,

    `division_number`

    )

    VALUES (

    '256', 'test', 'test', 'test', 'test', NULL , NULL , NULL , NULL , '', '', '', '', '', '', '', '', '', '', ''

    )

     

    MySQL said: 

     

    #1062 - Duplicate entry '255' for key 1

     

     

     

  12. I am trying to insert 417 records from a csv file.  The problem I am having is it is only inserting about 250 records. Does anybody know why my query stopped inserting records into the database early? 

     

    my code:

     

    
    <?php
    $counter = 1; //initialize counter
    
    include'db.php';
    
    include'salt.php';
    
    $handle = fopen("UserInfo.csv","r");
    while(($data = fgetcsv($handle, 1000, ",")) !== FALSE) 
    {
       $username = $data[0];   
       $password = $data[1];  
       $f_name = $data[2];   
       $l_name = $data[3];   
       $email = $data[4];
       $last = $data[5];
       $failed = $data[6];
       $priv = $data[7];
       $company = $data[8];
       $division_number = $data[9];
       
       $sql = "INSERT INTO employees () VALUES ('')"; 
        
       mysqli_query($mysqli, $sql);   
    
       $counter++;
       echo 'SQL='.$sql.'<br/>';  
    }
    ?>
    
    

  13. I have an issue with uploading and keeping the same data in my excel spreadsheet when I convert it to a csv file.  First, I tried to insert the excel spreadsheet into the database using the following code:

     

    
    <?php
    $counter = 1; //initialize counter
    
    include'db.php';
    
    include'salt.php';
    
    $handle = fopen("triaport.xls","r");
    while(($data = fgetcsv($handle, 1000, ",")) !== FALSE) 
    {
       $company = $data[0];
       $division_number = $data[1];
       $username = $data[2];   
       $password = $data[3];  
       $f_name = $data[4];   
       $l_name = $data[5];   
       $email = $data[6];   
       $priv = $data[7];
       
       $sql = "INSERT INTO employees (deleted for security reasons) VALUES (')"; 
        
       mysqli_query($mysqli, $sql);   
    
       $counter++;
       echo 'SQL='.$sql.'<br/>';  
    }
    ?>
    

     

    which works fine with a csv file. But the problem is two of the columns in my table require leading zeros and csv file removes the leading zeros. I tried to use an excel spreadsheet but it does not work with my loop which inserts Null values in my table. I have about 500 records so manually adding leading 0's in the csv file would be tedious.  A csv file removes all formatting which changes the actual data that I need to insert in the databse.

     

    Does anybody know any other method I can use to insert a file into the MYSQL database?  Or know how to use another type of file besides a csv file that would work?

×
×
  • 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.