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


PHP Functions::DateFormat方法代码示例

本文整理汇总了PHP中Functions::DateFormat方法的典型用法代码示例。如果您正苦于以下问题:PHP Functions::DateFormat方法的具体用法?PHP Functions::DateFormat怎么用?PHP Functions::DateFormat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Functions的用法示例。


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

示例1:

                                <a class="delete confirm" href="<?php 
        echo $pagination->GetURL('delete=' . $comment->comment_id);
        ?>
" data-confirm="You're about to delete this comment. This cannot be undone. Do you want to proceed?">Delete</a>
                            </div>
                        </td>
                        <td><a href="<?php 
        echo $video->url;
        ?>
/"><?php 
        echo $video->title;
        ?>
</a></td>
                        <td><?php 
        echo Functions::DateFormat('m/d/Y', $comment->date_created);
        ?>
</td>
                    </tr>

                <?php 
    }
    ?>
                </tbody>
            </table>
        </div>

        <?php 
    echo $pagination->paginate();
    ?>
开发者ID:KmServer,项目名称:CumulusClips,代码行数:29,代码来源:comments.php

示例2: SimpleXMLElement

    $namespace .= ' xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"';
    $xml_root = '<urlset' . $namespace . '></urlset>';
    $xml_frame = $xml_header . $xml_root;
    $xml = new SimpleXMLElement($xml_frame);
    // Add video entries
    while ($row = $db->FetchObj($result)) {
        $video = new Video($row->video_id);
        $url = $xml->addChild('url');
        $url->addChild('loc', $video->url . '/');
        $block = $url->addChild('video:video', '', 'video');
        $block->addChild('content_loc', $config->flv_url . '/' . $video->filename . '.flv');
        $block->addChild('thumbnail_loc', $config->thumb_url . '/' . $video->filename . '.jpg');
        $block->addChild('title', $video->title);
        $block->addChild('description', $video->description);
        $block->addChild('rating', Rating::GetFiveScaleRating($row->video_id));
        $block->addChild('view_count', $video->views);
        $block->addChild('publication_date', Functions::DateFormat('Y-m-d', $video->date_created));
        foreach ($video->tags as $_value) {
            $block->addChild('tag', $_value);
        }
        $block->addChild('category', $row->cat_name);
        $block->addChild('family_friendly', 'yes');
        $block->addChild('duration', Functions::DurationInSeconds($video->duration));
    }
} else {
    App::Throw404();
}
// Output XML
Plugin::Trigger('video_sitemap.output');
header("Content-type: text/xml");
echo $xml->asXML();
开发者ID:KmServer,项目名称:CumulusClips,代码行数:31,代码来源:video_sitemap.php

示例3:

/pages_edit.php?id=<?php 
        echo $page->page_id;
        ?>
">Edit</a>
                                <a class="delete confirm" href="<?php 
        echo $pagination->GetURL('delete=' . $page->page_id);
        ?>
" data-confirm="You are about to delete this page, this cannot be undone. Are you sure you want to do this?">Delete</a>
                            </div>
                        </td>
                        <td><?php 
        echo $page->status == 'published' ? 'Published' : 'Draft';
        ?>
</td>
                        <td><?php 
        echo Functions::DateFormat('m/d/Y', $page->date_created);
        ?>
</td>
                    </tr>

                <?php 
    }
    ?>
                </tbody>
            </table>
        </div>

        <?php 
    echo $pagination->paginate();
    ?>
开发者ID:KmServer,项目名称:CumulusClips,代码行数:30,代码来源:pages.php

示例4:

                                <a href="<?php 
        echo $pagination->GetURL('dismiss=' . $flag->id);
        ?>
">Dismiss Flag</a>
                                <a class="delete" href="<?php 
        echo $pagination->GetURL('ban=' . $flag->id);
        ?>
">Ban</a>
                            </div>
                        </td>
                        <td><?php 
        echo $user->username;
        ?>
</td>
                        <td><?php 
        echo Functions::DateFormat('m/d/Y', $flag->date_created);
        ?>
</td>
                    </tr>

                <?php 
    }
    ?>
                </tbody>
            </table>
        </div>

        <?php 
    echo $pagination->paginate();
    ?>
开发者ID:KmServer,项目名称:CumulusClips,代码行数:30,代码来源:flags.php

示例5:

                                <?php 
        }
        ?>

                                <a class="delete confirm" href="<?php 
        echo $pagination->GetURL('delete=' . $user->user_id);
        ?>
" data-confirm="You're about to delete this member and their content. This cannot be undone. Do you want to proceed?">Delete</a>
                            </div>
                        </td>
                        <td><?php 
        echo $user->email;
        ?>
</td>
                        <td><?php 
        echo Functions::DateFormat('m/d/Y', $user->date_created);
        ?>
</td>
                    </tr>

                <?php 
    }
    ?>
                </tbody>
            </table>
        </div>

        <?php 
    echo $pagination->paginate();
    ?>
开发者ID:KmServer,项目名称:CumulusClips,代码行数:30,代码来源:members.php

示例6:

                                <a class="delete confirm" href="<?php 
        echo $pagination->GetURL('delete=' . $video->video_id);
        ?>
" data-confirm="You're about to delete this video. This cannot be undone. Do you want to proceed?">Delete</a>
                            </div>
                        </td>
                        <td class="category"><?php 
        echo $categories[$video->cat_id];
        ?>
</td>
                        <td><?php 
        echo $video->username;
        ?>
</td>
                        <td><?php 
        echo Functions::DateFormat('m/d/Y', $video->date_created);
        ?>
</td>
                    </tr>

                <?php 
    }
    ?>
                </tbody>
            </table>
        </div>

        <?php 
    echo $pagination->paginate();
    ?>
开发者ID:KmServer,项目名称:CumulusClips,代码行数:30,代码来源:videos.php


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