mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
/modules/member/ /modules/point/ HTML5 forms attributes update.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11802 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
41a26515eb
commit
cfc86f9b52
13 changed files with 99 additions and 73 deletions
|
|
@ -417,7 +417,7 @@
|
|||
}//end imageType
|
||||
elseif($formInfo->name == 'birthday'){
|
||||
$formTag->type = 'date';
|
||||
$inputTag = sprintf('<input type="hidden" name="birthday" id="date_birthday" value="%s" /><input type="text" placeholder="YYYY-MM-DD" class="inputDate" id="birthday" value="%s" /> <input type="button" value="%s" class="x_btn dateRemover" />'
|
||||
$inputTag = sprintf('<input type="hidden" name="birthday" id="date_birthday" value="%s" /><input type="date" placeholder="YYYY-MM-DD" class="inputDate" id="birthday" value="%s" /> <input type="button" value="%s" class="x_btn dateRemover" />'
|
||||
,$memberInfo['birthday']
|
||||
,zdate($memberInfo['birthday'], 'Y-m-d', false)
|
||||
,$lang->cmd_delete);
|
||||
|
|
@ -435,6 +435,12 @@
|
|||
}
|
||||
$inputTag = sprintf($inputTag, implode('', $optionTag));
|
||||
$inputTag .= '<input type="text" name="find_account_answer" id="find_account_answer" title="'.Context::getLang('find_account_answer').'" value="'.$memberInfo['find_account_answer'].'" />';
|
||||
}elseif($formInfo->name == 'homepage'){
|
||||
$formTag->type = 'url';
|
||||
$inputTag = '<input type="url" name="homepage" id="homepage" value="'.$memberInfo['homepage'].'" />';
|
||||
}elseif($formInfo->name == 'blog'){
|
||||
$formTag->type = 'url';
|
||||
$inputTag = '<input type="url" name="blog" id="blog" value="'.$memberInfo['blog'].'" />';
|
||||
}else{
|
||||
$formTag->type = 'text';
|
||||
$inputTag = sprintf('<input type="text" name="%s" id="%s" value="%s" />'
|
||||
|
|
@ -450,8 +456,12 @@
|
|||
$extentionReplace = array();
|
||||
|
||||
$formTag->type = $extendForm->column_type;
|
||||
if($extendForm->column_type == 'text' || $extendForm->column_type == 'homepage' || $extendForm->column_type == 'email_address'){
|
||||
if($extendForm->column_type == 'text'){
|
||||
$template = '<input type="text" name="%column_name%" id="%column_name%" value="%value%" />';
|
||||
}elseif($extendForm->column_type == 'homepage'){
|
||||
$template = '<input type="url" name="%column_name%" id="%column_name%" value="%value%" />';
|
||||
}elseif($extendForm->column_type == 'email_address'){
|
||||
$template = '<input type="email" name="%column_name%" id="%column_name%" value="%value%" />';
|
||||
}elseif($extendForm->column_type == 'tel'){
|
||||
$extentionReplace = array('tel_0' => $extendForm->value[0],
|
||||
'tel_1' => $extendForm->value[1],
|
||||
|
|
@ -529,7 +539,7 @@ EOD;
|
|||
}elseif($extendForm->column_type == 'date'){
|
||||
$extentionReplace = array('date' => zdate($extendForm->value, 'Y-m-d'),
|
||||
'cmd_delete' => $lang->cmd_delete);
|
||||
$template = '<input type="hidden" name="%column_name%" id="date_%column_name%" value="%value%" /><input type="text" class="inputDate" value="%date%" readonly="readonly" /> <input type="button" value="%cmd_delete%" class="dateRemover" />';
|
||||
$template = '<input type="hidden" name="%column_name%" id="date_%column_name%" value="%value%" /><input type="date" placeholder="YYYY-MM-DD" class="inputDate" value="%date%" readonly="readonly" /> <input type="button" value="%cmd_delete%" class="dateRemover" />';
|
||||
}
|
||||
|
||||
$replace = array_merge($extentionReplace, $replace);
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<!--@else-->
|
||||
{@ $_width = 200; $_height = 20; $_talign = "left"; }
|
||||
<!--@end-->
|
||||
<div style="float:left;text-align:{$_talign};margin-bottom:1em;width:{$_width}px;height:{$_height}px;margin-right:10px;">
|
||||
<div style="float:left;text-align:{$_talign};margin-bottom:8px;width:{$_width}px;height:{$_height}px;margin-right:10px;">
|
||||
<input type="radio" name="colorset" value="{$val->name}" id="colorset_{$key}" <!--@if($config->colorset==$val->name)-->checked="checked"<!--@end-->/>
|
||||
<label for="colorset_{$key}">{$val->title}</label>
|
||||
<!--@if($val->screenshot)-->
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="webmaster_email">{$lang->webmaster_email}</label>
|
||||
<div class="x_controls">
|
||||
<input type="text" id="webmaster_email" name="webmaster_email" value="{$config->webmaster_email}" size="40" />
|
||||
<input type="email" id="webmaster_email" name="webmaster_email" value="{$config->webmaster_email}" size="40" />
|
||||
<p class="x_help-block">{$lang->about_webmaster_email}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="layout">{$lang->layout}</label>
|
||||
<div class="x_controls">
|
||||
<select id="layout" name="layout_srl">
|
||||
<select id="layout" name="layout_srl" style="width:220px">
|
||||
<option value="0">{$lang->notuse}</option>
|
||||
<option loop="$layout_list => $key,$val" value="{$val->layout_srl}" selected="selected"|cond="$val->layout_srl == $config->layout_srl">{$val->title} ({$val->layout})</option>
|
||||
</select>
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="skin">{$lang->skin}</label>
|
||||
<div class="x_controls">
|
||||
<select id="skin" name="skin" onchange="doGetSkinColorset(this.options[this.selectedIndex].value)">
|
||||
<select id="skin" name="skin" onchange="doGetSkinColorset(this.options[this.selectedIndex].value)" style="width:220px">
|
||||
<option loop="$skin_list=>$key,$val" value="{$key}" selected="selected"|cond="$config->skin==$key">{$val->title} ({$key})</option>
|
||||
</select>
|
||||
</div>
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="mlayout">{$lang->mobile_layout}</label>
|
||||
<div class="x_controls">
|
||||
<select id="mlayout" name="mlayout_srl">
|
||||
<select id="mlayout" name="mlayout_srl" style="width:220px">
|
||||
<option value="0">{$lang->notuse}</option>
|
||||
<option loop="$mlayout_list => $key,$val" value="{$val->layout_srl}" selected="selected"|cond="$val->layout_srl == $config->mlayout_srl">{$val->title} ({$val->layout})</option>
|
||||
</select>
|
||||
|
|
@ -37,7 +37,7 @@
|
|||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="mskin">{$lang->mobile_skin}</label>
|
||||
<div class="x_controls">
|
||||
<select id="mskin" name="mskin">
|
||||
<select id="mskin" name="mskin" style="width:220px">
|
||||
<option loop="$mskin_list=>$key,$val" value="{$key}" selected="selected"|cond="$config->mskin==$key">{$val->title} ({$key})</option>
|
||||
</select>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<div class="x_control-group">
|
||||
<label for="columnType" class="x_control-label">{$lang->column_type} *</label>
|
||||
<div class="x_controls">
|
||||
<select id="columnType" class="typeSelect" name="column_type">
|
||||
<select id="columnType" class="typeSelect" name="column_type" style="width:220px">
|
||||
<option loop="$lang->column_type_list=>$key,$type_info" value="{$key}" selected="selected"|cond="$formInfo->column_type == $key" >{$lang->column_type_list[$key]}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
<label class="x_control-label" for="identifierForm">{$identifierForm->title} <em style="color:red">*</em></label>
|
||||
<div class="x_controls">
|
||||
<input type="hidden" name="{$identifierForm->name}" value="{$identifierForm->value}" />
|
||||
<input id="identifierForm" type="text" name="{$identifierForm->name}" value="{$identifierForm->value}" disabled="disabled" />
|
||||
<input id="identifierForm" type="email" name="{$identifierForm->name}" value="{$identifierForm->value}" disabled="disabled" />
|
||||
</div>
|
||||
</div>
|
||||
<div cond="!$member_srl" class="x_control-group">
|
||||
|
|
@ -76,7 +76,7 @@
|
|||
<label class="x_control-label" for="until">{$lang->limit_date}</label>
|
||||
<div class="x_controls">
|
||||
<input type="hidden" name="limit_date" id="date_limit_date" value="{$member_info->limit_date}" />
|
||||
<input type="text" class="inputDate" id="until" value="{zdate($member_info->limit_date,'Y-m-d',false)}" />
|
||||
<input type="date" placeholder="YYYY-MM-DD" class="inputDate" id="until" value="{zdate($member_info->limit_date,'Y-m-d',false)}" />
|
||||
<input type="button" value="{$lang->cmd_delete}" class="x_btn dateRemover" />
|
||||
<span class="x_help-inline">{$lang->about_limit_date}</span>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -44,21 +44,23 @@ jQuery(function($){
|
|||
$i.change(function(){
|
||||
if($i.is(':checked')){
|
||||
$i.parent('td').next('td')
|
||||
.find(':radio, :text')
|
||||
.removeAttr('disabled')
|
||||
.end()
|
||||
.find(':radio[value=option]').attr('checked', 'checked')
|
||||
.end()
|
||||
.next('td')
|
||||
.find(':input[value=Y]').removeAttr('disabled').attr('checked', 'checked');
|
||||
.find('>._subItem').show().end()
|
||||
.find(':radio, [type="number"]')
|
||||
.removeAttr('disabled')
|
||||
.end()
|
||||
.find(':radio[value=option]').attr('checked', 'checked')
|
||||
.end()
|
||||
.next('td')
|
||||
.find(':input[value=Y]').removeAttr('disabled').attr('checked', 'checked');
|
||||
|
||||
} else {
|
||||
$i.parent('td').next('td')
|
||||
.find(':radio, :text').attr('disabled','disabled').removeAttr('checked')
|
||||
.next('label').css('fontWeight','normal').end()
|
||||
.end()
|
||||
.next('td')
|
||||
.find(':input[value=Y]').removeAttr('checked').attr('disabled', 'disabled');
|
||||
.find('>._subItem').hide().end()
|
||||
.find(':radio, [type="number"]').attr('disabled','disabled').removeAttr('checked')
|
||||
.next('label').css('fontWeight','normal').end()
|
||||
.end()
|
||||
.next('td')
|
||||
.find(':input[value=Y]').removeAttr('checked').attr('disabled', 'disabled');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="change_password_date">{$lang->change_password_date}</label>
|
||||
<div class="x_controls">
|
||||
<input type="text" id="change_password_date" name="change_password_date" value="{$config->change_password_date}" style="width:30px" /> {$lang->unit_day}
|
||||
<input type="number" min="0" id="change_password_date" name="change_password_date" value="{$config->change_password_date}" style="width:40px" /> {$lang->unit_day}
|
||||
<p class="x_help-inline">{$lang->about_change_password_date}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -17,31 +17,31 @@
|
|||
<label class="x_inline" for="enable_login_fail_report_no"><input type="radio" name="enable_login_fail_report" id="enable_login_fail_report_no" value="N" checked="checked"|cond="$config->enable_login_fail_report == 'N'" /> {$lang->cmd_no}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<div class="x_control-group _limit" style="display:none">
|
||||
<label class="x_control-label" for="max_error_count">{$lang->login_trial_limit1}</label>
|
||||
<div class="x_controls">
|
||||
<input type="text" id="max_error_count" name="max_error_count" value="{$config->max_error_count}" style="width:30px" /> {$lang->unit_count}
|
||||
<input type="number" min="0" id="max_error_count" name="max_error_count" value="{$config->max_error_count}" style="width:40px" /> {$lang->unit_count}
|
||||
<p class="x_help-inline">{$lang->about_login_trial_limit1}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<div class="x_control-group _limit" style="display:none">
|
||||
<label class="x_control-label" for="max_error_count_time">{$lang->login_trial_limit2}</label>
|
||||
<div class="x_controls">
|
||||
<input type="text" id="max_error_count_time" name="max_error_count_time" value="{$config->max_error_count_time}" style="width:30px" /> {$lang->unit_sec}
|
||||
<input type="number" min="0" id="max_error_count_time" name="max_error_count_time" value="{$config->max_error_count_time}" style="width:40px" /> {$lang->unit_sec}
|
||||
<p class="x_help-inline">{$lang->about_login_trial_limit2}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="after_login_url">{$lang->after_login_url}</label>
|
||||
<div class="x_controls">
|
||||
<input type="text" id="after_login_url" name="after_login_url" value="{$config->after_login_url}" />
|
||||
<input type="url" id="after_login_url" name="after_login_url" value="{$config->after_login_url}" />
|
||||
<p class="x_help-inline">{$lang->about_after_login_url}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="after_logout_url">{$lang->after_logout_url}</label>
|
||||
<div class="x_controls">
|
||||
<input type="text" id="after_logout_url" name="after_logout_url" value="{$config->after_logout_url}" />
|
||||
<input type="url" id="after_logout_url" name="after_logout_url" value="{$config->after_logout_url}" />
|
||||
<p class="x_help-inline">{$lang->about_after_logout_url}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -49,3 +49,15 @@
|
|||
<span class="x_pull-right"><input class="x_btn x_btn-large x_btn-primary" type="submit" value="{$lang->cmd_save}" /></span>
|
||||
</div>
|
||||
</form>
|
||||
<script>
|
||||
jQuery(function($){
|
||||
$('input[name="enable_login_fail_report"]').change(function(){
|
||||
var $limit = $(this).closest('.x_control-group').siblings('._limit');
|
||||
if($('#enable_login_fail_report_yes').is(':checked')){
|
||||
$limit.show();
|
||||
} else {
|
||||
$limit.hide();
|
||||
}
|
||||
}).change();
|
||||
});
|
||||
</script>
|
||||
|
|
@ -4,9 +4,11 @@
|
|||
<!--@else-->
|
||||
{@ $_width = 200; $_height = 20; $_talign = "left"; }
|
||||
<!--@end-->
|
||||
<div style="float:left;text-align:{$_talign};margin-bottom:1em;width:{$_width}px;margin-right:10px;">
|
||||
<label for="colorset_{$key}" class="x_inline"><input type="radio" name="colorset" value="{$val->name}" id="colorset_{$key}" <!--@if($config->colorset==$val->name)-->checked="checked"<!--@end-->/>
|
||||
{$val->title}</label>
|
||||
<div style="display:inline-block;*display:inline;*zoom:1;text-align:{$_talign};width:{$_width}px;margin-right:10px;">
|
||||
<label for="colorset_{$key}" class="x_inline">
|
||||
<input type="radio" name="colorset" value="{$val->name}" id="colorset_{$key}" <!--@if($config->colorset==$val->name)-->checked="checked"<!--@end-->/>
|
||||
{$val->title}
|
||||
</label>
|
||||
<!--@if($val->screenshot)-->
|
||||
<br />
|
||||
<img src="../../../{$val->screenshot}" alt="{$val->title}" style="border:1px solid #888888;padding:2px;margin:2px;"/>
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="limit_day">{$lang->limit_day}</label>
|
||||
<div class="x_controls">
|
||||
<input type="text" id="limit_day" name="limit_day" value="{$config->limit_day}" style="width:30px" /> {$lang->unit_day}
|
||||
<input type="number" min="0" id="limit_day" name="limit_day" value="{$config->limit_day}" style="width:40px" /> {$lang->unit_day}
|
||||
<p class="x_help-inline">{$lang->about_limit_day}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -55,7 +55,7 @@
|
|||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="redirect_url">{$lang->redirect_url}</label>
|
||||
<div class="x_controls">
|
||||
<input type="text" id="redirect_url" name="redirect_url" value="{$config->redirect_url}" />
|
||||
<input type="url" id="redirect_url" name="redirect_url" value="{$config->redirect_url}" />
|
||||
<p class="x_help-inline">{$lang->about_redirect_url}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -124,12 +124,12 @@
|
|||
<td class="nowr">
|
||||
<label for="{$item->name}_re" class="x_inline"><input type="radio" id="{$item->name}_re" name="{$item->name}" value="required" checked="checked"|cond="$item->mustRequired || $item->required" disabled="disabled"|cond="$item->mustRequired || !$item->isUse" /> {$lang->cmd_required}</label>
|
||||
<label for="{$item->name}_op" class="x_inline"><input type="radio" id="{$item->name}_op" name="{$item->name}" value="option" checked="checked"|cond="!$item->mustRequired && ($item->isUse && !$item->required)" disabled="disabled"|cond="$item->mustRequired || !$item->isUse" /> {$lang->cmd_optional}</label>
|
||||
<div cond="$item->imageType" class="_subItem">
|
||||
<label for="{$item->name}_max_width" class="x_inline">{$lang->cmd_image_max_width} <input type="text" name="{$item->name}_max_width" id="{$item->name}_max_width" value="{$item->max_width}" style="width:30px" /> px</label>
|
||||
<div cond="$item->imageType" class="_subItem" style="display:none">
|
||||
<label for="{$item->name}_max_width" class="x_inline">{$lang->cmd_image_max_width} <input type="number" min="1" name="{$item->name}_max_width" id="{$item->name}_max_width" value="{$item->max_width}" style="width:40px" /> px</label>
|
||||
/
|
||||
<label for="{$item->name}_max_height" class="x_inline">{$lang->cmd_image_max_height} <input type="text" name="{$item->name}_max_height" id="{$item->name}_max_height" value="{$item->max_height}" style="width:30px" /> px</label>
|
||||
<label for="{$item->name}_max_height" class="x_inline">{$lang->cmd_image_max_height} <input type="number" min="1" name="{$item->name}_max_height" id="{$item->name}_max_height" value="{$item->max_height}" style="width:40px" /> px</label>
|
||||
</div>
|
||||
<div cond="$item->name == 'signature'" style="padding-top:10px">
|
||||
<div cond="$item->name == 'signature'" class="_subItem" style="display:none;padding-top:5px">
|
||||
<select id="signature_editor" name="signature_editor_skin" onchange="getEditorSkinColorList(this.value)">
|
||||
<!--@foreach($editor_skin_list as $editor_skin)-->
|
||||
<option value="{$editor_skin}" selected="selected"|cond="$editor_skin==$config->signature_editor_skin">{$editor_skin}</option>
|
||||
|
|
@ -148,9 +148,9 @@
|
|||
</tr>
|
||||
<!--@else-->
|
||||
<tr>
|
||||
<input type="hidden" name="list_order[]" value="{$item->name}" />
|
||||
<input type="hidden" name="{$item->name}_member_join_form_srl" value="{$item->member_join_form_srl}" />
|
||||
<th scope="row">
|
||||
<input type="hidden" name="list_order[]" value="{$item->name}" />
|
||||
<input type="hidden" name="{$item->name}_member_join_form_srl" value="{$item->member_join_form_srl}" />
|
||||
<div class="wrap">
|
||||
<button type="button" class="dragBtn">Move to</button>
|
||||
<span class="_title">{$item->title}</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue