Welcome, Guest
Username: Password: Remember me

TOPIC: Correct browseoutput?

Correct browseoutput? 3 years 9 months ago #55775

  • waitz
  • waitz's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 171
  • Thank you received: 1
  • Karma: 3
I wanted to add a logo to the backend response details for printout, and I just need to check if I do it correctly. This is the start of a table in browse.php:
$browseoutput .= "<table class='detailbrowsetable'>\n";	
    $idresult = db_execute_assoc($idquery) or safe_die ("Couldn't get entry<br />$idquery<br />".$connect->ErrorMsg());
This is a row I added just after this:
$browseoutput .= "<tr><td colspan='2'>"
."<img src='../images/logo.png' align='right' class='logo'>"
."</td></tr>\n";
Is it correct..? With \n and dots and ;?
Version 1.91+ Build 11232 | PHP 5.3.9 | MySQL 5.1.56 |
Last Edit: 3 years 9 months ago by waitz.
The administrator has disabled public write access.

Re: Correct browseoutput? 3 years 9 months ago #55855

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252
- The "\n" is only used to format HTML source code at the backend so it won't be displayed all in one line when viewing the source code.

- ";" has to be added at the end of the line to "close" the text string.

- I'm not sure what you mean by "dots".

If you have already solved this problem please report back so others will get to know about the solution, too.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.196 seconds
Donation Image