<!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>
<base href='{echo:$siteDomain;/}' />
<link rel="stylesheet" type="text/css" href="skin/default/jooyea/css/iframe.css">
<script type='text/javascript'>
	function check_form(){
		var search_app=document.getElementById('search_app').value;
		if(search_app.replace(/(^\s*)|(\s*$)|(　*)/g,"")==''){
			parent.Dialog.alert('{echo:lp{pl_search_wrong};/}');return false;
		}else{
			document.forms[0].submit();
		}
	}
</script>
</head>
<body id="iframecontent">
	<div class="share_box right">
	    <form method='post'>
	    	<input class="small-text" type='text' id='search_app' name='search_app' AUTOCOMPLETE='off' />
			<span class="share_button" onclick="check_form()">{echo:lp{pl_search};/}</span>
	  	</form>
		</div>
    <h2 class="app_set">{echo:lp{pl_add_app};/}</h2>
    <div class="tabs">
        <ul class="menu">
            <li class="active"><a href="modules.php?app=all_app" class="nowbutl">{echo:lp{pl_app_list};/}</a></li>	  	
        </ul>
    </div>

	{sta:if($app_rs)[exc]}
	<div class="iframe_contentbox">
		<ul class="app_list">
			{sta:foreach($app_rs as $rs)[loop]}
			{sta:$image_url=$rs['image']?"plugins/".$rs['name']."/".$rs['image']:$def_image;/}
			<li onmouseover="this.className += ' list_app_active';" onmouseout="this.className='app_list';">
				<div class="figure_box">
					<a href="modules.php?app=add_app&id={echo:$rs["id"];/}"><img src="{echo:$image_url;/}" title="" alt=""></a>
				</div>
				<h3 class="name">
					<a href="modules.php?app=add_app&id={echo:$rs["id"];/}">{echo:$rs["title"];/}</a>
				</h3>
				<p class="description">{echo:$rs["info"];/}</p>
				<div class="statistics">
					<span>{echo:str_replace("{num}",$rs["use_num"],lp{pl_total_num});/}</span>
					<!--|&nbsp;<span>{echo:lp{pl_comment};/}({echo:$rs["comment_num"];/})</span>!-->
				</div>
				<div class="app_control">
            <a href="modules.php?app=add_app&id={echo:$rs["id"];/}">{echo:lp{pl_add};/}</a>
				</div>
			</li>
			{end:foreach/}
		</ul>
	</div>
	{end:if/}
	{echo:page_show($isNull,$page_num,$page_total);/}
	{sta:if(empty($app_rs))[exc]}
	<div class="guide_info">
		{echo:$error_str;/}
	</div>
	{end:if/}
</body>
</html>