コード例 #1
0
        $new_store->set_store_logo('store_image');
        $customer_store_id = $new_store->create_store();
        smn_session_register('customer_store_id');
        $error_text = $new_store->put_logo_image();
        if ($error_text != '') {
            smn_session_register('error_text');
        }
        $new_store->put_store_description();
        $new_store->put_store_category();
        $new_store->put_store_admin();
        $new_store->put_store_data();
        $new_store->put_store_cost();
        $new_store->put_store_products();
        if (ALLOW_STORE_SITE_TEXT == 'true') {
            $new_store->put_store_language('english');
        }
        $new_store->send_store_email($gender);
        smn_redirect(smn_href_link(FILENAME_CREATE_STORE_ACCOUNT_SUCCESS, '', 'NONSSL'));
    }
}
$breadcrumb->add(NAVBAR_TITLE, smn_href_link(FILENAME_CREATE_STORE_ACCOUNT, '', 'NONSSL'));
$today = getdate();
for ($i = 1; $i <= 31; $i++) {
    $day_drop_down_array[] = array('id' => sprintf('%02d', $i), 'text' => $i);
}
for ($i = 1; $i <= 12; $i++) {
    $month_drop_down_array[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, $today['year'])));
}
for ($i = 1935; $i <= (int) $today['year']; $i++) {
    $year_drop_down_array[] = array('id' => $i, 'text' => $i);
}
コード例 #2
0
 $store_info->set_store_name($new_store_name);
 $store_info->set_store_description($store_description);
 $store_info->set_store_category($store_catagory);
 $store_info->set_store_logo('store_image');
 if ($_GET['action'] == 'process') {
     $customer_store_id = $store_info->create_store();
     $store_info->put_store_description();
     $store_info->put_store_category();
     $store_info->put_store_admin();
     $store_info->put_store_data();
     $store_info->put_store_cost();
     $store_info->put_store_products();
     if (ALLOW_STORE_SITE_TEXT == 'true') {
         $store_info->put_store_language('english');
     }
     $store_info->send_store_email($gender);
     $error_text = $store_info->put_logo_image('update');
 } else {
     $customer_store_id = (int) $_GET['sID'];
     //update existing store here....
     $store_info->update_store_info();
     $error_text = $store_info->put_logo_image('update');
     $sql_store_array = array('store_status' => $store_status);
     smn_db_perform(TABLE_STORE_MAIN, $sql_store_array, 'update', "store_id = '" . (int) $_GET['sID'] . "'");
     $sql_member_array = array('products_id' => (int) $store_products_id);
     smn_db_perform(TABLE_MEMBER_ORDERS, $sql_member_array, 'update', "store_id = '" . (int) $_GET['sID'] . "'");
     if ((int) $_GET['sID'] != 1) {
         $sql_data_array = array('admin_groups_id' => (int) $new_store_type);
     }
     smn_db_perform(TABLE_ADMIN, $sql_data_array, 'update', "store_id = '" . (int) $_GET['sID'] . "'");
 }