You are on page 1of 62

The Implementation of the Information System of

Visayas Mission Confraternity Inc. (VMCI.INFO)

A Requirement for ComE52L 8:30-11:30 AM (Wed)

Group Members: Roldan Villaber BS ComE-5 Jun Rey Dotarot BS ComE-5 Rosemarie Calamba BS ComE-5 Jover Nuez BS ComE-5

Presented to: Engr. Miguel M. Sarigumba, Jr. Subject Instructor

Phase 1: System Planning


A. Presentation of S.W.O.T.
Strengths: -Mutually bounded with several dioceses and parishes in Bohol and beyond. -Well designed mission emersion programs to the areas. -Participated by different people (religious or not, in different ages and levels in life).

Weakness: - Documentations need updating.

Opportunities: -Increase potentials as religious mission organization. -Develop and enhance individuals as well as barangays. - Expand and widen mission coverage as well as mission participants.

Threats: - Monetary transparency and accountability becomes a sensitive concern.

B. Outputs of Fact-Finding Activities I. Organizational Chart:

V.M: Vision: To hold in consciousness a world where all live in equality, love, peace and joy as one heart, one mind, one light.

Mission:

To serve all humanity with honesty, compassion, and understanding as an expression of God's love.

II. Presentation of Feasibility Evaluations.


Operational: Users and visitors can manipulate the web site in a very friendly and easy manner. Appeared as a usual web site, users can easily recognize the different functionalities of our web site. All of the vital information is displayed in a respective page. Necessary data such bank account and account numbers are required for the users to operate online donation in our web site.

Technical: -The IS used web hosting method for our domain web site. The IT people used computer units to access the online server provided by the hosting company. Our IT team has computer units (laptop, E-machine, 250G HD, 2G RAM, i3 CPU, Ubuntu 10.10 and Windows 7).

Economic: Initially, we are going to purchase domain web site in a company targeting an amount of 2500 PHP to suffice the desired 25 MB bandwidth of our web site. Labor, professional, and maintenance fee for our IT team is not yet discussed. Additional laptops or computer units in the high-end requirements are also being recommended by our IT team.

Scheduling: With as much as possible, the IT team can finalize the IS web site before the end of the first semester (October, 2011).

III. List of System Features: A. Online Donation System. Donation via PayPall.com system. Donation Verification

B. Online Membership System. Application Evaluation through E-mail Membership Activation with E-mail Notification

C. Social Networking Basic Features: Admin Respective Pages Event Posting Comment Posting Messaging E-mail Upload Pictures and Create Album Update and Edit Profiles

Phase 2: System Analysis.


I. System Requirements Document.

Output:

A. Online Donation System: -The web site will automatically generate thanks message every after donation processed.

-It will produce a regular report about the donators and the donations which will be posted in a specific page.

B. Membership System: -The system will send an email activation to signify that your membership application is granted. -Being an official member, the system provides you privileges such as: A. Email or Sending Message to Members and Staffs

B. Posting or Commenting to a Post C. Upload only Profile Pictures

-Regarding application in joining, participating or being a volunteer, department heads (Mission Operations, Socio-Cultural Development, and Humanitarian Development) will produce mechanisms to entertain applications through Posts (Announcements or News Updates) or a group messaging to all members.

- Department heads regularly post reports of their departments.

Input: - Donators should enter credit card account numbers and other related data to transact online donations in a donation page of the web site. Members or not can have the access in donation page.

-Membership is done by submitting application forms where you will provide basic information and your purpose of membership. You are also being prompted to select specific area of the mission where you want to be member.

- Members and staffs are only who can sign or log-in the web site by entering their respective email addresses and passwords.

Process:

A. Online Donation System: - The system associates with a bank that supports Gateway Method and Merchant Banking through Credit Cards transactions in actualizing online banking proceedings.

-Every donation transaction, the system keeps records and place it to a database for reports and Other related uses.

-The finance department handles the records and management of these monetary transactions. They will monitor and check VMCI bank accounts and transactions. Through proper data design and normalizations, reports will be easily generated such as donation transaction records, frequency of donations by a specific account, and other related information.

B. Membership System: - Department heads will receive membership applications. To grant membership, applicants must complete requirements posted online. The granting of membership takes several processes and will take time before applicants recognize as officially a member of the organization. This is intentionally designed and structured by the screening committee.

Performance: The system must be operational seven days a week, 365 days a year. The system must support 25 users online simultaneously.

Controls: -The system must provide log-on security at the operating system level and at the application level.

-Record of the department heads must be added, changed, or deleted only by the director or president of VMCI. -The system must maintain separate levels of security for users and the system administrator.

II. List of Modeling Tools Used. A. Functional Decomposition Diagram: Online Donation System

Online Membership System

B. Data Flow Diagram: Context Diagram:

Data Dictionary: Entities Sponsor Responsible for providing donation towards the organization. They could donate online through Paypal.com. Sponsors also are being recorded through the system in according to the classification of their contributions. Namely: Cash or Material Donations.

Applicant

Accounting Evaluation Record System

They are the one who submit their application in joining the organization. They will be evaluated through the Admin for them to be granted by such membership. They have to include specific purpose of their joining during the fill-up of membership form. Provides accounting data such as total amount of donations and etc. Provides decision data coming from the admin in accordance to the results of the phases of application evaluation to a specific applicants It gives presentation display to a specific pages for viewing such as Admin and Home Page

Online Donation System: Processes: Data Validation Proceed to PayPal.com Donation Verification Generate Reports Data Flow: Donation Data Validated Data Confirmation Data Generated Report Includes sponsors name, contact number, address, and amount to donate. This are validated donation data that is to be saved in database. Represents a verified or unverified data about the success of donation in PayPal. These are presentation data to be displayed in a specific page. Donation data are being validated before it is being saved to database. This is redirection option towards the PayPal in order to initiate online donation. Through manual checking of PayPal account by an Admin, he or she would provide confirmation data towards the system on the successful donation in their account. Performs displaying of specific presentations in a page based on the saved records.

Online Membership System: Processes:

Data Validation

Application data are being validated before it is being saved to database.

Application Evaluation

It includes several phases of evaluation. The system provides sending of email towards the applicant for them to have communication as well as an evaluation. Granting of This is the giving of granting data. Based on the evaluation results, Membership Admin has to deny or accept the applicants. Data Flow: Donation Data Validated Data Confirmation Data Generated Report Includes sponsors name, contact number, address, and amount to donate. This are validated donation data that is to be saved in database. Represents a verified or unverified data about the success of donation in PayPal. These are presentation data to be displayed in a specific page.

Data Flow Diagram- Level 0: (Online Donation System) 1 SPONSOR Data Validatio n 2 Proceed to PayPal.c om

3 ACCOUNTING Donation Verificati on

4 RECORD SYSTEM Generate Reports

Online Membership System 5 APPLICANTS Applicati on Data Validatio n

6 Applicati on Evaluatio n 4 RECORD SYSTEM Generate Reports

Online Donation System: Processes: Check Field Email Address Validation Redirection to PayPal Redirection Back to IS Check PayPal Account Verify Donation Send Thank You Email Update Bank Record Generate Records Fields are being evaluated accordingly. Specific procedure to check the validity of email Display of PayPal Donation Button to redirect towards PayPal.com Manual going back to home page of the IS. Manual checking of PayPal account by an Admin. Through checking account, donation will be verified in a system. Together with the donation verification, email also will be sent. Another admin task is to manually check bank account and update this to system. Performs displaying of specific presentations in a page based on the saved records.

Online Membership System: Processes: Compare Check if username exist String Check String Check the length of the string.

Length Check Field for Member Form Check Username and Password Save Application Data Accept Applicant Delete Applicant Send Email Generate Records Account Activation

Check the rest of the fields. Check the username and password.

Saving of Applications Accepting of Applicant Denying of Applicant The accepting of applicant dictates the sending of notification email. Performs displaying of specific presentations in a page based on the saved records. Correspond the activation of account after being accepted as member.

Data Flow Diagram- Level 1: (Online Donation System) 1.2 SPONSOR 1.1 Check Field Email Address Validatio n

2.1 Redirecti on to PayPal

2.2 Redirecti on Back to IS

3.1 Check PayPal Account

RECORD SYSTEM

ACCOUNTING

3.2 Verify Donation

3.5

3.4

3.3 Send Thank You Email 5.2 Check Field 5.3 Check Username & Password

Generate Update Reports Online Membership System:Bank Record APPLICANTS 5.1 Check Length &Type

5.4 Save Applicati on Data

6.1 EVALUATION Evaluate Applicati onData

6.2 Send Email

6.3 Account Confirma tion

RECORD SYSTEM

3.5 Generate Reports

Data Flow Diagram- Level 2: (Online Donation System) Online Donation System: 1.1 Check Field 1.2 Validate Email Address

RECORD SYSTEM

2.1.1 PayPal Button Display

3.5 Generate Reports

RECORD SYSTEM

2.2 Redirecti on Back to IS 3.4 Update Bank Record

ACCOUNTING

3.1 Check PayPal Account

3.3 Send Thank You Email

3.2.2 Save Donati on

3.2.1 Confirm Sponsor

Online Membership System APPLICANTS 5.2.1 Check Field for Member Form

5.1.1 Compare String

5.1.2 Check String Length

5.3 Check Username and Password

5.4 Save Applicati on Data

6.2 Send Email MEMBER Public $mem_id Public $fullname Public $address Public $birthdate

6.1.2 Delete Applicant

6.1.1 Accept Applicant

Public $age Public $civil_status Public $cellphone_nu Public $telephone_no Public $email_add Public $password Public $message __________________
db_connect(); mem_login();

EVALUATION
ADMIN

Public $position pblic $contact

7 Generate Reports SPONSOR


private $fullname

public $db_con

6.3

RECORD member_logout(); SYSTEM

Account Activatio admin_login() n ACCOUNTING


admin_logout() check_AdminSession()

D. Unified Modeling Language Diagram: (Class Diagram) (Profile) private $additional


profile_MemberInfo() save_quickContct() mem_set_iSay() mem_iSay() make_contact() view_list_of_contact() del_Contact() my_avatar() (Paypal Redirection) next_page() (picture) private $amount private $currCode (Data Validation) ValidateEmailAddress () check_field()

public $displayDiv_cashDon public

$displayDiv_materialDon (profile) public $db_connect profile_AdminInfo()


show_contacts() view_list() onlineSponsor_list() view_Info() view_CashDonations()

view_MaterialDonations()
(To-do)

view_updateCashRecord( ) show_list() additionOf() make_list()


del_List()

views make_album()
upload_pic() view_pic_list() delete_pic() delete_album() view_select_pic()

save_data()

could be

(E-mail) send_email()

(Sponsor) confirm_sponsor() delete_sponsor()

(event) view_events() add_view_InThisEvent () event_content_list() add_comment() view_reply_list()

check_paypal_account() save_CashDonations() save_MaterialDonations( ) update_bankRecord()

(Application) delete_Member_Applican

delete_event()
accept_Applicant()

(Message) send_message() delete_message() view_list_SentMessag e() delete_SentMessage() count_Message()


(Event) create_event()

Evaluated

(President) view_list_quick_message ()

(Inheritance) APPLICANT

del_quickMessage()

__________________
compare_str() check_str_length()

Use Case Diagram: A. Online Donation System:

check_username() check_field_for_member_form () save_applicant_data()

Sponsor
Submit Donation Data
Validate Data

System

Admin

notifies
Save Donation Data Save Verified Donation Data

Error Notification

Verify Donation

System

B. Online Membership Data:

Applicant Admin

Validate Data

Error Notification

Save Application Data

Save Membership Data

Activity Diagram: Online Donation System:

Sponsor Enters Donation Data

Validate Donation Data

Invalid data
Sponsor Re-enters Donation Data

Validated data
Admin Checks Paypal Account

Save Donation Data

Sponsor Donate through Paypal

Display Paypal Button

Verify Donation Data

Save Verified Donation Data

E n d d

B. Online Membership System:

Applicant Enters Application Data

Validate Application Data

Invalid Data
Re-enter Application Data

Validated Data

Save Application Data

Admin Evaluates Application

Save Membership Data

Grant/Deny Membership

E n d d

Sequence Diagram: A. Online Donation System:

CheckPaypalAccount SUBMIT DONATION DATA Confirm/Delete_Sponsor Check_Field NOTIFICATIONS SaveDonationData ValidateEmailAddress

View Donation Data

B. Online Membership System

SUBMIT APPLICATION DATA Delete_Member_Applicant

Compare_Str Accept_Application Check_Str_Length

Check_Username

Check_Field_For_Member_Form

Save Application Data View Application Data

Phase III. Output and User Interface Design


A. Database Design.

Phase 4: System Implementation A. Program Flow Charts Online Donation System: Star t Sign-in Admin Login?

Fill-up Donation Form

All Fields are filledup?

Display Error Notifications

Email Validate d? VerifY Donation

Verifi ed?

Save to Donation Table

Save to Successful Donation Table Send Email

Display PayPal Button

Online Membership: Star t No

END Sign-in Admin

END

Fill-up Membership Form

Login?

Yes All Fields are filledup? 2 Passwor ds Entered are Equal? Display Error Notifications

Evaluate Application

String Lengt h is valid?

Accep ted? Save to Application Table Save to Successful Member Table

Other Fields are Valid? Usern ame Existe d?

Send Email END

END

B. Coding Online Donation System:

------------------ Sponsor Class (Methods for Online Donation) ------------

<?php

include_once('member.class.php');

class Sponsor extends Member{

private $error_message; private $display_errDiv = "none";

private $ullname; private $additional; private $amount; private $currCode;

Checking Fields:
//:::::::::::::::::::::::::: checking the fields of the donation form ::::::::::::// public function check_field(){

if(isset($_POST['submit_donationForm'])){

$this->fullname $_POST['lastname']; $this->birthdate $_POST['year']; $this->address $this->email_add $this->cellphone_number $this->additional $this->amount $this->currCode =

$_POST['firstname'].' '.$_POST['day'].',

'. '.

$_POST['month'].'

= $_POST['address']; = $_POST['email']; = $_POST['contact']; = $_POST['additional']; = $_POST['amount']; = $_POST['currCode'];

if($_POST['firstname']&&$_POST['lastname']&&$_POST['address']&&$_POST['email']&&$_POST['amoun t']&&$_POST['currCode']){

$check_email "valid" : "invalid";

$this->validateEmailAddress($this->email_add)

if($check_email == "valid"){

$save = $this->save_data();

if($save === true ){

$this->next_page();

} else{

$this->error_message error occured while saving the data.</p>";

= "<p> There is an

$this->display_errDiv = "block";

} else{

$this->error_message = "<p> The email address you enter is invalid.</p>";

$this->display_errDiv = "block";

} else{

$this->error_message = "<p>Please fill up all the important fields in the form below.</p><br> <p>Note: fields are indicated with (*)asterisk.</p>"; Important

$this->display_errDiv = "block";

Validate Email: //::::::::::::::::::::: address :::::::::::::::::::::// function to validate an e-mail

public function validateEmailAddress($email_address) {

return preg_match("/^([a-z0-9_-])+([\.a-z0-9_-])*@([a-z0-9-])+(\.[a-z0-9-]+)*\.([a-z] {2,6})$/", strtolower($email_address));

Display Paypal Button:

//::::::::::::::::::::::::: display the thank you message and paypal button :::::::://

public function next_page(){

$out = '<script>document.location.href="?thank_you_sponsor";</script>'; echo $out; }

Save Donation Data: //:::::::::::::::::::::::::: sponsor :::::::::::::::// saving the data of the online

public function save_data(){

$date = date('Y-m-d');

$sql = "INSERT INTO `on-line_donation` VALUE >fullname','$this->birthdate','$this->address','$this->email_add','$this>cellphone_number',

('','$this-

'$this->additional','$this->amount','$this>currCode','pending','$date')";

$result = $this->db_connect()->query($sql);

if($result){

return true; } else return false;

?>

--------------------------------- Admin Class (Methods for Verifying Donations) ------------<?php

include_once('member.class.php');

class Admin extends Member{

private

$displayPayPal_Div = "none";

//:::::::: variables for the admin log in ::::::::://


private

$displayDiv = "none";

private

$error_message;

//:::::::: variables for the profile info ::::::::://


private private

$position; $contact;

Check PayPal Account:


//::::::::::::::: checking paypal account :::::::::::::::::::::::::::::://

public function check_paypal_account(){

if(isset($_GET['check_paypal'])){

session_start(); $_SESSION['paypal_page'] = 'set'; }

if(isset($_GET['check_paypal_close'])){

session_start(); unset($_SESSION['paypal_page']); }

if(isset($_SESSION['paypal_page'])){

$this->displayPayPal_Div = "block"; } }

Verify Donation:
//:::::::::::::::: method for the confirmation of the on line sponsor :::::::::::::://

public function confirm_sponsor(){

if(isset($_GET['confirm_sponsor'])){

$id $name

= $_GET['confirm_sponsor']; = $_GET['name'];

$subject $email $from

= "Greetings From your VMCI family"; = $_GET['email']; = "Visayas Mission Confraternity Inc.";

$body = "Your donation was confirm... Thank you so much for shairing your kindness to us! may God always bless you!!";

$sql id = '$id'";

= "UPDATE `on-line_donation` SET status = 'confirm' WHERE

$result

= $this->db_connect()->query($sql);

$send_email = $this->send_email($subject,$email,$from,$body);

header("location:?viewOnLine_Don"); exit(); }

Unverified Donation:

//::::::::::::::: method sponsor ::::::::::::::::::::://

for

the

deletion

of

on

line

public function delete_sponsor(){

if(isset($_GET['del_sponsor'])){

$id $name

= $_GET['del_sponsor']; = $_GET['name'];

$subject $email $from

= "Greetings From your VMCI family"; = $_GET['email']; = "Visayas Mission Confraternity Inc.";

$body = "Thank you for sharing your kindness to us. But the donation process you have made was not successfull.";

$sql ('$id')";

= "DELETE FROM `on-line_donation` WHERE id =

$result

= $this->db_connect()->query($sql);

$send_email $body);

$this->send_email($subject,$email,$from,

header("location:?viewOnLine_Don"); exit(); } }

?>

Online Membership Donation System: ------------------Applicant Class (Methods for Application) ----------------------<?php include_once('sponsor.class.php'); include_once('member.class.php');

class Applicant extends Member{

private $displayErrDiv_memForm = "none"; private $displayErrMess_memForm;

Check Fields:
//:::::::::::::::::::::::::::: form ::::::::::::::::::::// this method is for checking the field of the membership

public function check_field_for_member_form(){

if(isset($_POST['apply'])){

$this->fullname $_POST['middlename'].' '.$_POST['lastname']; $this->address '.$_POST['province'].' '.$_POST['country']; $this->birthdate $_POST['year']; $this->age $this->civil_status $this->cellphone_number $this->telephone_number $_POST['telnum2']; = = = = =

$_POST['firstname'].'

'.

$_POST['street'].' '.$_POST['citytown'].' $_POST['month'].' = '.$_POST['day'].' '.

$_POST['age'];

$_POST['status']; $_POST['cellnum']; $_POST['telnum1'].' '.

$this->email_add $this->username $this->password $this->message

$_POST['email']; = = = $_POST['username']; $_POST['password']; $_POST['message'];

if($_POST['firstname']&&$_POST['middlename']&&$_POST['lastname']&&$_POST['street']&&$_POST['cit ytown']&&$_POST['province']&&$_POST['country']&&

$_POST['month']&&$_POST['day']&&$_POST['year']&&$_POST['age']&&$_POST['status']&&$_POST['cell num']&&$_POST['email']&&$_POST['username']&& $_POST['password']&&$_POST['repeatpassword']&&$_POST['message']){

$sponsor = new Sponsor;

$validate_email >validateEmailAddress($_POST['email']) ? "valid" : "invalid";

$sponsor-

if($validate_email == "valid"){

$check_username >check_username($_POST['username']);

$this-

if($check_username === true ){

$check_username_length >check_str_length($_POST['username'],'6','25');

$this-

if($check_username_length === true ){

$check_password >compare_str($_POST['password'],$_POST['repeatpassword']);

$this-

if($check_password === true ){

$check_password_length $this->check_str_length($_POST['password'],'6','30');

if($check_password_length === true ){

$save_data $this->save_applicant_data();

if($save_data === true ){

header("location:?succ"); exit(); } else{

$this>displayErrDiv_memForm >displayErrMess_memForm = "block"; $this= "**saving of data not successful.**<br /> <br data.**"; />**error while saving

} else{

$this>displayErrDiv_memForm >displayErrMess_memForm characters.**<br /> = "block"; = "**Password you have entered is $thisnot between 6 25

<br password**";

/>**Please

enter

25

characters

} else{

$this->displayErrDiv_memForm = "block"; >displayErrMess_memForm $this= "**The password you have you have entered didn't match.**<br /> <br password**"; />**Please make sure to enter the same

} else{

$this->displayErrDiv_memForm = "block"; $this->displayErrMess_memForm = "**Username you have entered is not between 6 - 25 characters.**<br /> <br />**Please enter 6 - 25 characters username**";

} else{

$this->displayErrDiv_memForm "block"; $this->displayErrMess_memForm "**The username you have you have entered is already used.**<br /> <br />**Please enter another username**";

= =

} else{

$this->displayErrDiv_memForm "block"; $this->displayErrMess_memForm "**The E-mail address you entered is invalid.**<br /> <br />**Please enter a valid E-mail address**";

= =

}else{

$this->displayErrDiv_memForm = "block"; $this->displayErrMess_memForm = "**Please fill up all required fields in the form below.**<br /> <br />**Required fields are indicated with the asterisk( * ) sign.**";

Compare String:
//:::::::::::::::::::::::::::: this method is for comparing a 2 string :::::::::::::::::::://

protected function compare_str($str1,$str2){

if($str1 == $str2){

return true; } else{

return false; }

Check String Length:


//:::::::::::::::::::::::::::: this method is for checking the length of a string :::::::::::::::::::://

protected function check_str_length($str,$length1,$length2){

if(strlen($str)>=$length1 && strlen($str)<= $length2){

return true; } else{

return false;

Check Username Existence:


//:::::::::::::::::::::::::::: this method is for checking the username if exist nah :::::::::::::::::::://

protected function check_username($username){

$sql_nameCheck1 $username."'"; $sql_nameCheck2 $username."'";

= =

"SELECT "SELECT

username username

from from

applicant member

WHERE WHERE

username='". username='".

$num_check1 $num_check2

= $this->db_connect()->query($sql_nameCheck1)->num_rows; = $this->db_connect()->query($sql_nameCheck2)->num_rows;

if($num_check1 == 0 && $num_check2 == 0){

return true; } else{

return false; }

Save Application Data:

//:::::::::::::::::::::::::::: this method is for saving the data of the applicant :::::::::::::::::::://

protected function save_applicant_data(){

$date

= date('Y-m-d');

$cellnum

= "+639".$this->cellphone_number;

$Ipassword

= md5($this->password);

$sql = "INSERT INTO applicant VALUE >address','$this->birthdate','$this->age','$this->civil_status','$cellnum',

('','$this->fullname','$this-

'$this->telephone_number','$this->email_add','$this>username','$Ipassword','$this->message', '$date')";

$ret

= $this->db_connect()->query($sql);

if ($ret === false) {

return false; } else{ return true; }

?>

-----------------

Admin Class (Methods for Applications Evaluation) -------------

Accept Application //::::::::::::::::::::::::: this applicant :::::::::::::::::::::// method is for accepting of

public function accept_Applicant(){

if(isset($_GET['accept_App'])){

$username = $_GET['accept_App']; $fullname = $_GET['fullname'];

// Collects data from "applicant" table where table is equal to username $data username='$username'" ; = "SELECT * from applicant WHERE

$info = $this->db_connect()->query($data)->fetch_array();

$fullnamea $addressa

= $info['fullname']; = $info['address'];

$birthdatea = $info['birthdate']; $agea $civilstatusa $cellnumbera $telnumbera $emaila $usernamea $passworda $message = $info['age']; = $info['civil status']; = $info['cellphone number']; = $info['telephone number']; = $info['email']; = $info['username']; = $info['password']; = $info['message'];

$sql1 = "INSERT INTO member VALUE

('','$fullnamea','$addressa','$birthdatea','$agea','$civilstatusa','$cellnumbera','$teln umbera','$emaila','$usernamea','$passworda','$message')";

$result1 = $this->db_connect()->query($sql1);

$sql2 = "DELETE FROM applicant WHERE username = ('$username')";

$result2 = $this->db_connect()->query($sql2);

header("location:? del_accept_info=accept_App&&name=$fullname"); exit(); }

Deny Application:
//::::::::::::::::::::::::: this method is for deletion of member or the applicant ::::::::::::::::::::://

public function delete_Member_Applicant(){

$fullname = $_GET['fullname'];

if(isset($_GET['del_Mem'])){

$username

= $_GET['del_Mem'];

$sql

= "DELETE FROM member WHERE username = ('$username')";

$x }

= 'del_Mem';

if(isset($_GET['del_App'])){

$username

= $_GET['del_App'];

$sql ('$username')";

"DELETE

FROM

applicant

WHERE

username

$x

= 'del_App';

$result = $this->db_connect()->query($sql);

header("location:?del_accept_info=".$x."&&name=$fullname"); exit();

?>

--------------- Member Class (Methods for Social Networking Transactions) --------Social Networking:
<?php

class Member{

//:::::::::::::::::: common variables ::::::::::::::::::// protected $mem_id; protected $fullname; protected $address; protected $birthdate; protected $age; protected $civil_status; protected $cellphone_number; protected $telephone_number; protected $email_add; protected $username; protected $password; protected $message;

Messaging: Send Message:


//::::::::::::::::::::: method for sending of message :::::::::::::::::::://

public function send_message(){

if(isset($_POST['submitMessage'])){

$to $message $sender $messdate

= $_POST['contact']; = $_POST['message']; = $_POST['sender']; = date('m-d-Y h:i:s A');

$sql1 $numrow1

= "SELECT * from member WHERE username='$to'"; = $this->db_connect()->query($sql1)->num_rows;

$sql2 $numrow2

= "SELECT * from admin WHERE username='$to'"; = $this->db_connect()->query($sql2)->num_rows;

if( $numrow1!=0 || $numrow2!=0 ){

$sql3 = ('','$to','$sender','$message','unread','$messdate')"; $result3 =

"INSERT

INTO

messages

VALUE

$this->db_connect()->query($sql3);

$sql4 ('','$to','$sender','$message','$messdate')"; $result4

= =

"INSERT

INTO

sent_messages

VALUE

$this->db_connect()->query($sql4);

if($result3 && $result4 ){

header("location:?view_create_message&&successPagSend");

exit();

} else {

header("location:? view_create_message&&NotsuccessPagSend");

exit();

}else {

header("location:?view_create_message&&NotsuccessPagSend");

exit(); }

Delete Message:
//:::::::::::::: method for deleting message ::::::::::::::::::::::::::::://

public function delete_message(){

if(isset($_GET['del_message'])){

$id

= $_GET['del_message'];

$sql

= "DELETE FROM messages WHERE id = ('$id')";

$result = $this->db_connect()->query($sql);

header("location:?view_inbox"); exit();

Event:

Create Event:
//::::::::::::::::::::::::::::: this method creating event :::::::::::::::::::::::::::::::::::::::::::::::://

public function create_event(){

if(isset($_POST['submitEvent'])){

if($_POST['page'] == 'pres'){ $page = 'pres'; }else { $page = 'admins'; }

$topic = $_POST['topic']; $detail = $_POST['detail'];

$admin = $_POST['admin']; $date = date('F d Y', strtotime('now'));

$sql = ('','$admin','$topic','$detail','$date','$page','','')";

"INSERT

INTO

events

VALUE

$result = $this->db_connect()->query($sql);

header("location:?create_event=success");

exit();

} }

Upload Pictures:
//:::::::::::::::::::: method for uploading picture ::::::::::::::::::::::::::::::::::::://

public function upload_pic($user){

If($_POST['Submit_Picture']){

$username $title

= $_POST['user']; = $_POST['title'];

$detail = $_POST['detail']; $album = $_POST['album'];

//check the file size...

define ("MAX_SIZE","400");

$size=filesize($_FILES['pic_file']['tmp_name']);

if ($size > MAX_SIZE*1024){

echo '* ERROR : You have exceeded the size limit!* <a href="?add_pic" style="font-size: 13px;">back</a>';

} else{ //include_once("./../../lib/db_con.php"); // attempt database connection $mysqli "vmci_db3"); if ($mysqli === false) { die("ERROR: mysqli_connect_error()); } Could not connect. " . = new mysqli("localhost", "root", "",

//insert the file data and get the id...... $sql = ('','$username','$album','$title','$detail',now())"; "INSERT INTO pic_data VALUE

if ($mysqli->query($sql) === true) {

$pic_id = $mysqli->insert_id;

} else { echo "ERROR: Could not execute query: $sql. " . $mysqli>error; }

//check for the folder..... $sql1 = "SELECT * FROM picFolder_data where username = '$username'";

$result1 = $mysqli->query($sql1)->num_rows;

if ($result1 == 0) {

$sql1a ('$username','My Album')";

"INSERT

INTO

picFolder_data

VALUE

$mysqli->query($sql1a);

if($user == 'admin'){ $make1 0777); $make1 = mkdir("../admin_pic/$username/My Album", 0777); } if($user == 'member'){ $make1 0777); $make1 = mkdir("member_pic/$username/My Album", 0777); } = mkdir("member_pic/$username", = mkdir("../admin_pic/$username",

if($user == 'admin'){

move_uploaded_file($_FILES['pic_file'] ['tmp_name'],"../admin_pic/$username/$album/$pic_id.jpg");

} if($user == 'member'){

move_uploaded_file($_FILES['pic_file'] ['tmp_name'],"member_pic/$username/$album/$pic_id.jpg");

} header("location:?add_pic=success"); } exit();

} }

Member Page:
//:::::::::::::::::::::::::::::::: this method is for the profile info ::::::::::::::::::::::// public function profile_MemberInfo($user){

$sql = "SELECT * FROM member WHERE username='$user'"; if ($result = $this->db_connect()->query($sql)) {

$row = $result->fetch_array();

$this->fullname $this->username $this->mem_id $this->birthdate $this->age $this->civil_status $this->address $this->email_add $this->cellphone_number $this->telephone_number

= $row['fullname']; = $row['username']; = $row['id']; = $row['birthdate']; = $row['age']; = $row['civil status']; = $row['address']; = $row['email']; = $row['cellphone number']; = $row['telephone number'];

} else { echo "ERROR: Could not execute $sql. " . $this->db_connect()->error; }

?>

C. Presentation of GUI (Graphical User Interface). Home Page:

Online Donation Form:

PayPal Button:

Admin Page (Donation Verification):

Membership Form:

Admin Page (Application Evaluation)

Send Email Messaging:

Event:

PHASE IV: SYSTEM IMPLEMENTATION

The Visayas Mission Confraternity Inc. will deploy the vmci.info to the web in the very start of January 2012. December 2011 is the month allowed by the corporation for testing and modifications. During this month also, the IT team conducted several testing to the projected administrators and also to the members of the VMCI. The registration of the domain name, vmci.info is already prepared by the IT team together with the coordination of VMCI. During the first implementation of the website (month of October), they used to connect through web as a sub-domain of a h3generation.com. For a month of hosting service, the IT team adjusted a lot of code modifications to designs and internal functionalities. During those times, the website only uses one email account and utilizes the suprecemecenter.com as a host of the site database system. The name of hosting site is Wizkid Hosting that offers the vmci.info to be hosted online for a year in an amount of 800 php with unlimited disk space. The Wizkid Hosting also provides hosting account wherein IT team is provided with a control panel for email management and also the database system.

PHASE V: SYSTEM MAINTENANCE: During the meeting of the IT team with the executive director of the VMCI last October, the VMCI will be paying maintenance fee for the IT team for handling the system for a year. The IT team finalized their system manuals documentations to be given to the different staffs for VMCI. VMCI expected that the web site will be as stable and working as it is being first deployed. The maintenance is more on the software side of the database system.

You might also like