Relational Schema of Database:
DDL Commands(with an instance example used for testing the page): phpmyadmin SQL Dump version 3.4.10.1deb1 http://www.phpmyadmin.net Servidor: localhost Tiempo de generación: 07-11-2012 a las 23:48:54 Versión del servidor: 5.5.24 Versión de PHP: 5.3.10-1ubuntu3.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; Base de datos: `g3` Estructura de tabla para la tabla `Applies`
CREATE TABLE IF NOT EXISTS `Applies` ( `sid` int(11) NOT NULL DEFAULT '0', `oid` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`sid`,`oid`), KEY `oid` (`oid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; Volcado de datos para la tabla `Applies` INSERT INTO `Applies` (`sid`, `oid`) VALUES (1, 122319), (16, 122319); Estructura de tabla para la tabla `Company` CREATE TABLE IF NOT EXISTS `Company` ( `pid` int(11) NOT NULL, `cname` char(20) NOT NULL, `Type` varchar(25) NOT NULL, `Description` char(100) NOT NULL, `Logo` varchar(50) NOT NULL,
`Webpage` varchar(50) DEFAULT NULL, `cpassword` varchar(50) NOT NULL, PRIMARY KEY (`pid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; Volcado de datos para la tabla `Company` INSERT INTO `Company` (`pid`, `cname`, `Type`, `Description`, `Logo`, `Webpage`, `cpassword`) VALUES (7, 'CGS', 'Financial', '', '', NULL, ''), (28, 'VMI dxblol', '', '', '', NULL, ''), (29, 'VMI dxblolmama', '', '', '', NULL, ''), (30, 'VMI dxblolma', '', '', '', NULL, ''), (37, 'bab', '', '', '', NULL, ''), (39, 'Vvv', '', '', '', NULL, ''), (40, 'Custom Guitar Shop', 'Engineering', 'JEJEJEJJE funciona', '40C', 'www.orellanof.com', ''); Estructura de tabla para la tabla `Individual` CREATE TABLE IF NOT EXISTS `Individual` ( `pid` int(11) NOT NULL DEFAULT '0', `Name` varchar(25) NOT NULL, `Email` varchar(25) NOT NULL,
`Password` varchar(50) NOT NULL, PRIMARY KEY (`pid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; Volcado de datos para la tabla `Individual` INSERT INTO `Individual` (`pid`, `Name`, `Email`, `Password`) VALUES (38, 'nna', '', ''); Estructura de tabla para la tabla `Opportunity` CREATE TABLE IF NOT EXISTS `Opportunity` ( `oid` int(11) NOT NULL AUTO_INCREMENT, `pid` int(11) NOT NULL, `Location` varchar(50) NOT NULL, `Description` text NOT NULL, `otype` text NOT NULL, `Requirements` text, `Major` text NOT NULL, `Title` text NOT NULL, `Date` date NOT NULL, PRIMARY KEY (`oid`),
KEY `pid` (`pid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=122333 ; Volcado de datos para la tabla `Opportunity` INSERT INTO `Opportunity` (`oid`, `pid`, `Location`, `Description`, `otype`, `Requirements`, `Major`, `Title`, `Date`) VALUES (1, 1, '', '', '', NULL, '', '', '2012-11-06'), (122319, 19, '', '', 'Internship', 'Ser mamao', 'Engineering', 'Ricky sexy', '2012-11-16'), (122326, 40, '', 'a', 'Internship', 'a', 'Computer Engineering', 'ma', '2012-11-16'), (122332, 40, '', 'a', 'Co-op', 'a', 'Computer Engineering', 'ma', '2012-11-16'); Estructura de tabla para la tabla `OpportunityProvider` CREATE TABLE IF NOT EXISTS `OpportunityProvider` ( `pid` int(11) NOT NULL AUTO_INCREMENT, `cname` char(20) NOT NULL, `cpassword` varchar(50) NOT NULL, PRIMARY KEY (`pid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=41 ;
Volcado de datos para la tabla `OpportunityProvider` INSERT INTO `OpportunityProvider` (`pid`, `cname`, `cpassword`) VALUES (1, 'ICS Connect', ''), (2, 'ICS Connect', '123'), (4, 'x', 'xx'), (5, 'jkgkjgk', 'vv'), (6, 'x', ''), (7, 'b', ''), (11, 'ics', '123'), (12, 'ics', '12'), (13, 'momo', 'nini'), (14, 'x', 'b'), (15, 'gua', 'g'), (18, 'masillano@upr.edu', 'me'), (19, 'masilano@upr.edu', 'chi'), (21, 'CGS', 'manolo'), (28, 'VMI dxblol', 'd'), (29, 'VMI dxblolmama', 'ma'), (30, 'VMI dxblolma', 'x'), (37, 'bab', 'ba'), (38, 'nna', 'na'), (39, 'Vvv', 'v'), (40, 'Custom Guitar Shop', 'lespaul');
Estructura de tabla para la tabla `Sresume` CREATE TABLE IF NOT EXISTS `Sresume` ( `sid` int(11) NOT NULL DEFAULT '0', `ResumeLink` varchar(50) NOT NULL, PRIMARY KEY (`sid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; Volcado de datos para la tabla `Sresume` INSERT INTO `Sresume` (`sid`, `ResumeLink`) VALUES (14, '14'), (16, '16'); Estructura de tabla para la tabla `Student` CREATE TABLE IF NOT EXISTS `Student` ( `sid` int(11) NOT NULL AUTO_INCREMENT, `Name` varchar(50) NOT NULL, `Email` varchar(25) NOT NULL,
`GPA` float DEFAULT NULL, `Year` varchar(3) DEFAULT NULL, `Graduation` date DEFAULT NULL, `PictureLink` varchar(50) DEFAULT 'DEFAULT.jpg', `Password` varchar(50) NOT NULL, `Major` char(20) NOT NULL, PRIMARY KEY (`sid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=69 ; Volcado de datos para la tabla `Student` INSERT INTO `Student` (`sid`, `Name`, `Email`, `GPA`, `Year`, `Graduation`, `PictureLink`, `Password`, `Major`) VALUES (1, 'john', 'john@upr.edu', 2, '3', NULL, NULL, '1234', 'Engineering'), (14, 'Ricardo Marrero', 'ricardo.marrero3@upr.edu', 3, '5', NULL, '14', 'warcry', 'Engineering'), (16, 'Jose Orellano', 'j.orellano@ieee.org', 3.22, '5', '0000-00-00', '16', 'sdfghj', 'Computer Engineering'), (59, '', 'adalgisa.lopez@upr.edu', NULL, NULL, NULL, NULL, 'lamoca453', ''), (60, '', 'juan_23_896@hotmail.com', NULL, NULL, NULL, NULL, '11', ''), (63, '', 'jose.orellano@upr.edu', NULL, NULL, NULL, NULL, 'fofo', ''), (64, 'Arelis Guerrero', 'arelis.guerrero@upr.edu', 3.06, '5', '0000-00-00', NULL, 'joseanormal', 'ICOM'), (65, '', 'masillano@upr.edu', NULL, NULL, '2012-11-01', NULL, 'me', ''), (66, 'lissy', 'lissyorellano@hotmail.com', 3.75, '2', '0000-00-00', NULL, 'saterman1', 'homewrecker'), (67, '', 'MECASO@U.OM', NULL, NULL, NULL, 'DEFAULT.jpg', 'S', ''), (68, '', 'jose1.orellano@upr.edu', NULL, NULL, NULL, 'DEFAULT.jpg', 'jiji', '');
Restricciones para tablas volcadas Filtros para la tabla `Applies` ALTER TABLE `Applies` ADD CONSTRAINT `Applies_ibfk_1` FOREIGN KEY (`sid`) REFERENCES `Student` (`sid`), ADD CONSTRAINT `Applies_ibfk_2` FOREIGN KEY (`oid`) REFERENCES `Opportunity` (`oid`); Filtros para la tabla `Company` ALTER TABLE `Company` ADD CONSTRAINT `Company_ibfk_1` FOREIGN KEY (`pid`) REFERENCES `OpportunityProvider` (`pid`); Filtros para la tabla `Individual` ALTER TABLE `Individual` ADD CONSTRAINT `Individual_ibfk_1` FOREIGN KEY (`pid`) REFERENCES `OpportunityProvider` (`pid`); Filtros para la tabla `Opportunity` ALTER TABLE `Opportunity` ADD CONSTRAINT `Opportunity_ibfk_1` FOREIGN KEY (`pid`) REFERENCES `OpportunityProvider` (`pid`);
Filtros para la tabla `Sresume` ALTER TABLE `Sresume` ADD CONSTRAINT `Sresume_ibfk_1` FOREIGN KEY (`sid`) REFERENCES `Student` (`sid`) ON DELETE CASCADE; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; Source code: Download and installation instructions: To download the code, go to http://icom5016.ece.uprm.edu/~g3/ics%20connect.zip and after downloading it, unzip it in the server. This code does not need to be compiled, just save the public_html folder in the server and access it using a browser.