
<!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">
</head>
<script type='text/javascript'>
function trim(str){  //删除左右两端的空格
   return str.replace(/(^\s*)|(\s*$)|(　*)/g , "");
}
function check_form(){
	var album_name=trim(document.getElementById("album_name").value);
	var album_information=trim(document.getElementById("album_information").value);
	if((album_name=="")||(album_information=="")){
		parent.Dialog.alert("{echo:lp{a_inp_err};/}");
		return false;
	}
}
</script>
<body>
<form name="form" action="do.php?act=album_creat" method="post" onsubmit='return check_form()'>
  <div class="main_right_title">
     <span class="main_title_dot2"></span>
     <span class="main_title_txt">{echo:lp{a_creat};/}</span>
  </div>
<div id="tabsB">
  <ul>
  	<li class="nowbutl"><a href="?app=album_list" title="{echo:lp{a_main};/}" 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'">{echo:lp{a_upload};/}</div>
</div>
<table class="album_list">
	<tr><th>{echo:lp{a_name};/}</th>
		<td><input type="text" name="album_name" id="album_name" size="35" autocomplete='off' maxlength="20"  /></td></tr>
	<tr><th>{echo:lp{a_inf};/}</th>
		<td><textarea name="album_information" id="album_information" cols="30" rows="5" onkeyup="this.value=this.value.substring(0,160)"></textarea></td></tr>
	<tr><th>{echo:lp{a_secret};/}</th>
		<td><select name='album_secret'>
			<option value='0'>{echo:lp{a_all};/}</option>
			<option value='1'>{echo:lp{a_fri};/}</option>
			<option value='2'>{echo:lp{a_myself};/}</option>
		</select></td></tr>
	<tr><td></td>
		<td><input type="submit" class="anniu" value="{echo:lp{a_b_crt};/}" name='action' /></td>
	</tr>
</table>
</form>
</body>
</html>