<?php $layout_context = "admin"; $active_menu = "admin"; $stylesheets = ""; $javascript = ""; include "../includes/layouts/header_2.php"; include "../includes/layouts/nav.php"; ?> <div class="row"> <?php echo message(); ?> <?php echo form_errors($errors); ?> </div> <div class="col-md-6 col-md-offset-2 col-lg-6 col-md-offset-2"> <div class ="background_light_blue"> <form id="" class="form-horizontal" action="<?php echo $_SERVER['PHP_SELF']; ?> " method="POST"> <!-- <li> <a href="index.php">« Public area</a><br /> </li>-->
$ausgaben["inaccessible"] = "inaccessible values:<br />"; $ausgaben["inaccessible"] .= "# (error_result) #(error_result)<br />"; $ausgaben["inaccessible"] .= "# (error_captcha) #(error_captcha)<br />"; $ausgaben["inaccessible"] .= "# (error_dupe) #(error_dupe)<br />"; $ausgaben["inaccessible"] .= "# (success) #(success)<br />"; $ausgaben["inaccessible"] .= "# (referer) #(referer)<br />"; } else { $ausgaben["inaccessible"] = ""; } // wohin schicken #n/a // +++ // page basics if ($environment["parameter"][2] == "verify" && ($HTTP_POST_VARS["send"] != "" || $HTTP_POST_VARS["extension1"] != "" || $HTTP_POST_VARS["extension2"] != "")) { // form eigaben pruefen form_errors($form_options, $HTTP_POST_VARS); if (is_array($cfg["kontakt"]["captcha"])) { if ($_POST["captcha_proof"] != crc32($_POST["captcha"] . $cfg["kontakt"]["captcha"]["randomize"]) || !file_exists($captcha_path_srv . "captcha-" . $_POST["captcha_proof"] . ".png")) { $ausgaben["form_error"] .= "#(error_captcha)"; $dataloop["form_error"]["captcha"]["text"] = "#(error_captcha)"; $hidedata["captcha"]["class"] = "form_error"; $hidedata["form_error"] = array(); } if (file_exists($captcha_path_srv . "captcha-" . $_POST["captcha_proof"] . ".png")) { unlink($captcha_path_srv . "captcha-" . $_POST["captcha_proof"] . ".png"); } } // evtl. zusaetzliche datensatz anlegen if ($ausgaben["form_error"] == "") { // kunde if ($HTTP_POST_VARS[$cfg["kontakt"]["email"]["form_email_feld"]] == "") {
} $_SESSION["errors"] = array(); $_SESSION["message"] = ""; login_process(); ?> <login> <h1>Login</h1> <?php echo $_SESSION["message"]; ?> <br /> <?php echo form_errors($_SESSION["errors"]); ?> <form action="login.php" method="post"><br /> Name: <br /><input type="text" name="username" value=" <?php if (isset($_SESSION["username"])) { echo htmlspecialchars($_SESSION["username"]); } ?> "/> <br />Password:<br /><input type="password" name="password" value="" /><br /><br /> <input class="big" type="submit" name="submit" value="Login"/><br /><br /> <a href="signup.php"> Do not have an account? Sign up!</a> </form>
include_partial('home/homeSide'); ?> <div class="col-main"> <div class="col-box col-box-top block"> <h2>Request a New Password</h2> <p> Did you forget your password? <p> Enter your username and you will receive a new password by email. </p> <?php echo form_errors(); ?> <?php echo form_tag('@request_password', array('class' => 'block')); ?> <ul> <li><span class="lbl"><?php echo label_for('username', 'Username'); ?> </span> <span class="fld medium"><?php echo input_tag('username', '', array('class' => 'textfield')); ?> </span>
// bereich im template sichtbar machen $hidedata[$cfg["autoform"]["location"][$environment["ebene"]]["db"]][0] = "enable"; $hidedata["form"][0] = "enable"; // "form referer" if ($_POST["last_viewed"] != "") { $ausgaben["last_viewed"] = $_POST["last_viewed"]; } else { $ausgaben["last_viewed"] = $_SERVER["HTTP_REFERER"]; } // +++ // funktions bereich // page basics // *** if ($environment["parameter"][1] == "verify" && $_POST["send"] != "") { // form eigaben pruefen form_errors($form_options, $_POST); // hier wird die captcha-eingabe geprueft if ($cfg["autoform"]["location"][$environment["ebene"]]["captcha"]) { if ($_POST["captcha_proof"] != crc32($_POST["captcha"] . $cfg["autoform"]["captcha"]["randomize"]) || !file_exists($captcha_path_srv . "captcha-" . $_POST["captcha_proof"] . ".png")) { $ausgaben["form_error"] .= "#(error_captcha)"; $dataloop["form_error"]["captcha"]["text"] = "#(error_captcha)"; $hidedata["captcha"]["class"] = "form_error"; } if (file_exists($captcha_path_srv . "captcha-" . $_POST["captcha_proof"] . ".png")) { unlink($captcha_path_srv . "captcha-" . $_POST["captcha_proof"] . ".png"); } } // hier erfolgt der mail-versand bzw db-eintrag if ($ausgaben["form_error"] == "") { if ($mail_order == -1) { if ($confirm == -1) {
$img_var = basename($_FILES["img"]["name"]); move_uploaded_file($_FILES["img"]["tmp_name"], $target_file); //image upload $name_fields_presence = array("username", "password", "email", "first_name", "last_name", "pno", "employement", "employer", "street", "city", "state", "zip", "fax", "street1", "zip1", "fax1"); all_prestnt($name_fields_presence); //values are present or not $fields_max_length = array("username" => 20, "password" => 40, "first_name" => 20, "last_name" => 20, "pno" => 15); validate_max_lengths($fields_max_length); //max length check $fields_min_length = array("username" => 8, "password" => 8, "email" => 8, "pno" => 9); validate_min_lengths($fields_min_length); if (!preg_match('/^[a-z0-9_-]+@[a-z0-9._-]+\\.[a-z]+$/i', $email)) { $errors["email"] = " wrong" . ucfirst("email") . " pattern "; } //email format checking//for email varification; $output = form_errors($errors); //end of validations if (!$output) { $activate = md5(uniqid(rand(), true)); //creating new unique activation code $q = "UPDATE reg SET user_name='{$username}', \n\t\t\t\t\tpassword='******', \n\t\t\t\t\temail_id='{$email}', \n\t\t\t\t\tfirst_name='{$first_name}', \n\t\t\t\t\tlast_name='{$last_name}', \n\t\t\t\t\tmiddle_name='{$middle_name}', \n\t\t\t\t\tph_no='{$pno}', \n\t\t\t\t\temployement='{$employement}', \n\t\t\t\t\temployer='{$employer}', \n\t\t\t\t\tstreet='{$street}', \n\t\t\t\t\tcity='{$city}', \n\t\t\t\t\tstate='{$state}', \n\t\t\t\t\tzip='{$zip}', \n\t\t\t\t\tfax='{$fax}', \n\t\t\t\t\tstreet1='{$street1}', \n\t\t\t\t\tcity1='{$city1}', \n\t\t\t\t\tstate1='{$state1}', \n\t\t\t\t\tzip1='{$zip1}', \n\t\t\t\t\tfax1='{$fax1}', \n\t\t\t\t\tcomment='{$comment}', \n\t\t\t\t\tdob='{$dob}', \n\t\t\t\t\timg='{$img_var}' WHERE id='{$id}'"; if (mysqli_query($connection, $q)) { header("Location:detail.php"); } else { ?> <div class="colo"><?php echo "Error: " . $q . "<br>" . mysqli_error($connection); ?> </div><?php } } else {
$ausgaben["form_referer"] = $HTTP_GET_VARS["referer"]; $ausgaben["form_break"] = $ausgaben["form_referer"]; } elseif ($HTTP_POST_VARS["form_referer"] == "") { $ausgaben["form_referer"] = $_SERVER["HTTP_REFERER"]; $ausgaben["form_break"] = $ausgaben["form_referer"]; } else { $ausgaben["form_referer"] = $HTTP_POST_VARS["form_referer"]; $ausgaben["form_break"] = $ausgaben["form_referer"]; } if ($environment["parameter"][2] == "verify") { // form eingaben prüfen #bugfix#form_errors( $form_options, $HTTP_POST_VARS ); #echo "<pre>"; #print_r($form_values); #echo "</pre>"; form_errors($form_options, $form_values); // ohne fehler sql bauen und ausfuehren if ($ausgaben["form_error"] == "") { #echo "ja"; $kick = array("PHPSESSID", "submit", "image", "image_x", "image_y", "form_referer", "add", "add_x", "add_y", "delete", "delete_x", "delete_y", "akfggeb", "akfgstart"); foreach ($form_values as $name => $value) { if (!in_array($name, $kick) && !strstr($name, ")")) { if ($sqla != "") { $sqla .= ", "; } $sqla .= $name . "='" . $value . "'"; } } // Sql um spezielle Felder erweitern $sql = "update " . $cfg["db"]["entries"] . " SET " . $sqla . " WHERE " . $cfg["db"]["key"] . "='" . $wert . "'"; if ($debugging["html_enable"]) {
<li><a href="search.php" class="button">Search</a></li> </ul> </div> </section> </header> <!-- Main --> <article id="main"> <section class="wrapper style5"> <div class = "container-body"> <div class="inner"> <?php echo message(); ?> <?php echo form_errors(error_messages()); ?> <section> <form method="post" action="#"> <?php if (isset($_GET["jumperid"])) { $query = "Select * from jumperdr where intJumperID = {$_GET["jumperid"]} limit 1"; $result = mysqli_query($connection, $query); if (!$result) { die("database failed at layou1_edit form starting." . mysqli_error($connection)); } $row = mysqli_fetch_assoc($result); $query2 = "Select * from tabTag where chUnit = '{$row["chUnit"]}' and vcSubSystem = '{$row["vcSubsystem"]}' and vcSystem = '{$row["vcSystem"]}' and vcSystemNo = '{$row["vcSystemNo"]}' and vcEqpt = '{$row["vcEqpt"]}' and vcEqptNo = '{$row["vcEqptNo"]}'"; $result2 = odbc_exec($connection2, $query2); if (!$result2) { die("database odbc failed at layou1_edit form starting.");
<title>EDFC | Admin - Add an Event</title> <link rel="stylesheet" href="../css/normalize.css"/> <link rel="stylesheet" href="../css/foundation.css" /> <link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"/></head> <body> <div class="small-12 medium-12 large-12 columns cms_section"> <h2>Add an Event</h2> <?php if (!empty($message)) { echo "<div class=\"admin_message\">" . $message . "</div>"; } if (!empty($errors)) { echo "<div class=\"admin_message\">" . form_errors($errors) . "</div>"; } ?> <form action="admin_addEvent.php" method="post" enctype="multipart/form-data"> <label>Event name:</label> <input type="text" name="name" value=""> <label>Event date</label> <select name="month" id="month"> <option value="">--Month--</option> <option value="01">January</option> <option value="02">February</option> <option value="03">March</option> <option value="04">April</option> <option value="05">May</option> <option value="06">June</option>
</h1> <?php } else { ?> <h1>Create New Post</h1> <?php } ?> <?php echo form(); ?> <?php echo form_errors('*'); ?> <div> <?php echo label('title', 'Title: '); ?> <?php echo input('title'); ?> </div> <div> <?php echo label('content', 'Content: '); ?>
&view=hsys_users2&do=details" title="View Details" class="btn btn-default btn-sm tip"><i class="fa fa-th-list"></i> <?php echo LANG_DETAILS; ?> </a> </ul> <div class="panel panel-default"> <!-- Default panel contents --> <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-reorder"></i> <strong>Change Password</strong></h3></div> <div class="panel-body pformmargin"> <p> <?php if (isset($errors)) { form_errors($errors); } ?> <form action="<?php htmlspecialchars($_SERVER['PHP_SELF']); ?> " method="post" name="hezecomform" id="hezecomform2" enctype="multipart/form-data"> <input type="hidden" name="userid" value="<?php echo $haccess->UserID(); ?> "> <div class="form-group"> <label class="control-label" for="oldpassword">Old Password</label> <input id="oldpassword" name="oldpassword" type="password" maxlength="50" class="form-control styler" placeholder="Enter your old password" required="required" /> </div>
<p></p> <?php echo validation_errors('<div class="alert alert-error"><button type="button" class="close" data-dismiss="alert"><i class="fa fa-times"></i></button>', '</div>'); ?> <script> $(function(){ form_error = []; <?php if ($errs = form_errors()) { foreach ($errs as $key => $value) { echo "form_error.push('" . $key . "');"; } } ?> $.each(form_error, function(i, v) { // TODO: bug 按照 input id 结构来处理 // $('label[for='+v+']').parent(".control-group").addClass('error') $('#'+v).parents(".control-group").addClass('error'); }); }); </script>
// This is probably a get request } ?> <div id="main"> <!-- LEFT SIDE --> <div id="navigation"> </div> <!-- RIGHT SIDE --> <div id="page"> <!-- Prints out the stuff in $_SESSION["errors"] --> <?php echo form_errors(errors()); ?> <h2>Create Admin</h2> <form action="new_admin.php" method="post"> <p>Username: <input type="text" name="username" value="" /> </p> <p>Password: <input type="password" name="password" value="" /> </p> <input type="submit" name="submit" value="Create Admin" /> </form> <br /> <a href="manage_admins.php">Cancel</a> </div>
<div class="outerwrapper"> <div class="wrapper"> <div class="myacctellusholder"></div> <div class="logo"><a href="http://lib.harvard.edu"><img alt="Harvard Library Logo" src="http://library.harvard.edu/sites/all/themes/HarvardLibraryPortalTheme/logo.png"></a></div> <div class="divider"></div> <div class="breadcrumbs"> <p><a href="http://lib.harvard.edu" title="Home">Home</a> > Harvard Library E-Card </p> </div> <?php print $preview; ?> <?php print $success; ?> <?php print form_errors($errors); ?> <div class="container" align="center"> <h1>Send a Holiday E-Card from the Harvard Library</h1> <div class="form_box"> <div align="left" class="form_inner"> To send your card:<br /> <ol> <li>Select one of the images below from the Harvard Library collection.</li> <li>Enter your personal message along with the "from" and "to" information.</li> <li><em>Optional</em>: Click "Preview Your E-Card" to see how your card will look before sending.</li> <li>Click "Send Your Harvard Library E-Card."</li> </ol><br /> <form action="ecard.php" method="post"> <p><label for="image_select" style="font-size: 14px;">Select an image below</label><span class="crimson">*</span> <table id="image_select">
$ausgaben["inaccessible"] .= "# (error1) #(error1)<br />"; $ausgaben["inaccessible"] .= "# (error_plz_nope) #(error_plz_nope)<br />"; $ausgaben["inaccessible"] .= "# (error_plz_multi) #(error_plz_multi)<br />"; $ausgaben["inaccessible"] .= "# (error_gmkg) #(error_gmkg)<br />"; $ausgaben["inaccessible"] .= "# (success) #(success)<br />"; } else { $ausgaben["inaccessible"] = ""; } // wohin schicken #n/a // +++ // page basics if ($environment["parameter"][3] == "verify" && ($_POST["send"] != "" || $_POST["extension1"] != "" || $_POST["extension2"] != "")) { // form eingaben pr�fen form_errors($form_options, $_POST); form_errors($form_options, $_POST["person"]); if ($ausgaben["form_error"] == "") { foreach ($_POST["person"] as $key => $value) { ${$key} = $value; } if (is_array($_POST["order"])) { foreach ($_POST["order"] as $key => $value) { if ($value["flst"] == "") { continue; } if ($value["flst"] != "" && $value["gmkg"] == "") { $ausgaben["form_error"] .= "#(error_gmkg)<br />"; break; } foreach ($value as $label => $order_data) { $dataloop["order"][$key][$label] = strtoupper($order_data);