break; case 'save_theme': case 'apply_theme': save_theme(); break; case 'cancel_theme': cancel_theme(); break; case 'remove_theme': removeTheme(); break; case 'preview_theme': preview_theme(); break; case 'license': license(); break; case 'plugin': plugin(); break; ///////ev category ///////ev category case 'add_event_category': edit_event_category(); break; case 'edit_event_category': edit_event_category(); break; case 'save_event_category': case 'apply_event_category': save_event_category();
function testDeveloping_modify_form() { global $bx, $t, $sess, $db; global $cost, $license, $cooperation, $valid_day, $valid_month, $valid_year, $start_day, $start_month, $start_year, $duration, $creation, $queries; $cost = 'ths is the cost'; $license = 'thsi is the license'; $cooperation = 'this is the coopeartion'; $valid_day = 'this is the valid_day'; $valid_month = 'thsi si the valid month'; $valid_year = 'this is the valid year'; $start_day = 'this is the start day'; $start_month = 'this is the start month'; $start_year = 'this is the start year'; $duration = 'this is the duration'; $creation = 'tjhis si the creation'; $args = $this->_generate_array(array('proid', 'content_id'), 10); $fname = 'developing_modify_form'; $db_config = new mock_db_configure(2); $qs = array(0 => $queries[$fname]); $db_config->add_query($qs[0], 0); $db_config->add_query($qs[0], 1); $db_config->add_num_row(1, 0); $db_config->add_num_row(1, 1); $db_config->add_record(false, 0); $db_config->add_record(false, 1); $bx = $this->_create_default_box(); capture_reset_and_start(); call_user_func_array($fname, $args); $this->set_text(capture_stop_and_get()); $this->_testFor_string_length(4217 + strlen($sess->self_url())); $this->assertRegexp('/Undefined variable: start/', $GLOBALS['err_msg']); $this->_checkFor_a_form('PHP_SELF', array('proid' => $args['proid']), 'POST'); $this->_checkFor_a_box('Developement proposal modification'); $this->_checkFor_submit_preview_buttons(); $start = ''; $valid = ''; $tv = array(html_input_text('cost', 12, 12, $cost) => array('Cost', '<b>%s</b> (12): '), license($license) => array('License', '<b>%s</b> (12): '), html_input_text('cooperation', 12, 12, $cooperation) => array('Developer cooperation wanted?', '<b>%s</b> (SELECT BOX) '), html_input_text('valid', 14, 14, $valid) => array('Valid until (select box)', '<b>%s</b>: '), html_input_text('start', 14, 14, $start) => array('Start (Select box)', '<b>%s</b>: '), html_input_text('duration', 3, 3, $duration) => array('Duration (Select box)', '<b>%s</b>: ')); while (list($val, $key) = each($tv)) { $this->_checkFor_column_titles(array($key[0]), 'right', '30%', '', $key[1]); $this->_checkFor_column_values(array($val)); } $this->_check_db($db_config); }
// We select the first one to avoid having a blank line echo "</td></tr>\n"; echo "<tr><td align=right>" . $t->translate("New License URL") . " (255):</td><td><input type=\"TEXT\" name=\"new_url\" size=40 " . "maxlength=255>\n"; echo "</td></tr>\n"; echo "<tr><td> </td>\n"; echo "<td><input type=\"submit\" value=\"" . $t->translate("Change") . "\">"; echo "</td></tr>\n"; echo "</form>\n"; echo "</table>\n"; echo "<BR>\n"; // Delete a License $bs->box_strip($t->translate("Delete a License")); echo "<form action=\"" . $sess->url("inslic.php") . "\" method=\"POST\">\n"; echo "<table border=0 cellspacing=0 cellpadding=3 width=100%>\n"; echo "<tr><td align=right width=30%>" . $t->translate("License") . ":</td><td width=70%>\n"; print license("The GNU General Public License (GPL)"); // We select the first one to avoid having a blank line echo "</td></tr>\n"; echo "</td></tr>\n"; echo "<tr><td> </td>\n"; echo "<input type=\"hidden\" name=\"del_license\" value=\"warning\">\n"; echo "<td><input type=\"submit\" value=\"" . $t->translate("Delete") . "\">"; echo "</td></tr>\n"; echo "</form>\n"; echo "</table>\n"; $bx->box_body_end(); $bx->box_end(); } end_content(); require "include/footer.inc"; page_close();
function license_agreement() { ?> <div id='innercontent'> <h1>Smart Restaurant Installation Wizard</h1> <h2>License Agreement</h2> <form method='post' action='install.php?page=3'> <p> <textarea class="textarea" cols="50" rows="20" style="width:100%;" readonly="readonly"><?php echo trim(license()); ?> </textarea> </p> <p><input type="radio" name="agree" value="yes" /> I agree to abide by the license Terms and Conditions as stated above.</p> <p><input type="radio" name="agree" value="no" checked="checked" /> I do NOT agree to abide by the license Terms and Conditions as stated above</p> <p><br /> <input type='submit' value='Submit' class='submit'> </p> </form> </p> </div> <?php }
echo "</select></td></tr>\n"; echo "<tr><td align=right>" . $t->translate("New License URL") . " (255):</td><td><input type=\"TEXT\" name=\"new_url\" size=40 maxlength=255>\n"; echo "</td></tr>\n"; echo "<tr><td> </td>\n"; echo "<td><input type=\"submit\" value=\"" . $t->translate("Change") . "\">"; echo "</td></tr>\n"; echo "</form>\n"; echo "</table>\n"; echo "<BR>\n"; // Delete a License $bs->box_strip($t->translate("Delete a License")); echo "<form action=\"" . $sess->url("inslic.php") . "\" method=\"POST\">\n"; echo "<table border=0 cellspacing=0 cellpadding=3 width=100%>\n"; echo "<tr><td align=right width=30%>" . $t->translate("License") . ":</td><td width=70%>\n"; echo "<select name=\"license\">\n"; license("GPL"); // We select the first one to avoid having a blank line echo "</select></td></tr>\n"; echo "</td></tr>\n"; echo "<tr><td> </td>\n"; echo "<input type=\"hidden\" name=\"del_license\" value=\"warning\">\n"; echo "<td><input type=\"submit\" value=\"" . $t->translate("Delete") . "\">"; echo "</td></tr>\n"; echo "</form>\n"; echo "</table>\n"; $bx->box_body_end(); $bx->box_end(); } ?> <!-- end content -->
<div id="footer_text"> <?php echo 'Code and content under ' . license('gpl', 'GPL') . ' and ' . license('cc_by-nc', 'Creative Commons Attribution-NonCommercial') . ' licenses, respectively.'; ?> <br/> Opinions expressed on this site do not necessarily represent those of the <?php echo anchor('http://www.bustudentunion.com/', 'BU Student Union'); ?> . </div> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-6018923-1"); pageTracker._trackPageview(); } catch(err) {}</script>