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


PHP UI::GetRegExtraFieldsForSmarty方法代码示例

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


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

示例1: ValidateExtraData

 public static function ValidateExtraData($extra_data, $Registry)
 {
     $extra_fields = null;
     if (count($registry_config->domain->registration->extra_fields->field) > 0) {
         $extra_fields = UI::GetRegExtraFieldsForSmarty($registry_config);
         foreach ($extra_fields as $field) {
             if ($field["required"] == 1 && $field["type"] != "checkbox") {
                 if (!$Validator->IsNotEmpty($this->extra_data[$field['name']])) {
                     $ErrList->AddMessage(sprintf(_("%s required"), ucfirst($field["description"])));
                 }
             }
         }
     }
 }
开发者ID:rchicoria,项目名称:epp-drs,代码行数:14,代码来源:class.RegisterDomainAction.php

示例2: array

		        			$_SESSION["domaininfo"][$v["type"]] = $_POST[$v["type"]];	        				
	        			}
	        		}
	        		catch (Exception $e)
	        		{
	        			$exception->AddMessage($e->getMessage());
	        		}
	        	}
	        }
	        
	        if ($exception->HasMessages())
	        	throw $exception;
	        
	        $fields = $registry_config->domain->registration->extra_fields->xpath("field"); 
        	if (count($fields) > 0)
				$display["add_fields"] = UI::GetRegExtraFieldsForSmarty($registry_config);
			else
				$display["add_fields"] = false;
				
			$_SESSION["wiz_contacts"] = true;
			
			if ($_SESSION["domaininfo"]["id"])
			{        		
				$domaininfo = $db->GetRow("SELECT * FROM domains WHERE id=?", array($_SESSION["domaininfo"]["id"]));
        		$display["ns1"] = $domaininfo["ns1"];
        		$display["ns2"] = $domaininfo["ns2"];
        		
        		
				$additional_data = $db->Execute("SELECT * FROM domains_data WHERE domainid=?", array($_SESSION["domaininfo"]["id"]));
				while($dt = $additional_data->FetchRow())
					$display["add_fields_post"][$dt["key"]] = $dt["value"];
开发者ID:rchicoria,项目名称:epp-drs,代码行数:31,代码来源:domain_reg.php

示例3: ShowExtra

 protected function ShowExtra()
 {
     $Factory = RegistryModuleFactory::GetInstance();
     $tlds = $this->GetTLDs();
     $extra_forms = array();
     foreach ($tlds as $tld) {
         $Registry = $Factory->GetRegistryByExtension($tld);
         $ConfigXml = $Registry->GetManifest()->GetSectionConfig();
         $fields = $ConfigXml->domain->registration->extra_fields->xpath("field");
         if (count($fields)) {
             $extra_forms[] = array("title" => sprintf(_("%s additional information"), strtoupper($tld)), "tld" => $tld, "fields" => UI::GetRegExtraFieldsForSmarty($ConfigXml));
         }
     }
     if ($extra_forms) {
         $this->display["extra_forms"] = $extra_forms;
     } else {
         // Skip this step
         $this->SkipStep();
     }
 }
开发者ID:rchicoria,项目名称:epp-drs,代码行数:20,代码来源:class.DomainRegistrationController.php


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