Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

Help: Online Payslip Viewer

reneth17

Apprentice
Advanced Member
Messages
90
Reaction score
0
Points
26
Hello!

Pa help po sana kung paano saan mag uumpisa na gumawa ng online payslip viewer.. Medyo mahirap i-explain in details. pero ganito po sana ang scenario..

Employee must have the "userID" then password (Login form through localhost or webserver, ex. 192.168.x.x/login.php or html)

- given na halimbawa na meron nang existing na ID.

Then, after maka login.. simpleng list view or dropdown ng dates of payroll period. then after maka pili.. lalabas na ung payslip (pdf file) then pwede idownload.

- so far. .may idea na ko gumawa ng "database" using phpmyadmin (MYSQL) kaso ung pinaka laman nung database.. no idea.. most na gmit ko lang is sa "webmin" and wordpress.. automatic na kasi nag kakaroon ng mga tables un,, kapag na install na..


-bale medyo simple lang like ko mangyari. kapg meron na ko payslip.. let say sarili ko.. after ko ma iscan un..(usually kasi hard copy) i dudump ko cia sa webserver.. .. hehe sana may maka gets..

UBUNTU 12.04 Precise Pangolin user here :)
 
Last edited:
un lang Microsoft hehe.. no programming skills here sir.. marunong lang bumasa.. haha
 
ts kabisado mo n ung wordpress? nkakagawa k n ng mga user sa wordpress.. pede mo gawin gawa k ng isang table para paglagyan ng mga payslip info tapos i-code mo n lng ung link doon sa user_id tsaka ung link nung file na iniscan mo.

nagtatanung si ts kung panu mag drawing ng circle pero gusto nyo square. sakit sa ulo.. :upset:
 
gusto mo ng no database solution?

except sa login page, pwede ka na makagawa ng online viewer by:

1. Setting a standard name format for your payslip file (i.e. employeeID_year_month_cutoff.pdf). So kung ako si employee 1200, possible na payslip filename ko for this cutoff ay (1200_2017_08_1.pdf). Kung lahat ng file mo ay mai-standardize mo ang filename, mas maganda.

2. Ang sabi mo ini-scan ang hard copies, dito mo gagawin ang pag-standardize ng filename format. Kapag na-scan na, i-lagay mo lang sa isang central data repository.

3. Gawa ka ng isang php page for viewing. Ano ang kailangan mo dito? Since may login page ka, make sure na maveverify mo ang identity ng magla-login. Siyempre kukunin mo ang employee ID number nya. Yun ang gagamitin mo for comparison sa lahat ng mga payslip files na nakalagay dun sa central payslip repository mo.

4. Pano mo ngayon ipe-fetch ang files na nasa repo mo?

Code:
	$dir = 'dummy/'; // payslip file repository - dito mo ibabagsak lahat ng renamed payslip files mo
	$files1 = scandir($dir); // ito ung magre-read ng lahat ng filenames na nandun sa $dir
	
	$empID = '1200'; // sample employee ID, ikaw na bahala kung ano format ng employee ID nyo as long as mave-verify mo
	
	// This loop will only display ALL payslip files for employee 1200, so kung may mahalo man na employee 1100 sa repo mo, hindi sya lalabas dito
	foreach($files1 as $filename){
		$tempDir = $dir . $filename;
		if(!is_dir($tempDir)){
			$tempFile = explode('_', $filename);
			if($tempFile[0] == $empID){ echo '<a href="' . $tempDir . '">' . $filename . '</a><br>'; }
		}
	}

Pro(s) and Con(s) nito

Pro(s)
- madali i-deploy
- di mo na kailanga ilagay sa database yung records
- scan and drop mo lang dito yung payslip file

Con(s)
- mas mahirap i-manage lalo kung sobrang dami na ng file
- mas mabagal kapag sobrang dami na


***Note: If you prefer to use this method, madami ka pa pwede gawin customization dito, like security checkings ang UI designs. Main pro nga nito ay sobrang bilis i-deploy. But kung gusto mo ng with database, mas matagal ng konti i-deploy, pero in the long run, mas makikinabang ka

If you like I could give you some demonstration for this
 
Hello!

Pa help po sana kung paano saan mag uumpisa na gumawa ng online payslip viewer.. Medyo mahirap i-explain in details. pero ganito po sana ang scenario..

Employee must have the "userID" then password (Login form through localhost or webserver, ex. 192.168.x.x/login.php or html)

- given na halimbawa na meron nang existing na ID.

Then, after maka login.. simpleng list view or dropdown ng dates of payroll period. then after maka pili.. lalabas na ung payslip (pdf file) then pwede idownload.

- so far. .may idea na ko gumawa ng "database" using phpmyadmin (MYSQL) kaso ung pinaka laman nung database.. no idea.. most na gmit ko lang is sa "webmin" and wordpress.. automatic na kasi nag kakaroon ng mga tables un,, kapag na install na..


-bale medyo simple lang like ko mangyari. kapg meron na ko payslip.. let say sarili ko.. after ko ma iscan un..(usually kasi hard copy) i dudump ko cia sa webserver.. .. hehe sana may maka gets..

UBUNTU 12.04 Precise Pangolin user here :)



i suggest TS build it from scratch which is madali lang base sa explanation mo then use phpToPDF(API) for PDF converting, wordpress is built in(CSM). Oo ma ccostumize mo siya but kailangan mo mnang maintindihan how it work's, unlike pag ikaw mismo gumawa is easy as peanut lang hahha xD.
btw i'm using Dreamweaver and MySQL which good for Web Development(for me)
 
Hi TS, suggestion lang using PHP, export to *.csv ang mga data ng payslip to upload sa webserver mo then print to pdf using FPDF.
 
Back
Top Bottom