当前位置: 首页>>代码示例>>PHP>>正文


PHP showForm函数代码示例

本文整理汇总了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();
 }
开发者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&amp;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>&copy; <?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


注:本文中的showForm函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。