Form data for iHotelier - web

I developed a website for a resort and put a reservation form on the home page. I am trying to get the Arrival, Departure, Room #, Adult # & Child # to go from the from to the iHotelier page.
The home page with the reservation form is: http://blueharborresort.com
The iHotelier page is: https://booking.ihotelier.com/istay/istay.jsp?hotelid=76029

Recently came across this website that details exactly what you're asking about.
http://hummelinteractive.com/ihotelier-by-travelclick-how-to-post-data-to-their-reservation-engine
....
The main thing to know is that the ihotelier application accepts GET data in a certain formation as follows:
DateIn
DateOut
Adults
Children
Rooms
HotelID
LanguageID
....

Related

Populate data back to form in Kentico

Here's what I'd like to do but not sure how to. I have a form that's like a typical doctor/school form, where the form has 2 sections: [1] Section 1 at the top is for user (with standard fields like First Name, Last Name etc.), and [2] Section 2 at the bottom is for Admin/Office use only (with fields like Reviewed by, Approved/Not Approved etc.)
what I was able to do is to process Section 1 where I got ALL users' submission and display all their data on a webpage using a RepeaterWithCustomQuery. That's pretty basic. But in order to do what described above, I guess that I'll need to pull the submitted data and populate them back to Section 1 of the form (maybe as readonly data at this time) and then the Office/Admin staff can fill in Section 2.
I hope I made sense and hope that someone can point me to the right direction. I only use Portal Engine, no access to file system or backend.
I think I understand your issue you want to have some sort of an editor for biz form data. Similar to what you have in the admin. And the problem is that you don't have access to backend. :( Such thing is available for custom table data (there is web part), but not for biz form data. There is no ready to use web part. Here is old topic on that https://devnet.kentico.com/questions/how-to-edit-the-information-of-a-record-using-the-bizform-layout.
you want to have something like the admin page for editing form records:
/CMSModules/BizForms/Tools/BizForm_Edit_EditRecord.aspx?formID=7&formRecordID=1
but customized :(. I'd say without back end access the only options I see:
Create a new role "Biz Form Editor" (or use existing) that has rights only to edit biz
form data. So all your people who do "validation" part must have a
Kentico account with role "Biz Form Editor".
Add link above to your repeater with appropriate record id.
P.S. There are special code names for alternative forms (https://docs.kentico.com/k8/configuring-kentico/creating-alternative-forms/code-names-of-automatically-used-alternative-forms). If you create an alternative form with special name update the system will automatically load it when you edit the record.
Not sure that I understood correctly your question. But what you need is to use alternative forms. So the idea is that one form is for "registration" and the 2nd one for "validation".
So in your registration form you show only firstName, lastName etc and you don't show "validation" fields. In the validation form you show firstName, lastname etc as label and show textboxes for validation fields.

MVC 5 - Populate Details in Partial View from the Parent View and Save record to the Parent ID

I am fairly new to MVC and I'm trying to build what seems like a complex data model with a code first DbContext approach.
I have a customer which I want to add multiple surveys to.
I'll explain my view setup as simply as I can. This is what the view looks like:
Customer (Displays a table with a list of customers, which contains create, edit, view and delete links that links to normal views.
When I click on view, it takes me to a normal view page. On this page I have two partial view tabs titled customer and surveys.
When I click on the surveys tab it should show a table with a list of surveys containing create, edit, view and delete links that should link to popup modal partial views.
The main question here is how do I send the ID of the customer in the view to the new survey so that it can link the survey ID to my customer ID and also automatically fill in some customer details on my survey for example the customer name.
If you need any more info I would be happy to supply it.
Thank you
In the part where you now have your Create/Read/Edit/Delete links, add in a parameter in the link like
/Edit/CustomerId={customerId}
Now you can get that parameter in the postback to your controller:
public ActionResult Edit(int customerId)

METEOR JS: Actions with multiple users

I have 2 chat rooms, in every room I have 5 users and input field , where every user can enter some number and submit it to validate on server, if number equal (for example) to 5 than users in this room win, and users in other room lose, so I have 5 users that win and 5 that lose.
So, what I want: when one of team win, than redirect users that wins to some WIN page, and at the same time redirect users that lose to LOSE page. And !THIS IMPORTANT! if some users for example was offline but his team won or lose , than when the next time user log in show LOSE or WIN page which depends on whether his team won or not.
So I see 3 problems for which I do not find a solution:
Redirect group of users (I use Iron Router)
Track when one of team win (track for all users that play game) (Blaze if unsuitable)
If some team wins and user was offline , hen the next time user log in show LOSE or WIN page
I know that a lot of questions and they are very extensive, but could not find the solution, help somebody !
It might be simpler to track this at the group level and then just have a template helper that tracks the group's win/loss status. You wouldn't even need a session variable and all participants would get the correct notification instantly or deferred. Ex:
HTML:
<template name="wrapper">
{{#if state.inProgress}}
{{> gameTemplate}}
{{else}}
{{#if state.won}}
{{> winnnerTemplate}}
{{else}}
{{> loserTemplate}}
{{/if}}
{{/if}}
</template>
JS:
Template.wrapper.helpers({
state: function(){
var myGroupId = Meteor.user().myGroupId;
var outcome = Groups.find({ _id: myGroupId }).outcome;
return { inProgress: ( outcome === 'in progress'), won: ( outcome === 'won' ) };
}
});
Here I'm returning an object from the helper instead of separate variables for inProgress and won to avoid searching Groups twice.
I've also modeled each user as belonging to one group with the groupId being a key in the user object. This obviously allows you to have any number of people in each group as well as any number of groups.
What I've left out is the server side logic that sets the outcome key in the Group documents. You'll have to set one group to won and the other to lost in the same server method.
You have a design problem.
and 2. If you want to track the "groups" (if they lose or win, redirect to win or lose) in your app, you have to create a group collection to manage the "states" of your game(I think your app is like a game).
with the group collection you can show the information to the members, i.e. if I'm in a group even if I was offline when I login in your app I will be able to see what is in my groups records.
Its a matter of design and know how manage the data and the events in meteor

What would be the best way to make a website that lets a user fill a form and receive data (such as real estate listings)?

I want to make a website that will allow the user to input the zipcode in which they are looking for houses and that will notify me of what their search criteria is (such as homes for $250K in the ##### zip code). What would be the best way to start this project?
You could create a form which would ask for the user to fill in their details and when they submit you receive an email with their details.
You can look into simple bootstrap form and use PHP to implement it
Have a look at this example
Simple Form Example
You could create a form that gives price range option.
-$50,000-$100,000
-$100,000-$150,000
-$150,000-$200,000
-$200,000-$250,000
-$250,000-$300,000
-$300,000+
Then create an input field with validation applied that checks for a certain amount of characters and that the input is integers to help with span.
Finally a submit button that you can set up to email you the results or if you are working with a database you can send it there and monitor it or create a page that displays the requests you get. The email structure would be pretty easy to set up.
This can all be done with simple php and html.

Amazon Affiliate Program: Can you land on a search results page with your tag?

For example, from my website I want to link users to an entire search queries result page on Amazon.com rather than thinking them to just one specific product at a time.
Is it possible to do something like this?
http://www.amazon.com/s/?ref=sr_st?keywords=skates&qid=1363145953&rh=n:3375251,k:skates&sort=-price&tag=stackexample-20
Go to link shown above
As you can see I'm trying to land users on a search page for "skates", with the highest priced items at the top, and my affiliate ID in this case "stackexample-20"
Thanks in advance!
2018: You could create a link like this (using jquery):
function createAmznLink (text) {
var amznLink = "" + text + ""
$('.linklist').append(amznLink);
}
createAmznLink('product');
You can do searches using affiliate tags you are doing it above once you are on the page you will get commissions for the next 24 hours(i think) . Since the affiliate cookie is set on the browser of the user.

Resources