/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:
ChanMyeong 2012-10-19 06:10:48 +00:00
parent 41a26515eb
commit cfc86f9b52
13 changed files with 99 additions and 73 deletions

View file

@ -417,7 +417,7 @@
}//end imageType }//end imageType
elseif($formInfo->name == 'birthday'){ elseif($formInfo->name == 'birthday'){
$formTag->type = 'date'; $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'] ,$memberInfo['birthday']
,zdate($memberInfo['birthday'], 'Y-m-d', false) ,zdate($memberInfo['birthday'], 'Y-m-d', false)
,$lang->cmd_delete); ,$lang->cmd_delete);
@ -435,6 +435,12 @@
} }
$inputTag = sprintf($inputTag, implode('', $optionTag)); $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'].'" />'; $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{ }else{
$formTag->type = 'text'; $formTag->type = 'text';
$inputTag = sprintf('<input type="text" name="%s" id="%s" value="%s" />' $inputTag = sprintf('<input type="text" name="%s" id="%s" value="%s" />'
@ -450,8 +456,12 @@
$extentionReplace = array(); $extentionReplace = array();
$formTag->type = $extendForm->column_type; $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%" />'; $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'){ }elseif($extendForm->column_type == 'tel'){
$extentionReplace = array('tel_0' => $extendForm->value[0], $extentionReplace = array('tel_0' => $extendForm->value[0],
'tel_1' => $extendForm->value[1], 'tel_1' => $extendForm->value[1],
@ -529,7 +539,7 @@ EOD;
}elseif($extendForm->column_type == 'date'){ }elseif($extendForm->column_type == 'date'){
$extentionReplace = array('date' => zdate($extendForm->value, 'Y-m-d'), $extentionReplace = array('date' => zdate($extendForm->value, 'Y-m-d'),
'cmd_delete' => $lang->cmd_delete); '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); $replace = array_merge($extentionReplace, $replace);

View file

@ -4,7 +4,7 @@
<!--@else--> <!--@else-->
{@ $_width = 200; $_height = 20; $_talign = "left"; } {@ $_width = 200; $_height = 20; $_talign = "left"; }
<!--@end--> <!--@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-->/> <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> <label for="colorset_{$key}">{$val->title}</label>
<!--@if($val->screenshot)--> <!--@if($val->screenshot)-->

View file

@ -21,7 +21,7 @@
<div class="x_control-group"> <div class="x_control-group">
<label class="x_control-label" for="webmaster_email">{$lang->webmaster_email}</label> <label class="x_control-label" for="webmaster_email">{$lang->webmaster_email}</label>
<div class="x_controls"> <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> <p class="x_help-block">{$lang->about_webmaster_email}</p>
</div> </div>
</div> </div>

View file

@ -7,7 +7,7 @@
<div class="x_control-group"> <div class="x_control-group">
<label class="x_control-label" for="layout">{$lang->layout}</label> <label class="x_control-label" for="layout">{$lang->layout}</label>
<div class="x_controls"> <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 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> <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> </select>
@ -16,7 +16,7 @@
<div class="x_control-group"> <div class="x_control-group">
<label class="x_control-label" for="skin">{$lang->skin}</label> <label class="x_control-label" for="skin">{$lang->skin}</label>
<div class="x_controls"> <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> <option loop="$skin_list=>$key,$val" value="{$key}" selected="selected"|cond="$config->skin==$key">{$val->title} ({$key})</option>
</select> </select>
</div> </div>
@ -28,7 +28,7 @@
<div class="x_control-group"> <div class="x_control-group">
<label class="x_control-label" for="mlayout">{$lang->mobile_layout}</label> <label class="x_control-label" for="mlayout">{$lang->mobile_layout}</label>
<div class="x_controls"> <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 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> <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> </select>
@ -37,7 +37,7 @@
<div class="x_control-group"> <div class="x_control-group">
<label class="x_control-label" for="mskin">{$lang->mobile_skin}</label> <label class="x_control-label" for="mskin">{$lang->mobile_skin}</label>
<div class="x_controls"> <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> <option loop="$mskin_list=>$key,$val" value="{$key}" selected="selected"|cond="$config->mskin==$key">{$val->title} ({$key})</option>
</select> </select>
</div> </div>

View file

@ -19,7 +19,7 @@
<div class="x_control-group"> <div class="x_control-group">
<label for="columnType" class="x_control-label">{$lang->column_type} *</label> <label for="columnType" class="x_control-label">{$lang->column_type} *</label>
<div class="x_controls"> <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> <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> </select>
</div> </div>

View file

@ -23,7 +23,7 @@
<label class="x_control-label" for="identifierForm">{$identifierForm->title} <em style="color:red">*</em></label> <label class="x_control-label" for="identifierForm">{$identifierForm->title} <em style="color:red">*</em></label>
<div class="x_controls"> <div class="x_controls">
<input type="hidden" name="{$identifierForm->name}" value="{$identifierForm->value}" /> <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> </div>
<div cond="!$member_srl" class="x_control-group"> <div cond="!$member_srl" class="x_control-group">
@ -76,7 +76,7 @@
<label class="x_control-label" for="until">{$lang->limit_date}</label> <label class="x_control-label" for="until">{$lang->limit_date}</label>
<div class="x_controls"> <div class="x_controls">
<input type="hidden" name="limit_date" id="date_limit_date" value="{$member_info->limit_date}" /> <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" /> <input type="button" value="{$lang->cmd_delete}" class="x_btn dateRemover" />
<span class="x_help-inline">{$lang->about_limit_date}</span> <span class="x_help-inline">{$lang->about_limit_date}</span>
</div> </div>

View file

@ -44,21 +44,23 @@ jQuery(function($){
$i.change(function(){ $i.change(function(){
if($i.is(':checked')){ if($i.is(':checked')){
$i.parent('td').next('td') $i.parent('td').next('td')
.find(':radio, :text') .find('>._subItem').show().end()
.removeAttr('disabled') .find(':radio, [type="number"]')
.end() .removeAttr('disabled')
.find(':radio[value=option]').attr('checked', 'checked') .end()
.end() .find(':radio[value=option]').attr('checked', 'checked')
.next('td') .end()
.find(':input[value=Y]').removeAttr('disabled').attr('checked', 'checked'); .next('td')
.find(':input[value=Y]').removeAttr('disabled').attr('checked', 'checked');
} else { } else {
$i.parent('td').next('td') $i.parent('td').next('td')
.find(':radio, :text').attr('disabled','disabled').removeAttr('checked') .find('>._subItem').hide().end()
.next('label').css('fontWeight','normal').end() .find(':radio, [type="number"]').attr('disabled','disabled').removeAttr('checked')
.end() .next('label').css('fontWeight','normal').end()
.next('td') .end()
.find(':input[value=Y]').removeAttr('checked').attr('disabled', 'disabled'); .next('td')
.find(':input[value=Y]').removeAttr('checked').attr('disabled', 'disabled');
} }
}); });
}); });

View file

@ -6,7 +6,7 @@
<div class="x_control-group"> <div class="x_control-group">
<label class="x_control-label" for="change_password_date">{$lang->change_password_date}</label> <label class="x_control-label" for="change_password_date">{$lang->change_password_date}</label>
<div class="x_controls"> <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> <p class="x_help-inline">{$lang->about_change_password_date}</p>
</div> </div>
</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> <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> </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> <label class="x_control-label" for="max_error_count">{$lang->login_trial_limit1}</label>
<div class="x_controls"> <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> <p class="x_help-inline">{$lang->about_login_trial_limit1}</p>
</div> </div>
</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> <label class="x_control-label" for="max_error_count_time">{$lang->login_trial_limit2}</label>
<div class="x_controls"> <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> <p class="x_help-inline">{$lang->about_login_trial_limit2}</p>
</div> </div>
</div> </div>
<div class="x_control-group"> <div class="x_control-group">
<label class="x_control-label" for="after_login_url">{$lang->after_login_url}</label> <label class="x_control-label" for="after_login_url">{$lang->after_login_url}</label>
<div class="x_controls"> <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> <p class="x_help-inline">{$lang->about_after_login_url}</p>
</div> </div>
</div> </div>
<div class="x_control-group"> <div class="x_control-group">
<label class="x_control-label" for="after_logout_url">{$lang->after_logout_url}</label> <label class="x_control-label" for="after_logout_url">{$lang->after_logout_url}</label>
<div class="x_controls"> <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> <p class="x_help-inline">{$lang->about_after_logout_url}</p>
</div> </div>
</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> <span class="x_pull-right"><input class="x_btn x_btn-large x_btn-primary" type="submit" value="{$lang->cmd_save}" /></span>
</div> </div>
</form> </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>

View file

@ -4,9 +4,11 @@
<!--@else--> <!--@else-->
{@ $_width = 200; $_height = 20; $_talign = "left"; } {@ $_width = 200; $_height = 20; $_talign = "left"; }
<!--@end--> <!--@end-->
<div style="float:left;text-align:{$_talign};margin-bottom:1em;width:{$_width}px;margin-right:10px;"> <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-->/> <label for="colorset_{$key}" class="x_inline">
{$val->title}</label> <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)--> <!--@if($val->screenshot)-->
<br /> <br />
<img src="../../../{$val->screenshot}" alt="{$val->title}" style="border:1px solid #888888;padding:2px;margin:2px;"/> <img src="../../../{$val->screenshot}" alt="{$val->title}" style="border:1px solid #888888;padding:2px;margin:2px;"/>

View file

@ -24,7 +24,7 @@
<div class="x_control-group"> <div class="x_control-group">
<label class="x_control-label" for="limit_day">{$lang->limit_day}</label> <label class="x_control-label" for="limit_day">{$lang->limit_day}</label>
<div class="x_controls"> <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> <p class="x_help-inline">{$lang->about_limit_day}</p>
</div> </div>
</div> </div>
@ -55,7 +55,7 @@
<div class="x_control-group"> <div class="x_control-group">
<label class="x_control-label" for="redirect_url">{$lang->redirect_url}</label> <label class="x_control-label" for="redirect_url">{$lang->redirect_url}</label>
<div class="x_controls"> <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> <p class="x_help-inline">{$lang->about_redirect_url}</p>
</div> </div>
</div> </div>
@ -124,12 +124,12 @@
<td class="nowr"> <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}_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> <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"> <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="text" name="{$item->name}_max_width" id="{$item->name}_max_width" value="{$item->max_width}" style="width:30px" /> px</label> <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>
<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)"> <select id="signature_editor" name="signature_editor_skin" onchange="getEditorSkinColorList(this.value)">
<!--@foreach($editor_skin_list as $editor_skin)--> <!--@foreach($editor_skin_list as $editor_skin)-->
<option value="{$editor_skin}" selected="selected"|cond="$editor_skin==$config->signature_editor_skin">{$editor_skin}</option> <option value="{$editor_skin}" selected="selected"|cond="$editor_skin==$config->signature_editor_skin">{$editor_skin}</option>
@ -148,9 +148,9 @@
</tr> </tr>
<!--@else--> <!--@else-->
<tr> <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"> <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"> <div class="wrap">
<button type="button" class="dragBtn">Move to</button> <button type="button" class="dragBtn">Move to</button>
<span class="_title">{$item->title}</span> <span class="_title">{$item->title}</span>

View file

@ -10,7 +10,7 @@
<div class="x_control-group"> <div class="x_control-group">
<label for="max_level" class="x_control-label">{$lang->max_level}</label> <label for="max_level" class="x_control-label">{$lang->max_level}</label>
<div class="x_controls"> <div class="x_controls">
<input type="text" value="{$config->max_level}" name="max_level" id="max_level" style="width:30px" /> <input type="number" min="0" max="1000" value="{$config->max_level}" name="max_level" id="max_level" style="width:50px" />
{$lang->about_max_level} {$lang->about_max_level}
</div> </div>
</div> </div>
@ -24,31 +24,31 @@
<div class="x_control-group"> <div class="x_control-group">
<label class="x_control-label">{$lang->give_point}</label> <label class="x_control-label">{$lang->give_point}</label>
<div class="x_controls"> <div class="x_controls">
<input type="text" value="{$config->signup_point}" name="signup_point" id="signup_point" style="width:30px" /> : <input type="number" value="{$config->signup_point}" name="signup_point" id="signup_point" style="width:50px;text-align:right" /> :
<label for="signup_point" class="x_inline">{$lang->point_signup}</label> <label for="signup_point" class="x_inline">{$lang->point_signup}</label>
<br /> <br />
<input type="text" value="{$config->login_point}" name="login_point" id="login_point" style="width:30px" /> : <input type="number" value="{$config->login_point}" name="login_point" id="login_point" style="width:50px;text-align:right" /> :
<label for="login_point" class="x_inline">{$lang->cmd_login}</label> <label for="login_point" class="x_inline">{$lang->cmd_login}</label>
<br /> <br />
<input type="text" name="insert_document" value="{$config->insert_document}" id="insert_document" style="width:30px" /> : <input type="number" name="insert_document" value="{$config->insert_document}" id="insert_document" style="width:50px;text-align:right" /> :
<label for="insert_document" class="x_inline">{$lang->point_insert_document}</label> <label for="insert_document" class="x_inline">{$lang->point_insert_document}</label>
<br /> <br />
<input type="text" name="insert_comment" value="{$config->insert_comment}" id="insert_comment" style="width:30px" /> : <input type="number" name="insert_comment" value="{$config->insert_comment}" id="insert_comment" style="width:50px;text-align:right" /> :
<label for="insert_comment" class="x_inline">{$lang->point_insert_comment}</label> <label for="insert_comment" class="x_inline">{$lang->point_insert_comment}</label>
<br /> <br />
<input type="text" name="upload_file" value="{$config->upload_file}" id="upload_file" style="width:30px" /> : <input type="number" name="upload_file" value="{$config->upload_file}" id="upload_file" style="width:50px;text-align:right" /> :
<label for="upload_file" class="x_inline">{$lang->point_upload_file}</label> <label for="upload_file" class="x_inline">{$lang->point_upload_file}</label>
<br /> <br />
<input type="text" name="download_file" value="{$config->download_file}" id="download_file" style="width:30px" /> : <input type="number" name="download_file" value="{$config->download_file}" id="download_file" style="width:50px;text-align:right" /> :
<label for="download_file" class="x_inline">{$lang->point_download_file}</label> <label for="download_file" class="x_inline">{$lang->point_download_file}</label>
<br /> <br />
<input type="text" name="read_document" value="{$config->read_document}" id="read_document" style="width:30px" /> : <input type="number" name="read_document" value="{$config->read_document}" id="read_document" style="width:50px;text-align:right" /> :
<label for="read_document" class="x_inline">{$lang->point_read_document}</label> <label for="read_document" class="x_inline">{$lang->point_read_document}</label>
<br /> <br />
<input type="text" name="voted" value="{$config->voted}" style="width:30px" id="voted" /> : <input type="number" name="voted" value="{$config->voted}" style="width:50px;text-align:right" id="voted" /> :
<label for="voted" class="x_inline">{$lang->point_voted}</label> <label for="voted" class="x_inline">{$lang->point_voted}</label>
<br /> <br />
<input type="text" name="blamed" value="{$config->blamed}" id="blamed" style="width:30px" /> : <input type="number" name="blamed" value="{$config->blamed}" id="blamed" style="width:50px;text-align:right" /> :
<label for="blamed" class="x_inline">{$lang->point_blamed}</label> <label for="blamed" class="x_inline">{$lang->point_blamed}</label>
</div> </div>
</div> </div>
@ -101,7 +101,7 @@
<tbody> <tbody>
<tr loop="$group_list => $key,$val"> <tr loop="$group_list => $key,$val">
<td><label for="point_group_{$key}">{$val->title}</label></td> <td><label for="point_group_{$key}">{$val->title}</label></td>
<td cond="$val->is_default != 'Y'"><input type="text" value="{$config->point_group[$key]}" name="point_group_{$key}" id="point_group_{$key}" style="width:30px" /></td> <td cond="$val->is_default != 'Y'"><input type="number" min="0" max="1000" value="{$config->point_group[$key]}" name="point_group_{$key}" id="point_group_{$key}" style="width:50px" /></td>
<td cond="$val->is_default == 'Y'"><span>{$lang->default_group}</span></td> <td cond="$val->is_default == 'Y'"><span>{$lang->default_group}</span></td>
</tr> </tr>
</tbody> </tbody>
@ -117,7 +117,7 @@
<div class="x_clearfix"> <div class="x_clearfix">
<p class="x_pull-left">{$lang->expression}</p> <p class="x_pull-left">{$lang->expression}</p>
<span class="x_pull-right x_input-append"> <span class="x_pull-right x_input-append">
<input type="text" value="{$config->expression}" size="30" class="level_expression" /> <input type="text" value="{$config->expression}" placeholder="Math.pow(i,2) * 90" size="30" class="level_expression" />
<button type="button" class="x_btn calc_point">{$lang->level_point_calc}</button> <button type="button" class="x_btn calc_point">{$lang->level_point_calc}</button>
<button type="button" class="x_btn x_btn-warning calc_point _reset">{$lang->cmd_exp_reset}</button> <button type="button" class="x_btn x_btn-warning calc_point _reset">{$lang->cmd_exp_reset}</button>
</span> </span>
@ -131,8 +131,8 @@
</tr> </tr>
<tr> <tr>
<td>1</td> <td>1</td>
<td><img src="{getUrl()}/modules/point/icons/{$config->level_icon}/1.gif" alt="" /></td> <td><img src="{getUrl()}/modules/point/icons/{$config->level_icon}/1.gif" alt="1" /></td>
<td><input type="text" name="level_step_1" value="{$config->level_step[1]}" style="width:40px;text-align:right" /> {$config->point_name}</td> <td><label for="level_step_1" style="margin:0"><input type="number" id="level_step_1" name="level_step_1" value="{$config->level_step[1]}" style="width:60px;text-align:right" /> {$config->point_name}</label></td>
{@$point_group_item = $point_group[1]} {@$point_group_item = $point_group[1]}
{@$title=array()} {@$title=array()}
<!--@if($point_group_item)--> <!--@if($point_group_item)-->
@ -155,8 +155,8 @@
<!--@end--> <!--@end-->
<tr class="row{(($i-1)%2+1)}"> <tr class="row{(($i-1)%2+1)}">
<td>{$i}</td> <td>{$i}</td>
<td><img src="{getUrl()}/modules/point/icons/{$config->level_icon}/{$i}.gif" alt="" /></td> <td><img src="{getUrl()}/modules/point/icons/{$config->level_icon}/{$i}.gif" alt="{$i}" /></td>
<td><input type="text" id="level_step_{$i}" name="level_step_{$i}" value="{$config->level_step[$i]}" style="width:40px;text-align:right" /> {$config->point_name}</td> <td><label for="level_step_{$i}" style="margin:0"><input type="number" id="level_step_{$i}" name="level_step_{$i}" value="{$config->level_step[$i]}" style="width:60px;text-align:right" /> {$config->point_name}</label></td>
<td>{implode(', ', $title)}</td> <td>{implode(', ', $title)}</td>
</tr> </tr>
<!--@end--> <!--@end-->

View file

@ -17,13 +17,13 @@
<option value="" <!--@if($is_denied!='Y')-->selected="selected"<!--@end-->>{$lang->total}</option> <option value="" <!--@if($is_denied!='Y')-->selected="selected"<!--@end-->>{$lang->total}</option>
<option value="Y" <!--@if($is_denied=='Y')-->selected="selected"<!--@end-->>{$lang->denied}</option> <option value="Y" <!--@if($is_denied=='Y')-->selected="selected"<!--@end-->>{$lang->denied}</option>
</select> </select>
<select name="selected_group_srl" style="width:auto"> <select name="selected_group_srl" style="width:auto" title="{$lang->member_group}">
<option value="0">{$lang->member_group}</option> <option value="0">{$lang->member_group}</option>
<!--@foreach($group_list as $key => $val)--> <!--@foreach($group_list as $key => $val)-->
<option value="{$val->group_srl}" <!--@if($selected_group_srl==$val->group_srl)-->selected="selected"<!--@end-->>{$val->title}</option> <option value="{$val->group_srl}" <!--@if($selected_group_srl==$val->group_srl)-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end--> <!--@end-->
</select> </select>
<select name="search_target" style="width:auto"> <select name="search_target" style="width:auto" title="{$lang->search_target}">
<option value="">{$lang->search_target}</option> <option value="">{$lang->search_target}</option>
<option value="{$identifier}" selected="selected"|cond="$search_target == $identifier">{Context::getLang($identifier)}</option> <option value="{$identifier}" selected="selected"|cond="$search_target == $identifier">{Context::getLang($identifier)}</option>
<!--@foreach($lang->search_target_list as $key => $val)--> <!--@foreach($lang->search_target_list as $key => $val)-->
@ -31,7 +31,7 @@
<!--@end--> <!--@end-->
</select> </select>
<span class="x_input-append"> <span class="x_input-append">
<input type="search" name="search_keyword" value="{htmlspecialchars($search_keyword)}" style="width:100px" /> <input type="search" name="search_keyword" value="{htmlspecialchars($search_keyword)}" title="{$lang->cmd_search}" style="width:100px" />
<button type="submit" class="x_btn x_btn-inverse">{$lang->cmd_search}</button> <button type="submit" class="x_btn x_btn-inverse">{$lang->cmd_search}</button>
<button class="x_btn" type="button" onclick="location.href='{getUrl('','module',$module,'act',$act)}';return false;">{$lang->cmd_cancel}</button> <button class="x_btn" type="button" onclick="location.href='{getUrl('','module',$module,'act',$act)}';return false;">{$lang->cmd_cancel}</button>
</span> </span>
@ -59,10 +59,10 @@
<form action="./" method="get" style="margin:0"> <form action="./" method="get" style="margin:0">
<input type="hidden" name="module" value="point" /> <input type="hidden" name="module" value="point" />
<input type="hidden" name="member_srl" value="{$val->member_srl}" /> <input type="hidden" name="member_srl" value="{$val->member_srl}" />
<input type="text" name="orgpoint" value="{$val->point}" disabled="disabled" style="width:40px;text-align:right" /> <input type="number" name="orgpoint" value="{$val->point}" disabled="disabled" style="width:60px;text-align:right" />
-> ->
<span class="x_input-append"> <span class="x_input-append">
<input type="text" id="point_{$val->member_srl}" name="point" style="width:40px;text-align:right" /> <input type="number" id="point_{$val->member_srl}" name="point" required style="width:60px;text-align:right" />
<input type="button" value="{$lang->cmd_update}" onclick="updatePoint({$val->member_srl})" class="x_btn" /> <input type="button" value="{$lang->cmd_update}" onclick="updatePoint({$val->member_srl})" class="x_btn" />
</span> </span>
</form> </form>
@ -115,13 +115,13 @@
<option value="" <!--@if($is_denied!='Y')-->selected="selected"<!--@end-->>{$lang->total}</option> <option value="" <!--@if($is_denied!='Y')-->selected="selected"<!--@end-->>{$lang->total}</option>
<option value="Y" <!--@if($is_denied=='Y')-->selected="selected"<!--@end-->>{$lang->denied}</option> <option value="Y" <!--@if($is_denied=='Y')-->selected="selected"<!--@end-->>{$lang->denied}</option>
</select> </select>
<select name="selected_group_srl" style="width:auto"> <select name="selected_group_srl" style="width:auto" title="{$lang->member_group}">
<option value="0">{$lang->member_group}</option> <option value="0">{$lang->member_group}</option>
<!--@foreach($group_list as $key => $val)--> <!--@foreach($group_list as $key => $val)-->
<option value="{$val->group_srl}" <!--@if($selected_group_srl==$val->group_srl)-->selected="selected"<!--@end-->>{$val->title}</option> <option value="{$val->group_srl}" <!--@if($selected_group_srl==$val->group_srl)-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end--> <!--@end-->
</select> </select>
<select name="search_target" style="width:auto"> <select name="search_target" style="width:auto" title="{$lang->search_target}">
<option value="">{$lang->search_target}</option> <option value="">{$lang->search_target}</option>
<option value="{$identifier}" selected="selected"|cond="$search_target == $identifier">{Context::getLang($identifier)}</option> <option value="{$identifier}" selected="selected"|cond="$search_target == $identifier">{Context::getLang($identifier)}</option>
<!--@foreach($lang->search_target_list as $key => $val)--> <!--@foreach($lang->search_target_list as $key => $val)-->
@ -129,7 +129,7 @@
<!--@end--> <!--@end-->
</select> </select>
<span class="x_input-append"> <span class="x_input-append">
<input type="search" name="search_keyword" value="{htmlspecialchars($search_keyword)}" style="width:100px" /> <input type="search" name="search_keyword" value="{htmlspecialchars($search_keyword)}" title="{$lang->cmd_search}" style="width:100px" />
<button type="submit" class="x_btn x_btn-inverse">{$lang->cmd_search}</button> <button type="submit" class="x_btn x_btn-inverse">{$lang->cmd_search}</button>
<button class="x_btn" type="button" onclick="location.href='{getUrl('','module',$module,'act',$act)}';return false;">{$lang->cmd_cancel}</button> <button class="x_btn" type="button" onclick="location.href='{getUrl('','module',$module,'act',$act)}';return false;">{$lang->cmd_cancel}</button>
</span> </span>

View file

@ -22,13 +22,13 @@
<tbody> <tbody>
<tr loop="$mid_list => $key,$val"> <tr loop="$mid_list => $key,$val">
<th scope="row">{$val->browser_title}({$val->mid})</th> <th scope="row">{$val->browser_title}({$val->mid})</th>
<td><input type="text" style="width:30px;text-align:right" name="insert_document_{$val->module_srl}" value="{$module_config[$val->module_srl]['insert_document']}" /> {$config->point_name}</td> <td><input type="number" style="width:50px;text-align:right" name="insert_document_{$val->module_srl}" value="{$module_config[$val->module_srl]['insert_document']}" title="{$config->point_name}" /> {$config->point_name}</td>
<td><input type="text" style="width:30px;text-align:right" name="insert_comment_{$val->module_srl}" value="{$module_config[$val->module_srl]['insert_comment']}" /> {$config->point_name}</td> <td><input type="number" style="width:50px;text-align:right" name="insert_comment_{$val->module_srl}" value="{$module_config[$val->module_srl]['insert_comment']}" title="{$config->point_name}" /> {$config->point_name}</td>
<td><input type="text" style="width:30px;text-align:right" name="upload_file_{$val->module_srl}" value="{$module_config[$val->module_srl]['upload_file']}" /> {$config->point_name}</td> <td><input type="number" style="width:50px;text-align:right" name="upload_file_{$val->module_srl}" value="{$module_config[$val->module_srl]['upload_file']}" title="{$config->point_name}" /> {$config->point_name}</td>
<td><input type="text" style="width:30px;text-align:right" name="download_file_{$val->module_srl}" value="{$module_config[$val->module_srl]['download_file']}" /> {$config->point_name}</td> <td><input type="number" style="width:50px;text-align:right" name="download_file_{$val->module_srl}" value="{$module_config[$val->module_srl]['download_file']}" title="{$config->point_name}" /> {$config->point_name}</td>
<td><input type="text" style="width:30px;text-align:right" name="read_document_{$val->module_srl}" value="{$module_config[$val->module_srl]['read_document']}" /> {$config->point_name}</td> <td><input type="number" style="width:50px;text-align:right" name="read_document_{$val->module_srl}" value="{$module_config[$val->module_srl]['read_document']}" title="{$config->point_name}" /> {$config->point_name}</td>
<td><input type="text" style="width:30px;text-align:right" name="voted_{$val->module_srl}" value="{$module_config[$val->module_srl]['voted']}" /> {$config->point_name}</td> <td><input type="number" style="width:50px;text-align:right" name="voted_{$val->module_srl}" value="{$module_config[$val->module_srl]['voted']}" title="{$config->point_name}" /> {$config->point_name}</td>
<td><input type="text" style="width:30px;text-align:right" name="blamed_{$val->module_srl}" value="{$module_config[$val->module_srl]['blamed']}" /> {$config->point_name}</td> <td><input type="number" style="width:50px;text-align:right" name="blamed_{$val->module_srl}" value="{$module_config[$val->module_srl]['blamed']}" title="{$config->point_name}" /> {$config->point_name}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>