- Preparación para 1ª maqueta real
- Comienzo de capacidades de candidato git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_IntranetNueva/trunk@25 77cfc57b-8ef4-1849-9df6-4a38aa5da120
This commit is contained in:
parent
f3de19ae75
commit
93dfffa646
@ -62,3 +62,6 @@ span.timestamp {
|
||||
color: #006699;
|
||||
}
|
||||
|
||||
.disabled {
|
||||
color: #999;
|
||||
}
|
||||
@ -1,638 +0,0 @@
|
||||
/*
|
||||
* File: demo_table_jui.css
|
||||
* CVS: $Id$
|
||||
* Description: CSS descriptions for DataTables demo pages
|
||||
* Author: Allan Jardine
|
||||
* Created: Tue May 12 06:47:22 BST 2009
|
||||
* Modified: $Date$ by $Author$
|
||||
* Language: CSS
|
||||
* Project: DataTables
|
||||
*
|
||||
* Copyright 2009 Allan Jardine. All Rights Reserved.
|
||||
*
|
||||
* ***************************************************************************
|
||||
* DESCRIPTION
|
||||
*
|
||||
* The styles given here are suitable for the demos that are used with the standard DataTables
|
||||
* distribution (see www.datatables.net). You will most likely wish to modify these styles to
|
||||
* meet the layout requirements of your site.
|
||||
*
|
||||
* Common issues:
|
||||
* 'full_numbers' pagination - I use an extra selector on the body tag to ensure that there is
|
||||
* no conflict between the two pagination types. If you want to use full_numbers pagination
|
||||
* ensure that you either have "example_alt_pagination" as a body class name, or better yet,
|
||||
* modify that selector.
|
||||
* Note that the path used for Images is relative. All images are by default located in
|
||||
* ../images/ - relative to this CSS file.
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* jQuery UI specific styling
|
||||
*/
|
||||
|
||||
/*.paging_two_button .ui-button {
|
||||
float: left;
|
||||
cursor: pointer;
|
||||
* cursor: hand;
|
||||
}*/
|
||||
|
||||
/*.paging_full_numbers .ui-button {
|
||||
padding: 2px 6px;
|
||||
margin: 0;
|
||||
cursor: pointer;
|
||||
* cursor: hand;
|
||||
color: #333 !important;
|
||||
}*/
|
||||
|
||||
/*.dataTables_paginate .ui-button {
|
||||
margin-right: -0.1em !important;
|
||||
}
|
||||
|
||||
.paging_full_numbers {
|
||||
width: 350px !important;
|
||||
}*/
|
||||
|
||||
.dataTables_wrapper .ui-toolbar {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
/*.dataTables_paginate {
|
||||
width: auto;
|
||||
}*/
|
||||
|
||||
.dataTables_info {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
table.display thead th {
|
||||
padding: 3px 0px 3px 10px;
|
||||
cursor: pointer;
|
||||
* cursor: hand;
|
||||
}
|
||||
|
||||
div.dataTables_wrapper .ui-widget-header {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Sort arrow icon positioning
|
||||
*/
|
||||
table.display thead th div.DataTables_sort_wrapper {
|
||||
position: relative;
|
||||
padding-right: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
table.display thead th div.DataTables_sort_wrapper span {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
margin-top: -8px;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
*
|
||||
* Everything below this line is the same as demo_table.css. This file is
|
||||
* required for 'cleanliness' of the markup
|
||||
*
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
|
||||
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* DataTables features
|
||||
*/
|
||||
|
||||
.dataTables_wrapper {
|
||||
background: url("../images/thead.png") repeat-x scroll left top #EEEEEE;
|
||||
border: 1px solid #CCCCCC;
|
||||
border-radius: 3px 3px 3px 3px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.dataTables_processing {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 50%;
|
||||
width: 250px;
|
||||
margin-left: -125px;
|
||||
border: 1px solid #ddd;
|
||||
text-align: center;
|
||||
color: #999;
|
||||
font-size: 11px;
|
||||
padding: 2px 0;
|
||||
}
|
||||
|
||||
.dataTables_length {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.dataTables_toolbar {
|
||||
width: auto;
|
||||
margin-left: 2em;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.dataTables_filter {
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
top: 11px;
|
||||
}
|
||||
|
||||
.dataTables_info {
|
||||
|
||||
}
|
||||
|
||||
.dataTables_paginate {
|
||||
bottom: 7px;
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
}
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* Pagination
|
||||
*/
|
||||
|
||||
.paging_full_numbers {
|
||||
position: absolute;
|
||||
bottom: 7px;
|
||||
right: 8px;
|
||||
}
|
||||
|
||||
.paging_full_numbers .ui-button {
|
||||
display: inline-block;
|
||||
padding: 2px 8px;
|
||||
border: 1px solid #ccc;
|
||||
margin-left: 5px;
|
||||
background: #eee url(../images/buttonbg5.png) repeat-x top left;
|
||||
cursor: pointer;
|
||||
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
|
||||
}
|
||||
|
||||
.paging_full_numbers .ui-button:hover {
|
||||
background: #eee;
|
||||
-moz-box-shadow: inset 1px 1px 2px #ccc; -webkit-box-shadow: inset 1px 1px 2px #ccc;
|
||||
box-shadow: inset 1px 1px 2px #ccc;
|
||||
}
|
||||
|
||||
.paging_full_numbers .paginate_active, .paging_full_numbers .ui-button:active {
|
||||
display: inline-block; padding: 2px 8px; border: 1px solid #405A87; margin-left: 5px;
|
||||
background: #405A87 url(../images/buttonbg3.png) repeat-x top left; color: #fff;
|
||||
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
|
||||
}
|
||||
|
||||
.paging_full_numbers .ui-state-disabled {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
|
||||
.paginate_disabled_previous, .paginate_enabled_previous, .paginate_disabled_next, .paginate_enabled_next {
|
||||
height: 19px;
|
||||
width: 19px;
|
||||
margin-left: 3px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.paginate_disabled_previous {
|
||||
background-image: url('../images/back_disabled.jpg');
|
||||
}
|
||||
|
||||
.paginate_enabled_previous {
|
||||
background-image: url('../images/back_enabled.jpg');
|
||||
}
|
||||
|
||||
.paginate_disabled_next {
|
||||
background-image: url('../images/forward_disabled.jpg');
|
||||
}
|
||||
|
||||
.paginate_enabled_next {
|
||||
background-image: url('../images/forward_enabled.jpg');
|
||||
}
|
||||
|
||||
.paging_full_numbers a.paginate_button,
|
||||
.paging_full_numbers a.paginate_active {
|
||||
border: 1px solid #aaa;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
padding: 2px 5px;
|
||||
margin: 0 3px;
|
||||
cursor: pointer;
|
||||
*cursor: hand;
|
||||
color: #333 !important;
|
||||
}
|
||||
|
||||
.paging_full_numbers a.paginate_button {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
.paging_full_numbers a.paginate_button:hover {
|
||||
background-color: #ccc;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.paging_full_numbers a.paginate_active {
|
||||
background-color: #99B3FF;
|
||||
}
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* DataTables display
|
||||
*/
|
||||
table.display {
|
||||
width: 100%;
|
||||
background: #fcfcfc;
|
||||
border-collapse: collapse;
|
||||
border: none;
|
||||
margin: 0 auto;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
table.display thead th, table.display tfoot td {
|
||||
padding: 5px 10px;
|
||||
color: #fff;
|
||||
font-weight: normal;
|
||||
text-align: left;
|
||||
background-color: #666;
|
||||
}
|
||||
|
||||
table.display thead th a, table.display tfoot td a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
table.display tr.heading2 td {
|
||||
border-bottom: 1px solid #aaa;
|
||||
}
|
||||
|
||||
table.display tr:first-child td {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
table.display tr td {
|
||||
padding: 5px 10px;
|
||||
border-top: 1px solid #ddd;
|
||||
}
|
||||
|
||||
table.display td.center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* DataTables sorting
|
||||
*/
|
||||
|
||||
.sorting_asc {
|
||||
background-image: url(../images/sort_asc.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 6px;
|
||||
}
|
||||
|
||||
.sorting_desc {
|
||||
background-image: url(../images/sort_desc.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 6px;
|
||||
}
|
||||
|
||||
.sorting {
|
||||
background-image: url(../images/sort_both.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 5px;
|
||||
}
|
||||
|
||||
.sorting_asc_disabled {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.sorting_desc_disabled {
|
||||
background: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* DataTables row classes
|
||||
*/
|
||||
table.display tr.odd.gradeA {
|
||||
background-color: #ddffdd;
|
||||
}
|
||||
|
||||
table.display tr.even.gradeA {
|
||||
background-color: #eeffee;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
table.display tr.odd.gradeA {
|
||||
background-color: #ddffdd;
|
||||
}
|
||||
|
||||
table.display tr.even.gradeA {
|
||||
background-color: #eeffee;
|
||||
}
|
||||
|
||||
table.display tr.odd.gradeC {
|
||||
background-color: #ddddff;
|
||||
}
|
||||
|
||||
table.display tr.even.gradeC {
|
||||
background-color: #eeeeff;
|
||||
}
|
||||
|
||||
table.display tr.odd.gradeX {
|
||||
background-color: #ffdddd;
|
||||
}
|
||||
|
||||
table.display tr.even.gradeX {
|
||||
background-color: #ffeeee;
|
||||
}
|
||||
|
||||
table.display tr.odd.gradeU {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
table.display tr.even.gradeU {
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
|
||||
tr.odd {
|
||||
|
||||
}
|
||||
|
||||
tr.even {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* Misc
|
||||
*/
|
||||
.dataTables_scroll {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.top, .bottom {
|
||||
padding: 15px;
|
||||
background-color: #F5F5F5;
|
||||
border: 1px solid #CCCCCC;
|
||||
}
|
||||
|
||||
.top .dataTables_info {
|
||||
float: none;
|
||||
}
|
||||
|
||||
.dataTables_empty {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
tfoot input {
|
||||
margin: 0.5em 0;
|
||||
width: 100%;
|
||||
color: #444;
|
||||
}
|
||||
|
||||
tfoot input.search_init {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
td.group {
|
||||
background-color: #d1cfd0;
|
||||
border-bottom: 2px solid #A19B9E;
|
||||
border-top: 2px solid #A19B9E;
|
||||
}
|
||||
|
||||
td.details {
|
||||
background-color: #d1cfd0;
|
||||
border: 2px solid #A19B9E;
|
||||
}
|
||||
|
||||
|
||||
.example_alt_pagination div.dataTables_info {
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
table.display tr.even.row_selected td {
|
||||
background-color: #B0BED9;
|
||||
}
|
||||
|
||||
table.display tr.odd.row_selected td {
|
||||
background-color: #9FAFD1;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Sorting classes for columns
|
||||
*/
|
||||
/* For the standard odd/even */
|
||||
tr.odd td.sorting_1 {
|
||||
background: #f7f7f7;
|
||||
}
|
||||
|
||||
tr.odd td.sorting_2 {
|
||||
background: #f7f7f7;
|
||||
}
|
||||
|
||||
tr.odd td.sorting_3 {
|
||||
background: #f7f7f7;
|
||||
}
|
||||
|
||||
tr.even td.sorting_1 {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
tr.even td.sorting_2 {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
tr.even td.sorting_3 {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
|
||||
/* For the Conditional-CSS grading rows */
|
||||
/*
|
||||
Colour calculations (based off the main row colours)
|
||||
Level 1:
|
||||
dd > c4
|
||||
ee > d5
|
||||
Level 2:
|
||||
dd > d1
|
||||
ee > e2
|
||||
*/
|
||||
tr.odd.gradeA td.sorting_1 {
|
||||
background-color: #c4ffc4;
|
||||
}
|
||||
|
||||
tr.odd.gradeA td.sorting_2 {
|
||||
background-color: #d1ffd1;
|
||||
}
|
||||
|
||||
tr.odd.gradeA td.sorting_3 {
|
||||
background-color: #d1ffd1;
|
||||
}
|
||||
|
||||
tr.even.gradeA td.sorting_1 {
|
||||
background-color: #d5ffd5;
|
||||
}
|
||||
|
||||
tr.even.gradeA td.sorting_2 {
|
||||
background-color: #e2ffe2;
|
||||
}
|
||||
|
||||
tr.even.gradeA td.sorting_3 {
|
||||
background-color: #e2ffe2;
|
||||
}
|
||||
|
||||
tr.odd.gradeC td.sorting_1 {
|
||||
background-color: #c4c4ff;
|
||||
}
|
||||
|
||||
tr.odd.gradeC td.sorting_2 {
|
||||
background-color: #d1d1ff;
|
||||
}
|
||||
|
||||
tr.odd.gradeC td.sorting_3 {
|
||||
background-color: #d1d1ff;
|
||||
}
|
||||
|
||||
tr.even.gradeC td.sorting_1 {
|
||||
background-color: #d5d5ff;
|
||||
}
|
||||
|
||||
tr.even.gradeC td.sorting_2 {
|
||||
background-color: #e2e2ff;
|
||||
}
|
||||
|
||||
tr.even.gradeC td.sorting_3 {
|
||||
background-color: #e2e2ff;
|
||||
}
|
||||
|
||||
tr.odd.gradeX td.sorting_1 {
|
||||
background-color: #ffc4c4;
|
||||
}
|
||||
|
||||
tr.odd.gradeX td.sorting_2 {
|
||||
background-color: #ffd1d1;
|
||||
}
|
||||
|
||||
tr.odd.gradeX td.sorting_3 {
|
||||
background-color: #ffd1d1;
|
||||
}
|
||||
|
||||
tr.even.gradeX td.sorting_1 {
|
||||
background-color: #ffd5d5;
|
||||
}
|
||||
|
||||
tr.even.gradeX td.sorting_2 {
|
||||
background-color: #ffe2e2;
|
||||
}
|
||||
|
||||
tr.even.gradeX td.sorting_3 {
|
||||
background-color: #ffe2e2;
|
||||
}
|
||||
|
||||
tr.odd.gradeU td.sorting_1 {
|
||||
background-color: #c4c4c4;
|
||||
}
|
||||
|
||||
tr.odd.gradeU td.sorting_2 {
|
||||
background-color: #d1d1d1;
|
||||
}
|
||||
|
||||
tr.odd.gradeU td.sorting_3 {
|
||||
background-color: #d1d1d1;
|
||||
}
|
||||
|
||||
tr.even.gradeU td.sorting_1 {
|
||||
background-color: #d5d5d5;
|
||||
}
|
||||
|
||||
tr.even.gradeU td.sorting_2 {
|
||||
background-color: #e2e2e2;
|
||||
}
|
||||
|
||||
tr.even.gradeU td.sorting_3 {
|
||||
background-color: #e2e2e2;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Row highlighting example
|
||||
*/
|
||||
.ex_highlight #example tbody tr.even:hover, #example tbody tr.even td.highlighted {
|
||||
background-color: #ECFFB3;
|
||||
}
|
||||
|
||||
.ex_highlight #example tbody tr.odd:hover, #example tbody tr.odd td.highlighted {
|
||||
background-color: #E6FF99;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.dataTables_wrapper label {
|
||||
display: inline-block;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
/** paginacion **/
|
||||
/*
|
||||
.paging_full_numbers .paginate_button:hover {
|
||||
background: #eee; -moz-box-shadow: inset 1px 1px 2px #ccc; -webkit-box-shadow: inset 1px 1px 2px #ccc;
|
||||
box-shadow: inset 1px 1px 2px #ccc;
|
||||
}
|
||||
.paging_full_numbers .paginate_active, .paging_full_numbers .paginate_button:active {
|
||||
display: inline-block; padding: 2px 8px; border: 1px solid #405A87; margin-left: 5px;
|
||||
background: #405A87 url(../images/buttonbg3.png) repeat-x top left; color: #fff;
|
||||
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
|
||||
}
|
||||
.paging_full_numbers .paginate_button_disabled { color: #999; }*/
|
||||
|
||||
|
||||
/*.grid-view label { display: inline-block; margin-right: 5px; }*/
|
||||
/*.items { }
|
||||
.items thead th, .items tfoot td { }
|
||||
.items thead th a, .items tfoot td a { }
|
||||
.items thead th, .items tfoot td { }
|
||||
.items thead th.head0, .items tfoot td.head0 { background: #666; }
|
||||
.items thead th.head1, .items tfoot td.head1 { background: #555; }
|
||||
.items tbody tr td { }
|
||||
.items tbody tr:first-child td { }
|
||||
.items .con1 { background: #eee; }
|
||||
.items .con0 { background: #f7f7f7; }
|
||||
.items .odd { }
|
||||
.items .even { }
|
||||
.items thead th.sorting { }
|
||||
.items thead th.sorting_asc { }
|
||||
.items thead th.sorting_desc { }*/
|
||||
|
||||
/*.summary { padding: 10px; }*/
|
||||
@ -283,10 +283,11 @@ tfoot input {
|
||||
margin: 0.5em 0;
|
||||
width: 100%;
|
||||
color: #444;
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
tfoot input.search_init {
|
||||
color: #999;
|
||||
tfoot td:last-child input {
|
||||
width: 97%;
|
||||
}
|
||||
|
||||
td.group {
|
||||
|
||||
@ -454,27 +454,6 @@ input[type=radio], input[type=checkbox] { margin: 0; padding: 0; vertical-align:
|
||||
.sTable3 tbody tr td { padding: 10px; background: #fff; border-top: 1px solid #eee; border-left: 1px solid #eee; }
|
||||
.sTable3 tbody tr.even td { background: #fcfcfc; }
|
||||
|
||||
/**dynamic table***/
|
||||
/*.dataTables_wrapper { border: 1px solid #ccc; background: #eee url(../images/thead.png) repeat-x top left;
|
||||
-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; position: relative; }
|
||||
.dataTables_filter { position: absolute; top: 11px; right: 5px; }
|
||||
.dataTables_length { padding: 10px 10px; }
|
||||
.dataTables_wrapper label { display: inline-block; margin-right: 5px; }
|
||||
.dyntable { width: 100%; background: #fcfcfc; }
|
||||
.dyntable thead th, .dyntable tfoot th { padding: 5px 10px; color: #fff; font-weight: normal; text-align: left; }
|
||||
.dyntable thead th.head0, .dyntable tfoot th.head0 { background: #666; }
|
||||
.dyntable thead th.head1, .dyntable tfoot th.head1 { background: #555; }
|
||||
.dyntable tbody tr td { padding: 5px 10px; border-top: 1px solid #ddd; }
|
||||
.dyntable tbody tr:first-child td { border-top: 0; }
|
||||
.dyntable .con1 { background: #eee; }
|
||||
.dyntable .con0 { background: #f7f7f7; }
|
||||
.dyntable thead th.sorting { background-image: url(../images/sort_both.png); background-repeat: no-repeat; background-position: right 5px; }
|
||||
.dyntable thead th.sorting_asc { background-image: url(../images/sort_asc.png); background-repeat: no-repeat; background-position: right 6px; }
|
||||
.dyntable thead th.sorting_desc { background-image: url(../images/sort_desc.png); background-repeat: no-repeat; background-position: right 6px; }
|
||||
|
||||
.dataTables_info { padding: 10px; }*/
|
||||
|
||||
|
||||
/***PAGINATION (users.html)***/
|
||||
.pagination a { display: inline-block; padding: 5px 10px; color: #333; border: 1px solid #bbb; background: url(../images/buttonbg5.png) repeat-x bottom left; }
|
||||
.pagination a { -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }
|
||||
|
||||
@ -47,7 +47,7 @@ return array(
|
||||
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
|
||||
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
|
||||
),
|
||||
),
|
||||
),
|
||||
'db'=>array(
|
||||
'connectionString' => 'mysql:host=localhost;dbname=intranet_dev',
|
||||
'emulatePrepare' => true,
|
||||
|
||||
176
www/protected/controllers/CandidatoCapacidadController.php
Normal file
176
www/protected/controllers/CandidatoCapacidadController.php
Normal file
@ -0,0 +1,176 @@
|
||||
<?php
|
||||
|
||||
class CandidatoCapacidadController extends Controller
|
||||
{
|
||||
/**
|
||||
* @var string the default layout for the views. Defaults to '//layouts/column2', meaning
|
||||
* using two-column layout. See 'protected/views/layouts/column2.php'.
|
||||
*/
|
||||
public $layout='//layouts/column2';
|
||||
|
||||
/**
|
||||
* @return array action filters
|
||||
*/
|
||||
public function filters()
|
||||
{
|
||||
return array(
|
||||
'accessControl', // perform access control for CRUD operations
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Specifies the access control rules.
|
||||
* This method is used by the 'accessControl' filter.
|
||||
* @return array access control rules
|
||||
*/
|
||||
public function accessRules()
|
||||
{
|
||||
return array(
|
||||
array('allow', // allow all users to perform 'index' and 'view' actions
|
||||
'actions'=>array('index','view'),
|
||||
'users'=>array('*'),
|
||||
),
|
||||
array('allow', // allow authenticated user to perform 'create' and 'update' actions
|
||||
'actions'=>array('create','update'),
|
||||
'users'=>array('@'),
|
||||
),
|
||||
array('allow', // allow admin user to perform 'admin' and 'delete' actions
|
||||
'actions'=>array('admin','delete'),
|
||||
'users'=>array('admin'),
|
||||
),
|
||||
array('deny', // deny all users
|
||||
'users'=>array('*'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays a particular model.
|
||||
* @param integer $id the ID of the model to be displayed
|
||||
*/
|
||||
public function actionView($id)
|
||||
{
|
||||
$this->render('view',array(
|
||||
'model'=>$this->loadModel($id),
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new model.
|
||||
* If creation is successful, the browser will be redirected to the 'view' page.
|
||||
*/
|
||||
public function actionCreate()
|
||||
{
|
||||
$model=new CandidatoCapacidad;
|
||||
|
||||
// Uncomment the following line if AJAX validation is needed
|
||||
// $this->performAjaxValidation($model);
|
||||
|
||||
if(isset($_POST['CandidatoCapacidad']))
|
||||
{
|
||||
$model->attributes=$_POST['CandidatoCapacidad'];
|
||||
if($model->save())
|
||||
$this->redirect(array('view','id'=>$model->id));
|
||||
}
|
||||
|
||||
$this->render('create',array(
|
||||
'model'=>$model,
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates a particular model.
|
||||
* If update is successful, the browser will be redirected to the 'view' page.
|
||||
* @param integer $id the ID of the model to be updated
|
||||
*/
|
||||
public function actionUpdate($id)
|
||||
{
|
||||
$model=$this->loadModel($id);
|
||||
|
||||
// Uncomment the following line if AJAX validation is needed
|
||||
// $this->performAjaxValidation($model);
|
||||
|
||||
if(isset($_POST['CandidatoCapacidad']))
|
||||
{
|
||||
$model->attributes=$_POST['CandidatoCapacidad'];
|
||||
if($model->save())
|
||||
$this->redirect(array('view','id'=>$model->id));
|
||||
}
|
||||
|
||||
$this->render('update',array(
|
||||
'model'=>$model,
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes a particular model.
|
||||
* If deletion is successful, the browser will be redirected to the 'admin' page.
|
||||
* @param integer $id the ID of the model to be deleted
|
||||
*/
|
||||
public function actionDelete($id)
|
||||
{
|
||||
if(Yii::app()->request->isPostRequest)
|
||||
{
|
||||
// we only allow deletion via POST request
|
||||
$this->loadModel($id)->delete();
|
||||
|
||||
// if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser
|
||||
if(!isset($_GET['ajax']))
|
||||
$this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
|
||||
}
|
||||
else
|
||||
throw new CHttpException(400,'Invalid request. Please do not repeat this request again.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists all models.
|
||||
*/
|
||||
public function actionIndex()
|
||||
{
|
||||
$dataProvider=new CActiveDataProvider('CandidatoCapacidad');
|
||||
$this->render('index',array(
|
||||
'dataProvider'=>$dataProvider,
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* Manages all models.
|
||||
*/
|
||||
public function actionAdmin()
|
||||
{
|
||||
$model=new CandidatoCapacidad('search');
|
||||
$model->unsetAttributes(); // clear any default values
|
||||
if(isset($_GET['CandidatoCapacidad']))
|
||||
$model->attributes=$_GET['CandidatoCapacidad'];
|
||||
|
||||
$this->render('admin',array(
|
||||
'model'=>$model,
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the data model based on the primary key given in the GET variable.
|
||||
* If the data model is not found, an HTTP exception will be raised.
|
||||
* @param integer the ID of the model to be loaded
|
||||
*/
|
||||
public function loadModel($id)
|
||||
{
|
||||
$model=CandidatoCapacidad::model()->findByPk($id);
|
||||
if($model===null)
|
||||
throw new CHttpException(404,'The requested page does not exist.');
|
||||
return $model;
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs the AJAX validation.
|
||||
* @param CModel the model to be validated
|
||||
*/
|
||||
protected function performAjaxValidation($model)
|
||||
{
|
||||
if(isset($_POST['ajax']) && $_POST['ajax']==='candidato-capacidad-form')
|
||||
{
|
||||
echo CActiveForm::validate($model);
|
||||
Yii::app()->end();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -280,6 +280,7 @@ class CandidatoController extends Controller
|
||||
|
||||
/**
|
||||
* Lists all models.
|
||||
*
|
||||
*/
|
||||
public function actionIndex()
|
||||
{
|
||||
|
||||
@ -69,7 +69,8 @@ class SiteController extends Controller
|
||||
{
|
||||
// renders the view file 'protected/views/site/index.php'
|
||||
// using the default layout 'protected/views/layouts/main.php'
|
||||
$this->render('tablero');
|
||||
$this->layout = 'tablero';
|
||||
$this->render('tablero');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
Yii::import('zii.widgets.grid.CGridView');
|
||||
Yii::import('zii.widgets.grid.CCheckBoxColumn');
|
||||
|
||||
/**
|
||||
* SelGridView v1.1
|
||||
@ -21,7 +22,15 @@ Yii::import('zii.widgets.grid.CGridView');
|
||||
* ));
|
||||
* </pre>
|
||||
*/
|
||||
|
||||
|
||||
class SelCheckboxColumn extends CCheckBoxColumn
|
||||
{
|
||||
public function renderFilterCell()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
class SelGridView extends CGridView
|
||||
{
|
||||
/**
|
||||
@ -59,10 +68,11 @@ class SelGridView extends CGridView
|
||||
}
|
||||
|
||||
//creating hidden checkbox column
|
||||
$checkboxColumn = new CCheckBoxColumn($this);
|
||||
$checkboxColumn = new SelCheckboxColumn($this);
|
||||
$checkboxColumn->checked = 'isset($_GET["'.$this->selVar.'"]) ? in_array('.$primaryKey.', is_array($_GET["'.$this->selVar.'"]) ? $_GET["'.$this->selVar.'"] : array($_GET["'.$this->selVar.'"])) : false;';
|
||||
$checkboxColumn->htmlOptions = array('style'=>'display:none');
|
||||
$checkboxColumn->headerHtmlOptions = array('style'=>'display:none');
|
||||
$checkboxColumn->footerHtmlOptions = array('style'=>'display:none');
|
||||
$checkboxColumn->init();
|
||||
|
||||
$this->columns[] = $checkboxColumn;
|
||||
|
||||
@ -19,6 +19,7 @@
|
||||
* @version $Id: $
|
||||
*/
|
||||
return array (
|
||||
'Búsqueda avanzada' => '',
|
||||
'Candidatos' => '',
|
||||
'Gestión de candidatos' => '',
|
||||
'Gestión de usuarios' => '',
|
||||
@ -26,9 +27,11 @@ return array (
|
||||
'Modificar usuario' => '',
|
||||
'Modificar usuario ' => '',
|
||||
'No hay candidatos' => '',
|
||||
'No hay usuarios' => '',
|
||||
'Nuevo usuario' => '',
|
||||
'Ofertas' => '',
|
||||
'Preferencias' => '',
|
||||
'Search' => 'Buscar',
|
||||
'Sistema' => '',
|
||||
'Solicitudes de oferta' => '',
|
||||
'Tablero' => '',
|
||||
|
||||
@ -1,57 +0,0 @@
|
||||
<?php
|
||||
|
||||
class m120130_120941_tbl_candidatos_capacidades extends CDbMigration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$this->createTable('tbl_candidatos_capacidades', array(
|
||||
'id' => 'pk',
|
||||
'candidato_id' => 'integer NOT NULL',
|
||||
'perfil_tecnico_id' => 'integer NOT NULL',
|
||||
'meses_perfil_tecnico' => 'integer',
|
||||
'perfil_funcional_id' => 'integer NOT NULL',
|
||||
'meses_perfil_funcional' => 'integer',
|
||||
'observaciones' => 'text',
|
||||
));
|
||||
|
||||
$this->addForeignKey('fk_candidatos_capacidades_1', 'tbl_candidatos_capacidades', 'candidato_id', 'tbl_candidatos', 'id', 'CASCADE', 'CASCADE');
|
||||
$this->addForeignKey('fk_candidatos_capacidades_2', 'tbl_candidatos_capacidades', 'perfil_tecnico_id', 'tbl_perfiles_tecnicos', 'id', 'CASCADE', 'RESTRICT');
|
||||
$this->addForeignKey('fk_candidatos_capacidades_3', 'tbl_candidatos_capacidades', 'perfil_funcional_id', 'tbl_perfiles_funcionales', 'id', 'CASCADE', 'RESTRICT');
|
||||
|
||||
|
||||
$this->createTable('tbl_candidatos_capacidades_tecnologias', array(
|
||||
'id' => 'pk',
|
||||
'capacidad_id' => 'integer NOT NULL',
|
||||
'tecnologia_id' => 'integer NOT NULL',
|
||||
'meses_tecnologia' => 'integer',
|
||||
));
|
||||
|
||||
$this->addForeignKey('tbl_candidatos_capacidades_tecnologias_1', 'tbl_candidatos_capacidades_tecnologias', 'capacidad_id', 'tbl_candidatos_capacidades', 'id', 'CASCADE', 'CASCADE');
|
||||
$this->addForeignKey('tbl_candidatos_capacidades_tecnologias_2', 'tbl_candidatos_capacidades_tecnologias', 'tecnologia_id', 'tbl_tecnologias', 'id', 'CASCADE', 'RESTRICT');
|
||||
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
|
||||
$this->dropForeignKey('tbl_candidatos_capacidades_tecnologias_2', 'tbl_candidatos_capacidades_tecnologias');
|
||||
$this->dropForeignKey('tbl_candidatos_capacidades_tecnologias_1', 'tbl_candidatos_capacidades_tecnologias');
|
||||
$this->dropTable('tbl_candidatos_capacidades_tecnologias');
|
||||
|
||||
$this->dropForeignKey('fk_candidatos_capacidades_3', 'tbl_candidatos_capacidades');
|
||||
$this->dropForeignKey('fk_candidatos_capacidades_2', 'tbl_candidatos_capacidades');
|
||||
$this->dropForeignKey('fk_candidatos_capacidades_1', 'tbl_candidatos_capacidades');
|
||||
$this->dropTable('tbl_candidatos_capacidades');
|
||||
}
|
||||
|
||||
/*
|
||||
// Use safeUp/safeDown to do migration with transaction
|
||||
public function safeUp()
|
||||
{
|
||||
}
|
||||
|
||||
public function safeDown()
|
||||
{
|
||||
}
|
||||
*/
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
class m120306_173556_tbl_candidatos_capacidades extends CDbMigration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$this->createTable('tbl_candidatos_capacidades', array(
|
||||
'id' => 'pk',
|
||||
'candidato_id' => 'integer NOT NULL',
|
||||
'perfil_tecnico_id' => 'integer NOT NULL',
|
||||
'meses_perfil_tecnico' => 'integer',
|
||||
'observaciones' => 'text',
|
||||
));
|
||||
|
||||
$this->addForeignKey('fk_candidatos_capacidades_1', 'tbl_candidatos_capacidades', 'candidato_id', 'tbl_candidatos', 'id', 'CASCADE', 'CASCADE');
|
||||
$this->addForeignKey('fk_candidatos_capacidades_2', 'tbl_candidatos_capacidades', 'perfil_tecnico_id', 'tbl_perfiles_tecnicos', 'id', 'CASCADE', 'RESTRICT');
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->dropForeignKey('fk_candidatos_capacidades_2', 'tbl_candidatos_capacidades');
|
||||
$this->dropForeignKey('fk_candidatos_capacidades_1', 'tbl_candidatos_capacidades');
|
||||
$this->dropTable('tbl_candidatos_capacidades');
|
||||
}
|
||||
|
||||
/*
|
||||
// Use safeUp/safeDown to do migration with transaction
|
||||
public function safeUp()
|
||||
{
|
||||
}
|
||||
|
||||
public function safeDown()
|
||||
{
|
||||
}
|
||||
*/
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
class m120306_174330_tbl_candidatos_capacidades_funcionales extends CDbMigration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$this->createTable('tbl_candidatos_capacidades_funcionales', array(
|
||||
'id' => 'pk',
|
||||
'capacidad_id' => 'integer NOT NULL',
|
||||
'funcional_id' => 'integer NOT NULL',
|
||||
'meses_funcional' => 'integer',
|
||||
));
|
||||
|
||||
$this->addForeignKey('tbl_candidatos_capacidades_funcionales_1', 'tbl_candidatos_capacidades_funcionales', 'capacidad_id', 'tbl_candidatos_capacidades', 'id', 'CASCADE', 'CASCADE');
|
||||
$this->addForeignKey('tbl_candidatos_capacidades_funcionales_2', 'tbl_candidatos_capacidades_funcionales', 'funcional_id', 'tbl_perfiles_funcionales', 'id', 'CASCADE', 'RESTRICT');
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->dropForeignKey('tbl_candidatos_capacidades_funcionales_2', 'tbl_candidatos_capacidades_funcionales');
|
||||
$this->dropForeignKey('tbl_candidatos_capacidades_funcionales_1', 'tbl_candidatos_capacidades_funcionales');
|
||||
$this->dropTable('tbl_candidatos_capacidades_funcionales');
|
||||
}
|
||||
|
||||
/*
|
||||
// Use safeUp/safeDown to do migration with transaction
|
||||
public function safeUp()
|
||||
{
|
||||
}
|
||||
|
||||
public function safeDown()
|
||||
{
|
||||
}
|
||||
*/
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
class m120306_174413_tbl_candidatos_capacidades_tecnologias extends CDbMigration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$this->createTable('tbl_candidatos_capacidades_tecnologias', array(
|
||||
'id' => 'pk',
|
||||
'capacidad_id' => 'integer NOT NULL',
|
||||
'tecnologia_id' => 'integer NOT NULL',
|
||||
'meses_tecnologia' => 'integer',
|
||||
));
|
||||
|
||||
$this->addForeignKey('tbl_candidatos_capacidades_tecnologias_1', 'tbl_candidatos_capacidades_tecnologias', 'capacidad_id', 'tbl_candidatos_capacidades', 'id', 'CASCADE', 'CASCADE');
|
||||
$this->addForeignKey('tbl_candidatos_capacidades_tecnologias_2', 'tbl_candidatos_capacidades_tecnologias', 'tecnologia_id', 'tbl_tecnologias', 'id', 'CASCADE', 'RESTRICT');
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->dropForeignKey('tbl_candidatos_capacidades_tecnologias_2', 'tbl_candidatos_capacidades_tecnologias');
|
||||
$this->dropForeignKey('tbl_candidatos_capacidades_tecnologias_1', 'tbl_candidatos_capacidades_tecnologias');
|
||||
$this->dropTable('tbl_candidatos_capacidades_tecnologias');
|
||||
}
|
||||
|
||||
/*
|
||||
// Use safeUp/safeDown to do migration with transaction
|
||||
public function safeUp()
|
||||
{
|
||||
}
|
||||
|
||||
public function safeDown()
|
||||
{
|
||||
}
|
||||
*/
|
||||
}
|
||||
@ -21,8 +21,9 @@
|
||||
* @property integer $usuario_modificacion
|
||||
*
|
||||
* The followings are the available model relations:
|
||||
* @property CapacidadProfesional[] $capacidades
|
||||
* @property CandidatoCapacidad[] $capacidades
|
||||
* @property CandidatoIdioma[] $idiomas
|
||||
* @property CandidatoTitulacion[] $titulaciones
|
||||
*/
|
||||
class Candidato extends CActiveRecord
|
||||
{
|
||||
@ -121,9 +122,11 @@ class Candidato extends CActiveRecord
|
||||
// NOTE: you may need to adjust the relation name and the related
|
||||
// class name for the relations automatically generated below.
|
||||
return array(
|
||||
'capacidades' => array(self::HAS_MANY, 'CapacidadProfesional', 'candidato_id'),
|
||||
'capacidades' => array(self::HAS_MANY, 'CandidatoCapacidad', 'candidato_id'),
|
||||
'idiomas' => array(self::HAS_MANY, 'CandidatoIdioma', 'candidato_id'),
|
||||
'idiomasCount' => array(self::STAT, 'CandidatoIdioma', 'candidato_id'),
|
||||
'titulaciones' => array(self::HAS_MANY, 'CandidatoTitulacion', 'candidato_id'),
|
||||
'titulacionesCount' => array(self::STAT, 'CandidatoTitulacion', 'candidato_id'),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
106
www/protected/models/CandidatoCapacidad.php
Normal file
106
www/protected/models/CandidatoCapacidad.php
Normal file
@ -0,0 +1,106 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This is the model class for table "tbl_candidatos_capacidades".
|
||||
*
|
||||
* The followings are the available columns in table 'tbl_candidatos_capacidades':
|
||||
* @property integer $id
|
||||
* @property integer $candidato_id
|
||||
* @property integer $perfil_tecnico_id
|
||||
* @property integer $meses_perfil_tecnico
|
||||
* @property string $observaciones
|
||||
*
|
||||
* The followings are the available model relations:
|
||||
* @property PerfilesTecnicos $perfilTecnico
|
||||
* @property Candidatos $candidato
|
||||
* @property CandidatosCapacidadesFuncionales[] $capacidadesFuncionales
|
||||
* @property CandidatosCapacidadesTecnologias[] $tecnologias
|
||||
*/
|
||||
class CandidatoCapacidad extends CActiveRecord
|
||||
{
|
||||
/**
|
||||
* Returns the static model of the specified AR class.
|
||||
* @param string $className active record class name.
|
||||
* @return CandidatoCapacidad the static model class
|
||||
*/
|
||||
public static function model($className=__CLASS__)
|
||||
{
|
||||
return parent::model($className);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string the associated database table name
|
||||
*/
|
||||
public function tableName()
|
||||
{
|
||||
return 'tbl_candidatos_capacidades';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array validation rules for model attributes.
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
// NOTE: you should only define rules for those attributes that
|
||||
// will receive user inputs.
|
||||
return array(
|
||||
array('candidato_id, perfil_tecnico_id', 'required'),
|
||||
array('candidato_id, perfil_tecnico_id, meses_perfil_tecnico', 'numerical', 'integerOnly'=>true),
|
||||
array('observaciones', 'safe'),
|
||||
// The following rule is used by search().
|
||||
// Please remove those attributes that should not be searched.
|
||||
array('id, candidato_id, perfil_tecnico_id, meses_perfil_tecnico, observaciones', 'safe', 'on'=>'search'),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array relational rules.
|
||||
*/
|
||||
public function relations()
|
||||
{
|
||||
// NOTE: you may need to adjust the relation name and the related
|
||||
// class name for the relations automatically generated below.
|
||||
return array(
|
||||
'perfilTecnico' => array(self::BELONGS_TO, 'PerfilesTecnicos', 'perfil_tecnico_id'),
|
||||
'candidato' => array(self::BELONGS_TO, 'Candidatos', 'candidato_id'),
|
||||
'capacidadesFuncionales' => array(self::HAS_MANY, 'CandidatosCapacidadesFuncionales', 'capacidad_id'),
|
||||
'tecnologias' => array(self::HAS_MANY, 'CandidatosCapacidadesTecnologias', 'capacidad_id'),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array customized attribute labels (name=>label)
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return array(
|
||||
'id' => 'ID',
|
||||
'candidato_id' => 'Candidato',
|
||||
'perfil_tecnico_id' => 'Perfil técnico',
|
||||
'meses_perfil_tecnico' => 'Meses',
|
||||
'observaciones' => 'Observaciones',
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a list of models based on the current search/filter conditions.
|
||||
* @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
|
||||
*/
|
||||
public function search()
|
||||
{
|
||||
// Warning: Please modify the following code to remove attributes that
|
||||
// should not be searched.
|
||||
|
||||
$criteria=new CDbCriteria;
|
||||
|
||||
$criteria->compare('id',$this->id);
|
||||
$criteria->compare('candidato_id',$this->candidato_id);
|
||||
$criteria->compare('perfil_tecnico_id',$this->perfil_tecnico_id);
|
||||
$criteria->compare('meses_perfil_tecnico',$this->meses_perfil_tecnico);
|
||||
$criteria->compare('observaciones',$this->observaciones,true);
|
||||
|
||||
return new CActiveDataProvider($this, array(
|
||||
'criteria'=>$criteria,
|
||||
));
|
||||
}
|
||||
}
|
||||
@ -8117,6 +8117,5 @@ return array (
|
||||
'50298' => array('provincia'=>50, 'poblacion'=>'Zuera'),
|
||||
'51001' => array('provincia'=>51, 'poblacion'=>'Ceuta'),
|
||||
'52001' => array('provincia'=>52, 'poblacion'=>'Melilla'),
|
||||
|
||||
);
|
||||
?>
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/plugins/jquery-ui-1.8.16.custom.min.js');
|
||||
|
||||
$idiomaFormConfig = array(
|
||||
'elements'=>array(
|
||||
|
||||
@ -81,7 +81,7 @@
|
||||
</div>
|
||||
|
||||
<div class="row buttons">
|
||||
<?php echo CHtml::submitButton('Search'); ?>
|
||||
<?php echo CHtml::submitButton(Yii::t('intranet', 'Search')); ?>
|
||||
</div>
|
||||
|
||||
<?php $this->endWidget(); ?>
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/plugins/jquery-ui-1.8.16.custom.min.js');
|
||||
|
||||
$titulacionFormConfig = array(
|
||||
'elements'=>array(
|
||||
|
||||
@ -56,11 +56,21 @@ $('.search-form form').submit(function(){
|
||||
</div>
|
||||
|
||||
<div class="dataTables_filter">
|
||||
<label>Buscar: <input type="text"></label>
|
||||
<label class="disabled">Buscar: <input type="text" disabled /></label>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$columns = array(
|
||||
array(
|
||||
'header'=>Yii::t('intranet', 'Acciones'),
|
||||
'class'=>'CButtonColumn',
|
||||
'headerHtmlOptions'=>array(
|
||||
'style' => 'width:55px;',
|
||||
'class' => 'head1',
|
||||
),
|
||||
'template'=>'{update}{delete}',
|
||||
'cssClassExpression' => '"con1"',
|
||||
),
|
||||
/*array(
|
||||
'type' => 'html',
|
||||
'name' => 'nombreApellidos',
|
||||
@ -77,6 +87,7 @@ $('.search-form form').submit(function(){
|
||||
/*'colspan' => '1',
|
||||
'rowspan' => '1',*/
|
||||
),
|
||||
'cssClassExpression' => '"con0"',
|
||||
),
|
||||
array(
|
||||
'type' => 'html',
|
||||
@ -87,6 +98,7 @@ $('.search-form form').submit(function(){
|
||||
/*'colspan' => '1',
|
||||
'rowspan' => '2',*/
|
||||
),
|
||||
'cssClassExpression' => '"con0"',
|
||||
),
|
||||
array(
|
||||
'type' => 'html',
|
||||
@ -97,8 +109,8 @@ $('.search-form form').submit(function(){
|
||||
/*'colspan' => '1',
|
||||
'rowspan' => '2',*/
|
||||
),
|
||||
'cssClassExpression' => '"con1"',
|
||||
),
|
||||
|
||||
array(
|
||||
'type' => 'html',
|
||||
'name' => 'estado',
|
||||
@ -108,20 +120,16 @@ $('.search-form form').submit(function(){
|
||||
/*'colspan' => '1',
|
||||
'rowspan' => '2',*/
|
||||
),
|
||||
'cssClassExpression' => '"con0"',
|
||||
),
|
||||
array(
|
||||
'name' => 'fecha_modificacion',
|
||||
'headerHtmlOptions'=>array(
|
||||
'class' => 'head1 sorting',
|
||||
'class' => 'head0 sorting',
|
||||
/*'colspan' => '1',
|
||||
'rowspan' => '2',*/
|
||||
),
|
||||
),
|
||||
array(
|
||||
'class'=>'CButtonColumn',
|
||||
//'template'=>'{update}{delete}',
|
||||
//'updateButtonUrl'=>'Yii::app()->createUrl("/candidato/update", array("id" => $data["id"]))',
|
||||
//'deleteButtonUrl'=>'Yii::app()->createUrl("/candidato/delete", array("id" => $data["id"]))',
|
||||
'cssClassExpression' => '"con1"',
|
||||
),
|
||||
);
|
||||
|
||||
@ -143,7 +151,7 @@ $('.search-form form').submit(function(){
|
||||
'summaryCssClass' => 'dataTables_info',
|
||||
'summaryText' => 'Mostrando registros del {start} al {end} de {count} en total.',
|
||||
'selectableRows' => 1,
|
||||
));
|
||||
));
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
@ -1,22 +1,19 @@
|
||||
<?php
|
||||
$this->breadcrumbs=array(
|
||||
'Candidatos'=>array('index'),
|
||||
$model->id=>array('view','id'=>$model->id),
|
||||
'Update',
|
||||
$model->nombre . ' ' . $model->apellidos,
|
||||
);
|
||||
|
||||
$this->menu=array(
|
||||
/*$this->menu=array(
|
||||
array('label'=>'List Candidato', 'url'=>array('index')),
|
||||
array('label'=>'Create Candidato', 'url'=>array('create')),
|
||||
array('label'=>'View Candidato', 'url'=>array('view', 'id'=>$model->id)),
|
||||
array('label'=>'Manage Candidato', 'url'=>array('admin')),
|
||||
);
|
||||
);*/
|
||||
|
||||
$this->pageTitle='Modificar candidato ' . $model->nombre . ' ' . $model->apellidos;
|
||||
$this->pageTitle='Modificar candidato "' . $model->nombre . ' ' . $model->apellidos . '"';
|
||||
?>
|
||||
|
||||
<h1>Update Candidato <?php echo $model->id; ?></h1>
|
||||
|
||||
<?php echo $this->renderPartial('_form', array(
|
||||
'model'=>$model,
|
||||
'idioma'=>$idioma,
|
||||
|
||||
42
www/protected/views/candidatoCapacidad/_form.php
Normal file
42
www/protected/views/candidatoCapacidad/_form.php
Normal file
@ -0,0 +1,42 @@
|
||||
<div class="form">
|
||||
|
||||
<?php $form=$this->beginWidget('CActiveForm', array(
|
||||
'id'=>'candidato-capacidad-form',
|
||||
'enableAjaxValidation'=>false,
|
||||
)); ?>
|
||||
|
||||
<p class="note">Fields with <span class="required">*</span> are required.</p>
|
||||
|
||||
<?php echo $form->errorSummary($model); ?>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'candidato_id'); ?>
|
||||
<?php echo $form->textField($model,'candidato_id'); ?>
|
||||
<?php echo $form->error($model,'candidato_id'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'perfil_tecnico_id'); ?>
|
||||
<?php echo $form->textField($model,'perfil_tecnico_id'); ?>
|
||||
<?php echo $form->error($model,'perfil_tecnico_id'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'meses_perfil_tecnico'); ?>
|
||||
<?php echo $form->textField($model,'meses_perfil_tecnico'); ?>
|
||||
<?php echo $form->error($model,'meses_perfil_tecnico'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'observaciones'); ?>
|
||||
<?php echo $form->textArea($model,'observaciones',array('rows'=>6, 'cols'=>50)); ?>
|
||||
<?php echo $form->error($model,'observaciones'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row buttons">
|
||||
<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
|
||||
</div>
|
||||
|
||||
<?php $this->endWidget(); ?>
|
||||
|
||||
</div><!-- form -->
|
||||
39
www/protected/views/candidatoCapacidad/_search.php
Normal file
39
www/protected/views/candidatoCapacidad/_search.php
Normal file
@ -0,0 +1,39 @@
|
||||
<div class="wide form">
|
||||
|
||||
<?php $form=$this->beginWidget('CActiveForm', array(
|
||||
'action'=>Yii::app()->createUrl($this->route),
|
||||
'method'=>'get',
|
||||
)); ?>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->label($model,'id'); ?>
|
||||
<?php echo $form->textField($model,'id'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->label($model,'candidato_id'); ?>
|
||||
<?php echo $form->textField($model,'candidato_id'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->label($model,'perfil_tecnico_id'); ?>
|
||||
<?php echo $form->textField($model,'perfil_tecnico_id'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->label($model,'meses_perfil_tecnico'); ?>
|
||||
<?php echo $form->textField($model,'meses_perfil_tecnico'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->label($model,'observaciones'); ?>
|
||||
<?php echo $form->textArea($model,'observaciones',array('rows'=>6, 'cols'=>50)); ?>
|
||||
</div>
|
||||
|
||||
<div class="row buttons">
|
||||
<?php echo CHtml::submitButton(Yii::t('intranet', 'Search')); ?>
|
||||
</div>
|
||||
|
||||
<?php $this->endWidget(); ?>
|
||||
|
||||
</div><!-- search-form -->
|
||||
24
www/protected/views/candidatoCapacidad/_view.php
Normal file
24
www/protected/views/candidatoCapacidad/_view.php
Normal file
@ -0,0 +1,24 @@
|
||||
<div class="view">
|
||||
|
||||
<b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b>
|
||||
<?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?>
|
||||
<br />
|
||||
|
||||
<b><?php echo CHtml::encode($data->getAttributeLabel('candidato_id')); ?>:</b>
|
||||
<?php echo CHtml::encode($data->candidato_id); ?>
|
||||
<br />
|
||||
|
||||
<b><?php echo CHtml::encode($data->getAttributeLabel('perfil_tecnico_id')); ?>:</b>
|
||||
<?php echo CHtml::encode($data->perfil_tecnico_id); ?>
|
||||
<br />
|
||||
|
||||
<b><?php echo CHtml::encode($data->getAttributeLabel('meses_perfil_tecnico')); ?>:</b>
|
||||
<?php echo CHtml::encode($data->meses_perfil_tecnico); ?>
|
||||
<br />
|
||||
|
||||
<b><?php echo CHtml::encode($data->getAttributeLabel('observaciones')); ?>:</b>
|
||||
<?php echo CHtml::encode($data->observaciones); ?>
|
||||
<br />
|
||||
|
||||
|
||||
</div>
|
||||
54
www/protected/views/candidatoCapacidad/admin.php
Normal file
54
www/protected/views/candidatoCapacidad/admin.php
Normal file
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
$this->breadcrumbs=array(
|
||||
'Candidato Capacidads'=>array('index'),
|
||||
'Manage',
|
||||
);
|
||||
|
||||
$this->menu=array(
|
||||
array('label'=>'List CandidatoCapacidad', 'url'=>array('index')),
|
||||
array('label'=>'Create CandidatoCapacidad', 'url'=>array('create')),
|
||||
);
|
||||
|
||||
Yii::app()->clientScript->registerScript('search', "
|
||||
$('.search-button').click(function(){
|
||||
$('.search-form').toggle();
|
||||
return false;
|
||||
});
|
||||
$('.search-form form').submit(function(){
|
||||
$.fn.yiiGridView.update('candidato-capacidad-grid', {
|
||||
data: $(this).serialize()
|
||||
});
|
||||
return false;
|
||||
});
|
||||
");
|
||||
?>
|
||||
|
||||
<h1>Manage Candidato Capacidads</h1>
|
||||
|
||||
<p>
|
||||
You may optionally enter a comparison operator (<b><</b>, <b><=</b>, <b>></b>, <b>>=</b>, <b><></b>
|
||||
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
|
||||
</p>
|
||||
|
||||
<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
|
||||
<div class="search-form" style="display:none">
|
||||
<?php $this->renderPartial('_search',array(
|
||||
'model'=>$model,
|
||||
)); ?>
|
||||
</div><!-- search-form -->
|
||||
|
||||
<?php $this->widget('zii.widgets.grid.CGridView', array(
|
||||
'id'=>'candidato-capacidad-grid',
|
||||
'dataProvider'=>$model->search(),
|
||||
'filter'=>$model,
|
||||
'columns'=>array(
|
||||
'id',
|
||||
'candidato_id',
|
||||
'perfil_tecnico_id',
|
||||
'meses_perfil_tecnico',
|
||||
'observaciones',
|
||||
array(
|
||||
'class'=>'CButtonColumn',
|
||||
),
|
||||
),
|
||||
)); ?>
|
||||
15
www/protected/views/candidatoCapacidad/create.php
Normal file
15
www/protected/views/candidatoCapacidad/create.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
$this->breadcrumbs=array(
|
||||
'Candidato Capacidads'=>array('index'),
|
||||
'Create',
|
||||
);
|
||||
|
||||
$this->menu=array(
|
||||
array('label'=>'List CandidatoCapacidad', 'url'=>array('index')),
|
||||
array('label'=>'Manage CandidatoCapacidad', 'url'=>array('admin')),
|
||||
);
|
||||
?>
|
||||
|
||||
<h1>Create CandidatoCapacidad</h1>
|
||||
|
||||
<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>
|
||||
17
www/protected/views/candidatoCapacidad/index.php
Normal file
17
www/protected/views/candidatoCapacidad/index.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
$this->breadcrumbs=array(
|
||||
'Candidato Capacidads',
|
||||
);
|
||||
|
||||
$this->menu=array(
|
||||
array('label'=>'Create CandidatoCapacidad', 'url'=>array('create')),
|
||||
array('label'=>'Manage CandidatoCapacidad', 'url'=>array('admin')),
|
||||
);
|
||||
?>
|
||||
|
||||
<h1>Candidato Capacidads</h1>
|
||||
|
||||
<?php $this->widget('zii.widgets.CListView', array(
|
||||
'dataProvider'=>$dataProvider,
|
||||
'itemView'=>'_view',
|
||||
)); ?>
|
||||
18
www/protected/views/candidatoCapacidad/update.php
Normal file
18
www/protected/views/candidatoCapacidad/update.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
$this->breadcrumbs=array(
|
||||
'Candidato Capacidads'=>array('index'),
|
||||
$model->id=>array('view','id'=>$model->id),
|
||||
'Update',
|
||||
);
|
||||
|
||||
$this->menu=array(
|
||||
array('label'=>'List CandidatoCapacidad', 'url'=>array('index')),
|
||||
array('label'=>'Create CandidatoCapacidad', 'url'=>array('create')),
|
||||
array('label'=>'View CandidatoCapacidad', 'url'=>array('view', 'id'=>$model->id)),
|
||||
array('label'=>'Manage CandidatoCapacidad', 'url'=>array('admin')),
|
||||
);
|
||||
?>
|
||||
|
||||
<h1>Update CandidatoCapacidad <?php echo $model->id; ?></h1>
|
||||
|
||||
<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>
|
||||
27
www/protected/views/candidatoCapacidad/view.php
Normal file
27
www/protected/views/candidatoCapacidad/view.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
$this->breadcrumbs=array(
|
||||
'Candidato Capacidads'=>array('index'),
|
||||
$model->id,
|
||||
);
|
||||
|
||||
$this->menu=array(
|
||||
array('label'=>'List CandidatoCapacidad', 'url'=>array('index')),
|
||||
array('label'=>'Create CandidatoCapacidad', 'url'=>array('create')),
|
||||
array('label'=>'Update CandidatoCapacidad', 'url'=>array('update', 'id'=>$model->id)),
|
||||
array('label'=>'Delete CandidatoCapacidad', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
|
||||
array('label'=>'Manage CandidatoCapacidad', 'url'=>array('admin')),
|
||||
);
|
||||
?>
|
||||
|
||||
<h1>View CandidatoCapacidad #<?php echo $model->id; ?></h1>
|
||||
|
||||
<?php $this->widget('zii.widgets.CDetailView', array(
|
||||
'data'=>$model,
|
||||
'attributes'=>array(
|
||||
'id',
|
||||
'candidato_id',
|
||||
'perfil_tecnico_id',
|
||||
'meses_perfil_tecnico',
|
||||
'observaciones',
|
||||
),
|
||||
)); ?>
|
||||
@ -76,13 +76,13 @@
|
||||
),
|
||||
array(
|
||||
'label'=>Yii::t('intranet', 'Ofertas'),
|
||||
'url'=>array(''),
|
||||
'url'=>array('/site/index'),
|
||||
'linkOptions'=>array('class'=>'ofertas'),
|
||||
'active' => ($this->getId() == 'oferta'),
|
||||
),
|
||||
array(
|
||||
'label'=>Yii::t('intranet', 'Solicitudes de oferta'),
|
||||
'url'=>array(''),
|
||||
'url'=>array('/site/index'),
|
||||
'linkOptions'=>array('class'=>'solicitudes'),
|
||||
'active' => ($this->getId() == 'solicitud'),
|
||||
),
|
||||
@ -99,7 +99,7 @@
|
||||
|
||||
|
||||
<div class="accountinfo">
|
||||
<img src="images/avatar.png" alt="Avatar" />
|
||||
<img src="<?php echo Yii::app()->baseUrl; ?>/images/avatar.png" alt="Avatar" />
|
||||
<div class="info">
|
||||
<h3><?php echo Yii::app()->user->name; ?></h3>
|
||||
<small></small>
|
||||
@ -168,7 +168,7 @@
|
||||
<br />
|
||||
<div class="footer footer_float">
|
||||
<div class="footerinner">
|
||||
Copyright © <?php echo date('Y'); ?> by My Company.<br/>
|
||||
<?php /*Copyright © <?php echo date('Y'); ?> by My Company.<br/>*/ ?>
|
||||
</div><!-- footerinner -->
|
||||
</div><!-- footer -->
|
||||
|
||||
|
||||
135
www/protected/views/layouts/tablero.php
Normal file
135
www/protected/views/layouts/tablero.php
Normal file
@ -0,0 +1,135 @@
|
||||
<!doctype html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo Yii::app()->language; ?>" lang="<?php echo Yii::app()->language; ?>">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="language" content="<?php echo Yii::app()->language; ?>" />
|
||||
|
||||
<link rel="stylesheet" media="screen" href="<?php echo Yii::app()->baseUrl; ?>/css/style.css" />
|
||||
<!--[if IE 9]>
|
||||
<link rel="stylesheet" media="screen" href="<?php echo Yii::app()->baseUrl; ?>/css/ie9.css"/>
|
||||
<![endif]-->
|
||||
|
||||
<!--[if IE 8]>
|
||||
<link rel="stylesheet" media="screen" href="<?php echo Yii::app()->baseUrl; ?>/css/ie8.css"/>
|
||||
<![endif]-->
|
||||
|
||||
<!--[if IE 7]>
|
||||
<link rel="stylesheet" media="screen" href="<?php echo Yii::app()->baseUrl; ?>/css/ie7.css"/>
|
||||
<![endif]-->
|
||||
<script type="text/javascript" src="<?php echo Yii::app()->baseUrl; ?>/js/plugins/jquery-1.7.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo Yii::app()->baseUrl; ?>/js/plugins/jquery-ui-1.8.16.custom.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo Yii::app()->baseUrl; ?>/js/custom/general.js"></script>
|
||||
|
||||
<title><?php echo CHtml::encode($this->pageTitle); ?></title>
|
||||
</head>
|
||||
|
||||
<body class="bodygrey">
|
||||
<div class="headerspace"></div>
|
||||
|
||||
<div class="header">
|
||||
|
||||
<form id="search" action="" method="post">
|
||||
<input type="text" name="keyword" /> <button class="searchbutton"></button>
|
||||
</form>
|
||||
|
||||
<div class="topheader">
|
||||
<ul class="notebutton">
|
||||
<li class="note">
|
||||
<a href="pages/message.html" class="messagenotify">
|
||||
<span class="wrap">
|
||||
<span class="thicon msgicon"></span>
|
||||
<span class="count">1</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="note">
|
||||
<a href="pages/info.html" class="alertnotify">
|
||||
<span class="wrap">
|
||||
<span class="thicon infoicon"></span>
|
||||
<span class="count">5</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div><!-- topheader -->
|
||||
|
||||
|
||||
<!-- logo -->
|
||||
<a href=""><img src="<?php echo Yii::app()->baseUrl; ?>/images/logo2.png" alt="Logo" /></a>
|
||||
|
||||
<div class="tabmenu">
|
||||
<?php $this->widget('zii.widgets.CMenu',array(
|
||||
'activeCssClass'=>'current',
|
||||
'linkLabelWrapper' => 'span',
|
||||
'items'=>array(
|
||||
array(
|
||||
'label'=>Yii::t('intranet', 'Tablero'),
|
||||
'url'=>array('/site/index'),
|
||||
'linkOptions'=>array('class'=>'dashboard'),
|
||||
'active' => ($this->getId() == 'tablero'),
|
||||
),
|
||||
array(
|
||||
'label'=>Yii::t('intranet', 'Candidatos'),
|
||||
'url'=>array('/candidato'),
|
||||
'linkOptions'=>array('class'=>'candidatos'),
|
||||
'active' => ($this->getId() == 'candidato'),
|
||||
),
|
||||
array(
|
||||
'label'=>Yii::t('intranet', 'Ofertas'),
|
||||
'url'=>array('/site/index'),
|
||||
'linkOptions'=>array('class'=>'ofertas'),
|
||||
'active' => ($this->getId() == 'oferta'),
|
||||
),
|
||||
array(
|
||||
'label'=>Yii::t('intranet', 'Solicitudes de oferta'),
|
||||
'url'=>array('/site/index'),
|
||||
'linkOptions'=>array('class'=>'solicitudes'),
|
||||
'active' => ($this->getId() == 'solicitud'),
|
||||
),
|
||||
array(
|
||||
'label'=>Yii::t('intranet', 'Sistema'),
|
||||
'url'=>array('/usuario'),
|
||||
'linkOptions'=>array('class'=>'sistema'),
|
||||
'active' => ($this->getId() == 'usuario')
|
||||
),
|
||||
),
|
||||
)); ?>
|
||||
</div><!-- tabmenu -->
|
||||
|
||||
|
||||
|
||||
<div class="accountinfo">
|
||||
<img src="<?php echo Yii::app()->baseUrl; ?>/images/avatar.png" alt="Avatar" />
|
||||
<div class="info">
|
||||
<h3><?php echo Yii::app()->user->name; ?></h3>
|
||||
<small></small>
|
||||
<p>
|
||||
<a href=""><?php echo Yii::t('intranet', 'Preferencias');?></a>
|
||||
<?php echo CHtml::link('Salir', $this->createAbsoluteUrl('site/logout')); ?>
|
||||
</p>
|
||||
</div><!-- info -->
|
||||
</div><!-- accountinfo -->
|
||||
</div><!-- header -->
|
||||
|
||||
<div class="sidebar"></div>
|
||||
|
||||
<div class="maincontent">
|
||||
<?php if(isset($this->breadcrumbs)):?>
|
||||
<?php $this->widget('zii.widgets.CBreadcrumbs', array(
|
||||
'homeLink'=>CHtml::link(Yii::t('intranet', 'Tablero'), array('/site/index')),
|
||||
'links'=>$this->breadcrumbs,
|
||||
'separator'=>'',
|
||||
)); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $content; ?>
|
||||
</div><!--maincontent-->
|
||||
|
||||
<br />
|
||||
<div class="footer footer_float">
|
||||
<div class="footerinner">
|
||||
<?php /*Copyright © <?php echo date('Y'); ?> by My Company.<br/>*/ ?>
|
||||
</div><!-- footerinner -->
|
||||
</div><!-- footer -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@ -1 +1,322 @@
|
||||
<h1>SOY EL TABLERO</h1>
|
||||
<?php
|
||||
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/plugins/jquery.flot.min.js');
|
||||
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/custom/dashboard.js');
|
||||
?>
|
||||
|
||||
<div class="two_third maincontent_inner ">
|
||||
<div class="left">
|
||||
|
||||
<div class="notification msgalert">
|
||||
<a class="close"></a>
|
||||
¡¡¡¡ ESTE TABLERO ES UN EJEMPLO !!!!
|
||||
|
||||
</div><!-- notification info -->
|
||||
|
||||
<!-- START WIDGET LIST -->
|
||||
<!--<ul class="widgetlist">
|
||||
<li><a href=""><img src="images/icons/document.png" alt="Document Icon" /><span>Add New Article</span></a></li>
|
||||
<li><a href=""><img src="images/icons/createreport.png" alt="Report Icon" /><span>Create Report</span></a></li>
|
||||
<li><a href=""><img src="images/icons/mail.png" alt="Mail Icon" /><span>Compose Mail</span></a></li>
|
||||
<li><a href=""><img src="images/icons/calendar.png" alt="Events Icon" /><span>Manage Events</span></a></li>
|
||||
<li><a href=""><img src="images/icons/media.png" alt="Media Icon" /><span>Media Library</span></a></li>
|
||||
</ul>-->
|
||||
<!-- END WIDGET LIST -->
|
||||
|
||||
<!--<div class="clear"></div>-->
|
||||
|
||||
<div class="widgetbox">
|
||||
<h3><span>Actividad reciente</span></h3>
|
||||
<div class="content">
|
||||
|
||||
<img src="<?php echo Yii::app()->baseURL; ?>/images/icons/editor.png" alt="" class="imgleft2" />
|
||||
<span class="timestamp">El 2012-01-09 a las 13:37:18 por <a href="#">Supervisor</a></span>
|
||||
<p><strong><a href="#">Fulanito de tal</a></strong>: Cambio de estado (Borrador a Rechazado)</p>
|
||||
|
||||
<img src="<?php echo Yii::app()->baseURL; ?>/images/icons/editor.png" alt="" class="imgleft2" />
|
||||
<span class="timestamp">El 2012-01-09 a las 13:37:18 por <a href="#">Supervisor</a></span>
|
||||
|
||||
<p><strong><a href="#">Menganito de tal</a></strong>: Cambio de estado (Borrador a Sin capacidades)</p>
|
||||
|
||||
<img src="<?php echo Yii::app()->baseURL; ?>/images/icons/editor.png" alt="" class="imgleft2" />
|
||||
<span class="timestamp">El 2012-01-09 a las 13:37:18 por <a href="#">Supervisor</a></span>
|
||||
<p><strong><a href="#">Menganito de tal</a></strong>: Estado inicial ( Borrador )</p>
|
||||
|
||||
<img src="<?php echo Yii::app()->baseURL; ?>/images/icons/editor.png" alt="" class="imgleft2" />
|
||||
|
||||
<span class="timestamp">El 2012-01-09 a las 13:37:18 por <a href="#">Supervisor</a></span>
|
||||
<p><strong><a href="#">Fulanito de tal</a></strong>: Cambio de estado (Sin capacidades a En proceso: Disponible)</p>
|
||||
|
||||
|
||||
<img src="<?php echo Yii::app()->baseURL; ?>/images/icons/editor.png" alt="" class="imgleft2" />
|
||||
<span class="timestamp">El 2012-01-09 a las 13:37:18 por <a href="#">Supervisor</a></span>
|
||||
<p><strong><a href="#">Menganito de tal</a></strong>: Nuevo candidato</p>
|
||||
|
||||
<br class="clear"/>
|
||||
<div style="float: right;">
|
||||
<button class="button button_blue">Ver más</button></div>
|
||||
</div><!--content-->
|
||||
</div><!--widgetbox2 -->
|
||||
|
||||
|
||||
<div class="widgetbox">
|
||||
<h3><span>Sample Chart</span></h3>
|
||||
|
||||
<div class="content nopadding ohidden">
|
||||
<table cellpadding="0" cellspacing="0" class="sTable3" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Column 1</td>
|
||||
<td>Column 2</td>
|
||||
<td>Column 3</td>
|
||||
|
||||
<td align="right">Impressions</td>
|
||||
<td align="right">Percentage</td>
|
||||
<td>Column 6</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
|
||||
<td>Row Text 1</td>
|
||||
<td>Row Text 2</td>
|
||||
<td>Row Text 3</td>
|
||||
<td align="right">2 100.00</td>
|
||||
<td align="right">20%</td>
|
||||
<td>Row Text 6</td>
|
||||
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td>Row Text 1</td>
|
||||
<td>Row Text 2</td>
|
||||
<td>Row Text 3</td>
|
||||
<td align="right">2 100.00</td>
|
||||
<td align="right">20%</td>
|
||||
|
||||
<td>Row Text 6</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Row Text 1</td>
|
||||
<td>Row Text 2</td>
|
||||
<td>Row Text 3</td>
|
||||
<td align="right">2 100.00</td>
|
||||
|
||||
<td align="right">20%</td>
|
||||
<td>Row Text 6</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td>Row Text 1</td>
|
||||
<td>Row Text 2</td>
|
||||
<td>Row Text 3</td>
|
||||
|
||||
<td align="right">2 100.00</td>
|
||||
<td align="right">20%</td>
|
||||
<td>Row Text 6</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Row Text 1</td>
|
||||
<td>Row Text 2</td>
|
||||
|
||||
<td>Row Text 3</td>
|
||||
<td align="right">2 100.00</td>
|
||||
<td align="right">20%</td>
|
||||
<td>Row Text 6</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div><!-- content -->
|
||||
</div><!-- widgetbox2 -->
|
||||
|
||||
<div class="widgetbox">
|
||||
<h3><span>Sample Chart</span></h3>
|
||||
<div class="content">
|
||||
<div id="chartplace" style="height:300px;"></div>
|
||||
</div><!-- content -->
|
||||
</div><!-- widgetbox2 -->
|
||||
|
||||
|
||||
<div class="widgetbox">
|
||||
<h3><span>Buttons</span></h3>
|
||||
<div class="content">
|
||||
<button class="button button_white">Button</button>
|
||||
<button class="button button_blue">Button</button>
|
||||
<button class="button button_black">Button</button>
|
||||
|
||||
<button class="button button_red">Button</button>
|
||||
<button class="button button_yellow">Button</button>
|
||||
<button class="button button_green">Button</button>
|
||||
<button class="button button_brown">Button</button>
|
||||
<button class="button button_lblue">Button</button> <br />
|
||||
|
||||
</div><!-- conten t-->
|
||||
</div><!-- widgetbox -->
|
||||
|
||||
<br />
|
||||
|
||||
</div><!-- left -->
|
||||
</div><!-- two_third -->
|
||||
|
||||
<div class="one_third last">
|
||||
<div class="right">
|
||||
|
||||
<div class="widgetbox">
|
||||
<h3><span>RESUMEN</span></h3>
|
||||
|
||||
<div class="content">
|
||||
|
||||
<h1 class="prize">78 candidatos</h1>
|
||||
<p>Estimate earnings by the end of the day: <strong>$300.00</strong></p>
|
||||
|
||||
<br />
|
||||
|
||||
<div class="one_half bright">
|
||||
<h2 class="prize">9 ofertas</h2>
|
||||
<small>Yesterday's earnings</small>
|
||||
|
||||
</div><!--one_half-->
|
||||
|
||||
<div class="one_half last">
|
||||
<h2 class="prize">2 solicitudes de oferta</h2>
|
||||
<small>This month's earnings</small>
|
||||
</div><!--one_half-->
|
||||
|
||||
|
||||
</div><!-- content -->
|
||||
</div><!-- widgetbox -->
|
||||
|
||||
<div class="widgetbox">
|
||||
|
||||
<h3><span>Form with validation</span></h3>
|
||||
<div class="content">
|
||||
<form id="form" action="" method="post">
|
||||
|
||||
<div class="form_default">
|
||||
|
||||
<p>
|
||||
<label for="name">Name</label>
|
||||
<input type="text" name="name" id="name" class="sf" />
|
||||
</p>
|
||||
|
||||
|
||||
<p>
|
||||
<label for="email">Email</label>
|
||||
<input type="text" name="email" id="email" class="sf" />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="location">Location</label>
|
||||
<textarea name="location" class="mf" rows="" cols=""></textarea>
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="gender" class="nopadding">Gender</label>
|
||||
<input type="radio" name="gender" value="0" /> Male <input type="radio" name="gender" value="1" /> Female
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="language" class="nopadding">Language</label>
|
||||
|
||||
<input type="checkbox" name="language[]" value="0" /> English
|
||||
<input type="checkbox" name="language[]" value="1" /> Mandarin
|
||||
<input type="checkbox" name="language[]" value="1" /> German
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="occupation">Occupation</label>
|
||||
<select name="occupation" id="occupation">
|
||||
|
||||
<option value="">Choose One</option>
|
||||
<option value="0">Web Designer</option>
|
||||
<option value="1">Web Developer</option>
|
||||
<option value="2">Software Engineer</option>
|
||||
<option value="3">Application Engineer</option>
|
||||
<option value="4">Programmer</option>
|
||||
|
||||
<option value="5">Analyst</option>
|
||||
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<button>Submit</button>
|
||||
</p>
|
||||
|
||||
</div><!--form-->
|
||||
</form>
|
||||
|
||||
|
||||
</div><!-- content -->
|
||||
</div><!-- widgetbox -->
|
||||
|
||||
<div class="widgetbox">
|
||||
<h3><span>PROGRESS BAR</span></h3>
|
||||
<div class="content">
|
||||
|
||||
<div class="progress">
|
||||
Storage (60%)
|
||||
<div class="bar"><div class="value bluebar" style="width: 60%;"></div></div>
|
||||
</div><!-- progress -->
|
||||
|
||||
|
||||
<div class="progress">
|
||||
Bandwidth (86%)
|
||||
<div class="bar"><div class="value orangebar" style="width: 86%;"></div></div>
|
||||
</div><!-- progress -->
|
||||
|
||||
<div class="progress">
|
||||
Impression (34%)
|
||||
<div class="bar"><div class="value redbar" style="width: 34%;"></div></div>
|
||||
</div><!-- progres s-->
|
||||
|
||||
</div><!-- content -->
|
||||
</div><!-- widgetbox -->
|
||||
|
||||
|
||||
<div class="widgetbox2">
|
||||
<h3><span>Widget Box 2</span></h3>
|
||||
<div class="content">
|
||||
|
||||
<p><img src="<?php echo Yii::app()->baseURL; ?>/images/assets/image1.png" alt="" class="imgleft" />Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium.</p>
|
||||
|
||||
|
||||
</div><!--content-->
|
||||
</div><!--widgetbox2 -->
|
||||
|
||||
<div id="tabs" class="tabs2">
|
||||
<ul>
|
||||
|
||||
<li><a href="#tabs-1">Tab A</a></li>
|
||||
<li><a href="#tabs-2">Tab B</a></li>
|
||||
<li><a href="#tabs-3">Tab C</a></li>
|
||||
</ul>
|
||||
<div id="tabs-1">
|
||||
<p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.</p>
|
||||
</div>
|
||||
|
||||
<div id="tabs-2">
|
||||
<p>Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.</p>
|
||||
</div>
|
||||
<div id="tabs-3">
|
||||
<p>Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.</p>
|
||||
</div>
|
||||
|
||||
</div><!-- tabs -->
|
||||
|
||||
<br />
|
||||
|
||||
|
||||
<div class="accordion">
|
||||
<h3><a href="#">First header</a></h3>
|
||||
<div>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.</div>
|
||||
<h3><a href="#">Second header</a></h3>
|
||||
<div>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.</div>
|
||||
<h3><a href="#">Third header</a></h3>
|
||||
|
||||
<div>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.</div>
|
||||
</div><!-- accordion -->
|
||||
|
||||
</div><!--right-->
|
||||
</div><!--one_third last-->
|
||||
|
||||
<br clear="all" />
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
</div>
|
||||
|
||||
<div class="row buttons">
|
||||
<?php echo CHtml::submitButton('Search'); ?>
|
||||
<?php echo CHtml::submitButton(Yii::t('intranet', 'Search')); ?>
|
||||
</div>
|
||||
|
||||
<?php $this->endWidget(); ?>
|
||||
|
||||
@ -59,11 +59,21 @@ $('.search-form form').submit(function(){
|
||||
</div>
|
||||
|
||||
<div class="dataTables_filter">
|
||||
<label>Buscar: <input type="text"></label>
|
||||
<label class="disabled">Buscar: <input type="text" disabled /></label>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$columns = array(
|
||||
array(
|
||||
'header'=>Yii::t('intranet', 'Acciones'),
|
||||
'class'=>'CButtonColumn',
|
||||
'headerHtmlOptions'=>array(
|
||||
'style' => 'width:55px;',
|
||||
'class' => 'head1',
|
||||
),
|
||||
'template'=>'{update}{delete}',
|
||||
'cssClassExpression' => '"con1"',
|
||||
),
|
||||
array(
|
||||
'type' => 'html',
|
||||
'name' => 'name',
|
||||
@ -98,11 +108,6 @@ $('.search-form form').submit(function(){
|
||||
),
|
||||
'cssClassExpression' => '"con1"',
|
||||
),
|
||||
array(
|
||||
'class'=>'CButtonColumn',
|
||||
'cssClassExpression' => '"con0"',
|
||||
)
|
||||
|
||||
);
|
||||
|
||||
$dataProvider = $model->search();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user