123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- <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">{:__('Name')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Phone')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-phone" data-rule="required" class="form-control" name="row[phone]" 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" data-rule="required" 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">{:__('Birth')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-birth" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[birth]" type="text" value="{:date('Y-m-d')}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="input-group">
- <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
- <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
- </div>
- <span class="msg-box n-right" for="c-image"></span>
- </div>
- <ul class="row list-inline faupload-preview" id="p-image"></ul>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Certificateimage')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="input-group">
- <input id="c-certificateimage" class="form-control" size="50" name="row[certificateimage]" type="text">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="faupload-certificateimage" class="btn btn-danger faupload" data-input-id="c-certificateimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-certificateimage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
- <span><button type="button" id="fachoose-certificateimage" class="btn btn-primary fachoose" data-input-id="c-certificateimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
- </div>
- <span class="msg-box n-right" for="c-certificateimage"></span>
- </div>
- <ul class="row list-inline faupload-preview" id="p-certificateimage"></ul>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-email" class="form-control" name="row[email]" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-address" data-rule="required" class="form-control" name="row[address]" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Work')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-work" class="form-control" name="row[work]" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Specialty')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-specialty" data-rule="required" class="form-control" name="row[specialty]" 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">
- <input id="c-education" class="form-control" name="row[education]" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Is_vol')}:</label>
- <div class="col-xs-12 col-sm-8">
-
- <select id="c-is_vol" data-rule="required" class="form-control selectpicker" name="row[is_vol]">
- {foreach name="isVolList" 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">{:__('Is_experience')}:</label>
- <div class="col-xs-12 col-sm-8">
-
- <select id="c-is_experience" data-rule="required" class="form-control selectpicker" name="row[is_experience]">
- {foreach name="isExperienceList" 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">{:__('Start_hour')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-start_hour" data-rule="required" class="form-control" name="row[start_hour]" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('End_hour')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-end_hour" data-rule="required" class="form-control" name="row[end_hour]" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Work_week')}:</label>
- <div class="col-xs-12 col-sm-8">
-
- <select id="c-work_week" data-rule="required" class="form-control selectpicker" multiple="" name="row[work_week][]">
- {foreach name="workWeekList" item="vo"}
- <option value="{$key}" {in name="key" value="1,2,3,4,5,6,7"}selected{/in}>{$vo}</option>
- {/foreach}
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Taste')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-taste" data-rule="required" class="form-control" name="row[taste]" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Taste_title')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-taste_title" class="form-control" name="row[taste_title]" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Speciali')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-speciali" data-rule="required" class="form-control" name="row[speciali]" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Speciali_title')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-speciali_title" class="form-control" name="row[speciali_title]" 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="0"}checked{/in} /> {$vo}</label>
- {/foreach}
- </div>
- </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>
|