60 or $numunits < 1) { $numunits=$_SESSION['numunits']=$_POST['numunits'] =0; $numset=0; } } if (!$_SESSION['insetup']) { visitlog("entering setup property","visits.html"); /* visitlog("entered setup"}; */ $_SESSION['insetup']=true; } if (isset($_POST['submit2'])) { ?>

You must enter fields with asterisks such as the property name and email. Each unit must also have a unique name eg. 1A

"") { $network=$_SESSION['network']; } else { $network=$email; } $log=date("y.m.d H:m:s"); $tt=mysql_query("INSERT INTO xprop ( prop_id , propemail, proppassword,propname, owner, manager, add1, add2, city, state, zip, phone, fax, numunits, startdate, website,lastlogon, status, numberlogins, salestaxrate, hoteltaxrate, perdiemtaxamt, deposit, description, network, propertytype, checkouttime) VALUES ('', '$email','$password','$propname','$owner','$manager', '$add1','$add2', '$city','$state','$zip', '$phone','$fax','$numunits','$startdate', '$website','$log','$status1','$num1','$salestaxrate','$hoteltaxrate','$perdiemtaxamt','$deposit', '$description', '$network', '$propertytype', '$checkouttime')"); visitlog("saved new property as $email with $numunits units","visits.html"); if ($tt) { $_SESSION['propid']=$propid = authentic($email, $password); $db_connection = mysql_connect ($DBHost, $DBUser, $DBPass) OR die (mysql_error()); $db_select = mysql_select_db ($DBName) or die (mysql_error()); $active="o"; for ($i = 0; $i < $_SESSION['numunits']; $i++) { $v="unitname".$i."_"; if ($_POST["$v"]>"") { $units[$i]= $_SESSION['units'][$i]=$_POST["$v"]; $aa=mysql_query(" INSERT INTO `xunits` ( `unit_id` , `prop_id` , `unitname`, `active` ) VALUES ('', '$propid', '$units[$i]', '$active')"); } } $_SESSION['website2']='http://www.manageunits.com/xcalendartest.php?pg='."$email"; $mess1="Account Details: \n Email: $email \n Password: $password \n Membership $status1 \n \nYour webpage for clients to see your rates and availability calendar is \nhttp://www.manageunits.com/xcalendartest.php?pg=$email \n "; $mess2="

Account Details:

Email: $email
Password: $password
Property name: $propname
Number of units: $numunits
Membership: $status1

Your Management webpage is
http://www.manageunits.com and login with your email address and password

Your client webpage for viewing rates and availiability is
http://www.manageunits.com/xcalendartest.php?pg=$email


"; echo "
$mess2"; echo "

Please login at home screen

"; $send = mail($email,"Welcome to Manageunits Reservations system","$mess1",$e_message); $send = mail("administrator@manageunits.com","New property setup in manageunits","$mess1",$e_message); if ($send) {echo "
Your account information has been mailed to $email";} else { echo "email message failed"; } } else { echo "database insert failed"; } unset($_POST['cc']); } ?>

The following information is required to set up a property: an email address, a password of your choice, the number of units, the unit names, and a property name.

Setup new property

Enter number of rental units - maximum 60


For properties with more than 60 units please contact as at administrator@manageunits.com

60 or $numset<1) { echo "Please enter from 1 to 60 units
";} ?>
Property data Screen

* indicates required field

Only units with names will be saved
Membership type:*
property name:* ">
Property type:*
owner ">
manager ">
email:* ">
password:* ">
phone ">
fax ">
address1 ">
address 2: ">
city ">
state ">
postal code ">
website ">
Sales Tax Rate ">%
Hotel Tax rate ">%
Per Diem tax Amount ">
Deposit % for reservation ">
Checkout time for reservation ">
Description