function insertDescription($hintname) { global $desc, $CFG, $LNG, $HUB_FLM; ?> <div class="hgrformrow" id="descdiv"> <label class="formlabelbig" for="desc"> <span style="vertical-align:top"><?php echo $LNG->FORM_LABEL_DESC; ?> <a id="editortogglebutton" href="javascript:void(0)" style="vertical-align:top" onclick="switchCKEditorMode(this, 'textareadiv', 'desc')" title="<?php echo $LNG->FORM_DESC_HTML_TEXT_HINT; ?> "><?php echo $LNG->FORM_DESC_HTML_TEXT_LINK; ?> </a> </span> <span class="active" onMouseOver="showFormHint('<?php echo $hintname; ?> ', event, 'hgrhint'); return false;" onMouseOut="hideHints(); return false;" onClick="hideHints(); return false;" onkeypress="enterKeyPressed(event)"><img src="<?php echo $HUB_FLM->getImagePath('info.png'); ?> " border="0" style="margin-top: 2px; margin-left: 5px; margin-right: 2px;" /></span> <span style="font-size:14pt;margin-top:3px;vertical-align:middle;color:white;">*</span> </label> <?php if (isProbablyHTML($desc)) { ?> <div id="textareadiv" style="clear:both;float:left;"> <textarea rows="4" class="ckeditor forminput hgrwide" id="desc" name="desc"><?php echo $desc; ?> </textarea> </div> <?php } else { ?> <div id="textareadiv" style="clear:none;float:left;"> <textarea rows="4" class="forminput hgrwide" id="desc" name="desc"><?php echo $desc; ?> </textarea> </div> <?php } ?> </div> <?php }
echo "</tr>"; foreach ($nodes as $node) { echo "<tr id='node-" . $node->nodeid . "'>"; echo "<td id='second-" . $node->nodeid . "'>"; echo "<div class='subform' id='editnewsform" . $node->nodeid . "' style='width: 590px; display:none; clear:both;'>"; echo '<form name="managenews"' . $node->nodeid . ' action="newsmanager.php" method="post" enctype="multipart/form-data">'; echo "<input name='nodeid' type='hidden' value='" . $node->nodeid . "' />"; echo "<div class='subformrow'>"; echo "<label class='formlabel' style='width: 75px' for='name'>" . $LNG->FORM_LABEL_NAME . "</label><input type='text' class='forminput' style='width:300px' id='name' name='name' value=\"" . $node->name . "\"/></div>"; echo "<div class='subformrow'>"; echo '<label class="formlabelbig" for="desc">'; echo '<span style="vertical-align:top">' . $LNG->FORM_LABEL_DESC; echo '<a id="editortogglebutton" href="javascript:void(0)" style="vertical-align:top" onclick="switchCKEditorMode(this, \'textareadiv' . $node->nodeid . '\', \'desc' . $node->nodeid . '\')" title="' . $LNG->FORM_DESC_HTML_TEXT_HINT . '">' . $LNG->FORM_DESC_HTML_TEXT_LINK . '</a>'; echo '</span>'; echo '</label>'; if (isProbablyHTML($node->description)) { echo '<div id="textareadiv' . $node->nodeid . '" style="clear:both;float:left;margin-top:5px;">'; echo ' <textarea rows="4" class="ckeditor forminput hgrinput hgrwide" id="desc' . $node->nodeid . '" name="desc">' . $node->description . '</textarea>'; echo '</div>'; } else { echo '<div id="textareadiv' . $node->nodeid . '" style="clear:none;float:left;margin-top:5px;">'; echo '<textarea rows="4" class="forminput hgrinput hgrwide" id="desc' . $node->nodeid . '" name="desc">' . $node->description . '</textarea>'; echo '</div>'; } echo "</div>"; echo "<div class='subformrow' id='savelink" . $node->nodeid . "' style='display:none; clear:both;'>"; echo '<input class="subformbutton" style="margin-left:30px;margin-top:5px;" type="submit" value="' . $LNG->FORM_BUTTON_SAVE . '" id="savenews" name="savenews" />'; echo '<input class="subformbutton" style="margin-left:7px;" type="button" value="' . $LNG->FORM_BUTTON_CANCEL . '" onclick="javascript:cancelEditNews(\'' . $node->nodeid . '\');" />'; echo '</div>'; echo "</form>"; echo "</div>";