function content_block() { // Build the FormProcessor, and add the // form content object that the FormProcessor // will use. // $container = container(); // Create the form $form = new SwimmerAddForm("Add Swimmer", null, 600); // Create the form processor $fp = new FormProcessor($form); // Don't display the form again if processing was successful. $fp->set_render_form_after_success(false); // Add the Form Processor to the container. // If the Form Processor was succesful, display // some statistics about the uploaded file. if ($fp->is_action_successful()) { // Add the InfoTableCSS so the tables look right $this->add_head_css(new DefaultGUIDataListCSS()); $swimmers = new SwimmersDataList("Swimmers", '100%', "swimmerid"); $div = html_div(); $div->set_id("swimmersgdl"); $div->add($swimmers); $container->add($div); // Add the Form Processor to the container. $container->add(html_br(2), $fp); } else { $container->add($fp); } return $container; }
function content_block() { // Build the FormProcessor, and add the // form content object that the FormProcessor // will use. // $container = container(); // Create the form $form = new FlipTurnEditHomePageForm("Home Edit", null, '100%'); // Create the form processor $fp = new FormProcessor($form); // Don't display the form again if processing was successful. $fp->set_render_form_after_success(false); // Add the Form Processor to the container. // If the Form Processor was succesful, display // some statistics about the uploaded file. if ($fp->is_action_successful()) { //$container->add($form->get_action_message()) ; // Add the Form Processor to the container. $container->add(html_br(2), $fp); } else { $container->add($fp); } return $container; }
function content_block() { // Build the FormProcessor, and add the // form content object that the FormProcessor // will use. // $container = container(); $sdifqueue = new SDIFResultsQueue(); if (!$sdifqueue->ValidateQueue()) { $msgs = $sdifqueue->get_status_message(); foreach ($msgs as $msg) { $container->add($this->status_message($msg['msg'], $msg['severity'])); } return $container; } // Create the form $form = new SDIFQueueProcessForm("Process SDIF Queue", $_SERVER['PHP_SELF'], 600); // Create the form processor $fp = new FormProcessor($form); // Don't display the form again if processing was successful. $fp->set_render_form_after_success(false); // Add the Form Processor to the container. // If the Form Processor was succesful, display // some statistics about the uploaded file. if ($fp->is_action_successful()) { //$container->add($form->get_action_message()) ; // Add the Form Processor to the container. $container->add(html_br(2), $fp); } else { $container->add($fp); } return $container; }
function content_block() { // Build the FormProcessor, and add the // form content object that the FormProcessor // will use. // $container = container(); // Create the form $form = new ResultsQueuePurgeForm("Purge Results Queue", $_SERVER['PHP_SELF'], 600); // Create the form processor $fp = new FormProcessor($form); // Don't display the form again if processing was successful. $fp->set_render_form_after_success(false); // Add the Form Processor to the container. // If the Form Processor was succesful, display // some statistics about the uploaded file. if ($fp->is_action_successful()) { //$container->add($form->get_action_message()) ; // Add the Form Processor to the container. $container->add(html_br(2), $fp); } else { $container->add($fp); } return $container; }
function content_block() { // Add the InfoTableCSS so the tables look right $this->add_head_css(new InfoTableCSS()); // Build the FormProcessor, and add the // form content object that the FormProcessor // will use. // $container = container(); // Create the form $form = new SDIFFileUploadForm("Upload SDIF File", $_SERVER['PHP_SELF'], 600); $form->setUploadFileLabel("SDIF Filename"); // Create the form processor $fp = new FormProcessor($form); // Don't display the form again if processing was successful. $fp->set_render_form_after_success(false); // If the Form Processor was succesful, display // some statistics about the uploaded file. if ($fp->is_action_successful()) { $sd3fileinfo = $form->get_file_info(); $container->add($fp, $form->get_file_info_table()); } else { // Add the Form Processor to the container. $container->add($fp); } return $container; }
function content_block() { // Build the FormProcessor, and add the // form content object that the FormProcessor // will use. // $container = container(); // Create the form if ($this->user_is_logged_in()) { $form = new FlipTurnAdminLogoutForm("Admin Flip Turn Logout", null, 350); } else { $form = new FlipTurnAdminLoginForm("Admin Flip Turn Login", null, 350); } // Create the form processor $fp = new FormProcessor($form); // Don't display the form again if processing was successful. $fp->set_render_form_after_success(false); // Add the Form Processor to the container. // If the Form Processor was succesful, display // some a welcome message. if ($fp->is_action_successful()) { // Redirect to Member page on successful login //die($_SERVER['PHP_SELF']) ; $url = 'http://' . $_SERVER['HTTP_HOST'] . '/index.php'; header("Location: {$url}"); exit; $container->add(html_br(2), $fp); } else { $container->add($fp); } return $container; }
function content_block() { // Build the FormProcessor, and add the // form content object that the FormProcessor // will use. // $container = container(); // This allows passing arguments eithers as a GET or a POST $scriptargs = array_merge($_GET, $_POST); // The swimteamid is the argument which must be // dealt with differently for GET and POST operations if (array_key_exists("swimteamid", $scriptargs)) { $swimteamid = $scriptargs["swimteamid"]; } else { if (array_key_exists("_swimteamid", $scriptargs)) { $swimteamid = $scriptargs["_swimteamid"]; } else { if (array_key_exists(FT_DB_PREFIX . "radio", $scriptargs)) { $swimteamid = $scriptargs[FT_DB_PREFIX . "radio"][0]; } else { $swimteamid = null; } } } // Create the form //$form = new SwimTeamUpdateForm("Update Swim Team", $_SERVER['PHP_SELF'], 600) ; $form = new SwimTeamUpdateForm("Update Swim Team", null, 600); $form->setSwimTeamId($swimteamid); // Create the form processor $fp = new FormProcessor($form); // Don't display the form again if processing was successful. $fp->set_render_form_after_success(false); // Update the Form Processor to the container. // If the Form Processor was succesful, display // some statistics about the uploaded file. if ($fp->is_action_successful()) { // Add the InfoTableCSS so the tables look right $this->add_head_css(new DefaultGUIDataListCSS()); $swimteams = new SwimTeamsDataList("Swim Teams", '100%', "swimteamid"); $div = html_div(); $div->set_id("swimteamsgdl"); $div->add($swimteams); $container->add($div); // Update the Form Processor to the container. $container->add(html_br(2), $fp); } else { $container->add($fp); } return $container; }
public function __construct($product) { parent::__construct(); $this->db = $product->getDb(); $this->product = $product; $this->measurementAttribute = new DatabaseObject_Attribute_MeasurementWithImageAttribute($this->db); }
public function __construct($db) { parent::__construct(); $this->db = $db; $this->user = new DatabaseObject_User($db); $this->universities = DatabaseObject_StaticUtility::loadUniversities($db); }
public function __construct(DatabaseObject_BlogPost $post) { parent::__construct(); $this->post = $post; $this->image = new DatabaseObject_BlogPostImage($post->getDb()); $this->image->post_id = $this->post->getId(); }
public function __construct($id = false) { parent::__construct(); $this->add("sections"); $this->name = "form_category"; $this->enctype = "multipart/form-data"; $this->action = URL::current(); $this->sections = SectionDB::getAll(); if (!$id) { $this->text("title", "Название:", FormProcessor::getSessionData("title")); $this->textarea("meta_desc", "Описание:", FormProcessor::getSessionData("meta_desc")); $this->textarea("meta_key", "Ключевые слова:", FormProcessor::getSessionData("meta_key")); $this->text("alias", "ЧПУ ссылка", FormProcessor::getSessionData("alias")); $this->checkbox("show", "Показывать:", "1"); $this->submit("insert_category", "Сохранить"); } else { $this->add("section_id"); $this->hidden("id", $id); $obj = new CategoryDB(); $obj->load($id); $this->text("title", "Название:", $obj->title); $this->textarea("meta_desc", "Описание:", $obj->meta_desc); $this->textarea("meta_key", "Ключевые слова:", $obj->meta_key); $link = URL::get("category", "", array("id" => $id), true, "", false); $alias = SefDB::getAliasOnLink($link); $this->text("alias", "ЧПУ ссылка", $alias); $this->checkbox("show", "Показывать:", "1", "", (int) $obj->show); $this->submit("update_category", "Сохранить"); $this->section_id = $obj->section_id; } }
public function __construct($db, $signedInUserSessionInfoHolder, $product_type, $product_tag, $product_id = 0, $specificProductTypeConfig) { parent::__construct(); $this->db = $db; $this->product = new DatabaseObject_UserProducts($this->db); $this->userID = $signedInUserSessionInfoHolder->generalInfo->userID; $this->product_tag = $product_tag; $this->username = $signedInUserSessionInfoHolder->generalInfo->username; $this->user_network = $signedInUserSessionInfoHolder->generalInfo->affiliation; $this->user_city = $signedInUserSessionInfoHolder->sellerInfo->city; $this->product_type = $product_type; $this->specificProductTypeConfig = $specificProductTypeConfig; //Zend_Debug::dump($productTypeConfig); echo "product_id: " . $product_id; if ($this->product->getProductForUser($this->userID, $product_id, $product_type)) { $this->product_id = $product_id; $this->name = $this->product->name; $this->shipping_rate = $this->product->shipping_rate; $this->quantity = $this->product->quantity; $this->price = $this->product->price; $this->product_tag = $this->product->product_tag; $this->brand = $this->product->brand; $this->reward_point = $this->product->reward_point; $this->video_youtube = $this->product->video_youtube; $this->description = $this->product->profile->description; foreach ($this->specificProductTypeConfig['measurement'] as $k => $v) { $this->{$k} = $this->product->{$k}; } } }
public function __construct($db) { parent::__construct(); $this->db = $db; $this->user = new DatabaseObject_User($db); $this->user->type = 'member'; }
public function __construct(DatabaseObject_BlogPost $post) { parent::__construct(); $this->post = $post; $this->location = new DatabaseObject_BlogPostLocation($post->getDb()); $this->location->post_id = $this->post->getId(); }
public function __construct($db, $table, $product_tag, $product_id) { parent::__construct(); //$this->product = $object; $this->image = new DatabaseObject_Image($db, $table, $product_tag); $this->image->Product_id = $product_id; }
public function __construct($db, $user) { parent::__construct(); $this->db = $db; $this->MenMeasurement = new DatabaseObject_Measurement_MenMeasurement($this->db); $this->User_referee_id = $user->referee_id; $this->user = $user; echo 'user id is: ' . $this->User_referee_id; if ($user->measurement == 1) { if ($this->MenMeasurement->loadForPost($this->User_referee_id)) { $this->body_height = $this->MenMeasurement->body_height; $this->neck = $this->MenMeasurement->neck; $this->chest = $this->MenMeasurement->chest; $this->shoulder = $this->MenMeasurement->shoulder; $this->armpit_circumference = $this->MenMeasurement->armpit_circumference; $this->arm_length = $this->MenMeasurement->arm_length; $this->shoulder_waist = $this->MenMeasurement->shoulder_waist; $this->waist = $this->MenMeasurement->waist; $this->hip = $this->MenMeasurement->hip; $this->thigh = $this->MenMeasurement->thigh; $this->length_pants = $this->MenMeasurement->length_pants; } else { echo 'error loading pants'; } } else { echo 'user dose not have measurement'; } }
public function __construct($db, $userID) { parent::__construct(); $this->db = $db; $this->fabricSet = new DatabaseObject_Attribute_FabricSet($db); $this->userID = $userID; }
public function __construct($view, $param) { parent::__construct(); $this->add("hornav"); $this->add("n"); $this->name = "form_viewgallery"; $this->enctype = "multipart/form-data"; $this->action = URL::current(); $viewgallery_obj = new ViewgalleryDB(); $viewgallery_obj->load($param["view_id"]); $this->hornav = new Hornav(); $this->hornav->addData("Админпанель", URL::get("menu", "admin")); $this->hornav->addData("Галерея", URL::get("viewgallery", "admin")); $this->hornav->addData($viewgallery_obj->title, URL::get("listgallery", "admin", array("view_id" => $param["view_id"]))); if (!$param["gallery_id"]) { $this->hornav->addData("Добавить"); $this->text("title", "Название:", FormProcessor::getSessionData("title")); $this->file("img", "Картинка:"); $this->textarea("meta_desc", "Описание:", FormProcessor::getSessionData("meta_desc")); $this->textarea("meta_key", "Ключевые слова:", FormProcessor::getSessionData("meta_key")); $this->submit("insert_listgallery", "Сохранить"); } else { $this->hidden("id", $param["gallery_id"]); $gallery_obj = new GalleryDB(); $gallery_obj->load($param["gallery_id"]); $this->hornav->addData("Изменить"); $this->text("title", "Название:", $gallery_obj->title); $this->file("img", "Картинка:"); $this->textarea("meta_desc", "Описание:", $gallery_obj->meta_desc); $this->textarea("meta_key", "Ключевые слова:", $gallery_obj->meta_key); $this->submit("update_listgallery", "Сохранить"); } }
public function __construct($db, $userID) { parent::__construct(); $this->db = $db; $this->user = new DatabaseObject_User($db); $this->user->load($userID); //echo "univerity_id: ".$this->user->university_id; //$this->university = DatabaseObject_StaticUtility::loadUniversityName($db, $this->user->university_id); $this->profile_type = $this->user->user_type; //echo "your university: ".$this->university; $this->email = $this->user->profile->email; $this->first_name = $this->user->profile->first_name; $this->last_name = $this->user->profile->last_name; $this->club_public = $this->user->status; $this->num_posts = $this->user->profile->num_posts; $this->paypalEmail = $this->user->profile->paypalEmail; $this->club_description = $this->user->profile->club_description; $this->address = $this->user->profile->address; $this->zip = $this->user->profile->zip; $this->city = $this->user->profile->city; $this->state = $this->user->profile->state; //echo $this->paypalEmail; if ($this->user->user_type == 'clubAdmin') { foreach ($this->publicProfile as $key => $label) { $this->{$key} = $this->user->profile->{$key}; } } }
public function __construct($db, $userID) { parent::__construct(); $this->db = $db; $this->inventoryProduct = new DatabaseObject_Inventory_Product($db); $this->userID = $userID; }
public function __construct($db, $userID = '', $type = '') { parent::__construct(); $this->db = $db; $this->userID = $userID; $this->type = $type; echo "here at php type is: " . $this->type; $this->sellerInformation = new DatabaseObject_SellerInformation($db); if (($type == 'generalSeller' || $type == 'storeSeller') && $userID != '') { if ($this->sellerInformation->load($userID)) { echo "<br />here at load<br />"; echo "sellerInformation->paypal_email is: " . $this->sellerInformation->paypal_email . "<br />"; $this->paypal_email = $this->sellerInformation->paypal_email; $this->verified = $this->sellerInformation->verified; echo "this fp paypal_email is: " . $this->paypal_email . "<br />"; $this->phone_number = $this->sellerInformation->phone_number; $this->items_description = $this->sellerInformation->items_description; $this->store_description = $this->sellerInformation->store_description; $this->address_one = $this->sellerInformation->address_one; $this->address_two = $this->sellerInformation->address_two; $this->zip = $this->sellerInformation->zip; $this->city = $this->sellerInformation->city; $this->state = $this->sellerInformation->state; $this->country = $this->sellerInformation->country; } } }
public function __construct($id = false) { parent::__construct(); $this->name = "form_section"; $this->enctype = "multipart/form-data"; $this->action = URL::current(); if (!$id) { $this->text("title", "Название:", FormProcessor::getSessionData("title")); $this->textarea("meta_desc", "Описание:", FormProcessor::getSessionData("meta_desc")); $this->textarea("meta_key", "Ключевые слова:", FormProcessor::getSessionData("meta_key")); $this->textarea("full_text", "Длинное описание:", FormProcessor::getSessionData("full_text")); $this->text("alias", "ЧПУ ссылка", FormProcessor::getSessionData("alias")); $this->submit("insert_section", "Сохранить"); } else { $this->hidden("id", $id); $obj = new SectionDB(); $obj->load($id); $this->text("title", "Название:", $obj->title); $this->textarea("meta_desc", "Описание:", $obj->meta_desc); $this->textarea("meta_key", "Ключевые слова:", $obj->meta_key); $this->textarea("full_text", "Длинное описание:", $obj->full_text); $link = URL::get("section", "", array("id" => $id), true, "", false); $alias = SefDB::getAliasOnLink($link); $this->text("alias", "ЧПУ ссылка", $alias); $this->submit("update_section", "Сохранить"); } }
public function __construct($db, $table, $userID) { parent::__construct(); $this->db = $db; $this->customSet = new DatabaseObject_Attribute_CustomAttribute($db, $table); $this->userID = $userID; $this->table = $table; }
public function __construct(DatabaseObject $object) { parent::__construct(); $this->product = $object; $this->image = new DatabaseObject_Attribute_ImageAttribute($this->product->getDb()); //Zend_Debug::dump($this->product); //echo 'imageattribvute productusername'. $this->product->username.'<br />';//$this->image->Product_id = $this->product->getId(); }
public function __construct($db, $userID, $product) { parent::__construct(); $this->db = $db; $this->inventoryProduct = new DatabaseObject_Inventory_Product($db); $this->userID = $userID; $this->productID = $product->getId(); $this->sys_price = $product->price; }
public function __construct($product) { parent::__construct(); $this->db = $product->getDb(); $this->SizeAttribute = new DatabaseObject_Attribute_SizeAttribute($this->db); $this->SizeAttribute->product_type_table = $product->product_type; $this->SizeAttribute->product_id = $product->getId(); $this->SizeAttribute->username = $product->username; }
public function __construct($db) { parent::__construct(); $this->db = $db; $this->guest = new DatabaseObject_Guest($db); //$this->guest->loadByID($userID); //$this->universities = DatabaseObject_StaticUtility::loadUniversities($db); //$this->club_types = DatabaseObject_StaticUtility::loadTypes($db); }
public function __construct($db, DatabaseObject $objects) { parent::__construct(); $this->objects = $objects; if ($this->objects->isSaved()) { echo "<br/>due at is saved."; $this->name = $this->objects->profile->name; $this->content = $this->objects->profile->content; $this->price = $this->objects->profile->price; $this->ts_created = $this->objects->date_set; echo "<br/>this name is: " . $this->name; } }
public function __construct($db, $loggedInUser = NULL) { parent::__construct(); $this->db = $db; $this->sender = new DatabaseObject_SenderMessage($db); $this->receiver = new DatabaseObject_ReceiverMessage($db); if ($loggedInUser != NULL) { //echo 'here at lggedInUser != null'; $this->loggedInUser = true; $this->sender_username = $loggedInUser->username; $this->sender_user_id = $loggedInUser->getId(); //echo $this->sender_username; } }
public function __construct($db, $loggedInUser = NULL) { parent::__construct(); $this->db = $db; $this->shoutout = new DatabaseObject_Shoutout($this->db); if ($loggedInUser != NULL) { //echo 'here at lggedInUser != null'; $this->loggedInUser = true; $this->shoutout_username = $loggedInUser->username; $this->shoutout_user_id = $loggedInUser->getId(); //echo $this->shoutout_username; //echo 'AT CONSTRUCT '.$this->shoutout_user_id; } }