<td> <strong>' . _('Document Title') . ' :</strong>' . utils_requiredField() . sprintf(_('(at least %1$s characters)'), 5) . '<br /> <input type="text" name="title" size="40" maxlength="255" /> </td> </tr> <tr> <td> <strong>' . _('Description') . ' :</strong>' . utils_requiredField() . sprintf(_('(at least %1$s characters)'), 10) . '<br /> <input type="text" name="description" size="50" maxlength="255" /> </td> </tr>'; echo ' <tr> <td> <strong>' . _('Upload File') . ' :</strong>' . utils_requiredField() . '<br /> <input type="file" name="uploaded_data" size="30" /><br /><br /> <input type="hidden" name="type" value="httpupload"> </td> </tr>'; /* switch ($option_selected) { case 'httpupload' : { echo ' <tr> <td> <strong>'. _('Upload File') .' :</strong>'. utils_requiredField() .'<br /> <input type="file" name="uploaded_data" size="30" /><br /><br /> <input type="hidden" name="type" value="httpupload"> </td> </tr>';
?> "> <table> <tr> <td><?php echo _('Group Unix Name:'); echo utils_requiredField(); ?> </td> <td><input type="text" name="groupname" /></td> </tr> <tr> <td>Database Name:<?php echo utils_requiredField(); ?> </td> <td><input type="text" name="dbname" /></td> </tr> </table> <input type="submit" name="submit" value="<?php echo _('Add'); ?> "/> </form> <?php site_admin_footer(array());
<?php echo $HTML->boxBottom(); ?> </td> </tr></table> <p> <input type="submit" name="post_changes" value="<?php echo _('Submit'); ?> " /> </p> <?php echo utils_requiredField() . ' ' . _('Indicates required fields.'); } ?> </form> <script> var all_trackers = new Array(); <?php foreach ($at_arr as $tracker) { echo 'all_trackers.push( { id: "' . $tracker->getID() . '", name: "' . $tracker->getName() . '", desc: "' . $tracker->getDescription() . '" } );' . "\n"; } ?> jQuery(function($){ var user_story_ref_field ='';
</p> <p> <input type="checkbox" name="mail_site" value="1" checked="checked" /> <?php echo _('Receive Email about Site Updates <i>(Very low traffic and includes security notices. Highly Recommended.)</i>'); ?> </p> <p> <input type="checkbox" name="mail_va" value="1" /> <?php echo _('Receive additional community mailings. <i>(Low traffic.)</i>'); ?> </p> <p> <?php printf(_('Fields marked with %s are mandatory.'), utils_requiredField()); ?> </p> <p> <input type="submit" name="submit" value="<?php echo _('Register'); ?> " /> </p> </form> <p><a href="pending-resend.php"><?php echo _('[Resend confirmation email to a pending account]'); ?> </a></p> <?php
/* Fill in the info to create a job */ echo ' <p>' . _('Start by filling in the fields below. When you click continue, you will be shown a list of skills and experience levels that this job requires.') . ' </p> <p> <form action="' . util_make_url('/people/editjob.php') . '" method="post"> <input type="hidden" name="group_id" value="' . $group_id . '" /> <input type="hidden" name="form_key" value="' . form_generate_key() . '"> <strong>' . _('Category') . '</strong>' . utils_requiredField() . '<br /></p> ' . people_job_category_box('category_id') . ' <p> <strong>' . _('Short Description') . ':</strong>' . utils_requiredField() . '<br /> <input type="text" name="title" value="" size="40" maxlength="60" /></p> <p> <strong>' . _('Long Description') . ':</strong>' . utils_requiredField() . '<br /> <textarea name="description" rows="10" cols="60" wrap="soft"></textarea></p> <p> <input type="submit" name="add_job" value="' . _('Continue >>') . '" /> </form></p>'; people_footer(array()); } else { /* Not logged in or insufficient privileges */ if (!$group_id) { exit_no_group(); } else { exit_permission_denied(); } }
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>';
function people_edit_job_inventory($job_id, $group_id) { global $HTML; $sql = "SELECT * FROM people_job_inventory WHERE job_id='{$job_id}'"; $result = db_query($sql); $title_arr = array(); $title_arr[] = _('Skill') . utils_requiredField(); $title_arr[] = _('Level') . utils_requiredField(); $title_arr[] = _('Experience') . utils_requiredField(); $title_arr[] = _('Action'); echo $HTML->listTableTop($title_arr); $rows = db_numrows($result); if (!$result || $rows < 1) { echo ' <tr><td colspan="4"><h2>' . _('No Skill Inventory Set Up') . '</h2></td></tr>'; echo db_error(); } else { for ($i = 0; $i < $rows; $i++) { echo ' <tr ' . $HTML->boxGetAltRowStyle($i) . '> <form action="' . getStringFromServer('PHP_SELF') . '" method="post"> <input type="hidden" name="job_inventory_id" value="' . db_result($result, $i, 'job_inventory_id') . '" /> <input type="hidden" name="job_id" value="' . db_result($result, $i, 'job_id') . '" /> <input type="hidden" name="group_id" value="' . $group_id . '" /> <td width="25%">' . people_get_skill_name(db_result($result, $i, 'skill_id')) . '</td> <td width="25%">' . people_skill_level_box('skill_level_id', db_result($result, $i, 'skill_level_id')) . '</td> <td width="25%">' . people_skill_year_box('skill_year_id', db_result($result, $i, 'skill_year_id')) . '</td> <td width="25%" nowrap="nowrap"><input type="submit" name="update_job_inventory" value="' . _('Update') . '" /> <input type="submit" name="delete_from_job_inventory" value="' . _('Delete') . '" /></td> </form></tr>'; } } //add a new skill $i++; //for row coloring echo ' <tr><td colspan="4"><h3>' . _('Add a new skill') . '</h3></td></tr> <tr ' . $HTML->boxGetAltRowStyle($i) . '> <form action="' . getStringFromServer('PHP_SELF') . '" method="post"> <input type="hidden" name="job_id" value="' . $job_id . '" /> <input type="hidden" name="group_id" value="' . $group_id . '" /> <td width="25%">' . people_skill_box('skill_id') . '</td> <td width="25%">' . people_skill_level_box('skill_level_id') . '</td> <td width="25%">' . people_skill_year_box('skill_year_id') . '</td> <td width="25%" nowrap="nowrap"><input type="submit" name="add_to_job_inventory" value="' . _('Add Skill') . '" /></td> </form></tr>'; echo $HTML->listTableBottom(); }
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 } }
print ' <p> <a href="#active">' . _('Active Deliveries') . '</a> </p> <p>' . _('Be <span class="important">VERY</span> careful with this form, because submitting it WILL lead to sending email to lots of users.') . '</p> '; print ' <form action="' . getStringFromServer('PHP_SELF') . '" method="post">' . '<input type="hidden" name="form_key" value="' . form_generate_key() . '">' . '<strong>Target Audience:</strong>' . utils_requiredField() . '<br />' . html_build_select_box_from_arrays(array(0, 'SITE', 'COMMNTY', 'DVLPR', 'ADMIN', 'ALL', 'SFDVLPR'), array(_('(select)'), _('Subscribers to "Site Updates"'), _('Subscribers to "Additional Community Mailings"'), _('All Project Developers'), _('All Project Admins'), _('All Users'), $GLOBALS['sys_name'] . _('Developers (test)')), 'mail_type', false, false) . '<br />'; print ' <p> <strong>' . _('Subject') . ':</strong>' . utils_requiredField() . ' <br /><input type="text" name="mail_subject" size="50" value="[' . $GLOBALS['sys_name'] . '] " /></p> <p><strong>' . _('Text of Message') . ':</strong>' . utils_requiredField() . _('(will be appended with unsubscription information, if applicable)') . '</p> <pre><textarea name="mail_message" cols="70" rows="20"> </textarea> </pre> <p><input type="submit" name="submit" value="' . _('Schedule for Mailing') . '" /></p> </form> '; $res = db_query("\n\tSELECT *\n\tFROM massmail_queue\n\tWHERE finished_date=0\n"); $title = array(); $title[] = ' '; $title[] = _('ID'); $title[] = _('Type'); $title[] = _('Subject'); $title[] = _('Date');
echo _('Your Email Address') . utils_requiredField(); ?> :</strong><br /> <input type="text" name="email" size="40" maxlength="255" value="<?php echo $email; ?> " /> <p /> <strong><?php echo _('Subject') . utils_requiredField(); ?> :</strong><br /> <input type="text" name="subject" size="60" maxlength="255" value="" /> <p /> <strong><?php echo _('Message') . utils_requiredField(); ?> :</strong><br /> <textarea name="body" rows="15" cols="60"></textarea> <p /> <div align="center"> <input type="submit" name="send_mail" value="<?php echo _('Send Message'); ?> " /> </div> </form> <?php $HTML->footer(array()); // Local Variables: // mode: php
/** * Show Add/Modify Question Forums * @param Survey Question Question Object * Return string */ function showAddSurveyForm(&$s) { global $group_id; global $survey_id; /* Default is add */ $title = _('Add A Survey'); $survey_button = _('Add This Survey'); $active = ' checked="checked" '; $inactive = ''; /* If we have a survey object, it is a Modify */ if ($s && is_object($s) && !$s->isError() && $s->getID()) { $title = _('Edit A Survey'); $warning = '<span class="warning">' . _('WARNING! It is a bad idea to edit a survey after responses have been posted') . '</span>'; $survey_id = $s->getID(); $survey_title = $s->getTitle(); $survey_questions = $s->getQuestionString(); $survey_button = _('Submit Changes'); if (!$s->isActive()) { $inactive = 'checked ="checked" '; $active = ''; } } else { $warning = ''; $survey_questions = ''; $survey_title = ''; } $ret = '<h2>' . $title . '</h2>'; $ret .= $warning; $ret .= '<form action="' . getStringFromServer('PHP_SELF') . '" method="post">'; $ret .= '<input type="hidden" name="post" value="Y" />'; $ret .= '<input type="hidden" name="group_id" value="' . $group_id . '" />'; $ret .= '<input type="hidden" name="survey_id" value="' . $survey_id . '" />'; $ret .= '<input type="hidden" name="survey_questions" value="' . $survey_questions . '" />'; $ret .= '<input type="hidden" name="form_key" value="' . form_generate_key() . '">'; $ret .= '<strong>' . _('Name Of Survey:') . '</strong>' . utils_requiredField(); $ret .= '<input type="text" name="survey_title" value="' . $survey_title . '" length="60" maxlength="150" /><p>'; $ret .= '<p><strong>' . _('Is Active?') . '</strong>'; $ret .= '<br /><input type="radio" name="is_active" value="1"' . $active . '/>' . _('Yes'); $ret .= '<br /><input type="radio" name="is_active" value="0"' . $inactive . '/>' . _('No'); $arr_to_add =& $s->getAddableQuestionInstances(); $arr_to_del =& $s->getQuestionInstances(); if (count($arr_to_add) > 0) { $ret .= '<p><strong>' . _('Addable Questions') . '</strong>'; $title_arr[] = " "; $title_arr[] = _('Questions'); $title_arr[] = " "; $ret .= $GLOBALS['HTML']->listTableTop($title_arr); } for ($i = 0; $i < count($arr_to_add); $i++) { if ($arr_to_add[$i]->isError()) { echo $arr_to_add[$i]->getErrorMessage(); continue; } if ($i % 3 == 0) { $ret .= "<tr " . $GLOBALS['HTML']->boxGetAltRowStyle($i) . ">\n"; } $ret .= '<td><input type="checkbox" name="to_add[]" value="' . $arr_to_add[$i]->getID() . '">' . $arr_to_add[$i]->getQuestion() . ' (' . $arr_to_add[$i]->getQuestionStringType() . ')</td>'; if ($i % 3 == 2) { $ret .= "</tr>"; } } if (count($arr_to_add) > 0) { /* Fill the remain cells */ if ($i % 3 == 1) { $ret .= '<td> </td><td> </td></tr>'; } else { if ($i % 3 == 2) { $ret .= '<td> </td></tr>'; } } $ret .= $GLOBALS['HTML']->listTableBottom(); } /* Deletable questions */ if (count($arr_to_del) > 0) { $ret .= '<p><strong>' . _('Questions in this Survey') . '</strong>'; $title_arr = array('Question ID', 'Question', 'Type', 'Order', 'Delete from this Survey'); $ret .= $GLOBALS['HTML']->listTableTop($title_arr); } for ($i = 0; $i < count($arr_to_del); $i++) { if ($arr_to_del[$i]->isError()) { echo $arr_to_del[$i]->getErrorMessage(); continue; } $ret .= "<tr " . $GLOBALS['HTML']->boxGetAltRowStyle($i) . ">\n"; $ret .= '<td>' . $arr_to_del[$i]->getID() . '</td>'; $ret .= '<td>' . $arr_to_del[$i]->getQuestion() . '</td>'; $ret .= '<td>' . $arr_to_del[$i]->getQuestionStringType() . '</td>'; $ret .= '[' . util_make_link('/survey/admin/survey.php?group_id=' . $group_id . '&survey_id=' . $survey_id . '&is_up=1&updown=Y' . '&question_id=' . $arr_to_del[$i]->getID(), _('Up')) . ']</center></td>'; $ret .= '[' . util_make_link('/survey/admin/survey.php?group_id=' . $group_id . '&survey_id=' . $survey_id . '&is_up=0&updown=Y' . '&question_id=' . $arr_to_del[$i]->getID(), _('Down')) . ']</center></td>'; $ret .= '<td><center><input type="checkbox" name="to_del[]" value="' . $arr_to_del[$i]->getID() . '"></center></td>'; $ret .= '</tr>'; } if (count($arr_to_del)) { $ret .= $GLOBALS['HTML']->listTableBottom(); } /* Privous style question input text box. deprecated. $ret.= _('List question numbers, in desired order, separated by commas. <strong>Refer to your list of questions</strong> so you can view the question id\'s. Do <strong>not</strong> include spaces or end your list with a comma. <br />Ex: 1,2,3,4,5,6,7'); $ret.='<br /><input type="text" name="survey_questions" value="" length="90" maxlength="1500" /></p>'; */ $ret .= '<p><input type="submit" name="submit" value="' . $survey_button . '"></p>'; $ret .= '</form>'; return $ret; }