当前位置: 首页>>代码示例>>PHP>>正文


PHP dcalendar函数代码示例

本文整理汇总了PHP中dcalendar函数的典型用法代码示例。如果您正苦于以下问题:PHP dcalendar函数的具体用法?PHP dcalendar怎么用?PHP dcalendar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了dcalendar函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: dcalendar

<tr>
<td>
&nbsp;
<?php 
echo $fields_select;
?>
&nbsp;
<input type="text" size="20" name="kw" value="<?php 
echo $kw;
?>
"/>&nbsp;
<?php 
echo dcalendar('fromtime', $fromtime);
?>
 至 <?php 
echo dcalendar('totime', $totime);
?>
&nbsp;
<select name="type">
<option value="0">结果</option>
<option value="1" <?php 
if ($type == 1) {
    echo 'selected';
}
?>
>成功</option>
<option value="2" <?php 
if ($type == 2) {
    echo 'selected';
}
?>
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:sendmail_record.tpl.php

示例2: dcalendar

    echo 'selected';
}
?>
>更新日期</option>
<option value="addtime" <?php 
if ($datetype == 'addtime') {
    echo 'selected';
}
?>
>发布日期</option>
</select>&nbsp;
<?php 
echo dcalendar('fromdate', $fromdate, '');
?>
 至 <?php 
echo dcalendar('todate', $todate, '');
?>
&nbsp;
<?php 
echo $_admin == 1 ? category_select('catid', '不限分类', $catid, $moduleid) : ajax_category_select('catid', '不限分类', $catid, $moduleid);
?>
&nbsp;
<?php 
echo $DT['city'] ? ajax_area_select('areaid', '不限地区', $areaid) . '&nbsp;' : '';
?>
ID:<input type="text" size="4" name="itemid" value="<?php 
echo $itemid;
?>
"/>&nbsp;
</td>
</tr>
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:index.tpl.php

示例3: dstyle

?>
"/> <?php 
echo dstyle('post[style]', $style);
?>
&nbsp; <?php 
echo level_select('post[level]', '级别', $level);
?>
 <span id="dtitle" class="f_red"></span></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 投票有效期</td>
<td><?php 
echo dcalendar('post[fromtime]', $fromtime);
?>
 至 <?php 
echo dcalendar('post[totime]', $totime);
?>
 <?php 
echo tips('不填表示不限时间');
?>
</td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 链接至</td>
<td><input name="post[linkto]" type="text" id="linkto" size="50" value="<?php 
echo $linkto;
?>
"/></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 投票说明</td>
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:vote_edit.tpl.php

示例4: dcalendar

<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<td>&nbsp;
<?php 
echo $fields_select;
?>
&nbsp;
<input type="text" size="20" name="kw" value="<?php 
echo $kw;
?>
" title="关键词"/>&nbsp;
<?php 
echo dcalendar('fromdate', $fromdate);
?>
 至 <?php 
echo dcalendar('todate', $todate);
?>
&nbsp;
<select name="admin">
<option value="-1" <?php 
echo $admin == -1 ? 'selected' : '';
?>
>后台</option>
<option value="1" <?php 
echo $admin == 1 ? 'selected' : '';
?>
>是</option>
<option value="0" <?php 
echo $admin == 0 ? 'selected' : '';
?>
>否</option>
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:loginlog.tpl.php

示例5: dcalendar

<td>
<input type="radio" value="0" name="message[status]" checked="checked"/> 全部
<input type="radio" value="3" name="message[status]" /> 收件箱
<input type="radio" value="2" name="message[status]" /> 已发送
<input type="radio" value="1" name="message[status]" /> 草稿箱
<input type="radio" value="4" name="message[status]" /> 回收站
</td>
</tr>
<tr>
<td class="tl">日期范围</td>
<td>
<?php 
echo dcalendar('message[fromdate]');
?>
 至 <?php 
echo dcalendar('message[todate]', $todate);
?>
 不指定表示不限
</td>
</tr>
<tr>
<td class="tl">选项</td>
<td>
<input type="checkbox" value="1" name="message[isread]" checked="checked"/> 保留未读信件
</td>
</tr>
</tbody>
</table>
<div class="sbt"><input type="submit" name="submit" value=" 清 理 " class="btn" onclick="if(!confirm('确定要清理吗?此操作将不可撤销')) return false;">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="reset" value=" 重 置 " class="btn"/></div>
</form>
<script type="text/javascript">Menuon(4);</script>
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:message_clear.tpl.php

示例6: Dd

    ?>
, Dd('upload').value, 'upload');" class="jt">[上传]</span>&nbsp;&nbsp;<span onclick="if(Dd('upload').value) window.open(Dd('upload').value);" class="jt">[预览]</span>&nbsp;&nbsp;<span onclick="Dd('upload').value='';" class="jt">[删除]</span><?php 
    tips('从这里上传文件后,把地址复制到代码里即可使用');
    ?>
</td>
</tr>
<?php 
}
?>
<tr>
<td class="tl"><span class="f_red">*</span> 投放时段</td>
<td><?php 
echo dcalendar('ad[fromtime]', $fromtime);
?>
 至 <?php 
echo dcalendar('ad[totime]', $totime);
?>
&nbsp;
<select onchange="Dd('adtotime').value=this.value;">
<option value="">快捷选择</option>
<?php 
$FTIME = strtotime($fromtime);
?>
<option value="<?php 
echo timetodate($FTIME + 86400 * 7, 3);
?>
">一周</option>
<option value="<?php 
echo timetodate($FTIME + 86400 * 15, 3);
?>
">半月</option>
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:ad_edit.tpl.php

示例7: dcalendar

    echo 'selected';
}
?>
>开通时间</option>
<option value="totime" <?php 
if ($timetype == 'totime') {
    echo 'selected';
}
?>
>到期时间</option>
</select>&nbsp;
<?php 
echo dcalendar('dfromtime', $dfromtime);
?>
 至 <?php 
echo dcalendar('dtotime', $dtotime);
?>
&nbsp;

<select name="vip">
<option value="0"><?php 
echo VIP;
?>
指数</option>
<?php 
for ($i = 1; $i < 11; $i++) {
    echo '<option value="' . $i . '"' . ($i == $vip ? ' selected' : '') . '>' . $i . ' 级</option>';
}
?>
</select>&nbsp;
理论值:<input type="text" name="vipt" value="<?php 
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:vip.tpl.php

示例8: dcalendar

}
?>
/> 否
</td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 认证名称或机构</td>
<td><input type="text" name="vip[validator]" size="30" value="<?php 
echo $validator;
?>
"/></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 认证日期</td>
<td><?php 
echo dcalendar('vip[validtime]', $validtime);
?>
</td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> <?php 
echo VIP;
?>
指数修正值</td>
<td><input type="text" name="vip[vipr]" size="2" value="<?php 
echo $vipr;
?>
"/></td>
</tr>
</table>
<div class="sbt"><input type="submit" name="submit" value=" 确 定 " class="btn">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="reset" value=" 重 置 " class="btn"/></div>
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:vip_edit.tpl.php

示例9: tips

tips('一般由第三方认证机构或网站对会员总体资料的认证');
?>
<a name="vv"></a>
</td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 认证名称或机构</td>
<td><input type="text" name="member[validator]" size="30" value="<?php 
echo $validator;
?>
"/></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 认证日期</td>
<td><?php 
echo dcalendar('member[validtime]', $validtime);
?>
</td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 邮件认证</td>
<td>
<input type="radio" name="member[vemail]" value="1" <?php 
if ($vemail) {
    echo 'checked';
}
?>
/> 是&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="member[vemail]" value="0" <?php 
if (!$vemail) {
    echo 'checked';
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:member_edit.tpl.php

示例10: Dd

    ?>
, Dd('upload').value, 'upload');" class="jt">[上传]</span>&nbsp;&nbsp;<span onclick="if(Dd('upload').value) window.open(Dd('upload').value);" class="jt">[预览]</span>&nbsp;&nbsp;<span onclick="Dd('upload').value='';" class="jt">[删除]</span><?php 
    tips('从这里上传文件后,把地址复制到代码里即可使用');
    ?>
</td>
</tr>
<?php 
}
?>
<tr>
<td class="tl"><span class="f_red">*</span> 投放时段</td>
<td><?php 
echo dcalendar('ad[fromtime]', $fromtime);
?>
 至 <?php 
echo dcalendar('ad[totime]');
?>
&nbsp;
<select onchange="Dd('adtotime').value=this.value;">
<option value="">快捷选择</option>
<?php 
$FTIME = strtotime($fromtime);
?>
<option value="<?php 
echo timetodate($FTIME + 86400 * 7, 3);
?>
">一周</option>
<option value="<?php 
echo timetodate($FTIME + 86400 * 15, 3);
?>
">半月</option>
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:ad_add.tpl.php

示例11: fields_show

function fields_show($itemid, $left = '<td class="tl">', $right = '<td>', $values = array(), $fd = array())
{
    extract($GLOBALS, EXTR_SKIP);
    if ($fd) {
        $FD = $fd;
    }
    if (!$values) {
        if (isset($item)) {
            $values = $item;
        }
        if (isset($user)) {
            $values = $user;
        }
    }
    $html = '';
    $v = $FD[$itemid];
    $value = $v['default_value'];
    if (isset($values[$v['name']])) {
        $value = $values[$v['name']];
    } else {
        if ($v['default_value']) {
            eval('$value = "' . $v['default_value'] . '";');
        }
    }
    if ($v['html'] == 'hidden') {
        $html .= '<input type="hidden" name="post_fields[' . $v['name'] . ']" id="' . $v['name'] . '" value="' . $value . '" ' . $v['addition'] . '/>';
    } else {
        $html .= '<tr>' . $left;
        if ($v['input_limit']) {
            $html .= '<span class="f_red">*</span> ';
        } else {
            $html .= defined('DT_ADMIN') ? '<span class="f_hid">*</span> ' : '';
        }
        $html .= $v['title'];
        $html .= '</td>';
        $html .= $right;
        switch ($v['html']) {
            case 'text':
                $html .= '<input type="text" name="post_fields[' . $v['name'] . ']" id="' . $v['name'] . '" value="' . $value . '" ' . $v['addition'] . '/> <span class="f_red" id="d' . $v['name'] . '"></span>';
                break;
            case 'textarea':
                $html .= '<textarea name="post_fields[' . $v['name'] . ']" id="' . $v['name'] . '" ' . $v['addition'] . '>' . $value . '</textarea> <span class="f_red" id="d' . $v['name'] . '"></span>';
                break;
            case 'select':
                if ($v['option_value']) {
                    $html .= '<select name="post_fields[' . $v['name'] . ']" id="' . $v['name'] . '" ' . $v['addition'] . '><option value="">' . $L['choose'] . '</option>';
                    $rows = explode("*", $v['option_value']);
                    foreach ($rows as $row) {
                        if ($row) {
                            $cols = explode("|", trim($row));
                            $html .= '<option value="' . $cols[0] . '"' . ($cols[0] == $value ? ' selected' : '') . '>' . $cols[1] . '</option>';
                        }
                    }
                    $html .= '</select> <span class="f_red" id="d' . $v['name'] . '"></span>';
                }
                break;
            case 'radio':
                if ($v['option_value']) {
                    $html .= '<span id="' . $v['name'] . '">';
                    $rows = explode("*", $v['option_value']);
                    foreach ($rows as $rw => $row) {
                        if ($row) {
                            $cols = explode("|", trim($row));
                            $html .= '<input type="radio" name="post_fields[' . $v['name'] . ']" value="' . $cols[0] . '" id="' . $v['name'] . '_' . $rw . '"' . ($cols[0] == $value ? ' checked' : '') . '> ' . $cols[1] . '&nbsp;&nbsp;&nbsp;';
                        }
                    }
                    $html .= '</span> <span class="f_red" id="d' . $v['name'] . '"></span>';
                }
                break;
            case 'checkbox':
                if ($v['option_value']) {
                    $html .= '<span id="' . $v['name'] . '">';
                    $value = explode(',', $value);
                    $rows = explode("*", $v['option_value']);
                    foreach ($rows as $rw => $row) {
                        if ($row) {
                            $cols = explode("|", trim($row));
                            $html .= '<input type="checkbox" name="post_fields[' . $v['name'] . '][]" value="' . $cols[0] . '" id="' . $v['name'] . '_' . $rw . '"' . (in_array($cols[0], $value) ? ' checked' : '') . '> ' . $cols[1] . '&nbsp;&nbsp;&nbsp;';
                        }
                    }
                    $html .= '</span> <span class="f_red" id="d' . $v['name'] . '"></span>';
                }
                break;
            case 'date':
                $html .= dcalendar('post_fields[' . $v['name'] . ']', $value);
                $html .= ' <span class="f_red" id="post_dfields' . $v['name'] . '"></span>';
                break;
            case 'thumb':
                $html .= '<input name="post_fields[' . $v['name'] . ']" type="text" size="60" id="' . $v['name'] . '" value="' . $value . '" ' . $v['addition'] . '/>&nbsp;&nbsp;<span onclick="Dthumb(' . $moduleid . ',' . $v['width'] . ',' . $v['height'] . ', Dd(\'' . $v['name'] . '\').value,\'' . (defined('DT_ADMIN') ? '' : '1') . '\',\'' . $v['name'] . '\');" class="jt">[' . $L['upload'] . ']</span>&nbsp;&nbsp;<span onclick="_preview(Dd(\'' . $v['name'] . '\').value);" class="jt">[' . $L['preview'] . ']</span>&nbsp;&nbsp;<span onclick="Dd(\'' . $v['name'] . '\').value=\'\';" class="jt">[' . $L['delete'] . ']</span>';
                $html .= ' <span class="f_red" id="d' . $v['name'] . '"></span>';
                break;
            case 'file':
                $html .= '<input name="post_fields[' . $v['name'] . ']" type="text" size="60" id="' . $v['name'] . '" value="' . $value . '" ' . $v['addition'] . '/>&nbsp;&nbsp;<span onclick="Dfile(' . $moduleid . ', Dd(\'' . $v['name'] . '\').value, \'' . $v['name'] . '\');" class="jt">[' . $L['upload'] . ']</span>&nbsp;&nbsp;<span onclick="if(Dd(\'' . $v['name'] . '\').value) window.open(Dd(\'' . $v['name'] . '\').value);" class="jt">[' . $L['preview'] . ']</span>';
                $html .= ' <span class="f_red" id="d' . $v['name'] . '"></span>&nbsp;&nbsp;<span onclick="Dd(\'' . $v['name'] . '\').value=\'\';" class="jt">[' . $L['delete'] . ']</span>';
                $html .= ' <span class="f_red" id="d' . $v['name'] . '"></span>';
                break;
            case 'editor':
                $toolbar = isset($group_editor) ? $group_editor : 'Destoon';
                if (DT_EDITOR == 'fckeditor') {
                    $html .= '<textarea name="post_fields[' . $v['name'] . ']" id="' . $v['name'] . '" style="display:none">' . $value . '</textarea><iframe id="' . $v['name'] . '___Frame" src="' . $MODULE[2]['linkurl'] . 'editor/fckeditor/editor/fckeditor.html?InstanceName=' . $v['name'] . '&Toolbar=' . $toolbar . '" width="' . $v['width'] . '" height="' . $v['height'] . '" frameborder="no" scrolling="no"></iframe>';
//.........这里部分代码省略.........
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:101,代码来源:fields.func.php

示例12: tpl

include tpl('header');
show_menu($menus);
?>
<div class="tt">IP禁止</div>
<form action="?" method="post">
<input type="hidden" name="file" value="<?php 
echo $file;
?>
"/>
<input type="hidden" name="action" value="add"/>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<td>&nbsp;
IP地址/段 <input type="text" size="30" name="ip"/>&nbsp;
有效期至 <?php 
echo dcalendar('todate');
?>
&nbsp;
<input type="submit" value="添 加" class="btn"/>&nbsp;
</td>
</tr>
<tr>
<td>
&nbsp;1、IP禁止仅对网站前台生效,建议不要添加过多,以免影响程序效率<br/>
&nbsp;2、支持禁用IP段,例如填192.168.*.*将禁用所有192.168开头的IP<br/>
&nbsp;3、有效期不填表示永久禁用<br/>
</td>
</tr>
</table>
</form>
<form method="post">
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:banip.tpl.php

示例13: dcalendar

<?php 
for ($i = 0; $i < 24; $i++) {
    echo '<option value="' . $i . '"' . ($i == 0 ? ' selected' : '') . '>' . ($i > 9 ? $i : '0' . $i) . '点</option>';
}
?>
</select>
&nbsp;<select name="fm">
<?php 
for ($i = 0; $i < 60; $i++) {
    echo '<option value="' . $i . '"' . ($i == 0 ? ' selected' : '') . '>' . ($i > 9 ? $i : '0' . $i) . '分</option>';
}
?>
</select>
&nbsp; 至 
&nbsp;<?php 
echo dcalendar('td', $td);
?>
&nbsp;<select name="th">
<?php 
for ($i = 0; $i < 24; $i++) {
    echo '<option value="' . $i . '"' . ($i == 23 ? ' selected' : '') . '>' . ($i > 9 ? $i : '0' . $i) . '点</option>';
}
?>
</select>
&nbsp;<select name="tm">
<?php 
for ($i = 0; $i < 60; $i++) {
    echo '<option value="' . $i . '"' . ($i == 59 ? ' selected' : '') . '>' . ($i > 9 ? $i : '0' . $i) . '分</option>';
}
?>
</select>
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:patch.tpl.php

示例14: dcalendar

</tr>
<tr>
<td class="tl"><span class="f_red">*</span> 企业资料是否通过认证</td>
<td>
<input type="radio" name="post[validated]" value="1"/> 是&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="post[validated]" value="0" checked/> 否
</td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 认证名称或机构</td>
<td><input type="text" name="post[validator]" size="30"/></td>
</tr>
<tr>
<td class="tl"><span class="f_hid">*</span> 认证日期</td>
<td><?php 
        echo dcalendar('post[validtime]', $fromtime);
        ?>
</td>
</tr>
<?php 
    }
    ?>
</tbody>
<tbody id="send" style="display:none;">
<?php 
    if ($user) {
        ?>
<tr>
<td class="tl"><span class="f_hid">*</span> 发送通知</td>
<td>
<input type="radio" name="post[message]" value="1"/> 是&nbsp;&nbsp;&nbsp;&nbsp;
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:grade_edit.tpl.php


注:本文中的dcalendar函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。