Skip to content

Commit

Permalink
Fix testimonials page.
Browse files Browse the repository at this point in the history
For some reason, it seems sprintf function was not working in the page.
I took the chance to do a little clean-up (no more tables)
  • Loading branch information
giallu committed Dec 11, 2008
1 parent 41358eb commit 7a67035
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
13 changes: 12 additions & 1 deletion css/mantis.css
Expand Up @@ -12,6 +12,17 @@ body {
.clearBoth {clear:both;}
.hide {display:none;}

.testimonial {
margin: 1em 0 0;
}

.author {
display: block;
font-style: italic;
text-align: right;
margin: 0 0 2em;
}

div.ybox {
float: left;
width: 181px;
Expand Down Expand Up @@ -86,7 +97,7 @@ div#vertad {
}

div#header {
background:#fff url(/images/head_gradient.gif) repeat-x top left;
background:#fff url(../images/head_gradient.gif) repeat-x top left;
margin:0;
padding:0;
}
Expand Down
14 changes: 4 additions & 10 deletions testimonials.php
Expand Up @@ -83,20 +83,14 @@ function string_insert_hrefs( $p_string ) {

?>
<div align="left">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<?php
while ( ( $t_row = mysql_fetch_array( $t_result ) ) !== false ) {
sprintf("<p>%s - <em>%s - %s</p><br />",
string_display( $t_row['comments'] ),
string_display( $t_row['contact_name'] ),
string_display( $t_row['company_name'] ));
echo "<p class=\"testimonial\">" .
string_display( $t_row['comments'] ) . "<span class=\"author\">" .
string_display( $t_row['contact_name'] ) . " - " .
string_display( $t_row['company_name'] ) . "</span></p>";
}
?>
</td>
</tr>
</table>
</div>
<?php

Expand Down

0 comments on commit 7a67035

Please sign in to comment.