本文整理汇总了PHP中showForm函数的典型用法代码示例。如果您正苦于以下问题:PHP showForm函数的具体用法?PHP showForm怎么用?PHP showForm使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showForm函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
}
示例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);
}
示例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;
}
}
示例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();
}
示例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;
}
}
示例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();
}
示例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");
}
?>
示例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);
?>
示例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
示例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-->
示例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'];
?>
">
示例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) {
示例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);
示例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();
示例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