<script type="text/javascript" src="<?php echo util_make_url('/tabber/tabber.js'); ?> "></script> <div id="tabber" class="tabber"> <div class="tabbertab" title="<?php echo _('Followups'); ?> "> <table border="0" width="80%"> <tr><td colspan="2"> <br /><strong><?php echo _('OR Attach A Comment'); ?> : <?php echo notepad_button('document.forms[1].details'); ?> <a href="javascript:help_window('<?php echo util_make_url('/help/tracker.php?helpname=comment'); ?> ')"><strong>(?)</strong></a></strong><br /> <textarea name="details" rows="7" cols="60"></textarea></p> <p> <h3><?php echo _('Followup'); ?> :</h3> <?php echo $ah->showMessages(); ?> </td></tr>
news_header(array('title' => _('News'))); $jsfunc = notepad_func(); $group = group_get_object($group_id); echo ' <p> ' . sprintf(_('You can post news about your project if you are an admin on your project. You may also post "help wanted" notes if your project needs help.</p><p>All posts <b>for your project</b> will appear instantly on your project summary page. Posts that are of special interest to the community will have to be approved by a member of the %1$s news team before they will appear on the %1$s home page.</p><p>You may include URLs, but not HTML in your submissions.</p><p>URLs that start with http:// are made clickable.'), $GLOBALS['sys_name']) . '</p>' . $jsfunc . ' <form action="' . getStringFromServer('PHP_SELF') . '" method="post"> <input type="hidden" name="group_id" value="' . $group_id . '" /> <input type="hidden" name="post_changes" value="y" /> <input type="hidden" name="form_key" value="' . form_generate_key() . '" /> <p><strong>' . _('For project') . ' ' . $group->getPublicName() . '</strong></p> <p> <strong>' . _('Subject') . ':</strong>' . utils_requiredField() . '<br /> <input type="text" name="summary" value="" size="30" maxlength="60" /></p> <p> <strong>' . _('Details') . ':</strong>' . notepad_button('document.forms[1].details') . utils_requiredField() . '<br />'; $GLOBALS['editor_was_set_up'] = false; $params = array(); $params['name'] = 'details'; $params['width'] = "600"; $params['height'] = "300"; $params['body'] = ""; $params['group'] = $group_id; plugin_hook("text_editor", $params); if (!$GLOBALS['editor_was_set_up']) { //if we don't have any plugin for text editor, display a simple textarea edit box echo '<textarea name="details" rows="5" cols="50"></textarea><br />'; } unset($GLOBALS['editor_was_set_up']); echo '<input type="submit" name="submit" value="' . _('Submit') . '" /> </p></form>';
<form action="' . getStringFromServer('PHP_SELF') . '" method="post"> <input type="hidden" name="group_id" value="' . db_result($result, 0, 'group_id') . '" /> <input type="hidden" name="id" value="' . db_result($result, 0, 'id') . '" />'; $user =& user_get_object(db_result($result, 0, 'submitted_by')); echo ' <strong>' . _('Submitted by') . ':</strong> ' . $user->getRealName() . '<br /> <input type="hidden" name="approve" value="y" /> <input type="hidden" name="post_changes" value="y" /> <strong>' . _('Status') . '</strong><br /> <input type="radio" name="status" value="0" checked="checked" /> ' . _('Displayed') . '<br /> <input type="radio" name="status" value="4" /> ' . _('Delete') . '<br /> <strong>' . _('Subject') . '</strong><br /> <input type="text" name="summary" value="' . db_result($result, 0, 'summary') . '" size="30" maxlength="60"><br /> <strong>' . _('Details') . '</strong>' . notepad_button('document.forms[1].details') . '<br />'; $GLOBALS['editor_was_set_up'] = false; $params = array(); $params['name'] = 'details'; $params['width'] = "600"; $params['height'] = "300"; $params['group'] = $group_id; $params['body'] = db_result($result, 0, 'details'); plugin_hook("text_editor", $params); if (!$GLOBALS['editor_was_set_up']) { //if we don't have any plugin for text editor, display a simple textarea edit box echo '<textarea name="details" rows="5" cols="50" wrap="soft">' . db_result($result, 0, 'details') . '</textarea><br />'; } unset($GLOBALS['editor_was_set_up']); echo '<p> <strong>' . sprintf(_('If this item is on the %1$s home page and you edit it, it will be removed from the home page.'), $GLOBALS['sys_name']) . '</strong><br /></p>
function showPostForm($thread_id = 0, $is_followup_to = 0, $subject = "") { global $group_id; $body = ''; if ($this->Forum->userCanPost()) { if ($subject) { //if this is a followup, put a RE: before it if needed if (!eregi('RE:', $subject, $test)) { $subject = 'RE: ' . $subject; } } echo notepad_func(); ?> <div align="center"> <form "enctype="multipart/form-data" action="<?php echo util_make_url('/forum/forum.php?forum_id=' . $this->Forum->getID() . '&group_id=' . $group_id); ?> " method="post"><?php $objid = $this->Forum->getID(); ?> <input type="hidden" name="post_message" value="y" /> <input type="hidden" name="thread_id" value="<?php echo $thread_id; ?> " /> <input type="hidden" name="msg_id" value="<?php echo $is_followup_to; ?> " /> <input type="hidden" name="is_followup_to" value="<?php echo $is_followup_to; ?> " /> <input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?> "> <fieldset class="fieldset"> <table> <tr> <td valign="top"></td> <td valign="top"><br> <strong><?php echo _('Subject:'); ?> </strong><?php echo utils_requiredField(); ?> <br /> <input type="text" name="subject" value="<?php echo $subject; ?> " size="45" maxlength="45" /> <br> <br> <strong><?php echo _('Message:'); ?> </strong><?php echo notepad_button('document.forms[1].body'); echo utils_requiredField(); ?> <br /> <?php $GLOBALS['editor_was_set_up'] = false; $params = array(); $params['body'] = $body; $params['width'] = "800"; $params['height'] = "500"; $params['group'] = $group_id; plugin_hook("text_editor", $params); if (!$GLOBALS['editor_was_set_up']) { //if we don't have any plugin for text editor, display a simple textarea edit box echo '<textarea name="body" rows="10" cols="50" wrap="soft">' . $body . '</textarea>'; } unset($GLOBALS['editor_was_set_up']); ?> <?php //$text_support->displayTextField('body'); ?> <br> <br> <!-- <span class="selected"><?php echo _('HTML tags will display in your post as text'); ?> </span> --> <p><?php $this->LinkAttachForm(); ?> <p><?php if (!session_loggedin()) { echo '<span class="highlight">'; printf(_('You are posting anonymously because you are not <a href="%1$s">logged in</a>'), util_make_url('/account/login.php?return_to=' . urlencode(getStringFromServer('REQUEST_URI')))) . '</span>'; } ?> <br /> <input type="submit" name="submit" value="<?php echo _('Post Comment'); echo !session_loggedin() ? ' ' . _('Anonymously') : ''; ?> " /><?php echo session_loggedin() ? ' <input type="checkbox" value="1" name="monitor" /> ' . _('Receive followups via email') . '.' : ''; ?> </p> </td> </tr> </table> </fieldset> </form> </div> <?php } elseif ($this->Forum->allowAnonymous()) { echo '<span class="error">'; printf(_('You could post if you were <a href="%1$s">logged in</a>.'), util_make_url('/account/login.php?return_to=' . urlencode(getStringFromServer('REQUEST_URI')))); } elseif (!session_loggedin()) { echo ' <span class="error">' . sprintf(_('Please <a href="%1$s">log in</a>'), util_make_url('/account/login.php?return_to=' . urlencode(getStringFromServer('REQUEST_URI')))) . '</span><br/></p>'; } else { //do nothing } }