<? /* Make sure this require() points to config.php. */ require('../../inc/config.php'); javascripts('form_builder'); stylesheets('form_builder_tool', 'scoped_smoothness/jquery-ui-1.8.1.custom'); $steps = 4; // TODO Dynamic include(ROOT.'/inc/header.php'); ?> <div class="content_div" id="form_builder"> <form id="fb_form" class="chisel_form" action="builder.php" method="post"> <div id="accordion"> <?php for ($step = 1; $step <= $steps; ++$step) { ?> <?php include './form/step_' . $step . '.php'; ?> <?php } ?> </div> </form> <div id="fb_summary" class="summary"> <h2>Summary</h2> </div> </div>
function show($do_echo = true) { $this->DBG->enter_method(); //$this->DBG->watch_var("Fieldlist", $this->fieldlist); $this->DBG->watch_var("Results", $this->results); // content render while ($v = array_shift($this->fieldlist)) { $this->user_content .= $this->form_row($v); } // menü $menu = ""; if (strlen($this->menu) > 1) { $menu = "<span id=\"menu\">Menü</span><br />" . $this->menu; } // main $content = $this->form['start'] . "<div class=\"tablelayer\">" . $this->leadin . $this->user_content . $this->append . "</div>" . $this->form['hidden'] . $this->form['end']; // head $head = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> \n\t\t \t\t<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">" . "<head><title>" . $this->title . "</title>" . "<meta http-equiv=\"content-type\" content=\"text/html; charset=ISO-8859-1\">" . $this->refresh . $this->get_js_startup() . javascripts($this->js) . $this->build_resetcheck() . css($this->css) . "" . "</head>"; // body $body = "<body onload=\"startup();\"><div id=\"container\">" . "<div id=\"tipcontainer\">" . "<div id=\"navilayer\">" . $menu . "</div>" . $this->help . "</div>" . $content . " \n<a href=\"http://validator.w3.org/check?uri=referer\"><img border='0'" . " src=\"images/valid-xhtml.png\"" . " alt=\"Valid XHTML 1.0 Transitional\" height=\"19\" width=\"53\" /></a>" . " </p>\r\n" . "</div>" . "</body></html>"; $this->DBG->leave_method(); if ($do_echo == true) { echo $head . $body; } else { return $head . $body; } }
<?php include $_SERVER['DOCUMENT_ROOT'] . '/inc/classes/tests/class.test_norm.php'; $tester = new Test_NORM(); if (isset($_GET['v'])) { $tester->initialize_tests($_GET['v']); } require $_SERVER['DOCUMENT_ROOT'] . '/inc/admin/config.php'; $session->auth_or_redirect('admin', '/', true); $admin_title = 'Run Tests'; $admin_subtitle = 'NORM'; javascripts('tests/norm'); stylesheets('tests/norm'); include ROOT . '/inc/admin/header.php'; $test_classes = array_map('basename', glob('./tests/*')); foreach ($test_classes as $file) { include './tests/' . $file; } ?> <p><a href="/admin">Back to Admin Home</a></p> <p><a href="../">Back to Tests Home</a></p> <div> <h1>NORM Test</h1> <p>Which version would you like to test?</p> <?php echo $tester->version_links(); ?>
function show($do_echo = true) { // content // main $content = $this->form['start'] . "<div class=\"tablelayer\">" . $this->user_content . "</div>" . $this->form['hidden'] . $this->form['end']; // head $head = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> \n\t\t \t\t<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">" . "<head><title>" . $this->title . "</title>" . "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />" . "<meta http-equiv=\"content-type\" content=\"text/html; charset=ISO-8859-1\" />" . "<meta name=\"copyright\" content=\"Christoph Becker cbecker@nachtwach.de - Content by IEF\" />" . $this->refresh . $this->get_js_startup() . javascripts($this->js) . $this->build_resetcheck() . css($this->css) . "" . "</head>"; // body $body = "<body onload=\"startup();\"><div id=\"container\">" . "<div id=\"tipcontainer\">" . "<div id=\"navilayer\">" . "<span id=\"menu\">Menü</span><br />" . $this->menu . "</div>" . $this->help . "</div>" . $content . " \n<a href=\"http://validator.w3.org/check?uri=referer\"><img border='0'" . " src=\"images/valid-xhtml.png\"" . " alt=\"Valid XHTML 1.0 Transitional\" height=\"19\" width=\"53\" /></a>" . " </p>\r\n" . "</div>" . "</body></html>"; if ($do_echo == true) { echo $head . $body; } else { return $head . $body; } }
<? /* Make sure this require() points to config.php. */ require('../../inc/config.php'); javascripts('project_starter'); stylesheets('project_starter', 'scoped_smoothness/jquery-ui-1.8.1.custom'); $steps = 6; // TODO: Dynamic include(ROOT.'/inc/header.php'); ?> <div class="content_div" id="project_starter"> <form id="ps_form" class="chisel_form"> <div id="accordion"> <?php for ($step = 1; $step <= $steps; ++$step) { ?> <?php include './form/step_' . $step . '.php'; ?> <?php } ?> </div> </form> <div id="ps_summary"> <h2>Summary</h2> </div> </div>
<!--<![endif]--> <!--[if lte IE 6]> <link rel="stylesheet" href="css/libs/ie6.1.1.css"> <style>html { padding-top: 42px; }</style> <![endif]--> <script src="js/libs/modernizr-2.7.0.min.js"></script> </head> <body> <?php yield_content(); ?> <!--[if ! lte IE 6]><!--> <script src="js/libs/jquery-1.10.2.min.js"></script> <?php javascripts('script'); yield_content('javascripts'); ?> <!--<![endif]--> <?php if ($config['google_analytics_web_property_id'] != '') { ?> <script> var _gaq=[['_setAccount','<?php echo $config['google_analytics_web_property_id']; ?> '],['_trackPageview']]; (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js'; s.parentNode.insertBefore(g,s)}(document,'script'));