123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <form id="add-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" >
- </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="">
- </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">
- </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="0"}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="{:date('Y-m-d')}">
- </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">
- </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">
- </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="0"}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">
- <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="" 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">
- </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">
- </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">
- </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">
- </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">
- </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">
- </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="-1"}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">
- </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>
|