123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- {include file="public/header" /}
- <div class="page">
- <div class="fixed-bar">
- <div class="item-title">
- <div class="subject">
- <h3>{$Think.lang.ds_chain}</h3>
- <h5></h5>
- </div>
- {include file="public/admin_items" /}
- </div>
- </div>
- <form id="chain_form" method="post" action="{:url('Chain/save_edit')}">
- <input type="hidden" name="did" value="{$chain_info.chain_id}">
- <table class="ds-default-table">
- <tbody>
- <tr class="noborder">
- <td colspan="2" class="required">{$Think.lang.chain_username}:</td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform">{$chain_info.chain_name}</td>
- <td class="vatop tips"></td>
- </tr>
- <tr>
- <td colspan="2" class="required">{$Think.lang.chain_truename}:</td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform">{$chain_info.chain_truename}</td>
- <td class="vatop tips"></td>
- </tr>
- <tr>
- <td colspan="2" class="required">{$Think.lang.chain_mob_phone}:</td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform">
- <input class="txt" type="text" name="dmobile" value="{$chain_info.chain_mobile}">
- </td>
- <td class="vatop tips"></td>
- </tr>
- <tr>
- <td colspan="2" class="required">{$Think.lang.chain_telephone}:</td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform">
- <input class="txt" type="text" name="dtelephony" value="{$chain_info.chain_telephony}">
- </td>
- <td class="vatop tips"></td>
- </tr>
- <tr>
- <td colspan="2" class="required">{$Think.lang.chain_name}:</td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform">
- <input class="txt" type="text" name="daddressname" value="{$chain_info.chain_addressname}">
- </td>
- <td class="vatop tips"></td>
- </tr>
- <tr>
- <td colspan="2" class="required">{$Think.lang.chain_region}:</td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform">{$chain_info.chain_area_info}</td>
- <td class="vatop tips"></td>
- </tr>
- <tr>
- <td colspan="2" class="required">{$Think.lang.chain_address}:</td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform">
- <input class="txt" type="text" name="daddress" value="{$chain_info.chain_address}">
- </td>
- <td class="vatop tips"></td>
- </tr>
- <tr>
- <td colspan="2" class="required">{$Think.lang.chain_idcard}:</td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform">{$chain_info.chain_idcard}</td>
- <td class="vatop tips"></td>
- </tr>
- <tr>
- <td colspan="2" class="required">{$Think.lang.chain_idcardimage}:</td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform"><a href="{:get_chain_imageurl($chain_info.chain_idcardimage)}" target="_blank"><img src="{:get_chain_imageurl($chain_info.chain_idcardimage)}"></a></td>
- <td class="vatop tips">{$Think.lang.chain_idcardimage_tips}</td>
- </tr>
- <tr>
- <td colspan="2" class="required">{$Think.lang.chain_add_time}:</td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform">{$chain_info.chain_addtime|date="Y-m-d H:i:s"}</td>
- <td class="vatop tips"></td>
- </tr>
- <tr>
- <td colspan="2" class="required">{$Think.lang.chain_passwd}:</td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform"><input type="text" class="txt" name="dpasswd"></td>
- <td class="vatop tips">{$Think.lang.chain_passwd_tips}</td>
- </tr>
- <tr>
- <td colspan="2" class="required">{$Think.lang.ds_status}:</td>
- </tr>
- <?php if (in_array($chain_info['chain_state'], array(1,2))) {?>
- <tr class="noborder">
- <td class="vatop rowform onoff">
- <label for="site_status1" class="cb-enable {if $chain_info.chain_state == '1'}selected{/if}" ><span>{$Think.lang.ds_open}</span></label>
- <label for="site_status0" class="cb-disable {if $chain_info.chain_state == '0'}selected{/if}" ><span>{$Think.lang.ds_close}</span></label>
- <input id="site_status1" name="dstate" {if $chain_info.chain_state == '1'}checked="checked"{/if} value="1" type="radio">
- <input id="site_status0" name="dstate" {if $chain_info.chain_state == '0'}checked="checked"{/if} value="0" type="radio"></td>
- <td class="vatop tips"></td>
- </tr>
- <?php } else {?>
- <tr class="noborder">
- <td class="vatop rowform onoff"><label for="site_status1" class="cb-enable selected" ><span>{$Think.lang.ds_pass}</span></label>
- <label for="site_status20" class="cb-disable" ><span>{$Think.lang.ds_fail}</span></label>
- <input id="site_status1" name="dstate" checked="checked" value="1" type="radio">
- <input id="site_status20" name="dstate" value="20" type="radio"></td>
- <td class="vatop tips"></td>
- </tr>
- <tr style="display: none;" dstype="fail_reason">
- <td colspan="2" class="required">{$Think.lang.chain_fail_reason}:</td>
- </tr>
- <tr class="noborder" style="display: none;" dstype="fail_reason">
- <td class="vatop rowform" dstype="fail_reason">
- <textarea id="fail_reason" class="tarea" rows="6" name="fail_reason"></textarea>
- </td>
- </tr>
- <?php }?>
- </tbody>
- <tfoot>
- <tr>
- <td colspan="2"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
- </tr>
- </tfoot>
- </table>
- </form>
- </div>
- <script>
- $(function(){
- $('input[name="dstate"]').change(function(){
- _val = $('input[name="dstate"]:checked').val();
- if (_val == 20) {
- $('[dstype="fail_reason"]').show();
- } else {
- $('[dstype="fail_reason"]').hide();
- }
- });
- });
- </script>
|