개발자는 아니고...제로보드->XE->라이믹스 순으로 꾸역꾸역 이용만 해온 한 사용자 입니다.
회원가입시
기술 제공 정보 동의 (메일링) : 예 / 아니오
가 있는데
메일링에 동의 해야만 회원가입 등록버튼이 활성화되도록 하려면 어떻게 해야할까요?
자체적으로 예/아니오 필수기입으로 세팅은 가능하지만...특정 선택지를 해야지만 넘어가도록 하는방법이 검색해도 모르겠더라구요;;;;
혹시 아시는 분이 계실까요??
멤버 모듈에서 회원가입 소스를 열어보면 아래와 같이 되어 있네요;;
<load target="css/trendshop_signup.css" />
<load target="../../tpl/js/signup_check.js" />
<!--%load_js_plugin("ui")-->
<!--%load_js_plugin("ui.datepicker")-->
<div id="signup-form" class="newclearfix">
<div class="signup-title newclearfix"><img src="img/signup_title.png" title="Sign Up" style="width:126px; height:67px" /></div>
<!--@if($XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == "modules/member/skins")-->
<div class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<!--@endif-->
<form ruleset="@insertMember" id="fo_insert_member" action="/" method="post" enctype="multipart/form-data" class="form-horizontal">
<input type="hidden" name="act" value="procMemberInsert" />
<input type="hidden" name="xe_validator_id" value="modules/member/skins" />
<input type="hidden" name="success_return_url" value="{getUrl('act','dispMemberInfo')}" />
<input type="hidden" name="allow_message" value="Y" />
<!--@if($member_config->agreement)-->
<div class="agreement newclearfix">
<div class="agree-text newclearfix">
{$member_config->agreement}
</div>
<div class="agree-confirm newclearfix">
<label for="accept_agree">
<input type="checkbox" name="accept_agreement" value="Y" id="accept_agree" />
{$lang->about_accept_agreement}
</label>
</div>
</div>
<!--@endif-->
<h1>{$lang->cmd_signup}</h1>
<table id="signup-table">
<tbody>
<tr class="first-tr">
<th><label for="{$identifierForm->name}" class="control-label"><em style="color:red">*</em> {$identifierForm->title}</label></th>
<td><input <!--@if($identifierForm->name=="email_address")-->type="email"<!--@else-->type="text"<!--@endif--> name="{$identifierForm->name}" id="{$identifierForm->name}" value="{$identifierForm->value}" required /></td>
</tr>
<tr>
<th><label for="password" class="control-label"><em style="color:red">*</em> {$lang->password}</label></th>
<td>
<input type="password" name="password" id="password" value="" required />
<p class="help-block">{$lang->about_password_strength[$member_config->password_strength]}</p>
</td>
</tr>
<tr>
<th><label for="password2" class="control-label"><em style="color:red">*</em> {$lang->password3}</label></th>
<td><input type="password" name="password2" id="password2" value="" required /></td>
</tr>
<!--@foreach($formTags as $formTag)-->
<!--@if($formTag->name != "signature")-->
<tr>
<th><label for="{$formTag->name}" class="control-label">{$formTag->title}</label></th>
<td>{$formTag->inputTag}</td>
</tr>
<!--@endif-->
<!--@end-->
<tr class="last-tr">
<th><label for="mailingYes" class="control-label">기술 정보 제공 동의 <br>(SMS, MAIL)</label></th>
<td>
<div style="padding-top:5px">
<label for="mailingYes"><input type="radio" name="allow_mailing" id="mailingYes" value="Y" checked="checked"|cond="$member_info->allow_mailing != 'N'" /> {$lang->cmd_yes} </label>
<label for="mailingNo"><input type="radio" name="allow_mailing" id="mailingNo" value="N" checked="checked"|cond="$member_info->allow_mailing == 'N'" /> {$lang->cmd_no} </label>
<!--
-->
<!--
<label for="mailingYes"><input type="radio" name="allow_mailing" id="mailingYes" value="Y" checked="checked"|cond="$member_info->allow_mailing == 'Y'" /> {$lang->cmd_yes}</label>
<label for="mailingNo"><input type="radio" name="allow_mailing" id="mailingNo" value="N" checked="checked"|cond="$member_info->allow_mailing != 'Y'" /> {$lang->cmd_no}</label>
-->
</div>
</td>
</tr>
</tbody>
</table>
<div class="signup-btn-area">
<input type="submit" value="{$lang->cmd_registration}" class="signup-btn signup-btn-submit" /><a href="{getUrl('act','','member_srl','')}" class="signup-btn signup-btn-cancel">{$lang->cmd_cancel}</a>
</div>
</form>
</div>
<script>
jQuery(function($){
// label for setup
$('.control-label[for]').each(function(){
var $this = $(this);
if($this.attr('for') == ''){
$this.attr('for', $this.next().children(':visible:first').attr('id'));
}
});
});
(function($){
$(function(){
var option = { changeMonth: true, changeYear: true, gotoCurrent: false,yearRange:'-100:+10', dateFormat:'yy-mm-dd', onSelect:function(){
$(this).prev('input[type="hidden"]').val(this.value.replace(/-/g,""))}
};
$.extend(option,$.datepicker.regional['{$lang_type}']);
$(".inputDate").datepicker(option);
$(".dateRemover").click(function() {
$(this).prevAll('input').val('');
return false;});
});
})(jQuery);
</script>
회원가입,회원정보수정 모두 대응하도록 만드셔야 하구요.