當前位置: 首頁>>代碼示例>>PHP>>正文


PHP tpl_form_field_daterange函數代碼示例

本文整理匯總了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;未經允許,請勿轉載。