• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP thisdoc函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: log__link

function log__link()
{
    $post = $_REQUEST;
    unset($post['SID']);
    unset($post['PHPSESSID']);
    $arg_list = func_get_args();
    foreach ($arg_list as $arg) {
        $var = explode("=", $arg);
        $post[$var[0]] = $var[1];
    }
    $link = '<A HREF="' . thisdoc() . '?';
    foreach ($post as $key => $value) {
        $link .= $key . '=' . urlencode($value) . '&';
    }
    $link .= '">';
    return $link;
}
开发者ID:danorama,项目名称:orsee,代码行数:17,代码来源:logfunctions.php


示例2: lang

 if ($mode == 'inbox') {
     echo lang('mailbox_inbox');
 } elseif ($mode == 'experiment') {
     echo lang('experiment') . ': ' . $experiment['experiment_name'];
 } elseif ($mode == 'session') {
     echo lang('session') . ': ' . $experiment['experiment_name'] . ', ' . session__build_name($session);
 } elseif ($mode == 'participant') {
     echo lang('participant') . ': ' . $participant['email'];
 } elseif ($mode == 'mailbox') {
     echo lang('email_mailbox') . ': ' . $mailboxes[$id];
 } elseif ($mode == 'listmailboxes') {
     echo lang('all_mailboxes');
 } elseif ($mode == 'trash') {
     echo lang('mailbox_trash');
     if (check_allow('emails_trash_empty')) {
         echo button_link(thisdoc() . '?mode=trash&empty_trash=true', lang('email_empty_trash'), 'trash') . '<BR>';
     }
 }
 echo '
         </TD></TR></TABLE>
     </TD></TR>
     <TR><TD align="center">';
 // list emails
 if ($mode == 'listmailboxes') {
     // show mail boxes
     email__show_mail_boxes();
 } elseif ($mode == 'search') {
     // search for emails and list them
 } else {
     echo javascript__email_popup();
     email__list_emails($mode, $id, $rmode, $url_string);
开发者ID:danorama,项目名称:orsee,代码行数:31,代码来源:emails_main.php


示例3: lang

        } else {
            $style = 'orsee';
        }
    }
}
if ($proceed) {
    echo '<center>';
    echo '<TABLE class="or_page_subtitle" style="background: ' . $color['page_subtitle_background'] . '; color: ' . $color['page_subtitle_textcolor'] . '; width: 80%;">
            <TR><TD align="center">
            ' . lang('style') . ' ' . $style . '
            </TD>
            </TR></TABLE>';
    echo '
            <TABLE style="width: 80%;">
            <TR><TD align="right">
            <FORM id="styleform" action="' . thisdoc() . '" method="GET">' . lang('edit_colors_for_style') . survey__render_select_list(array('submitvarname' => 'style', 'option_values' => $styles, 'option_values_lang' => $styles, 'value' => $style, 'include_none_option' => 'n')) . '<INPUT class="button" type="submit" value="' . lang('go') . '"></FORM>
            </TD>
            </TR></TABLE>';
    $pars = array(':style' => $style);
    $query = "select * from " . table('options') . "\n            where option_type='color'\n            and option_style= :style\n            order by option_name";
    $result = or_query($query, $pars);
    $mycolors = array();
    while ($line = pdo_fetch_assoc($result)) {
        $mycolors[$line['option_name']] = $line['option_value'];
    }
    if (check_allow('settings_edit_colors') && isset($_REQUEST['change']) && $_REQUEST['change']) {
        $newcolors = $_REQUEST['mycolors'];
        $now = time();
        $pars_new = array();
        $pars_update = array();
        foreach ($newcolors as $oname => $ovalue) {
开发者ID:danorama,项目名称:orsee,代码行数:31,代码来源:options_colors.php


示例4: experiment__current_experiment_summary


//.........这里部分代码省略.........
        }
        $query = "SELECT experiment_id, \n\t\t\t\t\tcount(*) as num_registered \n\t\t\t\t\tFROM " . table('participate_at') . "  \n\t\t\t\t\tWHERE session_id!=0 \n\t\t\t\t\tAND experiment_id IN (" . implode(',', $eids) . ")\n\t\t\t\t\tGROUP BY experiment_id";
        $result = or_query($query);
        while ($line = pdo_fetch_assoc($result)) {
            $experiments[$line['experiment_id']]['num_registered'] = $line['num_registered'];
        }
        $participated_clause = expregister__get_pstatus_query_snippet("participated");
        $query = "SELECT experiment_id, \n\t\t\t\t\tcount(*) as num_participated \n\t\t\t\t\tFROM " . table('participate_at') . "  \n\t\t\t\t\tWHERE " . $participated_clause . " \n\t\t\t\t\tAND experiment_id IN (" . implode(',', $eids) . ")\n\t\t\t\t\tGROUP BY experiment_id";
        $result = or_query($query);
        while ($line = pdo_fetch_assoc($result)) {
            $experiments[$line['experiment_id']]['num_participated'] = $line['num_participated'];
        }
        //
        if ($finished == 'y') {
            $noshow_clause = expregister__get_pstatus_query_snippet("noshow");
            // get showup counts at session level
            // couldn't get much better performance if separating counts
            $query = "SELECT " . table('participate_at') . ".experiment_id, \n\t\t\t\t\t\tcount(*) as comp_num_registered,\n\t\t\t\t\t\tsum(if(" . $noshow_clause . ",1,0)) as comp_num_noshow  \n\t\t\t\t\t\tFROM " . table('participate_at') . ", " . table('sessions') . " \n\t\t\t\t\t\tWHERE " . table('participate_at') . ".session_id=" . table('sessions') . ".session_id \n\t\t\t\t\t\tAND (" . table('sessions') . ".session_status='completed' OR " . table('sessions') . ".session_status='balanced') \n\t\t\t\t\t\tAND " . table('participate_at') . ".experiment_id IN (" . implode(',', $eids) . ")\n\t\t\t\t\t\tGROUP BY " . table('participate_at') . ".experiment_id";
            $result = or_query($query);
            while ($line = pdo_fetch_assoc($result)) {
                $experiments[$line['experiment_id']]['comp_num_registered'] = $line['comp_num_registered'];
                $experiments[$line['experiment_id']]['comp_num_noshow'] = $line['comp_num_noshow'];
            }
        }
        if (count($sids) > 0) {
            $query = "SELECT experiment_id, session_id, \n\t\t\t\t\t\tcount(*) as num_registered \n\t\t\t\t\t\tFROM " . table('participate_at') . " \n\t\t\t\t\t\tWHERE session_id IN (" . implode(',', $sids) . ")\n\t\t\t\t\t\tGROUP BY experiment_id, session_id";
            $result = or_query($query);
            while ($line = pdo_fetch_assoc($result)) {
                $experiments[$line['experiment_id']]['sessions'][$line['session_id']]['num_registered'] = $line['num_registered'];
            }
        }
    }
    echo '
 		
 		<center>
		<BR>
		<table class="or_panel">';
    if ($show_filter) {
        echo '<TR><TD colspan=2>
					<FORM action="' . thisdoc() . '"><TABLE border=0><TR><TD>' . lang('restrict_list_to_experiments_of_class') . '</TD><TD>';
        echo experiment__experiment_class_select_field('class_search', $class_arr, true, array('cols' => 30, 'picker_maxnumcols' => 3));
        echo '	</TD><TD rowspan=2 valign=middle>
					<INPUT class="button" style="font-size: 8pt; margin: 0;" type=submit name="show" value="' . lang('show') . '">
					</TD></TR><TR><TD>' . lang('restrict_list_to_experimenters') . '</TD><TD>';
        echo experiment__experimenters_select_field("experimenter_search", $experimenter_arr, true, array('cols' => 30, 'tag_color' => '#f1c06f', 'picker_color' => '#c58720', 'picker_maxnumcols' => 3));
        echo '	</TD></TR></TABLE></FORM>
			</TD></TR>';
    }
    echo '
		<TR>
		<TD colspan=2>
			<TABLE width="100%" border=0 class="or_panel_title"><TR><TD style="background: ' . $color['panel_title_background'] . '; color: ' . $color['panel_title_textcolor'] . '">';
    if ($finished == "y") {
        echo lang('finished_experiments');
    } elseif ($experimenter) {
        echo lang('my_experiments');
    } else {
        echo lang('experiments');
    }
    echo '</TD><TD style="background: ' . $color['panel_title_background'] . '; color: ' . $color['panel_title_textcolor'] . '">';
    if ($addbutton && check_allow('experiment_edit')) {
        echo button_link("experiment_edit.php?addit=true", lang('register_new_experiment'), 'plus-circle');
    }
    if (!$experimenter) {
        if ($finished == "n") {
            echo button_link("experiment_old.php", lang('finished_experiments'), 'fast-backward');
        } else {
            echo button_link("experiment_main.php", lang('current_experiments'), 'fast-forward');
        }
    }
    echo '</TD></TR>
			</TABLE>
		</TD></TR>
		<TR><TD colspan=2>';
    echo count($experiments) . ' ';
    if ($finished == "n") {
        echo lang('xxx_current_experiments');
    } else {
        echo lang('xxx_finished_experiments');
    }
    echo '
		</TD></TR>
		<TR><TD width="5%">&nbsp;&nbsp;&nbsp;</TD>
		<TD width="95%" colspan=2>

			<TABLE border=0 width="100%" cellspacing="0">';
    foreach ($experiments as $id => $exp) {
        if ($finished == "n") {
            experiment__experiments_format_alist($exp);
        } else {
            experiment__old_experiments_format_alist($exp);
        }
    }
    echo '</TABLE>
		</TD></TR>
		</TABLE>
		</center>
		<BR><BR>
		';
}
开发者ID:kfarr2,项目名称:psu-orsee,代码行数:101,代码来源:experiments.php


示例5: lang

						<TD style="background: ' . $color['panel_title_background'] . '; color: ' . $color['panel_title_textcolor'] . '">
							' . lang('do_you_agree_rules_privacy') . '
						</TD>
						</TR></TABLE>
					</TD></TR>
						<TR><TD align=center>
							<INPUT class="button" type="submit" name="accept_rules" value="' . lang('yes') . '">&nbsp;&nbsp;&nbsp;
							<INPUT class="button" type="submit" name="notaccept_rules" value="' . lang('no') . '">
						</TD></TR>
					</TABLE>
					</FORM>
					</center>';
            }
        } else {
            $_SESSION['rules'] = true;
            redirect("public/" . thisdoc());
        }
        $proceed = false;
    }
}
if ($proceed) {
    echo '<center>';
    $form = true;
    $errors__dataform = array();
    if (isset($_REQUEST['add'])) {
        $continue = true;
        if (!isset($_REQUEST['captcha']) || !isset($_SESSION['captcha_string']) || $_REQUEST['captcha'] != $_SESSION['captcha_string']) {
            if (!isset($_REQUEST['subscriptions']) || !is_array($_REQUEST['subscriptions'])) {
                $_REQUEST['subscriptions'] = array();
            }
            $_REQUEST['subscriptions'] = id_array_to_db_string($_REQUEST['subscriptions']);
开发者ID:kfarr2,项目名称:orsee,代码行数:31,代码来源:participant_create.php


示例6: html__build_menu

function html__build_menu($menu, $logged_in, $current_user_data_box, $orientation = "vertical")
{
    global $settings__root_url, $color, $lang, $menu__area, $settings;
    $addp = "";
    $ignore_p = array('participant_create.php', 'participant_confirm.php', 'participant_forgot.php');
    if (in_array($settings['subject_authentication'], array('token', 'migration'))) {
        if (isset($_REQUEST['p']) && !in_array(thisdoc(), $ignore_p)) {
            $addp = "?p=" . urlencode($_REQUEST['p']);
        }
    }
    $list = '';
    $final_menu = array();
    foreach ($menu as $item) {
        $continue = true;
        if ($continue && $item['entrytype'] != 'space') {
            $continue = false;
            if ($item['show_if_not_logged_in'] && !$logged_in) {
                $continue = true;
            }
            if ($item['show_if_logged_in'] && $logged_in) {
                $continue = true;
            }
        }
        if ($continue && $item['entrytype'] != 'space') {
            if ($item['menu_area'] == 'calendar' && $settings['show_public_calendar'] != 'y') {
                $continue = false;
            } elseif ($item['menu_area'] == 'rules' && $settings['show_public_rules_page'] != 'y') {
                $continue = false;
            } elseif ($item['menu_area'] == 'privacy' && $settings['show_public_privacy_policy'] != 'y') {
                $continue = false;
            } elseif ($item['menu_area'] == 'faqs' && $settings['show_public_faqs'] != 'y') {
                $continue = false;
            } elseif ($item['menu_area'] == 'impressum' && $settings['show_public_legal_notice'] != 'y') {
                $continue = false;
            } elseif ($item['menu_area'] == 'contact' && $settings['show_public_contact'] != 'y') {
                $continue = false;
            }
        }
        if ($continue) {
            if ($item['entrytype'] == 'space') {
                $item['entrytype'] = 'head';
                $item['menu_area'] = '';
                $item['content'] = '';
                $item['bg'] = '';
            } elseif ($item['menu_area'] == 'current_user_data_box') {
                $item['entrytype'] = 'head';
                $item['content'] = '<FONT class="menu_title" color="' . $color['menu_title'] . '">' . $current_user_data_box . '</FONT>';
                $item['bg'] = '';
            } else {
                if (preg_match("/^" . $item['menu_area'] . "/i", $menu__area)) {
                    $item['bg'] = ' bgcolor="' . $color['menu_item_highlighted_background'] . '"';
                } else {
                    $item['bg'] = "";
                }
                if (!isset($item['link'])) {
                    $link = '';
                } elseif (substr($item['link'], 0, 1) == '/') {
                    $link = $settings__root_url . $item['link'] . $addp;
                } else {
                    $link = $item['link'];
                }
                if ($item['entrytype'] == 'link') {
                    $item['content'] = '<A HREF="' . $link . '" class="menu_item"><FONT color="' . $color['menu_item'] . '">';
                } elseif ($item['entrytype'] == 'headlink') {
                    $item['content'] = '<A HREF="' . $link . '" class="menu_title"><FONT color="' . $color['menu_title'] . '">';
                } elseif ($item['entrytype'] == 'head') {
                    $item['content'] = '<FONT class="menu_title" color="' . $color['menu_title'] . '">';
                }
                $item['content'] .= lang($item['lang_item']);
                if ($item['entrytype'] == 'link') {
                    $item['content'] .= '</FONT></A>';
                } elseif ($item['entrytype'] == 'headlink') {
                    $item['content'] .= '</FONT></A>';
                } elseif ($item['entrytype'] == 'head') {
                    $item['content'] .= '</FONT>';
                }
                if ($item['entrytype'] != 'link') {
                    $item['entrytype'] = 'head';
                }
            }
        }
        if ($continue) {
            $final_menu[] = $item;
        }
    }
    if ($orientation == "vertical") {
        $list .= '<TABLE border=0>';
        foreach ($final_menu as $item) {
            if (!isset($item['link'])) {
                $link = '';
            } elseif (substr($item['link'], 0, 1) == '/') {
                $link = $settings__root_url . $item['link'] . $addp;
            } else {
                $link = $item['link'];
            }
            if ($item['entrytype'] == 'head') {
                $list .= '<tr><td colspan="3">&nbsp;</td></tr>';
            }
            $list .= '<TR>';
            if ($item['entrytype'] != 'head') {
//.........这里部分代码省略.........
开发者ID:kfarr2,项目名称:psu-orsee,代码行数:101,代码来源:html_stuff.php


示例7: array

    if (isset($_REQUEST['delete_redundant']) && $_REQUEST['delete_redundant']) {
        $pars = array();
        foreach ($redundant as $r) {
            $pars[] = array(':mysql_column_name' => $r);
        }
        $query = "DELETE FROM " . table('profile_fields') . " WHERE mysql_column_name = :mysql_column_name";
        $done = or_query($query, $pars);
        message(lang('redundant_configurations_deleted'));
        redirect('admin/' . thisdoc());
    }
}
if ($proceed) {
    echo '<center>';
    if (count($redundant) > 0) {
        $m = lang('pfields_redundant_configurations_message') . '<BR><B>' . implode(", ", $redundant) . '</B>';
        $m .= '<BR><FORM action="' . thisdoc() . '" method="POST">
                <INPUT class="button" type="submit" name="delete_redundant" value="' . lang('yes') . '">
                </FORM>
            </p>';
        show_message($m);
        echo '<BR><BR>';
    }
    echo '<TABLE class="or_listtable" style="width: 80%;"><thead>';
    echo '<TR style="background: ' . $color['list_header_background'] . '; color: ' . $color['list_header_textcolor'] . ';">';
    echo '<TD>' . lang('mysql_column_name') . '</TD>';
    echo '<TD>' . lang('mysql_column_type') . '</TD>';
    echo '<TD>' . lang('mysql_column_is_indexed') . '</TD>';
    echo '<TD>' . lang('orsee_is_configured') . '</TD>';
    echo '<TD>' . lang('enabled?') . '</TD>';
    echo '<TD>' . lang('profile_field_type') . '</TD>';
    echo '<TD></TD>';
开发者ID:danorama,项目名称:orsee,代码行数:31,代码来源:options_participant_profile.php


示例8: button_link

        echo '
			<TD>
						' . button_link('lang_lang_add.php', lang('add_language'), 'plus') . '
                        </TD>';
    }
    if (check_allow('lang_lang_delete')) {
        echo '
			<TD>
					' . button_link('lang_lang_delete.php', lang('delete_language'), 'times') . '
                        </TD>';
    }
    echo '		</TR>
		</TABLE><BR><BR>
		';
    // show languages
    echo '<FORM action="' . thisdoc() . '">';
    echo '<TABLE class="or_listtable" style="width: 80%;"><thead>
			<TR style="background: ' . $color['list_header_background'] . '; color: ' . $color['list_header_textcolor'] . ';">
				<TD colspan=2>' . lang('installed_languages') . '</TD>
				<TD>' . lang('available_in_public_area') . '</TD>
				<TD>' . lang('available_for_participants') . '</TD>
				<TD></TD>
				<TD></TD>
			</TR></thead>
			<tbody>';
    $shade = false;
    foreach ($languages as $language) {
        echo '<TR';
        if ($shade) {
            echo ' bgcolor="' . $color['list_shade1'] . '"';
            $shade = false;
开发者ID:kfarr2,项目名称:psu-orsee,代码行数:31,代码来源:lang_main.php


示例9: lang

             echo '<BR>' . lang('found_active_permanent_query');
         }
     }
     echo '</TD></TR></TABLE>';
     echo '<BR><BR>';
     $query_array = query__get_query_array($posted_query['query']);
     $active_clause = array('query' => participant_status__get_pquery_snippet("eligible_for_experiments"), 'pars' => array());
     $exptype_clause = array('query' => "subscriptions LIKE (:experiment_ext_type)", 'pars' => array(':experiment_ext_type' => "%|" . $experiment['experiment_ext_type'] . "|%"));
     $notyetassigned_clause = array('query' => "participant_id NOT IN (SELECT participant_id FROM " . table('participate_at') . " WHERE experiment_id= :experiment_id)", 'pars' => array(':experiment_id' => $experiment_id));
     $additional_clauses = array($active_clause, $exptype_clause, $notyetassigned_clause);
     $query = query__get_query($query_array, $query_id, $additional_clauses, $sort);
     //echo '<TABLE width="70%" border=0><TR><TD><B>Query:</B></TD></TR><TR><TD>';
     //echo $query['query'];
     //echo '</TD></TR></TABLE>';
     //dump_array($query['pars'],"Parameters");
     echo '<FORM name="part_list" method="POST" action="' . thisdoc() . '">
             <INPUT type=hidden name=experiment_id value="' . $experiment_id . '">';
     // show list of results
     $assign_ids = query_show_query_result($query, "assign");
     $_SESSION['assign_ids_' . $experiment_id] = $assign_ids;
     echo '</FORM>';
 } else {
     if (!isset($_SESSION['lastquery_assign_' . $experiment_id])) {
         $_SESSION['lastquery_assign_' . $experiment_id] = '';
     }
     $load_query = $_SESSION['lastquery_assign_' . $experiment_id];
     if (!$load_query) {
         $load_query = query__load_default_query('assign', $experiment_id);
     }
     $hide_modules = array('statusids');
     $status_query = participant_status__get_pquery_snippet("eligible_for_experiments");
开发者ID:bgreiner,项目名称:orsee,代码行数:31,代码来源:experiment_add_participants.php


示例10: query__get_permanent

                 </TR>';
     }
 }
 if ($settings['allow_permanent_queries'] == 'y') {
     $perm_queries = query__get_permanent($experiment_id);
     if (count($perm_queries) > 0) {
         $json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
         echo '<TR><TD colspan=3><B>' . lang('found_active_permanent_query') . '</B></TD></TR>';
         echo '<TR><TD colspan=3><TABLE width="100%" border="0">';
         foreach ($perm_queries as $pquery) {
             $posted_query = $json->decode($pquery['json_query']);
             $pseudo_query_array = query__get_pseudo_query_array($posted_query['query']);
             $pseudo_query_display = query__display_pseudo_query($pseudo_query_array, false);
             echo '<TR><TD>' . $pseudo_query_display . '</TD><TD>';
             if (check_allow('experiment_assign_query_permanent_deactivate')) {
                 echo button_link(thisdoc() . '?experiment_id=' . $experiment_id . '&permanent_deactivate=true', lang('deactivate_permanent_query'), 'toggle-off');
             }
             echo '</TD></TR>';
         }
         '</TABLE></TD></TR>';
     }
 }
 echo '          <TR><TD colspan=3>
         <TABLE class="or_option_buttons_box" style="background: ' . $color['options_box_background'] . ';">';
 $buttons = array();
 if (check_allow('experiment_assign_participants')) {
     $buttons[] = button_link('experiment_add_participants.php?experiment_id=' . $experiment['experiment_id'], lang('assign_subjects'), 'plus-square');
     $buttons[] = button_link('experiment_drop_participants.php?experiment_id=' . $experiment['experiment_id'], lang('delete_assigned_subjects'));
 }
 if (check_allow('experiment_invitation_edit')) {
     $buttons[] = button_link('experiment_mail_participants.php?experiment_id=' . $experiment['experiment_id'], lang('send_invitations'), 'envelope');
开发者ID:danorama,项目名称:orsee,代码行数:31,代码来源:experiment_show.php


示例11: redirect

        $type = $_REQUEST['type'];
    } else {
        redirect('admin/options_main.php');
    }
}
if ($proceed) {
    if (isset($_REQUEST['search_submit'])) {
        $json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
        if (isset($_REQUEST['form'])) {
            $posted_query = $_REQUEST['form'];
        } else {
            $posted_query = array('query' => array());
        }
        $posted_query_json = $json->encodeUnsafe($posted_query);
        $done = query__save_default_query($posted_query_json, 'default_' . $type);
        redirect('admin/' . thisdoc() . '?type=' . $type);
    }
}
if ($proceed) {
    $titles = array('assign' => 'default_search_for_assigning_participants_to_experiment', 'deassign' => 'default_search_for_deassigning_participants_from_experiment', 'participants_search_active' => 'default_search_for_active_participants', 'participants_search_all' => 'default_search_for_all_participants');
    echo '<center>';
    show_message();
    $load_query = query__load_default_query($type);
    if ($type == 'participants_search_active') {
        $hide_modules = array('statusids');
    } else {
        $hide_modules = array();
    }
    $formextra = '<INPUT type="hidden" name="type" value="' . $type . '">';
    echo '<TABLE class="or_formtable" style="min-width: 80%">
            <TR><TD>
开发者ID:danorama,项目名称:orsee,代码行数:31,代码来源:options_default_queries.php


示例12: participant__show_admin_form

function participant__show_admin_form($edit, $button_title = "", $errors, $extra = "")
{
    global $lang, $settings, $color;
    $out = array();
    if (!isset($edit['participant_id'])) {
        $edit['participant_id'] = '';
    }
    if (!isset($edit['subpool_id'])) {
        $edit['subpool_id'] = 1;
    }
    $subpool = orsee_db_load_array("subpools", $edit['subpool_id'], "subpool_id");
    if (!$subpool['subpool_id']) {
        $subpool = orsee_db_load_array("subpools", 1, "subpool_id");
    }
    $edit['subpool_id'] = $subpool['subpool_id'];
    $pools = subpools__get_subpools();
    foreach ($pools as $p => $pool) {
        $out['is_subjectpool_' . $p] = false;
    }
    $out['is_subjectpool_' . $subpool['subpool_id']] = true;
    echo '<FORM action="' . thisdoc() . '" method="POST">';
    echo '<table border="0">';
    echo '<TR><TD valign="top">';
    echo '<TABLE class="or_formtable" style="width: 100%; height: 100%; max-width: 100%"><TR><TD>';
    // get the participant form
    participant__show_inner_form($edit, $errors, true);
    echo '</TD></TR></TABLE>';
    echo '</TD><TD valign="top">';
    echo '<TABLE class="or_formtable" style="width: 100%; height: 100%; max-width: 100%; background: ' . $color['list_shade2'] . '"><TR><TD>';
    echo '<INPUT type="hidden" name="participant_id" value="' . $edit['participant_id'] . '">';
    global $hide_header;
    if (isset($hide_header) && $hide_header) {
        echo '<INPUT type="hidden" name="hide_header" value="true">';
    }
    $adminformoutput = participant__get_inner_admin_form($edit, $errors);
    if ($adminformoutput) {
        echo '<TABLE width="100%">
                <TR><TD valign="top" bgcolor="' . $color['list_shade1'] . '">';
        echo $adminformoutput;
        echo '</TD></TR></TABLE>';
    }
    echo '<BR>';
    // then show the rest
    // initialize
    if (!isset($edit['participant_id'])) {
        $edit['participant_id'] = '???';
    }
    if (!isset($edit['participant_id_crypt'])) {
        $edit['participant_id_crypt'] = '???';
    }
    if (isset($edit['creation_time'])) {
        $tout['creation_time'] = ortime__format($edit['creation_time'], '', lang('lang'));
    } else {
        $tout['creation_time'] = '';
    }
    if (!isset($edit['rules_signed'])) {
        $edit['rules_signed'] = '';
    }
    if (!isset($edit['session_id'])) {
        $edit['session_id'] = '';
    }
    if (!isset($edit['remarks'])) {
        $edit['remarks'] = '';
    }
    echo '<table width="100%">';
    echo '  <tr><td>' . lang('subpool') . '</td>
            <td>' . subpools__select_field("subpool_id", $edit['subpool_id']) . '</td></tr>';
    echo '<tr><td colspan=2>&nbsp;</td></tr>';
    echo '  <tr><td>' . lang('id') . '</td>
            <td>' . $edit['participant_id'] . ' (' . $edit['participant_id_crypt'] . ')</td></tr>
        <tr><td>' . lang('creation_time') . '</td>
            <td>';
    if (isset($edit['creation_time'])) {
        echo ortime__format($edit['creation_time'], '', lang('lang'));
    } else {
        echo '???';
    }
    echo '  </td></tr>';
    if ($settings['enable_rules_signed_tracking'] == 'y') {
        echo '<tr><td>' . lang('rules_signed') . '</td>
            <td>' . participant__rules_signed_form_field($edit['rules_signed']) . '</td></tr>';
    }
    echo '<tr><td valign="top">' . lang('remarks') . '</td>
            <td>' . participant__remarks_form_field($edit['remarks']) . '</td></tr>';
    echo '<tr><td colspan=2>&nbsp;</td></tr>';
    echo '<tr><td colspan=2 align=left>
                ' . participant__add_to_session_checkbox() . ' ' . lang('register_sub_for_session') . '<BR>
                ' . participant__add_to_session_select($edit['session_id'], $edit['participant_id']) . '
            </td></tr>';
    echo '</td></tr></table>';
    echo '</TD></TR><TR><TD valign="bottom"  bgcolor="' . $color['list_shade2'] . '">';
    echo '<table>
            <tr style="outline: 2px solid red;">
            <td>
                <B>' . lang('participant_status') . '</B>: ';
    if (check_allow('participants_change_status')) {
        if (!isset($_REQUEST['status_id'])) {
            $_REQUEST['status_id'] = "";
        }
        if ($_REQUEST['status_id'] == '0') {
//.........这里部分代码省略.........
开发者ID:danorama,项目名称:orsee,代码行数:101,代码来源:participant.php


示例13: icon

<?php

// part of orsee. see orsee.org
if ($proceed) {
    echo '
            <br><BR><BR>
            <center>';
    if (!preg_match("(admin_login|admin_logout|index.php)", thisdoc())) {
        echo '
                ' . icon('home', 'index.php') . '<A href="index.php">' . lang('mainpage') . '</a>
                <BR><BR>
                ';
    }
    if (!preg_match("(admin_login|admin_logout)", thisdoc())) {
        echo '<A href="admin_logout.php">' . icon('logout') . '<FONT COLOR=RED>' . lang('logout') . '</FONT></A>';
    }
    echo '<BR><BR></center>';
    debug_output();
    html__show_style_footer('admin');
    html__footer();
}
开发者ID:danorama,项目名称:orsee,代码行数:21,代码来源:footer.php


示例14: headcell

function headcell($value, $sort = "", $focus = "")
{
    global $color;
    if (!isset($_REQUEST['focus'])) {
        $_REQUEST['focus'] = "";
    }
    if (!isset($_REQUEST['experiment_id'])) {
        $_REQUEST['experiment_id'] = "";
    }
    if (!isset($_REQUEST['session_id'])) {
        $_REQUEST['session_id'] = "";
    }
    echo '
        <TD class=small';
    if ($_REQUEST['focus'] == $focus && $focus) {
        echo ' style="background: ' . $color['list_header_highlighted_background'] . '; color: ' . $color['list_header_highlighted_textcolor'] . ';"';
    }
    echo '>';
    if ($sort) {
        echo '<A HREF="' . thisdoc() . '?sort=' . urlencode($sort) . '&show=true';
        if ($_REQUEST['experiment_id']) {
            echo '&experiment_id=' . $_REQUEST['experiment_id'];
        }
        if ($_REQUEST['session_id']) {
            echo '&session_id=' . $_REQUEST['session_id'];
        }
        if ($_REQUEST['focus']) {
            echo '&focus=' . $_REQUEST['focus'];
        }
        echo '">';
    }
    echo '<FONT class="small"';
    if ($_REQUEST['focus'] == $focus && $focus) {
        echo ' color="' . $color['list_header_highlighted_textcolor'] . '"';
    }
    echo '>';
    echo $value;
    echo '</FONT>';
    if ($sort) {
        echo '</A>';
    }
    echo '</TD>';
}
开发者ID:danorama,项目名称:orsee,代码行数:43,代码来源:formhelpers.php


示例15: array

                        $thispar = array(':participant_id' => $pid, ':pending_profile_update_request' => $_REQUEST['new_profile_update_status'], ':profile_update_request_new_pool' => $new_pool);
                        $pars[] = $thispar;
                        $target = "participant_id: " . $pid . ", update_request: " . $_REQUEST['new_profile_update_status'];
                        if ($new_pool) {
                            $target .= ", new_pool: " . $new_pool;
                        }
                        log__admin("bulk_set_profile_update_request", $target);
                    }
                    $query = "UPDATE " . table('participants') . "\n                            SET pending_profile_update_request= :pending_profile_update_request,\n                                profile_update_request_new_pool = :profile_update_request_new_pool\n                                WHERE participant_id = :participant_id";
                    $done = or_query($query, $pars);
                    message($num_participants . ' ' . lang('xxx_participants_were_assigned_a_new_profile_update_status'));
                    redirect('admin/' . thisdoc() . '?active=' . $active . '&search_sort=' . $search_sort);
                }
            } else {
                // redirect to same page
                redirect('admin/' . thisdoc() . '?active=' . $active . '&search_sort=' . $search_sort);
            }
        } else {
            message(lang('no_participants_selected'));
            $_REQUEST['search_sort'] = $search_sort;
        }
    }
}
if ($proceed) {
    echo '<center>';
    show_message();
}
if ($proceed) {
    if (isset($_REQUEST['search_submit']) || isset($_REQUEST['search_sort'])) {
        $json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
        if (isset($_REQUEST['search_sort'])) {
开发者ID:danorama,项目名称:orsee,代码行数:31,代码来源:participants_show.php


示例16: lang

			<TR><TD align="center">
			' . $experiment['experiment_name'];
    if ($session_id) {
        echo ', ' . lang('session') . ' ' . session__build_name($session);
    }
    echo ', ' . $title . '		
			</TD>';
    echo '</TR></TABLE>';
    if ($display != 'enrol') {
        echo '<P align=right><A class="small" HREF="experiment_participants_show_pdf.php' . $thiscgis . '" target="_blank">' . lang('print_version') . '</A></P>';
    }
    // show query
    //echo '	<P class="small">Query: '.$query.'</P>';
    // form
    echo '
		<FORM name="part_list" method=post action="' . thisdoc() . '">
	
		<BR>
		<table class="or_listtable" style="width: 95%"><thead>
			<TR style="background: ' . $color['list_header_background'] . '; color: ' . $color['list_header_textcolor'] . ';">';
    echo participant__get_result_table_headcells($cols);
    echo '		</TR></thead>
				<tbody>';
    $shade = false;
    if (check_allow('experiment_edit_participants')) {
        $disabled = false;
    } else {
        $disabled = true;
    }
    $pnr = 0;
    foreach ($participants as $p) {
开发者ID:kfarr2,项目名称:psu-orsee,代码行数:31,代码来源:experiment_participants_show.php


示例17: load_language

        if (in_array($_REQUEST['language'], $langarray)) {
            $_SESSION['pauthdata']['language'] = $_REQUEST['language'];
        }
    }
    $lang = load_language($_SESSION['pauthdata']['language']);
}
if ($proceed) {
    if (!in_array(thisdoc(), array('participant_create.php', 'captcha.php'))) {
        unset($_SESSION['subpool_id']);
        unset($_SESSION['rules']);
    }
}
if ($proceed) {
    // require participant login for the following pages
    $part_load = array("participant_edit.php", "participant_delete.php", "participant_show.php", "participant_show_mob.php", "participant_change_pw.php", "participant_logout.php");
    if (in_array(thisdoc(), $part_load)) {
        $token_string = '';
        // if already logged in, just load participant data
        if (isset($_SESSION['pauthdata']['user_logged_in']) && $_SESSION['pauthdata']['user_logged_in'] && isset($_SESSION['pauthdata']['participant_id']) && $_SESSION['pauthdata']['participant_id']) {
            $participant = orsee_db_load_array("participants", $_SESSION['pauthdata']['participant_id'], "participant_id");
            $participant_id = $participant['participant_id'];
        } else {
            if ($settings['subject_authentication'] == 'token') {
                // if we work with tokens, check whether we are logged in and load participant data
                if ($participant_id) {
                    $participant = orsee_db_load_array("participants", $participant_id, "participant_id");
                    $token_string = "?p=" . urlencode($participant['participant_id_crypt']);
                } else {
                    redirect("public/");
                }
            } elseif ($settings['subject_authentication'] == 'migration') {
开发者ID:kfarr2,项目名称:psu-orsee,代码行数:31,代码来源:header.php


示例18: microtime

<?php

// part of orsee. see orsee.org
$debug__script_started = microtime();
include "../config/settings.php";
include "../config/system.php";
include "../config/requires.php";
$proceed = true;
if ($proceed) {
    $document = thisdoc();
    if ($settings__stop_admin_site == "y" && $document != "error_temporaly_disabled.php") {
        redirect("errors/error_temporaly_disabled.php");
    }
}
if ($proceed) {
    site__database_config();
    $settings = load_settings();
    $settings['style'] = $settings['orsee_admin_style'];
    $color = load_colors();
    session_set_save_handler("orsee_session_open", "orsee_session_close", "orsee_session_read", "orsee_session_write", "orsee_session_destroy", "orsee_session_gc");
    session_start();
    if (isset($_SESSION['expadmindata'])) {
        $expadmindata = $_SESSION['expadmindata'];
    } else {
        $expadmindata = array();
    }
    // Check for login
    if (!(isset($expadmindata['adminname']) && $expadmindata['adminname']) && $document != "admin_login.php") {
        redirect("admin/admin_login.php");
        $proceed = false;
    }
开发者ID:kfarr2,项目名称:psu-orsee,代码行数:31,代码来源:nonoutputheader.php


示例19: check_experiment_allowed

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP thread_get函数代码示例发布时间:2022-05-23
下一篇:
PHP thisOr函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap