Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed to AvenirNext font #2

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
62c3050
Update README.md
AkankshaBodhankar Jun 3, 2016
17da2b3
small changes
AkankshaBodhankar Jun 3, 2016
cd34f96
Added readme file
AkankshaBodhankar Aug 13, 2016
66cf794
Merge pull request #8 from AkankshaBodhankar/master
AkankshaBodhankar Aug 13, 2016
3c0e1e1
pushed work done in GSOC16
AkankshaBodhankar Aug 15, 2016
fa44ef8
Merge pull request #9 from AkankshaBodhankar/master
AkankshaBodhankar Aug 15, 2016
0b15c23
added correct navigation url's to the docs links
AkankshaBodhankar Aug 15, 2016
d19f907
deleted unneccessary file
AkankshaBodhankar Aug 15, 2016
2427d70
Merge pull request #1 from systers/master
AkankshaBodhankar Aug 31, 2016
5bfe080
changes PCSaves hotline number to +140..
AkankshaBodhankar Aug 31, 2016
73adbae
Merge pull request #12 from AkankshaBodhankar/master
AkankshaBodhankar Aug 31, 2016
085cb10
Merge pull request #2 from systers/master
AkankshaBodhankar Sep 14, 2016
8444ecd
Bug fix (wrong comrade numbers in message popup)
AkankshaBodhankar Sep 14, 2016
9f8b11c
Merge branch 'master' of https://github.com/AkankshaBodhankar/PCSA-web
AkankshaBodhankar Sep 14, 2016
18f8e03
bug fixes
AkankshaBodhankar Sep 14, 2016
e30ed3c
Merge pull request #14 from AkankshaBodhankar/master
AkankshaBodhankar Sep 14, 2016
9b68ab2
removed unused variables
AkankshaBodhankar Sep 15, 2016
158513b
Merge pull request #15 from AkankshaBodhankar/master
AkankshaBodhankar Sep 15, 2016
dad8371
Update README.md
AkankshaBodhankar Oct 26, 2016
8911869
Update README.md
AkankshaBodhankar Oct 28, 2016
08d7255
Replaced PCSA with FirstAide
AkankshaBodhankar Nov 23, 2016
80f702f
replacement of PCSA to FirstAide
AkankshaBodhankar Nov 23, 2016
c7b0112
added comments to loginAndRegistration.css
rahulbisht12 Nov 29, 2016
75baf6c
Merge pull request #28 from rahulbisht12/develop
AkankshaBodhankar Nov 29, 2016
d4d6867
changed to AvenirNext font
ingridt123 Dec 2, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AddType application/x-httpd-php .html .htm
56 changes: 56 additions & 0 deletions PCSaves.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?php
/*Created by Akanksha
Desc: Implementation of PC Saves anonymous helpline of 'Get Help Now'
*/
if(!isset($_SESSION))
session_start();
if(!isset($_SESSION['email']))
{
header("location: login.php");
}

?>
<!DOCTYPE html>
<html>
<head>
<title>FirstAide</title>
<link rel="stylesheet" type="text/css" href="css files/gethelpnow-style.css"/>
</head>
<body>
<?php
include('menu.php');
?>
<center>
<div class="window">
<div>
<h1 class="text">PC Saves Anonymous Helpline</h1>
<hr class="line">
</div>

<!--opens popup to contact via SMS or Call-->
<button class="small-button" id="bt-cntPC" name="bt-cntPC" onclick="openPopup()">Contact Now</button>

<div class="block">
<p>
The PC SAVES Helpline provides anonymous, confidential crisis intervention, support, and information via a call, text, or online chat to Peace Corps Volunteers and Trainees. All options are staffed by trained professionals not affiliated with Peace Corps, available 24/7. No personally identifying information will be collected.
</p>
Learn More: <a href="https://pcsaveshelpline.org/" target=_blank>pcsaveshelpine.org</a>
</div>

<!-- Popup for contact Now -->
<div id="popup-cnt" class="popup">
<div class="popup-content">
<span id="close-cnt" class="close"><img src="images/close-button.png" style="height: 15px;width: 15px;"></span>
<h3 class="text">Contact PC Saves Anonymous Helpline via</h3>
<button id="call" class="popup-button" onclick="make_call('+14088444357')">Voice Call</button>
<button id="msg" class="popup-button" onclick="send_sms('+14088444357')">Send Message</button>
</div>
</div>

</div><!--closing div of window-->
</center>
<script type="text/javascript" src="javascripts/popup.js"></script>
<script type="text/javascript" src="javascripts/twilio-sms.js"></script>
<script type="text/javascript" src="javascripts/twilio-call.js"></script>
</body>
</html>
112 changes: 111 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,111 @@
# PCSA-web
# FirstAide - Web App

The project repo of FirstAide-Web : [FirstAide-web repo](https://github.com/systers/FirstAide-web)

FirstAide is a web application being developed for the Peace Corps. Peace Corps aim to provide support to all the volunteers who have been sexually assaulted. The volunteers can get reporting procedures and other relevant information. The initiative is to provide commitment to the volunteers who are victims of sexual assault and also to ensure their safety.

The project is built using the following technologies:
1. PHP (Backend)
2. HTML and CSS (Frontend)
3. Jquery and Javascript
4. MySql (Database)

![working](https://cloud.githubusercontent.com/assets/14356938/15768596/d4ae5218-296f-11e6-9102-0d39e2bcd1da.jpg)

The welcome page of project

![recommended pages](https://cloud.githubusercontent.com/assets/14356938/15768497/001cb95e-296f-11e6-8cf4-052ffc24e154.png)

## Getting Started

### Installation
Download XAMPP from here [XAMPP download](https://www.apachefriends.org/download.html).You will also need a text editor (Sublime or Notepad++)

Go to your terminal and execute this command

$ git clone https://github.com/systers/FirstAide-web

Or download the ZIP file from above

###Opening and Running
1. Launch XAMPP by opening XAMPP control panel
2. Start 'Apache' and 'MySQL'
3. Check if XAMPP has started using the url 'http://localhost:8080/' (Here 8080 is the port number, use the one which you have configured)
4. Now extract the ZIP file of the project FirstAide-web which you have downloaded and paste it in the C:\xampp\htdocs (the path where your xampp is present)
5. Open the file which you want to work with using the text editor you have downloaded
6. Make the required changes and save the file
7. Now, view your changes using the url http://localhost:8080/directory_name/file_name.extension Example: 'http://localhost:8080/FirstAide-web/login.html'

###Documentation

The documentation can be found here

1.[project docs](https://github.com/systers/FirstAide-web/tree/master/project-docs)

2.[docs of GSOC 16](https://github.com/systers/FirstAide-web/tree/master/work-docs)

###Guide to Naming Convention Used
[Conventions and rules](https://google.github.io/styleguide/htmlcssguide.xml)

###How to Use CALL and SMS feature
This project makes use of Twilio for sending SMS and making CALLS. Twilio is a third party platform which provides API in PHP for serving the purpose.
SMS and Call had been used in:
Get Help Now module
Group SMS in :
Circle of Trust module

Read more about Twilio here: [Twilio](https://www.twilio.com/)

####Steps to enable Twilio in your localhost
1. Get started with SMS and Call by creating an Account on Twilio here : [Twilio Register](https://www.twilio.com/try-twilio)
2. Setting Account SID and Token

Take the Account SID and Token provided by Twilio here [Your Twilio Credentials](https://www.twilio.com/console)

Paste them at the correct places in the twilioSMS.php, twilioCall.php and groupsms.php files
3. Setting From Number
Get a phone number from Twilio here: [Twilio phone number](https://www.twilio.com/console/phone-numbers/dashboard).

Use this as the from number in the files twilioSMS.php, twilioCall.php and groupsms.php
4. Setting To Numbers :
If you are using Twilio Trial Account you can send a SMS or make a Call to a Twilio verified number only. Upgraded accounts may not need to verify a number

Procedure to verify a number in Twilio
1. Go to (https://www.twilio.com/console/phone-numbers/dashboard)
2. Then on the left side vertical menu select Verified Caller IDs
3. Click the + symbol and verify a number

After getting the numbers verified it's time to use this numbers to test the feature
While adding the numbers make sure you enter the country code as well else, it won't work.
#####Use in Get Help Now module
1. Go to javascripts/getHelpNowPhNo.js
2. Replace the sample numbers to your verified numbers
3. Make Call or Send SMS from the App

#####Use in Circle of Trust module
1. Open the app
2. Go to Circle of Trust from the menu
3. Click edit icon
4. Add your verified numbers there
5. Submit and go back to Circle of Trust
6. Click Help Me icon and select a message
7. An alert pops out saying 'Success' once messages are sent

References :

[Tutorial for SMS](https://www.youtube.com/watch?v=jZPeNfLD5Yc)

[Tutorial for Group SMS](https://www.youtube.com/watch?v=G4oluQf_7S4)

## Contributing
If you want to contribute to FirstAide-Web, subscribe to our [systers-dev](http://systers.org/mailman/listinfo/systers-dev) mailing list and shoot an introductory email. Pick an open issue from the [issue list](https://github.com/systers/FirstAide-Web/issues), claim it in the comments and wait for approval, fix the issue and send a pull request.
If you find an issue yourself you can report it, a community member will get back to you and approve the issue. Then you can fix it and submit a PR. Please go through our issue list first and make sure the issues you are reporting do not replicate the issues already reported. If you have issues on multiple pages, report them separately. Do not combine them into a single issue.

### Rules for Contributing
1. Do not fix a new issue and submit a PR without reporting and getting it approved at first.
2. Do not fix an issue assigned to somebody else and submit a PR before the assignee does.
3. Do not report issues which are previously reported by others. (Please check the closed issues too before you report an issue).
4. Do not suggest completely new developments in the issue list. (Please use the mailing list for this kind of suggestions. Use issue list to suggest bugs/features in the already implemented sections.)
5. If an issue is reported by a person, it is automatically assigned to that person
6. Use meaningful commit messages and sqaush all your commits into one
7. Only pick the issues which are labeled as free
Loading