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


PHP GetVariable函数代码示例

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


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

示例1: GetVariable

<body>
	<div id="wrapper">
<?
	//require "config.php";
	require "functions.php";
	require "includes.php";
	require "menu.php";

	/* ----- setup variables ----- */
	$action = GetVariable("action");
	$id = GetVariable("id");
	$protocols = GetVariable("protocols");
	$thegroup = GetVariable("thegroup");
	$modality = GetVariable("modality");
	$pgitemid = GetVariable("pgitemid");
	
	//PrintVariable($_POST,'POST');
	
	/* determine action */
	switch ($action) {
		case 'disable':
			DisableModality($id);
			DisplayModalityList();
			break;
		case 'enable':
			EnableModality($id);
			DisplayModalityList();
			break;
		case 'editprotocolgroups':
			EditProtocolGroups($id,'');
开发者ID:EugeniaRadulescu,项目名称:nidb,代码行数:30,代码来源:adminmodalities.php

示例2: GetVariable

// ------------------------------------------------------------------------------
// NiDB subjectlist.php
// Copyright (C) 2004 - 2016
// Gregory A Book <gregory.book@hhchealth.org> <gbook@gbook.org>
// Olin Neuropsychiatry Research Center, Hartford Hospital
// ------------------------------------------------------------------------------
// GPLv3 License:
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 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, see <http://www.gnu.org/licenses/>.
// ------------------------------------------------------------------------------
include "globalfunctions.php";
$term = GetVariable("term");
$returnarray = array();
$sqlstring = "select uid from subjects where uid like '%{$term}%'";
$result = mysql_query($sqlstring) or die("Query failed: " . mysql_error() . "<br><i>{$sqlstring}</i><br>");
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
    $uid = $row['uid'];
    $arr['id'] = $uid;
    $arr['label'] = $uid;
    $arr['value'] = $uid;
    array_push($returnarray, $arr);
}
echo json_encode($returnarray);
开发者ID:pmolfese,项目名称:nidb,代码行数:31,代码来源:subjectlist.php

示例3: GetVariable

		<link rel="icon" type="image/png" href="images/squirrel.png">
		<title>NiDB - Import Log</title>
	</head>

<body>
	<div id="wrapper">
<?php 
require "functions.php";
require "includes.php";
require "nidbapi.php";
require "menu.php";
/* ----- setup variables ----- */
$action = GetVariable("action");
//$orderby = GetVariable("orderby");
//$groupby = GetVariable("groupby");
$transactionid = GetVariable("transactionid");
/* determine action */
switch ($action) {
    case 'viewimported':
        DisplayMenu();
        DisplayAllImportLog();
        break;
    case 'viewreceived':
        DisplayMenu();
        DisplayAllImportReceived();
        break;
    case 'viewtransactions':
        DisplayMenu();
        DisplayTransactions();
        break;
    case 'viewsingletransaction':
开发者ID:pmolfese,项目名称:nidb,代码行数:31,代码来源:importlog.php

示例4: GetVariable

	$groupid = GetVariable("groupid");
	$subjectgroupid = GetVariable("subjectgroupid");
	$studygroupid = GetVariable("studygroupid");
	$seriesgroupid = GetVariable("seriesgroupid");
	$groupname = GetVariable("groupname");
	$grouptype = GetVariable("grouptype");
	$owner = GetVariable("owner");
	$uids = GetVariable("uids");
	$uidids = GetVariable("uidids");
	$seriesids = GetVariable("seriesid");
	$studyids = GetVariable("studyid");
	$modality = GetVariable("modality");
	$itemid = GetVariable("itemid");
	$measures = GetVariable("measures");
	$columns = GetVariable("columns");
	$groupmeasures = GetVariable("groupmeasures");
	
	/* determine action */
	switch ($action) {
		case 'add':
			AddGroup($groupname, $grouptype, $GLOBALS['username']);
			DisplayGroupList();
			break;
		case 'delete': DeleteGroup($id); break;
		case 'addsubjectstogroup':
			AddSubjectsToGroup($subjectgroupid, $uids, $seriesids, $modality);
			ViewGroup($subjectgroupid, $measures, $columns, $groupmeasures);
			break;
		case 'addstudiestogroup':
			AddStudiesToGroup($studygroupid, $seriesids, $studyids, $modality);
			ViewGroup($studygroupid, $measures, $columns, $groupmeasures);
开发者ID:EugeniaRadulescu,项目名称:nidb,代码行数:31,代码来源:groups.php

示例5: GetVariable

<body>
	<div id="wrapper">
<?
	//require "config.php";
	require "functions.php";
	require "includes.php";
	require "menu.php";

	/* setup variables */
	$action = GetVariable("action");
	$year = GetVariable("year");
	$datestart = GetVariable("datestart");
	$dateend = GetVariable("dateend");
	$modality = GetVariable("modality");
	$studysite = GetVariable("studysite");
	
	switch ($action) {
		case 'yearstudy':
			DisplayMenu();
			DisplayYear($year, "studies", $modality, $studysite);
			break;
		case 'viewreport':
			ViewReport($datestart, $dateend, $modality, $studysite);
			break;
		case 'menu':
		default:
			DisplayMenu();
			break;
	}
	
开发者ID:EugeniaRadulescu,项目名称:nidb,代码行数:29,代码来源:reports.php

示例6: GetVariable

	<head>
		<link rel="icon" type="image/png" href="images/squirrel.png">
		<title><?php 
echo $_SERVER['HTTP_HOST'];
?>
 - NiDB</title>
	</head>

<body>
	<div id="wrapper">
<?php 
require "functions.php";
require "includes.php";
/* ----- setup variables ----- */
$vars['action'] = GetVariable("action");
$vars['instanceid'] = GetVariable("instanceid");
switch ($vars['action']) {
    case 'switchinstance':
        SwitchInstance($vars['instanceid']);
        break;
}
/* put this here so that the instance ID can be changed before displaying things */
require "menu.php";
/* -------------------------------------------- */
/* ------- SwitchInstance --------------------- */
/* -------------------------------------------- */
function SwitchInstance($id)
{
    $sqlstring = "select instance_name from instance where instance_id = {$id}";
    $result = MySQLQuery($sqlstring, __FILE__, __LINE__);
    $row = mysql_fetch_array($result, MYSQL_ASSOC);
开发者ID:pmolfese,项目名称:nidb,代码行数:31,代码来源:index.php

示例7: GetVariable

require "functions.php";
?>

<html>
	<head>
		<link rel="icon" type="image/png" href="images/squirrel.png">
		<title>Verify email address</title>
		<META http-equiv="refresh" content="10;URL=login.php">
	</head>

<body>
<link rel="stylesheet" type="text/css" href="style.css">
<br><br>
<?php 
/* ----- setup variables ----- */
$k = GetVariable("k");
/* database connection */
$link = mysql_connect($GLOBALS['db_hostname'], $GLOBALS['cfg']['mysqluser'], $GLOBALS['cfg']['mysqlpassword']) or die("Could not connect: " . mysql_error());
mysql_select_db($GLOBALS['cfg']['mysqldatabase']) or die("Could not select database<br>");
/* validate the key and redirect as necessary */
if (Validate($k)) {
    DisplaySuccess();
} else {
    DisplayFail();
}
/* -------------------------------------------- */
/* ------- DisplaySuccess --------------------- */
/* -------------------------------------------- */
function DisplaySuccess()
{
    ?>
开发者ID:pmolfese,项目名称:nidb,代码行数:31,代码来源:v.php

示例8: array

        } else {
            return array('error'=> 'Could not save uploaded file.' .
                'The upload was cancelled, or server error encountered');
        }
        //return array('error'=>'should not be here 8');
        
    }    
}

//echo "check 100\n";

	
/* params are stored in $_GET */
$modality = strtolower(GetVariable("modality"));
$studyid = GetVariable("studyid");
$seriesid = GetVariable("seriesid");

//echo $modality;
if ($modality == "mr") {
	$uploadpath = $GLOBALS['dicomincomingpath'] . '/';
}
elseif ($modality == "mrbeh") {
	$sqlstring = "select a.series_num, b.study_num, d.uid from mr_series a left join studies b on a.study_id = b.study_id left join enrollment c on b.enrollment_id = c.enrollment_id left join subjects d on c.subject_id = d.subject_id left join projects e on c.project_id = e.project_id where a.mrseries_id = $seriesid";
	
	$result2 = mysql_query($sqlstring) or die("Query failed: " . mysql_error() . "<br><i>$sqlstring</i><br>");
	$row = mysql_fetch_array($result2, MYSQL_ASSOC);
	$study_num = $row['study_num'];
	$uid = $row['uid'];
	$series_num = $row['series_num'];
	$uploadpath = $GLOBALS['cfg']['archivedir'] . "/$uid/$study_num/$series_num/beh/";
	if (!file_exists($uploadpath)) {
开发者ID:EugeniaRadulescu,项目名称:nidb,代码行数:31,代码来源:upload.php

示例9: GetVariable

<body>
	<div id="wrapper">
<?php 
require "functions.php";
require "includes.php";
require "nidbapi.php";
//PrintVariable($_POST,'POST');
/* ----- setup variables ----- */
$action = GetVariable("action");
$projectid = GetVariable("projectid");
$protocolgroupid = GetVariable("protocolgroupid");
$projectprotocolid = GetVariable("projectprotocolid");
$criteria = GetVariable("criteria");
$numpersession = GetVariable("numpersession");
$numtotal = GetVariable("numtotal");
/* determine action */
switch ($action) {
    case 'addprotocol':
        AddProjectProtocol($projectid, $protocolgroupid, $criteria, $numpersession, $numtotal);
        DisplayProjectProtocolList($projectid);
        break;
    case 'deleteprotocol':
        DeleteProjectProtocol($projectprotocolid);
        DisplayProjectProtocolList($projectid);
        break;
    default:
        DisplayProjectProtocolList($projectid);
}
/* ------------------------------------ functions ------------------------------------ */
/* -------------------------------------------- */
开发者ID:pmolfese,项目名称:nidb,代码行数:30,代码来源:adminprojectprotocols.php

示例10: GetVariable

             $typeList[] = GetVariable('ttype_' . $i);
         }
         if (GetVariable('type_' . $i) == "BELONGSTO" || GetVariable('type_' . $i) == "HASMANY") {
             $classList[] = GetVariable('tclass_' . $i);
         } else {
             $classList[] = '';
         }
     } else {
         //attribute may have been removed. proceed to next row
         $z++;
     }
 }
 $_SESSION['objectName'] = $objectName;
 $_SESSION['language'] = $language = GetVariable('language');
 $_SESSION['wrapper'] = $wrapper = GetVariable('wrapper');
 $_SESSION['pdoDriver'] = $pdoDriver = GetVariable('pdoDriver');
 if ($GLOBALS['configuration']['soapEngine'] == "nusoap") {
     $client = new soapclient($GLOBALS['configuration']['soap'], true);
     $params = array('objectName' => $objectName, 'attributeList' => $attributeList, 'typeList' => $typeList, 'language' => $language, 'wrapper' => $wrapper, 'pdoDriver' => $pdoDriver);
     $object = base64_decode($client->call('GenerateObject', $params));
     //echo $client->debug_str;
     $_SESSION['objectString'] = $object;
     $_SESSION['attributeList'] = serialize($attributeList);
     $_SESSION['typeList'] = serialize($typeList);
     $_SESSION['classList'] = serialize($classList);
 } else {
     if ($GLOBALS['configuration']['soapEngine'] == "phpsoap") {
         $client = new SoapClient('services/pog.wsdl', array('cache_wsdl' => 0));
         try {
             $object = base64_decode($client->GenerateObject($objectName, $attributeList, $typeList, $language, $wrapper, $pdoDriver, $classList));
             $_SESSION['objectString'] = $object;
开发者ID:rafasashi,项目名称:php-object-generator,代码行数:31,代码来源:index2.php

示例11: GetVariable

	</head>

<body>
	<div id="wrapper">
<?php 
require "functions.php";
require "includes.php";
require "nidbapi.php";
require "menu.php";
/* ----- setup variables ----- */
$action = GetVariable("action");
$id = GetVariable("id");
$defaultinstanceid = GetVariable("defaultinstanceid");
$instancename = GetVariable("instancename");
$users = GetVariable("users");
$userinstanceid = GetVariable("userinstanceid");
//print_r($_POST);
/* determine action */
switch ($action) {
    case 'editform':
        DisplayPrefsForm("edit", $id);
        break;
    case 'addform':
        DisplayPrefsForm("add", "");
        break;
    case 'update':
        UpdatePrefs($id, $instancename, $users);
        DisplayPrefsList();
        break;
    case 'add':
        AddPrefs($prefsname);
开发者ID:pmolfese,项目名称:nidb,代码行数:31,代码来源:csprefs.php

示例12: GetVariable

	$c['city'] = GetVariable("city");
	$c['state'] = GetVariable("state");
	$c['zip'] = GetVariable("zip");
	$c['country'] = GetVariable("country");
	$c['institution'] = GetVariable("institution");
	$c['dept'] = GetVariable("dept");
	$c['website'] = GetVariable("website");
	
	$sendmail_dailysummary = GetVariable("sendmail_dailysummary");
	$enablebeta = GetVariable("enablebeta");
	$id = GetVariable("id");
	$instanceid = GetVariable("instanceid");
	$protocol = GetVariable("protocol");
	$variable = GetVariable("variable");
	$criteria = GetVariable("criteria");
	$value = GetVariable("value");

	/* ----- determine which action to take ----- */
	switch ($action) {
		case 'saveoptions':
			SaveOptions($username, $password, $c, $sendmail_dailysummary, $enablebeta);
			DisplayOptions($username);
			break;
		case 'addnot':
			AddNotification($username, $protocol, $variable, $criteria, $value);
			DisplayOptions($username);
			break;
		case 'deletenot':
			DeleteNotification($id);
			DisplayOptions($username);
			break;
开发者ID:EugeniaRadulescu,项目名称:nidb,代码行数:31,代码来源:users.php

示例13: GetVariable

	require "menu.php";
	
	/* setup variables */
	$action = GetVariable("action");
	$enrollmentid = GetVariable("enrollmentid");
	$experimentid = GetVariable("experimentid");
	$formid = GetVariable("formid");
	$val_strings = GetVariables("string");
	$val_numbers = GetVariables("number");
	$val_texts = GetVariables("text");
	$val_dates = GetVariables("date");
	$val_files = GetVariables("file");
	$experimentor = GetVariable("experimentor");
	$experimentdate = GetVariable("experimentdate");
	$label = GetVariable("label");
	$notes = GetVariable("notes");

	//print_r($val_text);
	
	/* determine action */
	switch ($action) {
		case 'create':
			CreateForm($enrollmentid, $formid, $username);
			break;
		case 'completed':
			SetAsComplete($experimentid);
			ViewForm($experimentid, "view");
			break;
		case 'save':
			$experimentid = SaveForm($enrollmentid, $formid, $val_strings, $val_numbers, $val_texts, $val_dates, $val_files, $experimentor, $experimentdate, $username, $label, $notes);
			ViewForm($experimentid, "view");
开发者ID:EugeniaRadulescu,项目名称:nidb,代码行数:31,代码来源:assessments.php

示例14: GetVariable

		<link rel="icon" type="image/png" href="images/squirrel.png">
		<title>NiDB - Mass email</title>
	</head>

<body>
	<div id="wrapper">
<?php 
require "functions.php";
require "includes.php";
require "nidbapi.php";
require "menu.php";
/* ----- setup variables ----- */
$action = GetVariable("action");
$emailbody = GetVariable("emailbody");
$emailsubject = GetVariable("emailsubject");
$emailto = GetVariable("emailto");
/* determine action */
switch ($action) {
    case 'sendemail':
        SendEmail($emailbody, $emailsubject, $emailto);
        break;
    default:
        DisplayEmailForm();
}
/* ------------------------------------ functions ------------------------------------ */
/* -------------------------------------------- */
/* ------- DisplayEmailForm ------------------- */
/* -------------------------------------------- */
function DisplayEmailForm()
{
    $urllist['Administration'] = "cleanup.php";
开发者ID:pmolfese,项目名称:nidb,代码行数:31,代码来源:adminemail.php

示例15: GetVariable

	$requestvars['publicdownloadregisterrequired'] = GetVariable("publicdownloadregisterrequired");
	$requestvars['publicdownloadexpire'] = GetVariable("publicdownloadexpire");
	$requestvars['dicomtags'] = GetVariable("dicomtags");
	$requestvars['timepoints'] = GetVariable("timepoints");
	$requestvars['behformat'] = GetVariable("behformat");
	$requestvars['behdirnameroot'] = GetVariable("behdirnameroot");
	$requestvars['behdirnameseries'] = GetVariable("behdirnameseries");
    $requestvars['subjectmeta'] = GetVariable("subjectmeta");
    $requestvars['subjectdata'] = GetVariable("subjectdata");
    $requestvars['subjectphenotype'] = GetVariable("subjectphenotype");
    $requestvars['subjectforms'] = GetVariable("subjectforms");
    $requestvars['studymeta'] = GetVariable("studymeta");
    $requestvars['studydata'] = GetVariable("studydata");
    $requestvars['seriesmeta'] = GetVariable("seriesmeta");
    $requestvars['seriesdata'] = GetVariable("seriesdata");
    $requestvars['allsubject'] = GetVariable("allsubject");
	
	
	$numpostvars = count($_POST);
	$maxnumvars = ini_get('max_input_vars');
	
	//echo "<pre>";
	//print_r($_POST);
	//echo "Received " . count($_POST) . " variables<br>";
	//echo "Limit is " . ini_get('max_input_vars') . " variables<br>";
	//echo "</pre>";
	
	if ($numpostvars >= $maxnumvars) {
		?>
		<div style="background-color: orange">PHP has an inherent limit [<?php 
echo $maxnumvars;
开发者ID:EugeniaRadulescu,项目名称:nidb,代码行数:31,代码来源:search.php


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