function clsRecordcharges() { global $FileName; $this->Visible = true; $this->Errors = new clsErrors(); $this->ds = new clschargesDataSource(); $this->UpdateAllowed = false; $this->DeleteAllowed = false; if ($this->Visible) { $this->ComponentName = "charges"; $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName); $CCSForm = CCGetFromGet("ccsForm", ""); $this->FormSubmitted = $CCSForm == $this->ComponentName; $Method = $this->FormSubmitted ? ccsPost : ccsGet; $this->user_id = new clsControl(ccsListBox, "user_id", "User Id", ccsInteger, "", CCGetRequestParam("user_id", $Method)); $this->user_id_ds = new clsDBDBNetConnect(); $this->user_id_ds->SQL = "SELECT * FROM users ORDER BY user_login ASC"; $user_id_values = CCGetListValues($this->user_id_ds, $this->user_id_ds->SQL, $this->user_id_ds->Where, $this->user_id_ds->Order, "user_id", "user_login"); $this->user_id->Values = $user_id_values; $this->charge = new clsControl(ccsTextBox, "charge", "charge", ccsFloat, "", CCGetRequestParam("charge", $Method)); $this->cause = new clsControl(ccsTextArea, "cause", "Cause", ccsMemo, "", CCGetRequestParam("cause", $Method)); $this->Insert = new clsButton("Insert"); $this->Cancel = new clsButton("Cancel"); $this->date = new clsControl(ccsHidden, "date", "Date", ccsInteger, "", CCGetRequestParam("date", $Method)); } }
function Prepare() { if ($this->DSType == dsTable || $this->DSType == dsSQL || $this->DSType == dsProcedure) { if (!isset($this->ds->CCSEvents)) { $this->ds->CCSEvents = ""; } if (!strlen($this->BoundColumn)) { $this->BoundColumn = 0; } if (!strlen($this->TextColumn)) { $this->TextColumn = 1; } $this->EventResult = CCGetEvent($this->ds->CCSEvents, "BeforeBuildSelect"); $this->EventResult = CCGetEvent($this->ds->CCSEvents, "BeforeExecuteSelect"); $this->Values = CCGetListValues($this->ds, $this->ds->SQL, $this->ds->Where, $this->ds->Order, $this->BoundColumn, $this->TextColumn); $this->EventResult = CCGetEvent($this->ds->CCSEvents, "AfterExecuteSelect"); } }
function clsRecordusers() { global $FileName; $this->Visible = true; $this->Errors = new clsErrors(); $this->ds = new clsusersDataSource(); $this->InsertAllowed = false; $this->DeleteAllowed = false; if ($this->Visible) { $this->ComponentName = "users"; $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName); $CCSForm = CCGetFromGet("ccsForm", ""); $this->FormSubmitted = $CCSForm == $this->ComponentName; $Method = $this->FormSubmitted ? ccsPost : ccsGet; $this->first_name = new clsControl(ccsLabel, "first_name", "First Name", ccsText, "", CCGetRequestParam("first_name", $Method)); $this->last_name = new clsControl(ccsLabel, "last_name", "Last Name", ccsText, "", CCGetRequestParam("last_name", $Method)); $this->address1 = new clsControl(ccsTextBox, "address1", "Address1", ccsText, "", CCGetRequestParam("address1", $Method)); $this->address2 = new clsControl(ccsTextBox, "address2", "Address2", ccsText, "", CCGetRequestParam("address2", $Method)); $this->city = new clsControl(ccsTextBox, "city", "City", ccsText, "", CCGetRequestParam("city", $Method)); $this->state_id = new clsControl(ccsTextBox, "state_id", "State Province", ccsText, "", CCGetRequestParam("state_id", $Method)); $this->zip = new clsControl(ccsTextBox, "zip", "Zip", ccsText, "", CCGetRequestParam("zip", $Method)); $this->country_id = new clsControl(ccsListBox, "country_id", "Country Id", ccsInteger, "", CCGetRequestParam("country_id", $Method)); $this->country_id_ds = new clsDBNetConnect(); $this->country_id_ds->SQL = "SELECT * " . "FROM lookup_countries"; $country_id_values = CCGetListValues($this->country_id_ds, $this->country_id_ds->SQL, $this->country_id_ds->Where, $this->country_id_ds->Order, "country_id", "country_desc"); $this->country_id->Values = $country_id_values; $this->phone_day = new clsControl(ccsTextBox, "phone_day", "Phone Day", ccsText, "", CCGetRequestParam("phone_day", $Method)); $this->phone_evn = new clsControl(ccsTextBox, "phone_evn", "Phone Evn", ccsText, "", CCGetRequestParam("phone_evn", $Method)); $this->fax = new clsControl(ccsTextBox, "fax", "Fax", ccsText, "", CCGetRequestParam("fax", $Method)); $this->Update = new clsButton("Update"); $this->Cancel = new clsButton("Cancel"); } }
function Prepare() { if ($this->DSType == dsTable || $this->DSType == dsSQL || $this->DSType == dsProcedure) { if (!isset($this->DataSource->CCSEvents)) { $this->DataSource->CCSEvents = ""; } if (!strlen($this->BoundColumn)) { $this->BoundColumn = 0; } if (!strlen($this->TextColumn)) { $this->TextColumn = 1; } $this->EventResult = CCGetEvent($this->DataSource->CCSEvents, "BeforeBuildSelect", $this); $this->EventResult = CCGetEvent($this->DataSource->CCSEvents, "BeforeExecuteSelect", $this); $FieldName = strlen($this->Caption) ? $this->Caption : $this->Name; list($this->Values, $this->Errors) = CCGetListValues($this->DataSource, $this->DataSource->SQL, $this->DataSource->Where, $this->DataSource->Order, $this->BoundColumn, $this->TextColumn, $this->DBFormat, $this->DataType, $this->Errors, $FieldName, $this->DSType); $this->DataSource->close(); $this->EventResult = CCGetEvent($this->DataSource->CCSEvents, "AfterExecuteSelect", $this); } }
function clsRecordusers() { global $FileName; $this->Visible = true; $this->Errors = new clsErrors(); $this->ds = new clsusersDataSource(); $this->UpdateAllowed = false; $this->DeleteAllowed = false; if ($this->Visible) { $this->ComponentName = "users"; $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName); $CCSForm = CCGetFromGet("ccsForm", ""); $this->FormSubmitted = $CCSForm == $this->ComponentName; $Method = $this->FormSubmitted ? ccsPost : ccsGet; $this->user_login = new clsControl(ccsTextBox, "user_login", " Login", ccsText, "", CCGetRequestParam("user_login", $Method)); $this->user_login->Required = true; $this->email = new clsControl(ccsTextBox, "email", "Email", ccsText, "", CCGetRequestParam("email", $Method)); $this->email->Required = true; $this->first_name = new clsControl(ccsTextBox, "first_name", "First Name", ccsText, "", CCGetRequestParam("first_name", $Method)); $this->first_name->Required = true; $this->last_name = new clsControl(ccsTextBox, "last_name", "Last Name", ccsText, "", CCGetRequestParam("last_name", $Method)); $this->last_name->Required = true; $this->address1 = new clsControl(ccsTextBox, "address1", "Address1", ccsText, "", CCGetRequestParam("address1", $Method)); $this->address1->Required = true; $this->address2 = new clsControl(ccsTextBox, "address2", "Address2", ccsText, "", CCGetRequestParam("address2", $Method)); $this->city = new clsControl(ccsTextBox, "city", "City", ccsText, "", CCGetRequestParam("city", $Method)); $this->city->Required = true; $this->state_id = new clsControl(ccsTextBox, "state_id", "State", ccsText, "", CCGetRequestParam("state_id", $Method)); $this->state_id->Required = true; $this->zip = new clsControl(ccsTextBox, "zip", "Zip", ccsText, "", CCGetRequestParam("zip", $Method)); $this->zip->Required = true; $this->country_id = new clsControl(ccsListBox, "country_id", "Country Id", ccsInteger, "", CCGetRequestParam("country_id", $Method)); $this->country_id_ds = new clsDBNetConnect(); $this->country_id_ds->SQL = "SELECT * " . "FROM lookup_countries"; $country_id_values = CCGetListValues($this->country_id_ds, $this->country_id_ds->SQL, $this->country_id_ds->Where, $this->country_id_ds->Order, "country_id", "country_desc"); $this->country_id->Values = $country_id_values; $this->country_id->Required = true; $this->phone_day = new clsControl(ccsTextBox, "phone_day", "Phone Day", ccsText, "", CCGetRequestParam("phone_day", $Method)); $this->phone_evn = new clsControl(ccsTextBox, "phone_evn", "Phone Evn", ccsText, "", CCGetRequestParam("phone_evn", $Method)); $this->fax = new clsControl(ccsTextBox, "fax", "Fax", ccsText, "", CCGetRequestParam("fax", $Method)); $this->age = new clsControl(ccsListBox, "age", "Age", ccsInteger, "", CCGetRequestParam("age", $Method)); $this->age_ds = new clsDBNetConnect(); $this->age_ds->SQL = "SELECT * " . "FROM lookup_ages"; $age_values = CCGetListValues($this->age_ds, $this->age_ds->SQL, $this->age_ds->Where, $this->age_ds->Order, "age_id", "age_desc"); $this->age->Values = $age_values; global $now; if ($now["bounceout"]) { $this->age->Required = true; } $this->gender = new clsControl(ccsListBox, "gender", "Gender", ccsInteger, "", CCGetRequestParam("gender", $Method)); $this->gender_ds = new clsDBNetConnect(); $this->gender_ds->SQL = "SELECT * " . "FROM lookup_genders"; $gender_values = CCGetListValues($this->gender_ds, $this->gender_ds->SQL, $this->gender_ds->Where, $this->gender_ds->Order, "gender_id", "gender_desc"); $this->gender->Values = $gender_values; $this->education = new clsControl(ccsListBox, "education", "Education", ccsInteger, "", CCGetRequestParam("education", $Method)); $this->education_ds = new clsDBNetConnect(); $this->education_ds->SQL = "SELECT * " . "FROM lookup_educations"; $education_values = CCGetListValues($this->education_ds, $this->education_ds->SQL, $this->education_ds->Where, $this->education_ds->Order, "education_id", "education_desc"); $this->education->Values = $education_values; $this->income = new clsControl(ccsListBox, "income", "Income", ccsInteger, "", CCGetRequestParam("income", $Method)); $this->income_ds = new clsDBNetConnect(); $this->income_ds->SQL = "SELECT * " . "FROM lookup_incomes"; $income_values = CCGetListValues($this->income_ds, $this->income_ds->SQL, $this->income_ds->Where, $this->income_ds->Order, "income_id", "income_desc"); $this->income->Values = $income_values; $this->newsletter = new clsControl(ccsListBox, "newsletter", "Newsletter", ccsInteger, "", CCGetRequestParam("newsletter", $Method)); $newsletter_values = array(array("0", "No Thanks"), array("1", "Yes Please")); $this->newsletter->Values = $newsletter_values; $this->agreement_id = new clsControl(ccsCheckBox, "agreement_id", "The Terms & Agreement", ccsInteger, "", CCGetRequestParam("agreement_id", $Method)); $this->agreement_id->Required = true; $this->agreement_id->CheckedValue = 1; $this->agreement_id->UncheckedValue = 0; $this->Insert = new clsButton("Insert"); $this->user_password = new clsControl(ccsHidden, "user_password", " Password", ccsText, "", CCGetRequestParam("user_password", $Method)); $this->user_password->Required = true; $this->date_created = new clsControl(ccsHidden, "date_created", "Date Created", ccsInteger, "", CCGetRequestParam("date_created", $Method)); $this->ip_insert = new clsControl(ccsHidden, "ip_insert", "Ip Insert", ccsText, "", CCGetRequestParam("ip_insert", $Method)); $this->ip_update = new clsControl(ccsHidden, "ip_update", "Ip Update", ccsText, "", CCGetRequestParam("ip_update", $Method)); $this->status = new clsControl(ccsHidden, "status", "Status", ccsInteger, "", CCGetRequestParam("status", $Method)); if (!$this->FormSubmitted) { if (!strlen($this->age->GetValue())) { $this->age->SetValue(0); } if (!strlen($this->gender->GetValue())) { $this->gender->SetValue(0); } if (!strlen($this->education->GetValue())) { $this->education->SetValue(0); } if (!strlen($this->income->GetValue())) { $this->income->SetValue(0); } if (!strlen($this->newsletter->GetValue())) { $this->newsletter->SetValue(1); } } } }
function clsRecorditems1() { global $FileName; $this->Visible = true; $this->Errors = new clsErrors(); $this->ds = new clsitems1DataSource(); $this->InsertAllowed = false; if ($this->Visible) { $this->ComponentName = "items1"; $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName); $CCSForm = CCGetFromGet("ccsForm", ""); $this->FormSubmitted = $CCSForm == $this->ComponentName; $Method = $this->FormSubmitted ? ccsPost : ccsGet; $this->ItemNumLabel = new clsControl(ccsLabel, "ItemNumLabel", "ItemNumLabel", ccsInteger, "", CCGetRequestParam("ItemNumLabel", $Method)); $this->UserIDLabel = new clsControl(ccsLabel, "UserIDLabel", "UserIDLabel", ccsText, "", CCGetRequestParam("UserIDLabel", $Method)); $this->StartedLabel = new clsControl(ccsLabel, "StartedLabel", "StartedLabel", ccsText, "", CCGetRequestParam("StartedLabel", $Method)); $this->ClosesLabel = new clsControl(ccsLabel, "ClosesLabel", "ClosesLabel", ccsText, "", CCGetRequestParam("ClosesLabel", $Method)); $this->title = new clsControl(ccsTextBox, "title", "Title", ccsText, "", CCGetRequestParam("title", $Method)); $this->status = new clsControl(ccsListBox, "status", "Status", ccsInteger, "", CCGetRequestParam("status", $Method)); $status_values = array(array("0", "Not Started"), array("1", "Active Listing"), array("2", "Closed")); $this->status->Values = $status_values; $this->end_reason = new clsControl(ccsTextBox, "end_reason", "End Reason", ccsText, "", CCGetRequestParam("end_reason", $Method)); $this->category = new clsControl(ccsListBox, "category", "Category", ccsInteger, "", CCGetRequestParam("category", $Method)); $this->category_ds = new clsDBDBNetConnect(); $this->category_ds->SQL = "SELECT * " . "FROM categories"; $category_values = CCGetListValues($this->category_ds, $this->category_ds->SQL, $this->category_ds->Where, $this->category_ds->Order, "cat_id", "name"); $this->category->Values = $category_values; $this->close = new clsControl(ccsListBox, "close", "Close", ccsInteger, "", CCGetRequestParam("close", $Method)); $this->close_ds = new clsDBDBNetConnect(); $this->close_ds->SQL = "SELECT * " . "FROM lookup_listing_dates"; $close_values = CCGetListValues($this->close_ds, $this->close_ds->SQL, $this->close_ds->Where, $this->close_ds->Order, "date_id", "days"); $this->close->Values = $close_values; $this->asking_price = new clsControl(ccsTextBox, "asking_price", "Asking Price", ccsFloat, array(False, 2, ".", "", False, "", "", 1, True, ""), CCGetRequestParam("asking_price", $Method)); $this->make_offer = new clsControl(ccsCheckBox, "make_offer", "Make Offer", ccsInteger, "", CCGetRequestParam("make_offer", $Method)); $this->make_offer->CheckedValue = 1; $this->make_offer->UncheckedValue = 0; $this->quantity = new clsControl(ccsTextBox, "quantity", "Quantity", ccsInteger, "", CCGetRequestParam("quantity", $Method)); $this->city_town = new clsControl(ccsTextBox, "city_town", "City Town", ccsText, "", CCGetRequestParam("city_town", $Method)); $this->states = new clsControl(ccsListBox, "states", "State Province", ccsText, "", CCGetRequestParam("states", $Method)); $this->states_ds = new clsDBDBNetConnect(); $this->states_ds->SQL = "SELECT * " . "FROM lookup_states"; $states_values = CCGetListValues($this->states_ds, $this->states_ds->SQL, $this->states_ds->Where, $this->states_ds->Order, "state_id", "state_desc"); $this->states->Values = $states_values; $this->description = new clsControl(ccsTextArea, "description", "Description", ccsMemo, "", CCGetRequestParam("description", $Method)); $this->dateadded = new clsControl(ccsTextBox, "dateadded", "Dateadded", ccsText, "", CCGetRequestParam("dateadded", $Method)); $this->added_description = new clsControl(ccsTextArea, "added_description", "Added Description", ccsMemo, "", CCGetRequestParam("added_description", $Method)); $this->image_one = new clsControl(ccsTextBox, "image_one", "Image One", ccsText, "", CCGetRequestParam("image_one", $Method)); $this->image_two = new clsControl(ccsTextBox, "image_two", "Image Two", ccsText, "", CCGetRequestParam("image_two", $Method)); $this->image_three = new clsControl(ccsTextBox, "image_three", "Image Three", ccsText, "", CCGetRequestParam("image_three", $Method)); $this->image_four = new clsControl(ccsTextBox, "image_four", "Image Four", ccsText, "", CCGetRequestParam("image_four", $Method)); $this->image_five = new clsControl(ccsTextBox, "image_five", "Image Five", ccsText, "", CCGetRequestParam("image_five", $Method)); $this->bold = new clsControl(ccsCheckBox, "bold", "Bold", ccsInteger, "", CCGetRequestParam("bold", $Method)); $this->bold->CheckedValue = 1; $this->bold->UncheckedValue = 0; $this->background = new clsControl(ccsCheckBox, "background", "Background", ccsInteger, "", CCGetRequestParam("background", $Method)); $this->background->CheckedValue = 1; $this->background->UncheckedValue = 0; $this->cat_featured = new clsControl(ccsCheckBox, "cat_featured", "Cat Featured", ccsInteger, "", CCGetRequestParam("cat_featured", $Method)); $this->cat_featured->CheckedValue = 1; $this->cat_featured->UncheckedValue = 0; $this->home_featured = new clsControl(ccsCheckBox, "home_featured", "Home Featured", ccsInteger, "", CCGetRequestParam("home_featured", $Method)); $this->home_featured->CheckedValue = 1; $this->home_featured->UncheckedValue = 0; $this->gallery_featured = new clsControl(ccsCheckBox, "gallery_featured", "Gallery Featured", ccsInteger, "", CCGetRequestParam("gallery_featured", $Method)); $this->gallery_featured->CheckedValue = 1; $this->gallery_featured->UncheckedValue = 0; $this->image_preview = new clsControl(ccsCheckBox, "image_preview", "Image Preview", ccsInteger, "", CCGetRequestParam("image_preview", $Method)); $this->image_preview->CheckedValue = 1; $this->image_preview->UncheckedValue = 0; $this->slide_show = new clsControl(ccsCheckBox, "slide_show", "Slide Show", ccsInteger, "", CCGetRequestParam("slide_show", $Method)); $this->slide_show->CheckedValue = 1; $this->slide_show->UncheckedValue = 0; $this->counter = new clsControl(ccsCheckBox, "counter", "Counter", ccsInteger, "", CCGetRequestParam("counter", $Method)); $this->counter->CheckedValue = 1; $this->counter->UncheckedValue = 0; $this->hits = new clsControl(ccsTextBox, "hits", "Hits", ccsInteger, "", CCGetRequestParam("hits", $Method)); $this->Update = new clsButton("Update"); $this->Delete = new clsButton("Delete"); $this->Cancel = new clsButton("Cancel"); $this->user_id = new clsControl(ccsHidden, "user_id", "User Id", ccsInteger, "", CCGetRequestParam("user_id", $Method)); $this->started = new clsControl(ccsHidden, "started", "Started", ccsInteger, "", CCGetRequestParam("started", $Method)); $this->closes = new clsControl(ccsHidden, "closes", "Closes", ccsInteger, "", CCGetRequestParam("closes", $Method)); $this->ItemNum = new clsControl(ccsHidden, "ItemNum", "Item Number", ccsInteger, "", CCGetRequestParam("ItemNum", $Method)); if (!$this->FormSubmitted) { if (!strlen($this->asking_price->GetValue())) { $this->asking_price->SetValue(0.0); } } } }
function clsRecorditems() { global $FileName; global $valid; $this->Visible = true; $this->Errors = new clsErrors(); $this->ds = new clsitemsDataSource(); if ($this->Visible) { $this->ComponentName = "items"; $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", array("Preview")), "ccsForm", $this->ComponentName); $CCSForm = CCGetFromGet("ccsForm", ""); $this->FormSubmitted = $CCSForm == $this->ComponentName; $Method = $this->FormSubmitted ? ccsPost : ccsGet; $this->category = new clsControl(ccsTextBox, "category", "Category", ccsInteger, "", CCGetRequestParam("category", $Method)); $this->category->Required = true; $this->title = new clsControl(ccsTextBox, "title", "Title", ccsText, "", CCGetRequestParam("title", $Method)); $this->title->Required = true; $this->item_paypal = new clsControl(ccsTextBox, "item_paypal", "item_paypal", ccsText, "", CCGetRequestParam("item_paypal", $Method)); $this->quantity = new clsControl(ccsTextBox, "quantity", "Quantity", ccsInteger, "", CCGetRequestParam("quantity", $Method)); $this->ship1 = new clsControl(ccsTextBox, "ship1", "Shipping 1", ccsText, "", CCGetRequestParam("ship1", $Method)); $this->shipfee1 = new clsControl(ccsTextBox, "shipfee1", "Shipping Fee 1", ccsFloat, "", CCGetRequestParam("shipfee1", $Method)); $this->ship2 = new clsControl(ccsTextBox, "ship2", "Shipping 2", ccsText, "", CCGetRequestParam("ship2", $Method)); $this->shipfee2 = new clsControl(ccsTextBox, "shipfee2", "Shipping Fee 2", ccsFloat, "", CCGetRequestParam("shipfee2", $Method)); $this->ship3 = new clsControl(ccsTextBox, "ship3", "Shipping 3", ccsText, "", CCGetRequestParam("ship3", $Method)); $this->shipfee3 = new clsControl(ccsTextBox, "shipfee3", "Shipping Fee 3", ccsFloat, "", CCGetRequestParam("shipfee3", $Method)); $this->ship4 = new clsControl(ccsTextBox, "ship4", "Shipping 4", ccsText, "", CCGetRequestParam("ship4", $Method)); $this->shipfee4 = new clsControl(ccsTextBox, "shipfee4", "Shipping Fee 4", ccsFloat, "", CCGetRequestParam("shipfee4", $Method)); $this->ship5 = new clsControl(ccsTextBox, "ship5", "Shipping 5", ccsText, "", CCGetRequestParam("ship5", $Method)); $this->shipfee5 = new clsControl(ccsTextBox, "shipfee5", "Shipping Fee 5", ccsFloat, "", CCGetRequestParam("shipfee5", $Method)); $this->asking_price = new clsControl(ccsTextBox, "asking_price", "Asking Price", ccsFloat, "", CCGetRequestParam("asking_price", $Method)); $this->make_offer = new clsControl(ccsCheckBox, "make_offer", "Make Offer", ccsInteger, "", CCGetRequestParam("make_offer", $Method)); $this->make_offer->CheckedValue = 1; $this->make_offer->UncheckedValue = 0; $this->description = new clsControl(ccsTextArea, "description", "Description", ccsMemo, "", CCGetRequestParam("description", $Method)); $this->image_preview = new clsControl(ccsCheckBox, "image_preview", "Image Preview", ccsInteger, "", CCGetRequestParam("image_preview", $Method)); $this->image_preview->CheckedValue = 1; $this->image_preview->UncheckedValue = 0; $this->slide_show = new clsControl(ccsCheckBox, "slide_show", "Slide Show", ccsInteger, "", CCGetRequestParam("slide_show", $Method)); $this->slide_show->CheckedValue = 1; $this->slide_show->UncheckedValue = 0; $this->city_town = new clsControl(ccsTextBox, "city_town", "City Town", ccsText, "", CCGetRequestParam("city_town", $Method)); $this->state_province = new clsControl(ccsTextBox, "state_province", "State", ccsText, "", CCGetRequestParam("state_province", $Method)); $this->country = new clsControl(ccsListBox, "country", "Country Id", ccsInteger, "", CCGetRequestParam("country", $Method)); $this->country_ds = new clsDBNetConnect(); $this->country_ds->SQL = "SELECT * " . "FROM lookup_countries"; $country_values = CCGetListValues($this->country_ds, $this->country_ds->SQL, $this->country_ds->Where, $this->country_ds->Order, "country_id", "country_desc"); $this->country->Values = $country_values; if ($valid) { $this->fakeuser = new clsControl(ccsListBox, "fakeuser", "Fake User Id", ccsInteger, "", CCGetRequestParam("fakeuser", $Method)); $this->fakeuser_ds = new clsDBNetConnect(); $this->fakeuser_ds->SQL = "SELECT * " . "FROM users"; $fakeuser_values = CCGetListValues($this->fakeuser_ds, $this->fakeuser_ds->SQL, $this->fakeuser_ds->Where, $this->fakeuser_ds->Order, "user_id", "user_login"); $this->fakeuser->Values = $fakeuser_values; $this->startnow = new clsControl(ccsListBox, "startnow", "startnow", ccsInteger, "", CCGetRequestParam("startnow", $Method)); $startnow_values = array(array("0", "No"), array("1", "Yes")); $this->startnow->Values = $startnow_values; $this->addtime = new clsControl(ccsListBox, "addtime", "addtime", ccsInteger, "", CCGetRequestParam("addtime", $Method)); $addtime_values = array(array("0", "No"), array("1", "Yes")); $this->addtime->Values = $addtime_values; } //$this->close = new clsControl(ccsListBox, "close", "Close", ccsInteger, "", CCGetRequestParam("close", $Method)); // $this->close_ds = new clsDBNetConnect(); // $this->close_ds->SQL = "SELECT * " . //"FROM lookup_listing_dates"; // $country_values = CCGetListValues($this->country_ds, $this->country_ds->SQL, $this->country_ds->Where, $this->country_ds->Order, "date_id", "days"); // $this->country->Values = $country_values; $this->close = new clsControl(ccsListBox, "close", "Close", ccsInteger, "", CCGetRequestParam("close", $Method)); $this->close_ds = new clsDBNetConnect(); $closestCat = getparents($_GET["finalcat"]); if (!$closestCat) { $closestCat = 1; } $this->close_ds->SQL = "SELECT * " . "FROM lookup_listing_dates where cat_id=" . $closestCat; $close_values = CCGetListValues($this->close_ds, $this->close_ds->SQL, $this->close_ds->Where, $this->close_ds->Order, "date_id", "days"); $this->close->Values = $close_values; $this->home_featured = new clsControl(ccsListBox, "home_featured", "Home Featured", ccsInteger, "", CCGetRequestParam("home_featured", $Method)); $home_featured_values = array(array("0", "No"), array("1", "Yes")); $this->home_featured->Values = $home_featured_values; $this->gallery_featured = new clsControl(ccsListBox, "gallery_featured", "Gallery Featured", ccsInteger, "", CCGetRequestParam("gallery_featured", $Method)); $gallery_featured_values = array(array("0", "No"), array("1", "Yes")); $this->gallery_featured->Values = $gallery_featured_values; $this->cat_featured = new clsControl(ccsListBox, "cat_featured", "Cat Featured", ccsInteger, "", CCGetRequestParam("cat_featured", $Method)); $cat_featured_values = array(array("0", "No"), array("1", "Yes")); $this->cat_featured->Values = $cat_featured_values; $this->bold = new clsControl(ccsListBox, "bold", "Bold", ccsInteger, "", CCGetRequestParam("bold", $Method)); $bold_values = array(array("0", "No"), array("1", "Yes")); $this->bold->Values = $bold_values; $this->background = new clsControl(ccsListBox, "background", "Background", ccsInteger, "", CCGetRequestParam("background", $Method)); $background_values = array(array("0", "No"), array("1", "Yes")); $this->background->Values = $background_values; $this->counter = new clsControl(ccsListBox, "counter", "Counter", ccsInteger, "", CCGetRequestParam("counter", $Method)); $counter_values = array(array("0", "No"), array("1", "Yes")); $this->counter->Values = $counter_values; $this->ItemNum = new clsControl(ccsHidden, "ItemNum", "Num", ccsInteger, "", CCGetRequestParam("ItemNum", $Method)); $this->ItemNum->Required = true; $this->user_id = new clsControl(ccsHidden, "user_id", "User Id", ccsInteger, "", CCGetRequestParam("user_id", $Method)); $this->closes = new clsControl(ccsHidden, "closes", "Closes on", ccsInteger, "", CCGetRequestParam("closes", $Method)); $this->started = new clsControl(ccsHidden, "started", "Started on", ccsInteger, "", CCGetRequestParam("started", $Method)); $this->status = new clsControl(ccsHidden, "status", "Status", ccsInteger, "", CCGetRequestParam("status", $Method)); $this->image_five = new clsControl(ccsHidden, "image_five", "Image Five", ccsText, "", CCGetRequestParam("image_five", $Method)); $this->image_four = new clsControl(ccsHidden, "image_four", "Image Four", ccsText, "", CCGetRequestParam("image_four", $Method)); $this->image_three = new clsControl(ccsHidden, "image_three", "Image Three", ccsText, "", CCGetRequestParam("image_three", $Method)); $this->image_two = new clsControl(ccsHidden, "image_two", "Image Two", ccsText, "", CCGetRequestParam("image_two", $Method)); $this->image_one = new clsControl(ccsHidden, "image_one", "Image One", ccsText, "", CCGetRequestParam("image_one", $Method)); $this->Update = new clsButton("Update"); $this->Insert = new clsButton("Insert"); $this->Preview = new clsButton("Preview"); } }