Check out the LimeSurvey source code on GitHub!

Correct browseoutput?

6 years 1 month ago - 6 years 1 month ago #55775 by waitz
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'>"
Is it correct..? With \n and dots and ;?

Version 1.91+ Build 11232 | PHP 5.3.9 | MySQL 5.1.56 |
Last Edit: 6 years 1 month ago by waitz.

Please Log in to join the conversation.

6 years 4 weeks ago #55855 by Mazi
- 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)'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form