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


PHP ca_users::preferenceHtmlFormElement方法代碼示例

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


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

示例1: form

 function form($t_user = "")
 {
     if ($vs_last_page = $this->request->getParameter("site_last_page", pString)) {
         # --- last_page is passed as "Sets" if was trying to add an image to set, "Bookmarks" if user was trying to bookmark an item
         $this->request->session->setVar('site_last_page', $vs_last_page);
         $this->request->session->setVar('site_last_page_object_id', $this->request->getParameter("object_id", pInteger));
         $this->request->session->setVar('site_last_page_row_id', $this->request->getParameter("row_id", pInteger));
         $this->request->session->setVar('site_last_page_tablename', $this->request->getParameter("tablename", pString));
     }
     if (!is_object($t_user)) {
         $t_user = new ca_users();
     }
     $this->view->setVar("fname", $t_user->htmlFormElement("fname", "<div><b>" . _t("First name") . "</b><br/>^ELEMENT</div>"));
     $this->view->setVar("lname", $t_user->htmlFormElement("lname", "<div><b>" . _t("Last name") . "</b><br/>^ELEMENT</div>"));
     $this->view->setVar("email", $t_user->htmlFormElement("email", "<div><b>" . _t("Email address") . "</b><br/>^ELEMENT</div>"));
     $this->view->setVar("password", $t_user->htmlFormElement("password", "<div><b>" . _t("Password") . "</b><br/>^ELEMENT</div>", array('value' => '')));
     $va_profile_prefs = $t_user->getValidPreferences('profile');
     if (is_array($va_profile_prefs) && sizeof($va_profile_prefs)) {
         $va_elements = array();
         foreach ($va_profile_prefs as $vs_pref) {
             $va_pref_info = $t_user->getPreferenceInfo($vs_pref);
             $va_elements[$vs_pref] = array('element' => $t_user->preferenceHtmlFormElement($vs_pref), 'formatted_element' => $t_user->preferenceHtmlFormElement($vs_pref, "<div><b>" . $va_pref_info['label'] . "</b><br/>^ELEMENT</div>"), 'info' => $va_pref_info, 'label' => $va_pref_info['label']);
         }
         $this->view->setVar("profile_settings", $va_elements);
     }
     $this->render('LoginReg/loginreg_html.php');
 }
開發者ID:guaykuru,項目名稱:pawtucket,代碼行數:27,代碼來源:LoginRegController.php


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