<!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>
<SCRIPT language=JavaScript src="servtools/ajax_client/ajax.js"></SCRIPT>
<link rel="stylesheet" type="text/css" href="skin/default/jooyea/css/iframe.css">
</head>
<script language="JavaScript" type="text/JavaScript"> 
function check_form(obj){
	var obj_check=obj.getElementsByTagName('input');
	var is_check=false;
	for(i=0;i<obj_check.length;i++){
		if(obj_check[i].type=='checkbox'){
			if(obj_check[i].checked==true){
				is_check=true;
				break;
			}
		}
	}
	return is_check;
}

function checkAll(obj){
	var form_obj=document.getElementById(obj);
	var input_obj=form_obj.getElementsByTagName('input');
	for(i=0;i<input_obj.length;i++){
		if(input_obj[i].type=='checkbox'){
			if(input_obj[i].checked==true){
				input_obj[i].checked='';
			}else{
				input_obj[i].checked='checked';
			}
		}
	}
}
</script>
<body id="iframecontent">
	{sta:if($is_self=='Y')[exc]}
	<div class="create_button">
		<div class="create_button"><a href="modules.php?app=event_list&mod=all" hidefocus="true">{echo:lp{ef_all_activity};/}</a></div>
	</div>
	{end:if/}
	{sta:if($status>2 && $is_self=='Y')[exc]}
	<div class="create_button">
		<a href="modules.php?app=event_upload_photo&event_id={echo:$event_id;/}" hidefocus="true">{echo:lp{ef_upload_photo};/}</a>
	</div>
	{end:if/}
<form id="data_list" name="data_list" action="do.php?act=event_del_photo&event_id={echo:$event_id;/}" method="post" onsubmit="return check_form(this);">
  <h2 class="app_event">{echo:lp{ef_activity};/}</h2>
  <div class="tabs">
      <ul class="menu">
			<li><a href="modules.php?app=event_space&event_id={echo:$event_id;/}&user_id={echo:$userid;/}" hidefocus="true">{echo:lp{ef_activity};/}</a></li>
			<li><a href="modules.php?app=event_member&event_id={echo:$event_id;/}&user_id={echo:$userid;/}" hidefocus="true">{echo:lp{ef_member};/}</a></li>
			<li class="active"><a href="modules.php?app=event_list_photo&event_id={echo:$event_id;/}&user_id={echo:$userid;/}" hidefocus="true">{echo:lp{ef_photo};/}</a></li>
      </ul>
  </div>

	{sta:foreach($photo_rs as $val)[loop]}
	<div class="album_photo_box">
	  <a href="modules.php?app=event_show_photo&event_id={echo:$val['event_id'];/}&photo_id={echo:$val['photo_id'];/}&user_id={echo:$ses_uid;/}">
	  	<img src="{echo:$val['photo_thumb_src'];/}" width="100px" class="user_ico" /></a><br />
			{echo:lp{ef_come_from};/}：{echo:$val['user_name'];/}<br />
			{sta:if($status>3)[exc]}
	  	<input type="checkbox" class="checkbox" name="checkany[]" value="{echo:$val['photo_id'];/}" />
	  	{end:if/}
	  </a>
	</div>
	{end:foreach/}
    <div class="clear"></div>
	{sta:if($status > 3 && $photo_rs)[exc]}
		<input class="regular-btn" style="font-size:12px" type="button" name="chkall" id="chkall" onclick="checkAll('data_list')" value="{echo:lp{ef_select_all};/}" />
		<input class="regular-btn" style="font-size:12px" type="submit" id="RemoveAll" name="RemoveAll" value="{echo:lp{ef_bulk_delete};/}" />
  {end:if/}
	<div class="clear"></div>
</form>
	{sta:page_show($isNull,$page_num,$page_total);/}
	
	<div class="guide_info {echo:$list_none;/}">
		{echo:lp{ef_current_without_photo};/}
	</div>
	
</body>
</html>