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


PHP queryString函数代码示例

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


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

示例1: draw_category

function draw_category($category)
{
    $args = queryString(queryConstruct(array('view' => 'category', 'category' => $category['path']), array('categoryview'), array('referendum_search_')));
    echo "<dt><a href='{$_SERVER["SCRIPT_NAME"]}?{$args}'>{$category['title']} ({$category['type']})</a></dt>\n";
    echo "<dd>\n";
    echo "{$category['text']}";
    draw_category_list($category['children']);
    echo "</dd>\n";
}
开发者ID:redhog,项目名称:DemoWave,代码行数:9,代码来源:categories.php

示例2: drawSelectView

function drawSelectView($view, $title)
{
    $url = $_SERVER["SCRIPT_NAME"] . "?" . queryString(queryConstruct(array('view' => $view)));
    $cls = 'menu_non_current';
    if ($_GET["view"] == $view) {
        $cls = 'menu_current';
    }
    return "<a class='menu {$cls}' href='{$url}'>{$title}</a>";
}
开发者ID:redhog,项目名称:DemoWave,代码行数:9,代码来源:menu.php

示例3: drawSelectCategoryView

function drawSelectCategoryView($view, $title, $reset = array(), $resetpattern = array())
{
    $url = $_SERVER["SCRIPT_NAME"] . "?" . queryString(queryConstruct(array('categoryview' => $view), $reset, $resetpattern));
    $cls = 'viewmenu_non_current';
    if ($_GET["categoryview"] == $view) {
        $cls = 'viewmenu_current';
    }
    return "<a class='viewmenu {$cls}' href='{$url}'>{$title}</a>";
}
开发者ID:redhog,项目名称:DemoWave,代码行数:9,代码来源:category.menu.php

示例4: bread_array

function bread_array($breads, $seperate = " &gt; ")
{
    $bread = array();
    uasort($breads, "bread_compare");
    foreach ($breads as $key => $val) {
        if (!empty($val['url'])) {
            if (isset($val['params'])) {
                $bread[] = "<a href='" . $val['url'] . queryString($val['params']) . "' target='_self' title='" . $val['title'] . "'>" . $val['title'] . "</a>";
            } else {
                $bread[] = "<a href='" . $val['url'] . "' target='_self' title='" . $val['title'] . "'>" . $val['title'] . "</a>";
            }
        } else {
            $bread[] = $val['title'];
        }
    }
    return implode($seperate, $bread);
}
开发者ID:renduples,项目名称:alibtob,代码行数:17,代码来源:breadcrumb.inc.php

示例5: foreach

                    foreach (array_reverse($para['sub']) as $sub) {
                        paraToSql($sub);
                    }
                    foreach (array_reverse($para['next']) as $next) {
                        paraToSql($next);
                    }
                }
                foreach (array_reverse($para_root) as $root) {
                    paraToSql($root);
                }
            }
        }
    }
    $sql .= "end;";
    pg_query($dbconn, $sql) or die('Unable to add referendum: ' . pg_last_error());
    $row = pg_fetch_row(pg_query($dbconn, "select currval('referendum_id_seq');")) or die('Unable to fetch id of new referendum: ' . pg_last_error());
    $referendum = $row[0];
    if (in_array('vote', $_SESSION['privs'])) {
        $sql = "select cast_vote('{$referendum}', '{$_SESSION['user']}', '1');";
        pg_query($dbconn, $sql) or die(T_('Unable to insert vote: ') . pg_last_error());
        $messages .= "<div>" . sprintf(T_("Vote registered for referendum %s"), $referendum) . "</div>";
    }
    $referendumurl = $_SERVER["SCRIPT_NAME"] . '?' . queryString(queryConstruct(array('view' => 'category', 'categoryview' => 'referendums', 'referendum_search_status__1_list' => 'on', 'referendum_search_status__0_list' => 'on', 'referendum_search_status__-1_list' => 'on', 'referendum_search_referendum_lower' => $referendum, 'referendum_search_referendum_upper' => $referendum, 'expanded_referendums' => $referendum), array(), array('referendum_search_')));
    if (isset($fudinc)) {
        $fudid = fud_new_topic(sprintf(T_("%s:%s: %s"), $category_path, $referendum, $_POST['new_referendum_title']), sprintf("<h1><a href='%s' target='_blank'>" . T_("%s:%s: %s") . "</a></h1>" . T_("This thread is for discussions on the above DemoWave administered referendum."), $referendumurl, $category_path, $referendum, $_POST['new_referendum_title']), 3, $fuduser, $fudforum);
        pg_query($dbconn, "insert into referendum_fud (referendum, fudid) values('{$referendum}', '{$fudid}')") or die('Unable to add referendum FUDfudforum topic: ' . pg_last_error());
    }
    header("Status: 303 See Other");
    header("Location: " . $referendumurl);
    exit(1);
}
开发者ID:redhog,项目名称:DemoWave,代码行数:31,代码来源:save_new_referendum.php

示例6: Copyright

 | Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.
 | @ Author	   : ArslanHassan
 | @ Software  : ClipBucket , © PHPBucket.com
* *************************************************************
*/
define("THIS_PAGE", 'manage_videos');
define("PARENT_PAGE", "videos");
require 'includes/config.inc.php';
$userquery->logincheck();
$udetails = $userquery->get_user_details(userid());
assign('user', $udetails);
assign('p', $userquery->get_user_profile($udetails['userid']));
$mode = $_GET['mode'];
$page = mysql_clean($_GET['page']);
$get_limit = create_query_limit($page, VLISTPP);
assign('queryString', queryString(NULL, array('type', 'makeProfileItem', 'removeProfileItem', 'vid_delete')));
switch ($mode) {
    case 'uploaded':
    default:
        assign('mode', 'uploaded');
        //Deleting Video
        if (!empty($_GET['vid_delete'])) {
            $video = mysql_clean($_GET['vid_delete']);
            $cbvideo->delete_video($video);
        }
        //Deleting Videos
        if (isset($_POST['delete_videos'])) {
            for ($id = 0; $id <= VLISTPP; $id++) {
                $cbvideo->delete_video($_POST['check_vid'][$id]);
            }
            $eh->flush();
开发者ID:yukisky,项目名称:clipbucket,代码行数:31,代码来源:manage_videos.php

示例7: video_manager_ep_link

 /**
  * Function used to display video manager link|
  */
 function video_manager_ep_link($vid)
 {
     if (is_video_in_editors_pick($vid['videoid'])) {
         return '<li><a role="menuitem" tabindex="-1" href="' . queryString(NULL, array('remove_editor_pick', 'add_editor_pick', 'mode')) . 'remove_editor_pick=' . $vid['videoid'] . '">Remove From Editor\'s Pick</a><li>';
     } else {
         return '<li><a role="menuitem" tabindex="-1" href="' . queryString(NULL, array('remove_editor_pick', 'add_editor_pick', 'mode')) . 'add_editor_pick=' . $vid['videoid'] . '">Add To Editor\'s Pick</a></li>';
     }
 }
开发者ID:reactvideos,项目名称:Website,代码行数:11,代码来源:editors_picks.php

示例8: Copyright

<?php

/* 
 ***********************************************************************
 | Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.		
 | @ Author 	: ArslanHassan												
 | @ Software 	: ClipBucket , © PHPBucket.com							
 *************************************************************************
*/
require '../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
if ($_GET['kick']) {
    if ($sess->kick(mysql_clean($_GET['kick']))) {
        e("User has been kicked out", "m");
    }
}
$results = 30;
$page = mysql_clean($_GET['page']);
$get_limit = create_query_limit($page, $results);
$online_users = $userquery->get_online_users(false, false, $get_limit);
$total_rows = $userquery->get_online_users(false, true);
$total_pages = count_pages($total_rows, $results);
$pages->paginate($total_pages, $page);
assign('total', count($online_users));
assign('online_users', $online_users);
assign('queryString', queryString(NULL, 'kick'));
subtitle("View online users");
template_files('online_users.html');
display_it();
开发者ID:yukisky,项目名称:clipbucket,代码行数:30,代码来源:online_users.php

示例9: array

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
*/
?>

<span class="categorypath">
 <?php 
if ($_GET["category"] == '') {
    $items = array();
} else {
    $items = explode('.', $_GET["category"]);
}
$res = array();
$subpath = array();
$args = queryString(queryConstruct(array('category' => ''), array('categoryview'), array('referendum_search_')));
$res = array("<span><a href='{$_SERVER["SCRIPT_NAME"]}?{$args}'>" . T_("Top") . "</a></span>\n");
foreach ($items as $item) {
    $subpath[] = $item;
    $args = queryString(queryConstruct(array('category' => implode('.', $subpath)), array('categoryview'), array('referendum_search_')));
    $res[] = "<span><a href='{$_SERVER["SCRIPT_NAME"]}?{$args}'>{$item}</a></span>\n";
}
echo implode(' &gt;&gt; ', $res);
?>
</span>
开发者ID:redhog,项目名称:DemoWave,代码行数:31,代码来源:category.top.php

示例10: mysql_clean

     }
     if (get('query') != '') {
         $cond = " (photos.photo_title LIKE '%" . mysql_clean(get('query')) . "%' OR photos.photo_tags LIKE '%" . mysql_clean(get('query')) . "%' )";
     }
     $photo_arr = array('user' => userid(), "limit" => $get_limit, "cond" => $cond);
     $photos = $cbphoto->action->get_favorites($photo_arr);
     assign('photos', $photos);
     $photo_arr['count_only'] = true;
     $total_rows = $cbphoto->action->get_favorites($photo_arr);
     $total_pages = count_pages($total_rows, MAINPLIST);
     //Pagination
     $pages->paginate($total_pages, $page);
     subtitle(lang("manage_favorite_photos"));
     break;
 case "my_album":
     assign('albumPrivacyUrl', queryString('', 'album_privacy'));
     assign('mode', 'orphan');
     if (isset($_GET['album_privacy'])) {
         if (in_array(get('album_privacy'), array('private', 'public', 'friends'))) {
             $db->update(tbl("users"), array("album_privacy"), array(mysql_clean(get("album_privacy"))), " userid='" . userid() . "'");
             e(lang("album_privacy_updated"), 'm');
             $udetails['album_privacy'] = get('album_privacy');
             assign('user', $udetails);
         }
     }
     if (isset($_GET['delete_orphan_photo'])) {
         $id = mysql_clean($_GET['delete_orphan_photo']);
         $cbphoto->delete_photo($id);
     }
     if (isset($_POST['delete_orphan_photos'])) {
         $total = count($_POST['check_photo']);
开发者ID:Coding110,项目名称:cbvideo,代码行数:31,代码来源:manage_photos.php

示例11: queryString

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
*/
if ($is_category) {
    ?>

<?php 
    if (array_get($_GET, 'search_referendums_show', '')) {
        $status = "heading_expanded";
        $args = queryString(queryConstruct(array(), array('search_referendums_show')));
    } else {
        $status = "heading_collapsed";
        $args = queryString(queryConstruct(array('search_referendums_show' => '1'), array()));
    }
    $title = T_("Search for referendums");
    echo "<h2 class='{$status}'><a href='{$_SERVER["SCRIPT_NAME"]}?{$args}'>{$title}</a></h2>";
    if (array_get($_GET, 'search_referendums_show', '')) {
        ?>
   <form action="<?php 
        echo $_SERVER["SCRIPT_NAME"];
        ?>
" method="get" enctype="multipart/url-encoded">
    <?php 
        foreach ($_GET as $key => $value) {
            if (!beginsWith($key, 'referendum_search_')) {
                echo "<input name='{$key}' value='{$value}' type='hidden'>\n";
            }
        }
开发者ID:redhog,项目名称:DemoWave,代码行数:30,代码来源:searchreferendums.php

示例12: count

    } else {
        $box = 'out';
    }
    $total = count($_POST['msg_id']);
    for ($pms = 0; $pms < $total; $pms++) {
        if (!empty($_POST['msg_id'][$pms])) {
            $cbpm->delete_msg($_POST['msg_id'][$pms], userid(), $box);
        }
        $eh->flush();
        e(lang('private_messags_deleted'), 'm');
    }
}
switch ($mode) {
    case 'inbox':
    default:
        $query_string = queryString(NULL, array('thread_id'));
        assign('query_string', $query_string);
        $threads = $cbpm->get_threads(array('userid' => userid()));
        assign('threads', $threads);
        //ADd new message
        if (isset($_POST['add_message'])) {
            $tid = mysql_clean($_POST['thread_id']);
            $cbpm->send_message(array('thread_id' => $tid, 'subject' => post('subject'), 'message' => post('message')));
        }
        //Get Messages if thread is selected
        if (isset($_GET['thread_id'])) {
            $tid = mysql_clean($_GET['thread_id']);
            $messages = $cbpm->get_messages(array('thread_id' => $tid));
            //Get Thread details..
            $thread = $cbpm->get_thread($tid);
            assign('thread', $thread);
开发者ID:yukisky,项目名称:clipbucket,代码行数:31,代码来源:private_message.php

示例13: isHasChild

 function isHasChild($parentid)
 {
     $isHasChild = false;
     if (isDbConnect()) {
         $conn = pg_connect(getConnectionString());
         $queryString = "";
         // XIBAR-OLD
         $queryString = "select count(1) as xcount ";
         $queryString .= queryString();
         $queryString .= "and a.parentid = " . $parentid . " ";
         $recordset = pg_query($conn, $queryString);
         while ($row = pg_fetch_object($recordset)) {
             $isHasChild = $row->xcount > 0 ? true : false;
         }
         pg_close(getConnectionString());
     }
     return $isHasChild;
 }
开发者ID:aryobd,项目名称:kugi,代码行数:18,代码来源:menu.php

示例14: queryString

					</select><br />
					<input name="payrefs" type="hidden" id="payrefs" />
					<input name="process" type="submit" id="process" value="Process" style="width: 125px;" disabled="disabled" /><input name="delete" type="button" id="delete" value="Delete" style="width: 75px;" onclick="rlRemPayment()" disabled="disabled" /><br />
					<br />
					To delete a row, select it<br />
					and press <em>Delete</em>.
				</form>
			</fieldset>
		</td>
	</tr>
</table>
<?php 
} else {
    ?>
<form name="paymentform" id="paymentform" action="<?php 
    echo $_SERVER['PHP_SELF'] . queryString();
    ?>
" method="post">
	<table border="0" align="center" cellpadding="2" cellspacing="2" id="paymentheader">
		<tr>
<?php 
    if ($payShow == 1) {
        ?>
			<td width="550" align="center">Below is a list of the reference numbers you
				selected for payment. Please confirm that all payments are for
				the full amount. If the payment is not for the full amount, adjust
				the <em>Amount to Pay</em> column accordingly. You will be warned if you try
				to enter an amount greater than the amount outstanding.</td>
<?php 
    } else {
        ?>
开发者ID:alexzita,项目名称:alex_blog,代码行数:31,代码来源:attendee_rego_list.php

示例15: printf

    }
    if (isset($node['path'])) {
        printf("<input\n\t    class='law_edit_insert'\n\t    name='law_edit_insert_%s'\n\t    type='submit'\n\t    value='Insert new paragraph after %s' />\n\t  ", $node['path'], $node['path']);
        echo "</div>\n";
    }
}
?>

<form method="post" enctype="multipart/form-data">
 <input type='hidden' name='law_edit_continue' value='yes' />

 <table class="law_importexport">
  <?php 
echo drawInputRow(T_("Import from file"), "<input name='law_import_file' type='file'>");
echo drawInputRow('', "<input name='law_import' type='submit' value='" . T_("Import") . "'>");
$lawexporturl = '?' . queryString(queryConstruct(array('categoryview' => 'laweditor', 'format' => 'export', 'law_edit_continue' => 'yes')));
echo drawInputRow(T_("Export to file"), "<a href='{$lawexporturl}' target='demowave-export'>" . T_("Export") . "</a>");
?>
 </table>

 <table>
  <?php 
$title = array_get($_SESSION["laweditor"], "title", "");
echo drawInputRow(T_("Change summary"), "<input type='text' name='law_title' value='{$title}' />");
echo drawInputRow('', "<input name='law_save' type='submit' value='" . T_("Save changes") . "'>");
?>
 </table>

 <h3><?php 
E_("Contents");
?>
开发者ID:redhog,项目名称:DemoWave,代码行数:31,代码来源:laweditor.php


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