<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<body>
		<?php echo $this->fetch('car_brand/nav.html'); ?>
		<div class="main-body">
			<form method="post" action="/moduleadmin.php?m=car_brand&a=save">
				<input type="hidden" name="brandid" style="display:none;" value="<?php echo $this->_var['data']['brandid']; ?>">
				<table class="table-add">
					<tr>
						<td>名称：</td>
						<td><input type="text" name="title" id="title" value="<?php echo $this->_var['data']['title']; ?>"></td>
					</tr>
					<tr>
						<td>排序：</td>
						<td><input type="text" name="orderindex" id="orderindex" value="<?php echo $this->_var['data']['orderindex']; ?>"></td>
					</tr>
					

					<tr>
						<td>图片：</td>
						<td>
							<div class="js-upload-item">
								<input type="file" id="upa" class="js-upload-file" style="display: none;" />
								<div class="upimg-btn js-upload-btn">+</div>
								<input type="hidden" name="imgurl" class="js-imgurl" value="<?php echo $this->_var['data']['imgurl']; ?>" />
								<div class="js-imgbox">
									<?php if ($this->_var['data']['imgurl']): ?>
									<img src="<?php echo images_site($this->_var['data']['imgurl']); ?>.100x100.jpg">
									<?php endif; ?>
								</div>
							</div>
							
						</td>
					</tr>
					<tr>
						<td>描述：</td>
						<td>
							<textarea name="description" id="description" class="w600 h100"><?php echo $this->_var['data']['description']; ?></textarea>
						</td>
					</tr>
					<tr>
						<td>状态：</td>
						<td>
							<input name="status" type="radio" id="radio2" value="1" <?php if ($this->_var['data']['status'] != 2): ?> checked="checked" <?php endif; ?> />
							显示
							<input type="radio" name="status" id="radio3" value="2" <?php if ($this->_var['data']['status'] == 2): ?> checked="checked" <?php endif; ?> />
							隐藏
					
						</td>
					</tr>
				</table>
				<div class="btn-row-submit js-submit">保存</div>
			</form>
		</div>
		<?php echo $this->fetch('footer.html'); ?>
		<script src="/static/admin/js/upload.js"> </script>
	</body>
</html>
