widget.html 1.0 KB
<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>