You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
148 lines
5.8 KiB
148 lines
5.8 KiB
<!DOCTYPE html>
|
|
<html class="no-js" lang="zh-CN">
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<script type="text/javascript" src="{$smarty.const.CSS_URL}/js/jquery-1.8.1.min.js"></script>
|
|
<script type="text/javascript" src="{$smarty.const.CSS_URL}/js/jquery.form.js"></script>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<title>药方列表</title>
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<link href="{$smarty.const.CSS_URL}/css/global.css?v={$smarty.const.CSS_JS_VERSION}" media="screen" rel="stylesheet" type="text/css">
|
|
</head>
|
|
<body>
|
|
|
|
<div id="page">
|
|
<div class="container">
|
|
<section id="main">
|
|
<div id="main-content">
|
|
<div class="entry">
|
|
<div class="modal-body">
|
|
<table class="table table-striped table-bordered table-condensed">
|
|
<tbody class='js-bundle-record-list'>
|
|
<tr>
|
|
<td>
|
|
全部药方:
|
|
<select id="is_all">
|
|
<option value="0" {if $smarty.get.is_all==0}selected{/if}>否</option>
|
|
<option value="1" {if $smarty.get.is_all==1}selected{/if}>是</option>
|
|
</select>
|
|
|
|
药方名称:
|
|
<input type="text" id='name' value="{$smarty.get.name}">
|
|
|
|
<button onclick="searchList();" class="button primary next" id="btnVer">搜索</button>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="record-control">
|
|
<div class="flash-message"></div>
|
|
<ul class="tabs">
|
|
<li class="active"><a href="javascript:;">药方列表</a></li>
|
|
<div style="display:inline-block;float: right;">
|
|
<button class="button primary next" onclick="to_add()">添加药方</button>
|
|
</div>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="entry">
|
|
<div class="modal-body">
|
|
{if count($page_list) > 1}
|
|
<div class="modal-body">
|
|
|
|
{if isset($prev_page)}
|
|
<a href="{$prev_page}">上一页</a>
|
|
{/if}
|
|
|
|
{foreach from=$page_list key=key item=item}
|
|
<a href="{$item.url}">{if $key+1 eq $curpage}<b>{/if}{$item.page}{if $key+1 eq $curpage}</b>{/if}</a>
|
|
{/foreach}
|
|
|
|
{if isset($post_page)}
|
|
<a href="{$post_page}">下一页</a>
|
|
{/if}
|
|
|
|
</div>
|
|
{/if}
|
|
<table class="table table-striped table-bordered table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>录方者</th>
|
|
<th>药方名称</th>
|
|
<th>药方来源</th>
|
|
<th>使用次数</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$list key=key item=item}
|
|
<tr>
|
|
<td>{$item.id}</td>
|
|
<td>{$item.uid}</td>
|
|
<td>{$item.name}</td>
|
|
<td>{$item.source}</td>
|
|
<td>{$item.use_num}</td>
|
|
|
|
<td>{if $item.uid == 0}<a href="/index/formula_add/id/{$item.id}">编辑</a>{/if}</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</div></section><!--end of main section-->
|
|
|
|
</div><!--end of container-->
|
|
|
|
</div><!--end of #page-->
|
|
|
|
{literal}
|
|
<script type="text/javascript">
|
|
function searchList() {
|
|
var is_all = $('#is_all').val();
|
|
var name = $.trim($('#name').val());
|
|
|
|
var url = '/index/home';
|
|
|
|
if(is_all > 0) url += '/is_all/' + is_all;
|
|
if(name) url += '/name/' + name;
|
|
|
|
location.href = url;
|
|
}
|
|
function to_add(){
|
|
location.href = '/index/formula_add';
|
|
}
|
|
</script>
|
|
<style>
|
|
|
|
</style>
|
|
{/literal}
|
|
|
|
<!-- UserAgent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20100101 Firefox/12.0 -->
|
|
|
|
{literal}
|
|
|
|
<!--[if lt IE 7]>
|
|
<![endif]-->
|
|
<!--
|
|
<script type="text/javascript">
|
|
/*Load jQuery if not already loaded*/ if(typeof jQuery == 'undefined'){ document.write("<script type=\"text/javascript\" src=\"" + ('https:' == document.location.protocol ? 'https://' : 'http://')+ "ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js\"></"+"script>"); var __noconflict = true; }
|
|
var IE6UPDATE_OPTIONS = {
|
|
url: "http://blog.dnspod.cn/2010/04/ie6-must-die/",
|
|
message: "DNSPod 新版已经完全取消对微软 Internet Explorer 6.0 浏览器的支持,IE6 用户无法正常使用 DNSPod。请升级您的IE6浏览器至IE8,或者升级至Chrome、火狐、Safari等其他浏览器。",
|
|
icons_path: "https://statics.dnspod.cn/zhanjiang/images/ie6update/"
|
|
}
|
|
</script>
|
|
<script type="text/javascript" src="https://statics.dnspod.cn/zhanjiang/javascripts/ie6update.v2.js"></script>
|
|
-->
|
|
<!--[if lt IE 7]>
|
|
<![endif]-->
|
|
{/literal}
|
|
</body>
|
|
</html>
|
|
|