本文整理汇总了PHP中showForm函数的典型用法代码示例。如果您正苦于以下问题:PHP showForm函数的具体用法?PHP showForm怎么用?PHP showForm使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showForm函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: registrarse
function registrarse()
{
showHeaders();
showMenu();
$form = $this->M_DATA->readFile("json/registrar_usuario.json");
$form = $this->C_FORMING->creaForm($form);
showForm($form);
//*/
//showProductos1();
showFoot();
}
开发者ID:GunB,项目名称:PHP_AdminBasic,代码行数:11,代码来源:Inicio.php
示例2: getTopicStartTest
function getTopicStartTest($t_id)
{
// Wertprüfung
$t_id = abs(intval($t_id));
echo '<form action="index.php?site=start_test&action=getQuestions" method="post">';
$button = Function_getTopic_03;
$topic = new Topic();
$topic->getActiveTopic();
$arrayTopic = $topic->getTopicArray();
echo " <div id=\"inner_box_top\">\n";
// In der Mitte der Inhalt
showForm($t_id, $button, $arrayTopic);
}
开发者ID:eruedin,项目名称:cats,代码行数:13,代码来源:getTopic.php
示例3: selectForm
function selectForm($formType, $idNo)
{
switch ($formType) {
case "Oral_Prophylaxis":
showForm(1, $idNo);
break;
case "Rectoration":
showForm(2, $idNo);
break;
case "Extraction":
showForm(3, $idNo);
break;
case "Others":
showForm(4, $idNo);
break;
}
}
开发者ID:abrenicamarkjoshua,项目名称:apriori,代码行数:17,代码来源:dentFormemp.php
示例4: editData
/**
* Bearbeitet die im POST-Array übergebenen Werte
* Stellt sicher, dass wenn das Passwort geändert wird der
* Nutzer nicht ausgeloggt wird.
*/
function editData()
{
global $msg, $user;
if ($_POST['password1'] != $_POST['password2']) {
$msg->error("Das Passwort und die Wiederholung stimmen nicht überein.");
return showForm();
}
foreach (array("vorname", "nachname", "email") as $key) {
$user->setuser($key, $_POST[$key]);
}
if (!empty($_POST['password1'])) {
$user->setuser("password", sha1($_POST['password1']));
$user->loginuser($user->id);
}
$msg->success("Sie haben Ihre Daten geändert.");
return showForm();
}
开发者ID:nubix,项目名称:cms,代码行数:22,代码来源:exec.php
示例5: selectForm
function selectForm($formType, $idNo)
{
switch ($formType) {
case "VAT":
showForm(1, $idNo);
break;
case "HTTA":
showForm(2, $idNo);
break;
case "VS":
showForm(3, $idNo);
break;
case "FMH":
showForm(4, $idNo);
break;
case "MH":
showForm(5, $idNo);
break;
}
}
开发者ID:abrenicamarkjoshua,项目名称:apriori,代码行数:20,代码来源:physicalFormemp.php
示例6: checkForm
function checkForm()
{
$name = htmlentities($_GET['theUser'], ENT_QUOTES);
$area = htmlentities($_GET['areaCode'], ENT_QUOTES);
$phone1 = htmlentities($_GET['phone1'], ENT_QUOTES);
$phone2 = htmlentities($_GET['phone2'], ENT_QUOTES);
$errorMessage = "";
if ($name == "") {
$name = "";
$errorMessage .= "<h3> You must enter your name. </h3>\n";
}
if ($area == "" || !is_numeric($area)) {
$area = "";
$errorMessage .= "<h3> You must enter a valid area code.\n";
}
if ($phone1 == "" || !is_numeric($phone1)) {
$phone1 = "";
$errorMessage .= "<h3> You must enter a valid exchange number.\n";
}
if ($phone2 == "" || !is_numeric($phone2)) {
$phone2 = "";
$errorMessage .= "<h3> You must enter a valid subscriber (end) number.\n";
}
if ($errorMessage) {
print $errorMessage;
showForm($name, $area, $phone1, $phone2);
} else {
if ($area == 512) {
$result = "<br /> is from the Austin area. \n";
} elseif ($area == 830 || $area == 210) {
$result = "<br /> is from the San Antonio Area. \n";
} elseif ($area == 713 || $area == 832 || $area == 409) {
$result = "<br /> is from the Houston Area. \n";
} else {
$result = "<br /> is from another galaxy, far , far away. \n";
}
print "<h2> Hello {$name}, The phone number ({$area}-{$phone1}-{$phone2})<br /> {$result} </h2> \n";
}
//end else
startOverLink();
}
开发者ID:davidpoulos,项目名称:SchoolWork,代码行数:41,代码来源:asg3.php
示例7: showForm
if (count($msg) > 0) {
showForm($arr_request, 'nuevo', $msg);
} else {
// Comprobar que no se repita el numero de contenedor
$cr = getValueTable("id_contenedor", "CONTENEDOR", "numero", $contenedor);
if (empty($cr)) {
$contenedor = strtoupper($contenedor);
$sql = "insert into CONTENEDOR (numero,id_equipo,id_naviera,manufactura,folio_imp ";
$sql .= ") values (";
$sql .= "'{$contenedor}','{$idEquipo}','{$idNav}','{$manufactura}','{$folioImp}')";
$db->query($sql);
$msg[] = "<font color=blue>El contenedor ha sido agregado...</font>";
}
$idConte = getValueTable("id_contenedor", "CONTENEDOR", "numero", $contenedor);
$data[contenedor] = $contenedor;
$data[idConte] = $idConte;
$data[idEquipo] = $idEquipo;
$data[idNav] = $idNav;
showForm($data, 'editar', $msg);
}
break;
default:
showForm('', 'nuevo');
break;
}
} else {
$t->set_file("page", "accesoDenegado.html");
$t->pparse("out", "page");
}
?>
开发者ID:nesmaster,项目名称:anakosta,代码行数:30,代码来源:catConteCaptura.php
示例8: getValueTable
{
global $t, $db, $sesIdUsuario, $hoy, $usuario;
$t->set_file("page", "intro.inc.html");
$sesIdUsuario = $_SESSION[sesIdUsuario];
$PHP_SELF = $_SERVER['PHP_SELF'];
$sisIdOficina = $_SESSION[sesIdOficina];
$oficina = getValueTable("oficina", "OFICINA", "id_oficina", $sisIdOficina);
$opES = $data[opES];
$usuario = getValueTable("usuario", "USUARIO", "id_usuario", $sesIdUsuario);
$t->set_var(array("USUARIO" => $usuario));
// -------------------------------------------
// Control de mensajes
// -------------------------------------------
if (!empty($msg)) {
$canMsg = count($msg);
if ($canMsg > 0) {
foreach ($msg as $val) {
$cadMsg .= $val . " <br>";
}
$t->set_var(array("MENSAJE" => $cadMsg));
}
}
$t->pparse("out", "page");
}
// fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
// -----------------------------------------------------------
// ACCIONES
showForm($arr_request, $msg);
?>
开发者ID:nesmaster,项目名称:mopsapro,代码行数:29,代码来源:intro.php
示例9: message
<body>
<div class="container-fluid">
<?php
message();
?>
<div class="row-fluid">
<div class="span4"></div>
</div>
<div class="row-fluid">
<div class="span4"></div>
<div class="span4 well">
<?php
t("Login");
?>
<?php
showForm('loginForm');
?>
</div><!--/span-->
<div class="span4"></div>
</div><!--/row-->
<hr>
<footer>
<p>© <?php
site('backend_title');
?>
</p>
</footer>
</div><!--/.fluid-container-->
<!-- Le javascript
开发者ID:basdog22,项目名称:Qool,代码行数:31,代码来源:login.php
示例10: message
<?php
message();
?>
<div class="row-fluid">
<div class="box span12">
<div class="box-header well">
<h2><i class="icon-edit"></i> <?php
t('Form');
?>
</h2>
<div class="box-icon">
<a href="#" class="btn btn-minimize"><i class="icon-chevron-up"></i></a>
</div>
</div>
<div class="well box-content">
<?php
showForm('theForm');
?>
</div>
</div><!--/span-->
</div><!--/row-->
开发者ID:basdog22,项目名称:Qool,代码行数:23,代码来源:form.php
示例11: showForm
';
tinyMCEPopup.editor.execCommand('mceInsertContent', false, html);
tinyMCEPopup.close();
}
};
tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog);
</script>
</head>
<body onload="ExampleDialog.insert();" class="dialog_body">
<?php
} else {
//defaut state
echo "<body class=\"dialog_body\">";
showForm('');
exit;
}
function showForm($error)
{
?>
<script>
var winx = (screen.width / 2) - 250;
var winy = (screen.height / 2) - 150;
window.resizeTo(500, 350);
window.moveTo(winx, winy);
</script>
<form name="uploadImage" method="post" enctype="multipart/form-data" action="<?php
echo $_SERVER['REQUEST_URI'] . '?' . $_SERVER['QUERY_STRING'];
?>
">
开发者ID:vinod-co,项目名称:centa,代码行数:31,代码来源:dialog.php
示例12: secretPage
$password = $_POST["password"];
if ($username === "admin" and $password === "admin") {
$_SESSION["logged"] = true;
secretPage();
} else {
if ($username != null and $password != null) {
$message = "Incorrect. Please try again";
showTitle($guide, $message);
showForm();
} else {
header('Location: ./');
}
}
} else {
showTitle($guide, $message);
showForm();
}
}
function secretPage()
{
$guide = "";
$message = "";
$content = "";
$page = isset($_GET['page']) ? trim($_GET['page']) : 'default';
$logout = isset($_GET['logout']) ? trim($_GET['logout']) : false;
if ($logout) {
unset($_SESSION["logged"]);
session_destroy();
header('Location: ./');
}
if ($page == 1) {
开发者ID:anhpham1509,项目名称:WebProgramming,代码行数:31,代码来源:index.php
示例13: session_start
<?php
session_start();
include_once "../include/db_mysqli.inc";
include_once "../include/template.inc";
include_once "../include/confGral.php";
$t = new Template("../templates", "keep");
// fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
function showForm($idReg)
{
global $t, $PHP_SELF;
$t->set_file("page", "avisoRegAdd.inc.html");
$idReg = $idReg;
$t->set_var(array("lnTupla" => "", "ACTION" => $PHP_SELF, "MENSAJE" => "", "ID_REG" => $idReg));
$t->pparse("out", "page");
}
/*ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff*/
/*----------------------------------------------------------------*/
$idReg = $_GET['idReg'];
showForm($idReg);
开发者ID:nesmaster,项目名称:anakosta,代码行数:20,代码来源:avisoRegAdd.php
示例14: switch
if ($errors != '') {
RMUris::redirect_with_message(__('Errors ocurred while trying to update categories order', 'bxpress') . $errors, './categories.php', RMMSG_ERROR);
} else {
RMUris::redirect_with_message(__('Database updated successfully!', 'bxpress'), './categories.php', RMMSG_SUCCESS);
}
}
$action = RMHttpRequest::request('action', 'string', '');
switch ($action) {
case 'new':
showForm();
break;
case 'save':
bxpress_save_category();
break;
case 'edit':
showForm(1);
break;
case 'saveedit':
bxpress_save_category(1);
break;
case 'savechanges':
updateOrderCatego();
break;
case 'delete':
deleteCatego();
break;
case 'enable':
activeCatego(1);
break;
case 'disable':
activeCatego();
开发者ID:petitours,项目名称:bxpress,代码行数:31,代码来源:categories.php
示例15: UsageDB
// Print welcome message
$t->startMain();
// Start main table
$t->startNavLinkTable();
$t->showNavLinksTable(Auth::isAdmin());
$t->endNavLinkTable();
$t->splitTable();
$db = new UsageDB();
// Connect to database
$link = CmnFns::getNewLink();
// Get Link object
// Perform function based on if search button has been pressed
if (isset($_POST['search']) || isset($_GET['text'])) {
search($_POST['outputtype'], $_POST['searchtype']);
} else {
showForm($db->get_min_max(), $db->get_table_data('login', array('memberid', 'fname', 'lname'), array('lname', 'fname')), $db->get_table_data('resources', array('machid', 'name'), array('name')), $db->get_table_data('schedules', array('scheduleid', 'scheduletitle'), array('scheduletitle')));
}
$t->endMain();
// End main table
$t->printHTMLFooter();
// Print HTML footer
/****** END MAIN CODE ******/
$timer->stop();
$timer->print_comment();
/**
* Perform search and print out results
* This function will perform the search for given
* criteria and print out formatted results.
* @param string $type output type
* @global $_POST['memberid'] array array of memberid's
* @global $_POST['piid'] array array of piID's
开发者ID:razagilani,项目名称:srrs,代码行数:31,代码来源:usage.php
示例16: showComponent
/**
* Función maestra, a esta se llama para mostrar todo el componente
*/
function showComponent() {
$db = dbManager::getInstance();
showForm($db);
showView($db);
}
开发者ID:nicolasmartinrojo,项目名称:segundo,代码行数:8,代码来源:functions.php
示例17: showForm
if(mysql_query($editStatement))
{
showForm("Edit", "Edited Successfully!");
?>
<script>
parent.location.reload(true);
</script>
<?php
}
else
{
showForm("Edit", "Error Occurred!");
}
}*/
} else {
showForm("Add", "");
}
function showForm($mode, $msg, $params = array())
{
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php
echo $mode;
?>
CIDR/IP</title>
<link href="bootstrap/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
开发者ID:kieranhogan13,项目名称:FinalYearProject,代码行数:31,代码来源:addRule.php
示例18: switch
# Check for empty credentials
switch (true) {
case empty($_POST["txtEmail"]):
showForm();
exit;
case empty($_POST["txtPassword"]):
showForm();
exit;
default:
$Email = $_POST["txtEmail"];
$Password = $_POST["txtPassword"];
break;
}
# Validate password
if ($Password != Password($Email, $FirstName)) {
showForm('Invalid email and password combination');
exit;
}
setcookie('FirstName', $FirstName, strtotime('+1 week'), "/");
$_SESSION["contEmail"] = $Email;
}
# Return users password from the DB
function Password($contID, &$FirstName)
{
$dsn = 'sqlsrv:Server=agilebob.database.windows.net;Database=bob';
$uname = 'bobadmin';
$pwd = 'Agilebob60515';
$options = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION);
try {
$db = new PDO($dsn, $uname, $pwd, $options);
$SQL = $db->prepare("SELECT Password, fName, contId FROM tblContestants WHERE Email = :contId");
开发者ID:tsmith3480,项目名称:BOB,代码行数:31,代码来源:PasswordVerifySession.php
示例19: get
$pwd = get($_POST, 'db_password');
if ($pwd != '(hidden)') {
$db_config['password'] = $pwd;
}
$db_config['db'] = get($_POST, 'db_db');
$db_config['prefix'] = get($_POST, 'db_prefix');
if (!dbCreateConnection()) {
throw new DBException("Cannot create DB connection.");
}
@mysql_query(sprintf("create database %s", mysql_real_escape_string($db_config['db'])));
dbUpdateTableNames();
query("drop table if exists {$table['user']}");
query("create table {$table['user']} (\r\n id int auto_increment primary key,\r\n name varchar(100),\r\n password char(32),\r\n role varchar(100),\r\n comment longtext,\r\n admin_comment longtext,\r\n ban_date datetime,\r\n banned_by int,\r\n ban_reason longtext,\r\n\r\n unique index i_name (name)\r\n ) default charset='utf8'");
query("drop table if exists {$table['ip_data']}");
query("create table {$table['ip_data']} (\r\n id int auto_increment primary key,\r\n ip varchar(32),\r\n admin_comment longtext,\r\n ban_date datetime,\r\n banned_by int,\r\n ban_reason longtext,\r\n\r\n unique index i_ip (ip)\r\n ) default charset='utf8'");
query("drop table if exists {$table['source']}");
query("create table {$table['source']} (\r\n id int auto_increment primary key,\r\n source longtext,\r\n\r\n index i_text (source(256))\r\n ) default charset='utf8'");
query("drop table if exists {$table['translation']}");
query("create table {$table['translation']} (\r\n id int auto_increment primary key,\r\n revision int,\r\n revert_to int,\r\n source_id int,\r\n translation longtext,\r\n comment longtext,\r\n user_id int,\r\n user_ip varchar(32),\r\n date datetime,\r\n \r\n index i_source_id (source_id),\r\n index i_user_id (user_id),\r\n index i_user_ip (user_ip),\r\n unique index i_source_id_revision (source_id, revision)\r\n ) default charset='utf8'");
$pwd = get($_POST, 'password');
$pwd = md5($pwd);
query("insert into {$table['user']} (id, name, password, role, comment, admin_comment, ban_date, banned_by, ban_reason)\r\n values(1, ?, ?, 'root', null, null, from_unixtime(0), null, null)", $name, $pwd);
$user = User::load(mysql_insert_id());
dbSaveConfig();
$doc->content = "\r\n <h1>Installation complete</h1>\r\n <p>Installation completed successfully. Please delete file <b>install.php</b> from the server.</p>\r\n <p><a href='index.php'>Go to main page</a></p>\r\n ";
} catch (DBException $ex) {
showForm($name, "Database error: " . $ex->getMessage());
}
}
}
echo $doc->render();
开发者ID:aaronboo95,项目名称:chiitrans,代码行数:31,代码来源:install.php
示例20: elseif
} elseif (isset($_GET['id'])) {
/* SPECIFIC PROJECT VIEW
* get project info
* input values into form
*/
$sql = "SELECT * FROM projects WHERE id=:id";
try {
$stmt = $db->prepare($sql);
$stmt->bindParam(':id', $_GET['id'], PDO::PARAM_STR);
$stmt->execute();
} catch (PDOException $e) {
echo "<div class='adminnotice'><span class='notice'>Could not fetch post: " . $e->getMessage() . "</span></div>";
}
if ($stmt->rowCount() == 1) {
$result = $stmt->fetch(PDO::FETCH_ASSOC);
showForm($me['colour'], $result['title'], $result['summary'], $result['content'], $result['image']);
} else {
echo "<div class='adminnotice'><span class='notice'>No such post with id " . $_GET['id'] . ".</span></div>";
}
} else {
//show list of projects
//allow new project addition (hidden by default)
$sql = "SELECT * FROM projects";
?>
<div class="adminnotice"><?php
try {
$stmt = $db->prepare($sql);
$stmt->execute();
echo "<span class='notice'>Below is a list of posts displayed on the site. You can edit, delete, and hide them from this page.</span>";
} catch (PDOException $e) {
echo "<div class='adminnotice'><span class='notice'>Could not fetch post list: " . $e->getMessage() . "</span></div>";
开发者ID:DanFGit,项目名称:cms-phil,代码行数:31,代码来源:projects.php
注:本文中的showForm函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论