Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Web Coding › move login box from the left to the right of my web.help
New Posts  All Forums:Forum Nav:

move login box from the left to the right of my web.help - Page 2

post #11 of 13
Thread Starter 
my index.php

Code:

 <?php

include_once "myconnect.php";
include_once "left_cats.php";
function main()
{
/// AUTO RELISTING ////////

$config=mysql_fetch_array(mysql_query("select * from clone2009_config"));
$auction_period=$config["max_period"];
$rs_query=mysql_query("Select *,UNIX_TIMESTAMP(date_submitted) as t,DATE_ADD(date_submitted,INTERVAL auction_period DAY) as t1  from clone2009_products");
while($rst=mysql_fetch_array($rs_query))

if($rst["aucid"]==3)
{
$num=mysql_num_rows(mysql_query("select * from clone2009_purchased where pid=".$rst["id"]));
}
else
{
$num=mysql_num_rows(mysql_query("select * from clone2009_bids where pid=".$rst["id"]));
}
$date1=date("Y-m-d his",time());
    if(($rst["t1"]==$date1) && ($rst["auto_list"]>$rst["done"]) && ($rst["status"]=='open') && ($num==0))
    {
    mysql_query("update clone2009_products set auction_period=auction_period+$auction_period, done=done+1");
    }
}
/////////////  AUTO RELISTED ///////////////


/////////////getting null char
    $null_char=mysql_fetch_array(mysql_query("select null_char from clone2009_config"));
$config=mysql_fetch_array(mysql_query("select * from clone2009_config"));
$cur=mysql_fetch_array(mysql_query("select * from clone2009_currency where id=".$config["cur_id"]));
    
$sql="select *,UNIX_TIMESTAMP(date_submitted) as t,DATE_FORMAT(DATE_ADD(date_submitted,INTERVAL auction_period DAY),'%D %b,%Y') as endson from clone2009_products where approved='yes' and fp_featured='yes'";
$sql.=" and DATE_ADD(date_submitted,INTERVAL auction_period DAY) > NOW() and status='open' order by id desc";
//echo $sql;
$rs_query=mysql_query($sql);

?>
<table width="50%" border="0" cellpadding="0" cellspacing="0" dwcopytype="CopyTableCell">
  <tr> 
    <td width="100" valign="top"

<p>

    <table width="262" border="0" cellpadding="0" cellspacing="0" bordercolor="#0099FF">
        <tr> 
        <td height="35"  background="http://www.overclock.net/images/bgyell2.gif" class="sideheadingtd" > <div align="left"><strong>&nbsp;<font size="3" face="Arial, Helvetica, sans-serif">&nbsp;&nbsp;<font color="#ffffff">Cool for you</font></strong>
              
          </font></span> </strong></div></td>
     

<right><HTML>
<HEAD>




<TITLE>Advertiser on eMakretCy</TITLE>

<link rel="shortcut icon" href="favicon.ico" >

</HEAD><p><table width="98%" border="0" align="right" cellpadding="0" cellspacing="0">

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-8729850-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>






<center><a href="advertisers/signinform.php"target=_blank"><font color="#99999" size="1" font type="verdana"></a></font></center>





&nbsp;
      <?php left(0); ?>


    </td>
    <td valign="top"> <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        
        </tr>
        
          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td> 
                  <table width="75%" border="0" cellspacing="0" cellpadding="2">
                    <tr> 
                      <td height="35" valign="left" background="http://www.overclock.net/images/bgyell2.gif"> 
                     <div align="left">&nbsp;&nbsp;<img src="http://www.overclock.net/images/squareswhite.gif" width="10" height="12" align="absbottom">&nbsp;&nbsp;<font color="#FFFFFF" size="3" face="Arial, Helvetica, sans-serif"><strong>&nbsp;<font color="#ffffff">Welcome to Auction Site</font></strong></font>  </div></td>
                    
                    
                    
                    
                    
                    
                    </tr>
                    
                    
                    <tr> 
                      <td bgcolor="#EDF2FF"><div align="justify"><font class="main" color="#003366" size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
                          <?php 
                $config=mysql_fetch_array(mysql_query("select welcome_msg from clone2009_config"));
                echo str_replace("\
","<br>",$config[""]);?>

<div class="hprcp_mid">
                                    <div class="hprcp_mide">
                                        <div>
                                            <div>
                                                <div class="body">
                                                    <img height="79" src="http://www.overclock.net/images/welcom.gif" width="622" border="0" usemap="#imgCCHPMeBAAGSignedOut"><map id="imgCCHPMeBAAGSignedOut" name="imgCCHPMeBAAGSignedOut"><area shape="RECT" alt="" coords="97,45,212,75" href="signinform.php"><area shape="RECT" alt="" coords="447,45,565,76" href="/signup.php"><area noHref="nohref" shape="RECT" alt="" coords="0,0,0,0"></map></div>
                                            </div>
                                        </div>


                      </font></div></td>
                    </tr>
                    
                  </table>

                  
                  
                 sdsad
                  
                  
                  
                  
<p><table border="0" bordercolor="#CCCCC"><td> <table width="100%" border="1" cellpadding="0" cellspacing="0" >

        <tr> 
          <td height="35" background="http://www.overclock.net/images/bgyell2.gif" class="sideheadingtd" > <div align="left"><strong>&nbsp;<font size="3" face="Arial, Helvetica, sans-serif">&nbsp;&nbsp;<font color="#ffffff">Check our Partners</font></strong>
              
          </font></span> </strong></div></td>
        </tr>
        
        
        
        
        
        
<tr>
<td>
</script><table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#0099FF">
        <tr> 
          <td height="35"> <div align="left">



</CENTER>


</body>
</html>

 </center>
</td>

<tr>

</tr>
</table><img src="http://www.overclock.net/images/banner1.jpg "> 



                  <font color="#003366" size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp; 
                  </font></td>
              </tr>
            </table></td>
        </tr>
       
        <tr> 
          <td><table width="100%" border="0" cellspacing="1" cellpadding="2">
              <tr> 
                <td height="35" colspan="2" background="http://www.overclock.net/images/bgyell.gif"><strong><font color="#ffffff" size="2" face="Arial, Helvetica, sans-serif">&nbsp;&nbsp;<img src="http://www.overclock.net/images/squareswhite.gif" width="10" height="12" align="absbottom">&nbsp;<font color="#ffffff" size="2" face="Arial, Helvetica, sans-serif"><strong>&nbsp;</strong></font>Featured 
                  Items </font></strong></td>
                <td width="13%" height="35" align="center" background="http://www.overclock.net/images/bgyell.gif" bgcolor="#2989ED"><strong><font color="#ffffff" size="2" face="Arial, Helvetica, sans-serif"> 
                  Price</font></strong></td>
                <td width="17%" height="35" align="center" background="http://www.overclock.net/images/bgyell.gif" bgcolor="#2989ED"><strong><font color="#ffffff" size="2" face="Arial, Helvetica, sans-serif"> 
                  Bids/ Purchases</font></strong></td>
                <td width="18%" height="35" align="center" background="http://www.overclock.net/images/bgyell.gif" bgcolor="#2989ED"><strong><font color="#ffffff" size="2" face="Arial, Helvetica, sans-serif"> 
                  Ends</font></strong></td>
                  
                  
              </tr>
              <?php
                  $cnt=0;
                $num_rows=mysql_num_rows($rs_query);
                $no_featured=mysql_fetch_array(mysql_query("select featured_items from clone2009_config"));
                $max_allowed=$no_featured["featured_items"];
                $number[0]=-1;
                if($num_rows>$max_allowed)
                {
                    for($i=0;$i<$max_allowed;$i++)
                    {
                        $unique=0;
                        while($unique==0)
                        {
                            $j=rand(0,$num_rows-1);
                            for($k=0;$k<count($number);$k++)
                            {
                                //echo $j;
                                if($number[$k]==$j)
                                break;
                            }
                            if($k>(count($number)-1))
                            {
                            $unique=1;
                            }
                        }
                        $number[$i]=$j;
                        
                    }
                }// end if num > no_allowed
                /*for($k=0;$k<count($number);$k++)
                            {
                                echo $number[$k]." ";
                            }*/
                            $row=0;
                while (($rs0=mysql_fetch_array($rs_query))&&($cnt<$max_allowed))
                { 
                
                $display=0;
                if($num_rows>$max_allowed)
                {
                for($k=0;$k<count($number);$k++)
                {
                if($number[$k]==$row)
                {
                    $display=1;
                }
                }
                }
                else
                {
                $display=1;
                }
                if($display==1)
                {
                 ?>
              <tr bgcolor="#<?php if($cnt%2<>0){echo "EEEEEE"; }else{echo "F2F2F2";}?>"> 
                <td width="15%" height="40" align="center" valign="middle"  > 
                  <?php $rs_t0=mysql_fetch_array(mysql_query("select * from clone2009_images where pid=".$rs0["id"]." group by pid")); 
                  if($rs_t0)
                  {
                  ?>
                  <img src="uploadedimages/<?php echo $rs_t0["url"];?>" height="85" width="110"> 
                  <?php } ?>
                </td>
                <td width="46%" ><font color="#003366" size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="product_desc.php?id=<?php echo $rs0["id"]?>" class="insidelink"><?php echo $rs0["product_name"];?></a> 
                  <font color="#003366" size="1" face="Verdana, Arial, Helvetica, sans-serif"> 
                  <?php if($rs0["aucid"]==1) ;//echo "Auction";
              if($rs0["aucid"]==2) echo "<img src=images/dutchicon.gif>";//"Dutch";
              if($rs0["aucid"]==3) echo "<img src=images/fixedpriceicon.gif>";//"Fixed";
              if($rs0["aucid"]==4) echo "<img src=images/classifiedicon.gif>";//"Classified";
              ?>
                  </font></font></td>
                <td align="center" ><font color="#003366" size="3" face="Verdana, Arial, Helvetica, sans-serif"> 
                  <?php                       
                      echo $cur["cur_name"];
                      
                      $rs_query0=mysql_query("select * from clone2009_bids where pid=".$rs0["id"]." order by amount desc");
                      $num_bids=mysql_num_rows($rs_query0);
    
//////////////////////////////////////////////////////////    
$max_bid=0;
$ever_max="";

if($num_bids>1)
{
    $rst0=mysql_fetch_array($rs_query0);
    $ever_max=$rst0["amount"];
    $rst0=mysql_fetch_array($rs_query0);
    $max_bid=$rst0["amount"];
}
elseif($num_bids>0)
{
    $rst0=mysql_fetch_array($rs_query0);
    $ever_max=$rst0["amount"];
    $max_bid=$rs0["min_bid"];
}


if($max_bid==0)
{
    $min_bid=$rs0["min_bid"];
    $curr_bid=$min_bid;
}else
{
    if($num_bids<=1)
        {
            $curr_bid=$max_bid;
        }
    else
    {    
        if($ever_max>$max_bid+$rs0["bid_inc"])
        {
        $curr_bid=$max_bid+$rs0["bid_inc"];
        }
        else
        {
        $curr_bid=$ever_max;
        }
    }
    
    $min_bid=$curr_bid+$rs0["bid_inc"];
}
//////////////////////////////////////////
                          printf("%.2f",$curr_bid);
                      ?>
                  </font></td>
                <td align="center" ><font color="#003366" size="1" face="Verdana, Arial, Helvetica, sans-serif"> 
                  <?php 
                         if($rs0["aucid"]==3)
                         {
                         $num=mysql_num_rows(mysql_query("select * from clone2009_purchased where pid=".$rs0["id"]));
                         }
                         else
                         {
                         $num=mysql_num_rows(mysql_query("select * from clone2009_bids where pid=".$rs0["id"]));
                        
                         }
                        if($num<=0)
                        echo $null_char[0];
                        else
                        echo $num;
                        ?>
                  </font> </td>
                <td align="center"><font color="#003366" size="1" face="Verdana, Arial, Helvetica, sans-serif"> 
                  <?php 
                echo $rs0["endson"];
                ?>
                  </font> </td>
                
              </tr>
              <?php
              $cnt++;
              }//display
              $row++;
              }// end while
              ?>
              <tr> 
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td align="center" valign="top">&nbsp;</td>
                <td align="center" valign="top"><font color="#003366" size="1" face="Verdana, Arial, Helvetica, sans-serif">&nbsp; 
                  </font></td>
                <td align="center" valign="top">&nbsp;</td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
        </tr>
      
          <td align="center"> <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
              
                <td height="35" colspan=3 background="http://www.overclock.net/images/bgyell.gif"><strong><font color="#ffffff" size="2" face="Arial, Helvetica, sans-serif"> 
                  &nbsp;&nbsp;<img src="http://www.overclock.net/images/squareswhite.gif" width="10" height="12" align="absbottom">&nbsp;&nbsp;Gallery 
                  of Featured Items </font></strong></td>
              </tr>
              <tr align="center" bgcolor="#EEEEEE">
                <td> <table width="100%" height="105" border="0" align="center" cellpadding="1" cellspacing="1">
                    <?php
                  $cnt=0;
                $num=0;
                $rs_query=mysql_query($sql);
                $allowed=mysql_fetch_array(mysql_query("select fp_images from clone2009_config"));
                $sql="select * from clone2009_images,clone2009_products where approved='yes' and fp_featured='yes'";
$date1=date(time());
$sql.="and UNIX_TIMESTAMP(DATE_ADD(date_submitted,INTERVAL auction_period DAY)) > $date1 and status='open' and clone2009_images.pid=clone2009_products.id group by clone2009_images.pid order by clone2009_products.id desc";
                $rs_query=mysql_query($sql);
                $num_rows=mysql_num_rows($rs_query);
                $max_allowed=$allowed["fp_images"];
                $number_images[0]=-1;
                if($num_rows>$max_allowed)
                {
                    for($i=0;$i<$max_allowed;$i++)
                    {
                        $unique=0;
                        while($unique==0)
                        {
                            $j=mt_rand(0,($num_rows-1));
                            
                            for($k=0;$k<count($number_images);$k++)
                            {
                                //echo $j;
                                if($number_images[$k]==$j)
                                break;
                            }
                            
                            if($k>(count($number_images)-1))
                            {
                            $unique=1;
                            }
                        }
                        $number_images[$i]=$j;
                        
                    }
                }// end if num > no_allowed
                /*for($k=0;$k<count($number_images);$k++)
                            {
                                echo $number_images[$k]." ";
                            }
                    */    
                $row=0;
                $num=0;
                $cnt=0;
                $rs0=mysql_fetch_array($rs_query);
                while (($rs0)&&($num<$max_allowed))
                { 
                
                $display=0;
                if($num_rows>$max_allowed)
                {
                    for($k=0;$k<count($number_images);$k++)
                    {
                        if($number_images[$k]==$cnt)
                        {
                            $display=1;
                        }
                    }
                }
                else
                {
                    $display=1;
                }
                if($display==1)
                {
                
                 $num++;
                 if($num%3==1)
                {
                    $row++;
                    
                 ?>
                    <tr > 
                      <?php
                    }
                    ?>
                      <td align="center" valign="middle"> <table width="100%" border="0" align="center" cellpadding="2" cellspacing="0" bgcolor="#FFFFFF">
                          <tr> 
                            <td align="center" valign="middle"><a href="product_desc.php?id=<?php echo $rs0["id"];?>" class="insidelink"><img height="150" width="180" src="uploadedimages/<?php echo $rs0["url"];?>" border="0"></a></td>
                          </tr>
                          <tr> 
                            <td width=100% align="center" bgcolor="#FFFFFF"><a href="product_desc.php?id=<?php echo $rs0["id"];?>" class="insidelink"><?php echo $rs0["product_name"];?></a><font color="#FF0000" size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
                              <?php 
                      echo "(".$cur["cur_name"];
                          $rs_query0=mysql_query("select * from clone2009_bids where pid=".$rs0["id"]." order by amount desc");
                      $num_bids=mysql_num_rows($rs_query0);
                                      
//////////////////////////////////////////////////////////    
$max_bid=0;
$ever_max="";

if($num_bids>1)
{
    $rst0=mysql_fetch_array($rs_query0);
    $ever_max=$rst0["amount"];
    $rst0=mysql_fetch_array($rs_query0);
    $max_bid=$rst0["amount"];
}
elseif($num_bids>0)
{
    $rst0=mysql_fetch_array($rs_query0);
    $ever_max=$rst0["amount"];
    $max_bid=$rs0["min_bid"];
}


if($max_bid==0)
{
    $min_bid=$rs0["min_bid"];
    $curr_bid=$min_bid;
}else
{
    if($num_bids<=1)
        {
            $curr_bid=$max_bid;
        }
    else
    {    
        if($ever_max>$max_bid+$rs0["bid_inc"])
        {
        $curr_bid=$max_bid+$rs0["bid_inc"];
        }
        else
        {
        $curr_bid=$ever_max;
        }
    }
    
    $min_bid=$curr_bid+$rs0["bid_inc"];
}
//////////////////////////////////////////
                          printf("%.2f",$curr_bid);
                      
                      echo ")";?>
                              </font></td>
                          </tr>
                        </table></td>
                      <?php
                  
                }
                $rs0=mysql_fetch_array($rs_query);
                if(!($rs0)||($num>=$max_allowed))
                {
                $blankpad=(($row*3)-$num)%3;
                
                while($blankpad>0)
                 {
                 
                 ?>
                      <td><table width="100%" border="0" align="center" cellpadding="2" cellspacing="0" bgcolor="#FFFFFF">
                          <tr align="center" valign="middle"> 
                            <td><img src="http://www.overclock.net/images/spacer.gif" width="100" height="100" border=0></td>
                          </tr>
                          <tr> 
                            <td><font size="2">&nbsp;</font></td>
                          </tr>
                        </table></td>
                      <?php
                 $blankpad--;}
                 }
                    if($num%3==0)
                    {
                    ?>
                    </tr>
                    <?php
                  }
            
    
          $cnt=$cnt+1;

            }//while
            $cnt=0;
            ?>
                  </table></td>
              </tr>
            </table> <tr> 
          <td align="center"> <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
              <tr> 
                <td height="35" colspan=3 background="http://www.overclock.net/images/bgfe1.gif"><strong><font color="#FFFFFF" size="4" face="Arial, Helvetica, sans-serif"> 
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif"><strong>&nbsp;</strong></font>Sell Everything with us! </font></strong></td>
              </tr></td>
        </tr>
      </table>    





    </td>
  </tr>
</table>
<?php
}// end main
?>
<?php
include_once "template.php";
?>



my member login box as you can see in the printscreen

Code:



<tr> 
    <td><FORM name=loginForm  action="login.php"
      method=post>
        <div align="center"></div>
        <table width="262" border=0 align=center cellpadding=5 cellspacing=0>
          <tbody>
            <tr valign=center> 
              <?php if(!isset($_SESSION["userid"])) 
              {
              ?>
              <td colspan="2" background="images/bgyell2.gif"  class="sideheadingtd" ><strong><img src="images/squareswhite.gif" width="10" height="12" align="absmiddle">&nbsp;&nbsp;<font size="2" face="Arial, Helvetica, sans-serif" font color="#ffffff">Member 
                Login</font></strong></td>
            </tr>
            <tr valign=center> 
              <td bgcolor="#f5f5f5"> 
              <div align=right><font color="#000000" size="1"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Username</font></strong></font></div></td>
              <td width="97" bgcolor="#f5f5f5"><font color="#000000"> 
                <input  name=UserName  class="box1" size="13">
              </font></td>
            </tr>
            <tr valign=center> 
              <td bgcolor="#f5f5f5"> 
              <div align=right><font color="#000000" size="1"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Password</font></strong></font></div></td>
              <td bgcolor="#f5f5f5"><font color="#000000"> 
                <input name=Password  type=password  class="box1" size="13">
              </font></td>
            </tr>
            <tr align=right> 
              <td 
        colspan=2 bgcolor="#f5f5f5"> 
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr> 
                    <td width="67%"><p class="style2"><a  class="insidelink"  href="signup.php">:: Signup 
                        Now::</a><br>
                        <a class="insidelink" href="lostpassword.php">:: Lost Password ::</a></p></td>
                    <td width="33%"> <div align="left"> <font color="#000000"> 
                        <input type="submit" name="Submit" value="Sign In" class="btn">
                        </font></div></td>
                  </tr>
              </table></td>
              <?php }?>
            </tr>
            <tr align=right> 
              <td colspan=2>&nbsp; </td>
            </tr>
          </tbody>
        </table>
        <div align="center"></div>
      </FORM></td>
  </tr>

Edited by lenis1990 - 8/11/11 at 7:55am
post #12 of 13
Thread Starter 
just entered the code in first topic.dumb
post #13 of 13
Thread Starter 
Quote:
Originally Posted by graphicsman View Post
He's trying to say that the php just calls the script from the server. More than likely the site was designed and laid out with CSS in a div tag. If you change the location of the HTML/CSS you will be fine. Unless the whole site is hard coded with php on the front and back end, than that is a different story.

Edit:
This would be a great case to post your code to tell you exactly what to do. We don't know how the site is coded to help
i just bought Table2CSS program and i just converted html code to css but i cant see the point to do that for the whole website.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Web Coding
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Web Coding › move login box from the left to the right of my web.help