<!DOCTYPE html>
<html lang="en">
<head>
	<!-- <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> -->
	<script src="https://kit.fontawesome.com/f6bb5b3442.js" crossorigin="anonymous"></script>
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
	<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> -->
	
	<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
	<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">

<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
<!-- <link rel="stylesheet" href="https://bootswatch.com/bower_components/bootstrap/dist/css/bootstrap.min.css"> -->
<!-- <link rel="stylesheet" href="https://bootswatch.com/cerulean/bootstrap.min.css"> -->

<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>

    <!-- <link rel="stylesheet" href="/static/orangeflower/style.css" /> -->
<!--     <link rel="stylesheet" href="http://www.adobati.it/labs/CSSTable/0m4r.table.css" />     -->
    <!-- <link rel="stylesheet" href="http://www.admixweb.com/downloads/csstablegallery/bluedream.css" />     -->
<!--     <link rel="stylesheet" href="http://www.netway-media.com/freedesigns/table/web20.css" />     -->

	<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.4.0/js/bootstrap-datepicker.min.js"></script>
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.4.0/css/bootstrap-datepicker.min.css">

	<script type="text/javascript">
	$(document).ajaxSend(function(event, xhr, settings) {
	    function getCookie(name) {
	        var cookieValue = null;
	        if (document.cookie && document.cookie != '') {
	            var cookies = document.cookie.split(';');
	            for (var i = 0; i < cookies.length; i++) {
	                var cookie = jQuery.trim(cookies[i]);
	                // Does this cookie string begin with the name we want?
	                if (cookie.substring(0, name.length + 1) == (name + '=')) {
	                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
	                    break;
	                }
	            }
	        }
	        return cookieValue;
	    }
	    
	    function sameOrigin(url) {
	        // url could be relative or scheme relative or absolute
	        var host = document.location.host; // host + port
	        var protocol = document.location.protocol;
	        var sr_origin = '//' + host;
	        var origin = protocol + sr_origin;
	        // Allow absolute or scheme relative URLs to same origin
	        return (url == origin || url.slice(0, origin.length + 1) == origin + '/') ||
	            (url == sr_origin || url.slice(0, sr_origin.length + 1) == sr_origin + '/') ||
	            // or any other URL that isn't scheme relative or absolute i.e relative.
	            !(/^(\/\/|http:|https:).*/.test(url));
	    }
	    
	    function safeMethod(method) {
	        return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method));
	    }
	
	    if (!safeMethod(settings.type) && sameOrigin(settings.url)) {
	        xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken'));
	    }
	    
	});
	

	</script>
	
    <style>
		.borderless tbody tr td, .borderless tbody tr th, .borderless thead tr th {
		    border: none;
		}
		
		pre.noborder {
		  border: none;
		}		
		    
		body { padding-bottom: 70px; }
	</style>

    <title>{% block title %}{{specialty}} 手術病例{% endblock %}</title>
    
    {% block head %}{% endblock %}
</head>

<body>
    {% block menu %}
	<!-- <div id="menu">
		<ul>
		    <li><a href="/">Home</a></li>
		    <li><a href="/registry/op_prepare/">排程</a></li>
		    <li><a href="/registry/op_schedule/">病例</a></li>
		    <li><a href="/registry/op_uncategorized/">待分類</a></li>
		    <li><a href="/registry/op_month/">月報</a></li>
		    <li><a href="/registry/op_year">年報</a></li>
		    <li><a href="/registry/op_search">Search</a></li>
		    <li><a href="/registry/op_charge">緊急到院處理費</a></li>
		    <li><a href="/accounts/logout/?next=/">Logout</a></li>
		</ul>
    </div> -->
    		
	<ul class="nav nav-tabs">
		    <li role="presentation"><a href="/">Home</a></li>
		    <li role="presentation"><a href="/registry/op_prepare/">排程</a></li>
		    <li role="presentation"><a href="/registry/op_schedule/">病例</a></li>
		    <li role="presentation"><a href="/registry/op_uncategorized/">待分類</a></li>
		    <li role="presentation"><a href="/registry/op_month/">月報</a></li>
		    <li role="presentation"><a href="/registry/op_year">年報</a></li>
		    <li role="presentation"><a href="/registry/op_search">Search</a></li>
		    <li role="presentation"><a href="/registry/op_charge">緊急到院處理費</a></li>
		    <li role="presentation"><a href="/changelog">更新日誌</a></li>
		    <li role="presentation"><a href="/accounts/logout/?next=/">Logout</a></li>
	</ul>
    {% endblock %}
	<div id="header">
		<div id="logo">
		{% block logo %}
			<h1><a href="#">{{specialty}} 手術病例</a></h1>
			<h6>{{HTTP_USER_AGENT|safe}}</h6>
		{% endblock %}
		</div>
		<div id="search">
		{% block search %}
		{% endblock %}
		</div>
	</div>
    <div id="sidebar">
    {% block sidebar %}
    {% endblock %}
    </div>

    <div id="content">
    {% block content %}{% endblock %}
    </div>
    
	<div id="footer">
	{% block footer %}
{% if not NOADS %}
<nav class="navbar navbar-default navbar-fixed-bottom">
  <div class="container">
	<!-- <script type="text/javascript" src="https://ibanana.biz/oeya_ad.php?key=10966"></script> -->
  </div>
</nav>
{% endif %}
    {% endblock %}
	</div>
    
</body>
</html>