Created
August 24, 2010 10:00
-
-
Save nnarhinen/547299 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<validator name="atleastonerecipient" class="arraylength"> | |
<arguments> | |
<argument>to</argument> | |
</arguments> | |
<ae:parameters> | |
<ae:parameter name="min">1</ae:parameter> | |
</ae:parameters> | |
<errors> | |
<error>Valitse vähintään yksi sähköpostiosoite</error> | |
</errors> | |
</validator> | |
<validator name="validemail" class="email" required="false"> | |
<arguments base="to[]"> | |
<argument /> | |
</arguments> | |
<errors> | |
<error>Virheellinen sähköposti</error> | |
</errors> | |
</validator> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="text" name="to[]" size="40" /> | |
<?php foreach($t['persons'] as $person):?> | |
<label> | |
<input type="checkbox" name="to[]" class="radio" value="<?php echo $person['Email'];?>" /> | |
<?php echoHtml($person['Name']);?> | |
</label> | |
<?php endforeach;?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment