php help.. undefined help ...

I have a couple questions…

There are a couple things i am trying to change in a script…

the page is http://www.exegeticacademy.us/testing/

I want to remove the white lines with dots in them… i removed the dot.gif from images folder but still present.
I would like to change the Colored lines… the blue and purple… to another color…
I would like to change the font colors and size inside the blue and purple areas…
Change the title of the page…

If anyone can help… Please… i can repeat process for all pages… just cant figure it all out…

I can provide any codes necessary for help if needed. Below is the PHP and CSS scripts …

[php]<?php
include “./includes/timerhead.php”;
include “./includes/conn.php”;
include “./includes/includes.php”;
include “./includes/nocache.php”;
include “./includes/validation.php”;

session_start();
if ($_SESSION[‘loggedInTest’]==“1”) {
redirect_to(“userArea.php”);
exit;
}

?>

<? // Copyright (C) 2003 - 2007 Eppler Software. All rights reserved. // Any redistribution or reproduction of any materials herein is strictly prohibited. ?> <?php echo (TITLE);?> input.next { margin-top : 1.6em; float : right; } .t {background: url(images/dot.gif) 0 0 repeat-x; width: 20em} .b {background: url(images/dot.gif) 0 100% repeat-x} .l {background: url(images/dot.gif) 0 0 repeat-y} .r {background: url(images/dot.gif) 100% 0 repeat-y} .bl {background: url(images/bl.gif) 0 100% no-repeat} .br {background: url(images/br.gif) 100% 100% no-repeat} .tl {background: url(images/tl.gif) 0 0 no-repeat} .tr {background: url(images/tr.gif) 100% 0 no-repeat; padding:10px} p {font-family: sans-serif; text-align:left} <?php if (DISABLE_PRINT) { ?> @media print { body {display:none} <?php } ?> } <?php if (IPSESSIONS) { $strSQL="SELECT * FROM Sessions WHERE IP='" . $ip . "'"; } else { $strSQL="SELECT * FROM Sessions WHERE ID='" . $sessID . "'"; } // $strSQL="SELECT * From Sessions WHERE IP='" . $ip . "'"; $result=mysql_query($strSQL, $conn) or $myVar=true;
  if (!isset($myVar)) {
	  $num_records=mysql_num_rows($result);
	  $row=mysql_fetch_array($result);
	  if ($num_records == 0) {
  		$myVar = true;
	  } else {
	  	$myVar = false;
	  }
  }

?>

<?php include "./includes/top.php"; ?>

<?php if (!$myVar) { ?>
    <div class="t"><div class="b"><div class="l"><div class="r"><div class="bl"><div class="br"><div class="tl">
	  <div class="tr"><font face="Arial, Helvetica, sans-serif"><?php echo($row['FirstName'] . $myVar . " " . $row['LastName']) ?><br>
	    <?php } ?>
    <?php

if ($myVar != 1) {
if ($row[‘TestName’] != “”) {
?>
<?=$row['TestName']?>


<?
if ($row[‘AllowQuit’]) {
if (!$row[‘review’] and !$quit) {
?>

<? }
}?>


<?php
}
}
?>

<?php $prefSQL="SELECT * FROM Preferences"; $prefResult=mysql_query($prefSQL, $conn); $prefs=mysql_fetch_assoc($prefResult); if ($prefs['AllowBrowse']) { if (!isset($_REQUEST['subject'])) { $strSQL="SELECT * FROM Tests WHERE Enabled=1 AND Browseable=1 ORDER by TestName"; } else { $strSQL="SELECT * FROM Tests WHERE Enabled=1 AND Subject='" . $_REQUEST['subject'] . "'"; } $result=mysql_query($strSQL, $conn); $num_rows=mysql_num_rows($result); ?> <?=$prefs['WelcomeMessage']?> <?php if ($num_rows != 0) { while($row = mysql_fetch_assoc($result)) { $i++; ?> <?php $subjectSQL="SELECT Name FROM Subjects WHERE ID=" . $row['Subject']; $subjectResult=mysql_query($subjectSQL, $conn); $subject=mysql_fetch_assoc($subjectResult); ?> <?php } } ?>
Name Subject
<?=$row['TestName']?><?=$subject['Name']?>
<?php } else { ?> Browsing is not enabled.<?php } ?>

<?php include "./includes/copyright.php" ?>
[/php]

[code].t {background: url(…/images/dot.gif) 0 0 repeat-x; width: 20em}
.b {background: url(…/images/dot.gif) 0 100% repeat-x}
.l {background: url(…/images/dot.gif) 0 0 repeat-y}
.r {background: url(…/images/dot.gif) 100% 0 repeat-y}
.bl {background: url(…/images/bl.gif) 0 100% no-repeat}
.br {background: url(…/images/br.gif) 100% 100% no-repeat}
.tl {background: url(…/images/tl.gif) 0 0 no-repeat}
.tr {background: url(…/images/tr.gif) 100% 0 no-repeat; padding:10px}
p {font-family: sans-serif}
.style1 {font-family: Arial, Helvetica, sans-serif}
.style2 {font-family: Arial, Helvetica, sans-serif; font-size: 10px; }
div.hr {
height: 15px;
background: #fff url(…/images/hr.gif) repeat-x scroll center;
}
.style3 {font-weight: bold}
.style4 {
font-size: 36px;
font-weight: bold;
color: #6A92D6;
}
.pointer {
cursor:pointer;
}
div.hr hr {
display: none;
}
.questions_blue {
list-style-type:none;
margin:0;
}
.questions_blue li {
font-family:arial, verdana, sans-serif;
font-size:0.8em;
text-decoration:none;
border : 1px solid #000;
cursor : move;
margin : 0px 0 2px 0;
padding : 0px;
background : #e6e6fa;
border : #ccc;
width : auto;
}
.questions_red {
list-style-type:none;
margin:0;
}
.questions_red li {
font-family:arial, verdana, sans-serif;
font-size:0.8em;
text-decoration:none;
border : 1px solid #000;
cursor : move;
margin : 0px 0 2px 0;
padding : 0px;
background : #FFC1C1;
border : #ccc;
width : auto;
}
#questions {
padding:0;
margin:0;
}
#questions li {
list-style-type:none;
font-family:arial, verdana, sans-serif;
font-size:0.8em;
text-decoration:none;
border : 1px solid #000;
margin : 2px 0 2px 0;
padding : 3px;
background : #f7f7f7;
border : #ccc;
width : auto;
}
#questions a, #questions a:visited {
font-family:arial, verdana, sans-serif;
font-size:0.8em;
text-decoration:none;
}
.style5 {font-size: 12px}
.style7 {font-weight: bold; font-size: 24px;}
tr.d0 {
/* background-color:#E2ECFF; */
background-color:#E2ECFF;
color:#000000;
}
tr.d1 {
background-color:#EBEBEB;
color:#000000;
}
ul{
list-style-type: none;
padding: 0;
margin-left: 0;
}

.answer1 {
font-family:arial, verdana, sans-serif;
}

.answer2 {
font-family:arial, verdana, sans-serif;
}

.answer3 {
font-family:arial, verdana, sans-serif;
}

.answer4 {
font-family:arial, verdana, sans-serif;
}

.answer5 {
font-family:arial, verdana, sans-serif;
}

.answer6 {
font-family:arial, verdana, sans-serif;
}[/code]

To remove the lines with the dotted lines, look in your code for<div class="hr"> and either remove it entirely (if it is empty, which I believe it is) or remove the class leaving just <div>

If you remove the div entirely, make sure to remove the matching tag!

The blue line is not in your css, it is hard coded in your html table. Look for the following:<tr bgcolor="#C8D8FF"> You can change the color here, or give it a css class and handle it that way.

The font colors and sizes appear to be in the following classes:

.style5 {
font-size: 12px;
}
.style1 {
font-family: Arial,Helvetica,sans-serif;
}

The title should be in your page head. Look for WebTester Online Testing. If this is not a basic html/php file, it may be coming from another source.

See where this gets you…

if you look in the script the title is coded… I dont know how to change it…Just write what i want and remove the code ?

[php]<?php echo (TITLE);?>[/php]

i would like to change the font colors as well … i want links grey instead of blue and text black as is

I appreciate your help so far…

Sorry, I completely looked past the script that you posted.

You could replace the <?php echo (TITLE);?> with whatever title you want; however, I would only do this if you want to override the title on certain pages, not all. If you want all of the pages to display the new title, you should change it in a different location. Normally with a template you set the title on a site configuration screen. It is probably being defined as a constant in one of the includes at the top of the page.

To change the link colors, add the following to your css:

td.pointer a:link { color: grey; }

I removed the divs that were creating the dotted lines from the script that you posted. Here it is:[php]<?php
include “./includes/timerhead.php”;
include “./includes/conn.php”;
include “./includes/includes.php”;
include “./includes/nocache.php”;
include “./includes/validation.php”;

session_start();
if ($_SESSION[‘loggedInTest’]==“1”) {
redirect_to(“userArea.php”);
exit;
}

?>

<? // Copyright (C) 2003 - 2007 Eppler Software. All rights reserved. // Any redistribution or reproduction of any materials herein is strictly prohibited. ?> <?php echo (TITLE);?> input.next { margin-top : 1.6em; float : right; } .t {background: url(images/dot.gif) 0 0 repeat-x; width: 20em} .b {background: url(images/dot.gif) 0 100% repeat-x} .l {background: url(images/dot.gif) 0 0 repeat-y} .r {background: url(images/dot.gif) 100% 0 repeat-y} .bl {background: url(images/bl.gif) 0 100% no-repeat} .br {background: url(images/br.gif) 100% 100% no-repeat} .tl {background: url(images/tl.gif) 0 0 no-repeat} .tr {background: url(images/tr.gif) 100% 0 no-repeat; padding:10px} p {font-family: sans-serif; text-align:left} <?php if (DISABLE_PRINT) { ?> @media print { body {display:none} <?php } ?> } <?php if (IPSESSIONS) { $strSQL="SELECT * FROM Sessions WHERE IP='" . $ip . "'"; } else { $strSQL="SELECT * FROM Sessions WHERE ID='" . $sessID . "'"; } // $strSQL="SELECT * From Sessions WHERE IP='" . $ip . "'"; $result=mysql_query($strSQL, $conn) or $myVar=true;
  if (!isset($myVar)) {
	  $num_records=mysql_num_rows($result);
	  $row=mysql_fetch_array($result);
	  if ($num_records == 0) {
  		$myVar = true;
	  } else {
	  	$myVar = false;
	  }
  }

?>

<?php include "./includes/top.php"; ?>

<?php if (!$myVar) { ?>
    <div class="t"><div class="b"><div class="l"><div class="r"><div class="bl"><div class="br"><div class="tl">
	  <div class="tr"><font face="Arial, Helvetica, sans-serif"><?php echo($row['FirstName'] . $myVar . " " . $row['LastName']) ?><br>
	    <?php } ?>
    <?php

if ($myVar != 1) {
if ($row[‘TestName’] != “”) {
?>
<?=$row['TestName']?>


<?
if ($row[‘AllowQuit’]) {
if (!$row[‘review’] and !$quit) {
?>

<? }
}?>


<?php
}
}
?>
<?php $prefSQL="SELECT * FROM Preferences"; $prefResult=mysql_query($prefSQL, $conn); $prefs=mysql_fetch_assoc($prefResult); if ($prefs['AllowBrowse']) { if (!isset($_REQUEST['subject'])) { $strSQL="SELECT * FROM Tests WHERE Enabled=1 AND Browseable=1 ORDER by TestName"; } else { $strSQL="SELECT * FROM Tests WHERE Enabled=1 AND Subject='" . $_REQUEST['subject'] . "'"; } $result=mysql_query($strSQL, $conn); $num_rows=mysql_num_rows($result); ?> <?=$prefs['WelcomeMessage']?> <?php if ($num_rows != 0) { while($row = mysql_fetch_assoc($result)) { $i++; ?> <?php $subjectSQL="SELECT Name FROM Subjects WHERE ID=" . $row['Subject']; $subjectResult=mysql_query($subjectSQL, $conn); $subject=mysql_fetch_assoc($subjectResult); ?> <?php } } ?>
Name Subject
<?=$row['TestName']?><?=$subject['Name']?>
<?php } else { ?> Browsing is not enabled.<?php } ?>
<?php include "./includes/copyright.php" ?>
[/php]

I removed the

it removed the top line of dots and left a thin white line… it also did not remove the bottom white line of dots and i dont find another <div

It is important that I know how you removed them, i have several pages that need the same thing done… and I replaced the hex colors and it didnt change them when i saved and uploaded them …

If you compare the script that you posted to the one that I did you will see the parts that I removed.

The first part was originally:[php]





[/php]

After removing the section it looks like this:
[php]


[/php]

The second part was originally:[php]


<?php include "./includes/copyright.php" ?>
[/php] It is now:[php]
<?php include "./includes/copyright.php" ?>
[/php]

The blue row is in this section:[php]

[/php]

Your site is still outputting the #C8D8FF inline color. Did you maybe change a different occurrence?

Name Subject

ALRIGHTY… last thing i believe should be how to change the 2 colors under the blue line…

I tried to find it in script and found one of the colors but not the second… and when i change it doesnt change the actual page…

any ideas ?

OK, to change the row colors you should create two classes (one for even rows, one for odd):

tr.d1 td { background: #FFFFFF; } tr.d0 td { background: #FFFFFF; }

Something to be aware of, these classes are probably used in other tables on the site and any changes to the global css will have an effect everywhere.

If you only want to change them on one some pages, you have a few options: Hard code the style (like the tr colors that you changed), add the style directly to the pages that you want it to apply to (either through an include or by adding the classes with the other page classes near the top of the script between:<style type="text/css"> and </style>

Let me know if this all works for you or if we need to look at it further.

UPDATE !

SO I have almost everything figured out… All i need now is font color change within the pages… I found all the other coloring in the .css …

If anyone can go into the page.
http://exegeticacademy.us/testing

go to sample test

log in with user/pass = tester/tester

the text on all the pages is black i need it to be grey… any help to fix this is great… the .css has been updated so it is here…

[code].t {background: url(…/images/dot.gif) 0 0 repeat-x; width: 20em}
.b {background: url(…/images/dot.gif) 0 100% repeat-x}
.l {background: url(…/images/dot.gif) 0 0 repeat-y}
.r {background: url(…/images/dot.gif) 100% 0 repeat-y}
.bl {background: url(…/images/bl.gif) 0 100% no-repeat}
.br {background: url(…/images/br.gif) 100% 100% no-repeat}
.tl {background: url(…/images/tl.gif) 0 0 no-repeat}
.tr {background: url(…/images/tr.gif) 100% 0 no-repeat; padding:10px}
p {font-family: sans-serif}
.style1 {font-family: Arial, Helvetica, sans-serif;}
{
color:silver
}
.style2 {font-family: Arial, Helvetica, sans-serif; font-size: 10px; }
{
color:silver
}
.style3 {font-weight: bold;}
{
color:silver
}
.style4 {
font-size: 36px;
font-weight: bold;
color:silver;
}
.pointer {
cursor:pointer;
}
div.hr hr {
display: none;
}
.questions_blue {
list-style-type:none;
margin:0;
}
.questions_blue li {
font-family:arial, verdana, sans-serif;
font-size:0.8em;
text-decoration:none;
border : 1px solid #000;
cursor : move;
margin : 0px 0 2px 0;
padding : 0px;
background : #EFE7CF;
border : #ccc;
width : auto;
}
.questions_red {
list-style-type:none;
margin:0;
}
.questions_red li {
font-family:arial, verdana, sans-serif;
font-size:0.8em;
text-decoration:none;
border : 1px solid #000;
cursor : move;
margin : 0px 0 2px 0;
padding : 0px;
background : #EEDCC8;
border : #ccc;
width : auto;
}
#questions {
padding:0;
margin:0;
}
#questions li {
list-style-type:none;
font-family:arial, verdana, sans-serif;
font-size:0.8em;
text-decoration:none;
border : 1px solid #000;
margin : 2px 0 2px 0;
padding : 3px;
background : #f7f7f7;
border : #ccc;
width : auto;
}
#questions a, #questions a:visited {
font-family:arial, verdana, sans-serif;
font-size:0.8em;
text-decoration:none;
}
.style5 {font-size: 14px}
.style7 {font-weight: bold; font-size: 24px;}
tr.d0 {
/* background-color:#E2ECFF; */
background-color:#CEB86C;
color:silver;
}
tr.d1 {
background-color:#DBDB97;
color:silver;
}
ul{
list-style-type: none;
padding: 0;
margin-left: 0;
}

.answer1 {
font-family:arial, verdana, sans-serif;
}

.answer2 {
font-family:arial, verdana, sans-serif;
}

.answer3 {
font-family:arial, verdana, sans-serif;
}

.answer4 {
font-family:arial, verdana, sans-serif;
}

.answer5 {
font-family:arial, verdana, sans-serif;
}

.answer6 {
font-family:arial, verdana, sans-serif;
}

td.pointer
a:link {color:grey;}
a:visited {color:grey;}
a:hover {color:grey;}
a:active {color:grey;
} [/code]

I hate to make changes to entire generic elements, but it looks like there are no real classes being assigned to the elements.

So,

To change all of the text to grey, you could usetd { color: grey; }

If you wanted to style the different section elements:td { color: white; } td b { color: red; } td p { color: blue; }

I know that these are not the colors you want, but I thought I would make it obvious as to which elements they apply to. Once you see them on the page, you can decide what colors to make each of them.

so i put this in the CSS or the PHP ?

You can either add it to the section in the of each page that you want to use it on, or you can add it to the global css file.

If you put it in the css file, it will effect every table division on every page that doesn’t have a more specific class assigned. I would start by putting it in the css file and then look for problems on each of your pages. If you don’t find any, leave it there. If you do find places that you don’t want it applied, you can either give those elements their own class and assign a different style or move these classes to each page.

everything resolved.

it has been a lot of work… but everything has been figured out thank you for the help

Great to hear!

I’ll mark this thread solved.

Best,

jay

Sponsor our Newsletter | Privacy Policy | Terms of Service