</div> <div class='settingsRight'> <button type='submit' name='submit' class='submitbutton' id='gravatarbutton' value='changegravatar' >Ändra gravatar</button> </div> <div class='clear'></div> </div> <div class='clear'></div> </form> EOD; $leftBody = ""; $rightBody = "<a href='?p=installp'>Installera</a>"; //echo $body; //--------------------------------------------------------------------------------------------- // // printing out the page // $title = "Installera"; $layout = ""; require_once('src/CHTMLPage.php'); $page = new CHTMLPage(); $page->PrintPage($title, $subHeader, $leftBody, $centerBody, $rightBody); ?>
// Om debug så visa formuläret färdigifyllt. $mainTextHTML .= "<a title='Vidare' href='?p=show_usr&id={$idPerson}'\n tabindex='1'><img src='../images/b_enter.gif' alt='Vidare' /></a>\n <br />\r\n"; } else { // Annars hoppa vidare. header('Location: ' . WS_SITELINK . "?p=topics"); exit; } } else { // If no submit it's read the calendar file. // Öppna filen kalender.txt och läs in den i $calendar. $calendar = file_get_contents($calendarPath); } /* * Skriv ut sidan. */ $page = new CHTMLPage(); $pageTitle = "Editera kalender"; // Ladda javascript för NicEdit och skriv ut formuläret. $mainTextHTML .= <<<HTMLCode <script src="./src/nicEdit.js" type="text/javascript"></script> <script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas); </script> <form action="?p=edit_cal" method="post" > <h1>{$pageTitle}</h1> <textarea name="calendar" rows='20' cols='50' maxlength='65535'> {$calendar}</textarea> <input type="submit" name="submitBtn" class="sbtn" value="Spara" /> <input type="button" value="Cancel" onclick="location='?p=topics'" /> </form>
$leftBody = <<< EOD EOD; $centerBody = ""; $rightBody = <<<EOD EOD; //echo $body; $mysqli->close(); header('Location: ' . WS_SITELINK . "?p=showmessage"); exit; //--------------------------------------------------------------------------------------------- // // printing out the page // require_once('src/CHTMLPage.php'); $page = new CHTMLPage(); $page->printHTMLHeader(WS_TITLE); $page->printPageHeader(); $page->printPageBody($leftBody, $centerBody, $rightBody); $page->printPageFooter(); ?>
<?php /////////////////////////////////////////////////////////////////////////////////////////////////// // // PWork.php // Ändra WS_WORK i config.php till TRUE när du arbeter med siten. // /////////////////////////////////////////////////////////////////////////////////////////////////// // Skriv ut sidan. $page = new CHTMLPage(); $pageTitle = "Omarbete pågår"; $mainTextHTML = <<<HTMLCode <h1>Omarbete pågår!</h1> <h2>Kom tillbaka lite senare, tack.</h2> <img src='../images/vagarbete.gif' /> HTMLCode; $page->printPage($pageTitle, $mainTextHTML, "", ""); ?>
// Text field $mainTextHTML = <<<HTMLCode <div class='textField'> {$row->parameter1Field} </div> HTMLCode; break; case '2': // Image field $mainTextHTML = <<<HTMLCode <div class='imageField'> <img src='{$row->parameter1Field}' alt='{$row->parameter2Field}' /> </div> HTMLCode; break; default: } $result->close(); } } else { $mainTextHTML = <<<HTMLCode <p>Det finns inget inlagt på sidan än.</p> HTMLCode; } /////////////////////////////////////////////////////////////////////////////////////////////////// // Generate the page. $page = new CHTMLPage($style); $page->printPage($header, $mainTextHTML, "", ""); ?>