<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<link rel="stylesheet" type="text/css" href="skin/default/jooyea/css/row_menus.css">
<link rel="stylesheet" type="text/css" href="skin/default/jooyea/css/iframe.css">
<SCRIPT language=JavaScript src="servtools/ajax_client/ajax.js"></SCRIPT>
<script type='text/javascript' src="skin/default/js/jooyea.js"></script>
<script type="text/javascript">
function xmlchange(){
	 if(xmlhttp.readyState==4&&xmlhttp.status==200){
	 	var return_text=xmlhttp.responseText;
		var return_text=return_text.replace(/[\s\n\r]/g,"");
	 	if(return_text==""){
	 	$("def_photo_info").innerHTML="{echo:lp{a_pht_inf};/}";}
	 	else{$("def_photo_info").innerHTML=return_text;}
	 	$("def_photo_info").style.display="";
	  $("photo_info").style.display="none";
	 }
}
function change_photo(){
	var photo_id=$("photo_id").value;
	var photo_information_value=$("information_value").value;
	 xmlhttp=InitAjax();
	 xmlhttp.open("POST","do.php?act=photo_im&photo_id={echo:$photo_id;/}&album_id={echo:$album_id;/}",true);
	 xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	 xmlhttp.onreadystatechange=xmlchange;
	 xmlhttp.send("photo_id="+photo_id+"&information_value="+photo_information_value);
}

function change_state(){
	var return_text=$("def_photo_info").innerHTML;
	var return_text=return_text.replace(/[\s\n\r]/g,"");
	if(return_text=="{echo:lp{a_pht_inf};/}"){
		var information="";
	}else{
		var information=return_text;
	}
	$("information_value").value=information;
	$("def_photo_info").style.display="none";
	$("photo_info").style.display="";
}

function chancel(){
	$("def_photo_info").style.display="";
	$("photo_info").style.display="none";
}

</script>
</head>
<body>
  <div class="main_right_title">
     <span class="main_title_dot2"></span>
     <span class="main_title_txt">{echo:$a_who;/}</span>
  </div>
	<div id="tabsB" class="{echo:$button;/}">
	  <ul>
	    <li class="nowbutl"><a href="?app=album_list" title="{echo:lp{a_mine};/}" class="nowbutl"><span class="nowbutr">{echo:lp{a_mine};/}</span></a></li>
	    <li><a href="?app=album_friend" title="{echo:lp{a_friend};/}"><span>{echo:lp{a_friend};/}</span></a></li>
	  </ul>
	    <div class="div_but" onclick="location.href='?app=album_creat'">{echo:lp{a_creat};/}</div>
	    <div class="div_but_3" onclick="location.href='?app=photo_upload&album_id={echo:$album_id;/}'">{echo:lp{a_upload};/}</div>
	</div>
{sta:if($photo_row)[exc]}
	<div class="iframe_contentbox">
		<div class="photo_showbox">
			<div class="sub_box">
				<div class="photo_name">{echo:filt_word($photo_row['photo_name']);/}<span>《{echo:filt_word($album_name);/}》</span></div>
				<div class="photo_uploadtime">{echo:str_replace("{date}",$photo_row['add_time'],lp{a_send_time});/}</div>
				<div class="photo_view">
					<a class="photo_pageup" href='?app=photo_view&photo_id={echo:$photo_id;/}&album_id={echo:$album_id;/}&img_num={echo:$img_num-1;/}&user_id={echo:$url_uid;/}' title="{echo:lp{a_page_up};/}"></a>
					<img id='show_pic' style='display:none;max-width:460' onerror="parent.pic_error(this)" />
					<img id='show_ajax' src='skin/default/jooyea/images/loading.gif' />
					<a class="photo_pagedown" href='?app=photo_view&photo_id={echo:$photo_id;/}&album_id={echo:$album_id;/}&img_num={echo:$img_num+1;/}&user_id={echo:$url_uid;/}' title="{echo:lp{a_page_down};/}>"></a>
				</div>

				{sta:if($photo_row['user_id']==$ses_uid)[exc]}
				<div class='photo_intro'>
					<input type='hidden' name='photo_id' id='photo_id' value={echo:$photo_id;/} />
					<div id='def_photo_info' onmouseover="this.style.backgroundColor='#ffffce';this.style.borderColor='#efcf7b';" onmouseout="this.style.backgroundColor='#fffbff';this.style.borderColor='#ececec';" onclick="change_state();">{echo:filt_word($photo_inf);/}</div>
					<div id='photo_info' style='display:none;text-align:center;'>
						<textarea cols='40' rows='2' name='information_value' id='information_value'></textarea><br />
						<input type='button' value='{echo:lp{a_b_con};/}' class='top_button' onclick='change_photo()' />
						<input type='button' value='{echo:lp{a_b_del};/}' class='top_button' onclick='chancel()' />
					</div>
				</div>
				<div class="photo_operate">
					<a href='do.php?act=album_skin&photo_id={echo:$photo_row['photo_id'];/}&album_id={echo:$album_id;/}'>{echo:lp{a_set_cov};/}</a>
					<a href="javascript:void(0);" onclick="change_state();">{echo:lp{a_set_info};/}</a>
					<a href='do.php?act=photo_del&photo_id={echo:$photo_row['photo_id'];/}&album_id={echo:$album_id;/}' onclick="return confirm('{echo:lp{a_del_asc};/}');">{echo:lp{a_com_del};/}</a>
					<a href="{echo:$photo_row['photo_src'];/}" target="_blank">{echo:lp{a_see_pic};/}</a>
					<a href="?app=photo_list&album_id={echo:$album_id;/}&user_id={echo:$url_uid;/}">{echo:lp{a_bak_list};/}</a>					
				</div>
				{end:if/}
			</div>
		</div>
		<div class="photo_operate">
			{sta:if($photo_row['user_id']!=$ses_uid)[exc]}
			<div id='def_photo_info'>{echo:filt_word($photo_inf);/}</div>
				{sta:if($ses_uid)[exc]}
				<a href="javascript:void(0);" onclick="parent.show_share(3,{echo:$photo_row['photo_id'];/},'{echo:$photo_row['photo_information'];/}','','');">{echo:lp{mn_share};/}</a>
				<a href="javascript:void(0);" onclick="parent.report(3,{echo:$photo_row['user_id'];/},{echo:$photo_row['photo_id'];/});">{echo:lp{mn_report};/}</a>
				{end:if/}
			<a href="{echo:$photo_row['photo_src'];/}" target="_blank">{echo:lp{a_see_pic};/}</a>
			<a href="?app=photo_list&album_id={echo:$album_id;/}&user_id={echo:$url_uid;/}">{echo:lp{a_bak_list};/}</a>			
			{end:if/}
		</div>
	</div>

	<div class="tleft ml20">
		<div class="replytip"></div>
		<div id='show_3_{echo:$photo_row["photo_id"];/}'>
			{echo:get_restore($dbo,3,$photo_row["photo_id"],0,20);/}
		</div>
		{sta:if($ses_uid!='')[exc]}	
		<div class="reply" {echo:$show_content;/}>
			<img src='{echo:get_sess_userico();/}' />
			<textarea style="height:50px" maxlength="160" onkeyup="return isMaxLen(this)" id="reply_3_{echo:$photo_row['photo_id'];/}_input"></textarea>
			<div class="replybt">
				<input class="left button2" onclick="parent.restore_com({echo:$photo_row['user_id'];/},3,{echo:$photo_row['photo_id'];/});" type="submit" name="button" id="button" value="{echo:lp{a_b_com};/}" />
				<a class="right" href="javascript: void(0);" onclick="showim(''); showFace(this,'face_list_menu','reply_3_{echo:$photo_row['photo_id'];/}_input');">{echo:lp{a_face};/}</a>
			</div>
			<div class="clear"></div>
		</div>
		{end:if/}
	</div>
{end:if/}
	<!-- face begin -->
	<div id="face_list_menu" class="emBg" style="display:none;z-index:100;">
	</div>
	<!-- face end -->
<!--锁定控制-->
<div class="pageerr {echo:$photo_lock;/}">{echo:lp{a_lock_photo};/}</div>
<div class="pageerr {echo:$show_error;/}">{echo:lp{a_ine};/}</div>
<div class="pageerr {echo:$show_content;/}">{echo:lp{a_add_pvw};/}</div>

{sta:if($photo_row)[exc]}
	<script type='text/javascript'>
		var img_obj=$('show_pic');
		var ajax_obj=$('show_ajax');
		var show_img=new Image;
		show_img.src='{echo:$photo_row["photo_src"];/}';
		var time_id=window.setTimeout("test_img_complete()",200);
		
		function test_img_complete(){
			if(show_img.complete==true){
				img_obj.src='{echo:$photo_row["photo_src"];/}';
				if({echo:$img_info[0];/}>460){
					img_obj.width=460;
				}else{
					img_obj.width={echo:$img_info[0];/};
				}
				img_obj.style.display='';
				ajax_obj.style.display='none';
				window.clearTimeout(time_id);
			}else{
				var time_id=window.setTimeout("test_img_complete()",200);
			}
		}
	</script>
{end:if/}
</body>
</html>