<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<c:set var="contextPath" value="${pageContext.request.contextPath}"></c:set>

<link rel="stylesheet" href="${contextPath}/static/assets/css/jquery-ui.css" />
<link rel="stylesheet" href="${contextPath}/static/assets/css/datepicker.css" />
<link rel="stylesheet" href="${contextPath}/static/assets/css/ui.jqgrid.css" />
<link rel="stylesheet" href="${contextPath}/static/js/contract/ace.fileinput.css" />

<style>
	.hr-line-dashed {
	    background-color: #ffffff;
	    border-top: 1px dashed #e7eaec;
	    color: #ffffff;
	    height: 1px;
	    margin: 20px 0;
	}
</style>

<div class="well well-sm">
	<input type="text" class="input-sm" placeholder="推荐律师" id="keywordTjl"/>
	<input type="text" class="input-sm" placeholder="代理律师" id="keywordDll"/>
	<select class="select" id="orderState">
		<option value="" selected = "selected">状态</option>
		<option value="0">审核中</option>
		<option value="1">需调整</option>
		<option value="10">待推荐</option>
		<option value="90">已取消</option>
		<option value="91">不通过</option>
		<option value="92">已过期</option>
	</select>
	<button type="button" class="btn btn-purple btn-sm" id="searchd">
		<span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
		查询
	</button>
</div>

<div class="row">
	<div class="col-xs-12">
		<table id="grid-table"></table>
		<div id="grid-pager"></div>
		<script type="text/javascript">
			var $path_base = "${contextPath}/static";//in Ace demo this will be used for editurl parameter
		</script>
		<!-- PAGE CONTENT ENDS -->
	</div><!-- /.col -->
</div><!-- /.row -->

<div id="modal-reviewReq" class="modal fade" tabindex="-1">
	<div class="modal-dialog" style="max-width: 500px;">
		<div class="modal-content">
			<div class="modal-header no-padding">
      			<div class="table-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
						<span class="white">&times;</span>
					</button>
					审核案件
				</div>
	      	</div>
	      	<div class="modal-body">
	      		<form id="viewReqForm" class="form-horizontal">
      				<input type="hidden" name="orderId" id="mod-reviewReq-orderId"/>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label">原因</label>
			      		<textarea cols="45" rows="2" id="reviewReqFailReason" placeholder="有问题反馈或审核不通过时填写！"></textarea>
			      	</div>
		      	</form>
	      	</div>
	      	<div class="modal-footer">
                <button class="btn " data-dismiss="modal"><i class="fa fa-share bigger-160"></i>取消</button>
                <button class="btn btn-warning" type="button" id="mod-reviewReq-fail-submit"><strong>问题反馈</strong></button>
                <button class="btn btn-danger" type="button" id="mod-reviewReq-notPass-submit"><strong>不通过</strong></button>
	      		<button class="btn btn-primary" type="button" id="mod-reviewReq-submit"><strong>通过</strong></button>
			</div>
		</div>
	</div>
</div>

<div id="modal-reviewPro" class="modal fade" tabindex="-1">
	<div class="modal-dialog" style="max-width: 500px;">
		<div class="modal-content">
			<div class="modal-header no-padding">
      			<div class="table-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
						<span class="white">&times;</span>
					</button>
					审核融资协议
				</div>
	      	</div>
	      	<div class="modal-body">
	      		<form id="viewProForm" class="form-horizontal">
      				<input type="hidden" name="orderId" id="mod-reviewPro-orderId"/>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label">协议</label>
			      		<div class="col-sm-10 text-left" id="modal-reviewPro-attachs"></div>
			      	</div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label">原因</label>
			      		<textarea cols="45" rows="2" id="reviewProFailReason" placeholder="有问题反馈时填写！"></textarea>
			      	</div>
		      	</form>
	      	</div>
	      	<div class="modal-footer">
                <button class="btn " data-dismiss="modal"><i class="fa fa-share bigger-160"></i>取消</button>
                <button class="btn btn-warning" type="button" id="mod-reviewPro-fail-submit"><strong>问题反馈</strong></button>
	      		<button class="btn btn-primary" type="button" id="mod-reviewPro-submit"><strong>通过</strong></button>
			</div>
		</div>
	</div>
</div>

<div id="modal-rzys" class="modal fade" tabindex="-1">
	<div class="modal-dialog" style="max-width: 600px;">
		<div class="modal-content">
			<div class="modal-header no-padding">
      			<div class="table-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
						<span class="white">&times;</span>
					</button>
					融资要素
				</div>
	      	</div>
	      	<div class="modal-body">
	      		<form id="viewRzysForm" class="form-horizontal">
      				<input type="hidden" name="orderId" id="mod-rzys-orderId"/>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label">融资金额:</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-rzys-moneyPc" class="form-control" placeholder="单位:元"/>
			      		</div>
			      	</div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label">利率:</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-rzys-ratioFc" class="form-control" placeholder="单位:%"/>
			      		</div>
			      	</div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label">融资期限:</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-rzys-termPc" class="form-control" placeholder="单位:天"/>
			      		</div>
			      	</div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label">放款计划:</label>
			      		<div class="col-sm-10 text-left">
			      			<textarea rows="5" id="mod-rzys-conditionDk" class="form-control"></textarea>
			      		</div>
			      	</div>
		      	</form>
	      	</div>
	      	<div class="modal-footer">
                <button class="btn " data-dismiss="modal"><i class="fa fa-share bigger-160"></i>取消</button>
	      		<button class="btn btn-primary" type="button" id="mod-rzys-submit"><strong>确定</strong></button>
			</div>
		</div>
	</div>
</div>

<div id="modal-caseInfo" class="modal fade" tabindex="-1">
	<div class="modal-dialog" style="max-width: 600px;">
		<div class="modal-content">
			<div class="modal-header no-padding">
      			<div class="table-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
						<span class="white">&times;</span>
					</button>
					案件详情
				</div>
	      	</div>
	      	<div class="modal-body" style="max-height: 500px;overflow-y: scroll;">
	      		<form id="viewCaseInfoForm" class="form-horizontal">
      				<input type="hidden" name="caseInfoId" id="mod-caseInfo-caseInfoId"/>
      				<input type="hidden" name="orderId" id="mod-caseInfo-orderId"/>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding-right">标题</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-caseInfo-title" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding-right">省</label>
			      		<div class="col-sm-2 text-left no-padding-right">
				      		<select id="modal-caseInfo-areaProvince" onchange="setChArea(this)" style="width:82px;">
				      			<option selected value="" >全部</option>
				      		</select>
			      		</div>
			      		<label class="col-sm-2 control-label no-padding-left">市</label>
			      		<div class="col-sm-2 text-left no-padding">
			      			<select id="modal-caseInfo-areaCity" onchange="setChArea(this)" style="width:82px;"/>
			      		</div>
			      		<label class="col-sm-2 control-label no-padding-left">区/县</label>
			      		<div class="col-sm-2 text-left no-padding-left">
			      			<select id="modal-caseInfo-areaCounty" style="width:82px;"/>
			      		</div>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding-right">事故发生时间</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-caseInfo-occurDate" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding">事故发生概要</label>
			      		<div class="col-sm-10 text-left">
			      			<textarea rows="5" id="mod-caseInfo-info" class="form-control"></textarea>
			      		</div>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding-right">事故当事人</label>
			      		<div class="col-sm-10 text-left">
			      			<button type="button" class="btn btn-minier btn-primary" style="height:34px;" id="mod-caseInfo-party-button">添加</button>
			      		</div>
			      	</div>
			      	<div class="form-group" id="mod-caseInfo-party-list"></div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding-right">融资申请人</label>
			      		<div class="col-sm-10 text-left">
			      			<button type="button" class="btn btn-minier btn-primary" style="height:34px;" id="mod-caseInfo-applicant-button">添加</button>
			      		</div>
			      	</div>
			      	<div class="form-group" id="mod-caseInfo-applicant-list"></div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding-right">保险公司</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-caseInfo-insurer" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding-right">保险类型</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-caseInfo-policyType" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding-right">保险金额</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-caseInfo-policyMoney" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding-right">保险期限</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-caseInfo-policyTerm" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding">相关证据</label>
			      		<div class="col-sm-10 text-left">
			      			<button type="button" class="btn btn-minier btn-primary" style="height:34px;" id="mod-caseInfo-policy-button">上传图片</button>
			      		</div>
			      	</div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding"></label>
			      		<div class="col-sm-10 text-left checkbox-inline" id="mod-caseInfo-div5" style="padding-left: 15px;padding-top: 0px;"/>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding">预期赔偿金额</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-caseInfo-damage" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding">预期回报周期</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-caseInfo-returnCycle" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding">预期年收益率</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-caseInfo-returnRate" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding">风险度</label>
			      		<div class="col-sm-10 text-left">
			      			<select class="select" id="mod-caseInfo-rpn" class="form-control" style="width:455px;">
								<option value="1" selected = "selected">低</option>
								<option value="2">较低</option>
								<option value="3">中等</option>
							</select>
			      		</div>
			      	</div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding">风险提示</label>
			      		<div class="col-sm-10 text-left">
			      			<textarea rows="2" id="mod-caseInfo-rpnInfo" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding">起投金额</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-caseInfo-moneyMin" class="form-control" placeholder="单位:元"/>
			      		</div>
			      	</div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding">投资最小份额</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-caseInfo-lotMin" class="form-control" placeholder="单位:元"/>
			      		</div>
			      	</div>
		      	</form>
	      	</div>
	      	<div class="modal-footer">
                <button class="btn " data-dismiss="modal"><i class="fa fa-share bigger-160"></i>取消</button>
	      		<button class="btn btn-primary" type="button" id="mod-caseInfo-submit"><strong>确定</strong></button>
			</div>
		</div>
	</div>
</div>

<div id="modal-party" class="modal fade" tabindex="-1">
	<div class="modal-dialog" style="max-width: 600px;">
		<div class="modal-content">
			<div class="modal-header no-padding">
      			<div class="table-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
						<span class="white">&times;</span>
					</button>
					当事人信息
				</div>
	      	</div>
	      	<div class="modal-body">
	      		<form id="viewPartyForm" class="form-horizontal">
      				<input type="hidden" name="caseInfoId" id="mod-party-caseInfoId"/>
      				<input type="hidden" name="casePersonId" id="mod-party-casePersonId"/>
      				<input type="hidden" name="orderId" id="mod-party-orderId"/>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label">姓名</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-party-name" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label">身份证</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-party-idNum" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label">联系方式</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-party-contactInfo" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label">交通方式</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-party-trafficType" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label">责任划分</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-party-duty" class="form-control" />
			      		</div>
			      	</div>
		      	</form>
	      	</div>
	      	<div class="modal-footer">
                <button class="btn " data-dismiss="modal"><i class="fa fa-share bigger-160"></i>取消</button>
	      		<button class="btn btn-primary" type="button" id="mod-party-submit"><strong>确定</strong></button>
			</div>
		</div>
	</div>
</div>

<div id="modal-applicant" class="modal fade" tabindex="-1">
	<div class="modal-dialog" style="max-width: 600px;">
		<div class="modal-content">
			<div class="modal-header no-padding">
      			<div class="table-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
						<span class="white">&times;</span>
					</button>
					申请人信息
				</div>
	      	</div>
	      	<div class="modal-body" style="max-height: 500px;overflow-y: scroll;">
	      		<form id="viewApplicantForm" class="form-horizontal">
      				<input type="hidden" name="caseInfoId" id="mod-applicant-caseInfoId"/>
      				<input type="hidden" name="casePersonId" id="mod-applicant-casePersonId"/>
      				<input type="hidden" name="orderId" id="mod-applicant-orderId"/>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding">姓名</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-applicant-name" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding">身份证</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-applicant-idNum" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding">联系方式</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-applicant-contactInfo" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding">病情</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-applicant-illness" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding">户口</label>
			      		<div class="col-sm-10 text-left">
			      			<input type="text" id="mod-applicant-homeplace" class="form-control" />
			      		</div>
			      	</div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding">被抚养人</label>
			      		<div class="col-sm-10 text-left">
			      			<textarea rows="3" id="mod-applicant-dependants" class="form-control" placeholder="用|符号分割多个抚养人"></textarea>
			      		</div>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding">基本信息证据</label>
			      		<div class="col-sm-10 text-left">
			      			<button type="button" class="btn btn-minier btn-primary" style="height:34px;" id="mod-applicant-proofBase-button">上传图片</button>
			      		</div>
			      	</div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding"></label>
			      		<div class="col-sm-10 text-left checkbox-inline" id="mod-applicant-div50" style="padding-left: 15px;padding-top: 0px;"/>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding">伤情证据</label>
			      		<div class="col-sm-10 text-left">
			      			<button type="button" class="btn btn-minier btn-primary" style="height:34px;" id="mod-applicant-proofInjury-button">上传图片</button>
			      		</div>
			      	</div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding"></label>
			      		<div class="col-sm-10 text-left checkbox-inline" id="mod-applicant-div51" style="padding-left: 15px;padding-top: 0px;"/>
			      	</div>
			      	<div class="hr-line-dashed"></div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding">被抚养人证据</label>
			      		<div class="col-sm-10 text-left">
			      			<button type="button" class="btn btn-minier btn-primary" style="height:34px;" id="mod-applicant-proofDependants-button">上传图片</button>
			      		</div>
			      	</div>
			      	<div class="form-group">
			      		<label class="col-sm-2 control-label no-padding"></label>
			      		<div class="col-sm-10 text-left checkbox-inline" id="mod-applicant-div52" style="padding-left: 15px;padding-top: 0px;"/>
			      	</div>
		      	</form>
	      	</div>
	      	<div class="modal-footer">
                <button class="btn " data-dismiss="modal"><i class="fa fa-share bigger-160"></i>取消</button>
	      		<button class="btn btn-primary" type="button" id="mod-applicant-submit"><strong>确定</strong></button>
			</div>
		</div>
	</div>
</div>

<div id="mod-pic" class="modal fade" tabindex="-1">
	<div class="modal-dialog" style="max-width: 500px;">
		<div class="modal-content">
			<div class="modal-header no-padding">
				<div class="table-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
						<span class="white">&times;</span>
					</button>
					图片上传
				</div>
			</div>
			<div class="modal-body">
				<div class="row">
					<div class="col-xs-12">
						<!-- PAGE CONTENT BEGINS  -->
						<form id="picform" >
							<input id="picFileId" type="file" name="file" multiple />
							<input type="hidden" name="attachType" id="mod-pic-attachType"/>
							<div class="hr hr-12 dotted"></div>
							<div class="text-center">
							<button type="button" class="btn btn-sm btn-primary" id="mod-pic-submit">上传</button>
							<button type="reset" class="btn btn-sm">清除</button>
							</div>
						</form>
					</div><!-- /.col -->
				</div><!-- /.row -->
				
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal-dialog -->
</div>

<div id="modal-confirm" class="modal fade" tabindex="-1" data-backdrop="static">
	<div class="modal-dialog" style="width:350px">
		<div class="modal-content">
			<div class="modal-header no-padding">
      			<div class="table-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
						<span class="white">&times;</span>
					</button>
					指派代理
				</div>
	      	</div>
	      	<div class="modal-body">
      			<input type="hidden" name="orderId" id="mod-confirm-orderId"/>
		      	<div class="form-group">
		      		<label >律师</label>
		      		<select class="form-control" id="mod-confirm-lawyerB" onchange="lawyerBOnchange(this)"/>
		      	</div>
		      	<div class="form-group">
		      		<label >律师电话</label>
		      		<input type="text" class="form-control" id="mod-confirm-lawyerBPhone" />
		      	</div>
	      	</div>
	      	<div class="modal-footer no-margin-top">
                <div class="text-center">
					<button id="modal-confirm-confirm" type="button" class="btn btn-sm btn-primary">
						<i class="ace-icon fa fa-floppy-o bigger-160"></i>
						确认
					</button>
					<button class="btn btn-sm" data-dismiss="modal">
						<i class="ace-icon fa fa-share bigger-160"></i>
						取消
					</button>
				</div>
			</div>
		</div>
	</div>
</div>

<div id="modal-detail" class="modal fade" tabindex="-1" data-backdrop="static">
	<div class="modal-dialog" style="min-width: 650px;">
		<div class="modal-content">
			<div class="modal-header no-padding">
      			<div class="table-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
						<span class="white">&times;</span>
					</button>
					详细
				</div>
	      	</div>
	      	<div class="modal-body" id="modal-detail-body" style="max-height: 500px;overflow-y: scroll;">
      			
	      	</div>
		</div>
	</div>
</div>

<%@include file="/WEB-INF/page/back/ssrz/ssrzOrderDetail.jsp" %>

<!-- page specific plugin scripts -->
<script type="text/javascript">
	var contextPath = '${contextPath}';

	var myGrid = null;
 
	var scripts = [ null, "${contextPath}/static/assets/js/jqGrid/jquery.jqGrid.js", "${contextPath}/static/assets/js/jqGrid/i18n/grid.locale-cn.js", 
	                "${contextPath}/static/js/contract/promise-6.1.0.js", "http://gosspublic.alicdn.com/aliyun-oss-sdk-4.3.0.min.js",
	                "${contextPath}/static/js/contract/ace.fileinput.js", "${contextPath}/static/js/contract/uuid.js",
	                "${contextPath}/static/js/contract/picupload.js", "${contextPath}/static/assets/js/lazyload/jquery.lazyload.js","${contextPath}/static/js/network.js", 
	                "${contextPath}/static/js/ssrz/util.js", "${contextPath}/static/js/ssrz/o1_rzys.js", "${contextPath}/static/js/ssrz/o1_party.js", 
	                "${contextPath}/static/js/ssrz/o1_case.js", "${contextPath}/static/js/ssrz/o1_review.js", "${contextPath}/static/js/ssrz/o1_applicant.js", 
	                "${contextPath}/static/js/ssrz/o1_oss.js", "${contextPath}/static/js/ssrz/o1_pic.js", "${contextPath}/static/js/ssrz/o1_confirmLawyer.js",
	                "${contextPath}/static/js/ssrz/o1_init.js", null ];
	
	$('.page-content-area').ace_ajax('loadScripts', scripts, function() {
    	// inline scripts related to this page
    	jQuery(function($) {
    		
    	});
    });

	function showPicModal(attachType){
		$('#mod-pic-attachType').val(attachType);
		$('#mod-pic').modal('toggle');
	}
</script>
