如图,在标题中加入加入注册时间,编号...
1.
处理 显示页面,index.html
<th style=''>门店名称</th>
换成:
<th style=''>门店名称/编号</th>
<th style="width:60px;">注册时间</th>
对应位置:
<td><p>{$row['storename']}</p>{$row['storenumber']}</td>
<td>{php echo date("Y-m-d",$row['createtime'])}<br/>{php echo date("H:i:s",$row['createtime'])}</td>
2.保存修改页面
3.新页面显示:
4.多了两个:storenumber,createtime,数据表加入.
- 处理与数据交换页面.post.html
注意:
1.如1355410530通过date('Y-m-dH:i:s',1355410530);从数据库里读出转化后为2012-12-1314:55:30。
21355410530这个数据怎么存入到数据库,这样:<?php echo $showtime=date("Y-m-d H:i:s");?>
<div class="form-group">
<label class="col-lg control-label must">门店编号</label>
<div class="col-sm-9 col-xs-12">
{ife 'storenumber' $item}
<input type="text" name="storenumber" class="form-control" value="{$item['storenumber']}"
data-rule-required="true"/>
{else}
<div class='form-control-static'>{$item['storenumber']}</div>
{/if}
</div>
</div>
<div class="form-group">
<label class="col-lg control-label must">注册时间</label>
<div class="col-sm-9 col-xs-12">
{ife 'createtime' $item}
<input type="text" name="createtime" class="form-control" value="<?php echo $showtime=date("Y-m-d H:i:s");?>"
data-rule-required="true"/>
{else}
<div class='form-control-static'>{$item['createtime']}</div>
{/if}
</div>
</div>
4.保存修改页面
5.新页面显示:新加入两行