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

PHP ft_load_field函数代码示例

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

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



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

示例1: ft_check_permission

require "../../global/session_start.php";
ft_check_permission("admin");
if (isset($_GET['delete']) && !empty($_GET['client_id'])) {
    list($g_success, $g_message) = ft_delete_client($_GET['client_id']);
}
if (isset($_GET['login'])) {
    list($g_success, $g_message) = ft_login_as_client($_GET['login']);
}
if (isset($_GET["reset"])) {
    $_SESSION["ft"]["client_sort_order"] = "";
    $_SESSION["ft"]["client_search_keyword"] = "";
    $_SESSION["ft"]["client_search_status"] = "";
}
$order = ft_load_field("order", "client_sort_order", "last_name-ASC");
$keyword = ft_load_field("keyword", "client_search_keyword", "");
$status = ft_load_field("status", "client_search_status", "");
$search_criteria = array("order" => $order, "keyword" => $keyword, "status" => $status);
$num_clients = ft_get_client_count();
// retrieve all client information
$clients = ft_search_clients($search_criteria);
// ------------------------------------------------------------------------------------------------
// compile the header information
$page_vars = array();
$page_vars["page"] = "clients";
$page_vars["page_url"] = ft_get_page_url("clients");
$page_vars["head_title"] = $LANG["word_clients"];
$page_vars["num_clients"] = $num_clients;
$page_vars["clients"] = $clients;
$page_vars["order"] = $order;
$page_vars["search_criteria"] = $search_criteria;
$page_vars["pagination"] = ft_get_dhtml_page_nav(count($clients), $_SESSION["ft"]["settings"]["num_clients_per_page"], 1);
开发者ID:jdearaujo,项目名称:core,代码行数:31,代码来源:index.php


示例2: ft_get_form

    if (!$g_success) {
        $failed_validation = true;
    }
}
$form_info = ft_get_form($form_id);
$view_info = ft_get_view($view_id);
// this is crumby
$has_tabs = false;
foreach ($view_info["tabs"] as $tab_info) {
    if (!empty($tab_info["tab_label"])) {
        $has_tabs = true;
        break;
    }
}
if ($has_tabs) {
    $tab_number = ft_load_field("tab", "view_{$view_id}_current_tab", 1);
} else {
    $tab_number = "";
}
$grouped_fields = ft_get_grouped_view_fields($view_id, $tab_number, $form_id, $submission_id);
if ($failed_validation) {
    $grouped_fields = ft_merge_form_submission($grouped_fields, $_POST);
}
$page_field_ids = array();
$page_field_type_ids = array();
$page_has_required_fields = false;
foreach ($grouped_fields as $group) {
    foreach ($group["fields"] as $field_info) {
        $page_field_ids[] = $field_info["field_id"];
        if (!in_array($field_info["field_type_id"], $page_field_type_ids)) {
            $page_field_type_ids[] = $field_info["field_type_id"];
开发者ID:jeffthestampede,项目名称:excelsior,代码行数:31,代码来源:edit_submission.php


示例3: ft_load_field

<?php

$view_fields_sortable_id = "view_fields";
$submission_list_sortable_id = "submission_list";
// a form ID & view ID should always be set when visiting this page
$view_id = ft_load_field("view_id", "form_{$form_id}_view_id");
// this updates all four sections of the view at once (since all may have been modified)
if (isset($request["update_view"])) {
    $request["form_id"] = $form_id;
    $request["view_fields_sortable_id"] = $view_fields_sortable_id;
    $request["submission_list_sortable_id"] = $submission_list_sortable_id;
    list($g_success, $g_message) = ft_update_view($view_id, $request);
}
$form_info = ft_get_form($form_id);
$form_fields = ft_get_form_fields($form_id, array("include_field_type_info" => true));
$view_info = ft_get_view($view_id);
$form_database_column_info = ft_get_form_column_names($form_id);
$view_clients = ft_get_view_clients($view_id);
$view_tabs = ft_get_view_tabs($view_id);
$grouped_fields = ft_get_grouped_view_fields($view_id);
$field_types = ft_get_field_type_names();
$new_view_submission_defaults = ft_get_new_view_submission_defaults($view_id);
// this returns ALL filters: standard and client map
$standard_filters = ft_get_view_filters($view_id, "standard");
$client_map_filters = ft_get_view_filters($view_id, "client_map");
$num_standard_filters = count($standard_filters);
$num_client_map_filters = count($client_map_filters);
$edit_view_tab = isset($_SESSION["ft"]["inner_tabs"]["edit_view"]) ? $_SESSION["ft"]["inner_tabs"]["edit_view"] : 1;
if (isset($request["edit_view_tab"])) {
    $edit_view_tab = $request["edit_view_tab"];
    $_SESSION["ft"]["inner_tabs"]["edit_view"] = $edit_view_tab;
开发者ID:jdearaujo,项目名称:core,代码行数:31,代码来源:page_edit_view.php


示例4: isset

<?php

if (isset($request["add_email"])) {
    $create_email_from_email_id = isset($request["create_email_from_email_id"]) ? $request["create_email_from_email_id"] : "";
    $email_id = ft_create_blank_email_template($form_id, $create_email_from_email_id);
    session_write_close();
    header("Location: edit.php?page=edit_email&form_id={$form_id}&email_id={$email_id}");
    exit;
}
if (isset($request["delete"])) {
    list($g_success, $g_message) = ft_delete_email_template($request["delete"]);
}
$form_info = ft_get_form($form_id);
$emails_page = ft_load_field("emails_page", "form_{$form_id}_emails_page", 1);
$form_email_info = ft_get_email_templates($form_id, $emails_page);
$form_emails = $form_email_info["results"];
$num_form_emails = $form_email_info["num_results"];
$registered_form_emails = ft_get_email_fields($form_id);
$num_registered_form_emails = count($registered_form_emails);
// a little irksome, but we also need to retrieve ALL emails, for the "Create Email From Existing Email" dropdown
$all_form_emails = ft_get_email_template_list($form_id);
$php_self = ft_get_clean_php_self();
// compile the templates information
$page_vars["page"] = "emails";
$page_vars["page_url"] = ft_get_page_url("edit_form_emails", array("form_id" => $form_id));
$page_vars["form_emails"] = $form_emails;
$page_vars["all_form_emails"] = $all_form_emails;
$page_vars["num_form_emails"] = $num_form_emails;
$page_vars["head_title"] = "{$LANG["phrase_edit_form"]} - {$LANG["word_emails"]}";
$page_vars["form_info"] = $form_info;
$page_vars["js_messages"] = array("word_edit", "word_remove");
开发者ID:jeffthestampede,项目名称:excelsior,代码行数:31,代码来源:page_emails.php


示例5: list

    list($g_success, $g_message) = ft_update_module_list();
}
if (isset($request["uninstall"])) {
    list($g_success, $g_message) = ft_uninstall_module($request["uninstall"]);
}
if (isset($request["upgrade"])) {
    list($g_success, $g_message) = ft_upgrade_module($request["upgrade"]);
}
if (isset($_GET["reset"])) {
    $_SESSION["ft"]["module_sort_order"] = "";
    $_SESSION["ft"]["module_search_keyword"] = "";
    $_SESSION["ft"]["module_search_status"] = array("enabled", "disabled");
}
$order = ft_load_field("order", "module_sort_order", "");
$keyword = ft_load_field("keyword", "module_search_keyword", "");
$status = ft_load_field("status", "module_search_status", array("enabled", "disabled"));
$search_criteria = array("order" => $order, "keyword" => $keyword, "status" => $status);
$num_modules = ft_get_module_count();
$modules = ft_search_modules($search_criteria);
$module_ids = array();
foreach ($modules as $module_info) {
    $module_ids[] = $module_info["module_id"];
}
$module_ids_in_page = implode(",", $module_ids);
// find out if any of the modules have been upgraded
$updated_modules = array();
foreach ($modules as $module_info) {
    $module_id = $module_info["module_id"];
    $curr_module = $module_info;
    $curr_module["needs_upgrading"] = ft_module_needs_upgrading($module_id);
    $updated_modules[] = $curr_module;
开发者ID:jdearaujo,项目名称:core,代码行数:31,代码来源:index.php


示例6: ft_load_field

<?php

$menu_page = ft_load_field("menu_page", "menu_page", 1);
// if required, delete the menu. If any clients were assigned to this menu, the success response will
// include their names
if (isset($request["delete"])) {
    list($g_success, $g_message) = ft_delete_client_menu($request["delete"]);
}
if (isset($_GET["mass_assign"])) {
    list($g_success, $g_message) = ft_update_client_menus($_GET["accounts"], $_GET["menu_id"]);
}
$menus = ft_get_menus($menu_page);
// compile the header information
$page_vars = array();
$page_vars["page"] = "menus";
$page_vars["page_url"] = ft_get_page_url("settings_menus");
$page_vars["tabs"] = $tabs;
$page_vars["head_title"] = "{$LANG["word_settings"]} - {$LANG["word_menus"]}";
$page_vars["menus"] = $menus["results"];
$page_vars["total_num_menus"] = $menus["num_results"];
$page_vars["pagination"] = ft_get_page_nav($menus["num_results"], $_SESSION["ft"]["settings"]["num_menus_per_page"], $menu_page, "page=menus", "menu_page");
$page_vars["js_messages"] = array("word_remove");
$page_vars["head_js"] = <<<END
var page_ns = {
  delete_menu_dialog: \$("<div></div>")
}

page_ns.delete_menu = function(menu_id) {
  ft.create_dialog({
    dialog:   page_ns.delete_menu_dialog,
    title:    "{$LANG["phrase_please_confirm"]}",
开发者ID:jeffthestampede,项目名称:excelsior,代码行数:31,代码来源:page_menus.php


示例7: list

    $request["sortable_id"] = $sortable_id;
    list($g_success, $g_message) = ft_update_form_fields_tab($form_id, $request);
}
$form_info = ft_get_form($form_id);
if (isset($request["num_fields_per_page"])) {
    $num_fields_per_page = $request["num_fields_per_page"];
    ft_set_settings(array("admin_num_fields_per_page_{$form_id}" => $request["num_fields_per_page"]));
    $_GET["fields_page"] = 1;
} else {
    $saved_num_fields_per_page = ft_get_settings("admin_num_fields_per_page_{$form_id}");
    $num_fields_per_page = !empty($saved_num_fields_per_page) ? $saved_num_fields_per_page : "all";
}
if (empty($num_fields_per_page)) {
    ft_set_settings("admin_num_fields_per_page_{$form_id}", "all");
}
$fields_page = ft_load_field("fields_page", "fields_page", 1);
$form_fields = ft_get_form_fields($form_id, array("page" => $fields_page, "num_fields_per_page" => $num_fields_per_page));
$total_form_fields = ft_get_num_form_fields($form_id);
$reserved_words = ft_get_mysql_reserved_words();
$escaped_words = array();
foreach ($reserved_words as $word) {
    $escaped_words[] = "\"{$word}\"";
}
$reserved_words = implode(",", $escaped_words);
$field_type_sizes_js = ft_generate_field_type_sizes_map_js();
$field_sizes_js = ft_generate_field_type_size_labels();
$field_settings_js = ft_generate_field_type_settings_js();
$field_validation_js = ft_generate_field_type_validation_js();
$php_self = ft_get_clean_php_self();
$shared_characteristics_js = ft_get_field_type_setting_shared_characteristics_js();
// compile the template fields
开发者ID:jeffthestampede,项目名称:excelsior,代码行数:31,代码来源:page_fields.php


示例8: ft_check_permission

<?php

require "../../../global/session_start.php";
ft_check_permission("admin");
$option_list_page = ft_load_field("page", "option_list_page", 1);
$request = array_merge($_POST, $_GET);
$num_option_lists_per_page = $_SESSION["ft"]["settings"]["num_option_lists_per_page"];
$order = ft_load_field("order", "option_list_order");
if (isset($_GET["delete"])) {
    list($g_success, $g_message) = ft_delete_option_list($_GET["delete"]);
}
if (!is_numeric($option_list_page)) {
    $option_list_page = 1;
}
if (isset($request["add_option_list"])) {
    $duplicate_list_id = "";
    if (isset($request["create_option_list_from_list_id"]) && !empty($request["create_option_list_from_list_id"])) {
        $duplicate_list_id = $request["create_option_list_from_list_id"];
    }
    $field_ids = array();
    if (isset($request["field_id"])) {
        $field_ids[] = $request["field_id"];
    }
    $list_id = ft_duplicate_option_list($duplicate_list_id, $field_ids);
    session_write_close();
    header("Location: edit.php?page=main&list_id={$list_id}");
    exit;
}
// one additional check. If a user was on page 2 and just deleted (say) option list #11 and there are 10 per page, the
// visible page should be now be 1
$total_num_option_lists = ft_get_num_option_lists();
开发者ID:jeffthestampede,项目名称:excelsior,代码行数:31,代码来源:index.php


示例9: ft_check_permission

<?php

require_once "../global/session_start.php";
ft_check_permission("client");
_ft_cache_form_stats();
$account_id = $_SESSION["ft"]["account"]["account_id"];
if (isset($_GET["reset"])) {
    $_SESSION["ft"]["form_sort_order"] = "";
    $_SESSION["ft"]["form_search_keyword"] = "";
}
$order = ft_load_field("order", "form_sort_order", "form_name-ASC");
$keyword = ft_load_field("keyword", "form_search_keyword", "");
$search_criteria = array("order" => $order, "keyword" => $keyword);
$num_client_forms = count(ft_get_client_forms($account_id));
$forms = ft_search_forms($account_id, false, $search_criteria);
$client_info = ft_get_account_info($account_id);
$forms_page_default_message = ft_eval_smarty_string($client_info["settings"]["forms_page_default_message"]);
// ------------------------------------------------------------------------------------------
// compile header information
$page_vars = array();
$page_vars["head_title"] = ft_eval_smarty_string($_SESSION["ft"]["account"]["settings"]["page_titles"], array("page" => $LANG["word_forms"]));
$page_vars["page"] = "client_forms";
$page_vars["page_url"] = ft_get_page_url("client_forms");
$page_vars["num_client_forms"] = $num_client_forms;
$page_vars["forms"] = $forms;
$page_vars["forms_page_default_message"] = $forms_page_default_message;
$page_vars["search_criteria"] = $search_criteria;
$page_vars["js_messages"] = array("phrase_open_form_in_new_tab_or_win", "word_close", "phrase_show_form");
$page_vars["head_js"] = <<<END
\$(function() { ft.init_show_form_links(); });
END;
开发者ID:jdearaujo,项目名称:core,代码行数:31,代码来源:index.php


示例10: ft_check_permission

<?php

require "../../global/session_start.php";
ft_check_permission("admin");
$request = array_merge($_POST, $_GET);
$client_id = ft_load_field("client_id", "curr_client_id", "");
if (empty($client_id)) {
    header("location: index.php");
    exit;
}
// figure out the "<< prev" and "next >>" links
$order = ft_load_field("order", "client_sort_order", "last_name-ASC");
$keyword = ft_load_field("keyword", "client_search_keyword", "");
$status = ft_load_field("status", "client_search_status", "");
// store the current selected tab in memory
$page = ft_load_field("page", "client_{$client_id}_page", "main");
$search_criteria = array("order" => $order, "keyword" => $keyword, "status" => $status);
$links = ft_get_client_prev_next_links($client_id, $search_criteria);
$prev_tabset_link = !empty($links["prev_account_id"]) ? "edit.php?page={$page}&client_id={$links["prev_account_id"]}" : "";
$next_tabset_link = !empty($links["next_account_id"]) ? "edit.php?page={$page}&client_id={$links["next_account_id"]}" : "";
$same_page = ft_get_clean_php_self();
$tabs = array("main" => array("tab_label" => $LANG["word_main"], "tab_link" => "{$same_page}?page=main&client_id={$client_id}"), "settings" => array("tab_label" => $LANG["word_settings"], "tab_link" => "{$same_page}?page=settings&client_id={$client_id}"), "forms" => array("tab_label" => $LANG["word_forms"], "tab_link" => "{$same_page}?page=forms&client_id={$client_id}"));
// start compiling the page vars here (save duplicate code!)
$page_vars = array();
$page_vars["tabs"] = $tabs;
$page_vars["show_tabset_nav_links"] = true;
$page_vars["prev_tabset_link"] = $prev_tabset_link;
$page_vars["next_tabset_link"] = $next_tabset_link;
$page_vars["prev_tabset_link_label"] = $LANG["phrase_prev_client"];
$page_vars["next_tabset_link_label"] = $LANG["phrase_next_client"];
switch ($page) {
开发者ID:jdearaujo,项目名称:core,代码行数:31,代码来源:edit.php


示例11: ft_api_load_field

/**
 * Just a wrapper function for ft_load_field - renamed for consistency with the API. Plus it's good
 * to draw attention to this function with the additional documentation.
 *
 * @param string $field_name
 * @param string $session_name
 * @param string $default_value
 */
function ft_api_load_field($field_name, $session_name, $default_value)
{
    return ft_load_field($field_name, $session_name, $default_value);
}
开发者ID:jeffthestampede,项目名称:excelsior,代码行数:12,代码来源:api.php


示例12: ft_check_permission

<?php

require "../../../global/session_start.php";
ft_check_permission("admin");
$sortable_id = "multi_page_form_list";
$form_id = ft_load_field("form_id", "add_form_form_id", "");
$request = array_merge($_POST, $_GET);
$submission_type = ft_load_field("submission_type", "submission_type");
// bit weird, but if a user's coming back to this page to complete setting up their form, update
// the submission_type
if (!empty($form_id) && !empty($submission_type)) {
    mysql_query("UPDATE {$g_table_prefix}forms SET submission_type = '{$submission_type}' WHERE form_id = {$form_id}");
}
// a hash of form values
$page_values = array();
// start setting up the form
if (isset($request["add_form"])) {
    $request["form_type"] = "external";
    $request["submission_type"] = $submission_type;
    list($g_success, $g_message, $form_id) = ft_setup_form($request);
    // store the uploading_files value for the duration of this session
    $_SESSION["ft"]["uploading_files"] = isset($request['uploading_files']) ? $request['uploading_files'] : "no";
    // form successfully added. Continue to step 2.
    if ($g_success) {
        session_write_close();
        header("location: step3.php?form_id={$form_id}");
        exit;
    } else {
        $page_values = ft_preload_values("post");
    }
} else {
开发者ID:jdearaujo,项目名称:core,代码行数:31,代码来源:step2.php


示例13: ft_load_field

<?php

require_once "library.php";
$hostname = ft_load_field("g_db_hostname", "g_db_hostname", "localhost", "ft_install");
$db_name = ft_load_field("g_db_name", "g_db_name", "", "ft_install");
$username = ft_load_field("g_db_username", "g_db_username", "", "ft_install");
$password = ft_load_field("g_db_password", "g_db_password", "", "ft_install");
$g_table_prefix = ft_load_field("g_table_prefix", "g_table_prefix", "ft_", "ft_install");
$step_complete = false;
$error = "";
$tables_already_exist = false;
$existing_tables = array();
if (isset($_POST["track_license_keys"])) {
    $module_folders = $_POST["module_folders"];
    $data = array();
    foreach ($module_folders as $module_folder) {
        $data[$module_folder] = array("k" => $_POST["{$module_folder}_k"], "ek" => $_POST["{$module_folder}_ek"]);
    }
    $_SESSION["ft_install"]["premium_module_keys"] = $data;
}
if (isset($_POST["overwrite_tables"])) {
    ft_install_delete_tables($hostname, $db_name, $username, $password, $g_table_prefix);
    $_POST["create_database"] = 1;
}
if (isset($_POST["create_database"])) {
    // confirm the database settings are correctly entered. If they're not, the error messages are
    // returned by this function, and the page is reloaded to display them
    list($success, $error) = ft_install_check_db_settings($hostname, $db_name, $username, $password);
    // all checks out! Now try to create the database tables
    if ($success) {
        $existing_tables = ft_check_no_existing_tables($hostname, $db_name, $username, $password, $g_table_prefix);
开发者ID:jdearaujo,项目名称:core,代码行数:31,代码来源:step3.php


示例14: ft_check_permission

<?php

require "../../../global/session_start.php";
ft_check_permission("admin");
// delete any temporary Smart Fill uploaded files
if (isset($_SESSION["ft"]["smart_fill_tmp_uploaded_files"]) && !empty($_SESSION["ft"]["smart_fill_tmp_uploaded_files"])) {
    foreach ($_SESSION["ft"]["smart_fill_tmp_uploaded_files"] as $file) {
        @unlink($file);
    }
}
$_SESSION["ft"]["method"] = "";
$form_id = ft_load_field("form_id", "add_form_form_id", "");
unset($_SESSION["ft"]["add_form_form_id"]);
// ------------------------------------------------------------------------------------------------
// compile the header information
$page_vars["page"] = "add_form6";
$page_vars["page_url"] = ft_get_page_url("add_form6");
$page_vars["head_title"] = "{$LANG['phrase_add_form']} - {$LANG["phrase_step_5"]}";
$page_vars["form_id"] = $form_id;
$page_vars["text_add_form_step_5_para"] = ft_eval_smarty_string($LANG["text_add_form_step_5_para_3"], array("editformlink" => "../edit.php?form_id={$form_id}"));
$page_vars["text_add_form_step_5_para_4"] = ft_eval_smarty_string($LANG["text_add_form_step_5_para_4"], array("editformlink" => "../edit.php?form_id={$form_id}"));
$page_vars["uploading_files"] = $_SESSION["ft"]["uploading_files"];
$page_vars["head_css"] = "";
ft_display_page("admin/forms/add/step6.tpl", $page_vars);
开发者ID:jeffthestampede,项目名称:excelsior,代码行数:24,代码来源:step6.php


示例15: array_merge

$request = array_merge($_POST, $_GET);
$page = ft_load_field("page", "settings_page", "main");
// store the current selected tab in memory - except for pages which require additional
// query string info. For those, use the "parent" page
if (isset($request["page"]) && !empty($request["page"])) {
    $remember_page = $request["page"];
    switch ($remember_page) {
        case "edit_admin_menu":
        case "edit_client_menu":
            $remember_page = "menus";
            break;
    }
    $_SESSION["ft"]["settings_tab"] = $remember_page;
    $page = $request["page"];
} else {
    $page = ft_load_field("page", "settings_tab", "main");
}
$same_page = ft_get_clean_php_self();
$tabs = array("main" => array("tab_label" => $LANG["word_main"], "tab_link" => "{$same_page}?page=main"), "accounts" => array("tab_label" => $LANG["word_accounts"], "tab_link" => "{$same_page}?page=accounts"), "files" => array("tab_label" => $LANG["word_files"], "tab_link" => "{$same_page}?page=files"), "menus" => array("tab_label" => $LANG["word_menus"], "tab_link" => "{$same_page}?page=menus", "pages" => array("edit_admin_menu", "edit_client_menu")));
switch ($page) {
    case "main":
        require "page_main.php";
        break;
    case "accounts":
        require "page_accounts.php";
        break;
    case "files":
        require "page_files.php";
        break;
    case "menus":
        require "page_menus.php";
开发者ID:jdearaujo,项目名称:core,代码行数:31,代码来源:index.php


示例16: ft_check_permission

<?php

require_once "../../global/session_start.php";
ft_check_permission("client");
$request = array_merge($_POST, $_GET);
$account_id = $_SESSION["ft"]["account"]["account_id"];
// store the current selected tab in memory
$page = ft_load_field("page", "account_page", "main");
$same_page = ft_get_clean_php_self();
$tabs = array("main" => array("tab_label" => $LANG["word_main"], "tab_link" => "{$same_page}?page=main"), "settings" => array("tab_label" => $LANG["word_settings"], "tab_link" => "{$same_page}?page=settings"));
// ------------------------------------------------------------------------------------------
switch ($page) {
    case "main":
        include "page_main.php";
        break;
    case "settings":
        include "page_settings.php";
        break;
    default:
        include "page_main.php";
        break;
}
开发者ID:jeffthestampede,项目名称:excelsior,代码行数:22,代码来源:index.php


示例17: foreach

        foreach ($ids as $id) {
            list($g_success, $g_message) = ft_delete_submission($form_id, $view_id, $id, true);
        }
    } else {
        $delete_all = isset($_SESSION["ft"]["form_{$form_id}_select_all_submissions"]) && $_SESSION["ft"]["form_{$form_id}_select_all_submissions"] == 1 ? true : false;
        $submissions_to_delete = $_SESSION["ft"]["form_{$form_id}_selected_submissions"];
        $omit_list = array();
        if ($delete_all) {
            $submissions_to_delete = "all";
            $omit_list = $_SESSION["ft"]["form_{$form_id}_all_submissions_selected_omit_list"];
        }
        list($g_success, $g_message) = ft_delete_submissions($form_id, $view_id, $submissions_to_delete, $omit_list, $search_fields, true);
    }
}
// figure out the current page
$current_page = ft_load_field("page", "view_{$view_id}_page", 1);
if (isset($_POST["search"])) {
    $current_page = 1;
}
$form_fields = ft_get_form_fields($form_id, array("include_field_type_info" => true, "include_field_settings" => true));
// make a map of field_id => col_name for use in determining the search cols ad
// make a map of field_id => col_name for use in determining the search cols. This contains
// all the fields in the View
$all_view_field_columns = array();
$searchable_columns = array();
foreach ($view_info["fields"] as $field_info) {
    $all_view_field_columns[$field_info["field_id"]] = $field_info["col_name"];
    if ($field_info["is_searchable"] == "yes") {
        $searchable_columns[] = $field_info["col_name"];
    }
}
开发者ID:jdearaujo,项目名称:core,代码行数:31,代码来源:index.php


示例18: ft_verify_core_tables_exist

    ft_verify_core_tables_exist();
}
// if this user is already logged in, redirect them to their specified login page
if (isset($_SESSION["ft"]["account"]) && isset($_SESSION["ft"]["account"]["is_logged_in"]) && isset($_SESSION["ft"]["account"]["login_page"]) && $_SESSION["ft"]["account"]["is_logged_in"] == 1) {
    $login_page = $_SESSION["ft"]["account"]["login_page"];
    $page = ft_construct_page_url($login_page);
    header("location: {$g_root_url}{$page}");
    exit;
}
// default settings
$settings = ft_get_settings();
$g_theme = $settings["default_theme"];
$g_swatch = $settings["default_client_swatch"];
// if an account id is included in the query string, use it to determine the appearance of the
// interface, including logo and footer and even language
$id = ft_load_field("id", "id", "");
if (!empty($id)) {
    $info = ft_get_account_info($id);
    if (isset($info["account_id"])) {
        // just in case, boot up the appropriate language file (this overrides any language file already loaded)
        $g_theme = $info["theme"];
        $language = $info["ui_language"];
        if (!empty($language) && is_file("global/lang/{$language}.php")) {
            include_once "global/lang/{$language}.php";
        }
    }
}
$error = "";
if (isset($_POST["username"]) && !empty($_POST["username"])) {
    $error = ft_login($_POST);
}
开发者ID:jeffthestampede,项目名称:excelsior,代码行数:31,代码来源:index.php


示例19: explode

$event_trigger_arr = explode(",", $template_info["email_event_trigger"]);
$template_info["email_event_trigger"] = $event_trigger_arr;
$clients = $form_info["client_info"];
$admin_info = ft_get_admin_info();
$edit_email_tab = isset($_SESSION["ft"]["inner_tabs"]["edit_email_template"]) ? $_SESSION["ft"]["inner_tabs"]["edit_email_template"] : 1;
if (isset($request["edit_email_template"])) {
    $edit_email_tab = $request["edit_email_template"];
}
$form_has_file_upload_field = ft_check_form_has_file_upload_field($form_id);
$file_field_text = $form_has_file_upload_field ? $LANG["text_file_field_placeholders_info"] : "";
// values for the test email subpage
$num_submissions = ft_get_submission_count($form_id);
$test_email_format = ft_load_field("test_email_format", "test_email_format");
$test_email_recipient = ft_load_field("test_email_recipient", "test_email_recipient", $admin_info["email"]);
$test_email_data_source = ft_load_field("test_email_data_source", "test_email_data_source", "random_submission");
$test_email_submission_id = ft_load_field("test_email_submission_id", "test_email_submission_id", "");
$views = ft_get_views($form_id);
$filtered_views = array();
$selected_edit_submission_views = array();
$selected_when_sent_views = array();
foreach ($views["results"] as $view) {
    if (!empty($view["filters"])) {
        $filtered_views[] = $view;
    }
    if (in_array($view["view_id"], $template_info["edit_submission_page_view_ids"])) {
        $selected_edit_submission_views[] = $view;
    }
    if (in_array($view["view_id"], $template_info["when_sent_view_ids"])) {
        $selected_when_sent_views[] = $view;
    }
}
开发者ID:jdearaujo,项目名称:core,代码行数:31,代码来源:page_edit_email.php


示例20: session_start

<?php

session_start();
header("Cache-control: private");
header("Content-Type: text/html; charset=utf-8");
$g_default_language = "en_us.php";
$g_ft_installation_folder = dirname(__FILE__);
// all session information for the installation script is stored in the $_SESSION["ft_install"] key
if (!isset($_SESSION["ft_install"])) {
    $_SESSION["ft_install"] = array();
}
// include the language file
if (!isset($_SESSION["ft_install"]["lang_file"])) {
    $_SESSION["ft_install"]["lang_file"] = $g_default_language;
}
$g_defer_init_page = true;
require_once "../global/library.php";
require_once "files/code.php";
require_once "files/sql.php";
$lang_file = ft_load_field("lang_file", "lang_file", $g_default_language, "ft_install");
include "../global/lang/{$_SESSION["ft_install"]["lang_file"]}";
开发者ID:jdearaujo,项目名称:core,代码行数:21,代码来源:library.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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