Saturday, December 29, 2018

PHP Restaurant Scripts - Open Source Restaurant Booking Script

PHP Restaurant Scripts - Open Source Restaurant Booking Script

 

About PHP Scripts Mall Pvt. Ltd.

PHP Scripts Mall Pvt. Ltd. is a professional software selling portal offering wide range of innovative PHP scripts. 12 years since our establishment in the core market, we have 300 plus PHP scripts ready to buy.
Source-https://www.phpscriptsmall.com/product-sitemap/
 
 
PHP Restaurant Scripts has many business review systems, it supports banner advertisements, supports Google AdSense, the Open Source Restaurant Booking Script can register themselves and users can search according to their needs, it has multiple category listing feature, responsive design which makes the website accessible from all the devices

Easy PHP Calender

PHP calendars can be useful. You can do things as simple as showing the date, and as complex as setting up an online booking system. This article shows how to generate a simple PHP calendar. When you understand how to do this, you will be able to apply the same concepts to complex calendars you may need.

The first part of the code sets some variables that are needed later in the script. The first step is to find out what the current date is using the time () function. Then, you can use the date () function to format the date appropriately for the $day, $month and $year variables. Finally, the code generates the name of the month, which is the title of the calendar.

Days of the Week

//Here you find out what day of the week the first day of the month falls on
$day_of_week = date('D', $first_day) ;
//Once you know what day of the week it falls on, we know how many blank days occur before it. If the first day of the week is a
Sunday, then it is zero
switch($day_of_week)
{
case "Sun": $blank = 0; break;
case "Mon": $blank = 1; break;
case "Tue": $blank = 2; break;
case "Wed": $blank = 3; break;
case "Thu": $blank = 4; break;
case "Fri": $blank = 5; break;
case "Sat": $blank = 6; break;
}
//We then determine how many days are in the current month
$days_in_month = cal_days_in_month(0, $month, $year) ;
Here you take a close look at the days of the month and prepare to make the calendar table. The first thing is to determine on which day of the week the first of the month falls. With that knowledge, you use the switch () function to determine how many blank days are needed in a calendar before the first day.
Next, count the total days of the month. When you know how many blank days are needed and how many total days are in the month, the calendar can be generated.
03
of 05

Headings and Blank Calendar Days

//Here you start building the table heads
echo "";
echo " $title $year ";
echo "SMTWTFS";
//This counts the days in the week, up to 7
$day_count = 1;
echo "";
//first you take care of those blank days
while ( $blank > 0 )
{
echo "";
$blank = $blank-1;
$day_count++;
} 
The first part of this code echoes the table tags, the month name and the headings for the days of the week. Then it starts a while loop that echoes empty table details, one for each blank day to count down. When the blank days are done, it stops. At the same time, the $day_count is going up by 1 each time through the loop. This keeps count to prevent putting more than seven days in a week.
04
of 05

Days of the Month

//sets the first day of the month to 1
$day_num = 1;
//count up the days, until you've done all of them in the month
while ( $day_num $day_num ";
$day_num++;
$day_count++;
//Make sure you start a new row every week
if ($day_count > 7)
{
echo "";
$day_count = 1;
}
Another while loop fills in the days of the month, but this time it counts up to the last day of the month. Each cycle echoes a table detail with the day of the month, and it repeats until it reaches the last day of the month.
The loop also contains a conditional statement. This checks if the days of the week have reached 7—the end of the week. If it has, it starts a new row and resets the counter back to 1.
05
of 05

Finishing the Calendar

//Finally you finish out the table with some blank details
if needed
while ( $day_count >1 && $day_count ";
$day_count++;
}
echo ""; 
One last while loop finishes the calendar. This one fills in the rest of the calendar with blank table details if needed. Then the table is closed and the script is complete
 Source-https://www.thoughtco.com/simple-php-calendar-2693849
 

PhotoPost PHP Photo Gallery (w/ vBulletin Integration)

PhotoPost PHP Photo Gallery (w/ vBulletin Integration)

 
nstalled by over 14,500 websites, PhotoPost is unlike any other gallery software out there. It looks great, is packed full of features, is easy to install, and includes top notch support. For the past 6 years, PhotoPost has been the standard by which all other galleries are measured. PhotoPost lets you and your users upload photos or multimedia files to public or private albums, with discussions. Includes multi-language support and a full featured user registration system with usergroup editing to set user diskspace limits and album access privileges. Template based, and includes color/style themes. Although no forum is required, PhotoPost integrates with vBulletin 3.x and 2.x, phpBB 2.0, UBB Threads v6, Invision Power Board 2.0, and DCForums, to achieve one unified login and user registration system. With VB or UBB, you can display your recent photo uploads and your photo galleries on your main forum index page, and PhotoPost has an extensive vBulletin 3.x integration

For more details visit https://www.hotscripts.com/listing/photopost-php-pro-w-vbulletin-integration/