@(notifies: scala.collection.mutable.ArrayBuffer[beans.NotifyBean], maxColumn: Int, partId: Long, designChangeId: Long, partName: String, page: Int, notifyType: Long, state: Long)(implicit lang: Lang)
@import helper._
@*******************************************
* Helper generating navigation links *
*******************************************@
@link(newPage: Int) = @{
	routes.NotifyController.listRecursion(newPage, partId, notifyType, state)
}

@main("Notify Lists by Play 2.1") {
	<h3>@partName&nbsp@Messages("notify.type"+notifyType)@Messages("title15")</h3>
	<div id="action">
		@form(action=routes.NotifyController.listRecursion(page, partId, notifyType, state)) {
			<input type="hidden" name="page" value=0>
			<input type="hidden" name="partId" value=@partId>
			<input type="hidden" name="notifyType" value=@notifyType>
			@Messages("list.header9")
			<select name="state" onchange="submit(this.form)" >
				<option value="0" @if(state==0){selected}>@Messages("notify.state0")</option>
				<option value="1" @if(state==1){selected}>@Messages("notify.state1")</option>
				<option value="9" @if(state==9){selected}>@Messages("notify.state10")</option>
			</select>
		}
	</div>
	<table class="computers zebra-stripes">
		<thead>
			<tr>
				<th></th><th>@Messages("list.header8")</th><th>@Messages("form.header1")</th><th>@Messages("list.header7")</th><th>@Messages("list.header9")</th>
			</tr>
		</thead>
		<tbody>
			@for(notify <- notifies) {
				<tr><td>
				@if(notify.notifyLevel==0) {
					@if(notifyType==0 || notifyType==3) {
						@Messages("notify.type0")
					} else {
						@Messages("notify.type1")
					}
				} else {
					@Messages("list.data1")@notify.notifyLevel
				}	
				</td>
				<td>
				@if(notify.notifyLevel==0) {
					<a href="/notifyShow?id=@notify.id&partId=@partId&designChangeId=@designChangeId&notifyType=@notifyType&state=@state">
				} else {
					<a href="/replyShow?id=@notify.id&partId=@partId&designChangeId=@designChangeId&notifyType=@notifyType&replyType=1&state=@state">
				}
				@notify.message</a></td>
				<td>
					<table>
						@for(atach <- notify.atachs) {
						<tr><td><a href="/showAtach?id=@atach.id">@atach.fileName</a></td></tr>		
						}
					</table>
				</td>
				<td>@notify.notifyUserName</td>
				<td>@notify.state</td></tr>
			}
		</tbody>
	</table>
	<div id="pagination" class="pagination">
		<ul>
			@if(page-1 < 0 ) {
				<li class="prev disabled">&larr; prev</li>
			} else {
				<li class="prev"><a href="@link(page-1)">prev</a></li>
			}
			<li class="current">current page:@(page+1)</li>
			@if((page+1)*(Integer.decode(Messages("list.row"))) >= maxColumn) {
				<li class="next disabled">next &rarr;</li>
			} else {
				<li class="next"><a href="@link(page+1)">next</a></li>
			}
		</ul>
	</div>
	<br />
	@if(partId != 0) {
		<a href="/partModify?id=@partId">@Messages("list.link6")</a>
	} else {
		<a href="/designChangeCoverModify?designChangeId=@designChangeId&dcSeq=0&message=">@Messages("title22")</a>
	}
}
