本文整理汇总了PHP中subtitle函数的典型用法代码示例。如果您正苦于以下问题:PHP subtitle函数的具体用法?PHP subtitle怎么用?PHP subtitle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了subtitle函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: Assign
if (isset($_POST['update_level_perms'])) {
$perm_array = $_POST;
$userquery->update_user_level($lid, $perm_array);
}
//Getting Details of $level
$levelDetails = $userquery->get_level_details($lid);
Assign('level_details', $levelDetails);
//GettinG Level Permission
$level_perms = $userquery->get_level_permissions($lid);
//pr($level_perms, true);
$plugin_perms = $level_perms['plugins_perms'];
$plugin_perms = json_decode($plugin_perms, true);
assign('plugin_perms', $plugin_perms);
Assign('level_perms', $level_perms);
Assign('view', 'edit');
break;
case 'add':
if (isset($_POST['add_new_level'])) {
$array = $_POST;
if ($userquery->add_user_level($array)) {
redirect_to('user_levels.php?added=true');
}
}
Assign('view', 'add');
}
//$lev = $userquery->get_level_types();
//$per = $userquery->get_permissions(2);
//pr($per, true);
subtitle("User levels");
template_files('user_levels.html');
display_it();
开发者ID:reactvideos,项目名称:Website,代码行数:31,代码来源:user_levels.php
示例2: Copyright
<?php
/*
***************************************************************
| Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.
| @ Author : ArslanHassan
| @ Software : ClipBucket , © PHPBucket.com
***************************************************************
*/
define("THIS_PAGE", "invite_group");
define("PARENT_PAGE", "groups");
require 'includes/config.inc.php';
$pages->page_redir();
$url = mysql_clean($_GET['url']);
$details = $cbgroup->group_details_url($url);
assign('group', $details);
if (!$cbgroup->is_owner($details)) {
e(lang("you_cant_invite_mems"));
} else {
if ($details) {
assign('friends', $userquery->get_contacts(userid(), 0));
}
//Inviting Friends
if (isset($_POST['invite_friends'])) {
$cbgroup->invite_members($_POST['friend'], $details['group_id']);
}
assign('mode', "invite_group");
template_files('view_group.html');
subtitle(lang("grp_invite_msg"));
display_it();
}
开发者ID:Coding110,项目名称:cbvideo,代码行数:31,代码来源:invite_group.php
示例3: count
$total = count($_POST['check_photo']);
for ($i = 0; $i < $total; $i++) {
$id_array[] = $_POST['check_photo'][$i];
}
//$eh->flush();
}
if (isset($_GET['search'])) {
$array = array('title' => $_GET['title'], 'pid' => $_GET['photoid'], 'key' => $_GET['photokey'], 'tags' => $_GET['tags'], 'featured' => $_GET['featured'], 'active' => $_GET['active'], 'user' => $_GET['userid'], 'extension' => $_GET['extension'], 'order' => $_GET['order']);
}
$parr = $array;
// Creating Limit
$page = mysql_clean($_GET['page']);
$get_limit = create_query_limit($page, RESULTS);
$parr['limit'] = $get_limit;
if (!$parr['order']) {
$parr['order'] = " date_added DESC ";
} else {
$parr['order'] = $parr['order'] . " DESC";
}
$collections = $cbcollection->get_collections(array("type" => "photos"));
$photos = $cbphoto->get_photos($parr);
Assign('photos', $photos);
assign('c', $collections);
$pcount = $parr;
$pcount['count_only'] = true;
$total_rows = $cbphoto->get_photos($pcount);
$total_pages = count_pages($total_rows, RESULTS);
$pages->paginate($total_pages, $page);
subtitle("Photo Manager");
template_files('photo_manager.html');
display_it();
开发者ID:Coding110,项目名称:cbvideo,代码行数:31,代码来源:photo_manager.php
示例4: define
if (!defined('SUB_PAGE')) {
define('SUB_PAGE', "Editor's Pick");
}
//Removing
if (isset($_GET['remove'])) {
$id = mysql_clean($_GET['remove']);
remove_vid_editors_pick($id);
}
if (isset($_POST['delete_selected'])) {
for ($id = 0; $id <= count($_POST['check_video']); $id++) {
remove_vid_editors_pick($_POST['check_video'][$id]);
}
$eh->flush();
e("Selected videos have been removed from editors pick", "m");
}
$ep_videos = get_ep_videos();
if (isset($_POST['update_order'])) {
if (is_array($ep_videos)) {
foreach ($ep_videos as $epvid) {
$order = $_POST['ep_order_' . $epvid['pick_id']];
move_epick($epvid['videoid'], $order);
}
}
$ep_videos = get_ep_videos();
}
assign('videos', $ep_videos);
assign('max', get_highest_sort_number());
assign('min', get_lowest_sort_number());
subtitle("Editor's Pick");
template_files('editor_pick.html');
display_it();
开发者ID:reactvideos,项目名称:Website,代码行数:31,代码来源:editor_pick.php
示例5: switch
break;
case "most_items":
$cond['order'] = " total_objects DESC";
break;
}
switch ($content) {
case "videos":
$cond['type'] = "videos";
break;
case "photos":
$cond['type'] = "photos";
}
//$cond['has_items'] = true;
//Getting Collection List
$page = mysql_clean($_GET['page']);
$get_limit = create_query_limit($page, COLLPP);
$clist = $cond;
$clist['limit'] = $get_limit;
$collections = $cbcollection->get_collections($clist);
Assign('collections', $collections);
//Collecting Data for Pagination
$ccount = $cond;
$ccount['count_only'] = true;
$total_rows = $cbcollection->get_collections($ccount);
$total_pages = count_pages($total_rows, COLLPP);
//Pagination
$pages->paginate($total_pages, $page);
subtitle(lang('collections'));
//Displaying The Template
template_files('collections.html');
display_it();
开发者ID:reactvideos,项目名称:Website,代码行数:31,代码来源:collections.php
示例6: include_once
</td>
</tr>
<tr>
<td rowspan="2" class="LeftCell">
<? include_once(dirname(__FILE__).'/includes/menu.inc');?>
</td>
<td class="MainCell">
<div id="main">
<div class="post">
<h2>Configuration</h2>
<p class="modified"><b>> <?php
echo subtitle('config.' . $op);
?>
</b></p>
<?php
//$errors->display();
?>
<p>
<?php
// Informations
if ($op == 'info') {
?>
<h4>Environnement:</h4>
<?php
kmInfo::env_info();
?>
<h4>Graphique:</h4>
开发者ID:BackupTheBerlios,项目名称:kermert-svn,代码行数:31,代码来源:config.php
示例7: Copyright
| Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.
| @ Author : ArslanHassan
| @ Software : ClipBucket , © PHPBucket.com
*************************************************************
*/
define("THIS_PAGE", 'edit_group');
define("PARENT_PAGE", 'groups');
require 'includes/config.inc.php';
$userquery->logincheck();
$udetails = $userquery->get_user_details(userid());
assign('user', $udetails);
assign('p', $userquery->get_user_profile($udetails['userid']));
$gid = mysql_clean($_GET['group_id']);
//get group details
$gdetails = $cbgroup->get_group_details($gid);
$gArray = array('group' => $gdetails, 'groupid' => $gid, 'uid' => userid(), 'user' => $userquery->udetails, 'checkowner' => 'yes');
if (!$cbgroup->is_admin($gArray) && !has_access('admin_access', true)) {
e(lang("you_cant_edit_group"));
$Cbucket->show_page = false;
} else {
//Updating Video Details
if (isset($_POST['update_group'])) {
$_POST['group_id'] = $gid;
$cbgroup->update_group();
$gdetails = $cbgroup->get_group_details($gid);
}
assign('group', $gdetails);
}
subtitle(lang("grp_edit_grp_title"));
template_files('edit_group.html');
display_it();
开发者ID:reactvideos,项目名称:Website,代码行数:31,代码来源:edit_group.php
示例8: sql_fetch
} else {
if ($w == "u") {
$required_gr_id = "";
$update_gr_id = "readonly='readonly' style='background-color:#dddddd'";
$gr = sql_fetch(" select * from {$g4['group_table']} where gr_id = '{$gr_id}' ");
$html_title .= " 수정";
} else {
alert("제대로 된 값이 넘어오지 않았습니다.");
}
}
$g4[title] = $html_title;
include_once "./admin.head.php";
?>
<?php
echo subtitle("게시판그룹생성");
?>
<form id='fboardgroup' method='post' action='#' onsubmit='return fboardgroup_check(this);'>
<table class='normal3'>
<col width="15%" />
<col class='col2' />
<col class='col3' />
<col class='col4' />
<td>그룹 ID</td>
<td colspan='3'>
<input type='hidden' name='w' value='<?php
echo $w;
?>
' />
<input type='hidden' name='sfl' value='<?php
echo $sfl;
开发者ID:ragi79,项目名称:g4dtd,代码行数:31,代码来源:boardgroup_form.php
示例9: count
//Installing Plugin
if (isset($_GET['install_plugin'])) {
$folder = $_GET['f'];
$installed = $cbplugin->installPlugin(mysql_clean($_GET['install_plugin']), $folder);
if ($installed) {
include $installed;
}
}
/**
* Installing Multiple Plugins
*/
if ($_POST['action-mode'] == 'install') {
$plugs = count($_POST['check_plugin']);
for ($i = 0; $i < $plugs; $i++) {
$itr = $_POST['check_plugin'][$i];
$installed = $cbplugin->installPlugin($_POST['plugin_file_' . $itr], $_POST['plugin_folder_' . $itr]);
if ($installed) {
include $installed;
}
}
}
//Get New Plugin List
$availabe_plugin_list = $cbplugin->getNewPlugins();
Assign('new_plugin_list', $availabe_plugin_list);
//Get Installed Plugin List
$installed_plugin_list = $cbplugin->getInstalledPlugins();
Assign('installed_plugin_list', $installed_plugin_list);
Assign('msg', @$msg);
subtitle("Plugin Manager");
template_files('plugin_manager.html');
display_it();
开发者ID:yukisky,项目名称:clipbucket,代码行数:31,代码来源:plugin_manager.php
示例10: get_videos
case 'watching':
$videos = get_videos(array('limit' => $limit, 'order' => 'last_viewed DESC'));
$title = "Videos Being Watched";
break;
case 'user':
$user = mysql_clean($_GET['username']);
//Get userid from username
$uid = $userquery->get_user_field_only($user, 'userid');
$uid = $uid ? $uid : 'x';
$videos = get_videos(array('limit' => $limit, 'user' => $uid, 'order' => 'date_added DESC'));
//Count Total Videos of this user
$total_vids = get_videos(array('count_only' => true, 'user' => $uid));
$title = "Videos uploaded by " . $user;
break;
}
subtitle($title);
?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title><?php
echo cbtitle();
?>
</title>
<link><?php
echo BASEURL;
?>
</link>
<image>
<url><?php
echo website_logo();
开发者ID:Coding110,项目名称:cbvideo,代码行数:31,代码来源:rss.php
示例11: get_videos
if (is_installed('cb_mass_embed')) {
//$array['mass_embed_status'] = 'approved';
}
$result_array = $array;
//Getting Video List
$result_array['limit'] = $get_limit;
if (!$array['order']) {
$result_array['order'] = " videoid DESC ";
}
$videos = get_videos($result_array);
Assign('videos', $videos);
//pr($videos,true);
//Collecting Data for Pagination
$vcount = $array;
$vcount['count_only'] = true;
$total_rows = get_videos($vcount);
$total_pages = count_pages($total_rows, RESULTS);
$pages->paginate($total_pages, $page);
//Category Array
if (is_array($_GET['category'])) {
$cats_array = array($_GET['category']);
} else {
preg_match_all('/#([0-9]+)#/', $_GET['category'], $m);
$cats_array = array($m[1]);
}
$cat_array = array(lang('vdo_cat'), 'type' => 'checkbox', 'name' => 'category[]', 'id' => 'category', 'value' => array('category', $cats_array), 'hint_1' => lang('vdo_cat_msg'), 'display_function' => 'convert_to_categories');
assign('cat_array', $cat_array);
//echo $db->db_query;
subtitle("Video Manager");
template_files('video_manager.html');
display_it();
开发者ID:Coding110,项目名称:cbvideo,代码行数:31,代码来源:video_manager.php
示例12: sql_query
if (!$page) {
$page = 1;
}
// 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows;
// 시작 열을 구함
$sql = " select *\n {$sql_common}\n {$sql_search}\n {$sql_order}\n limit {$from_record}, {$rows} ";
$result = sql_query($sql);
$listall = "<a href='{$_SERVER['PHP_SELF']}'>처음</a>";
$g4[title] = "게시판그룹설정";
include_once "./admin.head.php";
$colspan = 8;
?>
<?php
echo subtitle("게시판그룹설정");
?>
<script type='text/javascript'>
var list_update_php = "./boardgroup_list_update.php";
var list_delete_php = "./boardgroup_list_delete.php";
</script>
<form id='fsearch' method='get' action='#'>
<div class='list_status'>
<div class='fl'>
<?php
echo $listall;
?>
(그룹수 : <?php
echo number_format($total_count);
?>
开发者ID:ragi79,项目名称:g4dtd,代码行数:31,代码来源:boardgroup_list.php
示例13: create_query_limit
default:
$get_limit = create_query_limit($page, config('videos_items_uvid_page'));
assign("the_title", $udetails['username'] . " videos");
$videos = get_videos(array('user' => $udetails['userid'], 'limit' => $get_limit));
$total_rows = get_videos(array('user' => $udetails['userid'], 'count_only' => true));
subtitle(sprintf(lang("users_videos"), $udetails['username']));
$total_pages = count_pages($total_rows, config('videos_items_uvid_page'));
break;
case 'favorites':
$get_limit = create_query_limit($page, config('videos_items_ufav_page'));
assign("the_title", $udetails['username'] . " favorites");
$params = array('userid' => $udetails['userid'], 'limit' => $get_limit);
$videos = $cbvid->action->get_favorites($params);
$params['count_only'] = "yes";
$total_rows = $cbvid->action->get_favorites($params);
subtitle(sprintf(lang("title_usr_fav_vids"), $udetails['username']));
$total_pages = count_pages($total_rows, config('videos_items_ufav_page'));
//pr($total_pages,true);
break;
case 'playlists':
$get_limit = create_query_limit($page, 10);
$params = array('userid' => $udetails['userid'], 'limit' => $get_limit);
$playlists = get_playlists($params);
/*$items = $cbvid->get_playlist_items( $pid, 'playlist_items.date_added DESC' );
pr($items,true);
assign('items',$items);*/
assign('playlist_mode', 'on');
assign('playlists', $playlists);
$params['count_only'] = true;
$total_rows = get_playlists($params);
$total_pages = count_pages($total_rows, config('videos_items_ufav_page'));
开发者ID:reactvideos,项目名称:Website,代码行数:31,代码来源:user_videos.php
示例14: count
$total = count($_POST['check_queue']);
for ($i = 0; $i <= $total; $i++) {
$myquery->queue_action("delete", $_POST['check_queue'][$i]);
}
e("Selected items have been deleted", "m");
}
if (isset($_POST['processed'])) {
$total = count($_POST['check_queue']);
for ($i = 0; $i <= $total; $i++) {
$myquery->queue_action("processed", $_POST['check_queue'][$i]);
}
e("Selected items have been set changed to processed", "m");
}
if (isset($_POST['pending'])) {
$total = count($_POST['check_queue']);
for ($i = 0; $i <= $total; $i++) {
$myquery->queue_action("pending", $_POST['check_queue'][$i]);
}
e("Selected items have been set changed to processed", "m");
}
//Getting List of Conversion Queue
$page = mysql_clean($_GET['page']);
$get_limit = create_query_limit($page, RESULTS);
$queue_list = $myquery->get_conversion_queue(NULL, $get_limit);
assign('queues', $queue_list);
$total_rows = get_videos($vcount);
$total_pages = count_pages($db->count(tbl('conversion_queue'), "cqueue_id"), RESULTS);
$pages->paginate($total_pages, $page);
subtitle("Conversion Queue Manager");
template_files("cb_conversion_queue.html");
display_it();
开发者ID:Coding110,项目名称:cbvideo,代码行数:31,代码来源:cb_conversion_queue.php
示例15: Copyright
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require 'includes/config.inc.php';
$pages->page_redir();
subtitle('privacy');
Template('header.html');
Template('message.html');
Template('privacy.html');
Template('footer.html');
开发者ID:yukisky,项目名称:clipbucket,代码行数:16,代码来源:privacy.php
示例16: foreach
foreach ($videos as $video) {
$log = get_file_details($video['file_name']);
if ($log && $_POST['fix_duration']) {
//$duration = $log['output_duration'];
//if(!$duration)
// $duration = $log['duration'];
$duration = parse_duration(LOGS_DIR . '/' . $video['file_name'] . '.log');
if (!$duration) {
e("Can't do anything about \"" . $video['title'] . "\"");
} else {
$db->update(tbl('video'), array('duration'), array($duration), "videoid='" . $video['videoid'] . "'");
$fixed_array[$video['file_name']] = 'yes';
e("Succesfully updated duration of \"" . $video['title'] . "\" to " . SetTime($duration), 'm');
}
}
if (!$log && $_POST['mark_failed']) {
$db->update(tbl("video"), array("status", "failed_reason"), array('Failed', "Unable to get video duration"), " file_name='" . $video['file_name'] . "'");
e("\"" . $video['title'] . "\" status has been changed to Failed", "m");
}
if (!$log && $_POST['mark_delete']) {
$db->update(tbl("video"), array("status", "failed_reason"), array('Failed', "Unable to get video duration"), " file_name='" . $video['file_name'] . "'");
$cbvideo->delete_video($video['videoid']);
}
}
$videos = get_videos($params);
}
subtitle("Repair videos duration");
assign('videos', $videos);
assign('fixed_array', $fixed_array);
template_files('repair_vid_duration.html');
display_it();
开发者ID:Coding110,项目名称:cbvideo,代码行数:31,代码来源:repair_vid_duration.php
示例17: define
if (!defined('MAIN_PAGE')) {
define('MAIN_PAGE', 'Advertisement');
}
if (!defined('SUB_PAGE')) {
define('SUB_PAGE', 'Manage Placements');
}
//Removing Placement
if (isset($_GET['remove'])) {
$placement = mysql_clean($_GET['remove']);
$msg = $ads_query->RemovePlacement($placement);
}
//Adding Placement
if (isset($_POST['AddPlacement'])) {
$placement_name = mysql_clean($_POST['placement_name']);
$placement_code = mysql_clean($_POST['placement_code']);
$array = array($placement_name, $placement_code);
$msg = $ads_query->AddPlacement($array);
}
//Getting List Of Placement
$sql = "SELECT * FROM " . tbl("ads_placements");
$ads_placements = db_select($sql);
$total_placements = $db->num_rows;
//Getting total Ads in each placement
for ($id = 0; $id <= $total_placements; $id++) {
$ads_placements[$id]['total_ads'] = $adsObj->count_ads_in_placement($ads_placements[$id]['placement']);
}
Assign('ads_placements', $ads_placements);
//pr($ads_placements,true);
subtitle("Add Advertisment Placement");
template_files('ads_add_placements.html');
display_it();
开发者ID:reactvideos,项目名称:Website,代码行数:31,代码来源:ads_add_placements.php
示例18: switch
}
switch ($mode) {
case "view":
default:
assign("mode", "view");
//Getting Video List
$page = mysql_clean($_GET['page']);
$get_limit = create_query_limit($page, 5);
$photos = $cbphoto->action->get_flagged_objects($get_limit);
assign('photos', $photos);
//Collecting Data for Pagination
$total_rows = $cbphoto->action->count_flagged_objects();
$total_pages = count_pages($total_rows, 5);
//Pagination
$pages->paginate($total_pages, $page);
break;
case "view_flags":
assign("mode", "view_flags");
$pid = mysql_clean($_GET['pid']);
$pdetails = $cbphoto->get_photo($pid);
if ($pdetails) {
$flags = $cbphoto->action->get_flags($pid);
assign('flags', $flags);
assign('photo', $pdetails);
} else {
e("Photo does not exist");
}
}
subtitle("Flagged Photos");
template_files('flagged_photos.html');
display_it();
开发者ID:reactvideos,项目名称:Website,代码行数:31,代码来源:flagged_photos.php
示例19: switch
}
switch ($mode) {
case "view":
default:
assign("mode", "view");
//Getting Video List
$page = mysql_clean($_GET['page']);
$get_limit = create_query_limit($page, 5);
$videos = $cbvid->action->get_flagged_objects($get_limit);
Assign('videos', $videos);
//Collecting Data for Pagination
$total_rows = $cbvid->action->count_flagged_objects();
$total_pages = count_pages($total_rows, 5);
//Pagination
$pages->paginate($total_pages, $page);
break;
case "view_flags":
assign("mode", "view_flags");
$vid = mysql_clean($_GET['vid']);
$vdetails = $cbvid->get_video($vid);
if ($vdetails) {
$flags = $cbvid->action->get_flags($vid);
assign('flags', $flags);
assign('video', $vdetails);
} else {
e("Video does not exist");
}
}
subtitle("Flagged Videos");
template_files('flagged_videos.html');
display_it();
开发者ID:Coding110,项目名称:cbvideo,代码行数:31,代码来源:flagged_videos.php
示例20: mysql_clean
$page = mysql_clean($_GET['page']);
$get_limit = create_query_limit($page, RESULTS);
if (isset($_GET['search'])) {
$array = array('group_id' => $_GET['group_id'], 'user' => $_GET['userid'], 'title' => $_GET['title'], 'tags' => $_GET['tags'], 'category' => $_GET['category'], 'featured' => $_GET['featured'], 'active' => $_GET['active']);
}
$result_array = $array;
//Getting Video List
$result_array['limit'] = $get_limit;
if (!$array['order']) {
$result_array['order'] = " date_added DESC ";
}
$groups = $cbgroup->get_groups($result_array);
Assign('groups', $groups);
//Collecting Data for Pagination
$gcount = $array;
$gcount['count_only'] = true;
$total_rows = $cbgroup->get_groups($gcount);
$total_pages = count_pages($total_rows, RESULTS);
$pages->paginate($total_pages, $page);
//Category Array
if (is_array($_GET['category'])) {
$cats_array = array($_GET['category']);
} else {
preg_match_all('/#([0-9]+)#/', $_GET['category'], $m);
$cats_array = array($m[1]);
}
$cat_array = array(lang('vdo_cat'), 'type' => 'checkbox', 'name' => 'category[]', 'id' => 'category', 'value' => array('category', $cats_array), 'hint_1' => lang('vdo_cat_msg'), 'display_function' => 'convert_to_categories', 'category_type' => 'groups');
assign('cat_array', $cat_array);
subtitle("Group Manager");
template_files('groups_manager.html');
display_it();
开发者ID:Coding110,项目名称:cbvideo,代码行数:31,代码来源:groups_manager.php
注:本文中的subtitle函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论