本文整理汇总了PHP中text::view_nq方法的典型用法代码示例。如果您正苦于以下问题:PHP text::view_nq方法的具体用法?PHP text::view_nq怎么用?PHP text::view_nq使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类text
的用法示例。
在下文中一共展示了text::view_nq方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: language
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<script type="text/javascript" src="scripts.js"></script>
<?php
include './function.php';
$lang = new language();
$lang->set('de-de');
$text = new text();
?>
<button onclick="anzeige('form.php?fmet=3')"><?php
echo $text->view_nq("menu3");
?>
</button>
<button onclick="anzeige('form.php?fmet=1')"><?php
echo $text->view_nq("menu1");
?>
</button>
<button onclick="anzeige('form.php?fmet=2')"><?php
echo $text->view_nq("menu2");
?>
</button>
<button onclick="anzeige('form.php?fmet=5')"><?php
echo $text->view_nq("menu4");
?>
</button>
<button onclick="anzeige('form.php?fmet=6')"><?php
echo $text->view_nq("menu8");
?>
示例2: kategorie
include './function.php';
#Erfasse Methode
$methode = $_GET['fmet'];
$kat = new kategorie();
$obj = new object();
$att = new attribut();
$form = new form();
$text = new text();
if ($methode == 1) {
#Erste methode Kategorie
$katname = $_POST['katname'];
$katkurz = $_POST['katkurz'];
$katlang = $_POST['katlang'];
$kat->neu($katname, $katkurz, $katlang);
$form->start("POST", "index.php");
$form->end($text->view_nq("zuindex"));
}
if ($methode == 2) {
#Zweite methode Attribute
$atname = $_POST['atname'];
$atkurz = $_POST['atkurz'];
$atlang = $_POST['atlang'];
$aistext = $_POST['aistext'];
$att->neu($atname, $atkurz, $atlang, $aistext);
$form->start("POST", "index.php");
$form->end($text->view_nq("zuindex"));
}
if ($methode == 3) {
#Dritte methode Objekt einfügen
$KID = $_POST['katid'];
$objid = $obj->neu($KID);