Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add db file and others.

  • Loading branch information...
commit c228a5ee45bc7370e885b5c39b0caf705e95ebab 2 parents ff0fd45 + b86a7a8
Rian Rainey authored
View
10 db/db_backup.sql
@@ -101,7 +101,7 @@ CREATE TABLE `scores` (
`trait_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
+) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -110,7 +110,7 @@ CREATE TABLE `scores` (
LOCK TABLES `scores` WRITE;
/*!40000 ALTER TABLE `scores` DISABLE KEYS */;
-INSERT INTO `scores` VALUES (1,10,1,1),(2,9,2,1),(3,8,3,1),(4,7,1,1);
+INSERT INTO `scores` VALUES (1,10,1,1),(2,9,2,1),(3,8,3,1),(4,7,1,1),(5,3,4,2),(6,4,1,2);
/*!40000 ALTER TABLE `scores` ENABLE KEYS */;
UNLOCK TABLES;
@@ -152,7 +152,7 @@ CREATE TABLE `users` (
`email` varchar(50) NOT NULL,
`role_id` int(10) DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
+) ENGINE=MyISAM AUTO_INCREMENT=25 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -161,7 +161,7 @@ CREATE TABLE `users` (
LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
-INSERT INTO `users` VALUES (1,'Rian','Rainey','rian@rianrainey.com',1),(2,'John','Smith','josh@john.com',2);
+INSERT INTO `users` VALUES (1,'Rian','Rainey','rian@rianrainey.com',1),(2,'John','Smith','josh@john.com',2),(3,'Steven','Brown','nostra.per@malesuadamalesuadaInteger.edu',1),(4,'Josh','Kulp','nascetur.ridiculus.mus@pharetraNamac.edu',2),(5,'Erik','Osmono','Aenean.eget.magna@Phasellusdolor.ca',1),(6,'Mark','Stansbury','risus.Morbi@Proinsed.com',2),(7,'Mary','Smith','Vestibulum.ut@at.com',1),(8,'Chris','Balzer','et.magna.Praesent@augueid.ca',2),(9,'Dave','Gillespi','magna.Praesent@auctor.edu',1),(10,'Dan','Rockwell','Pellentesque.ultricies@purussapiengravida.edu',2),(11,'Andrew','Jones','mi.eleifend.egestas@dictumplacerataugue.edu',1),(12,'Mike','Kroptavich','Donec.consectetuer@aliquetsem.edu',2),(13,'Vince','Smigiel','lorem.sit.amet@Fuscefermentumfermentum.com',1),(14,'Eric','Hurr','nunc@euduiCum.edu',2),(15,'Hillary','Corna','metus.sit.amet@vulputaterisusa.com',1),(16,'Steven','Gacha','facilisi.Sed.neque@pretiumaliquetmetus.edu',2),(17,'Matt ','Hill','ultricies.ligula.Nullam@malesuada.ca',1),(18,'Imanuel','Austiv','dui@lacusvarius.com',2),(19,'Carrie','Phillips','a.nunc@Nullam.edu',1),(20,'Phil','Jones','magna@sitametlorem.edu',2),(21,'Zach','Boerger','commodo@nibhlacinia.ca',1),(22,'Luiz','Nevas','mus.Proin.vel@nisl.edu',2),(23,'Suzy','Bureau','est@gravidanuncsed.edu',1),(24,'John','Bord','metus.urna@etcommodo.org',2);
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@@ -174,4 +174,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
--- Dump completed on 2011-10-09 15:25:56
+-- Dump completed on 2011-10-09 16:51:49
View
2  www/cakephp/app/config/core.php
@@ -33,7 +33,7 @@
* In production mode, flash messages redirect after a time interval.
* In development mode, you need to click the flash message to continue.
*/
- Configure::write('debug', 2);
+ Configure::write('debug', 0);
/**
* CakePHP Log Level:
View
5 www/cakephp/app/controllers/users_controller.php
@@ -128,7 +128,8 @@ function search ($id = null) {
//debug($a);
-
+
+ // debug($this->data);
//$this->loadModel('Trait');
//$scores = $this->Score->find('all');
@@ -136,9 +137,11 @@ function search ($id = null) {
//$this->Trait->Behaviors->attach('Containable'); // give me only Trait object
+
//$traits = $this->Trait->find('all', array(
//));
+ //$traits = $this->Trait->find('all', array());
// $sTraits = array();
// foreach ($traits as $trait) {
View
7 www/cakephp/app/views/users/find_applicant.ctp
@@ -1,4 +1,5 @@
<?php
+// debug($traits);
//debug($traits);
?>
@@ -6,10 +7,14 @@
<?php $html->script(array('jquery-ui-min.js'), array('inline' => false)); ?>
<?php $html->script(array('script.js'), array('inline' => false)); ?>
+<p id="traitListHeading"> Please rank the following traits as most important(#1) to least important(#4). </p>
+<div class="traits index noLeftB">
+ <ol id="sortable">
-<div class="traits index">
+<div class="traits index noLeftB">
<?php echo $this->Form->create('User', array('action' => 'search')); ?>
<ol id="sortable">
+
<?php foreach ($traits as $trait):
$i = 0;
$class = null;
View
1  www/cakephp/app/views/users/search.ctp
@@ -1,4 +1,5 @@
<?php
+// debug($users);
//debug($users);
?><div class="users index">
<h2><?php echo 'Qualified Applicants for' . ' ' . $users[0]['Trait']['name'];?></h2>
View
27 www/cakephp/app/webroot/css/cake.generic.css
@@ -543,9 +543,34 @@ div.code-coverage-results span.result-good {
display: none;
}
-/*********** Custom CSS ***************/
+
+/* ************** Added by Curtis *************** */
+
+p#traitListHeading {
+ margin-left: 340px;
+ font-size: 1.25em;
+ font-style: bold;
+}
+
+ol#sortable li{
+ margin-top: 1.3em;
+ margin-bottom: 1.3em;
+}
+
+div.noLeftB{
+ border-left: none;
+}
+
+
+
+
+
+
+
+/*********** Custom CSS ***************/
div.radio input[type=radio] {
display: inline;
float: none;
}
+
View
6 www/cakephp/cake/libs/view/layouts/default.ctp
@@ -49,12 +49,6 @@
</div>
<div id="footer">
- <?php echo $this->Html->link(
- $this->Html->image('cake.power.gif', array('alt'=> __('CakePHP: the rapid development php framework', true), 'border' => '0')),
- 'http://www.cakephp.org/',
- array('target' => '_blank', 'escape' => false)
- );
- ?>
</div>
</div>
<?php echo $this->Js->writeBuffer(); // Write cached scripts ?>
Please sign in to comment.
Something went wrong with that request. Please try again.