(: Instructions for testing the integration of EditArea:\n Modify the code in any of the editors and press button "Save".\n The content of the bounded node will be updated. :) let $a := 'string' return $a <?php $authors = array(); $news = array(); /* this is a long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long comment for showing word-wrap feature */ $query = "SELECT author, COUNT(id) as 'nb_news' FROM news_messages GROUP BY author"; $result = mysql_query($query, $DBnews); while( $line = mysql_fetch_assoc($result) ){ $authors[$line["author"]] = $line["author"]; $news[$line["author"]] = $line['nb_news']; } $list= sprintf("('%s')", implode("', '", $authors)); $query="SELECT p.people_id, p.name, p.fname, p.status, team_name, t.leader_id=p.people_id as 'team_leader', w.name as 'wp_name', w.type FROM people p, teams t, wppartis wp, wps w WHERE p.people_id IN $list AND p.org_id=t.team_id AND wp.team_id=t.team_id AND wp.wp_id=w.wp_id GROUP BY p.people_id"; if(isset($_GET["order"]) && $_GET["order"]!="nb_news") $query.=" ORDER BY ".$_GET["order"]; $result=mysql_query($query, $DBkal); while($line = mysql_fetch_assoc($result)){ printf("<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>", $line["name"], $line["fname"], $news[$line["people_id"]], $line["status"], $line["team_name"], ($line["team_leader"]=="1")?"yes":"no", $line["type"], $line["wp_name"]); } printf("</table>"); ?>
Street 1 Street 2 Street 3

'EditArea 1' saved content:

EditArea 2 (PHP content): { start_highlight: true, allow_toggle: false, toolbar: 'new_document, save, load, search, go_to_line, |, undo, redo, |, select_font, |, syntax_selection, |, change_smooth_selection, highlight, reset_highlight, |, help', word_wrap: true, language: 'en', syntax: 'php', min_height: 350, min_width: 1200, syntax_selection_allow: 'php,css,html', autocompletion: true }