<!--{include file="<!--{$oapath}-->public/ins_popup.tpl"}-->
<block name="content">
	<div class="popup-fixed">
		<div class="popup-header clearfix">
			<div class="pull-left">
				<h1><!--{$vo['name']}--></h1>
			</div>
			<div class="pull-right">
			
                                    <!--{if !empty($prev)}-->
                                    <a onclick="prev();" class="btn btn-sm btn-primary">上一个</a>
                                    <!--{/if}-->
					
                                   <!--{if !empty($next)}-->
                                   <a onclick="next();" class="btn btn-sm btn-primary">下一个</a>
                                    <!--{/if}-->
			
				<a onclick="del();" class="btn btn-sm btn-danger">删除</a>
				<a onclick="edit();" class="btn btn-sm btn-primary">编辑</a>
				<a onclick="myclose();" class="btn btn-sm btn-default">关闭</a>
			</div>
		</div>
		<div class="popup-body" style="height: 420px;overflow-y: auto;">
			<form id="form_data" name="form_data" method="post" class="form-horizontal clearfix">
				<input type="hidden" id="ajax" name="ajax" value="0">
				<div class="form-group col-xs-6">
					<label class="col-xs-4 control-label" >开始:</label>
					<div class="col-xs-8">
						<p class="form-control-static">
							<!--{$vo.start_time}-->
						</p>
					</div>
				</div>
				<div class="form-group col-xs-6">
					<label class="col-xs-4 control-label" for="name">结束:</label>
					<div class="col-xs-8">
						<p class="form-control-static">
							<!--{$vo.end_time}-->
						</p>
					</div>
				</div>
				<div class="form-group col-xs-6">
					<label class="col-xs-4 control-label" for="name">地点:</label>
					<div class="col-xs-8">
						<p class="form-control-static">
							<!--{$vo.location}-->
						</p>
					</div>
				</div>
				<div class="form-group col-xs-6">
					<label class="col-xs-4 control-label" for="name">优先级:</label>
					<div class="col-xs-8">
						<div class="form-control-static" >
							<input type="hidden" id="priority" name="priority"/>
							<div class="slider_box" >
								<div class="left" >
									低
								</div>
								<div id="basic_slider"></div>
								<div class="right" >
									高
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-2 control-label" for="name">参与人员:</label>
					<div class="col-xs-10">
						<p class="form-control-static">
							<!--{$vo.actor}-->
						</p>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-2 control-label" for="name">附件:</label>
					<div class="col-xs-10">
						<div style="position:relative;">
	<ul class="file_list" id="file_list">
                <!--{foreach $file as  $v}-->
			      <li class="tbody">
					<div class="loading"></div>
					<div class="data">
						<span class="del text-center"> <a class="link down" target="_blank" href="<!--{$v.path}-->">下载</a> </span>
						
						<span class="auto autocut" title="<!--{$v.name}-->	"><!--{$v.name}-->						</span>
					</div>
				</li>
         <!--{/foreach}-->
        </ul></div>
					</div>
				</div>
				<div class="clearfix"></div>
				<div class="form-group">
					<div class="col-xs-12">
						<div class="content_wrap" >
							<iframe class="content_iframe"></iframe>
							<textarea  class="content" name="content" style="display:none;"><!--{$vo.content}--></textarea>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
</block>
</div>s
                                	
		<!-- Mainly scripts -->
		<script src="<!--{$oapath}-->Ins/js/jquery-2.1.1.js"></script>
		<script src="<!--{$oapath}-->Ins/js/bootstrap.min.js"></script>
		<script src="<!--{$oapath}-->Ins/js/plugins/metisMenu/jquery.metisMenu.js"></script>
		<script src="<!--{$oapath}-->Ins/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
		<!-- Custom and plugin javascript -->
		<script src="<!--{$oapath}-->Ins/js/inspinia.js"></script>
		<script src="<!--{$oapath}-->Ins/js/common.js"></script>
		<script src="<!--{$oapath}-->Ins/js/plugins/pace/pace.min.js"></script>
                
		<script src="<!--{$oapath}-->Ins/js/plugins/toastr/toastr.min.js"></script>
                <script src="<!--{$oapath}-->Ins/js/plugins/gritter/jquery.gritter.min.js"></script>
                <script src="<!--{$oapath}-->Ins/js/plugins/bootbox/bootbox.min.js"></script>
		
        <script src="<!--{$oapath}-->Ins/js/plugins/jquery-ui/jquery-ui.min.js"></script>
	<script src="<!--{$oapath}-->Ins/js/plugins/nouslider/jquery.nouislider.min.js"></script>
        <script src="<!--{$oapath}-->Ins/js/plugins/date-time/moment-with-locales.js"></script>
	<script src="<!--{$oapath}-->Ins/js/plugins/date-time/bootstrap-datetimepicker.js"></script>

       <script type="text/javascript" src="<!--{$oapath}-->Ins/js/layui/layui.js"></script>

<block name="js">

<block name="js">
	<script type="text/javascript">
		function edit() {
			parent.window.location.href = 'oa.php?c=Schedule&a=edit&id=<!--{$vo.id}-->';
			myclose();
		}

		function del() {
                        parent.window.location.href = 'oa.php?c=Schedule&a=del&id=<!--{$vo.id}-->"';
			myclose();
                }
                   

		function next() {
			window.location.href = "oa.php?c=Schedule&a=read&id=<!--{$next}-->&list=<!--{$list}-->";
		}

		function prev() {
			window.location.href = "oa.php?c=Schedule&a=read&id=<!--{$prev}-->&list=<!--{$list}-->";
		}

		$("#basic_slider").on('change', function() {
			$("div.slider_box .noUi-base").css("background-color", schedule_bg($(this).val()));
		});

		$(function() {
			show_content();
			$("#basic_slider").noUiSlider({
				start : '<!--{$vo.priority}-->' * 1,
				step : 1,
				range : {
					'min' : 1,
					'max' : 5,
				},
			});

			$("div.slider_box .noUi-base").css("background-color", schedule_bg('<!--{$vo.priority}-->'));
		});

	</script>

</block>

</block>
	</body>
</html>