convert to php array # $scope_object = json_decode($_REQUEST['subtarget'], true); $scope_object = json_decode(json_decode($_REQUEST['subtarget'], true), true); if (isset($scope_object['from']) && $scope_object['from'] != "search") { /* user is performing an object search and is viewing this popup only for scope selection for search popup; block below only shown when user is allowed to switch pages */ $showpageselector = false; } // transform object into php array $scope = (array) $scope_object; if (!isset($scope['recognition'])) { $scope['recognition'] = 0; } if (!isset($scope['collection'])) { $scope['collection'] = 0; } if (in_array($scope['target'], array('projectlist', 'overview', 'involvedcompanies', 'photos', 'community'))) { // allowed tab } else { // no valid tab; use default one $scope['target'] = "overview"; } // switch that determines when the togglearea should be displayed if($scope['company'] > 0 || $scope['collection'] > 0 || $scope['recognition'] > 0) { $showtogglearea = true; } else { $showtogglearea = false; } } require_once CROOT."/midware/Search.class.php"; require_once CROOT."/midware/Collection.class.php"; require_once CROOT."/midware/Recognition.class.php"; require_once CROOT."/midware/SavedSearch.class.php"; // continents array with name and id as row keys $vars['continents'] = Search::findRegions(array("groupid" => 1, "lng" => $_SESSION['account_language'])); // countries array with name and id as row keys $vars['countries'] = Search::findRegions(array("groupid" => 3, "lng" => $_SESSION['account_language'], "limit" => 300)); // city array with name and id as row keys $vars['worldcities'] = Search::findRegions(array("groupid" => 6, "lng" => $_SESSION['account_language'], "ids" => array(285820932, 362859615, 295942576, 194232891, 951169060, 953181129, 705993662, 844521905, 817554710, 528932566, 815319035, 829553761, 903781939, 467801611, 922405426, 200021548, 925489696, 925255663, 320766792, 431589155, 582035402, 837334179, 11441459, 491573688, 152370567, 605609594, 922593839, 505452022, 557924709), "limit" => 100)); // channels array $vars['all_channels'] = Tools::getAllChannels(array("is_visible = TRUE", "is_public = TRUE")); ?>
:
$row) : ?>
checked="checked" value="">
:
checked="checked" value="0">
0) :?> getName(); ?>
:
checked="checked">
checked="checked">
checked="checked">
checked="checked">
:
0) :?> $scope['company'] ); $result = Search::searchCompanies($searchparams); $currentcompanyname = $result['data'][0]['name']; ?>
checked="checked" value="0">
:
'public')); ?> 0)): ?>
0):?> checked="checked"/>
'recognition_type.1')); $certificates = Recognition::getRecognitions(array('recognition_type' => 'recognition_type.2')); ?> 0): ?>
0):?> checked="checked"/>
0): ?>
0):?> checked="checked"/>
$_SESSION['account_id'])); ?> 0): ?>
(under construction)
*/ ?>