<?php /* Smarty version 2.6.22, created on 2015-12-29 18:40:40
         compiled from E:/xampp/htdocs/templates/admin/default%5Citems%5Clist.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'E:/xampp/htdocs/templates/admin/default\\items\\list.html', 58, false),array('modifier', 'string_format', 'E:/xampp/htdocs/templates/admin/default\\items\\list.html', 61, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['admin_template_path'])."/html/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</head>
<body>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['admin_template_path'])."/html/pagetops.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php if ($this->_tpl_vars['errorMessage']): ?>
<div id="errormsg">
<div class="msg">
  <div class="closebtn"><i data-icon="" class="icon-close"></i></div>
  <?php echo $this->_tpl_vars['errorMessage']; ?>

</div>
</div>
<?php echo '
<script type="text/javascript">
seajs.use(["modules/pageui/msg"], function(msg){
    msg.msginit("#errormsg");
});
</script>
'; ?>

<?php endif; ?>

<div class="pagebg">
	<div class="mcontent pagemain clr">
	    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['admin_template_path'])."/html/leftmenu.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	    <div class="pagemainconent headtools<?php if ($this->_tpl_vars['paging'] != ""): ?> paging<?php endif; ?>">

		<div class="headtool b-b clr">
			<div class="toolsearch clr rf">
				<form class="sort-control" method="post" action="?m=<?php echo $_GET['m']; ?>
&c=<?php echo $_GET['c']; ?>
">
					<button type="submit" class="btntheme btnsize rf">搜索</button>
					<input class="ipttheme rf" type="text" id="q" name="q" placeholder="开始搜索...">
				</form>
			</div>
		</div>
		<?php if ($this->_tpl_vars['paging'] != ""): ?>
		<div class="page-controls">
			<?php echo $this->_tpl_vars['paging']; ?>

		</div>
		<?php endif; ?>
		<div class="rightdetail_admin">
			<?php if (is_array ( $this->_tpl_vars['data'] )): ?>
			<div class="general_table_border">
				<table id="itemlist" class="general_table" cellspacing="0" cellpadding="0" border="0">
					<thead>
						<tr>
							<th><a href="?m=<?php echo $_GET['m']; ?>
&c=<?php echo $_GET['c']; ?>
&p=<?php echo $_GET['p']; ?>
&q=<?php echo $_GET['q']; ?>
&order=name&dir=<?php echo $this->_tpl_vars['orderDir']; ?>
&user=<?php echo $_GET['user']; ?>
" title="">作品名称</a></th>
							<th>作者</th>
							<th><a href="?m=<?php echo $_GET['m']; ?>
&c=<?php echo $_GET['c']; ?>
&p=<?php echo $_GET['p']; ?>
&q=<?php echo $_GET['q']; ?>
&order=price&dir=<?php echo $this->_tpl_vars['orderDir']; ?>
&user=<?php echo $_GET['user']; ?>
" title="">售价</a></th>
							<th><a href="?m=<?php echo $_GET['m']; ?>
&c=<?php echo $_GET['c']; ?>
&p=<?php echo $_GET['p']; ?>
&q=<?php echo $_GET['q']; ?>
&order=sales&dir=<?php echo $this->_tpl_vars['orderDir']; ?>
&user=<?php echo $_GET['user']; ?>
" title="">销量</a></th>
							<th><a href="?m=<?php echo $_GET['m']; ?>
&c=<?php echo $_GET['c']; ?>
&p=<?php echo $_GET['p']; ?>
&q=<?php echo $_GET['q']; ?>
&order=earning&dir=<?php echo $this->_tpl_vars['orderDir']; ?>
&user=<?php echo $_GET['user']; ?>
" title="">收入</a></th>		
							<th><a href="?m=<?php echo $_GET['m']; ?>
&c=<?php echo $_GET['c']; ?>
&p=<?php echo $_GET['p']; ?>
&q=<?php echo $_GET['q']; ?>
&order=freefile&dir=<?php echo $this->_tpl_vars['orderDir']; ?>
&user=<?php echo $_GET['user']; ?>
" title="">可否免费</a></th>
							<th><a href="?m=<?php echo $_GET['m']; ?>
&c=<?php echo $_GET['c']; ?>
&p=<?php echo $_GET['p']; ?>
&q=<?php echo $_GET['q']; ?>
&order=weekly&dir=<?php echo $this->_tpl_vars['orderDir']; ?>
&user=<?php echo $_GET['user']; ?>
" title="">是否推荐</a></th>				
							<th width="250">操作</th>
						</tr>
					</thead>

					<tbody>
					<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['d']):
?>
						<tr id="row<?php echo $this->_tpl_vars['d']['id']; ?>
" class="<?php echo smarty_function_cycle(array('values' => "no,alt"), $this);?>
">
							<td><?php echo $this->_tpl_vars['d']['name']; ?>
</td>
							<td><?php echo $this->_tpl_vars['users'][$this->_tpl_vars['d']['user_id']]['username']; ?>
</td>
							<td><?php echo $this->_tpl_vars['currency']['symbol']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['d']['price'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.0f") : smarty_modifier_string_format($_tmp, "%.0f")); ?>
</td>
							<td><?php echo $this->_tpl_vars['d']['sales']; ?>
</td>
							<td><?php echo $this->_tpl_vars['currency']['symbol']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['d']['earning'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.0f") : smarty_modifier_string_format($_tmp, "%.0f")); ?>
</td>
							<td id="status_pic">
								
								<?php if ($this->_tpl_vars['d']['free_request'] == 'true'): ?>
									<?php if ($this->_tpl_vars['d']['free_file'] == 'true'): ?>
									    <img class="statusbtn" id="status_pic_<?php echo $this->_tpl_vars['d']['id']; ?>
" status="<?php echo $this->_tpl_vars['d']['free_file']; ?>
" item="<?php echo $this->_tpl_vars['d']['id']; ?>
" src="<?php echo $this->_tpl_vars['template_data']; ?>
admin/images/icons/24x24/accept.png" style="cursor:pointer"/>
									<?php else: ?>
										<img class="statusbtn" id="status_pic_<?php echo $this->_tpl_vars['d']['id']; ?>
" status="<?php echo $this->_tpl_vars['d']['free_file']; ?>
" item="<?php echo $this->_tpl_vars['d']['id']; ?>
" src="<?php echo $this->_tpl_vars['template_data']; ?>
img/question.png" style="cursor:pointer"/>
									<?php endif; ?>
									<img src='<?php echo $this->_tpl_vars['template_data']; ?>
img/loading.gif' class="status_pic_<?php echo $this->_tpl_vars['d']['id']; ?>
" style="display:none"/>
								<?php else: ?>
								    <img src="<?php echo $this->_tpl_vars['template_data']; ?>
/admin/images/icons/24x24/delete.png"/>
								<?php endif; ?>
							</td>
							<td>
								<?php if ($this->_tpl_vars['d']['weekly_to'] == ''): ?>
									<img src="<?php echo $this->_tpl_vars['template_data']; ?>
/admin/images/icons/24x24/delete.png">
								<?php else: ?>
									<img src="<?php echo $this->_tpl_vars['template_data']; ?>
/admin/images/icons/24x24/accept.png">
								<?php endif; ?>
							</td>
							<td>
								<a href="?m=<?php echo $_GET['m']; ?>
&c=comments&id=<?php echo $this->_tpl_vars['d']['id']; ?>
" title="<?php echo $this->_tpl_vars['lang']['comments']; ?>
"><img class="middle" src="<?php echo $this->_tpl_vars['template_data']; ?>
admin/images/icons/16x16/icon-comments.png" /> <?php echo $this->_tpl_vars['d']['comments']; ?>
 <?php echo $this->_tpl_vars['lang']['comments']; ?>
 </a>
								<a href="?m=<?php echo $_GET['m']; ?>
&c=edit&id=<?php echo $this->_tpl_vars['d']['id']; ?>
&p=<?php echo $_GET['p']; ?>
" title="编辑"><i class="fa fa-edit text-success m-r-xs"></i> 编辑作品</a>
								<a class="deletebtn" ajax-url="/apps/<?php echo $_GET['m']; ?>
/ajax/delete.php" item-id="<?php echo $this->_tpl_vars['d']['id']; ?>
" href="javascript:void(0);" title="删除"><i class="fa fa-trash-o text-danger m-r-xs"></i> 删除作品</a>
							</td>
						</tr>
						<?php endforeach; endif; unset($_from); ?>
					</tbody>
				</table>
			</div>
			<?php echo '
			<script type="text/javascript">
			seajs.use(["modules/ajax/btns"], function(aj){
			  aj.deletebtninit("#itemlist .deletebtn", "ajax-url", "item-id", {\'delete\':true,\'id\':\'\'}, "deleteRow");
			});
			</script>
			'; ?>

			<?php else: ?>
				暂无记录
			<?php endif; ?>
		</div>

		</div>
	</div>
</div>
<script>
<?php echo '
seajs.use(["modules/pageui/admin"], function(adm){
	adm.cheange_status("#status_pic .statusbtn", "/'; ?>
<?php echo $this->_tpl_vars['languageURL']; ?>
<?php echo 'admin/?m=items&c=list");
});
'; ?>

</script>
</body>
</html>