Пример #1
0
$r->add_textbox("notes_rank", INTEGER);
$r->add_select("notes_type", INTEGER, $keywords_types);
$r->add_checkbox("meta_title_index", INTEGER);
$r->add_textbox("meta_title_rank", INTEGER);
$r->add_select("meta_title_type", INTEGER, $keywords_types);
$r->add_checkbox("meta_description_index", INTEGER);
$r->add_textbox("meta_description_rank", INTEGER);
$r->add_select("meta_description_type", INTEGER, $keywords_types);
$r->add_checkbox("meta_keywords_index", INTEGER);
$r->add_textbox("meta_keywords_rank", INTEGER);
$r->add_select("meta_keywords_type", INTEGER, $keywords_types);
$r->get_form_values();
// categories columns
$ip = new VA_Record($table_prefix . "categories_columns", "categories_columns");
$ip->add_where("column_id", INTEGER);
$ip->add_hidden("category_id", INTEGER);
$ip->change_property("category_id", USE_IN_INSERT, true);
$ip->add_textbox("column_order", INTEGER, ADMIN_ORDER_MSG);
$ip->change_property("column_order", REQUIRED, true);
$ip->add_textbox("column_code", TEXT, CODE_MSG);
$ip->change_property("column_code", REQUIRED, true);
$ip->change_property("column_code", MAX_LENGTH, 64);
$ip->add_textbox("column_title", TEXT, TITLE_MSG);
$ip->change_property("column_title", REQUIRED, true);
$ip->change_property("column_title", MAX_LENGTH, 255);
$ip->add_textbox("column_html", TEXT, HTML_MSG);
$columns_number = get_param("cc_number");
$cc_eg = new VA_EditGrid($ip, "categories_columns");
$cc_eg->order_by = " ORDER BY column_order ";
$cc_eg->get_form_values($columns_number);
$param_site_id = get_session("session_site_id");
Пример #2
0
$t->set_var("user_profile_url", $user_profile_url);
$t->set_var("user_upload_href", get_custom_friendly_url("user_upload.php"));
$t->set_var("user_home_href", get_custom_friendly_url("user_home.php"));
$t->set_var("referer", $referer);
$t->set_var("referrer", $referer);
$t->set_var("HTTP_REFERER", $referer);
$t->set_var("initial_ip", $initial_ip);
$t->set_var("cookie_ip", $cookie_ip);
$t->set_var("visit_number", $visit_number);
$t->set_var("login_desc", $login_desc);
$t->set_var("short_description_editor", $short_description_editor);
$t->set_var("full_description_editor", $full_description_editor);
$subscribe = get_param("subscribe");
$r = new VA_Record($table_prefix . "users");
$r->add_where("user_id", INTEGER);
$r->add_hidden("type", INTEGER);
$r->add_textbox("user_type_id", INTEGER, "User Type");
$r->change_property("user_type_id", REQUIRED, true);
$r->change_property("user_type_id", USE_IN_UPDATE, false);
$r->add_textbox("is_approved", INTEGER);
$r->add_textbox("registration_last_step", INTEGER);
$r->add_textbox("registration_total_steps", INTEGER);
$r->add_textbox("login", TEXT);
$r->change_property("login", USE_IN_UPDATE, false);
$r->change_property("login", SHOW, false);
// subscription information
$r->add_textbox("subscription_id", INTEGER, SUBSCRIPTION_MSG);
$r->change_property("subscription_id", USE_SQL_NULL, false);
$r->change_property("subscription_id", USE_IN_UPDATE, false);
if ($is_subscription && !$user_id && !$new_user_id) {
    $r->change_property("subscription_id", REQUIRED, true);