From efec9b9c26a2c74257dc56ed88beb618de496bbb Mon Sep 17 00:00:00 2001 From: pengda <10266652509@qq.com> Date: Sat, 12 Oct 2024 15:40:48 +0800 Subject: [PATCH] =?UTF-8?q?area=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/templates/admin/formula_add.html | 96 +++++++++++++++++------------------ 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/view/templates/admin/formula_add.html b/view/templates/admin/formula_add.html index 0244fe8..5502187 100644 --- a/view/templates/admin/formula_add.html +++ b/view/templates/admin/formula_add.html @@ -14,7 +14,7 @@ <div id="page"> <div class="container"> - <section id="main"> + <div id="main"> <div id="main-content"> <div class="record-control"> <div class="header"> @@ -30,72 +30,71 @@ <div class="entry"> <div class="modal-body"> <div class="wizard-container"><div> - <div class="inputs"> - <div id="form_area"> - <form id="prescription-form" onsubmit="submitForm(event)"> - <input id="id" name="id" type="hidden" value="{$data.id}"> + <div class="inputs"> + <div id="form_area"> + <form id="prescription-form" onsubmit="submitForm(event)"> + <input id="id" name="id" type="hidden" value="{$data.id}"> - <div class="row"> </div> + <div class="row"> </div> - <div class="row"> - <label for="name">药方名称<font color='red'>*</font>:</label> - <input type="text" id="name" name="name" maxlength="" style="width:280px" value="{$data.name}"> - </div> + <div class="row"> + <label for="name">药方名称<font color='red'>*</font>:</label> + <input type="text" id="name" name="name" maxlength="" style="width:280px" value="{$data.name}"> + </div> - <div class="row"> </div> + <div class="row"> </div> - <div class="row"> - <label for="source">药方来源<font color='red'>*</font>:</label> - <input type="text" id="source" name="source" maxlength="" style="width:280px" value="{if $data.source}{$data.source}{else}伤寒杂病论{/if}"> - </div> + <div class="row"> + <label for="source">药方来源<font color='red'>*</font>:</label> + <input type="text" id="source" name="source" maxlength="" style="width:280px" value="{if $data.source}{$data.source}{else}伤寒杂病论{/if}"> + </div> - <div class="row"> </div> + <div class="row"> </div> - <div class="row"> - <label for="method">用法<font color='red'></font>:</label> - <textarea rows="3" cols="80" id="method" name="method">{$data.method}</textarea> - </div> + <div class="row"> + <label for="method">用法<font color='red'></font>:</label> + <textarea rows="3" cols="80" id="method" name="method">{$data.method}</textarea> + </div> - <div class="row"> </div> + <div class="row"> </div> - <div class="row" style="position:relative;"> - <label>药材<font color='red'>*</font>:</label> - <button class="add-button" type="button" onclick="addIngredient()">+</button> - </div> + <div class="row" style="position:relative;"> + <label>药材<font color='red'>*</font>:</label> + <button class="add-button" type="button" onclick="addIngredient()">+</button> + </div> - <div id="ingredient-list" class="row"> - {foreach from=$data.formula key=key item=item} - <div class="row"> - <label> </label> - <div class="herb_input"> - <input type="text" name="herb_name[]" value="{$item.name}" placeholder="药材名" required/> - <input type="text" name="herb_desc[]" value="{$item.desc}" placeholder="炮制方法"/> - <input type="text" name="herb_num[]" value="{$item.num_str}" - placeholder="用量" required/> + <div id="ingredient-list" class="row"> + {foreach from=$data.formula key=key item=item} + <div class="row"> + <label> </label> + <div class="herb_input"> + <input type="text" name="herb_name[]" value="{$item.name}" placeholder="药材名" required/> + <input type="text" name="herb_desc[]" value="{$item.desc}" placeholder="炮制方法"/> + <input type="text" name="herb_num[]" value="{$item.num_str}" + placeholder="用量" required/> <!-- /--> <!-- <input style="width: 80px" type="text" value="{$item.num}克" disabled/>--> - <button class="" type="button" onclick="removeIngredient(this)">X</button> - </div> + <button class="" type="button" onclick="removeIngredient(this)">X</button> </div> - {/foreach} - </div> + {/foreach} - <div class="row"> </div> + </div> - <div class="row" id="" style="position:relative;"> - <label> </label> + <div class="row"> </div> - <button class="button primary next submitlock" id="submitbtn" onclick="submitForm()"><span class="tdesc_text" style="color:white;">提交</span></button> - </div> + <div class="row" id="" style="position:relative;"> + <label> </label> + + <button class="button primary next submitlock" id="submitbtn" onclick="submitForm()"><span class="tdesc_text" style="color:white;">提交</span></button> + </div> - <div class="row"> </div> - </form> - </div> + <div class="row"> </div> + </form> </div> </div> - </div></div> + </div> <div style="display: none;" id="formtips"> <div class="alert-message block-message info" style="color:red;"></div> </div> @@ -104,7 +103,8 @@ </div> <!-- 批量上传 <div id="onetickupload"></div> --> </div> - </section> + </div> + <textarea cols="300" rows="30" style="margin-top: 20px"></textarea> <!--end of main section--> </div><!--end of container--> </div><!--end of #page-->