本文整理汇总了PHP中text::view方法的典型用法代码示例。如果您正苦于以下问题:PHP text::view方法的具体用法?PHP text::view怎么用?PHP text::view使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类text
的用法示例。
在下文中一共展示了text::view方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: table
<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';
$table = new table();
$atable = new atable();
$abfrage = new db();
$text = new text();
$methode = $_GET['tmet'];
if ($methode == 1) {
$border = 1;
$tableheadarray = array($text->view("Objektnummer"), $text->view("Kategorie"), $text->view("Aktionen"));
$table->start($border);
$table->head($tableheadarray);
$abfrage2 = $sql->prepare("\n\t\t\tSELECT objekt.OID,kategorie.KNAME,attribute.ANAME,objatt.TVALUE,objatt.NVALUE FROM objekt \n\t\t\tINNER JOIN kategorie ON objekt.KID=kategorie.KID\n\t\t\tINNER JOIN objatt ON objatt.OID=objekt.OID\n\t\t\tINNER JOIN attribute ON objatt.AID=attribute.AID\n\t\t\t\n\t\t\t");
$sqlobj = $abfrage->select_i("objekt.OID,KNAME", "objekt", "kategorie", "KID", "KID");
while ($erg = $sqlobj->fetch()) {
$buttons1 = "<button onclick='anzeige(" . '"form.php?fmet=4&objid=' . $erg[0] . '"' . ")'>Objekt Bearbeiten</button>";
array_push($erg, $buttons1);
$table->row($erg);
}
$table->end();
}
if ($methode == 2) {
$headarray = array("KategorieID", "Kategoriename", "Kategorie Kurztext", "Kategorie Langtext");
$atable->a(0, 1, $headarray, "kategorie", "KID,KNAME,KURZTEXT,LANGTEXT", "");
}
示例2: while
}
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);
echo $text->view("NeuesObjektErstellt");
echo $objid;
$form->start("POST", "./form.php?fmet=4");
$form->hidden("objid", "{$objid}");
$form->end("Objekt Attribute Bearbeiten");
}
if ($methode == 4) {
#vierte methode Objekt bearbeiten
$objid = $_POST['objid'];
$objkat = $obj->obj_kat($objid);
$katatt = $kat->attribute_zu_kategorie($objkat);
while ($erg = $katatt->fetch()) {
$AID = $erg[1];
$istext = $att->is_text($AID);
$formvalue = $_POST[$AID];
if ($formvalue != NULL) {
示例3: text
include './function.php';
#Initalisiere Klassen
#Initalisiere Text
$text = new text();
#Initalisiere Form
$form = new form();
#Initalisiere SQL
$abfrage = new db();
#Erfasse Methode
$methode = $_GET['fmet'];
#Anzeige Formulare
if ($methode == 1) {
#Formular für eine neue Kategorie
#Texte aus XML holen
$text_katname = $text->view("FormKatname");
$text_katkurz = $text->view("FormKatkurz");
$text_katlang = $text->view("FormKatlang");
$form->start("POST", "./formaction.php?fmet={$methode}");
$form->textf_2($text_katname, "katname");
$form->textf_2($text_katkurz, "katkurz");
$form->textf_2($text_katlang, "katlang");
$form->end("Senden");
}
if ($methode == 2) {
#Formular für neue Attribute
#Texte aus XML holen
$text_atname = $text->view("FormAtname");
$text_atkurz = $text->view("FormAtkurz");
$text_atlang = $text->view("FormAtlang");
$text_aistext = $text->view("FormAtIsText");