{lib(base_photo.php)}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=gbk" />
<title>{cfg:(sys,site_name)}</title>
<link rel="shortcut icon" href="favicon.ico" />
<meta name="keywords" content="{cfg:(sys,site_keywords)}">
<meta name="description" content="{cfg:(sys,site_description)}">
<link rel="stylesheet" type="text/css" href="../img/css.css"/>
<script src="{$web_url}/plus/js/init.php?act=init_js"></script>
<script src="{$web_url}/images/js/common.js"></script>
<script src="{$web_url}/images/js/dialog.js"></script>
<script>
function me_upload(msgid){
	dialog_show("photo_upload","上传照片","?app=base_photo_upload&index="+msgid,1,500,300);
}
function me_desc(msgid){
	dialog_show("photo_desc"+msgid,"照片描述","?app=base_photo_upload&act=desc&id="+msgid,0,500,300);
}
function me_del(msgid){
	if(confirm("确定要删除吗？")){
		window.open("?app=base_photo&act=del&id="+msgid,"_self");
	}
}
</script>
<style>
.me_x1{position:relative;top:-20px;left:0px}
.me_x1 .x1{float:left;width:110px;padding:3px 0px 3px 0px;FILTER:alpha(opacity=60);opacity:0.6;background:#000000;color:#ff0000}
</style>
</head>
<body>
{include(header.html)}
<div class="sp_h10">&nbsp;</div>
<div class="cssx_left1">
	{include(sys_left.html)}
</div>
<div class="cssx_right">
	<div class="cssx_path"><span style="float:left"><img src="../img/pic_3.jpg"></span><span style="float:left;padding:2px 0px 0px 15px">系统管理 -> 公司相册</span></div>
	{foreach($arr_photo as $item)}
	<div class="photo_4">
		<li class="pic1">{if(empty($item['photo_url']))}<img src="../img/untitled.png" id="id_photo_{$item['photo_id']}">{else}<img src="{$item['photo_url']}">{/if}</li>
		<li class="txt1">
		{if(empty($item["photo_id"]))}
		<input type="button" name="btn_add" value="上传照片" class="btn_67" onclick="me_upload({$item['index']})">
		{else}
			{if($item["photo_state"]>0)}
				<span style="float:left"><a href="javascript:me_desc({$item['photo_id']});">添加描述</a></span><span style="float:right"><a href="?app=base_photo&act=hide&id={$item['photo_id']}" title="隐藏"><img src="../img/btn_hide.jpg"></a>&nbsp;<a href="javascript:me_del({$item['photo_id']});" title="删除"><img src="../img/btn_del.jpg"></a></span>
			{else}
				<span style="float:left;color:#ff0000">{$item["state"]}</span><span style="float:right">{if($item["photo_state"]==-1)}<a href="?app=base_photo&act=show&id={$item['photo_id']}" title="显示"><img src="../img/btn_show.jpg"></a>&nbsp;{/if}<a href="javascript:me_del({$item['photo_id']});" title="删除"><img src="../img/btn_del.jpg"></a></span>
			{/if}
		{/if}
		</li>
	</div>
	{/foreach}
</div>
{include(footer.html)}
{if($this_html["path"]!=""&&$get_act!="")}
	{include(ajax_resume_html.html)}
{/if}
</body>
</html>