Showing posts with label techaltum. Show all posts
Showing posts with label techaltum. Show all posts

Friday, 7 June 2013

Lesson 4- use of And-Or in If-Else

Use of “And” and “OR” in if –Else

When we need to check more than one condition in if-else, then we use “And” and “OR” operator in if else.

Use of “And”

When we need that all condition must be true then we use “And” operator.

For Example

Let’s take the previous example where we calculate gross salary. I am taking the same example here but with some changes. If candidate salary is greater than 10000 and his dept is hr then his pf will be 5% but for other dept the pf will be 2% with all salary.

Solution of this program will be as follows:-

<?php
$sal=6000;
$dept="hr";
$hra;
$gross_sal=0;
if($sal>10000 and $dept="hr")
{
$hra=($sal*5)/100;
$gross_sal=$sal+$hra;
}
else
{
$hra=($sal*2)/100;
$gross_sal=$sal+$hra;
}
echo " The Gross Salary is $gross_sal";
?>

Tuesday, 4 June 2013

Lesson 7 - Add blogs in Joomla

Add Blog in Joomla

Blogging is the hottest topic these days. Joomla also provides facility to add blogs in website. In joomla blog is the place to show multiple articles in single page.

Following are the steps to add blogs and blogs pages:-

Go to the category manager->create new category and give it name Blog
(name can be anything)

 




Figure 1
Then Go to the main menu->add new menu item->select menu type Category Blog



 
Figure 2

Lesson 6 -Module Manager in Joomla

Module Manager in Joomla

When we need to add some module in our web page like menu, banner, image etc. at particular position then we use module manager. To understand the module manager first of all I discussed position in joomla.

Position defines where we should add particular module in the website. If you want to see the current content position then follows the following steps:-

Go to the template manager->Select the Template->Click on button options



 Figure 1

Then set preview module position Enabled and save it


Friday, 24 May 2013

Lesson -1 Introduction and Installation of Joomla

Joomla Introduction and Installation

Joomla is an open source Content Management System(CMS). Joomla is written in PHP and Is compatible with MySQL and MS SQL Server.

Installation of Joomla on WAMP Server on Localhost

I divided the installation of joomla in following steps. This tutorial is helpful to install joomla on WAMP Server on localhost:-

Step 1:-

Download the code for joomla by clicking on the following link:-

After downloading extract the files

Step 2:-

Then go to the C->WAMP->www and create a folder and give it name joomla( this name can be anything)



Figure 1

Step 3:-

Then open the folder where you extract your joomla code and paste it in this folder (which you created in www folder)

Step 4:-

Now start the wamp server and open the phpmyadmin and create the database where joomla stored the data. I am creating the database and give it name TechAltum



Figure 2