function createIndexFile() { $indexpage = getHeader(); $indexpage .= markupPosts(); $indexpage .= getFooter(); $out = fopen('index.html', "w"); if (!$out) { print "OMG"; exit; } fwrite($out, $indexpage); fclose($out); }
<div class="col-sm-12"> <div class="mod-box"> <a href="/media" class="link-box"> <h3> <span class="icon"> <svg><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#image"></use></svg> </span> Media from TexansForRubio </h3> </a> </div> </div> <div class="col-sm-12"> <div class="mod-box"> <a href="https://twitter.com/texansforrubio/" target="_blank" class="link-box"> <h3> <span class="icon"> <svg><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#twitter"></use></svg> </span> @TexansForRubio on Twitter </h3> </a> </div> </div> </div> </div> <?php getFooter(array('video' => true));
function cms_pagefooter() { // debug("cms_pagefooter", "start", "delayed"); $navbar = pslNew("NavBar"); $output = $navbar->getNavBar('navbarFooter'); $output = getFooter(); page_close(); return $output; }
function generateDHCP() { global $submitErr, $submitErrMsg, $HTMLheader, $printedHTMLheader; $mnipaddr = processInputVar('mnipaddr', ARG_STRING); $data = getContinuationVar(); $addrArr = explode('.', $mnipaddr); if (!ereg('^(([0-9]){1,3}\\.){3}([0-9]){1,3}$', $mnipaddr) || $addrArr[0] < 1 || $addrArr[0] > 255 || $addrArr[1] < 0 || $addrArr[1] > 255 || $addrArr[2] < 0 || $addrArr[2] > 255 || $addrArr[3] < 1 || $addrArr[3] > 255) { $submitErr |= IPADDRERR; $submitErrMsg[IPADDRERR] = "Invalid IP address. Must be w.x.y.z with each of " . "w, x, y, and z being between 1 and 255 (inclusive)"; print $HTMLheader; $printedHTMLheader = 1; generateDhcpForm($data); print getFooter(); return; } header("Content-type: text/plain"); header("Content-Disposition: inline; filename=\"dhcpdata.txt\""); foreach ($data as $comp) { $tmp = explode('.', $comp['hostname']); print "\t\thost {$tmp[0]} {\n"; print "\t\t\toption host-name \"{$tmp[0]}\";\n"; print "\t\t\thardware ethernet {$comp['eth0mac']};\n"; print "\t\t\tfixed-address {$comp['prip']};\n"; print "\t\t\tfilename \"/tftpboot/pxelinux.0\";\n"; print "\t\t\toption dhcp-server-identifier {$mnipaddr};\n"; print "\t\t\tnext-server {$mnipaddr};\n"; print "\t\t}\n\n"; } }
<li id="Menu_Other"> <a href="/" id="OtherLink">DGNT.Other</a> </li> </ul> <div></div> </div> </div> <div id="Body"> <?php require "../includes/body.php"; echo getBlogBody(); echo getBodyCenter(); ?> </div> <footer> <?php require "../includes/footer.php"; echo getFooter(); ?> </footer> </body> </html>
function printLoginPage($servertimeout = 0) { global $authMechs, $skin, $user; $user['id'] = 0; $authtype = getContinuationVar("authtype", processInputVar("authtype", ARG_STRING)); if ($authtype == '' && array_key_exists('VCLAUTHSEL', $_COOKIE)) { $authtype = $_COOKIE['VCLAUTHSEL']; } if (isset($_GET['userid'])) { unset($_GET['userid']); } $userid = processInputVar('userid', ARG_STRING, ''); if ($userid == i('Proceed to Login')) { $userid = ''; } if (!array_key_exists($authtype, $authMechs)) { // FIXME - hackish dbDisconnect(); exit; } if (get_magic_quotes_gpc()) { $userid = stripslashes($userid); } $userid = htmlspecialchars($userid); $extrafailedmsg = ''; if ($servertimeout) { $extrafailedmsg = " " . i("(unable to connect to authentication server)"); } /*if($skin == 'example1') { $useridLabel = 'Pirateid'; $passLabel = 'Passphrase'; $text1 = 'Login with your Pirate ID'; $text2 = ""; } elseif($skin == 'example2') { print "<br>"; print "<FORM action=\"" . BASEURL . SCRIPT . "\" method=post name=loginform>\n"; if(strlen($userid)) print "<font color=red>Login failed $extrafailedmsg</font>\n"; print "<TABLE width=\"250\">\n"; print " <TR>\n"; print " <TH align=right>Key Account:</TH>\n"; print " <TD><INPUT type=text name=userid value=\"\"></TD>\n"; print " </TR>\n"; print " <TR>\n"; print " <TH align=right>Password:</TH>\n"; print " <TD><INPUT type=password name=password></TD>\n"; print " </TR>\n"; print " <TR>\n"; print " <TD colspan=2 align=right><INPUT type=submit value=Login class=button></TD>\n"; print " </TR>\n"; print "</TABLE>\n"; print "<div width=250 align=center>\n"; print "<p>\n"; $cdata = array('authtype' => $authtype); $cont = addContinuationsEntry('submitLogin', $cdata); print " <INPUT type=hidden name=continuation value=\"$cont\">\n"; print " <br>\n"; print " </p>\n"; print "</div>\n"; print "</FORM>\n"; print getFooter(); return; } else {*/ $useridLabel = i('Userid'); $passLabel = i('Password'); $text1 = i("Login with") . " {$authtype}"; $text2 = ""; #} print "<H2 style=\"display: block\">{$text1}</H2>\n"; print "<FORM action=\"" . BASEURL . SCRIPT . "\" method=post name=loginform>\n"; if (strlen($userid)) { print "<font color=red>" . i("Login failed") . " {$extrafailedmsg}</font>\n"; } print "<TABLE>\n"; print " <TR>\n"; print " <TH align=right>{$useridLabel}:</TH>\n"; print " <TD><INPUT type=text name=userid value=\"{$userid}\"></TD>\n"; print " </TR>\n"; print " <TR>\n"; print " <TH align=right>{$passLabel}:</TH>\n"; print " <TD><INPUT type=password name=password></TD>\n"; print " </TR>\n"; print " <TR>\n"; print " <TD colspan=2 align=right><INPUT type=submit value=\"" . i("Login") . "\"></TD>\n"; print " </TR>\n"; print "</TABLE>\n"; $cdata = array('authtype' => $authtype); $cont = addContinuationsEntry('submitLogin', $cdata); print "<INPUT type=hidden name=continuation value=\"{$cont}\">\n"; print "</FORM>\n"; print "{$text2}<br>\n"; print getFooter(); }
//////////////////////////////////////////////////////////////////////// $content .= <<<M <div class="moduletitle"> Documentos </div> <div class="submenu"> <a href="?">Inicio</a> <span class="level5">| <a href="?mode=mode">Modo</a></span> </div> <div class="container"> M; //////////////////////////////////////////////////////////////////////// //BODY //////////////////////////////////////////////////////////////////////// $content .= <<<C <p> En este módulo tendrá acceso a documentos de interés sobre el Currículo en la Facultad de Ciencias Exactas y Naturales FCEN. </p> C; //////////////////////////////////////////////////////////////////////// //FOOTER AND RENDER //////////////////////////////////////////////////////////////////////// end: $content .= "</div>"; $content .= getMessages(); $content .= getFooter(); echo $content; ?> </html>
echo "<span class=\"ltblue\">Previous Page</span> "; } echo "<a href=\"" . $_SERVER["PHP_SELF"] . "?search=" . $_GET["search"] . "&alpha=" . $_GET["alpha"] . "&city=" . $_GET["city"] . "&p=" . $_GET["p"] . "&c=" . $_GET["c"] . "&page=" . ($page + 1) . "\" class=\"blue\">Next Page</a>"; echo "</p>"; echo "<p>" . $list_biz["biz_list"] . "</p>"; $city_display = true; } else { echo "No search results."; if (isset($_GET["page"])) { echo "<br/><br/><a href=\"" . $_SERVER["PHP_SELF"] . "?search=" . $_GET["search"] . "&alpha=" . $_GET["alpha"] . "&city=" . $_GET["city"] . "&p=" . $_GET["p"] . "&c=" . $_GET["c"] . "&page=" . ($page - 1) . "\" class=\"blue\">Return to Previous Page</a>"; } if (isset($_GET["alpha"])) { echo "<br/><br/><a href=\"" . $_SERVER["PHP_SELF"] . "?search=" . $_GET["search"] . "&alpha=&city=" . $_GET["city"] . "&p=" . $_GET["p"] . "&c=" . $_GET["c"] . "&page=" . $_GET["page"] . "\" class=\"blue\">View All</a>"; } $city_display = false; } ?> </div> <div id="detail-column-2" class="white"> <?php echo $ads->buildAd(300); ?> <br/><br/> <div id="map"></div> </div> </div> <?php getFooter("public");
function cms_pagefooter() { // debug("cms_pagefooter", "start", "delayed"); $output = getFooter(); page_close(); return $output; }
?> <form action="" id="birthdayForm" method="post"> <h2>Birthday DB</h2> <p>This will enter you into the database, if you aren't already in here.</p> <br> <p>Please use YYYY-MM-DD format for the date or use the calendar icon.</p> <br> <p>Don't want to reveal your exact birthyear? Just enter 1900 for the year instead, but keep the formatting correct!<p> <br> <p>Username: <input type="text" name="Username" /></p> <p>DOB: <input type="text" style="margin-left:39px" name="Dateofbirth" id="datepicker" /></p> <br> <p><input type="submit" value="OMGHB2U!!! (Submit)"/></p> </form> <br> <p>If you want to update your birthday, remove your birthday, or have any questions, please <a href="http://www.shacknews.com/msgcenter/new_message.x?to=askedrelic">shackmessage me</a>!<p> <br> <h3><a href="/">Go Back</a></h3> </div> <?php echo getFooter(false);
<?php require_once 'php/config.php'; require_once 'php/_base/getHead.php'; echo getHead('en', ['_main.min.css']); ?> <div class="wrapper"> <?php echo $nav->getNav('bootstrap', 'GT Marine Offshore', false); ?> <div class="landing"> <section class="container"> <h1>ERROR 404</h1> <p>The page you were looking for was not found :(</p> </section> </div> </div> <?php echo getFooter(['app.js']);
<?php if (isset($_POST['lang'])) { if (isset($_POST['action'])) { switch ($_POST['action']) { case 'header': getHeader($_POST['lang']); break; case 'footer': getFooter($_POST['lang']); break; default: echo "error"; break; } return; } else { if (isset($_POST['content']) && "abra" != $_POST['content']) { getContent($_POST['content'], $_POST['lang'], $_POST['device']); return; } else { if ("abra" == $_POST['content']) { include 'en/error.php'; return; } } } } else { include 'ua/error.php'; } function getHeader($lang)
/** * @param int $surveyid * @param string $language */ public function actionAction($surveyid, $language = null) { $sLanguage = $language; $this->sLanguage = $language; ob_start(function ($buffer) { App()->getClientScript()->render($buffer); App()->getClientScript()->reset(); return $buffer; }); ob_implicit_flush(false); $iSurveyID = (int) $surveyid; $this->iSurveyID = (int) $surveyid; //$postlang = returnglobal('lang'); Yii::import('application.libraries.admin.progressbar', true); Yii::app()->loadHelper("userstatistics"); Yii::app()->loadHelper('database'); Yii::app()->loadHelper('surveytranslator'); App()->getClientScript()->registerPackage('jqueryui'); App()->getClientScript()->registerPackage('jquery-touch-punch'); App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('generalscripts') . "survey_runtime.js"); $data = array(); if (!isset($iSurveyID)) { $iSurveyID = returnGlobal('sid'); } else { $iSurveyID = (int) $iSurveyID; } if (!$iSurveyID) { //This next line ensures that the $iSurveyID value is never anything but a number. safeDie('You have to provide a valid survey ID.'); } $actresult = Survey::model()->findAll('sid = :sid AND active = :active', array(':sid' => $iSurveyID, ':active' => 'Y')); //Checked if (count($actresult) == 0) { safeDie('You have to provide a valid survey ID.'); } else { $surveyinfo = getSurveyInfo($iSurveyID); // CHANGE JSW_NZ - let's get the survey title for display $thisSurveyTitle = $surveyinfo["name"]; // CHANGE JSW_NZ - let's get css from individual template.css - so define path $thisSurveyCssPath = getTemplateURL($surveyinfo["template"]); if ($surveyinfo['publicstatistics'] != 'Y') { safeDie('The public statistics for this survey are deactivated.'); } //check if graphs should be shown for this survey if ($surveyinfo['publicgraphs'] == 'Y') { $publicgraphs = 1; } else { $publicgraphs = 0; } } //we collect all the output within this variable $statisticsoutput = ''; //for creating graphs we need some more scripts which are included here //True -> include //False -> forget about charts if (isset($publicgraphs) && $publicgraphs == 1) { require_once APPPATH . 'third_party/pchart/pchart/pChart.class'; require_once APPPATH . 'third_party/pchart/pchart/pData.class'; require_once APPPATH . 'third_party/pchart/pchart/pCache.class'; $MyCache = new pCache(Yii::app()->getConfig("tempdir") . DIRECTORY_SEPARATOR); //$currentuser is created as prefix for pchart files if (isset($_SERVER['REDIRECT_REMOTE_USER'])) { $currentuser = $_SERVER['REDIRECT_REMOTE_USER']; } else { if (session_id()) { $currentuser = substr(session_id(), 0, 15); } else { $currentuser = "******"; } } } // Set language for questions and labels to base language of this survey if ($sLanguage == null || !in_array($sLanguage, Survey::model()->findByPk($iSurveyID)->getAllLanguages())) { $sLanguage = Survey::model()->findByPk($iSurveyID)->language; } else { $sLanguage = sanitize_languagecode($sLanguage); } //set survey language for translations SetSurveyLanguage($iSurveyID, $sLanguage); //Create header sendCacheHeaders(); $condition = false; $sitename = Yii::app()->getConfig("sitename"); $data['surveylanguage'] = $sLanguage; $data['sitename'] = $sitename; $data['condition'] = $condition; $data['thisSurveyCssPath'] = $thisSurveyCssPath; /* * only show questions where question attribute "public_statistics" is set to "1" */ $query = "SELECT q.* , group_name, group_order FROM {{questions}} q, {{groups}} g, {{question_attributes}} qa\n WHERE g.gid = q.gid AND g.language = :lang1 AND q.language = :lang2 AND q.sid = :surveyid AND q.qid = qa.qid AND q.parent_qid = 0 AND qa.attribute = 'public_statistics'"; $databasetype = Yii::app()->db->getDriverName(); if ($databasetype == 'mssql' || $databasetype == "sqlsrv" || $databasetype == "dblib") { $query .= " AND CAST(CAST(qa.value as varchar) as int)='1'\n"; } else { $query .= " AND qa.value='1'\n"; } //execute query $result = Yii::app()->db->createCommand($query)->bindParam(":lang1", $sLanguage, PDO::PARAM_STR)->bindParam(":lang2", $sLanguage, PDO::PARAM_STR)->bindParam(":surveyid", $iSurveyID, PDO::PARAM_INT)->queryAll(); //store all the data in $rows $rows = $result; //SORT IN NATURAL ORDER! usort($rows, 'groupOrderThenQuestionOrder'); //put the question information into the filter array $filters = array(); foreach ($rows as $row) { //store some column names in $filters array $filters[] = array($row['qid'], $row['gid'], $row['type'], $row['title'], $row['group_name'], flattenText($row['question'])); } //number of records for this survey $totalrecords = 0; //count number of answers $query = "SELECT count(*) FROM {{survey_" . intval($iSurveyID) . "}}"; //if incompleted answers should be filtert submitdate has to be not null //this setting is taken from config-defaults.php if (Yii::app()->getConfig("filterout_incomplete_answers") == true) { $query .= " WHERE {{survey_" . intval($iSurveyID) . "}}.submitdate is not null"; } $result = Yii::app()->db->createCommand($query)->queryAll(); //$totalrecords = total number of answers foreach ($result as $row) { $totalrecords = reset($row); } //...while this is the array from copy/paste which we don't want to replace because this is a nasty source of error $allfields = array(); //---------- CREATE SGQA OF ALL QUESTIONS WHICH USE "PUBLIC_STATISTICS" ---------- /* * let's go through the filter array which contains * ['qid'], ['gid'], ['type'], ['title'], ['group_name'], ['question']; */ $currentgroup = ''; // use to check if there are any question with public statistics if (isset($filters)) { $allfields = $this->createSGQA($filters); } // end if -> for removing the error message in case there are no filters $summary = $allfields; // Get the survey inforamtion $thissurvey = getSurveyInfo($surveyid, $sLanguage); //SET THE TEMPLATE DIRECTORY $data['sTemplatePath'] = $surveyinfo['template']; // surveyinfo=getSurveyInfo and if survey don't exist : stop before. //---------- CREATE STATISTICS ---------- $redata = compact(array_keys(get_defined_vars())); doHeader(); /// $oTemplate is a global variable defined in controller/survey/index $oTemplate = Template::model()->getInstance(null, $surveyid); echo templatereplace(file_get_contents($oTemplate->viewPath . "startpage.pstpl"), array(), $redata); //some progress bar stuff // Create progress bar which is shown while creating the results $prb = new ProgressBar(); $prb->pedding = 2; // Bar Pedding $prb->brd_color = "#404040 #dfdfdf #dfdfdf #404040"; // Bar Border Color $prb->setFrame(); // set ProgressBar Frame $prb->frame['left'] = 50; // Frame position from left $prb->frame['top'] = 80; // Frame position from top $prb->addLabel('text', 'txt1', gT("Please wait ...")); // add Text as Label 'txt1' and value 'Please wait' $prb->addLabel('percent', 'pct1'); // add Percent as Label 'pct1' $prb->addButton('btn1', gT('Go back'), '?action=statistics&sid=' . $iSurveyID); // add Button as Label 'btn1' and action '?restart=1' $prb->show(); // show the ProgressBar // 1: Get list of questions with answers chosen //"Getting Questions and Answer ..." is shown above the bar $prb->setLabelValue('txt1', gT('Getting questions and answers ...')); $prb->moveStep(5); // creates array of post variable names $postvars = array(); for (reset($_POST); $key = key($_POST); next($_POST)) { $postvars[] = $key; } $data['thisSurveyTitle'] = $thisSurveyTitle; $data['totalrecords'] = $totalrecords; $data['summary'] = $summary; //show some main data at the beginnung // CHANGE JSW_NZ - let's allow html formatted questions to show //push progress bar from 35 to 40 $process_status = 40; //Show Summary results if (isset($summary) && !empty($summary)) { //"Generating Summaries ..." is shown above the progress bar $prb->setLabelValue('txt1', gT('Generating summaries ...')); $prb->moveStep($process_status); //let's run through the survey // Fixed bug 3053 with array_unique $runthrough = array_unique($summary); //loop through all selected questions foreach ($runthrough as $rt) { //update progress bar if ($process_status < 100) { $process_status++; } $prb->moveStep($process_status); } // end foreach -> loop through all questions $helper = new userstatistics_helper(); $statisticsoutput .= $helper->generate_statistics($iSurveyID, $summary, $summary, $publicgraphs, 'html', null, $sLanguage, false); } //end if -> show summary results $data['statisticsoutput'] = $statisticsoutput; //done! set progress bar to 100% if (isset($prb)) { $prb->setLabelValue('txt1', gT('Completed')); $prb->moveStep(100); $prb->hide(); } $redata = compact(array_keys(get_defined_vars())); $data['redata'] = $redata; Yii::app()->getClientScript()->registerScriptFile(Yii::app()->getConfig('generalscripts') . 'statistics_user.js'); $this->renderPartial('/statistics_user_view', $data); //output footer echo getFooter(); //Delete all Session Data Yii::app()->session['finished'] = true; }
function printLoginPage() { global $authMechs, $skin, $user; $user['id'] = 0; $authtype = getContinuationVar("authtype", processInputVar("authtype", ARG_STRING)); $userid = processInputVar('userid', ARG_STRING, ''); if ($userid == 'Proceed to Login') { $userid = ''; } if (!array_key_exists($authtype, $authMechs)) { // FIXME - hackerish dbDisconnect(); exit; } /*if($skin == 'example1') { $useridLabel = 'Pirateid'; $passLabel = 'Passphrase'; $text1 = 'Login with your Pirate ID'; $text2 = ""; } elseif($skin == 'example2') { print "<br>"; print "<FORM action=\"" . BASEURL . SCRIPT . "\" method=post name=loginform>\n"; if(strlen($userid)) print "<font color=red>Login failed</font>\n"; print "<TABLE width=\"250\">\n"; print " <TR>\n"; print " <TH align=right>Key Account:</TH>\n"; print " <TD><INPUT type=text name=userid value=\"\"></TD>\n"; print " </TR>\n"; print " <TR>\n"; print " <TH align=right>Password:</TH>\n"; print " <TD><INPUT type=password name=password></TD>\n"; print " </TR>\n"; print " <TR>\n"; print " <TD colspan=2 align=right><INPUT type=submit value=Login class=button></TD>\n"; print " </TR>\n"; print "</TABLE>\n"; print "<div width=250 align=center>\n"; print "<p>\n"; $cdata = array('authtype' => $authtype); $cont = addContinuationsEntry('submitLogin', $cdata); print " <INPUT type=hidden name=continuation value=\"$cont\">\n"; print " <br>\n"; print " </p>\n"; print "</div>\n"; print "</FORM>\n"; print getFooter(); return; } else {*/ $useridLabel = 'Userid'; $passLabel = 'Password'; $text1 = "Login with {$authtype}"; $text2 = ""; #} print "<H2 style=\"display: block\">{$text1}</H2>\n"; print "<FORM action=\"" . BASEURL . SCRIPT . "\" method=post name=loginform>\n"; if (strlen($userid)) { print "<font color=red>Login failed</font>\n"; } print "<TABLE>\n"; print " <TR>\n"; print " <TH align=right>{$useridLabel}:</TH>\n"; print " <TD><INPUT type=text name=userid value=\"{$userid}\"></TD>\n"; print " </TR>\n"; print " <TR>\n"; print " <TH align=right>{$passLabel}:</TH>\n"; print " <TD><INPUT type=password name=password></TD>\n"; print " </TR>\n"; print " <TR>\n"; print " <TD colspan=2 align=right><INPUT type=submit value=Login></TD>\n"; print " </TR>\n"; print "</TABLE>\n"; $cdata = array('authtype' => $authtype); $cont = addContinuationsEntry('submitLogin', $cdata); print "<INPUT type=hidden name=continuation value=\"{$cont}\">\n"; print "</FORM>\n"; print "{$text2}<br>\n"; print getFooter(); }
$partmodeldbo->id = "id_part_model"; $partmodeldbo->attributes = 'class="chPartModel"'; $partmodelJSON = encrypt(json_encode((array) $partmodeldbo)); $fs = array(array(array('Manufacturer', 'id_cust_company', 'onchange="filterRec(this,\'' . $partmodelJSON . '\',\'dPartModel\')"', 1, $listCompany), array('Part', 'id_part_model', 'disabled=\'disabled\' class=\'chPartModel\'', 1, null, null, "dPartModel"), array('Fixed Asset?', 'part_isAsset', null, 8, null, 1)), array(array('Generate', 'mmQuantity', null, 0), array(null, null, 'onclick="mkMMRows()"', 2, null, 'Generate'))); function getBaseElement() { $elements = array(array(array('MFR Serial Number', null, null, 0, null, null, null, null, 'id="x1_row" style="display:none"'), array('Internal Serial Number', null, null, 0))); $baseElements = ""; $baseElements .= frmElements($elements); return $baseElements; } function getFooter() { $elements = array(array(array(null, 'part_mText', null, 6, null, null, null, null, ' style="display:none" '))); $footerElements = frmElements($elements); return $footerElements; } $fieldset = '<fieldset>'; $fieldset .= '<legend>Static Elements</legend>'; $fieldset .= frmElements($fs); $fieldset .= '</fieldset>'; $fieldset .= '<fieldset class="multiRow" style="margin-top:10px">'; $fieldset .= '<legend>Unit Import Form</legend>'; $fieldset .= '<div class="multimenu">'; $fieldset .= '<input type="button" id="mmAddButton" onClick="multiRowAddElement(this,\'frmrow\')" value="Add"/>'; $fieldset .= '<input type="button" onClick="multiRowRemoveLastElement(this,\'frmrow\')" value="Remove Last"/>'; $fieldset .= '</div>'; $fieldset .= getBaseElement(); $fieldset .= getFooter(); $fieldset .= '</fieldset>'; echo $fieldset;
?> > Yes, reset the CPM session<br/> <span class="small green">Resetting the CPM session will reset the CPM counter to zero and allow this ad to have full range of impressions as defined by the limit. Resetting this does not affect total impressions for statisical reports.</span></td> </tr> </table> <h4>Create/Update Ad</h4> <table class="form"> <tr> <td class="field-name"></td> <td class="field-value"><input type="submit" name="submit" value="Create/Update Ad"></td> </tr> </table> <input type="hidden" name="adid" value="<?php echo $ads->rec["id"]; ?> "> </form> <?php getFooter("admin");
function actionAction($surveyid, $language = null) { $sLanguage = $language; ob_start(function ($buffer, $phase) { App()->getClientScript()->render($buffer); App()->getClientScript()->reset(); return $buffer; }); ob_implicit_flush(false); $iSurveyID = (int) $surveyid; //$postlang = returnglobal('lang'); Yii::import('application.libraries.admin.progressbar', true); Yii::app()->loadHelper("admin/statistics"); Yii::app()->loadHelper('database'); Yii::app()->loadHelper('surveytranslator'); App()->getClientScript()->registerPackage('jqueryui'); App()->getClientScript()->registerPackage('jquery-touch-punch'); App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('generalscripts') . "survey_runtime.js"); $data = array(); if (!isset($iSurveyID)) { $iSurveyID = returnGlobal('sid'); } else { $iSurveyID = (int) $iSurveyID; } if (!$iSurveyID) { //This next line ensures that the $iSurveyID value is never anything but a number. safeDie('You have to provide a valid survey ID.'); } if ($iSurveyID) { $actresult = Survey::model()->findAll('sid = :sid AND active = :active', array(':sid' => $iSurveyID, ':active' => 'Y')); //Checked if (count($actresult) == 0) { safeDie('You have to provide a valid survey ID.'); } else { $surveyinfo = getSurveyInfo($iSurveyID); // CHANGE JSW_NZ - let's get the survey title for display $thisSurveyTitle = $surveyinfo["name"]; // CHANGE JSW_NZ - let's get css from individual template.css - so define path $thisSurveyCssPath = getTemplateURL($surveyinfo["template"]); if ($surveyinfo['publicstatistics'] != 'Y') { safeDie('The public statistics for this survey are deactivated.'); } //check if graphs should be shown for this survey if ($surveyinfo['publicgraphs'] == 'Y') { $publicgraphs = 1; } else { $publicgraphs = 0; } } } //we collect all the output within this variable $statisticsoutput = ''; //for creating graphs we need some more scripts which are included here //True -> include //False -> forget about charts if (isset($publicgraphs) && $publicgraphs == 1) { require_once APPPATH . 'third_party/pchart/pchart/pChart.class'; require_once APPPATH . 'third_party/pchart/pchart/pData.class'; require_once APPPATH . 'third_party/pchart/pchart/pCache.class'; $MyCache = new pCache(Yii::app()->getConfig("tempdir") . DIRECTORY_SEPARATOR); //$currentuser is created as prefix for pchart files if (isset($_SERVER['REDIRECT_REMOTE_USER'])) { $currentuser = $_SERVER['REDIRECT_REMOTE_USER']; } else { if (session_id()) { $currentuser = substr(session_id(), 0, 15); } else { $currentuser = "******"; } } } // Set language for questions and labels to base language of this survey if ($sLanguage == null || !in_array($sLanguage, Survey::model()->findByPk($iSurveyID)->getAllLanguages())) { $sLanguage = Survey::model()->findByPk($iSurveyID)->language; } else { $sLanguage = sanitize_languagecode($sLanguage); } //set survey language for translations SetSurveyLanguage($iSurveyID, $sLanguage); //Create header sendCacheHeaders(); $condition = false; $sitename = Yii::app()->getConfig("sitename"); $data['surveylanguage'] = $sLanguage; $data['sitename'] = $sitename; $data['condition'] = $condition; $data['thisSurveyCssPath'] = $thisSurveyCssPath; /* * only show questions where question attribute "public_statistics" is set to "1" */ $query = "SELECT q.* , group_name, group_order FROM {{questions}} q, {{groups}} g, {{question_attributes}} qa\n WHERE g.gid = q.gid AND g.language = :lang1 AND q.language = :lang2 AND q.sid = :surveyid AND q.qid = qa.qid AND q.parent_qid = 0 AND qa.attribute = 'public_statistics'"; $databasetype = Yii::app()->db->getDriverName(); if ($databasetype == 'mssql' || $databasetype == "sqlsrv" || $databasetype == "dblib") { $query .= " AND CAST(CAST(qa.value as varchar) as int)='1'\n"; } else { $query .= " AND qa.value='1'\n"; } //execute query $result = Yii::app()->db->createCommand($query)->bindParam(":lang1", $sLanguage, PDO::PARAM_STR)->bindParam(":lang2", $sLanguage, PDO::PARAM_STR)->bindParam(":surveyid", $iSurveyID, PDO::PARAM_INT)->queryAll(); //store all the data in $rows $rows = $result; //SORT IN NATURAL ORDER! usort($rows, 'groupOrderThenQuestionOrder'); //put the question information into the filter array foreach ($rows as $row) { //store some column names in $filters array $filters[] = array($row['qid'], $row['gid'], $row['type'], $row['title'], $row['group_name'], flattenText($row['question'])); } //number of records for this survey $totalrecords = 0; //count number of answers $query = "SELECT count(*) FROM {{survey_" . intval($iSurveyID) . "}}"; //if incompleted answers should be filtert submitdate has to be not null //this setting is taken from config-defaults.php if (Yii::app()->getConfig("filterout_incomplete_answers") == true) { $query .= " WHERE {{survey_" . intval($iSurveyID) . "}}.submitdate is not null"; } $result = Yii::app()->db->createCommand($query)->queryAll(); //$totalrecords = total number of answers foreach ($result as $row) { $totalrecords = reset($row); } //this is the array which we need later... $summary = array(); //...while this is the array from copy/paste which we don't want to replace because this is a nasty source of error $allfields = array(); //---------- CREATE SGQA OF ALL QUESTIONS WHICH USE "PUBLIC_STATISTICS" ---------- /* * let's go through the filter array which contains * ['qid'], ['gid'], ['type'], ['title'], ['group_name'], ['question']; */ $currentgroup = ''; // use to check if there are any question with public statistics if (isset($filters)) { foreach ($filters as $flt) { //SGQ identifier $myfield = "{$iSurveyID}X{$flt[1]}X{$flt[0]}"; //let's switch through the question type for each question switch ($flt[2]) { case "K": // Multiple Numerical // Multiple Numerical case "Q": // Multiple Short Text //get answers $query = "SELECT title as code, question as answer FROM {{questions}} WHERE parent_qid=:flt_0 AND language = :lang ORDER BY question_order"; $result = Yii::app()->db->createCommand($query)->bindParam(":flt_0", $flt[0], PDO::PARAM_INT)->bindParam(":lang", $sLanguage, PDO::PARAM_STR)->queryAll(); //go through all the (multiple) answers foreach ($result as $row) { $myfield2 = $flt[2] . $myfield . reset($row); $allfields[] = $myfield2; } break; case "A": // ARRAY OF 5 POINT CHOICE QUESTIONS // ARRAY OF 5 POINT CHOICE QUESTIONS case "B": // ARRAY OF 10 POINT CHOICE QUESTIONS // ARRAY OF 10 POINT CHOICE QUESTIONS case "C": // ARRAY OF YES\No\gT("Uncertain") QUESTIONS // ARRAY OF YES\No\gT("Uncertain") QUESTIONS case "E": // ARRAY OF Increase/Same/Decrease QUESTIONS // ARRAY OF Increase/Same/Decrease QUESTIONS case "F": // FlEXIBLE ARRAY // FlEXIBLE ARRAY case "H": // ARRAY (By Column) //get answers $query = "SELECT title as code, question as answer FROM {{questions}} WHERE parent_qid=:flt_0 AND language = :lang ORDER BY question_order"; $result = Yii::app()->db->createCommand($query)->bindParam(":flt_0", $flt[0], PDO::PARAM_INT)->bindParam(":lang", $sLanguage, PDO::PARAM_STR)->queryAll(); //go through all the (multiple) answers foreach ($result as $row) { $myfield2 = $myfield . reset($row); $allfields[] = $myfield2; } break; // all "free text" types (T, U, S) get the same prefix ("T") // all "free text" types (T, U, S) get the same prefix ("T") case "T": // Long free text // Long free text case "U": // Huge free text // Huge free text case "S": // Short free text $myfield = "T{$myfield}"; $allfields[] = $myfield; break; case ";": //ARRAY (Multi Flex) (Text) //ARRAY (Multi Flex) (Text) case ":": //ARRAY (Multi Flex) (Numbers) $query = "SELECT title, question FROM {{questions}} WHERE parent_qid=:flt_0 AND language=:lang AND scale_id = 0 ORDER BY question_order"; $result = Yii::app()->db->createCommand($query)->bindParam(":flt_0", $flt[0], PDO::PARAM_INT)->bindParam(":lang", $sLanguage, PDO::PARAM_STR)->queryAll(); foreach ($result as $row) { $fquery = "SELECT * FROM {{questions}} WHERE parent_qid = :flt_0 AND language = :lang AND scale_id = 1 ORDER BY question_order, title"; $fresult = Yii::app()->db->createCommand($query)->bindParam(":flt_0", $flt[0], PDO::PARAM_INT)->bindParam(":lang", $sLanguage, PDO::PARAM_STR)->queryAll(); foreach ($fresult as $frow) { $myfield2 = $myfield . reset($row) . "_" . $frow['title']; $allfields[] = $myfield2; } } break; case "R": //RANKING //get some answers $query = "SELECT code, answer FROM {{answers}} WHERE qid = :flt_0 AND language = :lang ORDER BY sortorder, answer"; $result = Yii::app()->db->createCommand($query)->bindParam(":flt_0", $flt[0], PDO::PARAM_INT)->bindParam(":lang", $sLanguage, PDO::PARAM_STR)->queryAll(); //get number of answers $count = count($result); //loop through all answers. if there are 3 items to rate there will be 3 statistics for ($i = 1; $i <= $count; $i++) { $myfield2 = "R" . $myfield . $i . "-" . strlen($i); $allfields[] = $myfield2; } break; //Boilerplate questions are only used to put some text between other questions -> no analysis needed //Boilerplate questions are only used to put some text between other questions -> no analysis needed case "X": //This is a boilerplate question and it has no business in this script break; case "1": // MULTI SCALE //get answers $query = "SELECT title, question FROM {{questions}} WHERE parent_qid = :flt_0 AND language = :lang ORDER BY question_order"; $result = Yii::app()->db->createCommand($query)->bindParam(":flt_0", $flt[0], PDO::PARAM_INT)->bindParam(":lang", $sLanguage, PDO::PARAM_STR)->queryAll(); //loop through answers foreach ($result as $row) { //----------------- LABEL 1 --------------------- $myfield2 = $myfield . $row['title'] . "#0"; $allfields[] = $myfield2; //----------------- LABEL 2 --------------------- $myfield2 = $myfield . $row['title'] . "#1"; $allfields[] = $myfield2; } //end WHILE -> loop through all answers break; case "P": //P - Multiple choice with comments //P - Multiple choice with comments case "M": //M - Multiple choice //M - Multiple choice case "N": //N - Numerical input //N - Numerical input case "D": //D - Date $myfield2 = $flt[2] . $myfield; $allfields[] = $myfield2; break; default: //Default settings $allfields[] = $myfield; break; } //end switch -> check question types and create filter forms } //end foreach -> loop through all questions with "public_statistics" enabled } // end if -> for removing the error message in case there are no filters $summary = $allfields; // Get the survey inforamtion $thissurvey = getSurveyInfo($surveyid, $sLanguage); //SET THE TEMPLATE DIRECTORY $data['sTemplatePath'] = $surveyinfo['template']; // surveyinfo=getSurveyInfo and if survey don't exist : stop before. //---------- CREATE STATISTICS ---------- $redata = compact(array_keys(get_defined_vars())); doHeader(); echo templatereplace(file_get_contents(getTemplatePath($data['sTemplatePath']) . DIRECTORY_SEPARATOR . "startpage.pstpl"), array(), $redata); //some progress bar stuff // Create progress bar which is shown while creating the results $prb = new ProgressBar(); $prb->pedding = 2; // Bar Pedding $prb->brd_color = "#404040 #dfdfdf #dfdfdf #404040"; // Bar Border Color $prb->setFrame(); // set ProgressBar Frame $prb->frame['left'] = 50; // Frame position from left $prb->frame['top'] = 80; // Frame position from top $prb->addLabel('text', 'txt1', gT("Please wait ...")); // add Text as Label 'txt1' and value 'Please wait' $prb->addLabel('percent', 'pct1'); // add Percent as Label 'pct1' $prb->addButton('btn1', gT('Go back'), '?action=statistics&sid=' . $iSurveyID); // add Button as Label 'btn1' and action '?restart=1' //progress bar starts with 35% $process_status = 35; $prb->show(); // show the ProgressBar // 1: Get list of questions with answers chosen //"Getting Questions and Answer ..." is shown above the bar $prb->setLabelValue('txt1', gT('Getting questions and answers ...')); $prb->moveStep(5); // creates array of post variable names for (reset($_POST); $key = key($_POST); next($_POST)) { $postvars[] = $key; } $data['thisSurveyTitle'] = $thisSurveyTitle; $data['totalrecords'] = $totalrecords; $data['summary'] = $summary; //show some main data at the beginnung // CHANGE JSW_NZ - let's allow html formatted questions to show //push progress bar from 35 to 40 $process_status = 40; //Show Summary results if (isset($summary) && $summary) { //"Generating Summaries ..." is shown above the progress bar $prb->setLabelValue('txt1', gT('Generating summaries ...')); $prb->moveStep($process_status); //let's run through the survey // Fixed bug 3053 with array_unique $runthrough = array_unique($summary); //loop through all selected questions foreach ($runthrough as $rt) { //update progress bar if ($process_status < 100) { $process_status++; } $prb->moveStep($process_status); } // end foreach -> loop through all questions $helper = new statistics_helper(); $statisticsoutput .= $helper->generate_statistics($iSurveyID, $summary, $summary, $publicgraphs, 'html', null, $sLanguage, false); } //end if -> show summary results $data['statisticsoutput'] = $statisticsoutput; //done! set progress bar to 100% if (isset($prb)) { $prb->setLabelValue('txt1', gT('Completed')); $prb->moveStep(100); $prb->hide(); } $redata = compact(array_keys(get_defined_vars())); $data['redata'] = $redata; Yii::app()->getClientScript()->registerScriptFile(Yii::app()->getConfig('generalscripts') . 'statistics_user.js'); $this->renderPartial('/statistics_user_view', $data); //output footer echo getFooter(); //Delete all Session Data Yii::app()->session['finished'] = true; }
$message = '<div id="message"><p><strong>New Module successfully created!</strong></p> <p><strong>List of created files:</strong></p>'; foreach ($toFiles as $file) { $message .= '<p class="file">' . $file . '</p>'; } $message .= '</div>'; } else { $message = '<div id="message"><p>Please fill out all required fields.</p></div>'; } } if (isset($_POST['uninstall'])) { $modulePath = 'app/code/local/' . $vars['capNamespace'] . '/' . $vars['capModule'] . '/'; if (uninstallModule($shop, $modulePath, $toFiles) === true) { clearCache(); $message = '<div id="message"><p><strong>Module successfully uninstalled!</strong></p></div>'; } else { $message = '<div id="message"><p><strong>Couldn\'t find module in Magento installation.</strong></p> <p>After creating a module, you need to run Magento to install all new required tables automatically. Also make sure you deactivate/refresh all Magento caches. Otherwise no new modules will be recognized.</p></div>'; } } } else { $message = '<div id="message">To create a new module, insert Namespace and a Module name (e.g. Blog, Forum, etc.) as well as your design above. If you want it to be installed right away into your Magento, enter your Magento install path.</div>'; } /* * Output */ print getHeader() . $form . $message . getFooter();
?> /images/content/corner-bl.gif);"></div></div> <div class="CornerWrapper-b"><div class="Corner-br" style="background-image:url(<?php echo $layout_name; ?> /images/content/corner-br.gif);"></div></div> </div> </div> </div> <div id="Footer"> <?php $time_end = microtime_float(); $time = $time_end - $time_start; ?> <?php echo getFooter() . '<br/>Page has been viewed ' . $page_views . ' times. Load time: ' . round($time, 4) . ' seconds. Queries: ' . $SQL->getQueriesCount(); ?> </div> </div> <div id="ThemeboxesColumn"> <div id="RightArtwork"> <img id="Monster" src="images/monsters/<?php echo logo_monster(); ?> .gif" onClick="window.location = '?subtopic=creatures&creature=<?php echo logo_monster(); ?> ';" alt="Monster of the Week" /> <img id="PedestalAndOnline" src="<?php echo $layout_name; ?>
function printHTMLFooter() { global $mode, $noHTMLwrappers; if (in_array($mode, $noHTMLwrappers)) { return; } print getFooter(); }
function doFooter() { echo getFooter(); }
function submitRequest() { global $submitErr, $user, $viewmode, $HTMLheader, $mode, $printedHTMLheader; if ($mode == 'submitTestProd') { $data = getContinuationVar(); $data["revisionid"] = processInputVar("revisionid", ARG_MULTINUMERIC); # TODO check for valid revisionids for each image if (!empty($data["revisionid"])) { foreach ($data['revisionid'] as $key => $val) { if (!is_numeric($val) || $val < 0) { unset($data['revisionid']); } } } } else { $data = processRequestInput(1); } if ($submitErr) { $printedHTMLheader = 1; print $HTMLheader; print "<H2>New Reservation</H2>\n"; newReservation(); print getFooter(); return; } // FIXME hack to make sure user didn't submit a request for an image he // doesn't have access to $resources = getUserResources(array("imageAdmin", "imageCheckOut")); $validImageids = array_keys($resources['image']); if (!in_array($data['imageid'], $validImageids)) { $data['imageid'] = array_shift($validImageids); } $showrevisions = 0; $subimages = 0; $images = getImages(); $revcount = count($images[$data['imageid']]['imagerevision']); if ($revcount > 1) { $showrevisions = 1; } if ($images[$data['imageid']]['imagemetaid'] != NULL && count($images[$data['imageid']]['subimages'])) { $subimages = 1; foreach ($images[$data['imageid']]['subimages'] as $subimage) { $revcount = count($images[$subimage]['imagerevision']); if ($revcount > 1) { $showrevisions = 1; } } } if ($data["time"] == "now") { $nowArr = getdate(); if ($nowArr["minutes"] == 0) { $subtract = 0; $add = 0; } elseif ($nowArr["minutes"] < 15) { $subtract = $nowArr["minutes"] * 60; $add = 900; } elseif ($nowArr["minutes"] < 30) { $subtract = ($nowArr["minutes"] - 15) * 60; $add = 900; } elseif ($nowArr["minutes"] < 45) { $subtract = ($nowArr["minutes"] - 30) * 60; $add = 900; } elseif ($nowArr["minutes"] < 60) { $subtract = ($nowArr["minutes"] - 45) * 60; $add = 900; } $start = time() - $subtract; $start -= $start % 60; $nowfuture = "now"; } else { $add = 0; $hour = $data["hour"]; if ($data["hour"] == 12) { if ($data["meridian"] == "am") { $hour = 0; } } elseif ($data["meridian"] == "pm") { $hour = $data["hour"] + 12; } $tmp = explode('/', $data["day"]); $start = mktime($hour, $data["minute"], "0", $tmp[0], $tmp[1], $tmp[2]); if ($start < time()) { $printedHTMLheader = 1; print $HTMLheader; print "<H2>New Reservation</H2>\n"; print "<font color=\"#ff0000\">The time you requested is in the past."; print " Please select \"Now\" or use a time in the future.</font><br>\n"; $submitErr = 1; newReservation(); print getFooter(); return; } $nowfuture = "future"; } if ($data["ending"] == "length") { $end = $start + $data["length"] * 60 + $add; } else { $end = datetimeToUnix($data["enddate"]); if ($end % (15 * 60)) { $end = unixFloor15($end) + 15 * 60; } } // get semaphore lock if (!semLock()) { abort(3); } $availablerc = isAvailable($images, $data["imageid"], $start, $end, $data["os"]); $max = getMaxOverlap($user['id']); if ($availablerc != 0 && checkOverlap($start, $end, $max)) { $printedHTMLheader = 1; print $HTMLheader; print "<H2>New Reservation</H2>\n"; if ($max == 0) { print "<font color=\"#ff0000\">The time you requested overlaps with "; print "another reservation you currently have. You are only allowed "; print "to have a single reservation at any given time. Please select "; print "another time to use the application. If you are finished with "; print "an active reservation, click \"Current Reservations\", "; print "then click the \"End\" button of your active reservation."; print "</font><br><br>\n"; } else { print "<font color=\"#ff0000\">The time you requested overlaps with "; print "another reservation you currently have. You are allowed "; print "to have {$max} overlapping reservations at any given time. "; print "Please select another time to use the application. If you are "; print "finished with an active reservation, click \"Current "; print "Reservations\", then click the \"End\" button of your active "; print "reservation.</font><br><br>\n"; } $submitErr = 1; newReservation(); print getFooter(); return; } // if user is owner of the image and there is a test version of the image # available, ask user if production or test image desired if ($mode != "submitTestProd" && $showrevisions && $images[$data["imageid"]]["ownerid"] == $user["id"]) { #unset($data["testprod"]); $printedHTMLheader = 1; print $HTMLheader; print "<H2>New Reservation</H2>\n"; if ($subimages) { print "This is a cluster environment. At least one image in the "; print "cluster has more than one version available. Please select "; print "the version you desire for each image listed below:<br>\n"; } else { print "There are multiple versions of this environment available. Please "; print "select the version you would like to check out:<br>\n"; } print "<FORM action=\"" . BASEURL . SCRIPT . "\" method=post><br>\n"; if (!array_key_exists('subimages', $images[$data['imageid']])) { $images[$data['imageid']]['subimages'] = array(); } array_unshift($images[$data['imageid']]['subimages'], $data['imageid']); foreach ($images[$data['imageid']]['subimages'] as $subimage) { print "{$images[$subimage]['prettyname']}:<br>\n"; print "<table summary=\"lists versions of the selected environment, one must be selected to continue\">\n"; print " <TR>\n"; print " <TD></TD>\n"; print " <TH>Version</TH>\n"; print " <TH>Creator</TH>\n"; print " <TH>Created</TH>\n"; print " <TH>Currently in Production</TH>\n"; print " </TR>\n"; foreach ($images[$subimage]['imagerevision'] as $revision) { print " <TR>\n"; if (array_key_exists($subimage, $data['revisionid']) && $data['revisionid'][$subimage] == $revision['id']) { print " <TD align=center><INPUT type=radio name=revisionid[{$subimage}] value={$revision['id']} checked></TD>\n"; } elseif ($revision['production']) { print " <TD align=center><INPUT type=radio name=revisionid[{$subimage}] value={$revision['id']} checked></TD>\n"; } else { print " <TD align=center><INPUT type=radio name=revisionid[{$subimage}] value={$revision['id']}></TD>\n"; } print " <TD align=center>{$revision['revision']}</TD>\n"; print " <TD align=center>{$revision['user']}</TD>\n"; print " <TD align=center>{$revision['prettydate']}</TD>\n"; if ($revision['production']) { print " <TD align=center>Yes</TD>\n"; } else { print " <TD align=center>No</TD>\n"; } print " </TR>\n"; } print "</table>\n"; } $cont = addContinuationsEntry('submitTestProd', $data); print "<br><INPUT type=hidden name=continuation value=\"{$cont}\">\n"; print "<INPUT type=submit value=\"Create Reservation\">\n"; print "</FORM>\n"; print getFooter(); return; } if ($availablerc == -1) { $printedHTMLheader = 1; print $HTMLheader; print "<H2>New Reservation</H2>\n"; print "You have requested an environment that is limited in the number "; print "of concurrent reservations that can be made. No further "; print "reservations for the environment can be made for the time you "; print "have selected. Please select another time to use the "; print "environment.<br>"; addLogEntry($nowfuture, unixToDatetime($start), unixToDatetime($end), 0, $data["imageid"]); print getFooter(); } elseif ($availablerc > 0) { $requestid = addRequest(0, $data["revisionid"]); $time = prettyLength($data["length"]); if ($data["time"] == "now") { $cdata = array('lengthchanged' => $data['lengthchanged']); $cont = addContinuationsEntry('viewRequests', $cdata); header("Location: " . BASEURL . SCRIPT . "?continuation={$cont}"); dbDisconnect(); exit; } else { if ($data["minute"] == 0) { $data["minute"] = "00"; } $printedHTMLheader = 1; print $HTMLheader; print "<H2>New Reservation</H2>\n"; if ($data["ending"] == "length") { if ($data['testjavascript'] == 0 && $data['lengthchanged']) { print "<font color=red>NOTE: The maximum allowed reservation "; print "length for this environment is {$time}, and the length of "; print "this reservation has been adjusted accordingly.</font>\n"; print "<br><br>\n"; } print "Your request to use <b>" . $images[$data["imageid"]]["prettyname"]; print "</b> on " . prettyDatetime($start) . " for {$time} has been "; print "accepted.<br><br>\n"; } else { print "Your request to use <b>" . $images[$data["imageid"]]["prettyname"]; print "</b> starting " . prettyDatetime($start) . " and ending "; print prettyDatetime($end) . " has been accepted.<br><br>\n"; } print "When your reservation time has been reached, the <strong>"; print "Current Reservations</strong> page will have further "; print "instructions on connecting to the reserved computer. If you "; print "would like to modify your reservation, you can do that from "; print "the <b>Current Reservations</b> page as well.<br>\n"; print getFooter(); } } else { $cdata = array('imageid' => $data['imageid'], 'length' => $data['length'], 'showmessage' => 1); $cont = addContinuationsEntry('selectTimeTable', $cdata); addLogEntry($nowfuture, unixToDatetime($start), unixToDatetime($end), 0, $data["imageid"]); header("Location: " . BASEURL . SCRIPT . "?continuation={$cont}"); /*print "<H2>New Reservation</H2>\n"; print "The reservation you have requested is not available. You may "; print "<a href=\"" . BASEURL . SCRIPT . "?continuation=$cont\">"; print "view a timetable</a> of free and reserved times to find "; print "a time that will work for you.<br>\n";*/ } }
$id = $post_vars['memberSelect']; $data = getMemberData($post_vars['memberSelect']); $id = $data['id']; $user_name = $data['user_name']; } $upperScripts = $template->getSection('UpperScripts'); $XmlEntities = array('&' => '&', '<' => '<', '>' => '>', ''' => '\'', '"' => '"'); $AdminsOpts = getAdminsOpts(); $membersForm = $template->getSection('MembersForm'); $members_list_form = $template->getSection('MembersListForm'); $showHelp = $template->getSection('MembersShowHelp'); $topNav = $template->getSection('TopNav'); $leftNav = $template->getSection('LeftNav'); $main = $template->getSection('Main'); $navHeader = $template->getSection('NavHeader'); $FooterInfo = getFooter(); $errMsgClass = !empty($msg) ? "ShowError" : "HideError"; $errMsgStyle = $template->getSection($errMsgClass); $noLeftNav = ''; $noTopNav = ''; $noRightNav = $template->getSection('NoRightNav'); $headerTitle = 'Actions:'; $pageTitle = 'My-Program O - Admin Accounts'; $mainContent = $template->getSection('MembersMain'); $mainTitle = "Modify Admin Account Data [helpLink]"; $members_list_form = str_replace('[adminList]', $AdminsOpts, $members_list_form); $mainContent = str_replace('[members_content]', $membersForm, $mainContent); $mainContent = str_replace('[showHelp]', $showHelp, $mainContent); $mainContent = str_replace('[members_list_form]', $members_list_form, $mainContent); $mainContent = str_replace('[user_name]', $user_name, $mainContent); $mainContent = str_replace('[action]', $action, $mainContent);
echo $nav->getNav('bootstrap', 'GT Marine Offshore', false); ?> <div class="landing"> <section class="container"> <h1>Contacts</h1> <article> <h2>Find us.</h2> <p> Insert Google Map stuff here. </p> <iframe width="100%" height="450" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?q=61+Rimsdale+Drive,+Manchester+M400GN,+United+Kingdom&key=AIzaSyCbZ8ZIiV0odrf2ihYsfMeGBCbsl6wnRE8" allowfullscreen></iframe> </article> <article> <h2>article.title</h2> <p> <ul> <li>61 Rimsdale drive</li> <li>Manchester</li> <li>M400GN</li> </ul> </p> </article> </section> </div> </div> <?php echo getFooter(['main.min.js']);
<button type="submit" class="btn insert">Update</button> <button type="button" onclick="window.location='giftGroups.php'" class="btn cancel">Cancel</button> <button type="button" onclick="delete_group('<?php echo $get_group2['id']; ?> ')" id="delete_button" class="btn delete">Delete</button> <script type="text/javascript"> function delete_group(id) { if (confirm("Delete this group?")) { location.href = 'delete_group.php?id=' + id; } } </script> </div> </form> <?php } ?> </section> <?php getFooter();
function yjl_html_gz($c, $css = '', $body_id = '', $menu_id = 0) { global $js_c, $js_scrc, $isupimg, $yjl_tpath, $xqid, $xqdb, $page_title, $r_main, $a_fx, $udb, $is_home, $is_nologin, $is_mce, $yjl_isdebug, $d_l1title; $s = yjl_html_gz_head($c, $css, $body_id, $menu_id); $s .= getFooter(); return $s; }