index.html 2.2 KB
<include file="public@header" />
</head>
<body>
  <table class="table table-bordered" style="margin:10px 10px;">
    <caption>地图管理</caption>
    <thead>
      <tr>
        <th>公司名称</th>
        <th>经度</th>
        <th>纬度</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>{$data.name}</td>
        <td>{$data.jingdu}</td>
        <td>{$data.weidu}</td>
        <td><button type="button" class="btn btn-default" data-toggle="modal" data-target="#myModal">编辑</button></td>
      </tr>
    </tbody>
  </table>


  <!-- 编辑模态框(Modal) -->
  <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
      <div class="modal-dialog">
          <div class="modal-content">
              <div class="modal-header">
                  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                  <h4 class="modal-title" id="myModalLabel">地图编辑</h4>
              </div>
              <div class="modal-body">

                  <div style="padding: 30px 100px 10px;">
                      <div class="input-group">
                        <span class="input-group-addon">公司名称:</span>
                        <input type="text" class="form-control" name="name">
                      </div>
                      <br>
                    <div class="input-group">
                        <span class="input-group-addon">经度:</span>
                        <input type="text" class="form-control" name="jingdu">
                    </div>
                    <br>
                    <div class="input-group">
                        <span class="input-group-addon">纬度:</span>
                        <input type="text" class="form-control" name="weidu">
                    </div>
                    <br>
                  </div>

              </div>
              <div class="modal-footer">
                  <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                  <button type="button" class="btn btn-primary">提交更改</button>
              </div>
          </div>
      </div>
  </div>


</body>
</html>