Ejemplo n.º 1
0
 function clsRecordgroups()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clsgroupsDataSource();
     $this->InsertAllowed = true;
     $this->UpdateAllowed = true;
     $this->DeleteAllowed = true;
     if ($this->Visible) {
         $this->ComponentName = "groups";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->title = new clsControl(ccsTextBox, "title", "title", ccsText, "", CCGetRequestParam("title", $Method));
         $this->description = new clsControl(ccsTextArea, "description", "description", ccsMemo, array(False, 2, ".", "", False, "", "", 1, True, ""), CCGetRequestParam("description", $Method));
         $this->listing_discount = new clsControl(ccsTextBox, "listing_discount", "listing_discount", ccsInteger, "", CCGetRequestParam("listing_discount", $Method));
         $this->tokens = new clsControl(ccsTextBox, "tokens", "tokens", ccsInteger, "", CCGetRequestParam("tokens", $Method));
         $this->req_approval = new clsControl(ccsListBox, "req_approval", "req_approval", ccsInteger, "", CCGetRequestParam("req_approval", $Method));
         $this->req_approval->DSType = dsListOfValues;
         $this->req_approval->Values = array(array("0", "No"), array("1", "Yes"));
         $this->fe_admin = new clsControl(ccsListBox, "fe_admin", "fe_admin", ccsInteger, "", CCGetRequestParam("fe_admin", $Method));
         $this->fe_admin->DSType = dsListOfValues;
         $this->fe_admin->Values = array(array("0", "No"), array("1", "Yes"));
         $this->Insert = new clsButton("Insert");
         $this->Update = new clsButton("Update");
         $this->Delete = new clsButton("Delete");
         $this->Cancel = new clsButton("Cancel");
         $this->id = new clsControl(ccsHidden, "id", "id", ccsInteger, "", CCGetRequestParam("id", $Method));
     }
 }
Ejemplo n.º 2
0
 function clsRecorditemsSearch()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->InsertAllowed = false;
     $this->UpdateAllowed = false;
     $this->DeleteAllowed = false;
     if ($this->Visible) {
         $this->ComponentName = "itemsSearch";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->s_ItemNum = new clsControl(ccsTextBox, "s_ItemNum", "s_ItemNum", ccsInteger, "", CCGetRequestParam("s_ItemNum", $Method));
         $this->s_user_id = new clsControl(ccsTextBox, "s_user_id", "s_user_id", ccsText, "", CCGetRequestParam("s_user_id", $Method));
         $this->s_title = new clsControl(ccsTextBox, "s_title", "s_title", ccsText, "", CCGetRequestParam("s_title", $Method));
         $this->s_indexsearch = new clsControl(ccsTextBox, "s_indexsearch", "s_indexsearch", ccsText, "", CCGetRequestParam("s_indexsearch", $Method));
         $this->s_description = new clsControl(ccsTextBox, "s_description", "s_description", ccsMemo, "", CCGetRequestParam("s_description", $Method));
         $this->s_asking_min = new clsControl(ccsTextBox, "s_asking_min", "s_asking_min", ccsFloat, "", CCGetRequestParam("s_asking_min", $Method));
         $this->s_asking_max = new clsControl(ccsTextBox, "s_asking_max", "s_asking_max", ccsFloat, "", CCGetRequestParam("s_asking_max", $Method));
         $this->s_make_offer = new clsControl(ccsCheckBox, "s_make_offer", "s_make_offer", ccsInteger, "", CCGetRequestParam("s_make_offer", $Method));
         $this->s_make_offer->CheckedValue = 1;
         $this->s_make_offer->UncheckedValue = 0;
         $this->s_quantity = new clsControl(ccsTextBox, "s_quantity", "s_quantity", ccsInteger, "", CCGetRequestParam("s_quantity", $Method));
         $this->s_city_town = new clsControl(ccsTextBox, "s_city_town", "s_city_town", ccsText, "", CCGetRequestParam("s_city_town", $Method));
         $this->s_state_province = new clsControl(ccsTextBox, "s_state_province", "s_state_province", ccsText, "", CCGetRequestParam("s_state_province", $Method));
         $this->DoSearch = new clsButton("DoSearch");
     }
 }
Ejemplo n.º 3
0
 function clsRecordcategories()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clscategoriesDataSource();
     if ($this->Visible) {
         $this->ComponentName = "categories";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->sub_cat_id = new clsControl(ccsTextBox, "sub_cat_id", "sub_cat_id", ccsInteger, "", CCGetRequestParam("sub_cat_id", $Method));
         $this->caname = new clsControl(ccsTextBox, "caname", "caname", ccsText, "", CCGetRequestParam("caname", $Method));
         $this->weight = new clsControl(ccsTextBox, "weight", "Weight", ccsInteger, "", CCGetRequestParam("weight", $Method));
         $this->Insert = new clsButton("Insert");
         $this->Update = new clsButton("Update");
         $this->Delete = new clsButton("Delete");
         $this->Cancel = new clsButton("Cancel");
         $this->cat_id = new clsControl(ccsHidden, "cat_id", "cat_id", ccsInteger, "", CCGetRequestParam("cat_id", $Method));
         if (!$this->FormSubmitted) {
             if (!strlen($this->sub_cat_id->GetValue())) {
                 $this->sub_cat_id->SetValue(CCGetFromGet("SUBID", ""));
             }
             if (!strlen($this->weight->GetValue())) {
                 $this->weight->SetValue(1);
             }
         }
     }
 }
Ejemplo n.º 4
0
 function clsRecordsettings_accounting()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clssettings_accountingDataSource();
     $this->InsertAllowed = false;
     $this->DeleteAllowed = false;
     if ($this->Visible) {
         $this->ComponentName = "settings_accounting";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->paypal_on = new clsControl(ccsListBox, "paypal_on", "paypal_on", ccsInteger, "", CCGetRequestParam("paypal_on", $Method));
         $paypal_on_values = array(array("0", "OFF"), array("1", "ON"));
         $this->paypal_on->Values = $paypal_on_values;
         $this->paypal = new clsControl(ccsTextBox, "paypal", "paypal", ccsText, "", CCGetRequestParam("paypal", $Method));
         $this->authorizenet_on = new clsControl(ccsListBox, "authorizenet_on", "authorizenet_on", ccsInteger, "", CCGetRequestParam("authorizenet_on", $Method));
         $authorizenet_on_values = array(array("0", "OFF"), array("1", "AuthorizeNet"), array("2", "PlanetPayment"), array("3", "QuickCommerce"));
         $this->authorizenet_on->Values = $authorizenet_on_values;
         $this->authorizenet = new clsControl(ccsTextBox, "authorizenet", "authorizenet", ccsText, "", CCGetRequestParam("authorizenet", $Method));
         $this->authorize_tran_key = new clsControl(ccsTextBox, "authorize_tran_key", "authorize_tran_key", ccsText, "", CCGetRequestParam("authorize_tran_key", $Method));
         $this->Update = new clsButton("Update");
         $this->Delete = new clsButton("Delete");
         $this->set_id = new clsControl(ccsHidden, "set_id", "set_id", ccsInteger, "", CCGetRequestParam("set_id", $Method));
         $this->set_id->Required = true;
     }
 }
Ejemplo n.º 5
0
 function clsRecordlookup_listing_dates()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clslookup_listing_datesDataSource();
     $this->InsertAllowed = true;
     $this->UpdateAllowed = true;
     $this->DeleteAllowed = true;
     if ($this->Visible) {
         $this->ComponentName = "lookup_listing_dates";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->days = new clsControl(ccsTextBox, "days", "days", ccsInteger, "", CCGetRequestParam("days", $Method));
         $this->Checkbox1 = new clsControl(ccsCheckBox, "Checkbox1", "Checkbox1", ccsBoolean, "", CCGetRequestParam("Checkbox1", $Method));
         $this->Checkbox1->CheckedValue = 1;
         $this->Checkbox1->UncheckedValue = 0;
         $this->fee = new clsControl(ccsTextBox, "fee", "Fee", ccsFloat, array(False, 2, ".", "", False, "", "", 1, True, ""), CCGetRequestParam("fee", $Method));
         $this->Insert = new clsButton("Insert");
         $this->Update = new clsButton("Update");
         $this->Delete = new clsButton("Delete");
         $this->Cancel = new clsButton("Cancel");
         $this->date_id = new clsControl(ccsHidden, "date_id", "date_id", ccsInteger, "", CCGetRequestParam("date_id", $Method));
     }
 }
Ejemplo n.º 6
0
 function clsRecordusers()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clsusersDataSource();
     $this->InsertAllowed = true;
     $this->UpdateAllowed = true;
     $this->DeleteAllowed = true;
     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->id = new clsControl(ccsLabel, "id", "id", ccsInteger, "", CCGetRequestParam("id", $Method));
         $this->user_id = new clsControl(ccsListBox, "user_id", "user_id", ccsInteger, "", CCGetRequestParam("user_id", $Method));
         $this->user_id->DSType = dsTable;
         list($this->user_id->BoundColumn, $this->user_id->TextColumn) = array("user_id", "user_login");
         $this->user_id->ds = new clsDBDBNetConnect();
         $this->user_id->ds->SQL = "SELECT *  " . "FROM users";
         //            $this->user_id->Required = true;
         $this->paid = new clsControl(ccsTextBox, "paid", "paid", ccsText, "", CCGetRequestParam("paid", $Method));
         $this->subsc_id = new clsControl(ccsListBox, "subsc_id", "subsc_id", ccsInteger, "", CCGetRequestParam("subsc_id", $Method));
         $this->subsc_id->DSType = dsTable;
         list($this->subsc_id->BoundColumn, $this->subsc_id->TextColumn) = array("id", "title");
         $this->subsc_id->ds = new clsDBDBNetConnect();
         $this->subsc_id->ds->SQL = "SELECT *  " . "FROM subscription_plans";
         $this->Insert = new clsButton("Insert");
         $this->Update = new clsButton("Update");
         $this->Delete = new clsButton("Delete");
     }
 }
Ejemplo n.º 7
0
 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));
     }
 }
Ejemplo n.º 8
0
 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");
     }
 }
Ejemplo n.º 9
0
 function clsRecordpromo()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clspromoDataSource();
     $this->InsertAllowed = false;
     if ($this->Visible) {
         $this->ComponentName = "promo";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->id = new clsControl(ccsLabel, "id", "id", ccsInteger, "", CCGetRequestParam("id", $Method));
         $this->end = new clsControl(ccsText, "end", "end", ccsText, "", CCGetRequestParam("end", $Method));
         $this->start = new clsControl(ccsText, "start", "start", ccsText, "", CCGetRequestParam("start", $Method));
         $this->amount = new clsControl(ccsTextBox, "amount", "amount", ccsFloat, array(False, 2, ".", "", False, "", "", 1, True, ""), CCGetRequestParam("amount", $Method));
         $this->group = new clsControl(ccsListBox, "group", "Group", ccsInteger, "", CCGetRequestParam("group", $Method));
         $this->group->DSType = dsTable;
         list($this->group->BoundColumn, $this->group->TextColumn) = array("id", "title");
         $this->group->ds = new clsDBDBNetConnect();
         $this->group->ds->SQL = "SELECT * FROM groups";
         $this->code = new clsControl(ccsTextArea, "code", "code", ccsText, "", CCGetRequestParam("code", $Method));
         $this->Update = new clsButton("Update");
         $this->Delete = new clsButton("Delete");
         $this->Cancel = new clsButton("Cancel");
     }
 }
Ejemplo n.º 10
0
 function clsRecordadministrators()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clsadministratorsDataSource();
     if ($this->Visible) {
         $this->ComponentName = "administrators";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->username = new clsControl(ccsTextBox, "username", "username", ccsText, "", CCGetRequestParam("username", $Method));
         $this->password = new clsControl(ccsTextBox, "password", "password", ccsText, "", CCGetRequestParam("password", $Method));
         $this->level = new clsControl(ccsListBox, "level", "level", ccsInteger, "", CCGetRequestParam("level", $Method));
         $level_values = array(array("1", "Support"), array("2", "Site Manager"), array("3", "System Administrator"));
         $this->level->Values = $level_values;
         $this->level->Required = true;
         $this->firstname = new clsControl(ccsTextBox, "firstname", "firstname", ccsText, "", CCGetRequestParam("firstname", $Method));
         $this->lastname = new clsControl(ccsTextBox, "lastname", "lastname", ccsText, "", CCGetRequestParam("lastname", $Method));
         $this->address = new clsControl(ccsTextArea, "address", "address", ccsMemo, "", CCGetRequestParam("address", $Method));
         $this->phone = new clsControl(ccsTextBox, "phone", "phone", ccsText, "", CCGetRequestParam("phone", $Method));
         $this->pager = new clsControl(ccsTextBox, "pager", "pager", ccsText, "", CCGetRequestParam("pager", $Method));
         $this->cell = new clsControl(ccsTextBox, "cell", "cell", ccsText, "", CCGetRequestParam("cell", $Method));
         $this->Insert = new clsButton("Insert");
         $this->Update = new clsButton("Update");
         $this->Delete = new clsButton("Delete");
         $this->Cancel = new clsButton("Cancel");
         $this->admin_id = new clsControl(ccsHidden, "admin_id", "admin_id", ccsInteger, "", CCGetRequestParam("admin_id", $Method));
     }
 }
Ejemplo n.º 11
0
 function clsRecordsubscriptions()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clssubscriptionsDataSource();
     $this->InsertAllowed = true;
     $this->UpdateAllowed = true;
     $this->DeleteAllowed = true;
     if ($this->Visible) {
         $this->ComponentName = "subscriptions";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", array("cat_id")), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->title = new clsControl(ccsTextBox, "title", "title", ccsText, "", CCGetRequestParam("title", $Method));
         $this->icon = new clsControl(ccsTextBox, "icon", "icon", ccsText, "", CCGetRequestParam("icon", $Method));
         $this->description = new clsControl(ccsTextArea, "description", "Transaction Message", ccsText, "", CCGetRequestParam("description", $Method));
         $this->duration = new clsControl(ccsTextBox, "duration", "duration", ccsFloat, array(False, 2, ".", "", False, "", "", 1, True, ""), CCGetRequestParam("duration", $Method));
         $this->unlimited = new clsControl(ccsCheckBox, "unlimited", "unlimited", ccsBoolean, "", CCGetRequestParam("unlimited", $Method));
         $this->unlimited->CheckedValue = 1;
         $this->unlimited->UncheckedValue = 0;
         $this->price = new clsControl(ccsTextBox, "price", "price", ccsFloat, array(False, 2, ".", "", False, "", "", 1, True, ""), CCGetRequestParam("price", $Method));
         $this->intro_duration = new clsControl(ccsTextBox, "intro_duration", "intro_duration", ccsFloat, array(False, 2, ".", "", False, "", "", 1, True, ""), CCGetRequestParam("intro_duration", $Method));
         $this->intro_price = new clsControl(ccsTextBox, "intro_price", "intro_price", ccsFloat, array(False, 2, ".", "", False, "", "", 1, True, ""), CCGetRequestParam("intro_price", $Method));
         $this->recurring = new clsControl(ccsCheckBox, "recurring", "recurring", ccsBoolean, "", CCGetRequestParam("recurring", $Method));
         $this->recurring->CheckedValue = 1;
         $this->recurring->UncheckedValue = 0;
         $this->intro = new clsControl(ccsCheckBox, "intro", "intro", ccsBoolean, "", CCGetRequestParam("intro", $Method));
         $this->intro->CheckedValue = 1;
         $this->intro->UncheckedValue = 0;
         $this->paypal = new clsControl(ccsCheckBox, "paypal", "paypal", ccsBoolean, "", CCGetRequestParam("paypal", $Method));
         $this->paypal->CheckedValue = 1;
         $this->paypal->UncheckedValue = 0;
         $this->authnet = new clsControl(ccsCheckBox, "authnet", "authnet", ccsBoolean, "", CCGetRequestParam("authnet", $Method));
         $this->authnet->CheckedValue = 1;
         $this->authnet->UncheckedValue = 0;
         $this->co2 = new clsControl(ccsCheckBox, "co2", "co2", ccsBoolean, "", CCGetRequestParam("co2", $Method));
         $this->co2->CheckedValue = 1;
         $this->co2->UncheckedValue = 0;
         $this->active = new clsControl(ccsCheckBox, "active", "active", ccsBoolean, "", CCGetRequestParam("active", $Method));
         $this->active->CheckedValue = 1;
         $this->active->UncheckedValue = 0;
         $this->group = new clsControl(ccsListBox, "group", "User Group", ccsInteger, "", CCGetRequestParam("group", $Method));
         $this->group->DSType = dsTable;
         list($this->group->BoundColumn, $this->group->TextColumn) = array("id", "title");
         $this->group->ds = new clsDBDBNetConnect();
         $this->group->ds->SQL = "SELECT * FROM groups";
         $this->Insert = new clsButton("Insert");
         $this->Update = new clsButton("Update");
         $this->Delete = new clsButton("Delete");
         $this->Cancel = new clsButton("Cancel");
         $this->id = new clsControl(ccsHidden, "id", "id", ccsInteger, "", CCGetRequestParam("id", $Method));
     }
 }
Ejemplo n.º 12
0
 function clsRecordsettings_general()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clssettings_generalDataSource();
     $this->UpdateAllowed = true;
     if ($this->Visible) {
         $this->ComponentName = "settings_general";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->sitename = new clsControl(ccsTextBox, "sitename", "sitename", ccsText, "", CCGetRequestParam("sitename", $Method));
         $this->siteemail = new clsControl(ccsTextBox, "siteemail", "siteemail", ccsText, "", CCGetRequestParam("siteemail", $Method));
         $this->homeurl = new clsControl(ccsTextBox, "homeurl", "homeurl", ccsText, "", CCGetRequestParam("homeurl", $Method));
         $this->secureurl = new clsControl(ccsTextBox, "secureurl", "secureurl", ccsText, "", CCGetRequestParam("secureurl", $Method));
         $this->uploadurl = new clsControl(ccsTextBox, "uploadurl", "uploadurl", ccsText, "", CCGetRequestParam("uploadurl", $Method));
         $this->pagentrys = new clsControl(ccsTextBox, "pagentrys", "pagentrys", ccsInteger, "", CCGetRequestParam("pagentrys", $Method));
         $this->frontentrys = new clsControl(ccsTextBox, "frontentrys", "frontentrys", ccsInteger, "", CCGetRequestParam("frontentrys", $Method));
         $this->notify = new clsControl(ccsListBox, "notify", "notify", ccsInteger, "", CCGetRequestParam("notify", $Method));
         $this->notify->DSType = dsListOfValues;
         $this->notify->Values = array(array("0", "No"), array("1", "Yes"));
         $this->has_gd = new clsControl(ccsListBox, "has_gd", "has_gd", ccsInteger, "", CCGetRequestParam("has_gd", $Method));
         $this->has_gd->DSType = dsListOfValues;
         $this->has_gd->Values = array(array("0", "No"), array("1", "Yes"));
         $this->approv_priority = new clsControl(ccsListBox, "approv_priority", "approv_priority", ccsInteger, "", CCGetRequestParam("approv_priority", $Method));
         $this->approv_priority->DSType = dsListOfValues;
         $this->approv_priority->Values = array(array("0", "No Approval Required"), array("1", "Require Approval"));
         $this->notifyads = new clsControl(ccsListBox, "notifyads", "Notify of Ads", ccsInteger, "", CCGetRequestParam("notifyads", $Method));
         $this->notifyads->DSType = dsListOfValues;
         $this->notifyads->Values = array(array("0", "No"), array("1", "Yes"));
         $this->notifyemail = new clsControl(ccsTextBox, "notifyemail", "notifyemail", ccsText, "", CCGetRequestParam("notifyemail", $Method));
         $this->bounceout = new clsControl(ccsListBox, "bounceout", "Bounce Out", ccsInteger, "", CCGetRequestParam("bounceout", $Method));
         $this->bounceout->DSType = dsListOfValues;
         $this->bounceout->Values = array(array("1", "Yes"), array("0", "No"));
         $this->bounce_id = new clsControl(ccsListBox, "bounce_id", "Bounced Age Group", ccsInteger, "", CCGetRequestParam("bounce_id", $Method));
         $this->bounce_id->DSType = dsTable;
         list($this->bounce_id->BoundColumn, $this->bounce_id->TextColumn) = array("age_id", "age_desc");
         $this->bounce_id->ds = new clsDBDBNetConnect();
         $this->bounce_id->ds->SQL = "SELECT *  " . "FROM lookup_ages";
         $this->langg_id = new clsControl(ccsListBox, "langg_id", "Language ID", ccsInteger, "", CCGetRequestParam("langg_id", $Method));
         $this->langg_id->DSType = dsTable;
         list($this->langg_id->BoundColumn, $this->langg_id->TextColumn) = array("lang_id", "lang_file");
         $this->langg_id->ds = new clsDBDBNetConnect();
         $this->langg_id->ds->SQL = "SELECT *  " . "FROM languages";
         $this->timeout = new clsControl(ccsTextBox, "timeout", "timeout", ccsInteger, "", CCGetRequestParam("timeout", $Method));
         $this->Update = new clsButton("Update");
         $this->Cancel = new clsButton("Cancel");
         $this->set_id = new clsControl(ccsHidden, "set_id", "set_id", ccsInteger, "", CCGetRequestParam("set_id", $Method));
         $this->set_id->Required = true;
     }
 }
Ejemplo n.º 13
0
 function clsRecordusercontrol()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clsusercontrolDataSource();
     $this->InsertAllowed = false;
     $this->UpdateAllowed = false;
     $this->DeleteAllowed = false;
     if ($this->Visible) {
         $this->ComponentName = "usercontrol";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->userID = new clsControl(ccsLabel, "userID", "userID", ccsInteger, "", CCGetRequestParam("userID", $Method));
         $this->tokens = new clsControl(ccsLabel, "tokens", "tokens", ccsInteger, "", CCGetRequestParam("tokens", $Method));
     }
 }
Ejemplo n.º 14
0
 function clsRecordtemplates_pages()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clstemplates_pagesDataSource();
     $this->InsertAllowed = false;
     $this->UpdateAllowed = false;
     $this->DeleteAllowed = false;
     if ($this->Visible) {
         $this->ComponentName = "templates_pages";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->page_name = new clsControl(ccsLabel, "page_name", "Page Name", ccsText, "", CCGetRequestParam("page_name", $Method));
         $this->page_html = new clsControl(ccsLabel, "page_html", "Page Html", ccsMemo, "", CCGetRequestParam("page_html", $Method));
         $this->page_html->HTML = true;
     }
 }
Ejemplo n.º 15
0
 function clsRecordsent_newsletters()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clssent_newslettersDataSource();
     if ($this->Visible) {
         $this->ComponentName = "sent_newsletters";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->datesent = new clsControl(ccsTextBox, "datesent", "datesent", ccsInteger, "", CCGetRequestParam("datesent", $Method));
         $this->newsletter = new clsControl(ccsTextArea, "newsletter", "newsletter", ccsMemo, "", CCGetRequestParam("newsletter", $Method));
         $this->Insert = new clsButton("Insert");
         $this->Update = new clsButton("Update");
         $this->Delete = new clsButton("Delete");
         $this->newsletter_id = new clsControl(ccsHidden, "newsletter_id", "newsletter_id", ccsInteger, "", CCGetRequestParam("newsletter_id", $Method));
     }
 }
Ejemplo n.º 16
0
 function clsRecordsettings_images()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clssettings_imagesDataSource();
     $this->InsertAllowed = false;
     $this->DeleteAllowed = false;
     if ($this->Visible) {
         $this->ComponentName = "settings_images";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->maxuploadwidth = new clsControl(ccsTextBox, "maxuploadwidth", "maxuploadwidth", ccsInteger, "", CCGetRequestParam("maxuploadwidth", $Method));
         $this->maxuploadheight = new clsControl(ccsTextBox, "maxuploadheight", "maxuploadheight", ccsInteger, "", CCGetRequestParam("maxuploadheight", $Method));
         $this->Update = new clsButton("Update");
         $this->Cancel = new clsButton("Cancel");
     }
 }
Ejemplo n.º 17
0
 function clsRecordwatchlist()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clswatchlistDataSource();
     $this->InsertAllowed = false;
     $this->UpdateAllowed = false;
     if ($this->Visible) {
         $this->ComponentName = "watchlist";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->ItemTitle = new clsControl(ccsLabel, "ItemTitle", "Item Title", ccsText, "", CCGetRequestParam("ItemTitle", $Method));
         $this->itemID = new clsControl(ccsLabel, "itemID", "Item ID", ccsText, "", CCGetRequestParam("itemID", $Method));
         $this->Delete = new clsButton("Delete");
         $this->Cancel = new clsButton("Cancel");
     }
 }
Ejemplo n.º 18
0
 function clsRecordlookup_countries()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clslookup_countriesDataSource();
     if ($this->Visible) {
         $this->ComponentName = "lookup_countries";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->country_desc = new clsControl(ccsTextBox, "country_desc", "country_desc", ccsText, "", CCGetRequestParam("country_desc", $Method));
         $this->Insert = new clsButton("Insert");
         $this->Update = new clsButton("Update");
         $this->Delete = new clsButton("Delete");
         $this->Cancel = new clsButton("Cancel");
         $this->country_id = new clsControl(ccsHidden, "country_id", "country_id", ccsInteger, "", CCGetRequestParam("country_id", $Method));
     }
 }
Ejemplo n.º 19
0
 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->email = new clsControl(ccsTextBox, "email", "Email", ccsText, "", CCGetRequestParam("email", $Method));
         $this->email->Required = true;
         $this->Update = new clsButton("Update");
         $this->Cancel = new clsButton("Cancel");
     }
 }
Ejemplo n.º 20
0
 function clsRecordLogin()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->InsertAllowed = false;
     $this->UpdateAllowed = false;
     $this->DeleteAllowed = false;
     if ($this->Visible) {
         $this->ComponentName = "Login";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->login = new clsControl(ccsTextBox, "login", "login", ccsText, "", CCGetRequestParam("login", $Method));
         $this->login->Required = true;
         $this->password = new clsControl(ccsTextBox, "password", "password", ccsText, "", CCGetRequestParam("password", $Method));
         $this->password->Required = true;
         $this->DoLogin = new clsButton("DoLogin");
     }
 }
Ejemplo n.º 21
0
 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->newsletter = new clsControl(ccsListBox, "newsletter", "Newsletter", ccsInteger, "", CCGetRequestParam("newsletter", $Method));
         $newsletter_values = array(array("1", "Subscribe"), array("0", "Unsubscribe"));
         $this->newsletter->Values = $newsletter_values;
         $this->Update = new clsButton("Update");
         $this->Cancel = new clsButton("Cancel");
     }
 }
Ejemplo n.º 22
0
 function clsRecordtemplates_emails()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clstemplates_emailsDataSource();
     $this->InsertAllowed = false;
     $this->DeleteAllowed = false;
     if ($this->Visible) {
         $this->ComponentName = "templates_emails";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->template_name = new clsControl(ccsLabel, "template_name", "template_name", ccsText, "", CCGetRequestParam("template_name", $Method));
         $this->email_subject = new clsControl(ccsTextBox, "email_subject", "email_subject", ccsText, "", CCGetRequestParam("email_subject", $Method));
         $this->email_text = new clsControl(ccsTextArea, "email_text", "email_text", ccsMemo, "", CCGetRequestParam("email_text", $Method));
         $this->Update = new clsButton("Update");
         $this->Cancel = new clsButton("Cancel");
         $this->temp_id = new clsControl(ccsHidden, "temp_id", "temp_id", ccsInteger, "", CCGetRequestParam("temp_id", $Method));
     }
 }
Ejemplo n.º 23
0
 function Show()
 {
     global $Tpl;
     if (!$this->Visible) {
         return;
     }
     $ShownRecords = 0;
     $this->ds->Open();
     $GridBlock = "Grid " . $this->ComponentName;
     $Tpl->block_path = $GridBlock;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow");
     $is_next_record = $this->ds->next_record();
     if ($is_next_record && $ShownRecords < $this->PageSize) {
         do {
             $this->ds->SetValues();
             $Tpl->block_path = $GridBlock . "/Row";
             $this->Detail->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
             $this->Detail->Parameters = CCAddParam($this->Detail->Parameters, "page_id", $this->ds->f("page_id"));
             $this->Detail->Parameters = CCAddParam($this->Detail->Parameters, "page_name", $this->ds->f("page_name"));
             $this->Detail->Page = "TemplatesPagesEdit.php";
             $this->page_name->SetValue($this->ds->page_name->GetValue());
             $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow");
             $this->Detail->Show();
             $this->page_name->Show();
             $Tpl->block_path = $GridBlock;
             $Tpl->parse("Row", true);
             $ShownRecords++;
             $is_next_record = $this->ds->next_record();
         } while ($is_next_record && $ShownRecords < $this->PageSize);
     } else {
         $Tpl->parse("NoRecords", false);
     }
     $this->Navigator->TotalPages = $this->ds->PageCount();
     $this->templates_pages_Insert->Show();
     $this->Navigator->Show();
     $Tpl->parse("", false);
     $Tpl->block_path = "";
 }
Ejemplo n.º 24
0
 function clsRecordcharges()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clschargesDataSource();
     $this->InsertAllowed = 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->charge_id = new clsControl(ccsLabel, "charge_id", "charge_id", ccsInteger, "", CCGetRequestParam("charge_id", $Method));
         $this->user_id = new clsControl(ccsLabel, "user_id", "user_id", ccsText, "", CCGetRequestParam("user_id", $Method));
         $this->date = new clsControl(ccsLabel, "date", "date", ccsText, "", CCGetRequestParam("date", $Method));
         $this->charge = new clsControl(ccsTextBox, "charge", "Charge", ccsFloat, array(False, 2, ".", "", False, "", "", 1, True, ""), CCGetRequestParam("charge", $Method));
         $this->cause = new clsControl(ccsTextArea, "cause", "cause", ccsMemo, "", CCGetRequestParam("cause", $Method));
         $this->Update = new clsButton("Update");
         $this->Delete = new clsButton("Delete");
         $this->Cancel = new clsButton("Cancel");
     }
 }
Ejemplo n.º 25
0
 function clsRecordemails()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clsemailsDataSource();
     $this->UpdateAllowed = false;
     $this->DeleteAllowed = false;
     if ($this->Visible) {
         $this->ComponentName = "emails";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->subject = new clsControl(ccsTextBox, "subject", "Subject", ccsText, "", CCGetRequestParam("subject", $Method));
         $this->message = new clsControl(ccsTextArea, "message", "Message", ccsMemo, "", CCGetRequestParam("message", $Method));
         $this->Insert = new clsButton("Insert");
         $this->Cancel = new clsButton("Cancel");
         $this->to_user_id = new clsControl(ccsHidden, "to_user_id", "To User Id", ccsInteger, "", CCGetRequestParam("to_user_id", $Method));
         $this->from_user_id = new clsControl(ccsHidden, "from_user_id", "From User Id", ccsInteger, "", CCGetRequestParam("from_user_id", $Method));
         $this->emaildate = new clsControl(ccsHidden, "emaildate", "date", ccsInteger, "", CCGetRequestParam("emaildate", $Method));
     }
 }
Ejemplo n.º 26
0
 function clsRecordsettings_froogle()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clssettings_froogleDataSource();
     $this->UpdateAllowed = true;
     if ($this->Visible) {
         $this->ComponentName = "settings_froogle";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->ftp_url = new clsControl(ccsTextBox, "ftp_url", "ftp_url", ccsText, "", CCGetRequestParam("ftp_url", $Method));
         $this->ftpusername = new clsControl(ccsTextBox, "ftpusername", "ftpusername", ccsText, "", CCGetRequestParam("ftpusername", $Method));
         $this->ftppassword = new clsControl(ccsTextBox, "ftppassword", "ftppassword", ccsText, "", CCGetRequestParam("ftppassword", $Method));
         $this->frooglefile = new clsControl(ccsTextBox, "frooglefile", "frooglefile", ccsText, "", CCGetRequestParam("frooglefile", $Method));
         $this->Update = new clsButton("Update");
         $this->Cancel = new clsButton("Cancel");
         $this->set_id = new clsControl(ccsHidden, "set_id", "set_id", ccsInteger, "", CCGetRequestParam("set_id", $Method));
         $this->set_id->Required = true;
     }
 }
Ejemplo n.º 27
0
 function clsRecordcoupons()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clscouponsDataSource();
     $this->UpdateAllowed = false;
     $this->DeleteAllowed = false;
     if ($this->Visible) {
         $this->ComponentName = "coupons";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->id = new clsControl(ccsListBox, "id", "User Id", ccsInteger, "", CCGetRequestParam("id", $Method));
         $this->discount = new clsControl(ccsTextBox, "discount", "discount", ccsFloat, "", CCGetRequestParam("discount", $Method));
         $this->code = new clsControl(ccsTextBox, "code", "code", ccsText, "", CCGetRequestParam("code", $Method));
         $this->Insert = new clsButton("Insert");
         $this->Cancel = new clsButton("Cancel");
         $this->start = new clsControl(ccsTextBox, "start", "Start", ccsText, "", CCGetRequestParam("start", $Method));
         $this->end = new clsControl(ccsTextBox, "end", "End", ccsText, "", CCGetRequestParam("end", $Method));
     }
 }
Ejemplo n.º 28
0
 function clsRecorditems()
 {
     global $FileName;
     $this->Visible = true;
     $this->Errors = new clsErrors();
     $this->ds = new clsitemsDataSource();
     $this->InsertAllowed = false;
     $this->DeleteAllowed = false;
     if ($this->Visible) {
         $this->ComponentName = "items";
         $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $this->ComponentName);
         $CCSForm = CCGetFromGet("ccsForm", "");
         $this->FormSubmitted = $CCSForm == $this->ComponentName;
         $Method = $this->FormSubmitted ? ccsPost : ccsGet;
         $this->ItemNum = new clsControl(ccsLabel, "ItemNum", "Num", ccsInteger, "", CCGetRequestParam("ItemNum", $Method));
         $this->ItemNum->Required = true;
         $this->title = new clsControl(ccsLabel, "title", "Title", ccsText, "", CCGetRequestParam("title", $Method));
         $this->category = new clsControl(ccsLabel, "category", "category", ccsInteger, "", CCGetRequestParam("category", $Method));
         $this->end_reason = new clsControl(ccsTextBox, "end_reason", "End Reason", ccsText, "", CCGetRequestParam("end_reason", $Method));
         $this->Update = new clsButton("Update");
         $this->Cancel = new clsButton("Cancel");
         $this->status = new clsControl(ccsHidden, "status", "Status", ccsInteger, "", CCGetRequestParam("status", $Method));
     }
 }
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if ($this->EditMode) {
         if ($this->DataSource->Errors->Count()) {
             $this->Errors->AddErrors($this->DataSource->Errors);
             $this->DataSource->Errors->clear();
         }
         $this->DataSource->Open();
         if ($this->DataSource->Errors->Count() == 0 && $this->DataSource->next_record()) {
             $this->DataSource->SetValues();
             if (!$this->FormSubmitted) {
                 $this->description->SetValue($this->DataSource->description->GetValue());
                 $this->create_by->SetValue($this->DataSource->create_by->GetValue());
                 $this->update_by->SetValue($this->DataSource->update_by->GetValue());
                 $this->create_date->SetValue($this->DataSource->create_date->GetValue());
                 $this->update_date->SetValue($this->DataSource->update_date->GetValue());
                 $this->counter_no->SetValue($this->DataSource->counter_no->GetValue());
                 $this->activity->SetValue($this->DataSource->activity->GetValue());
                 $this->log_date->SetValue($this->DataSource->log_date->GetValue());
                 $this->input_type->SetValue($this->DataSource->input_type->GetValue());
             }
         } else {
             $this->EditMode = false;
         }
     }
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->description->Errors->ToString());
         $Error = ComposeStrings($Error, $this->create_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->update_by->Errors->ToString());
         $Error = ComposeStrings($Error, $this->create_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->update_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->counter_no->Errors->ToString());
         $Error = ComposeStrings($Error, $this->TAKEN_CTL->Errors->ToString());
         $Error = ComposeStrings($Error, $this->IS_TAKEN->Errors->ToString());
         $Error = ComposeStrings($Error, $this->activity->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_DOC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->log_date->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_DOC_TYPE_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_PROC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_CTL_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_DOC->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_DONOR->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_LOGIN->Errors->ToString());
         $Error = ComposeStrings($Error, $this->USER_ID_TAKEN->Errors->ToString());
         $Error = ComposeStrings($Error, $this->IS_CREATE_DOC->Errors->ToString());
         $Error = ComposeStrings($Error, $this->IS_MANUAL->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_PROC_STATUS->Errors->ToString());
         $Error = ComposeStrings($Error, $this->CURR_DOC_STATUS->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_DOC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_DOC_TYPE_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_PROC_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->PREV_CTL_ID->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_2->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_3->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_4->Errors->ToString());
         $Error = ComposeStrings($Error, $this->SLOT_5->Errors->ToString());
         $Error = ComposeStrings($Error, $this->MESSAGE->Errors->ToString());
         $Error = ComposeStrings($Error, $this->input_type->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_customer_order_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->p_rqst_type_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->t_vat_registration_id->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DataSource->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&amp;", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->Button_Insert->Visible = !$this->EditMode && $this->InsertAllowed;
     $this->Button_Update->Visible = $this->EditMode && $this->UpdateAllowed;
     $this->Button_Delete->Visible = $this->EditMode && $this->DeleteAllowed;
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Button_Insert->Show();
     $this->Button_Update->Show();
     $this->Button_Delete->Show();
     $this->Button_Cancel->Show();
     $this->description->Show();
     $this->create_by->Show();
     $this->update_by->Show();
     $this->create_date->Show();
     $this->update_date->Show();
     $this->counter_no->Show();
     $this->TAKEN_CTL->Show();
     $this->IS_TAKEN->Show();
     $this->activity->Show();
     $this->CURR_DOC_ID->Show();
     $this->log_date->Show();
     $this->CURR_DOC_TYPE_ID->Show();
     $this->CURR_PROC_ID->Show();
     $this->CURR_CTL_ID->Show();
     $this->USER_ID_DOC->Show();
     $this->USER_ID_DONOR->Show();
     $this->USER_ID_LOGIN->Show();
     $this->USER_ID_TAKEN->Show();
     $this->IS_CREATE_DOC->Show();
     $this->IS_MANUAL->Show();
     $this->CURR_PROC_STATUS->Show();
     $this->CURR_DOC_STATUS->Show();
     $this->PREV_DOC_ID->Show();
     $this->PREV_DOC_TYPE_ID->Show();
     $this->PREV_PROC_ID->Show();
     $this->PREV_CTL_ID->Show();
     $this->SLOT_1->Show();
     $this->SLOT_2->Show();
     $this->SLOT_3->Show();
     $this->SLOT_4->Show();
     $this->SLOT_5->Show();
     $this->MESSAGE->Show();
     $this->input_type->Show();
     $this->t_customer_order_id->Show();
     $this->p_rqst_type_id->Show();
     $this->t_vat_registration_id->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
     $this->DataSource->close();
 }
Ejemplo n.º 30
0
 function Show()
 {
     global $CCSUseAmp;
     global $Tpl;
     global $FileName;
     global $CCSLocales;
     $Error = "";
     if (!$this->Visible) {
         return;
     }
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
     $RecordBlock = "Record " . $this->ComponentName;
     $ParentPath = $Tpl->block_path;
     $Tpl->block_path = $ParentPath . "/" . $RecordBlock;
     $this->EditMode = $this->EditMode && $this->ReadAllowed;
     if (!$this->FormSubmitted) {
     }
     if ($this->FormSubmitted || $this->CheckErrors()) {
         $Error = "";
         $Error = ComposeStrings($Error, $this->date_start_laporan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_date_start_laporan1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->date_end_laporan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->DatePicker_end_start_laporan1->Errors->ToString());
         $Error = ComposeStrings($Error, $this->cetak_laporan->Errors->ToString());
         $Error = ComposeStrings($Error, $this->Errors->ToString());
         $Tpl->SetVar("Error", $Error);
         $Tpl->Parse("Error", false);
     }
     $CCSForm = $this->EditMode ? $this->ComponentName . ":" . "Edit" : $this->ComponentName;
     $this->HTMLFormAction = $FileName . "?" . CCAddParam(CCGetQueryString("QueryString", ""), "ccsForm", $CCSForm);
     $Tpl->SetVar("Action", !$CCSUseAmp ? $this->HTMLFormAction : str_replace("&", "&amp;", $this->HTMLFormAction));
     $Tpl->SetVar("HTMLFormName", $this->ComponentName);
     $Tpl->SetVar("HTMLFormEnctype", $this->FormEnctype);
     $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
     $this->Attributes->Show();
     if (!$this->Visible) {
         $Tpl->block_path = $ParentPath;
         return;
     }
     $this->Button1->Show();
     $this->date_start_laporan->Show();
     $this->DatePicker_date_start_laporan1->Show();
     $this->date_end_laporan->Show();
     $this->DatePicker_end_start_laporan1->Show();
     $this->cetak_laporan->Show();
     $Tpl->parse();
     $Tpl->block_path = $ParentPath;
 }