Esempio n. 1
0
/**
 * The structure of the page.
 *
 * @param $title The title of the page
 */
function main($title = "")
{
    $f = new FormLib("error", HORIZONTAL);
    require "includes/header.php";
    showContent($title, $f);
    require "includes/footer.php";
}
Esempio n. 2
0
function main($title = "")
{
    $f = new FormLib();
    if (isset($_POST["submitTest"])) {
        require_once "includes/dbconvars.php";
        @($db = mysql_connect($dbhost, $dbuser, $dbpwd)) or die("Could not connect");
        @mysql_select_db($dbname, $db) or die("Could not select database");
        checkForm($f, $db);
        if (!$f->isError()) {
            // data is OK
            processData($f, $db);
            $refPage = DEFAULT_PAGE;
            if (isset($_SESSION["refPage"])) {
                $refPage = $_SESSION["refPage"];
                // Session var no longer needed
                unset($_SESSION["refPage"]);
            }
            redirect($refPage);
        }
        mysql_close($db);
    }
    include "includes/header.php";
    showContent($title, $f);
    include "includes/footer.php";
}
Esempio n. 3
0
function main($title = "")
{
    $f = new FormVerifier();
    $errors = "";
    if (isset($_POST["submitTest"])) {
        $errors = checkForm($f);
        if (!$errors) {
            processData($f);
            echo "Thank you for your order<br />";
            print "Estimated delivery date is " . shipDate();
        }
    }
    include "includes/header.php";
    showContent($title, $f);
    include "includes/footer.php";
}
Esempio n. 4
0
function main($title = "")
{
    $redirect = "login.php";
    $other = "<meta http-equiv=\"Refresh\"";
    $other .= "content=\"5;URL={$redirect}\" />\n";
    $user = "";
    if (isset($_SESSION['user'])) {
        $user = $_SESSION['user'];
    }
    $_SESSION = array();
    if (isset($_COOKIE[session_name()])) {
        setcookie(session_name(), '', time() - 86400, '/');
    }
    session_destroy();
    include "includes/header.php";
    showContent($title, $redirect, $user);
    include "includes/footer.php";
}
Esempio n. 5
0
/**
 * Controls the operation of the page
 *
 * @param $title Page title
 */
function main($title = "")
{
    $f = new FormLib();
    require_once "includes/dbconvars.php";
    $dbCnx = mysql_connect($dbhost, $dbuser, $dbpwd) or die(mysql_error());
    mysql_select_db($dbname, $dbCnx) or die(mysql_error());
    if (isset($_POST["submitTest"])) {
        processData($f);
        $refPage = $_SESSION['PHP_SELF'];
        if (isset($_SESSION["refPage"])) {
            $refPage = $_SESSION["refPage"];
        }
    }
    include "includes/header.php";
    showContent($title, $f);
    include "includes/footer.php";
    mysql_close($dbCnx);
}
Esempio n. 6
0
function main($title = "")
{
    $f = new FormVerifier();
    if (isset($_POST["submitTest"])) {
        checkForm($f);
        if (!$f->isError()) {
            // data is OK
            processData($f);
            $refPage = DEFAULT_PAGE;
            if (isset($_SESSION["refPage"])) {
                $refPage = $_SESSION["refPage"];
            }
            redirect($refPage);
            // return to sender
        }
    }
    include "includes/header.php";
    showContent($title, $f);
    include "includes/footer.php";
}
Esempio n. 7
0
/**
 * The structure of the page.
 *
 * $title The title of the page
 */
function main($title = "")
{
    $db = new DB();
    if (isset($_REQUEST['add'])) {
        $pid = $_REQUEST['add'];
        addItem($db, $pid);
    } else {
        if (isset($_REQUEST['del'])) {
            $pid = $_REQUEST['del'];
            deleteItem($db, $pid);
        } else {
            if (isset($_REQUEST['update'])) {
                $pid = $_REQUEST['update'];
                updateItem($db, $pid);
            }
        }
    }
    $other = getJavaScript();
    include "includes/header.php";
    showContent($title, $db);
    include "includes/footer.php";
}
Esempio n. 8
0
/**
 * Show steps for procedure
 *
 * @param $procedure
 */
function showStepsForProcedure($procedure)
{
    if (isset($procedure['steps']) && !empty($procedure['steps'])) {
        $procedureSteps = $procedure['steps'];
        echo '<ul>';
        foreach ($procedureSteps as $key => $step) {
            $previousStepKind = null;
            $nextStepKind = null;
            $lastStepKind = null;
            //check previous and next steps kind
            if ($key > 0) {
                $lastStepIndex = count($procedureSteps) - 1;
                $previousStepIndex = $key - 1;
                $nextStepIndex = $key + 1;
                $previousStepKind = $procedureSteps[$previousStepIndex]['kind'];
                if ($key != $lastStepIndex) {
                    $nextStepKind = $procedureSteps[$nextStepIndex]['kind'];
                }
            }
            $stepDetails = $step['value'];
            $stepKind = $step['kind'];
            //based on step's kind display steps at appropriate nesting levels
            switch ($stepKind) {
                case 'substep':
                    echo $previousStepKind == 'step' ? '<ul>' : '';
                    echo '<li>';
                    //show step content
                    showContent($stepDetails, $stepKind);
                    echo '</li>';
                    echo $nextStepKind == 'step' || $key == $lastStepIndex ? '</ul>' : '';
                    break;
                default:
                    echo '<li>';
                    //show step content
                    showContent($stepDetails, $stepKind);
                    echo '</li>';
            }
        }
        echo '</ul>';
    }
}
Esempio n. 9
0
" 
            tabindex="12" />
            <button id="reset" type="reset" value="X"></button>
            <button id="search" type="submit" value="GO" tabindex="13"></button>
          </div></form>
      </div>
      
    </div>
    <!-- HEADER END -->
    

    
    

    <div id="content">
      <?php 
showContent();
?>

    </div>

    <div id="footer">
      <div>
        Copyright the Clearview team
        <a href="http://validator.w3.org/check?uri=referer"><img id="validate-xhtml" src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
      </div>
    </div>
    
  </body>
  
</html>
Esempio n. 10
0
/**
 * The structure of the page.
 *
 * @param $title The title of the page
 */
function main($title = "")
{
    include "includes/header.php";
    showContent($title);
    include "includes/footer.php";
}
Esempio n. 11
0
<?php

defined('_JEXEC') or die('Restricted Access');
require_once JApplicationHelper::getPath('admin_html');
JTable::addIncludePath(JPATH_COMPONENT . DS . 'tables');
switch ($task) {
    case 'edit':
        editContent($option);
        break;
    case 'apply':
    case 'save':
        saveContent($option, $task);
        break;
    default:
        showContent($option);
        break;
}
function _displayError($row)
{
    echo "<script type=\"text/javascript\"> alert('" . $row->getError() . "'); window.history.go(-1);</script>\n";
    exit;
}
function editContent($option)
{
    $row =& JTable::getInstance('saasycontent', 'Table');
    $cid = JRequest::getVar('cid', array(0), '', 'array');
    $id = $cid[0];
    $row->load($id);
    $db = JFactory::getDBO();
    HTML_saasy::editContent($row, $option);
}
Esempio n. 12
0
            }
            if ($_FILES["file"]["size"] > 500000) {
                $content .= "Sorry, your file is too large.";
                $uploadOk = 0;
            }
            $extension = @explode('.', $_FILES['file']['name']);
            $extension = @end($extension);
            if ($extension == '' || $extension == 'php' || $extension == 'htaccess' || $extension == 'pl' || $extension == 'py' || $extension == 'c' || $extension == 'cpp' || $extension == 'ini' || $extension == 'html') {
                $content .= "Sorry, invalid extension.";
                $uploadOk = 0;
            }
            if ($uploadOk) {
                if (move_uploaded_file($_FILES["file"]["tmp_name"], $target_file)) {
                    $content .= "The file " . htmlentities(basename($_FILES["file"]["name"]), ENT_QUOTES) . " has been uploaded.";
                } else {
                    $content .= "Sorry, there was an error uploading your file.";
                }
            }
        }
        $title = 'Upload Image';
        $content .= '<form method="post" enctype="multipart/form-data">
            Image: <input type="file" name="file" id="file">
            <input type="submit" value="Submit" name="submit" />
        </form>';
        break;
    case 'view':
        //todo
        break;
}
echo showContent($title . ' - Admin Panel', $content);
Esempio n. 13
0
            </div>
            <div class="volup">
              <p class="volupZ"></p>
            </div>
            <div class="vbar">
              <div class="bar" ></div>
            </div>
          </div>
          <div class="scrubberZ">
            <div class="progressZ"></div>
            <div class="loadedZ"></div>
          </div>
          <div class="timeZ"> <em class="playedZ">00:00</em>/<strong class="durationZ">00:00</strong> </div>
          <div class="error-messageZ"></div>
        </div>
      </div>
      
      <!--Playlist -->
      <ul data-role="listview" data-filter="true" id="playlist">
        <?php 
showContent($actpath);
?>
      </ul>
    </div>
  </div>
  <div data-role="footer">
    <h4>NMT Cloudplayer  -  Version: 0.4 beta</h4>
  </div>
</div>
</body>
</html>
function showMdlCol($authorise, $startdate)
{
    if ($authorise == "ADMIN") {
        $edate = null;
        $year = null;
        $arrSerField = array("By Date", "By Month", "By Year", "By Event");
        $arrMonField = array("--Select--", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
        ?>
    <table>
      <tr>
        <td class="alignHeading">
          <h3>EVENT LIST</h3>
        </td>
      </tr>
      <tr>
        <td>
          <form action="listeventlog.php"  onsubmit="javascript:return validateListEvent(true)"
                method="GET">
            <table class="formSubmitTable">
              <tr>
                <td class="formLabel">
                  List By
                </td>
                <td class="formContent">
                  <select name="List" id="cmpList" onchange="javascript:displayRow('true')">
                    <?php 
        for ($intCount = 0; $intCount < count($arrSerField); $intCount++) {
            if (isset($_GET['List'])) {
                if ($arrSerField[$intCount] == $_GET['List']) {
                    echo '<option selected value="' . $arrSerField[$intCount] . '">' . $arrSerField[$intCount] . '</option>';
                } else {
                    echo '<option  value="' . $arrSerField[$intCount] . '">' . $arrSerField[$intCount] . '</option>';
                }
            } else {
                echo '<option  value="' . $arrSerField[$intCount] . '">' . $arrSerField[$intCount] . '</option>';
            }
        }
        ?>
                  </select>
                </td>
              </tr>
              <?php 
        if (isset($_GET['List'])) {
            if ($_GET['List'] == 'By Event') {
                echo '<tr  id="Event">';
            } else {
                echo '<tr class="hideTr" id="Event">';
            }
        } else {
            echo '<tr class="hideTr" id="Event">';
        }
        echo '<td class="formLabel" > ';
        $arrEventField[0] = '--Select--';
        $intcount = 1;
        $Eresult = mysql_query("select distinct(event) from eventlog ") or die(mysql_error());
        while ($erow = mysql_fetch_array($Eresult)) {
            $arrEventField[$intcount] = $erow['event'];
            $intcount++;
        }
        echo '<label>Event</label>
						   </td>
	         			   <td class="formContent">';
        echo '<select name="cmpEventList" id="cmpEventList">';
        for ($intCount = 0; $intCount < count($arrEventField); $intCount++) {
            if (isset($_GET['cmpEventList'])) {
                if ($arrEventField[$intCount] == $_GET['cmpEventList']) {
                    echo '<option selected value="' . $arrEventField[$intCount] . '">' . $arrEventField[$intCount] . '</option>';
                } else {
                    echo '<option value="' . $arrEventField[$intCount] . '">' . $arrEventField[$intCount] . '</option>';
                }
            } else {
                echo '<option selected value="' . $arrEventField[$intCount] . '">' . $arrEventField[$intCount] . '</option>';
            }
        }
        echo '</select>
							</td>
						</tr>';
        if (isset($_GET['List'])) {
            if ($_GET['List'] == 'By Month') {
                echo '<tr  id="Month">';
            } else {
                echo '<tr class="hideTr" id="Month">';
            }
        } else {
            echo '<tr class="hideTr" id="Month">';
        }
        echo '<td class="formLabel">';
        echo '<label>Month</label>
							</td>
					  		<td class="formContent">';
        echo '<select name="stMonth" id="cmpMonth">';
        for ($intCount = 0; $intCount < count($arrMonField); $intCount++) {
            if (isset($_GET['stMonth'])) {
                if ($arrMonField[$intCount] == $_GET['stMonth']) {
                    echo '<option selected value="' . $arrMonField[$intCount] . '">' . $arrMonField[$intCount] . '</option>';
                } else {
                    echo '<option  value="' . $arrMonField[$intCount] . '">' . $arrMonField[$intCount] . '</option>';
                }
            } else {
                echo '<option  value="' . $arrMonField[$intCount] . '">' . $arrMonField[$intCount] . '</option>';
            }
        }
        echo '</select> ';
        if (isset($_GET['MYear'])) {
            $year = $_GET['MYear'];
        }
        if ($year == null) {
            $year = "";
        }
        echo ' <input class="eventAlignInput" name="MYear" size="5"
										type="text" id="txtYear1" value="' . $year . '"  maxlength="4">[YYYY]
							</td>
						</tr>';
        if (isset($_GET['List'])) {
            if ($_GET['List'] == 'By Year') {
                echo '<tr  id="Year">';
            } else {
                echo '<tr class="hideTr" id="Year">';
            }
        } else {
            echo '<tr class="hideTr" id="Year">';
        }
        echo '<td class="formLabel">';
        echo '<label >Year</label>
							</td>
	            			<td class="formContent">';
        if (isset($_GET['ipYear'])) {
            $year = $_GET['ipYear'];
        }
        if ($year == null) {
            $year = "";
        }
        echo '<input name="ipYear" size="5" type="text"
									id="txtYear2" maxlength="4" value="' . $year . '">[YYYY]
							</td>
						</tr>';
        if (isset($_GET['List'])) {
            if ($_GET['List'] == 'By Date') {
                echo '<tr  id="Date">';
            } else {
                echo '<tr class="hideTr" id="Date">';
            }
        } else {
            echo '<tr class="showTr" id="Date">';
        }
        echo '<td class="formLabel">';
        echo '<label id="lblStartDate">StartDate</label>
							</td>
							<td class="formContent">';
        if (isset($_GET['Datestart'])) {
            $edate = $_GET['Datestart'];
        }
        if ($edate == null) {
            $edate = $startdate;
        }
        echo '<input name="Datestart" size="8" type="text"
									id="txtDatestart" maxlength="10" value="' . $edate . '" >
									[DD/MM/YYYY]
								<div class="dsplyWarning" id="errDate1">
						  	</div>

							</td>
						</tr>';
        if (isset($_GET['List'])) {
            if ($_GET['List'] == 'By Date') {
                echo '<tr  id="Date1">';
            } else {
                echo '<tr class="hideTr" id="Date1">';
            }
        } else {
            echo '<tr class="showTr" id="Date1">';
        }
        echo '<td class="formLabel">';
        echo '<label >EndDate</label>
							</td>
            				<td class="formContent">';
        if (isset($_GET['Dateclose'])) {
            $edate = $_GET['Dateclose'];
        } else {
            $edate = date("d/m/Y");
        }
        echo '<input name="Dateclose" size="8" type="text"
									id="txtDateclose" maxlength="10"  value="' . $edate . '">
									[DD/MM/YYYY]
								<div class="dsplyWarning" id="errDate2">
						  	</div>
							</td>
						</tr>
	         			<tr>
							<td class="formLabel">
							</td>
							<td class="formContent">
								<div class="dsplyWarning" id="errPage">
										 </div>';
        ?>
              </td>
              </tr>
              <tr>
                <td class="formLabel">
                </td>
                <td class="formContent">
                  <input class="subButton" type="submit" name="submit" value="Submit">
                </td>
              </tr>
            </table>
          </form>
        </td>
      </tr>
      <tr id="trDisplay">
        <td>
          <?php 
        if (isset($_GET['submit'])) {
            $val = "";
            $event = $_GET['cmpEventList'];
            $year = $_GET['ipYear'];
            $month = $_GET['stMonth'];
            $startdate = $_GET['Datestart'];
            $enddate = $_GET['Dateclose'];
            if ($_GET['List'] == 'By Event') {
                showContent($authorise, $event, 4);
            } else {
                if ($_GET['List'] == 'By Month') {
                    $val = getMonthByIntVal($month);
                    showContent($authorise, $val, 1);
                } else {
                    if ($_GET['List'] == 'By Year') {
                        showContent($authorise, $year, 2);
                    } else {
                        showContent($authorise, $startdate, 3);
                    }
                }
            }
        } else {
            $arrDate = strtEndDateMonthDiff();
            $startdate = $arrDate[0];
            $enddate = $arrDate[1];
            showContent($authorise, $startdate, 3);
        }
        ?>
        </td>
      </tr>
    </table>
    <?php 
    } else {
        echo '<h3>You are not Authorised to view this page</h3>';
    }
}
Esempio n. 15
0
			font-family: cursive;
			font-size: 22px;
		}

		div:nth-child(even) {
			margin: 10px 0px;
			padding: 0px 25px;
			background-color: azure;
			color: midnightblue;
			text-align: right;
			font-family: Georgia;
			font-size: 22px;
		}

	</style>
</head>
<body>
	<form action="index.php" method="post">
		<p>Enter your name</p>
		<input type="text" name="userName"><br><br><br>
		<p>Leave comment</p>
		<textarea name="userMessage" id="" cols="70" rows="10"></textarea><br><br><br>
		<input name="submit" type="submit" value="submit">
	</form>
</body>
</html>
<?php 
$messages = getContent();
$messages = addContent($messages);
showContent($messages, blockContent());
Esempio n. 16
0
 */
?>
<ul>
		<li>
			<h2 class="tab">Make CSS</h2>
			<div><?php 
$this->scssInclude($this->_folder);
?>
</div>
		</li>
	<?php 
for ($i = 0; $i < $max; $i++) {
    if (!is_array($FILES[$i])) {
        ?>
		<li><h2 class="tab"><?php 
        echo $FILES[$i];
        ?>
</h2>
		<div><textarea name="<?php 
        echo $FILES[$i];
        ?>
"><?php 
        showContent($this->_projectFolder . $this->_folder . "/scss/_" . $FILES[$i] . ".scss");
        ?>
</textarea></div>
		</li>
	<?php 
    }
}
?>
	</ul>
Esempio n. 17
0
        <div>
            <ul>
                <li><a class='active' href="index.php">Гостевая книга</a></li>
                <li><a href="admin.php">Админ панель</a></li>
            </ul>
        </div>
    </nav>
    <article id="article">
        <form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" method="POST">
            <h1>Гостевая книга</h1>
            <input id="login" type="text" name="userName" placeholder="Введите свое Имя">
            <textarea id="pass" name="userMessage" cols="40" rows="3" placeholder="Оставьте свой коментарий"></textarea>
            <input id="submit-button" type="submit" name="submit" value="Отправка">
        </form>


            <?php 
$messages = getContent(DB);
if (is_array($messagesNew = addContent(DB, $messages))) {
    showContent($messagesNew);
} else {
    showContent($messages, $messagesNew);
}
?>
        </div>
    </article>
</body>
</html>
Esempio n. 18
0
        $content .= '
        <h3>URL Not working</h3>
        Found an URL that doesn\'t work? Please submit it using the form below and one of our representatives will review the submission as fast as possible.<br>
        <form method="post">
        URL:<input type="text" name="url-bad" value="" /><br>
        Captcha: <input name="captcha" type="text">
        <img src="captcha.php" /><br>
        <input type="submit" name="submit" value="Submit" />
        </form>

        <h3>General Contact Form</h3>
        Our general contact form is temporarily disabled due to technical difficulties. Please come back later.';
        $title = 'Contact Page';
        break;
    case 'about':
        $content = 'Super Secure Company (SSC) LLC is a multi-million dollar company founded in 1937 which delivers extremly good products for nice people in over 137 countries. Last year SSC LLC became the largest provider of awesome goods in the world, with over 133.337.456 products sold world wide. Some our pretty amazing products: <br><br>';
        $title = 'About us';
        break;
    case '':
    default:
        $title = 'Super Secure Company LLC';
        $content = 'Super Secure Company (SSC) LLC is a multi-million dollar company founded in 1937 which delivers extremly good products for nice people in over 137 countries. Last year SSC LLC became the largest provider of awesome goods in the world, with over 133.337.456 products sold world wide. Some our pretty amazing products: <br><br>';
        foreach ($products as $prod) {
            $content .= getProduct($prod);
            //todo replace below links
            $content .= '<br><a href="mailto:your-friend@gmail.com?body=' . urlencode('Nice product http://10.13.37.13/?page=product&prod=' . $prod) . '">Send Mail to a Friend</a> | <a href="http://10.13.37.13/?page=print&load_template=1&url=' . base64_encode('http://10.13.37.13/?page=product&prod=' . $prod) . '">Details</a>';
        }
        break;
}
echo showContent($title, $content);
Esempio n. 19
0
include_once "msgs.lib";
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="linkCes"> <a href="Cens.php">Администрирование сайта</a></div><br>
<div class="inputMessage">
<form method="post" action="index.php">
    <h2>Введите свое имя</h2>
    <input class="textarea" type = "text" name = "userName">
    <h3>Оставьте свой коментарий</h3>
    <textarea class="textarea" name="userMessage" rows="7" cols="75" placeholder="Введите сообщение"></textarea>
    <br><br>
<input type="submit" name="submit" value="Отправить"><br><br>
</form>
</div>
<div class="chat">
<?php 
$messages = getContent();
$messages = addContent($messages);
$messages = censContent($messages);
showContent($messages);
?>
</div>
</body>
</html>
Esempio n. 20
0
<body>
    <div id="outerHeader">&nbsp;</div>
	<div id="main">
    <div id="title">
    	<?php showTitle(); ?>
    </div>
    <div id="banner">
        <?php showBanner(); ?>
    </div>
    <div id="container">
    	<div id="content">
            <div id="leftMargin">
                <?php showLeftBar(); ?>    
            </div>
            <?php showRightBar(); ?>
            <div id="topToolbar" class="ajax">
                <?php showTopToolbar(); ?>
            </div>
            <div id="bodyContent" class="ajax">
                <?php showContent(); ?>
            </div>
            <div id="innerFooter">
                <?php showFooter(); ?>
            </div>
    	</div>
    </div>
    <div id="outerFooter"><?php showOuterFooter(); ?></div>
</body>
</html>