if ($tpl['option_arr']['o_bf_include_title'] == 3) { ?> <span class="fdRed">*</span><?php } ?> :</label> <select name="c_title" class="fdSelect fdPersonalField fdW50p<?php echo $tpl['option_arr']['o_bf_include_title'] == 3 ? ' required' : NULL; ?> " data-err="<?php __('front_title_required'); ?> "> <option value="">----</option> <?php $title_arr = pjUtil::getTitles(); $name_titles = __('personal_titles', true, false); foreach ($title_arr as $v) { ?> <option value="<?php echo $v; ?> "<?php echo isset($FORM['c_title']) ? @$FORM['c_title'] == $v ? ' selected="selected"' : NULL : (@$CLIENT['c_title'] == $v ? ' selected="selected"' : NULL); ?> ><?php echo $name_titles[$v]; ?> </option><?php } ?>