widget.html
1.0 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
40
41
42
43
44
45
46
47
48
49
<div class="well well-warning" style="display: inline-block;">
<h2>ThinkCMF插件演示</h2>
<p>
<b>主页:</b><a href ="{:cmf_plugin_url('Demo://Index/index')}" target="_blank" >访问</a>
</p>
<p>
<b>后台管理:</b><a href ="{:cmf_plugin_url('Demo://AdminIndex/index')}" target="_blank" >访问</a>
</p>
<p>
<b>插件根目录:</b>__PLUGIN_ROOT__
</p>
<p>
<b>插件模板根目录:</b>__PLUGIN_TMPL__
</p>
<p>
<b>文本:</b>{$text}
</p>
<p>
<b>密码:</b>{$password}
</p>
<php> $select_options=array( '1'=>'ThinkCMFX', '2'=>'ThinkCMF',
'3'=>'跟猫玩糗事', '4'=>'门户应用' ); </php>
<p>
<b>下拉列表:</b>{$select_options[$select]}
</p>
<php> $checkbox_options=array( '1'=>'genmaowan.com',
'2'=>'www.thinkcmf.com', ); </php>
<p>
<b>多选框:</b>
<foreach name='checkbox' item="vo">{$checkbox_options[$vo]}</foreach>
</p>
<php> $radio_options=array( '1'=>'ThinkCMFX', '2'=>'ThinkCMF' );
</php>
<p>
<b>单选框:</b>{$radio_options[$radio]}
</p>
<p>
<b>多行文本:</b>{$textarea}
</p>
</div>