function testAre_you_sure_message() { global $bx, $t, $sess; $proid = 'this is the proid'; $bx = $this->_create_default_box(); capture_reset_and_start(); are_you_sure_message($proid); $this->set_text(capture_stop_and_get()); $this->_testFor_string_length(1500 + strlen($sess->self_url())); $this->_checkFor_a_box('Warning! The next step has been reached'); $this->_checkFor_a_form('PHP_SELF', array('proid' => $proid)); $this->_checkFor_columns(2); $str = "Are you sure you want to put the project into the next step?" . "<br>Press <b>Yes</b> to put into the next step and <b>No" . "</b> to stay in the current one."; $str = $t->translate($str); $this->_checkFor_column_values(array($str)); $this->_testFor_html_form_submit($t->translate('Yes'), 'Yes'); $this->_testFor_html_form_submit($t->translate('No'), 'No'); }
// NOI18N: 'Decision on step 5 (follow-up)' htmlp_link('step5_sponsor.php', array('proid' => $proid), $t->translate('Decision on step 5') . ' (' . $g_step_text[5] . ')'); break; case '6': echo '<p>'; global $g_step_text; // NOI18N: 'Decision on step 6 (rating)' htmlp_link('step6_edit.php', array('proid' => $proid), $t->translate('Decision on step 6') . ' (' . $g_step_text[6] . ')'); break; default: lib_die('Error in decisions.php: given project status ' . 'is not possible'); } } if ($quorum || is_set_and_not_empty($Yes)) { if ($No || is_not_set_or_empty($Yes)) { are_you_sure_message($proid); } else { switch ($project_status) { case '1': $what = 'consultant'; $table = 'consultants'; break; case '2': $what = 'content_id'; $table = 'tech_content'; break; case '3': $what = 'devid'; $table = 'developing'; break; case '4':