address ) ) { throw new Client_Html_Exception( 'No "address" item to address partial given' ); } $testfcn = function( $list, $key, $default = '' ) { return ( isset( $list[$key] ) ? $list[$key] : $default ); }; $selectfcn = function( $list, $key, $value ) { return ( isset( $list[$key] ) && $list[$key] == $value ? 'selected="selected"' : '' ); }; $disablefcn = function( $list, $key ) { return ( !isset( $list[$key] ) ? 'disabled="disabled"' : '' ); }; $regex = $this->config( 'client/html/checkout/standard/address/validate', array() ); $addr = $this->get( 'address', array() ); $salutations = $this->get( 'salutations', array() ); $languages = $this->get( 'languages', array() ); $countries = $this->get( 'countries', array() ); $states = $this->get( 'states', array() ); $type = $this->get( 'type', 'billing' ); $css = $this->get( 'css', array() ); $id = $this->get( 'id' ); $idstr = ( $id != null ? '-' . $id : '' ); $fname = ( $id != null ? 'ca_' . $type . '_' . $id : 'ca_' . $type ); $enc = $this->encoder(); ?>