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


PHP UserForm::addCheck方法代码示例

本文整理汇总了PHP中UserForm::addCheck方法的典型用法代码示例。如果您正苦于以下问题:PHP UserForm::addCheck方法的具体用法?PHP UserForm::addCheck怎么用?PHP UserForm::addCheck使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UserForm的用法示例。


在下文中一共展示了UserForm::addCheck方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Form

$form1->addSection("User Management");
$form1->addText("username", "username", 20, MANDATORY);
$form1->addSection("personal data");
$form1->addText("email", "Email", 50, MANDATORY);
$form1->addText("name", "Name", 40, MANDATORY);
$form1->addText("surname", "Surname", 40, MANDATORY);
$form1->addSelectFromReference2($facultyRoleEntity, "id_role", "Position");
$form1->addSelectFromReference2($ssdEntity, "id_ssd", "SSD");
$form1->addSelectFromReference2($areaEntity, "id_area", "Macro Area");
$form1->addSelectFromReference2($resGroupEntity, "id_resgroup", "Research Group");
$form1->addText("phone", "Phone", 20);
$form1->addSelectFromReference2($buildingEntity, "building_id", "Building");
$form1->addText("room", "Room", 15);
#$form1->addText("fax", "Fax", 20);
$form1->addFile("picture", "Picture");
$form1->addCheck("Active", ":active:*:CHECKED");
$form1->addCheck("Home", ":active_home:*:CHECKED");
$form1->addCheck("Newsletter", ":active_newsletter:*:CHECKED");
$form1->addEditor("research", "Research", 10, 60);
$form1->addEditor("publications", "Publications", 10, 60);
$form2 = new Form("dataEntry2", $usersGroupsRelation);
$form1->addSection("usergroups");
$form2->addRelationManager("groups", "Groups");
$form1->triggers($form2);
/* CUSTOMIZED PAGER BELOW */
$pager = new becontentPager();
$pager->setQuery("\n\tSELECT users.name, \n\t       users.surname, \n\t       users.username, \n\t       users.email, \n\t       users.active,\n\t\t   users.active_home\n\t\t  \n\t  FROM users ");
$pager->setFilter("(name LIKE '%[search]%' OR surname LIKE '%[search]%' OR username LIKE '%[search]%')");
$pager->setOrder("name, surname");
$pager->setTemplate("dtml/report-users.html");
$form1->setPager($pager);
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:31,代码来源:user-managerOLD.php

示例2: date

        $mail->setContent("message", $_REQUEST['message']);
        $mail->setContent("email", $_REQUEST['email']);
        if (isset($GLOBALS['homeEntity'])) {
            if (isset($_REQUEST['home'])) {
                $mail->setContent("home", "http://www.di.univaq.it/home.php?username={$_REQUEST['username']}");
                $GLOBALS['homeEntity']->insertItem(NULL, "{$_REQUEST['username']}", date('YmdHi'), date('YmdHi'), "Generale", "General", "Home", "Home", "Pagina provvisoria di {$_REQUEST['name']} {$_REQUEST['surname']}", "Temporary page of {$_REQUEST['name']} {$_REQUEST['surname']}", "*", 1);
            }
            $config = Config::getInstance()->getConfigurations();
            Parser::mail($_REQUEST['email'], "{$config['website']['name']} Login data", $mail->get(), $config['website']['email']);
        }
    }
}
/* LOCAL END */
$main = new Skin("system");
InitGraphic::getInstance()->createSystemGraphic($main);
$form1 = new UserForm("dataEntry", $usersEntity);
$form1->addSection("User Management");
$form1->addText("username", "Username", 50, MANDATORY);
$form1->addPassword("password", "Password");
$form1->addSection("personal data");
$form1->addText("email", "Email", 50, MANDATORY);
$form1->addText("name", "Name", 40, MANDATORY);
$form1->addText("surname", "Surname", 40, MANDATORY);
$form1->addCheck("active", "Active");
$form1->addCheck("active_newsletter", "Newsletter");
$form2 = new RelationForm("dataEntry2", $usersGroupsRelation);
$form1->addSection("usergroups");
$form2->addRelationManager("groups", "Groups");
$form1->triggers($form2);
$main->setContent("body", $form1->requestAction());
$main->close();
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:31,代码来源:admin-users-manager.php


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