• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP todate函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: run

 public static function run()
 {
     self::$var = array('timestamp' => TIMESTAMP, 'starttime' => RUNFIRSTTIME, 'clientip' => self::_get_client_ip(), 'referer' => '', 'charset' => CHARSET, 'gzip_open' => '', 'safekey' => CONFIG('safekey'), 'timenow' => todate(TIMESTAMP), 'PHP_SELF' => htmlspecialchars(self::_get_script_url()), 'static_url' => CONFIG('static/url'), 'cookies' => array());
     self::$var['basescript'] = SA;
     self::$var['basefilename'] = basename(self::$var['PHP_SELF']);
     self::$var['siteurl'] = CONFIG('siteurl');
     self::$var['query_string'] = $_SERVER['QUERY_STRING'];
     define('SAFEKEY', self::$var['safekey']);
     define('QHASH', self::acthash());
     define('STATIC_URL', CONFIG('static/resurl'));
     self::runModel();
 }
开发者ID:knowsee,项目名称:uoke_framework,代码行数:12,代码来源:app.class.php


示例2: index

function index()
{
    global $db, $lang, $prefix;
    include "header.php";
    $result = $db->query("SELECT *\tFROM  " . $prefix . "_fares WHERE  fare_special=1 AND fare_active=1 ORDER BY fare_id");
    $tpl = new Template();
    $tpl->modTemplate("special");
    $num_record = $db->row_count($result);
    if (isset($_GET['page'])) {
        $page = intval($_GET['page']);
    } else {
        $page = 1;
    }
    $currentpage = $page;
    $perpage = 20;
    $start = ($page - 1) * $perpage;
    $pages = ceil($num_record / $perpage);
    $starting_no = $start + 1;
    if ($num_record - $start < $perpage) {
        $end_count = $num_record;
    } elseif ($num_record - $start >= $perpage) {
        $end_count = $start + $perpage;
    }
    if ($pages > 1) {
        $page_link = makepagelink("index.php?m=special", $page, $pages);
    } else {
        $page_link = "";
    }
    // Fix the problem
    $result = $db->query("SELECT *\tFROM  " . $prefix . "_fares WHERE  fare_special=1 AND fare_active=1  ORDER BY fare_id DESC\n\n\tLIMIT {$start},{$perpage}");
    $found = $db->row_count($result);
    $tpl->assign("found", $found);
    $tpl->assign("lang", $lang);
    $tpl->assign("pagelink", $page_link);
    $tpl->assign("start", $starting_no);
    $tpl->assign("end", $end_count);
    $tpl->assign("found", $found);
    $tpl->assign("currentpage", $currentpage);
    while ($row = $db->fetch_array($result)) {
        $special[] = $row;
        $tpl->assign("date", "" . todate($row[fare_purchaseby]) . "");
        $q = $db->query("SELECT * from travel_airline WHERE airline_id={$row['fare_airline']}");
        $airline = $db->fetch_array($q);
        $tpl->assign("airline", $airline);
        $tpl->assign("special", $special);
    }
    $tpl->display("specialindex.tpl");
    include "footer.php";
}
开发者ID:bogiesoft,项目名称:TravelAgentv2,代码行数:49,代码来源:index.php


示例3: todate

                ?>
</font>]<?php 
            }
            echo $vo['name'];
            ?>
</td><td><?php 
            if ($vo['logo']) {
                ?>
<img src="<?php 
                echo $vo['logo'];
                ?>
" height=26><?php 
            }
            ?>
&nbsp;</td><td align="center"><?php 
            echo todate($vo['createtime'], "Y-m-d H:i:s");
            ?>
</td><td align="center"><a href="<?php 
            echo U($module_name . '/edit', array(id => $vo['id']));
            ?>
"><?php 
            echo L('edit');
            ?>
</a> | <a href="javascript:confirm_delete('<?php 
            echo U($module_name . '/delete', array(id => $vo['id']));
            ?>
')"><?php 
            echo L('delete');
            ?>
</a></td></tr><?php 
        }
开发者ID:JavaAFei,项目名称:yun001,代码行数:31,代码来源:b22eeb0aac4b3179e059e8fef4dc2765.php


示例4: todate

            ?>
</td>
                    <td><?php 
            echo $vo['total_time'];
            ?>
</td>
                    <td><?php 
            echo $vo['cart_id'];
            ?>
</td>
                    <td><?php 
            echo todate($vo['addtime']);
            ?>
</td>
                    <td><?php 
            echo todate($vo['reach_time']);
            ?>
</td>
                   <!--  <?php 
            if ($vo["type"] == 1) {
                ?>
<td>普通需求</td>
                    <?php 
            } elseif ($vo["type"] == 3) {
                ?>
                    <td>保养需求</td>
                    <?php 
            } else {
                ?>
                		    未知错误<?php 
            }
开发者ID:sayi21cn,项目名称:CarService-ServerSide,代码行数:31,代码来源:18bc66a7b6334412ab8e61a2539ecfbd.php


示例5: foreach

				<?php 
if (is_array($signlist)) {
    $i = 0;
    $__LIST__ = $signlist;
    if (count($__LIST__) == 0) {
        echo "";
    } else {
        foreach ($__LIST__ as $key => $vosign) {
            $mod = $i % 2;
            ++$i;
            ?>
&lt; <?php 
            echo $vosign["user_name"];
            ?>
 <?php 
            echo todate($vosign["sign_time"], 'Y-m-d H:i');
            ?>
 &gt;<?php 
        }
    }
} else {
    echo "";
}
?>
            
			</div>
		</div>
	</div>
    <!--增加签收-->
</form>
<div class="text-center">
开发者ID:2ger,项目名称:trunk,代码行数:31,代码来源:ddcdb6a2e50ea6ec62c77a9e7536be37.php


示例6: todate

            if ($auth['write']) {
                ?>
<label class="inline pull-left col-3">
								<input class="ace" type="checkbox" name="id[]" value="<?php 
                echo $vo["id"];
                ?>
" />
								<span class="lbl"></span></label><?php 
            }
            ?>
							<span class="col-10"> <?php 
            echo $vo["notice_no"];
            ?>
 </span>
							<span class="col-10 pull-right text-center"> <?php 
            echo todate($vo["create_time"], 'Y-m-d');
            ?>
 </span>
							<span class="col-6 pull-right text-center"> <?php 
            echo $vo["user_name"];
            ?>
 </span>
							<div class="auto">
								<a href="<?php 
            echo U('read?id=' . $vo['id']);
            ?>
" ><?php 
            echo $vo["name"];
            ?>
								<?php 
            if (strlen($vo["name"]) == "0") {
开发者ID:TipTimesPHP,项目名称:tyj_oa_cp,代码行数:31,代码来源:f44a0387bb7311adab494dde8ca428e1.php


示例7: getstatus

            ?>
</td>
                    <td><?php 
            echo getstatus($vo['effect']);
            ?>
</td>
                    <td><?php 
            echo getstatus($vo['status']);
            ?>
</td>
                    <td><?php 
            echo $vo['detail'];
            ?>
</td>
                    <td><?php 
            echo todate($vo['addtime']);
            ?>
</td>
                </tr><?php 
        }
    }
} else {
    echo "";
}
?>

            </tbody>
        </table>
        <div class="panelBar">
            <div class="pages">
                <span>显示</span>
开发者ID:sayi21cn,项目名称:CarService-ServerSide,代码行数:31,代码来源:c8d84a2d51a6dbf36e8ef99e6375e8a9.php


示例8: anchor

    }
    ?>
			</td>
			
			<td class="title">
				<?php 
    echo anchor('academic/years/edit/' . $year->year_id, $year->name);
    ?>
			</td>
			
			<td><?php 
    echo date("l jS F Y", todate($year->date_start));
    ?>
</td>
			<td><?php 
    echo date("l jS F Y", todate($year->date_end));
    ?>
</td>
			
			<?php 
    echo form_open('academic/years/make_current', null, array('year_id' => $year->year_id));
    ?>
			
			<td class="actions">
				<a href="<?php 
    echo site_url(sprintf('academic/years/delete/%d', $year->year_id));
    ?>
" class="button red small">Delete</a>
				<?php 
    if ($year->current != 1) {
        ?>
开发者ID:dellins,项目名称:classroombookings,代码行数:31,代码来源:index.php


示例9: todate

    ?>
            <tr>
                <td><?php 
    echo $basePlanList[$plan[control_userBase::TABLE_KEY]][control_baseMoney::TABLE_KEYNAME];
    ?>
</td>
                <td><?php 
    echo $plan[control_userBase::TABLE_BASEMONEY];
    ?>
</td>
                <td><?php 
    echo $plan[control_userBase::TABLE_RUNMONEY];
    ?>
</td>
                <td><?php 
    echo todate($plan[control_userBase::TABLE_UPDATETIME]);
    ?>
</td>
                <td> —— </td>
            </tr>
        <?php 
}
?>
    </table>
    
    <a href="<?php 
echo $clientEditUri;
?>
" class="btn btn-success btn-lg">新增客户</a>
</div>
开发者ID:knowsee,项目名称:uoke_framework,代码行数:30,代码来源:project.php


示例10: maketime

function maketime($type)
{
    switch ($type) {
        case 'day0':
            $retrun = strtotime(todate(TIMESTAMP, 'ymd'));
            break;
        case 'day24':
            $retrun = strtotime(todate(TIMESTAMP, 'ymd') . ' 23:59:59');
            break;
        case 'monthfirst':
            $retrun = strtotime(date('Y-m-01', strtotime(date("Y-m-d"))));
            break;
        case 'monthlast':
            $retrun = strtotime(date('Y-m-t 23:59:59', strtotime(date("Y-m-d"))));
            break;
        case 'yearfirst':
            break;
        case 'yearlast':
            break;
        default:
            $retrun = TIMESTAMP;
            break;
    }
    return $retrun;
}
开发者ID:knowsee,项目名称:uoke_framework,代码行数:25,代码来源:core.php


示例11: foreach

}
?>
        <?php 
foreach ($userList as $user) {
    ?>
            <tr>
                <td><?php 
    echo $user[control_user::TABLE_UNIONKEY];
    ?>
</td>
                <td><?php 
    echo $user[control_user::TABLE_REALNAME];
    ?>
</td>
                <td><?php 
    echo todate($user[control_user::TABLE_REGTIME]);
    ?>
</td>
                <td><?php 
    echo $user[control_user::TABLE_EMAIL];
    ?>
</td>
                <td>
                    <a href="<?php 
    echo $clientEditUri;
    ?>
&userId=<?php 
    echo $user[control_user::TABLE_UNIONKEY];
    ?>
" class="btn btn-success btn-sm">编辑信息</a>
                    <a href="<?php 
开发者ID:knowsee,项目名称:uoke_framework,代码行数:31,代码来源:list.php


示例12: addslashes

            echo $user["id"];
            ?>
</td><td><a href="javascript:edit('<?php 
            echo addslashes($user["id"]);
            ?>
')"><?php 
            echo $user["account"];
            ?>
</a></td><td><?php 
            echo $user["nickname"];
            ?>
</td><td><?php 
            echo todate($user["create_time"], 'Y-m-d H#i#s');
            ?>
</td><td><?php 
            echo todate($user["last_login_time"], 'Y-m-d H#i#s');
            ?>
</td><td><?php 
            echo $user["login_count"];
            ?>
</td><td><?php 
            echo getstatus($user["status"]);
            ?>
</td><td> <?php 
            echo showstatus($user["status"], $user['id']);
            ?>
&nbsp;</td></tr><?php 
        }
    }
} else {
    echo "";
开发者ID:jl9n,项目名称:thinkphpdemo,代码行数:31,代码来源:275211d1a080b5e92d0ef75e0cf7cdd8.php


示例13: getmembername

            ?>
">
                    <td><?php 
            echo $vo['id'];
            ?>
</td>
                    <td><?php 
            echo getmembername($vo['member_id']);
            ?>
</td>
                    <td><?php 
            echo $vo['cart_model'];
            ?>
</td>
                    <td><?php 
            echo todate($vo['carttime']);
            ?>
</td>
                     <td><?php 
            echo $vo['km'];
            ?>
</td>
                    <td><?php 
            echo $vo['default_cart'];
            ?>
</td>
                    <td><?php 
            echo $vo['car_number'];
            ?>
</td>
                    <td><?php 
开发者ID:sayi21cn,项目名称:CarService-ServerSide,代码行数:31,代码来源:61c8140ae9fa08222efb2211933b5f4e.php


示例14: foreach

    </tr>
    <?php 
if (!$baseLogInfo) {
    ?>
        <tr>
            <td colspan="4"> 暂未有数据 </td>
        </tr>
    <?php 
}
?>
    <?php 
foreach ($baseLogInfo as $baseVal) {
    ?>
        <tr>
            <td><?php 
    echo todate($baseVal[control_baseMoney::TABLE_UPDATETIME]);
    ?>
</td>
            <td><?php 
    echo $baseVal[control_baseMoney::TABLE_BASEMONEY];
    ?>
</td>
            <td><?php 
    echo $baseVal[control_baseMoney::TABLE_RUNMONEY];
    ?>
</td>
            <td><?php 
    echo $baseVal[control_baseMoney::TABLE_LOG_MSG];
    ?>
</td>
        </tr>
开发者ID:knowsee,项目名称:uoke_framework,代码行数:31,代码来源:log.php


示例15: foreach

    } else {
        foreach ($__LIST__ as $key => $item) {
            $mod = $i % 2;
            ++$i;
            ?>
<li class="tbody">
				<span style="width:90px;" class="text-center"><?php 
            echo show_step_type($item["step"]);
            ?>
</span>
				<span style="width:90px;" class="text-center"><?php 
            echo $item["user_name"];
            ?>
</span>
				<span style="width:90px;" class="text-center"><?php 
            echo todate($item["create_time"], 'Y-m-d');
            ?>
</span>
				<span style="width:90px;" class="text-center"><?php 
            echo show_result($item["result"]);
            ?>
</span>
				<span class="auto">
					<div style="overflow:hidden">
						<?php 
            echo $item["comment"];
            ?>
					</div> </span>
			</li><?php 
        }
    }
开发者ID:2ger,项目名称:trunk,代码行数:31,代码来源:89c4e99b7f8d5360215dba32c29090c9.php


示例16: foreach

    $__LIST__ = $templates;
    if (count($__LIST__) == 0) {
        echo "";
    } else {
        foreach ($__LIST__ as $key => $vo) {
            $mod = $i % 2;
            ++$i;
            ?>
<tr><td><?php 
            echo $vo["filename"];
            ?>
</td><td><?php 
            echo $vo["filesize"];
            ?>
</td><td  align="center" ><?php 
            echo todate($vo["filemtime"], 'Y-m-d H:i:s');
            ?>
</td><td  align="center" ><a href="<?php 
            echo U($module_name . '/edit?file=' . $vo[filename]);
            ?>
"><img src="./Public/Images/edit.gif"></a><a href="javascript:confirm_delete('<?php 
            echo U($module_name . '/delete?file=' . $vo[filename]);
            ?>
')"><img src="./Public/Images/delete.gif"></a></td></tr><?php 
        }
    }
} else {
    echo "";
}
?>
</tbody></table></div></body></html>
开发者ID:JavaAFei,项目名称:yun001,代码行数:31,代码来源:6f0d3dd2205a357c3a7f25dbaa4142a0.php


示例17: foreach

        </tr>
        <?php 
if (!$baseLogList) {
    ?>
            <tr>
                <td colspan="5"> 暂未有数据 </td>
            </tr>
        <?php 
}
?>
        <?php 
foreach ($baseLogList as $baseVal) {
    ?>
            <tr>
                <td><?php 
    echo todate($baseVal['updateTime']);
    ?>
</td>
                <td><?php 
    echo $baseVal[control_systemBase::TABLE_TODAYGETCASH];
    ?>
</td>
                <td><?php 
    echo $baseVal[control_systemBase::TABLE_TODAYCASH];
    ?>
</td>
                <td><?php 
    echo $baseVal[control_systemBase::TABLE_RUNNOSTOCK];
    ?>
</td>
                <td><?php 
开发者ID:knowsee,项目名称:uoke_framework,代码行数:31,代码来源:index.php


示例18: getrole

            echo $vo["id"];
            ?>
"></td><td><?php 
            echo $vo["id"];
            ?>
</td><td><?php 
            echo $vo["account"];
            ?>
</td><td><?php 
            echo getrole($vo["role_id"]);
            ?>
</td><td><?php 
            echo $vo["last_login_ip"];
            ?>
</td><td><?php 
            echo todate($vo["last_login_time"], 'Y-m-d H:i:s');
            ?>
</td><?php 
            if ($vo['role_id'] == 0) {
                ?>
<td><?php 
                echo showstatus($vo["status"], $vo['id']);
                ?>
&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php 
                echo U('User/edit', array('id' => $vo['id']));
                ?>
">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;删除</td><?php 
            } else {
                ?>
<td><?php 
                echo showstatus($vo["status"], $vo['id']);
开发者ID:snamper,项目名称:meicai,代码行数:31,代码来源:2eb58160bc7623f4c7bb5aecd2bf5370.php


示例19: addslashes

            ++$i;
            ?>
<tr class="row" ><td><input type="checkbox" name="key"	value="<?php 
            echo $user["id"];
            ?>
"></td><td><?php 
            echo $user["id"];
            ?>
</td><td><a href="javascript:edit('<?php 
            echo addslashes($user["id"]);
            ?>
')"><?php 
            echo $user["title"];
            ?>
</a></td><td><?php 
            echo todate($user["create_time"], 'y-m-d');
            ?>
</td><td><?php 
            echo getstatus($user["status"]);
            ?>
</td><td> <?php 
            echo showstatus($user["status"], $user['id']);
            ?>
&nbsp;<a href="javascript:edit('<?php 
            echo $user["id"];
            ?>
')">编辑</a>&nbsp;</td></tr><?php 
        }
    }
} else {
    echo "";
开发者ID:jl9n,项目名称:thinkphpdemo,代码行数:31,代码来源:3187192e95e879a0e62a6bbc778e1d4a.php


示例20: getpidmembername

</div>
                    <div class="commentcontent"><?php 
                        if ($vo["reply"] == "1") {
                            ?>
<span>回复&nbsp;<?php 
                            echo getpidmembername($vo["pid"]);
                            ?>
:</span><?php 
                            echo nl2br($vo["content"]);
                        } else {
                            echo nl2br($vo["content"]);
                        }
                        ?>
</div>
                    <div class="commentreply"><span title="<?php 
                        echo todate($vo["create_time"], 'Y-m-d H:i:s');
                        ?>
"><?php 
                        echo commentdate($vo["create_time"]);
                        ?>
</span>&nbsp;&nbsp;<a href="javascript:return false;" onclick="reply(this,<?php 
                        echo $vo["id"];
                        ?>
);">回复</a></div>
                    <div class="replyform"></div>
                </div>
            </div>
        </li><?php 
                    }
                }
            } else {
开发者ID:zhezhisama,项目名称:zz,代码行数:31,代码来源:aa8ae702f7c14f50e6bc0f68f6b84288.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP today函数代码示例发布时间:2022-05-23
下一篇:
PHP toba_dir函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap