修改电话小号管理错误

dev
曾超新 5 years ago
parent 73dc8edec5
commit bbcd5af6e4
  1. 12
      frontend/views/phone-center/edit.php
  2. 8
      frontend/views/phone-center/sub-edit.php
  3. 6
      frontend/views/phone-center/sub-index.php

@ -11,12 +11,12 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="id" value="<?=$info->id?>"> <input type="hidden" name="id" value="<?=$info->id?>">
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">人员名称</label> <label class="col-sm-1 control-label">人员名称</label>
<div class="col-md-6"> <div class="col-sm-6">
<select name="user_id" id="user_id" class="form-control"> <select name="user_id" id="user_id" class="form-control">
<?php <?php
@ -32,14 +32,14 @@ use \common\libs\MyLib;
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">电话号码</label> <label class="col-sm-1 control-label">电话号码</label>
<div class="col-md-6"> <div class="col-sm-6">
<input type="text" class="form-control" name="phone" id="phone" value="<?=$info->phone?>"> <input type="text" class="form-control" name="phone" id="phone" value="<?=$info->phone?>">
</div> </div>
</div> </div>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-5"> <div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-save" type="button"> <button class="btn btn-primary btn-save" type="button">
<strong>提 交</strong> <strong>提 交</strong>
</button> </button>

@ -11,18 +11,18 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm"> <form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="assign_id" value="<?=$assign_id?>"> <input type="hidden" name="assign_id" value="<?=$assign_id?>">
<div class="form-group"> <div class="form-group">
<label class="col-md-1 control-label">电话号码</label> <label class="col-sm-1 control-label">电话号码</label>
<div class="col-md-6"> <div class="col-sm-6">
<input type="text" name="phone" value="" class="form-control"> <input type="text" name="phone" value="" class="form-control">
</div> </div>
</div> </div>
<div> <div>
<div class="row"> <div class="row">
<div class="col-md-5 col-md-offset-5"> <div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-save" type="button"> <button class="btn btn-primary btn-save" type="button">
<strong>保存</strong> <strong>保存</strong>
</button> </button>

@ -23,7 +23,7 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-sm-12">
<table id="listTable"> <table id="listTable">
<thead> <thead>
<tr> <tr>
@ -58,10 +58,10 @@ use \common\libs\MyLib;
} }
function create() { function create() {
title = '新增小号'; title = '新增小号';
layer_show(title, '/phone-center/sub-edit?assign_id=<?=$assign_info-id?>'); layer_show(title, '/phone-center/sub-edit?assign_id=<?=$assign_info->id?>');
} }
function link(id) { function link(id) {
$.get('/phone/ax-init',{id:id,assign_id:<?=$assign_info-id?>},function(obj){ $.get('/phone/ax-init',{id:id,assign_id:<?=$assign_info->id?>},function(obj){
parent.layer.msg(obj.msg); parent.layer.msg(obj.msg);
},'json'); },'json');

Loading…
Cancel
Save