本文整理汇总了PHP中Form::addSection方法的典型用法代码示例。如果您正苦于以下问题:PHP Form::addSection方法的具体用法?PHP Form::addSection怎么用?PHP Form::addSection使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Form
的用法示例。
在下文中一共展示了Form::addSection方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: realpath
<?php
session_start();
require "include/beContent.inc.php";
require "include/auth.inc.php";
require_once 'include/content.inc.php';
require_once realpath(dirname(__FILE__)) . '/include/view/template/InitGraphic.php';
$main = new Skin("system");
InitGraphic::getInstance()->createSystemGraphic($main);
$form = new Form("dataEntry", $fileToFolderEntity);
$form->addTitleForm("File to Folder Management");
$form->addSection('file details');
$form->addFile("file", "Scegli il file");
$main->setContent("body", $form->requestAction());
$main->close();
示例2: Skin
<?php
session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/auth.inc.php";
$main = new Skin();
$form = new Form("dataEntry", $testEntity);
$form->addSection("Testimonial Management");
$form->addText("name", "Name", 60, MANDATORY);
$form->addPosition("posizione", "Posizione", "name");
$form->addText("edizione", "Edizione", 20, MANDATORY);
$form->addText("affiliazione", "Affiliazione", 60, MANDATORY);
$form->addFile("photo", "Foto");
$form->addTextarea("messaggio", "Messaggio", 10, 60);
if (!isset($_REQUEST['action'])) {
$_REQUEST['action'] = "edit";
}
switch ($_REQUEST['action']) {
case "add":
$main->setContent("body", $form->addItem());
break;
case "edit":
$main->setContent("body", $form->editItem());
break;
}
$main->close();
?>
示例3: Template
function addItem_postInsertion()
{
/* controllare reload */
$mail = new Template("dtml/user.mail");
$mail->setContent("name", $_REQUEST['name']);
$mail->setContent("username", $_REQUEST['username']);
$mail->setContent("password", $_REQUEST['password']);
$mail->setContent("message", $_REQUEST['message']);
mail("{$_REQUEST['email']}", "{$GLOBALS['config']['website']['name']} Login data", $mail->get(), "From: {{$GLOBALS['config']['website']['email']}}");
}
}
/* LOCAL END */
#if (isset($_SESSION['registered-user'])) {
# $main = new Template("dtml_{$_SESSION['language']}/frame-public-2.html");
#} else {
# $main = new Template("dtml/frame-private.html");
#}
$main = new Skin();
$form = new Form("dataEntry", $usersEntity);
$form->addSection("Modifica Password");
#$form1->addText("username", "username", 20, MANDATORY);
#$form1->addSection("personal data");
$form->addPassword("password", aux::lingual("Nuova Password", "New Password", "Nuova Password"));
if (!isset($_REQUEST['page'])) {
$_REQUEST['page'] = 1;
$_REQUEST['value'] = $_SESSION['user']['username'];
}
$main->setContent("body", $form->editItem(NO_DELETE));
$main->close();
?>
示例4: Skin
<?php
session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/auth.inc.php";
$main = new Skin();
$form = new Form("dataEntry", $tagEntity);
$form->addSection("Tag Management");
$form->addText("tag", "Tag", 40, MANDATORY);
$form->addText("text", "Search Text", 40, MANDATORY);
$form->addPosition("position", "Position", "tag");
if (!isset($_REQUEST['action'])) {
$_REQUEST['action'] = "edit";
}
switch ($_REQUEST['action']) {
case "add":
$main->setContent("body", $form->addItem());
break;
case "edit":
$main->setContent("body", $form->editItem());
break;
}
$main->close();
?>
示例5: Skin
<?php
session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/auth.inc.php";
$main = new Skin();
$form = new Form("dataEntry", $catModuleEntity);
$form->addSection("Module Category Management");
$form->addText("name", "Name", 40, MANDATORY);
$form->addPosition("position", "Order", "name");
if (!isset($_REQUEST['action'])) {
$_REQUEST['action'] = "edit";
}
switch ($_REQUEST['action']) {
case "add":
$main->setContent("body", $form->addItem());
break;
case "edit":
$main->setContent("body", $form->editItem());
break;
}
$main->close();
?>
示例6: Skin
<?php
session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/auth.inc.php";
$main = new Skin();
$form = new Form("dataEntry", $servicesEntity, POST);
$form->addSection("Service Management");
$form->addText("name", "Name", 40, MANDATORY);
$form->addText("script", "Script", 60, MANDATORY);
$form->addEditor("des", "Description", 15, 40);
//$form->addFile("icon", "Icon");
$form->addSection("Menu");
$form->addText("entry", "Menu Entry", 40, MANDATORY);
$form->addSelectFromReference2($servicecategoryEntity, "servicecategory", "Category");
$form->addHierarchicalPosition("position", "Position", "name", "servicecategory");
$form->addCheck("Visible", ":visible:*:*");
$form->addSection("Data filtering");
$form->addSelectFromReference2($entitiesEntity, "id_entities", "Entity");
$form->restrictReference("id_entities", "owner = '1' or name = '{$usersEntity->name}' or name = '{$logEntity->name}'");
$form->addSelectFromReference2($groupsEntity, "superuser_group", "Superuser Group");
$form_groups = new Form("dataEntry2", $servicesGroupsRelation);
$form->addSection("Groups");
$form_groups->addRelationManager("groups", "Groups");
$form->triggers($form_groups);
if (!isset($_REQUEST['action'])) {
$_REQUEST['action'] = "edit";
}
switch ($_REQUEST['action']) {
case "add":
示例7: Skin
<?php
session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/auth.inc.php";
$main = new Skin();
$form = new Form("dataEntry", $layerEntity);
$form->addSection("Layer Management");
$form->addText("title", "Title", 40, MANDATORY);
$form->addText("subtitle", "Subtitle", 40, MANDATORY);
$form->addEditor("description", "Text", 10, 50);
$form->addFile("foto", "Foto");
$form->addSelectFromReference2($bgEntity, "bg_id", "Background");
$form->addSelectFromReference2($pageEntity, "page_id", "Page");
$form->addPosition("position", "Order", "title");
if (!isset($_REQUEST['action'])) {
$_REQUEST['action'] = "edit";
}
switch ($_REQUEST['action']) {
case "add":
$main->setContent("body", $form->addItem());
break;
case "edit":
$main->setContent("body", $form->editItem());
break;
}
$main->close();
?>
示例8: Skin
<?php
session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/auth.inc.php";
$main = new Skin();
$form = new Form("dataEntry", $newsCatEntity);
$form->addSection("News Category Management");
$form->addText("name", "Name", 40, MANDATORY);
$form->addSelectFromReference2($newsCatEntity, "parent", "Parent");
$form->addHierarchicalPosition("position", "Position", "name", "parent");
$form->addEditor("description", "Description", 10, 70);
//$form->addPosition("position", "Order", "name");
$form->addFile("foto", "Foto");
if (!isset($_REQUEST['action'])) {
$_REQUEST['action'] = "edit";
}
switch ($_REQUEST['action']) {
case "add":
$main->setContent("body", $form->addItem());
break;
case "edit":
$main->setContent("body", $form->editItem());
break;
}
$main->close();
?>
示例9: Skin
<?php
session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/auth.inc.php";
$main = new Skin();
$form = new Form("dataEntry", $groupsEntity);
$form->addSection("Group Management");
$form->addText("name", "Name", 40, MANDATORY);
$form->addEditor("description", "Description", 17, 120);
$form_services = new Form("dataEntry2", $servicesGroupsRelation);
$form_services->addRelationManager("services", "Services", LEFT);
$form->triggers($form_services);
$form_users = new Form("dataEntry3", $usersGroupsRelation);
$form_users->addRelationManager("users", "Users", LEFT);
$form->triggers($form_users);
switch ($_REQUEST['action']) {
case "add":
$main->setContent("body", $form->addItem());
break;
case "edit":
$main->setContent("body", $form->editItem());
break;
}
$main->close();
?>
示例10: Skin
<?php
session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/auth.inc.php";
$main = new Skin();
$form = new Form("dataEntry", $fotoEntity);
$form->addSection("Photo Management");
$form->addText("title", "Title", 40, MANDATORY);
$form->addEditor("description", "Description", 20, 50);
$form->addFile("foto", "Foto");
//$form->addSelectFromReference2($galleryEntity, "name_gallery","Gallery Name", 100, MANDATORY);
$form->addHierarchicalPosition("position", "Order", "title", "id_gallery");
if (!isset($_REQUEST['action'])) {
$_REQUEST['action'] = "edit";
}
switch ($_REQUEST['action']) {
case "add":
$main->setContent("body", $form->addItem());
break;
case "edit":
$main->setContent("body", $form->editItem());
break;
}
$main->close();
?>
示例11: Skin
<?php
session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/auth.inc.php";
$main = new Skin();
$form = new Form("dataEntry", $bgEntity);
$form->addSection("Background Management");
$form->addText("name", "Name", 40, MANDATORY);
$form->addFile("file", "Foto (1020x450)");
if (!isset($_REQUEST['action'])) {
$_REQUEST['action'] = "edit";
}
switch ($_REQUEST['action']) {
case "add":
$main->setContent("body", $form->addItem());
break;
case "edit":
$main->setContent("body", $form->editItem());
break;
}
$main->close();
?>
示例12: Skin
<?php
session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/auth.inc.php";
$main = new Skin();
$form = new Form("dataEntry", $sectionEntity);
$form->addSection("Section Management");
$form->addText("name", "Name", 40, MANDATORY);
if (!isset($_REQUEST['action'])) {
$_REQUEST['action'] = "edit";
}
switch ($_REQUEST['action']) {
case "add":
$main->setContent("body", $form->addItem());
break;
case "edit":
$main->setContent("body", $form->editItem());
break;
}
$main->close();
?>
示例13: Skin
}
function editItem_postFormFeed()
{
}
function editItem_preUpdate()
{
$_REQUEST['metadata'] = json_encode($_REQUEST);
}
function addItem_postInsertion()
{
// boh
}
}
$main = new Skin();
$form = new Form("dataEntry", $genEntity);
$form->addSection("Generics Management");
$form->AddText("name", "Name", 50, MANDATORY);
$form->AddText("description", "Description", 70);
$form->addText("metadata", "Metadata", 100, MANDATORY);
if (!isset($_REQUEST['action'])) {
$_REQUEST['action'] = "edit";
}
switch ($_REQUEST['action']) {
case "add":
$main->setContent("body", $form->addItem());
break;
case "edit":
$main->setContent("body", $form->editItem());
break;
}
$main->close();
示例14: realpath
<?php
/**
* Created by PhpStorm.
* User: SS
* Date: 09/01/2016
* Time: 15.02
*/
session_start();
require "include/beContent.inc.php";
require_once 'include/content.inc.php';
require "include/auth.inc.php";
require_once realpath(dirname(__FILE__)) . '/include/view/template/InitGraphic.php';
$main = new Skin("system");
InitGraphic::getInstance()->createSystemGraphic($main);
$form = new Form("dataEntry", $prodottiEntity);
$form->addSection("Prodotti Management");
$form->addText("item_name", "Nome", 40, MANDATORY);
$form->addText("tag", "TAG", 40);
$form->addText("price", "Prezzo", 40, MANDATORY);
$form->addText("portata", "Portata (es. PRIMO)", 40, MANDATORY);
$form_menu = new RelationForm("dataEntry2", $prodottimenuRelation);
$form->addSection("Seleziona Menu");
$form_menu->addRelationManager("menu_ristorante", "Menu");
$form->triggers($form_menu);
if (!isset($_REQUEST['action'])) {
$_REQUEST['action'] = 'edit';
}
$main->setContent("body", $form->requestAction());
$main->close();
示例15: Skin
<?php
session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/auth.inc.php";
$main = new Skin("default");
$form = new Form("dataEntry", $eventicatEntity);
$form->addSection("Category Event Management");
$form->addSelectFromReference2($eventiEntity, "id_eventi", "Event", MANDATORY);
$form->addSelectFromReference2($categoriaEntity, "id_categoria", "Category", MANDATORY);
if (!isset($_REQUEST['action'])) {
$_REQUEST['action'] = "edit";
}
switch ($_REQUEST['action']) {
case 'add':
$main->setContent("body", $form->addItem());
break;
case "edit":
$main->setContent("body", $form->editItem());
break;
}
$main->close();