<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
	<title>标书查看</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
	</script>

</head>
<body class="hideScroll">
		<form:form id="inputForm" modelAttribute="workBidingDocument" class="form-horizontal">
		<sys:message content="${message}"/>	
		<table class="table table-bordered  table-condensed dataTables-example dataTable no-footer">
		   <tbody>
				<tr>
					<td class="width-15 active"><label class="pull-right">企业信息：</label></td>
					<td class="width-35">
						${officeintroduce}
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">项目组信息：</label></td>
					<td class="width-35">
						<div style="width:100%; float: left">
							<div style="float:left;width: 80px; height: 100%; ">
								负责人
							</div>
							<div style="float:left; height: 100%; width: 100%; ">
								<div style="width: 100%; height: 100%; float: left">
								</div>
								<table id="listMasters"  style="text-align: center;width: 100%;margin-top:10px;"  class="table table-striped table-bordered table-condensed" >
									<tr>
										<td>序号</td><td>项目负责人</td><td>个人简介</td><td>评价汇总表</td><td>操作</td>
									</tr>
									<c:forEach items="${workBidProject.masterList}" var="master" varStatus="index">
										<tr>
											<td>${index.index + 1 }</td>
											<td>${master.name}</td>
											<td><span title="${master.remarks}">${fns:abbr(master.remarks, 30)}</span></td>
											<%--<td>${master.workattachment.attachmentName}</td>--%>
											<c:choose>
												<c:when test="${fn:containsIgnoreCase(master.workattachment.attachmentName,'jpg')
													   or fn:containsIgnoreCase(master.workattachment.attachmentName,'png')
										 			   or fn:containsIgnoreCase(master.workattachment.attachmentName,'gif')
													   or fn:containsIgnoreCase(master.workattachment.attachmentName,'jpeg')}">
													<td><img src="${master.workattachment.url}"  onclick="openDialogView(' ','${ctx}/sys/picturepreview/picturePreview?url=${master.workattachment.url}','860px','600px')"	 width="50" height="50" alt="${master.workattachment.attachmentName}"/></td>
												</c:when>
												<c:otherwise>
													<c:choose>
														<c:when test="${fn:containsIgnoreCase(master.workattachment.attachmentName,'pdf')}">
															<td><a href="javascript:void(0)" onclick="preview('预览','${master.workattachment.url}','80%','80%','1')">
																<span title="${master.workattachment.attachmentName}">${fns:abbr(master.workattachment.attachmentName, 30)}</span></a></td>
														</c:when>
														<c:otherwise>
															<td><a href="javascript:void(0)" onclick="preview('预览','${master.workattachment.url}','80%','80%')">
																<span title="${master.workattachment.attachmentName}">${fns:abbr(master.workattachment.attachmentName, 30)}</span></a></td>
														</c:otherwise>
													</c:choose>
												</c:otherwise>
											</c:choose>
											<td>
												<c:if test="${!empty master.workattachment.url}">
													<a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${master.workattachment.url}');" class="btn btn-success btn-xs">下载</a>

													<%--<a href="${ctx}/workfullmanage/workFullManage/downLoadAttach?file=${master.workattachment.url}" class="btn btn-success btn-xs">下载</a>
												--%></c:if>
											</td>
										</tr>
									</c:forEach>
								</table>
							</div>
						</div>

						<div style="width: 100%;  ">
							<div style="float:left;width: 80px;height: 100%; ">
								负责组成员
							</div>
							<div style="float:left; height: 100%; width: 100%; ">
								<div style="width: 100%; height: 100%; float: left">
								</div>
								<table id="listMembers" style="text-align: center;width: 100%;margin-top:10px;" class="table table-striped table-bordered table-condensed" >
									<tr>
										<td>序号</td><td>项目组成员</td><td>个人简介</td><td>评价汇总表</td><td>操作</td>
									</tr>
									<c:forEach items="${workBidProject.memberList}" var="member" varStatus="index">
										<tr>
											<td>${index.index + 1}</td>
											<td>${member.name}</td>
											<td><span title="${member.remarks}">${fns:abbr(member.remarks, 30)}</span></td>
											<c:choose>
												<c:when test="${fn:containsIgnoreCase(member.workattachment.attachmentName,'jpg')
													   or fn:containsIgnoreCase(member.workattachment.attachmentName,'png')
										 			   or fn:containsIgnoreCase(member.workattachment.attachmentName,'gif')
													   or fn:containsIgnoreCase(member.workattachment.attachmentName,'jpeg')}">
													<td><img src="${member.workattachment.url}" onclick="openDialogView(' ','${ctx}/sys/picturepreview/picturePreview?url=${member.workattachment.url}','860px','600px')" width="50" height="50" alt="${member.workattachment.attachmentName}"/></td>
												</c:when>
												<c:otherwise>
													<c:choose>
														<c:when test="${fn:containsIgnoreCase(member.workattachment.attachmentName,'pdf')}">
															<td><a href="javascript:void(0)" onclick="preview('预览','${member.workattachment.url}','80%','80%','1')">
																<span title="${member.workattachment.attachmentName}">${fns:abbr(member.workattachment.attachmentName, 30)}</span></a></td>
														</c:when>
														<c:otherwise>
															<td><a href="javascript:void(0)" onclick="preview('预览','${member.workattachment.url}','80%','80%')">
																<span title="${member.workattachment.attachmentName}">${fns:abbr(member.workattachment.attachmentName, 30)}</span></a></td>
														</c:otherwise>
													</c:choose>
												</c:otherwise>
											</c:choose>
											<td>
												<c:if test="${!empty member.workattachment.url}">
													<a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${member.workattachment.url}');" class="btn btn-success btn-xs">下载</a>
													<%--<a href="${ctx}/workfullmanage/workFullManage/downLoadAttach?file=${member.workattachment.url}" class="btn btn-success btn-xs">下载</a>--%>
												</c:if>
											</td>
										</tr>
									</c:forEach>
								</table>
							</div>
						</div>
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">方案编制：</label></td>
					<td class="width-35">
						<div style="width: 100%; ">
							<div style="float:left;width: 80px; height: 100%; ">
								附件
							</div>
							<div style="float:left; height: 100%; width: 100%; ">
								<table id="listAttachment"  style="text-align: center;width: 100%;margin-top:10px;"  class="table table-striped table-bordered table-condensed" >
									<tr>
										<%--<td>序号</td>--%><td>文件名</td><td>上传人</td><td>上传时间</td><td>操作</td>
									</tr>
									<c:forEach items="${workAttachmentList}" var="attachment" varStatus="index">
										<tr>
											<%--<td>${index.index + 1}</td>--%>
											<c:choose>
												<c:when test="${fn:containsIgnoreCase(attachment.attachmentName,'jpg')
													   or fn:containsIgnoreCase(attachment.attachmentName,'png')
										 			   or fn:containsIgnoreCase(attachment.attachmentName,'gif')
													   or fn:containsIgnoreCase(attachment.attachmentName,'jpeg')}">
													<td><img src="${attachment.url}" onclick="openDialogView(' ','${ctx}/sys/picturepreview/picturePreview?url=${attachment.url}','860px','600px')" width="50" height="50" alt="${attachment.attachmentName}"/></td>
												</c:when>
												<c:otherwise>
													<c:choose>
														<c:when test="${fn:containsIgnoreCase(attachment.attachmentName,'pdf')}">
															<td><a href="javascript:void(0)" onclick="preview('预览','${attachment.url}','80%','80%','1')">
																<span title="${attachment.attachmentName}">${fns:abbr(attachment.attachmentName, 30)}</span></a></td>
														</c:when>
														<c:otherwise>
															<td><a href="javascript:void(0)" onclick="preview('预览','${attachment.url}','80%','80%')">
																<span title="${attachment.attachmentName}">${fns:abbr(attachment.attachmentName, 30)}</span></a></td>
														</c:otherwise>
													</c:choose>
												</c:otherwise>
											</c:choose>
											<td>${attachment.attachmentUser}</td>
											<td><fmt:formatDate value="${attachment.createDate}" pattern="yyyy-MM-dd"/></td>
											<td>
												<a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${attachment.url}');" class="btn btn-success btn-xs">下载</a>

												<%--<a href="${ctx}/workfullmanage/workFullManage/downLoadAttach?file=${attachment.url}" class="btn btn-success btn-xs">下载</a>
											--%></td>
										</tr>
									</c:forEach>
								</table>
							</div>
						</div>

					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">投标报价：</label></td>
					<td class="width-35">
						<div style="width: 580px;">
							<div style="width: 80px; height: 100%; float: left">
								报价(元)：
							</div>
							<div style="width: 500px; height: 100%; float: left">
								${workBidingDocument.quote}
							</div>
						</div>
						<br/><br/>
						<div style="width: 580px;">
							<div style="width: 80px; height: 100%; float: left">
								备注：
							</div>
							<div style="width: 500px; height: 10%; float: left">
								${workBidingDocument.remarks}
							</div>
						</div>

					</td>
				</tr>
		 	</tbody>
		</table>
	</form:form>
</body>
</html>