<?php $title = '添加新书 - ' . setting('webname');?>
<?php include_once tpl('header');?>
<script type="text/javascript" src="<?php echo getJsFile('book.js');?>"></script>
<form method="post" action="<?php echo $this->url('system',array('s'=>'author','c'=>'book','a'=>'create'));?>">
<table>
	<tbody>
		<tr>
			<td>书名：</td>
			<td><input type="text" name="bookname" id="bookname" name="name" maxlength="20" class="basic-input" value="" />(不能超过20个字)</td>
		</tr>
		<tr>
			<td>分类：</td>
			<td><select name="type">
                	<?php foreach ($types as $value):?>
                		<option value="<?php echo $value['typeid'];?>"><?php echo $value['typename'];?></option>
                	<?php endforeach;?>
        		</select></td>
		</tr>
		<tr>
			<td>简介：</td>
			<td><textarea name="bookinfo" maxlength="400" class="basic-input" style="width: 500px; height: 240px;" id="bookinfo" onkeyup='$("#totalNum").html(this.value.length);' onblur="filterChar();"></textarea><br/><font color="red">*</font>请不要超过400字，是内容简介，不是章节内容，千万别传章节上去<br/><br/>当前字数：<span id="totalNum">0</span></td>
		</tr>
		<tr>
			<td></td>
			<td><input type="submit" class="btn-submit" onclick="return checkBookSubmit();" value="提交新书"></td>
		</tr>
	</tbody>
</table>
</form>
<?php include_once tpl('footer');?>