<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{-:@EDIT_INFO_ADDON-} - {-:$_SITE['name']-}</title>
{-import: file="c,m" type="css" baseurl="(__THEME__)/home/css/" basepath="(THEME_PATH)/home/css/"-}
<link rel="stylesheet" type="text/css" href="{-:*__PUBLIC__-}/js/calendar/calendar.css" />
<script type="text/javascript" src="{-:*__PUBLIC__-}/js/calendar/calendar.js"></script>
<script type="text/javascript" src="{-:*__PUBLIC__-}/js/calendar/lang/{-:+lang-}.js"></script>
<meta name="keywords" content="{-:$_SITE['keywords']-}" />
<meta name="description" content="{-:$_SITE['description']-}" />
</head>

<body>
{-include:header-}
<div class="m w_960">
	<div class="w_240 f_l">
		<dl class="adl">
			<dt><strong>{-:@SETTING-}</strong></dt>
			<dd><ul class="aul_5">
				<li><i class="ai ai_16 ai_16_user"></i> <a href="{-url:home@member/edit_info_base-}">{-:@BASE_INFO-}</a></li>
				<li><i class="ai ai_16 ai_16_info"></i> <a href="{-url:home@member/edit_info_addon-}">{-:@ADDON_INFO-}</a></li>
			</ul></dd>
		</dl>
	</div><!--/.w_240-->
	<div class="w_10 h_10 o_h f_l">&nbsp;</div>
	<div class="w_710 f_l">
		<dl class="atab_1 adiv">
			<dt><strong><a href="{-url:home@member/edit_info_base-}">{-:@BASE_INFO-}</a></strong><strong class="on">{-:@ADDON_INFO-}</strong></dt>
			<dd class="p_20">
				<form id="edit_info_addon" action="" method="post"><table class="formTable">
					{-:$_FI-}
					{-if:$_G['interaction']['captcha']-}
					<tr>
						<td class="inputTitle">{-:@CAPTCHA-}</td>
						<td></td>
					</tr>
					<tr>
						<td colspan="2" class="inputArea">
						<label>
							<input type="text" name="vcode" autocomplete="off" value="" class="required i v_code_input" size="5" maxlength="5" />
							<img src="{-url:home@common/captcha_img?name=vcode-}" onclick="this.src += '&' + Math.random();" style="cursor:pointer;" />
							<span class="fc_gry">{-:@CAPTCHA_TIP-}</span>
						</label>
						</td>
					</tr>{-:/if-}
					<tr>
						<td colspan="2" class="operation">
						<label>
							<input name="timeKey" type="hidden" value="{-php:echo time();-}" />
							<input name="m_userid" type="hidden" value="{-:$_MI['m_userid']-}" />
							<span class="btn_b submit" to="#edit_info_addon" action="{-url:home@member/edit_info_addon_do-}">{-:@SUBMIT-}</span>
							<input class="btn_l" type="reset" value="{-:@RESET-}" />
						</label>
						</td>
					</tr>
				</table></form>
			</dd>
		</dl>
	</div><!--/.w_710-->
	<div class="c"></div>
</div>
{-include:footer-}
<script type="text/javascript" src="{-:*__PUBLIC__-}/js/jquery.js"></script>
<script type="text/javascript" src="{-:*__PUBLIC__-}/js/uploadify/uploadify.js"></script>
<script type="text/javascript">
{-php:
	$_FS['img'] = '*.'.implode(';*.', explode(',', $_G['upload']['imgtype']));
	$_FS['file'] = '*.'.implode(';*.', explode(',', $_G['upload']['filetype']));
	$_FS['all'] = $_FS['img'].';'.$_FS['file'];
-}
$(document).ready(function(){
	$('.uploader').each(function(){
		var btntext = $(this).attr('btntext'),
			to_id = $(this).attr('to'),
			typeset = $(this).attr('typeset'),
			thumb = $(this).attr('thumb'),
			preview_id = $(this).attr('preview'),
			fileTypeDesc, fileTypeExts, uploader;
		if('image' == typeset){
			fileTypeDesc = '{-:@IMAGE-}';
			fileTypeExts = '{-:$_FS['img']-}';
			if('yes' == thumb)
			{
				uploader = '{-url:home@upload/upload_file?type_set=image&upload_type=member&thumb=yes-}';
			}
			else
			{
				uploader = '{-url:home@upload/upload_file?type_set=image&upload_type=member-}';
			}
		}
		else if('all' == typeset){
			fileTypeDesc = '{-:@FILE-}';
			fileTypeExts = '{-:$_FS['all']-}';
			uploader = '{-url:home@upload/upload_file?type_set=all&upload_type=member-}';
		}
		$(this).uploadify({
			'buttonClass' : 'btn_upload',
			'buttonImage' : '',
			'buttonText' : btntext,
			'fileObjName' : 'upload',
			'fileTypeDesc' : fileTypeDesc,
			'fileTypeExts' : fileTypeExts,
			'formData' : {
				'{-php:echo session_name();-}' : '{-php:echo session_id();-}'
			},
			'swf' : '{-:*__PUBLIC__-}/js/uploadify/uploadify.swf',
			'uploader' : uploader,
			'height' : 27,
			'width' : 80,
			'multi' : false,
			'queueID' : 'uwa_id',
			'onInit': function(){
				$("#uwa_id").hide();
			},
			'onUploadSuccess' : function(file, data, response){
				$(to_id).val(data);
				if(preview_id)
				{
					$(preview_id).attr('src', data);
				}
			},
			'onUploadError' : function(file, errorCode, errorMsg, errorString){
				alert(errorString);
			}
		});
	});
});
</script>
<script type="text/javascript" src="{-:*__PUBLIC__-}/js/editor/ckeditor.js"></script>
<script type="text/javascript" src="{-:*__PUBLIC__-}/js/editor/adapters/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	var editor_option = {
		toolbar : 'uwa_simple'
	};
	$('.editor').ckeditor(editor_option);
});

document.write('<script type="text/javascript" src="{-url:home@common/get_member_info-}&refresh='+Math.random()+'.js"></sc'+'ript>');
document.write('<script type="text/javascript" src="{-url:home@common/task?task={$TASK}-}&refresh='+Math.random()+'.js"></sc'+'ript>');
</script>
{-import:file="c,m" type="js" baseurl="(__THEME__)/home/js/" basepath="(THEME_PATH)/home/js/"-}
{-:$_SITE['stat_code']-}
</body>
</html>
