Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old September 9th, 2004, 05:58 PM
LLX LLX is online now
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Glendale, CA, USA
Posts: 1,286 LLX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 16 h 32 m 40 sec
Reputation Power: 4
Send a message via AIM to LLX Send a message via Yahoo to LLX
a anoying table bug

See below

problem: I dont know where it came from but in my links table i have this anoying horizontal white space anyone have though have to make it so the buttons and the blue bar are "touching" its kinda anoying...

http://celebrity-institute.com/onlineCourses/newtemplate.php

Code:
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR><TD WIDTH="100%">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH=100% BGCOLOR="#FFFFFF">
<TR>
	<TD WIDTH="281" BGCOLOR="#FFFFFF" VALIGN="top"><img src="http://celebrity-institute.com/images/topbanner copy.jpg"></TD>
	<TD WIDTH="281" ALIGN="left" BGCOLOR="#FFFFFF" NOWRAP></TD>
<TD WIDTH="100%" ALIGN="left" BGCOLOR="#FFFFFF" NOWRAP></TD>
<TD></TD>
</TR><TR>
	<TD WIDTH="100%" COLSPAN="3" VALIGN="bottom">
	<?
switch ($this_page)
{
case "/onlineCourses/newtemplate.php":
print '<img src="http://celebrity-institute.com/images/homeon copy.jpg" border="0">
	<img src="http://celebrity-institute.com/images/homeoff copy.jpg" border="0">
	<img src="http://celebrity-institute.com/images/homeoff copy.jpg" border="0">
	<img src="http://celebrity-institute.com/images/homeoff copy.jpg" border="0">';
break;

default:
print '<img src="http://celebrity-institute.com/images/homeoff copy.jpg" border="0">
	<img src="http://celebrity-institute.com/images/homeoff copy.jpg" border="0">
	<img src="http://celebrity-institute.com/images/homeoff copy.jpg" border="0">
	<img src="http://celebrity-institute.com/images/homeoff copy.jpg" border="0">';
break;
}
?>
	</TD>
</TR><TR>
	<TD WIDTH="100%" BGCOLOR="#648CC6" COLSPAN="3" ALIGN="right"><IMG SRC="clear.gif" height="20" width="1"></TD>
</TR></TABLE>
</TD></TR></TABLE>


Reply With Quote
  #2  
Old September 9th, 2004, 06:34 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 8 m 12 sec
Reputation Power: 5
RE: a anoying table bug

maybe?
<TD WIDTH="100%" BGCOLOR="#648CC6" COLSPAN="3" ALIGN="right"><IMG SRC="clear.gif" height="20" width="1"></TD>

Reply With Quote
  #3  
Old September 9th, 2004, 06:50 PM
LLX LLX is online now
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Glendale, CA, USA
Posts: 1,286 LLX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 16 h 32 m 40 sec
Reputation Power: 4
Send a message via AIM to LLX Send a message via Yahoo to LLX
RE: a anoying table bug

no i need that, thats what im trying to conect the buttons to the big bar

Reply With Quote
  #4  
Old September 9th, 2004, 06:56 PM
LLX LLX is online now
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Glendale, CA, USA
Posts: 1,286 LLX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 16 h 32 m 40 sec
Reputation Power: 4
Send a message via AIM to LLX Send a message via Yahoo to LLX
RE: a anoying table bug

im trying to do something similar to the over head tabs here

http://www.onlinelearning.net/index.html?s=826.1040z441y.079t001k91

but obviously with buttons not a image map

Reply With Quote
  #5  
Old September 9th, 2004, 08:54 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
RE: a anoying table bug

believe it or not, it is the way you have your php code formatted. Instead of having each image on a seperate line, try putting them all in one continous line. Or just put the images inside a table with all spacing set to "0"


Reply With Quote
  #6  
Old September 9th, 2004, 09:50 PM
LLX LLX is online now
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Glendale, CA, USA
Posts: 1,286 LLX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 16 h 32 m 40 sec
Reputation Power: 4
Send a message via AIM to LLX Send a message via Yahoo to LLX
RE: a anoying table bug

oldty i t fixed the problem in netscape but not ie, and now my logo in ie doesnt show up odd

php Code:
Original - php Code
  1.  
  2. <?
  3. ini_set('display_errors',0);
  4. $this_page = $_SERVER['PHP_SELF'];
  5. ?>
  6. <html>
  7.  
  8. <head>
  9. <title>Celebrity Institute</title>
  10. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  11. <link rel=alternate media=print href="printversion.doc">
  12. </head>
  13.  
  14. <BODY BGCOLOR="#990000" alink="#0000FF" vlink="#0000FF" link="#0000FF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  15. <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
  16. <TR><TD WIDTH="100%">
  17. <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH=100% BGCOLOR="#990000">
  18. <TR>
  19.     <TD WIDTH="100%" BGCOLOR="#990000" VALIGN="top"  COLSPAN="3" NOWRAP><center><img src="http://celebrity-institute.com/images/citopbanner copy1280.jpg" width="99%" height="99%" border="0"></center></TD></TR><TR>
  20.     <TD WIDTH="281" BGCOLOR="#990000" VALIGN="top"  COLSPAN="3" NOWRAP><IMG SRC="clear.gif" width="1" height="10" border="0"></TD>
  21. </TR><TR>
  22.     <TD WIDTH="100%" COLSPAN="3" VALIGN="bottom" NOWRAP>
  23.     <?
  24. switch ($this_page)
  25. {
  26. case "/onlineCourses/newtemplate.php":
  27. print '<IMG SRC="clear.gif" width="15" height="1" border="0"><img src="http://celebrity-institute.com/images/homeoff copy.jpg" border="0" hspace="0" vspace="0"><a href="aboutus.php"><img src="http://celebrity-institute.com/images/aboutuson copy.jpg" border="0" hspace="0" vspace="0"></a><a href="contact.php"><img src="http://celebrity-institute.com/images/contacton copy.jpg" border="0" hspace="0" vspace="0"></a><a href="courses.php"><img src="http://celebrity-institute.com/images/courseson copy.jpg" border="0" hspace="0" vspace="0"></a><a href="checkUser.php"><img src="http://celebrity-institute.com/images/regon copy.jpg" border="0" hspace="0" vspace="0"></a>';
  28. break;
  29.  
  30. case "/onlineCourses/aboutus.php":
  31. print '<IMG SRC="clear.gif" width="15" height="1" border="0"><a href="index2.php"><img src="http://celebrity-institute.com/images/homeon copy.jpg" border="0" hspace="0" vspace="0"></a><img src="http://celebrity-institute.com/images/aboutusoff copy.jpg" border="0" hspace="0" vspace="0"><a href="contact.php"><img src="http://celebrity-institute.com/images/contacton copy.jpg" border="0" hspace="0" vspace="0"></a><a href="courses.php"><img src="http://celebrity-institute.com/images/courseson copy.jpg" border="0" hspace="0" vspace="0"></a><a href="checkUser.php"><img src="http://celebrity-institute.com/images/regon copy.jpg" border="0" hspace="0" vspace="0"></a>';
  32. break;
  33.  
  34. case "/onlineCourses/contact.php":
  35. print '<IMG SRC="clear.gif" width="15" height="1" border="0"><a href="index2.php"><img src="http://celebrity-institute.com/images/homeon copy.jpg" border="0" hspace="0" vspace="0"></a><a href="aboutus.php"><img src="http://celebrity-institute.com/images/aboutuson copy.jpg" border="0" hspace="0" vspace="0"></a><img src="http://celebrity-institute.com/images/contactoff copy.jpg" border="0" hspace="0" vspace="0"><a href="courses.php"><img src="http://celebrity-institute.com/images/courseson copy.jpg" border="0" hspace="0" vspace="0"></a><a href="checkUser.php"><img src="http://celebrity-institute.com/images/regon copy.jpg" border="0" hspace="0" vspace="0"></a>';
  36. break;
  37.  
  38. case "/onlineCourses/courses.php":
  39. print '<IMG SRC="clear.gif" width="15" height="1" border="0"><a href="index2.php"><img src="http://celebrity-institute.com/images/homeon copy.jpg" border="0" hspace="0" vspace="0"></a><a href="aboutus.php"><img src="http://celebrity-institute.com/images/aboutuson copy.jpg" border="0" hspace="0" vspace="0"></a><a href="contact.php"><img src="http://celebrity-institute.com/images/contacton copy.jpg" border="0" hspace="0" vspace="0"></a><img src="http://celebrity-institute.com/images/coursesoff copy.jpg" border="0" hspace="0" vspace="0"><a href="checkUser.php"><img src="http://celebrity-institute.com/images/regon copy.jpg" border="0" hspace="0" vspace="0"></a>';
  40. break;
  41.  
  42. case "/onlineCourses/checkUser.php":
  43. print '<IMG SRC="clear.gif" width="15" height="1" border="0"><a href="index2.php"><img src="http://celebrity-institute.com/images/homeon copy.jpg" border="0" hspace="0" vspace="0"></a><a href="aboutus.php"><img src="http://celebrity-institute.com/images/aboutuson copy.jpg" border="0" hspace="0" vspace="0"></a><a href="contact.php"><img src="http://celebrity-institute.com/images/contacton copy.jpg" border="0" hspace="0" vspace="0"></a><a href="courses.php"><img src="http://celebrity-institute.com/images/courseson copy.jpg" border="0" hspace="0" vspace="0"></a><img src="http://celebrity-institute.com/images/regoff copy.jpg" border="0" hspace="0" vspace="0">';
  44. break;
  45.  
  46. default:
  47. print '<IMG SRC="clear.gif" width="15" height="1" border="0">';
  48. print '<a href="index2.php"><img src="http://celebrity-institute.com/images/homeon copy.jpg" border="0" hspace="0" vspace="0"></a><a href="aboutus.php"><img src="http://celebrity-institute.com/images/aboutuson copy.jpg" border="0" hspace="0" vspace="0"></a><a href="contact.php"><img src="http://celebrity-institute.com/images/contacton copy.jpg" border="0" hspace="0" vspace="0"></a><a href="courses.php"><img src="http://celebrity-institute.com/images/courseson copy.jpg" border="0" hspace="0" vspace="0"></a><a href="checkUser.php"><img src="http://celebrity-institute.com/images/regon copy.jpg" border="0" hspace="0" vspace="0"></a>';
  49. break;
  50. }
  51. ?>
  52.     </TD>
  53. </TR>
  54.  <TD WIDTH="100%" BGCOLOR="#D5C36F" COLSPAN="3" ALIGN="right"><IMG SRC="clear.gif" height="20" width="1"></TD>
  55. </TABLE>
  56. </TD></TR></TABLE>
  57.  
  58. <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
  59. <TR><TD>
  60. <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
  61. <TD WIDTH="150" BGCOLOR="#FFD85E" VALIGN=TOP>
  62. <TABLE WIDTH="150" BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#FFD85E">
  63. <TR><TD COLSPAN="2" ALIGN="LEFT" BGCOLOR="#D5C36F">
  64. <TABLE>
  65. <TR><TD WIDTH="5"></TD>
  66.     <TD>Search</TD>
  67. </TR><TR><TD WIDTH="5"></TD>
  68.     <TD>link</TD>
  69. </TR><TR><TD WIDTH="5"></TD>
  70.     <TD>link</TD>
  71. </TR><TR><TD WIDTH="5"></TD>
  72.     <TD>link</TD>
  73. </TR><TR><TD WIDTH="5"></TD>
  74.     <TD>link</TD>
  75. </TR><TR><TD WIDTH="5"></TD>
  76.     <TD></TD></TR></TABLE>
  77. </TD></TR><TR BGCOLOR="#FFD85E">
  78. <TD COLSPAN="2">
  79.           <?php
  80.  
  81.                 $lblEmaiID = '<b> Email </b>';
  82.                 $lblPassword = '<b> Password </b>';
  83.                 $Validpage = false;
  84.                 $errMsg = '<ul>';
  85.                 if(isset($_POST['submitLogin'])){
  86.  
  87.                      $Validpage = true;
  88.                      $EmailID$_POST["emailID"];
  89.                      $Password = $_POST["password"];
  90.                      $errMsg = '';
  91.                      if(strlen($EmailID)<=0){
  92.                            $Validpage = false;
  93.                            $errMsg = $errMsg . "<li>Please enter Email";
  94.                            $lblEmailID = "<font color='red'><b>EmailID</b></font>";
  95.                      }
  96.  
  97.                      else{
  98.                            if(strlen($Password)<=0){
  99.                                  $Validpage = false;
  100.                                  $errMsg = $errMsg . "<li>Please enter Password";
  101.                                  $lblPassword = "<font color='red'><b>Password</b></font>";
  102.                             }
  103.                             else{
  104.  
  105.  
  106.     include ("loginfo.php");
  107.  
  108.                                  $dbcnx = mysql_connect("$sqlhost", "$sqluser", "$sqlpass");
  109.                                  $con = mysql_select_db("$sqldb");
  110.                                  if(!$dbcnx)die("Cannot connect to mySQL Server");
  111.                                  if(!$con)die("Cannot Load Database");
  112.                                  $query = "SELECT studentID,emailID,password FROM students WHERE emailID='$EmailID'";
  113.  
  114.                                  $rst = mysql_query($query,$dbcnx);
  115.                                  $num_rows = mysql_num_rows($rst);
  116.                                  list($QryStudentID,$QryEmailID,$QryPassword)=mysql  _fetch_array($rst);
  117.                                  $studentID = $QryStudentID ;
  118.                                  if(strcasecmp($QryEmailID,$EmailID)!=0){
  119.                                       $Validpage = false;
  120.                                       $errMsg = $errMsg . "<li>This is not a valid Email";
  121.                                       $lblEmailID = "<font color='red'><b>EmailID</b></font>";
  122.                                  }
  123.                                  else{
  124.                                       if(strcmp($QryPassword,$Password)!=0){
  125.                                            $Validpage = false;
  126.                                            $errMsg = $errMsg . "<li>Please enter Correct Password";
  127.                                            $lblPassword = "<font color='red'><b>Password</b></font>";
  128.                                        }
  129.                                  }
  130.                             }
  131.                      }
  132.                      if($Validpage == true){
  133.  
  134.                             $_SESSION['sessionEmailID'] = $EmailID;
  135.                             $_SESSION['sessionStudentID'] = $studentID;
  136.                             //$newPage = '<script language =javascript>window.location="myCourse.php?studentID='.$studentID.'"</script>';
  137.                             $newPage = '<script language =javascript>window.location="myCourse.php"</script>';
  138.                             echo $newPage;
  139.  
  140.                      }
  141.                 }
  142.                 else{
  143.  
  144.                      $EmailID = '' ;
  145.                      $Password = '';
  146.                      $errMsg = '';
  147.                 }
  148.           ?>
  149.           <Table bordercolor=#000000 border="0" >
  150.                 <tr>
  151.                     <td>
  152.                         <form name='postForm' method="post" action="index2.php">
  153.                              <div align="center">
  154.                                  <table>
  155.                                       <tr>
  156.                                           <td colspan=2>
  157.                                                 <center>
  158.  
  159.                                                      <?php echo '<font color="red"><b> ' .$errMsg . '</b></font>';   ?>
  160.                                                 </center>
  161.                                           </td>
  162.                                       </tr>
  163.  
  164.                                       <tr>
  165.                                            <td width="50%" align="right">
  166.                                                   <?php echo $lblEmaiID ?>
  167.                                            </td>
  168.                                            <td width="50%" align="left">
  169.                                                   <input type="text" name="emailID" value=<?php echo $EmailID  ?> >
  170.  
  171.                                            </td>
  172.                                       </tr>
  173.                                       <tr>
  174.                                            <td width="50%" align="right">
  175.                                                   <?php echo $lblPassword ?>
  176.                                            </td>
  177.                                            <td width="50%" align="left">
  178.                                                   <input type="password" name="password" value=<?php echo $Password  ?> >
  179.                                            </td>
  180.                                        </tr><br><br>
  181.                                        <tr>
  182.  
  183.                                             <td colspan="2" align="center" >
  184.                                                   <input type="submit" name="submitLogin" value="Login" >
  185.  
  186.                                             </td>
  187.                                        </tr>
  188.                                        <tr>
  189.  
  190.                                             <td colspan="2" align="center" >
  191.                                                   <a href="javascript:(window.location='forgetPassword.php');  ">
  192.                                                    Forgot you password ?
  193.                                                    </a>
  194.                                             </td>
  195.                                        </tr>
  196.  
  197.                                  </table>
  198.                              </div>
  199.                         </form>
  200.                     </td>
  201.                 </tr>
  202.           </table>
  203.           </TD>
  204. </TR>
  205. </TABLE>
  206. </TD>
  207. <TD WIDTH="30" BGCOLOR="#FFFFFF"><IMG SRC="clear.gif" width="30" height="1" border="0"></TD>
  208. <TD WIDTH="100%" BGCOLOR="#FFFFFF">
  209.  
  210. <center>
  211. <Table bordercolor=#000000 border="0" width="100%" height="420">
  212. <tr>
  213. <td align="left">
  214. <center>
  215. <font size="+2" color=#990000>ADVANCE YOUR CAREER IN YOUR SPARE TIME<BR>
  216. WITH ONLINE COURSES FROM CELEBRITY INSITUTE</font><P>
  217. </center>
  218.  
  219. Celebrity Institute provides courses to domestic professionals who want to take their careers
  220. to another level or to individuals who intend to enter into the professional domestic field.
  221. Developed by a powerful team of industry experts these courses do not require you to interrupt
  222. your work or your life whilst you are acquiring new skills, nor do you have to commute long
  223. distances to get to a class on time.<P> 
  224.  
  225. Whatever you choose to do, whether it is the cooking course, the baby nurse course, the
  226. housekeeping course or any of the other courses, you can be sure that you are receiving the
  227. most updated and relevant study material for professionals working in the household domestic
  228. industry.<P>
  229.  
  230. The courses are available from any computer, anytime, anywhere. You work at your own pace during
  231. your spare time and work your way up into a more successful career.<P> 
  232.  
  233. Once you register and start any of our courses:<BR>
  234.  
  235. <UL>
  236. <LI>You will be able to keep track of your progress.  At the end of each section of the course there will be quizzes which will test your understanding of what you have learned.  To ensure that you have mastered each section you will be required to get a score of 80% to be able to go to the next section.</LI>
  237. <LI>You will have your own password that will give you access to your own study material.</LI>
  238. <LI>At the completion of your course, you will be awarded a Certificate of Completion from our institute.</LI>
  239. </UL>
  240.  
  241. <BR><BR><BR><BR>
  242. <center>
  243. <a href="checkUser.php"><IMG SRC="/images/Takethefirststeptodaycopy.png" border="0"></a>
  244. </center>
  245. <BR><BR><BR><BR>
  246.  
  247. <Form name="postForm" method="Post">
  248. <TABLE WIDTH=650 BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
  249.    <?php
  250.  
  251.     include ("loginfo.php");
  252.  
  253.       $dbcnx = mysql_connect("$sqlhost", "$sqluser", "$sqlpass");
  254.       $con = mysql_select_db("$sqldb");
  255.       if(!$dbcnx)die("Cannot connect to mySQL Server");
  256.       if(!$con)die("Cannot Load Database");
  257.  
  258.       $queryCheck = "SELECT courseCode,title,sub_title,duration,courseXML,cour  sePrice,courseDesc,courseImage FROM courses Order by listing_order";
  259.  
  260.       $rst1 = mysql_query($queryCheck,$dbcnx);
  261.       $num_rows = mysql_num_rows($rst1);
  262.  
  263.       while(list($courseCode,$title,$sub_title,$duration  ,$courseXML,$CoursePrice,$courseDesc,$courseImage)  =mysql_fetch_array($rst1,MYSQL_NUM)){
  264.     if ($CoursePrice !=Null){     
  265.         if ($CoursePrice > 0){
  266.       echo '<TR>';
  267.       echo '<TD width="30%"><a href="javascript:(window.location='courseDetail.php?cour  seCode=' .$courseCode .  '');"><IMG SRC="Admin/'. $courseImage . '" ALT="" border="0"></a></TD>';
  268.       echo '<TD width="55%">';
  269.       echo '<TABLE border=0>';
  270.       echo '<TR> ';
  271.       echo '<TD><a href="javascript:(window.location='courseDetail.php?cour  seCode=' .$courseCode .  '');"><b>' .$title . '</b></a></TD>';
  272.       echo '</TR>';
  273.       echo '<TR> ';
  274.       echo '<TD><b><a href="javascript:(window.location='courseDetail.php?cour  seCode=' .$courseCode .  '');">' . $sub_title . '</b></a></TD>';
  275.       echo '</TR>';
  276.       echo '<TR> ';
  277.       echo '<TD><font color="red"><b>'. "Cost: $" .$CoursePrice . '.00</b></font></TD>';
  278.       echo '</TR>';
  279.       echo ' </TABLE> ' ;
  280.       echo ' </TD>';
  281.       //echo '<TD align="right" width="15%"><input type=button value="Buy Class" onclick="window.location='checkUser.php?courseCode='.$cours  eCode.'';"></td>';
  282.       echo'</TR>';
  283.       echo'<TR>';
  284.       echo'<TD colspan=2 height=10>&nbsp;';
  285.       echo'</TD>';
  286.       echo'</TR>';
  287.       }
  288. }
  289. }
  290.    ?>
  291. </TABLE>
  292. </form>
  293. </td>
  294. </tr>
  295. </table>
  296. </center>
  297.  
  298. <?php  include('http://celebrity-institute.com/onlineCourses/indexFoot.php'); ?><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
  299. </TD></TR></TABLE>
  300. </TD></TR></TABLE>
  301. </BODY>
  302. </html>

Reply With Quote
  #7  
Old September 9th, 2004, 10:03 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
RE: a anoying table bug

this code after the switch may be problematic as you have a closing </tr> tag but no openening <tr> tag before the next <td> tag so the orphaned table cell might be causing the problem, unless I am reading the tablle tags incorrectly

Reply With Quote
  #8  
Old September 9th, 2004, 10:07 PM
LLX LLX is online now
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Glendale, CA, USA
Posts: 1,286 LLX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 16 h 32 m 40 sec
Reputation Power: 4
Send a message via AIM to LLX Send a message via Yahoo to LLX
RE: a anoying table bug

testing....

nope still doesnt work right in IE
php Code:
Original - php Code
  1.  
  2. <?
  3. ini_set('display_errors',0);
  4. $this_page = $_SERVER['PHP_SELF'];
  5. ?>
  6. <html>
  7.  
  8. <head>
  9. <title>Celebrity Institute</title>
  10. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  11. <link rel=alternate media=print href="printversion.doc">
  12. </head>
  13.  
  14. <BODY BGCOLOR="#990000" alink="#0000FF" vlink="#0000FF" link="#0000FF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  15. <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
  16. <TR><TD WIDTH="100%">
  17. <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH=100% BGCOLOR="#990000">
  18. <TR>
  19.     <TD WIDTH="100%" BGCOLOR="#990000" VALIGN="top"  COLSPAN="3" NOWRAP><center><img src="http://celebrity-institute.com/images/citopbanner copy1280.jpg" width="99%" height="99%" border="0"></center></TD></TR><TR>
  20.     <TD WIDTH="281" BGCOLOR="#990000" VALIGN="top"  COLSPAN="3" NOWRAP><IMG SRC="clear.gif" width="1" height="10" border="0"></TD>
  21. </TR><TR>
  22.     <TD WIDTH="100%" COLSPAN="3" VALIGN="bottom" NOWRAP>
  23.     <?
  24. switch ($this_page)
  25. {
  26. case "/onlineCourses/newtemplate.php":
  27. print '<IMG SRC="clear.gif" width="15" height="1" border="0"><img src="http://celebrity-institute.com/images/homeoff copy.jpg" border="0" hspace="0" vspace="0"><a href="aboutus.php"><img src="http://celebrity-institute.com/images/aboutuson copy.jpg" border="0" hspace="0" vspace="0"></a><a href="contact.php"><img src="http://celebrity-institute.com/images/contacton copy.jpg" border="0" hspace="0" vspace="0"></a><a href="courses.php"><img src="http://celebrity-institute.com/images/courseson copy.jpg" border="0" hspace="0" vspace="0"></a><a href="checkUser.php"><img src="http://celebrity-institute.com/images/regon copy.jpg" border="0" hspace="0" vspace="0"></a>';
  28. break;
  29.  
  30. case "/onlineCourses/aboutus.php":
  31. print '<IMG SRC="clear.gif" width="15" height="1" border="0"><a href="index2.php"><img src="http://celebrity-institute.com/images/homeon copy.jpg" border="0" hspace="0" vspace="0"></a><img src="http://celebrity-institute.com/images/aboutusoff copy.jpg" border="0" hspace="0" vspace="0"><a href="contact.php"><img src="http://celebrity-institute.com/images/contacton copy.jpg" border="0" hspace="0" vspace="0"></a><a href="courses.php"><img src="http://celebrity-institute.com/images/courseson copy.jpg" border="0" hspace="0" vspace="0"></a><a href="checkUser.php"><img src="http://celebrity-institute.com/images/regon copy.jpg" border="0" hspace="0" vspace="0"></a>';
  32. break;
  33.  
  34. case "/onlineCourses/contact.php":
  35. print '<IMG SRC="clear.gif" width="15" height="1" border="0"><a href="index2.php"><img src="http://celebrity-institute.com/images/homeon copy.jpg" border="0" hspace="0" vspace="0"></a><a href="aboutus.php"><img src="http://celebrity-institute.com/images/aboutuson copy.jpg" border="0" hspace="0" vspace="0"></a><img src="http://celebrity-institute.com/images/contactoff copy.jpg" border="0" hspace="0" vspace="0"><a href="courses.php"><img src="http://celebrity-institute.com/images/courseson copy.jpg" border="0" hspace="0" vspace="0"></a><a href="checkUser.php"><img src="http://celebrity-institute.com/images/regon copy.jpg" border="0" hspace="0" vspace="0"></a>';
  36. break;
  37.  
  38. case "/onlineCourses/courses.php":
  39. print '<IMG SRC="clear.gif" width="15" height="1" border="0"><a href="index2.php"><img src="http://celebrity-institute.com/images/homeon copy.jpg" border="0" hspace="0" vspace="0"></a><a href="aboutus.php"><img src="http://celebrity-institute.com/images/aboutuson copy.jpg" border="0" hspace="0" vspace="0"></a><a href="contact.php"><img src="http://celebrity-institute.com/images/contacton copy.jpg" border="0" hspace="0" vspace="0"></a><img src="http://celebrity-institute.com/images/coursesoff copy.jpg" border="0" hspace="0" vspace="0"><a href="checkUser.php"><img src="http://celebrity-institute.com/images/regon copy.jpg" border="0" hspace="0" vspace="0"></a>';
  40. break;
  41.  
  42. case "/onlineCourses/checkUser.php":
  43. print '<IMG SRC="clear.gif" width="15" height="1" border="0"><a href="index2.php"><img src="http://celebrity-institute.com/images/homeon copy.jpg" border="0" hspace="0" vspace="0"></a><a href="aboutus.php"><img src="http://celebrity-institute.com/images/aboutuson copy.jpg" border="0" hspace="0" vspace="0"></a><a href="contact.php"><img src="http://celebrity-institute.com/images/contacton copy.jpg" border="0" hspace="0" vspace="0"></a><a href="courses.php"><img src="http://celebrity-institute.com/images/courseson copy.jpg" border="0" hspace="0" vspace="0"></a><img src="http://celebrity-institute.com/images/regoff copy.jpg" border="0" hspace="0" vspace="0">';
  44. break;
  45.  
  46. default:
  47. print '<IMG SRC="clear.gif" width="15" height="1" border="0">';
  48. print '<a href="index2.php"><img src="http://celebrity-institute.com/images/homeon copy.jpg" border="0" hspace="0" vspace="0"></a><a href="aboutus.php"><img src="http://celebrity-institute.com/images/aboutuson copy.jpg" border="0" hspace="0" vspace="0"></a><a href="contact.php"><img src="http://celebrity-institute.com/images/contacton copy.jpg" border="0" hspace="0" vspace="0"></a><a href="courses.php"><img src="http://celebrity-institute.com/images/courseson copy.jpg" border="0" hspace="0" vspace="0"></a><a href="checkUser.php"><img src="http://celebrity-institute.com/images/regon copy.jpg" border="0" hspace="0" vspace="0"></a>';
  49. break;
  50. }
  51. ?>
  52.     </TD></TR><TR>
  53.  <TD WIDTH="100%" BGCOLOR="#D5C36F" COLSPAN="3" ALIGN="right"><IMG SRC="clear.gif" height="20" width="1"></TD>
  54. </TABLE>
  55. </TD></TR></TABLE>
  56.  
  57. <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
  58. <TR><TD>
  59. <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
  60. <TD WIDTH="150" BGCOLOR="#FFD85E" VALIGN=TOP>
  61. <TABLE WIDTH="150" BORDER="0" CELLSPACING="0" CELLPADDING="0" BGCOLOR="#FFD85E">
  62. <TR><TD COLSPAN="2" ALIGN="LEFT" BGCOLOR="#D5C36F">
  63. <TABLE>
  64. <TR><TD WIDTH="5"></TD>
  65.     <TD>Search</TD>
  66. </TR><TR><TD WIDTH="5"></TD>
  67.     <TD>link</TD>
  68. </TR><TR><TD WIDTH="5"></TD>
  69.     <TD>link</TD>
  70. </TR><TR><TD WIDTH="5"></TD>
  71.     <TD>link</TD>
  72. </TR><TR><TD WIDTH="5"></TD>
  73.     <TD>link</TD>
  74. </TR><TR><TD WIDTH="5"></TD>
  75.     <TD></TD></TR></TABLE>
  76. </TD></TR><TR BGCOLOR="#FFD85E">
  77. <TD COLSPAN="2">
  78.           <?php
  79.  
  80.                 $lblEmaiID = '<b> Email </b>';
  81.                 $lblPassword = '<b> Password </b>';
  82.                 $Validpage = false;
  83.                 $errMsg = '<ul>';
  84.                 if(isset($_POST['submitLogin'])){
  85.  
  86.                      $Validpage = true;
  87.                      $EmailID$_POST["emailID"];
  88.                      $Password = $_POST["password"];
  89.                      $errMsg = '';
  90.                      if(strlen($EmailID)<=0){
  91.                            $Validpage = false;
  92.                            $errMsg = $errMsg . "<li>Please enter Email";
  93.                            $lblEmailID = "<font color='red'><b>EmailID</b></font>";
  94.                      }
  95.  
  96.                      else{
  97.                            if(strlen($Password)<=0){
  98.                                  $Validpage = false;
  99.                                  $errMsg = $errMsg . "<li>Please enter Password";
  100.                                  $lblPassword = "<font color='red'><b>Password</b></font>";
  101.                             }
  102.                             else{
  103.  
  104.  
  105.     include ("loginfo.php");
  106.  
  107.                                  $dbcnx = mysql_connect("$sqlhost", "$sqluser", "$sqlpass");
  108.                                  $con = mysql_select_db("$sqldb");
  109.                                  if(!$dbcnx)die("Cannot connect to mySQL Server");
  110.                                  if(!$con)die("Cannot Load Database");
  111.                                  $query = "SELECT studentID,emailID,password FROM students WHERE emailID='$EmailID'";
  112.  
  113.                                  $rst = mysql_query($query,$dbcnx);
  114.                                  $num_rows = mysql_num_rows($rst);
  115.                                  list($QryStudentID,$QryEmailID,$QryPassword)=mysql  _fetch_array($rst);
  116.                                  $studentID = $QryStudentID ;
  117.                                  if(strcasecmp($QryEmailID,$EmailID)!=0){
  118.                                       $Validpage = false;
  119.                                       $errMsg = $errMsg . "<li>This is not a valid Email";
  120.                                       $lblEmailID = "<font color='red'><b>EmailID</b></font>";
  121.                                  }
  122.                                  else{
  123.                                       if(strcmp($QryPassword,$Password)!=0){
  124.                                            $Validpage = false;
  125.                                            $errMsg = $errMsg . "<li>Please enter Correct Password";
  126.                                            $lblPassword = "<font color='red'><b>Password</b></font>";
  127.                                        }
  128.                                  }
  129.                             }
  130.                      }
  131.                      if($Validpage == true){
  132.  
  133.                             $_SESSION['sessionEmailID'] = $EmailID;
  134.                             $_SESSION['sessionStudentID'] = $studentID;
  135.                             //$newPage = '<script language =javascript>window.location="myCourse.php?studentID='.$studentID.'"</script>';
  136.                             $newPage = '<script language =javascript>window.location="myCourse.php"</script>';
  137.                             echo $newPage;
  138.  
  139.                      }
  140.                 }
  141.                 else{
  142.  
  143.                      $EmailID = '' ;
  144.                      $Password = '';
  145.                      $errMsg = '';
  146.                 }
  147.           ?>
  148.           <Table bordercolor=#000000 border="0" >
  149.                 <tr>
  150.                     <td>
  151.                         <form name='postForm' method="post" action="index2.php">
  152.                              <div align="center">
  153.                                  <table>
  154.                                       <tr>
  155.                                           <td colspan=2>
  156.                                                 <center>
  157.  
  158.                                                      <?php echo '<font color="red"><b> ' .$errMsg . '</b></font>';   ?>
  159.                                                 </center>
  160.                                           </td>
  161.                                       </tr>
  162.  
  163.                                       <tr>
  164.                                            <td width="50%" align="right">
  165.                                                   <?php echo $lblEmaiID ?>
  166.                                            </td>
  167.                                            <td width="50%" align="left">
  168.                                                   <input type="text" name="emailID" value=<?php echo $EmailID  ?> >
  169.  
  170.                                            </td>
  171.                                       </tr>
  172.                                       <tr>
  173.                                            <td width="50%" align="right">
  174.                                                   <?php echo $lblPassword ?>
  175.                                            </td>
  176.                                            <td width="50%" align="left">
  177.                                                   <input type="password" name="password" value=<?php echo $Password  ?> >
  178.                                            </td>
  179.                                        </tr><br><br>
  180.                                        <tr>
  181.  
  182.                                             <td colspan="2" align="center" >
  183.                                                   <input type="submit" name="submitLogin" value="Login" >
  184.  
  185.                                             </td>
  186.                                        </tr>
  187.                                        <tr>
  188.  
  189.                                             <td colspan="2" align="center" >
  190.                                                   <a href="javascript:(window.location='forgetPassword.php');  ">
  191.                                                    Forgot you password ?
  192.                                                    </a>
  193.                                             </td>
  194.                                        </tr>
  195.  
  196.                                  </table>
  197.                              </div>
  198.                         </form>
  199.                     </td>
  200.                 </tr>
  201.           </table>
  202.           </TD>
  203. </TR>
  204. </TABLE>
  205. </TD>
  206. <TD WIDTH="30" BGCOLOR="#FFFFFF"><IMG SRC="clear.gif" width="30" height="1" border="0"></TD>
  207. <TD WIDTH="100%" BGCOLOR="#FFFFFF">
  208.  
  209. <center>
  210. <Table bordercolor=#000000 border="0" width="100%" height="420">
  211. <tr>
  212. <td align="left">
  213. <center>
  214. <font size="+2" color=#990000>ADVANCE YOUR CAREER IN YOUR SPARE TIME<BR>
  215. WITH ONLINE COURSES FROM CELEBRITY INSITUTE</font><P>
  216. </center>
  217.  
  218. Celebrity Institute provides courses to domestic professionals who want to take their careers
  219. to another level or to individuals who intend to enter into the professional domestic field.
  220. Developed by a powerful team of industry experts these courses do not require you to interrupt
  221. your work or your life whilst you are acquiring new skills, nor do you have to commute long
  222. distances to get to a class on time.<P> 
  223.  
  224. Whatever you choose to do, whether it is the cooking course, the baby nurse course, the
  225. housekeeping course or any of the other courses, you can be sure that you are receiving the
  226. most updated and relevant study material for professionals working in the household domestic
  227. industry.<P>
  228.  
  229. The courses are available from any computer, anytime, anywhere. You work at your own pace during
  230. your spare time and work your way up into a more successful career.<P> 
  231.  
  232. Once you register and start any of our courses:<BR>
  233.  
  234. <UL>
  235. <LI>You will be able to keep track of your progress.  At the end of each section of the course there will be quizzes which will test your understanding of what you have learned.  To ensure that you have mastered each section you will be required to get a score of 80% to be able to go to the next section.</LI>
  236. <LI>You will have your own password that will give you access to your own study material.</LI>
  237. <LI>At the completion of your course, you will be awarded a Certificate of Completion from our institute.</LI>
  238. </UL>
  239.  
  240. <BR><BR><BR><BR>
  241. <center>
  242. <a href="checkUser.php"><IMG SRC="/images/Takethefirststeptodaycopy.png" border="0"></a>
  243. </center>
  244. <BR><BR><BR><BR>
  245.  
  246. <Form name="postForm" method="Post">
  247. <TABLE WIDTH=650 BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
  248.    <?php
  249.  
  250.     include ("loginfo.php");
  251.  
  252.       $dbcnx = mysql_connect("$sqlhost", "$sqluser", "$sqlpass");
  253.       $con = mysql_select_db("$sqldb");
  254.       if(!$dbcnx)die("Cannot connect to mySQL Server");
  255.       if(!$con)die("Cannot Load Database");
  256.  
  257.       $queryCheck = "SELECT courseCode,title,sub_title,duration,courseXML,cour  sePrice,courseDesc,courseImage FROM courses Order by listing_order";
  258.  
  259.       $rst1 = mysql_query($queryCheck,$dbcnx);
  260.       $num_rows = mysql_num_rows($rst1);
  261.  
  262.       while(list($courseCode,$title,$sub_title,$duration  ,$courseXML,$CoursePrice,$courseDesc,$courseImage)  =mysql_fetch_array($rst1,MYSQL_NUM)){
  263.     if ($CoursePrice !=Null){     
  264.         if ($CoursePrice > 0){
  265.       echo '<TR>';
  266.       echo '<TD width="30%"><a href="javascript:(window.location='courseDetail.php?cour  seCode=' .$courseCode .  '');"><IMG SRC="Admin/'. $courseImage . '" ALT="" border="0"></a></TD>';
  267.       echo '<TD width="55%">';
  268.       echo '<TABLE border=0>';
  269.       echo '<TR> ';
  270.       echo '<TD><a href="javascript:(window.location='courseDetail.php?cour  seCode=' .$courseCode .  '');"><b>' .$title . '</b></a></TD>';
  271.       echo '</TR>';
  272.       echo '<TR> ';
  273.       echo '<TD><b><a href="javascript:(window.location='courseDetail.php?cour  seCode=' .$courseCode .  '');">' . $sub_title . '</b></a></TD>';
  274.       echo '</TR>';
  275.       echo '<TR> ';
  276.       echo '<TD><font color="red"><b>'. "Cost: $" .$CoursePrice . '.00</b></font></TD>';
  277.       echo '</TR>';
  278.       echo ' </TABLE> ' ;
  279.       echo ' </TD>';
  280.       //echo '<TD align="right" width="15%"><input type=button value="Buy Class" onclick="window.location='checkUser.php?courseCode='.$cours  eCode.'';"></td>';
  281.       echo'</TR>';
  282.       echo'<TR>';
  283.       echo'<TD colspan=2 height=10>&nbsp;';
  284.       echo'</TD>';
  285.       echo'</TR>';
  286.       }
  287. }
  288. }
  289.    ?>
  290. </TABLE>
  291. </form>
  292. </td>
  293. </tr>
  294. </table>
  295. </center>
  296.  
  297. <?php  include('http://celebrity-institute.com/onlineCourses/indexFoot.php'); ?><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
  298. </TD></TR></TABLE>
  299. </TD></TR></TABLE>
  300. </BODY>
  301. </html>

Reply With Quote
  #9  
Old September 9th, 2004, 10:19 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
RE: a anoying table bug

problem with the image not showing up is that percantages you are using for the height and width...remove them and the graphic displays fine. I also noticed som sytax errors in your table tags (orphaned table cells) that could be causing problems.

Reply With Quote
  #10  
Old September 9th, 2004, 10:32 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
RE: a anoying table bug

I suggest putting your graphics and links in another table, seems to work best...

here is code for the default of the switch
php Code:
Original - php Code
  1.  
  2. <?
  3. print '<table BORDER="0" CELLSPACING="0" CELLPADDING="0"><tr><td><IMG SRC="clear.gif" width="15" height="1" border="0"><a href="index2.php"><img src="http://celebrity-institute.com/images/homeon copy.jpg" border="0" hspace="0" vspace="0"></a></td><td><a href="aboutus.php"><img src="http://celebrity-institute.com/images/aboutuson copy.jpg" border="0" hspace="0" vspace="0"></a></td><td><a href="contact.php"><img src="http://celebrity-institute.com/images/contacton copy.jpg" border="0" hspace="0" vspace="0"></a></td><td><a href="courses.php"><img src="http://celebrity-institute.com/images/courseson copy.jpg" border="0" hspace="0" vspace="0"></a></td><td><a href="checkUser.php"><img src="http://celebrity-institute.com/images/regon copy.jpg" border="0" hspace="0" vspace="0"></a></td></tr></table>';
  4. ?>


just my suggestion

Reply With Quote
  #11  
Old September 9th, 2004, 10:46 PM
LLX LLX is online now
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Glendale, CA, USA
Posts: 1,286 LLX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 16 h 32 m 40 sec
Reputation Power: 4
Send a message via AIM to LLX Send a message via Yahoo to LLX
RE: a anoying table bug

ill have to print the code and go through ti line by line...

as for the percentages the problem is that if i dotn set the size in % then when users with smaller then 1280 with rez monitors will get a streched page and using java to detect resolution doesnt seem to deal with that either

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > a anoying table bug


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek