
mm00re
Members-
Posts
12 -
Joined
-
Last visited
Never
Everything posted by mm00re
-
In i.e. whenever I move my cursor over the menu none of the items drop down nor are any links displayed. I can pm you the url if you would like to view it yourself. This is why it has been driving me crazy. :'(
-
I ran both the html and css through the w3c validator and after some changes it passes both the html and css checks but weirdly enough the menu works in firefox but now not in i.e. 14. <body> 15. <div id="container"> 16. <div id="topbar"> 17. <center> 18. <br /> 19. <br /> 20. <br /> 21. <h1>Families Count Training</h1> 22. </center> 23. <h5 style="text-align:right;">Currently Logged In As: </h5> 24. </div> 25. <br /> 26. <div id="navbar"> 27. <div id="menu"> 28. <ul> 29. <li> 30. <h2>Home</h2> 31. <ul> 32. <li><a href="index.php" title="Return Home">Return Home</a></li> 33. </ul> 34. </li> 35. </ul> 36. <ul> 37. <li> 38. <h2>My Profile</h2> 39. <ul> 40. <li><a href="index.php?profile" title="Edit my profile">Edit Profile</a></li> 41. </ul> 42. </li> 43. </ul> 44. <ul> 45. <li> 46. <h2>FC College</h2> 47. <ul> 48. <li><a href="index.php?training">List My FCC Records</a></li> 49. <li><a href="index.php?add-train">Add FCC Training Record</a></li> 50. <li><a href="index.php?fcclist">List FCC Programs</a></li> 51. <li><a href="index.php?provlist">List Providers</a></li> 52. </ul> 53. </li> 54. </ul> 55. <ul> 56. <li> 57. <h2>Reports</h2> 58. <ul> 59. <li><a href="#" title="Not functional yet">Employee by Month</a></li> 60. <li><a href="#" title="Not functional yet">Employee by Program</a></li> 61. <li><a href="#" title="Not functional yet">Employee total</a></li> 62. </ul> 63. </li> 64. </ul> 65. <ul> 66. <li> 67. <h2>Logout</h2> 68. <ul> 69. <li><a href="logout.php" title="Logout of the system">Exit program</a></li> 70. </ul> 71. </li> 72. </ul> 73. <br style="clear: left" /> 74. </div> 75. <!-- close #navbar --> 76. </div> 77. <div id="main"> 78. <div class="spacer"> 79. <!-- Close #spacer --> 80. </div> 81. <!-- close #main content --> 82. </div>
-
This is a simple page that has a menu bar on it and for whatever reason it won't work properly under firefox and only under the i.e. compatability mode will it work. what am I missing as this is driving me nuts! Thanks in advance... index.php <?php include '../training/inc/accesscontrol.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitio nal.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link href="css/default.css" rel="stylesheet" type="text/css" /> <SCRIPT LANGUAGE="JavaScript" SRC="js/CalendarPopup.js"></SCRIPT> <SCRIPT LANGUAGE="JavaScript"> var cal = new CalendarPopup(); </SCRIPT> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Families - Mission, Vision, & Values</title> </head> <body> <div id="container"> <div id="topbar"> <center> <br /> <br /> <br /> <h1>Training menu</h1> </center> <right> <h5 style="text-align:right;">Currently Logged In As: <?echo $uid?></h5> </right> </div> <br /> <div id="navbar"> <div id="menu"> <ul> <li> <li> <h2>Home</h2> </li> <ul> <li><a href="index.php" title="Return Home">Return Home</a></li> </ul> </li> </ul> <ul> <li> <li> <h2>My Profile</h2> </li> <ul> <li><a href="index.php?profile" title="Edit my profile">Edit Profile</a></li> </ul> </li> </ul> <ul> <li> <li> <h2>FC College</h2> </li> <ul> <li><a href="index.php?training">List My FCC Records</a></li> <li><a href="index.php?add-train">Add FCC Training Record</a></li> <li><a href="index.php?fcclist">List FCC Programs</a></li> <li><a href="index.php?provlist">List Providers</a></li> </ul> </li> </ul> <ul> <li> <li> <h2>Reports</h2> </li> <ul> <li><a href="#" title="Not functional yet">Employee by Month</a></li> <li><a href="#" title="Not functional yet">Employee by Program</a></li> <li><a href="#" title="Not functional yet">Employee total</a></li> </ul> </li> </ul> <ul> <li> <li> <h2>Logout</h2> </li> <ul> <li><a href="logout.php" title="Logout of the system">Exit program</a></li> </ul> </li> </ul> <br style="clear: left" /> </div> <!-- close #navbar --> </div> <div id="main"> <?php //If is defined URL variable 'signup' if(isset($_GET['profile'])){ // include page signup include('pr-edit.php'); //else if is defined URL variable 'login' } else if(isset($_GET['training'])){ // include page login include('../training/tr/train-list.php'); //else if is defined URL variable 'about' } else if(isset($_GET['add-train'])){ // include page login include('tr-add.php'); //else if is defined URL variable 'about' }else if(isset($_GET['reports'])){ // Logout the session include('reports.php'); // in all other cases include the home page }else if(isset($_GET['provlist'])){ // include page login include('prov-list.php'); //else if is defined URL variable 'about' }else if(isset($_GET['admin'])){ // Logout the session include('admin.php'); // in all other cases include the home page }else if(isset($_GET['fcclist'])){ // Logout the session include('fcc-list.php'); // in all other cases include the home page }else if(isset($_GET['logout'])){ // Logout the session include('../training/inc/logout.php'); // in all other cases include the home page } ?> <div class="spacer"> <!-- Close #spacer --> </div> <!-- close #main content --> </div> <p>To edit your personal information, click on "Profile"</p> <p>To view your training classes attended, click on "My Training List" </p> <p>To add a new training record, click "Add Training Record" </p> <p>To view available reports, click "Reports"</p> <div class="footer"></div> <!-- close #container --> </div> </body> </html> default.css /* #container has an absolute width (960 pixel) The width of inner elements is set to auto, in this way all inner elements have the same width of the element which contains them */ body { background: #799ac5; margin: 0px; padding: 0px; font: 85%/1.3em Georgia, Arial, Helvetica, sans-serif; color: #333; } #header { background:url(../images/logo-nontransp.jpg) no-repeat; height:150px; } #container { background: #799ac5; width:960px; margin: 0 auto; height:auto; }/* #logo { background:url(../images/logo-nontransp.jpg); height:60px; }*/ #topbar { height:160px; background: #17994c URL(../images/fc_logo2.jpg) no-repeat left top; ; color:#FFF; } #navbar { width:auto; display:block; height:50px; } #main { width: auto; overflow: auto; } * html #main { height: 1%; } #column_left { width:20%; margin-right:20px; float:left; } #column_right { width:80%; float:left; } /* div.spacer, solve an issue with #container height in css 2 column layout. */ div.spacer { clear:both; height:20px; display:block; } #footer { width:auto; display:block; height:24px; } /* ------------------------------ ------------------------------ */ .even { background-color: #f2f3f4; } .odd { background-color: #ffffff; } tr { background: #ffffff url(training/images/background.jpg) repeat-y left top; width:840px; margin:0 auto; } /*----------------------------- /**************** menu coding *****************/ #menu { width: auto; background: #799ac5; float: center; text-align:center;/* center the displayed text */ margin-left:140px;/* Center the menu's */ /* margin-right:60px;*/ } #menu ul { list-style: none; margin: 0; padding: 0; width: 10em; float:left; } #menu a, #menu h2 { /*font: bold 11px/16px arial, helvetica, sans-serif;*/ font: bold 14px Verdana; display: block; border-width: 1px; border-style: solid; border-color: #ccc #888 #555 #bbb; margin: 0; padding: 2px 3px; } #menu h2 { color: #fff; background: #c74d38; text-transform: uppercase; } #menu a { color: #000; background: #efefef; text-decoration: none; } #menu a:hover { color: #c74d38; background: #fff; } #menu li { position: relative; } #menu ul ul ul { position: absolute; top: 0; left: 100%; } #menu ul ul { position: relative; z-index: 500; } div#menu ul ul { display: none; } div#menu ul li:hover ul { display: block; } div#menu ul ul, div#menu ul li:hover ul ul, div#menu ul ul li:hover ul ul { display: none; } div#menu ul li:hover ul, div#menu ul ul li:hover ul, div#menu ul ul ul li:hover ul { display: block; } body { behavior: url("csshover3.htc"); } <!-- [if IE]> <style type="text/css" media="screen"> body { behavior: url(csshover3.htc); font-size: 100%; } #menu ul li { float: left; width: 100%; } #menu ul li a { height: 1%; } #menu a, #menu h2 { font: bold 1em/1.4em arial, helvetica, sans-serif; } </style> <![endif] --> /*-------------------------------- Links -----------------*/ a:link, a:visited { color:#c74d38; text-decoration: none; } a:hover, a:active { color:#11793b; text-decoration: none; } a img { border: 0; } a.moreInfo { display:block; margin:-2px 5px 2px 0; float:right; font: bold 80% "Lucida Sans Unicode", "Lucida Grande", Verdana, sans-serif; } /*----Forms layout ---------------- -------------------------------------------*/ div.row { clear: both; padding-top: 5px; padding-bottom: 5px; } div.row span.label { float: left; width: 100px; text-align: right; } div.row span.formw { float: right; width: 235px; text-align: left; } /* Footer ----------------------------------------------------------------------- */ .footer { clear:both; font-size: 80%; font-family: Arial, Helvetica, sans-serif; color: #a2d6b7; text-align: center; width:960px; margin: 45px 0 30px 0; padding-top:50px; }
-
I am not that strong with PHP however I am at the point that I need to be able to build and run reports. I am not opposed to paying for such a program but would like some advice as far as to where I would look to see how it's done or if I should just buy a product can you recommend something? Thanks!
-
Hi, I have been having a little trouble getting a radio box or a checkbox to show the value of users and if they have supervisor privileges. It's easy to do with a popup menu however I am trying to keep it as clean as I can. I can echo the $super and the $checked variables and they show correctly but when I try to have it display in the form it's not working. Thanks! $super = $row["dSupervisor"]; $checked = ($super==1) ? 'checked="checked"' : ''; echo $super; echo $checked; //$active = $row["dActive"]; } // Close the SQL connection mysql_close($connection); ?> <strong> <div id="main"> <form action="pr-update.php" method="post"> <label for="dFirstName-l">First Name:</label> <input type="text" name="dFirstName" id="dFirstName-l" value="<? echo ($firstname);?>" /> </br> <label for="dLastName-l">Last Name:</label> <input type="text" name="dLastName" id="dLastName-l" value="<? echo ($lastname);?>" /> </br> <?php echo 'Supervisor?: <SELECT NAME="dSupervisor" SIZE="3" ID="supr"> <OPTION selected="' . $super . '">' . $super . '</OPTION> <OPTION VALUE="Yes" <? if ($super=="Yes"){print "selected=\"selected\"";} ?>Yes</OPTION> <OPTION VALUE="No" <? if ($super=="No"){print "selected=\"selected\"";} ?> No</OPTION>;</SELECT>'; ?> <input type="radio" name="dSupervisor" id="dsupervisor-l" '.$checked.' /> <br />
-
I am trying to setup a way that is easy to keep track of time for classes based on quarter hours. Whenever you select the option menu it shows the correct value at the top of the list but will not select the default item. so my option menu looks like this until clicked: 0 mins (0.00 hrs) 15 mins (0.25 hrs) 30 mins (0.50 hrs) 45 mins (0.75 hrs) Whenever you click the menu it looks like this: 25 0 mins (0.00 hrs) 15 mins (0.25 hrs) 30 mins (0.50 hrs) 45 mins (0.75 hrs) echo 'Class Length: <SELECT NAME="custom10" SIZE="1" ID="mins"> <OPTION VALUE="' . $minutes . '">' . $minutes . '</OPTION> <OPTION SELECTED="SELECTED" VALUE="0" <? if ($minutes=="0"){print "selected=\"selected\"";} ?> 0 mins (0.00 hrs)</OPTION> <OPTION VALUE="25" <? if ($minutes=="25"){print "selected=\"selected\"";} ?> 15 mins (0.25 hrs)</OPTION> <OPTION VALUE="50" <? if ($minutes=="50"){print "selected=\"selected\"";} ?> 30 mins (0.50 hrs)</OPTION> <OPTION VALUE="75" <? if ($minutes=="75"){print "selected=\"selected\"";} ?> 45 mins (0.75 hrs)</OPTION>";</SELECT>'; Any help is appreciated
-
heh it was as simple as that, thank you so much!
-
I can see where I have the needed value in my $recnum variable however whenever I try to pass it to my update.php script the value is not coming through with the rest of the variable's I use. I can put an echo statement anywhere in the php code and the value is shown. Thanks in advance <?php //Grab the database login info include('db_login.php'); // Connect to the server so we can display records for the logged in employee $connection = mysql_connect($dbHost, $dbUser, $dbPass); if (!$connection){ die ("Could not connect to the SQL server: <br />". mysql_error()); } // Select the database $db_select = mysql_select_db($dbname); if (!$db_select){ die ("Could not select the database: <br />". mysql_error()); } // Grab the requested user record info requested and perform the query $dprogID = $_GET['progid']; $query = "SELECT * FROM training WHERE dprogramID = ".$dprogID.""; $result = mysql_query($query); $traininfo = mysql_fetch_array($result); if (!$result){ die ("Could not query the database, error with results: <br />". mysql_error()); } $num = mysql_numrows($result); //Populate the variables $i=0; while ($i < $num) { $title=mysql_result($result,$i,"dTitle"); $provider=mysql_result($result,$i,"dProvider"); $location=mysql_result($result,$i,"dLocation"); $completed=mysql_result($result,$i,"dDateCompleted"); $completed2=date("m/d/Y"); $hours=mysql_result($result,$i,"dNumHours_hours"); $minutes=mysql_result($result,$i,"dNumHours_minutes"); $recnum=mysql_result($result,$i,"dprogramID"); $i++; } ?> <form action="tr-update.php" method="post"> <p>Training Title: <input type="text" value="<?php echo ($title);?>" name="title" size="80" /> </p> <p>Provider: <input type="text" value="<?php echo ($provider);?>" name="provider" size="80" /> </p> Location: <input type="text" value="<?php echo ($location);?>" name="location" size="17" /> <label for="dDateCompleted-l">Date Completed</label> <INPUT TYPE="date" NAME="date1" VALUE="<?php echo ($completed2);?>" SIZE=15> (<A HREF="#" onClick="cal.select(document.forms[0].date1,'anchor1','MM/dd/yyyy'); return false;" NAME="anchor1" ID="anchor1">select</A>)<br /> <br /> Hours: <input type="text" value="<?php echo ($hours);?>" maxlength="3" name="hours" size="3" /> Minutes: <input type="text" value="<?php echo ($minutes);?>" maxlength="2" name="minutes" size="2" /> <label for="dNumHours-l">Number of Hours</label> <select name="dNumHours_hours" id="dNumHours-l" style="width:50px;"> <?php for ($m = 1; $m <= 40; $m++) { ?> <option value="<?php echo ($m+1); ?>"><?php echo $m; ?></option> <?php } ?> </select> <?php $recnum=$_POST["dprogID"]; $selected_minutes = $_GET['$minutes']; echo 'Class Length: <SELECT NAME="custom10" SIZE="1" ID="mins"> <OPTION VALUE="' . $selected_minutes . '">' . $selected_minutes . '</OPTION> <OPTION SELECTED="SELECTED" VALUE="0" $minutes<? if ($minutes=="0"){print "selected=\"selected\"";} ?> >0 mins (0.00 hrs)</OPTION> <OPTION VALUE="25" <? if ($minutes=="25"){print "selected=\"selected\"";} ?> >15 mins (0.25 hrs)</OPTION> <OPTION VALUE="50" <? if ($minutes=="50"){print "selected=\"selected\"";} ?> >30 mins (0.50 hrs)</OPTION> <OPTION VALUE="75" <? if ($minutes=="75"){print "selected=\"selected\"";} ?> >45 mins (0.75 hrs)</OPTION>";</SELECT>'; ?> <br /> <br /> <div id="column_left"></div> <div id="column_right"></div> <div class="spacer" align="right""> <input type="submit" class="submit" value="Submit Report" action="tr-update.php?id='.dprogID."/> <input type="button" value="Cancel" onclick="history.go(-1)" class="submit" /> </div> </form> </html> The code for my update.php script is this: <?php session_start(); if(!isset($_SESSION['loggedin'])) { // If the session 'loggedin' is NOT set forward the user back to the login form with the error set header('Location: /training/menu.php?error=1'); exit(); // Otherwise show the rest of the page (admin section) } $username = $_COOKIE['cookiename']['username']; // Select the username from the cookie include('db_login.php'); $recnum = $_POST["recnum"]; $title = $_POST["title"]; $provider = $_POST["provider"]; $location = $_POST["location"]; $completed2 = $_POST["completed2"]; $hours = $_POST["hours"]; $minutes = $_POST["minutes"]; $connection = mysql_connect($dbHost, $dbUser, $dbPass); if (!$connection) { echo "bad connection statement"; die ("Could not connect to the SQL server: <br />". mysql_error()); } // Verify we have connection to the database $db_select = mysql_select_db($dbname); if (!$db_select){ echo "bad database connection"; die ("Could not select the database: <br />". mysql_error()); } $query="UPDATE training SET dTitle='$title', dProvider='$provider', dDateCompleted='$completed2', dLocation='$location', dNumHours_hours='$hours', dNumHours_minutes='$minutes' WHERE dprogramID= '$recnum' "; $result = mysql_query($query); if (!$result){ die ("Could not query the database, error with results: <br />". mysql_error()); } mysql_close($connection); ?>