123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
- {eq name="admin.cid" value="0"}
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Cid')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-cid" data-rule="required" data-source="Company" data-field="company_name" class="form-control selectpage" name="row[cid]" type="text" value="{$row.cid}">
- </div>
- </div>
- {else/}
- <input id="c-cid" name="row[cid]" type="hidden" value="{$admin.cid}">
- {/eq}
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Full_name')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-full_name" class="form-control" name="row[full_name]" type="text" value="{$row.full_name|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Sex')}:</label>
- <div class="col-xs-12 col-sm-8">
-
- <select id="c-sex" class="form-control selectpicker" name="row[sex]">
- {foreach name="sexList" item="vo"}
- <option value="{$key}" {in name="key" value="$row.sex"}selected{/in}>{$vo}</option>
- {/foreach}
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Birthday')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-birthday" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[birthday]" type="text" value="{$row.birthday}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Id_card')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-id_card" class="form-control" name="row[id_card]" type="text" value="{$row.id_card|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Vocation')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-vocation" class="form-control" name="row[vocation]" type="text" value="{$row.vocation|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Education')}:</label>
- <div class="col-xs-12 col-sm-8">
-
- <select id="c-education" class="form-control selectpicker" name="row[education]">
- {foreach name="educationList" item="vo"}
- <option value="{$key}" {in name="key" value="$row.education"}selected{/in}>{$vo}</option>
- {/foreach}
- </select>
- </div>
- </div>
- <!--<div class="form-group">-->
- <!-- <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>-->
- <!-- <div class="col-xs-12 col-sm-8">-->
- <!-- <select id="c-category_ids" class="form-control selectpicker" multiple onchange="selectChange()">-->
- <!-- <option value="39" {in name="39" value="$row.category_ids"}selected{/in}>眼角膜</option>-->
- <!-- <option value="38" {in name="38" value="$row.category_ids"}selected{/in}>全部器官</option>-->
- <!-- <option value="31" {in name="31" value="$row.category_ids"}selected{/in}>肾脏</option>-->
- <!-- <option value="34" {in name="34" value="$row.category_ids"}selected{/in}>肺脏</option>-->
- <!-- <option value="32" {in name="32" value="$row.category_ids"}selected{/in}>肝脏</option>-->
- <!-- <option value="33" {in name="33" value="$row.category_ids"}selected{/in}>心脏</option>-->
- <!-- <option value="35" {in name="35" value="$row.category_ids"}selected{/in}>胰腺</option>-->
- <!-- <option value="36" {in name="36" value="$row.category_ids"}selected{/in}>小肠</option>-->
- <!-- <option value="23" {in name="23" value="$row.category_ids"}selected{/in}>遗体</option>-->
- <!-- <option value="37" {in name="37" value="$row.category_ids"}selected{/in}>其他</option>-->
-
- <!-- </select>-->
- <!-- <input style="display:none" type="text/submit/hidden/button/image" id='aaaa' name="row[category_ids]" value="" />-->
- <!-- </div>-->
- <!--</div>-->
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-category_ids" data-rule="required" data-source="category/selectpage" data-params='{"custom[type]":"donate"}' class="form-control selectpage" name="row[category_ids]" type="text" value="{$row.category_ids|htmlentities}" data-multiple="true">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Tel')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-tel" class="form-control" name="row[tel]" type="text" value="{$row.tel|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Executor')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-executor" class="form-control" name="row[executor]" type="text" value="{$row.executor|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Executor_id_card')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-executor_id_card" class="form-control" name="row[executor_id_card]" type="text" value="{$row.executor_id_card|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Executor_tel')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-executor_tel" class="form-control" name="row[executor_tel]" type="text" value="{$row.executor_tel|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Executor_mobile')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-executor_mobile" class="form-control" name="row[executor_mobile]" type="text" value="{$row.executor_mobile|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
- <div class="col-xs-12 col-sm-8">
-
- <div class="radio">
- {foreach name="statusList" item="vo"}
- <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
- {/foreach}
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Sn')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-SN" class="form-control" name="row[SN]" type="text" value="{$row.SN|htmlentities}">
- </div>
- </div>
- <div class="form-group layer-footer">
- <label class="control-label col-xs-12 col-sm-2"></label>
- <div class="col-xs-12 col-sm-8">
- <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
- </div>
- </div>
- </form>
|