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


PHP Form::addSection方法代码示例

本文整理汇总了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();
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:15,代码来源:admin-file_folder-manager.php

示例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();
?>
 
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:28,代码来源:test-manager.php

示例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();
?>
 
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:30,代码来源:password.php

示例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();
?>
 
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:25,代码来源:tag-manager.php

示例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();
?>
 
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:24,代码来源:catmodule-manager.php

示例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":
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:31,代码来源:service-manager.php

示例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();
?>
 
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:29,代码来源:layer-manager.php

示例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();
?>
 
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:28,代码来源:newscat-manager.php

示例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();
?>
 
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:27,代码来源:group-manager.php

示例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();
?>
 
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:27,代码来源:foto-manager.php

示例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();
?>
 
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:24,代码来源:bg-manager.php

示例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();
?>
 
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:23,代码来源:section-manager.php

示例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();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:31,代码来源:gen-manager.php

示例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();
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:30,代码来源:admin-prodotti-manager.php

示例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();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:23,代码来源:eventicat-manager.php


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