research.html
1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{template 'header'}
{if $operation == 'display'}
<div class="mobile-div img-rounded">
<div class="mobile-hd" style="border-bottom:0;">我的预约</div>
{loop $rows $item}
<a class="mobile-li" href="{php echo $this->createMobileUrl('myresearch', array('id' => $item['rerid'], 'op' => 'detail'))}">
<span class="pull-right muted">{php echo date('Y-m-d H:i:s', $item['createtime'])}</span>
{$research[$item['reid']]['title']}
</a>
{/loop}
</div>
{elseif $operation == 'detail'}
<div class="mobile-div img-rounded">
<div class="mobile-hd">{$research['title']}</div>
<div class="mobile-content">{$research['content']}</div>
</div>
<div class="mobile-div img-rounded">
<div class="mobile-hd">我们的回复</div>
<div class="mobile-content">{$research['information']}</div>
</div>
<div class="mobile-div img-rounded">
<div class="mobile-hd">我的预约资料</div>
<div class="mobile-content">
<table class="form-table">
{loop $research['fields'] $item}
<tr>
<th><label>{$item['title']}</label></th>
{if $item['type'] == 'image'}
<td><a target="_blank" href="{$_W['attachurl']}{$item['data']}" class="btn">点击查看附件</a></td>
{else}
<td><span class="uneditable-input">{if !empty($item['data'])}{$item['data']}{else}无{/if}</span></td>
{/if}
</tr>
{/loop}
</table>
</div>
</div>
{/if}
{template 'footer'}