<!--
<p><label for="specialRequests">{translate key="schedConf.registration.specialRequests.description"}</label></p>
-->
<p class="label">{fieldLabel name="specialRequests" key="schedConf.registration.specialRequests.description" required="true}</p>
$this->addCheck(new FormValidator($this, 'specialRequests', 'required', 'manager.registration.form.specialRequests'));<message key="manager.registration.form.specialRequests.required">$this->addCheck(new FormValidator($this, 'specialRequests', 'required', 'manager.registration.form.specialRequests'));<message key="schedConf.registration.specialRequests">Solicitações Especiais</message><message key="schedConf.registration.specialRequests">CPF/CNPJ e necessidades especiais</message>if(preg_match($specialCheck,'manager.registration.form.specialRequests')) {
$this->addCheck(new FormValidator($this, 'specialRequests', 'required', 'manager.registration.form.specialRequests.required'));
}
$this->addCheck(new FormValidatorCustom($this, 'authors', 'required', 'author.submit.form.authorRequired', create_function('$authors', 'return count($authors) > 0;')));
/**
* Added by Ramón Fonseca
* 2012-07-03 @ 15h46 PM
* specialRequests field required and validation
* Checks if special word is within locale files
*/
$specialCheck = array('CPF', 'CNPJ');
$specialVar = PKPLocale::translate('schedConf.registration.specialRequests',$params,$locale);
if( strstr($specialVar,$specialCheck[0]) || strstr($specialVar,$specialCheck[1]) ) {
$this->addCheck(new FormValidator($this, 'specialRequests', 'required', 'schedConf.registration.specialRequestsRequired'));
}
{php}
$specialVar = PKPLocale::translate("schedConf.registration.specialRequests", $params, $locale);
$cnpj = 'CNPJ';
$cpf = 'CPF';
$this->assign('specialVar',$specialVar);
$this->assign('cpf',$cpf);
$this->assign('cnpj',$cnpj);
{/php}
{if (strstr($specialVar,$cpf) || strstr($specialVar,$cnpj))}
<p><label for="specialRequests">{translate name="specialRequests" required="true" key="schedConf.registration.specialRequests.description"}</label></p>
<p><input type="text" name="specialRequests" id="specialRequests" width="60" maxlength="60" class="textField" value="{$specialRequests|escape}" /></p>
{else}
<p><label for="specialRequests">{translate name="specialRequests" key="schedConf.registration.specialRequests.description"}</label></p>
<p><textarea name="specialRequests" id="specialRequests" cols="60" rows="10" class="textArea">{$specialRequests|escape}</textarea></p>
{/if}
<message key="schedConf.registration.specialRequestsRequired">Campo Solicitações Especiais é obrigatório</message>
Return to OCS Conference Support and Discussion
Users browsing this forum: No registered users and 0 guests