<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('inc\list_photo.html', 'eb1cbd913283061cc2dc201132b94270', 1362484492); ?>
<div class="photoRow"><?php $stateStyle=array('已停用'=>'content1','待审核'=>'content2','已审核'=>'content3'); if(count($list)>0) { if(is_array($list)) foreach($list as $k => $v) { ?>
<div id="O_ItemPhoto_<?php echo $v['id']; ?>" class="itemPhoto">
<div class="photo"><a href="<?php echo DOMAIN; echo ROOT; ?>upload/<?php echo $v['categoryName']; ?>/<?php echo $v['name']; ?>" target="_blank"><img alt="<?php echo $v['content']; ?>" src="<?php echo DOMAIN; echo ROOT; ?>?m=photo&src=<?php echo PICURL; ?>upload/<?php echo $v['categoryName']; ?>/<?php echo $v['name']; ?>&width=120&height=75" width="120" height="75" /></a></div>
<div class="opt"><input id="O_SetDefaultPhoto_<?php echo $k; ?>" type="checkbox" class="setDefaultPhoto" value="<?php echo $v['id']; ?>=<?php echo $v['categoryRelId']; ?>"<?php if($v['isCover']) { ?> checked="checked"<?php } ?> /><label for="O_SetDefaultPhoto_<?php echo $k; ?>">设为封面</label> <input id="O_DelPhoto_<?php echo $k; ?>" type="checkbox" class="delPhoto" value="<?php echo $v['id']; ?>" /><label for="O_DelPhoto_<?php echo $k; ?>">删除</label></div>

<div class="opt">图片说明:<?php echo $v['content']; ?></div>
<div class="opt"><a class="viewmode" id="O_Update_<?php echo $v['id']; ?>" onclick="updateClick(this);">更新图片</a> <input id="O_StatusCheck_<?php echo $v['id']; ?>" type="checkbox"<?php if($v['status']=='已审核') { ?> checked="checked"<?php } ?> /><a class="viewmode" id="O_Status_<?php echo $v['id']; ?>" onclick="updateStatusClick(this);"><?php echo $v['status']; ?></a></div></div>
<?php } } else { ?>
没有相关图片！
<?php } ?>
</div>
<div class="clearfloat"></div>
<table border="0" width="100%">
<tbody>
<tr>
<td>
<?php include $this->tpl->getfile('inc/page'); ?>
</td>
<td align="right">
<div class="delselect" style="width:235px;"><input id="o_delall" type="checkbox" onclick="checkDelAll();" /><label for="o_delall">全选删除</label>&nbsp;<button class="searchbutton" type="button" onclick="delSelectClick();">批量删除</button>&nbsp;<button class="searchbutton" type="button" onclick="addClick();">添加图片</button></div>
<div class="statusNote" style="width:225px">
<span style="color:#000; width:60px;">状态说明:</span>

<?php if(is_array($stateStyle)) foreach($stateStyle as $k => $v) { ?>
<span class="<?php echo $v; ?>" onclick="statusClick('<?php echo $k; ?>');"><?php echo $k; ?></span>
<?php } ?>
</div>
</td></tr>
</tbody>
</table>
