本文整理汇总了PHP中tpl_form_field_daterange函数的典型用法代码示例。如果您正苦于以下问题:PHP tpl_form_field_daterange函数的具体用法?PHP tpl_form_field_daterange怎么用?PHP tpl_form_field_daterange使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tpl_form_field_daterange函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: tpl_form_field_daterange
<div class="form-group">
<label class="col-xs-12 col-sm-3 col-md-2 control-label">投票限制</label>
<div class="col-sm-2 col-xs-12">
<label class="radio-inline">
<input type="radio" name="votelimit" value="0" <?php
if ($reply['votelimit'] == 0) {
?>
checked="checked"<?php
}
?>
/>时间限制
</label>
</div>
<div class="col-sm-3">
<?php
echo tpl_form_field_daterange('datelimit', array('starttime' => date('Y-m-dH:i', $reply['starttime']), 'endtime' => date('Y-m-d H:i', $reply['endtime'])), array('time' => true));
?>
</div>
</div>
<div class="form-group">
<label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
<div class="col-sm-2">
<label class="radio-inline">
<input type="radio" name="votelimit" value="1" <?php
if ($reply['votelimit'] == 1) {
?>
checked="checked"<?php
}
?>
/>人数限制
</label>
开发者ID:nsoff,项目名称:wdlcms,代码行数:31,代码来源:2_form.tpl.php
示例2: url
?>
><a href="<?php
echo url('mc/creditmanage/stat', array('uid' => $uid, type => -1));
?>
">昨日</a></li>
<form class="navbar-form navbar-left" role="search" id="form1">
<input name="c" value="mc" type="hidden" />
<input name="a" value="creditmanage" type="hidden" />
<input name="do" value="stat" type="hidden" />
<input name="uid" value="<?php
echo $uid;
?>
" type="hidden" />
<?php
echo tpl_form_field_daterange('datelimit', array('start' => date('Y-m-d', $starttime), 'end' => date('Y-m-d', $endtime)), '');
?>
</form>
</ul>
</div>
</nav>
<div class="account-stat">
<div class="account-stat-btn">
<?php
if (is_array($creditnames)) {
foreach ($creditnames as $key => $li) {
?>
<div>
<strong><?php
echo $li['title'];
?>
开发者ID:nsoff,项目名称:wdlcms,代码行数:31,代码来源:credit_record.tpl.php
示例3: tpl_form_field_daterange
?>
<div class="panel panel-info">
<div class="panel-heading">筛选</div>
<div class="panel-body">
<form action="./index.php" method="get" class="form-horizontal" role="form">
<input type="hidden" name="c" value="system">
<input type="hidden" name="a" value="logs">
<input type="hidden" name="do" value="<?php
echo $do;
?>
">
<div class="form-group">
<label class="col-xs-12 col-sm-3 col-md-2 col-lg-1 control-label">日期范围</label>
<div class="col-sm-6 col-lg-8 col-xs-12">
<?php
echo tpl_form_field_daterange('time', array('starttime' => $_GPC['time']['start'], 'endtime' => $_GPC['time']['end']));
?>
</div>
<div class="pull-right col-xs-12 col-sm-1 col-lg-2">
<button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
</div>
</div>
</form>
</div>
</div>
<?php
}
?>
<!-- 微信日志 -->
<?php
开发者ID:6662680,项目名称:qday_wx,代码行数:31,代码来源:logs.tpl.php
示例4: tpl_form_field_daterange
<div class="panel panel-info">
<div class="panel-heading">筛选</div>
<div class="panel-body">
<form action="" method="post" class="form-horizontal" role="form">
<div class="form-group">
<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">画报名称</label>
<div class="col-sm-4">
<input class="form-control" name="keyword" id="" type="keyword" value="<?php
echo $_GPC['keyword'];
?>
">
</div>
<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">生成时间</label>
<div class="col-sm-4">
<?php
echo tpl_form_field_daterange('createtime', array('start' => date('Y-m-d', $c_s), 'end' => date('Y-m-d', $c_e)), false);
?>
</div>
</div>
<div class="form_group">
<input type="submit" class="btn btn-primary" name="submit" value="提交" />
<input name="token" type="hidden" value="<?php
echo $_W['token'];
?>
" />
</div>
</form>
</div>
</div>
<div style="padding:15px;">
开发者ID:nsoff,项目名称:wdlcms,代码行数:31,代码来源:2_list.tpl.php
示例5: tpl_form_field_color
</div>
</div>
<div class="form-group system-icon">
<label class="col-xs-12 col-sm-3 col-md-2 control-label">背景颜色</label>
<div class="col-sm-9 col-xs-12">
<?php
echo tpl_form_field_color('bgcolor', $subject['bgcolor']);
?>
<span class="help-block">图标颜色,上传图标时此设置项无效</span>
</div>
</div>
<!--<div class="form-group">
<label class="col-xs-12 col-sm-3 col-md-2 control-label">活动时间</label>
<div class="col-sm-9 col-xs-12">
<?php
echo tpl_form_field_daterange('datelimit', array('starttime' => $subject['starttime'], 'endtime' => $subject['endtime']), true);
?>
</div>
</div>-->
<div class="form-group">
<label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">活动图片</label>
<div class="col-sm-8 col-xs-12">
<?php
echo tpl_form_field_image('logo', $subject['logo']);
?>
</div>
</div>
<div class="form-group">
<label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
<div class="col-sm-9 col-xs-12">
<div class="help-block">LOGO图片,建议222*45,透明白字(参考xhw_picvote文件夹下的logo.png)</div>
开发者ID:nsoff,项目名称:wdlcms,代码行数:31,代码来源:2_addproject.tpl.php
示例6: tpl_form_field_daterange
<span class="help-block"></span>
</td>
</tr>
<tr>
<th>简介</th>
<td>
<textarea style="height:200px;" class="span7" name="txt" cols="70" id="reply-add-text"><?php
echo $item['txt'];
?>
</textarea>
</td>
</tr>
<tr>
<th>活动时限</th>
<td><?php
echo tpl_form_field_daterange('timerange', $timerange);
?>
</td>
</tr>
<tr>
<th></th>
<td>
<button type="submit" class="btn btn-primary span3" name="submit" value="提交">提交</button>
<input type="hidden" name="token" value="<?php
echo $_W['token'];
?>
" />
</td>
</tr>
</table>
</form>
开发者ID:alextiannus,项目名称:wormwood_wechat,代码行数:31,代码来源:partyit.tpl.php
示例7: tpl_form_field_daterange
?>
</p>
<input name="type" type="hidden" value="<?php
echo $activity['type'];
?>
" />
</div>
</div>
<?php
}
?>
<div class="form-group">
<label class="col-xs-12 col-sm-3 col-md-2 control-label">活动时间</label>
<div class="col-sm-9 col-xs-12">
<?php
echo tpl_form_field_daterange('time', $time, true);
?>
<span class="help-block">活动的时间范围, 其他时间活动将不能访问</span>
</div>
</div>
<div class="form-group">
<label class="col-xs-12 col-sm-3 col-md-2 control-label">活动规则说明</label>
<div class="col-sm-9 col-xs-12">
<textarea style="height:150px;" class="richtext-clone" name="rules"><?php
echo $activity['rules'];
?>
</textarea>
<span class="help-block">详细说明活动参与规则</span>
</div>
<script type="text/javascript">
require(['jquery', 'util'],function($, util){
开发者ID:nsoff,项目名称:wdlcms,代码行数:31,代码来源:2_activity-form.tpl.php
示例8: tpl_form_field_daterange
<table>
<tr>
<th><span class="red">*</span>投票限制</th>
<td>
<label class="radio inline" style='margin-right:10px;margin-top:5px;'>
<input type="radio" name="votelimit" value="0" <?php
if ($reply['votelimit'] == 0) {
?>
checked="checked"<?php
}
?>
/>
时间限制
</label>
<?php
echo tpl_form_field_daterange('datelimit', array('starttime' => $reply['starttime'], 'endtime' => $reply['endtime']), array('time' => true));
?>
</td>
</tr>
<tr>
<th></th>
<td>
<label class="radio inline">
<input type="radio" name="votelimit" value="1" <?php
if ($reply['votelimit'] == 1) {
?>
checked="checked"<?php
}
?>
/>
人数限制
开发者ID:alextiannus,项目名称:wormwood_wechat,代码行数:31,代码来源:form.tpl.php
示例9: tpl_form_field_daterange
</div>
<div class="form-group">
<label class="col-xs-12 col-sm-3 col-md-2 control-label">活动简介</label>
<div class="col-sm-9">
<textarea class="form-control" name="description"><?php
echo $reply['description'];
?>
</textarea>
<div class="help-block">图文消息的简介</div>
</div>
</div>
<div class="form-group">
<label class="col-xs-12 col-sm-3 col-md-2 control-label">活动时间</label>
<div class="col-sm-4">
<?php
echo tpl_form_field_daterange('time', array('start' => date('Y-m-d H:i:s', $reply['starttime']), 'end' => date('Y-m-d H:i:s', $reply['endtime'])), true);
?>
<div class="help-block">输入活动的起止时间</div>
</div>
</div>
<div class="form-group">
<label class="col-xs-12 col-sm-3 col-md-2 control-label">活动状态</label>
<div class="col-sm-2">
<label><input type="radio" value="0" name="status" <?php
if ($reply['status'] == 0) {
?>
checked<?php
}
?>
>结束</label>
<label><input type="radio" value="1" name="status" <?php
开发者ID:nsoff,项目名称:wdlcms,代码行数:31,代码来源:3_form.tpl.php
示例10: formatForm
private function formatForm($field, $value = '')
{
$html = '';
$type = $field['bind'];
$name = $field['variable'];
switch ($type) {
case 'number':
$html = '<input type="text" class="' . (defined('IN_MOBILE') ? 'form-control' : 'span5') . '" name="' . $name . '" value="' . $value . '" />';
break;
case 'title':
case 'text':
$html = '<input type="text" class="' . (defined('IN_MOBILE') ? 'form-control' : 'span5') . '" name="' . $name . '" value="' . $value . '" />';
break;
case 'textarea':
$html = '<textarea class="' . (defined('IN_MOBILE') ? 'form-control' : 'span5') . '" name="' . $name . '" rows="3">' . $value . '</textarea>';
break;
case 'radio':
case 'select':
if (!empty($field['options'])) {
$field['options'] = str_replace(',', ',', $field['options']);
}
$options = explode(',', $field['options']);
$html = '<select name="' . $name . '">';
if (!empty($options)) {
foreach ($options as $val) {
$html .= '<option value="' . $val . '" ' . ($val == $value ? 'selected="selected"' : '') . '>' . $val . '</option>';
}
}
$html .= '</select>';
break;
case 'checkbox':
if (!empty($field['options'])) {
$field['options'] = str_replace(',', ',', $field['options']);
}
$options = explode(',', $field['options']);
if (!empty($options)) {
foreach ($options as $val) {
$html .= '<label class="checkbox inline"><input type="checkbox" name="' . $name . '[]" value="' . $val . '" ' . ($val == $value ? 'checked' : '') . ' />' . $val . '</label>';
}
}
break;
case 'calendarrange':
$html = tpl_form_field_daterange($name, $value);
break;
case 'calendar':
$html = tpl_form_field_date($name, $value);
break;
case 'image':
$html = tpl_form_field_image($name, $value);
break;
}
if (!empty($row['description'])) {
$html .= '<span class="help-block">' . urldecode($row['description']) . '</span>';
}
return $html;
}
开发者ID:alextiannus,项目名称:wormwood_wechat,代码行数:56,代码来源:site.php
示例11: tpl_form_field_daterange
</td>
</tr>
<tr>
<th><label for="">名称</label></th>
<td>
<input type="text" name="title" class="span5" value="<?php
echo $item['title'];
?>
" />
</td>
</tr>
<tr>
<th><label for="">使用期限</label></th>
<td>
<?php
echo tpl_form_field_daterange('datelimit', array(), '');
?>
</td>
</tr>
<tr>
<th><label for="">类型</label></th>
<td>
<div class="append-inline">
<?php
if (is_array($type)) {
foreach ($type as $i => $row) {
?>
<label for="isshow<?php
echo $i;
?>
" class="radio inline"><input type="radio" name="type" value="<?php
开发者ID:alextiannus,项目名称:wormwood_wechat,代码行数:31,代码来源:coupon.tpl.php
示例12: tpl_form_field_daterange
?>
>不搜索
</label>
<label class='radio-inline'>
<input type='radio' value='1' name='searchtime' <?php
if ($_GPC['searchtime'] == '1') {
?>
checked<?php
}
?>
>搜索
</label>
</div>
<div class="col-sm-7 col-lg-9 col-xs-12">
<?php
echo tpl_form_field_daterange('time', array('starttime' => date('Y-m-d H:i', $starttime), 'endtime' => date('Y-m-d H:i', $endtime)), true);
?>
</div>
</div>
<div class="form-group">
<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
<div class="col-sm-7 col-lg-9 col-xs-12">
<button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
<input type="hidden" name="token" value="<?php
echo $_W['token'];
?>
" />
<?php
if (cv('member.member.export')) {
?>
开发者ID:ChainBoy,项目名称:wxfx,代码行数:31,代码来源:list.tpl.php
注:本文中的tpl_form_field_daterange函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论