當前位置: 首頁>>代碼示例>>PHP>>正文


PHP UserForm::addFile方法代碼示例

本文整理匯總了PHP中UserForm::addFile方法的典型用法代碼示例。如果您正苦於以下問題:PHP UserForm::addFile方法的具體用法?PHP UserForm::addFile怎麽用?PHP UserForm::addFile使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在UserForm的用法示例。


在下文中一共展示了UserForm::addFile方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: UserForm

$form1 = new UserForm("dataEntry", $usersEntity);
$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");
開發者ID:stefanocortellessa,項目名稱:VisitAQ,代碼行數:31,代碼來源:user-managerOLD.php


注:本文中的UserForm::addFile方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。