Commit 5a40d4f9 authored by nicoss96's avatar nicoss96

confirmar

parents c8d2f997 3e32d562
table.detail-view .null
{
color: pink;
}
table.detail-view
{
background: white;
border-collapse: collapse;
width: 100%;
margin: 0;
}
table.detail-view th, table.detail-view td
{
font-size: 0.9em;
border: 1px white solid;
padding: 0.3em 0.6em;
vertical-align: top;
}
table.detail-view th
{
text-align: right;
width: 160px;
}
table.detail-view tr.odd
{
background:#E5F1F4;
}
table.detail-view tr.even
{
background:#F8F8F8;
}
table.detail-view tr.odd th
{
}
table.detail-view tr.even th
{
}
This diff is collapsed.
.grid-view-loading
{
background:url(loading.gif) no-repeat;
}
.grid-view
{
padding: 15px 0;
}
.grid-view table.items
{
background: white;
border-collapse: collapse;
width: 100%;
border: 1px #D0E3EF solid;
}
.grid-view table.items th, .grid-view table.items td
{
font-size: 0.9em;
border: 1px white solid;
padding: 0.3em;
}
.grid-view table.items th
{
color: white;
background: url("bg.gif") repeat-x scroll left top white;
text-align: center;
}
.grid-view table.items th a
{
color: #EEE;
font-weight: bold;
text-decoration: none;
}
.grid-view table.items th a:hover
{
color: #FFF;
}
.grid-view table.items th a.asc
{
background:url(up.gif) right center no-repeat;
padding-right: 10px;
}
.grid-view table.items th a.desc
{
background:url(down.gif) right center no-repeat;
padding-right: 10px;
}
.grid-view table.items tr.even
{
background: #F8F8F8;
}
.grid-view table.items tr.odd
{
background: #E5F1F4;
}
.grid-view table.items tr.selected
{
background: #BCE774;
}
.grid-view table.items tr:hover.selected
{
background: #CCFF66;
}
.grid-view table.items tbody tr:hover
{
background: #ECFBD4;
}
.grid-view .link-column img
{
border: 0;
}
.grid-view .button-column
{
text-align: center;
width: 60px;
}
.grid-view .button-column img
{
border: 0;
}
.grid-view .checkbox-column
{
width: 15px;
}
.grid-view .summary
{
margin: 0 0 5px 0;
text-align: right;
}
.grid-view .pager
{
margin: 5px 0 0 0;
text-align: right;
}
.grid-view .empty
{
font-style: italic;
}
.grid-view .filters input,
.grid-view .filters select
{
width: 100%;
border: 1px solid #ccc;
}
\ No newline at end of file
/**
* jQuery Yii ListView plugin file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright 2008-2010 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
;(function($) {
var yiiXHR = {};
/**
* yiiListView set function.
* @param options map settings for the list view. Availablel options are as follows:
* - ajaxUpdate: array, IDs of the containers whose content may be updated by ajax response
* - ajaxVar: string, the name of the request variable indicating the ID of the element triggering the AJAX request
* - ajaxType: string, the type (GET or POST) of the AJAX request
* - pagerClass: string, the CSS class for the pager container
* - sorterClass: string, the CSS class for the sorter container
* - updateSelector: string, the selector for choosing which elements can trigger ajax requests
* - beforeAjaxUpdate: function, the function to be called before ajax request is sent
* - afterAjaxUpdate: function, the function to be called after ajax response is received
*/
$.fn.yiiListView = function(options) {
return this.each(function(){
var settings = $.extend({}, $.fn.yiiListView.defaults, options || {}),
$this = $(this),
id = $this.attr('id');
if(settings.updateSelector == undefined) {
settings.updateSelector = '#'+id+' .'+settings.pagerClass.replace(/\s+/g,'.')+' a, #'+id+' .'+settings.sorterClass.replace(/\s+/g,'.')+' a';
}
$.fn.yiiListView.settings[id] = settings;
if(settings.ajaxUpdate.length > 0) {
$(document).on('click.yiiListView', settings.updateSelector,function(){
if(settings.enableHistory && window.History.enabled) {
var href = $(this).attr('href');
if(href){
var url = href.split('?'),
params = $.deparam.querystring('?'+ (url[1] || ''));
delete params[settings.ajaxVar];
var updateUrl = $.param.querystring(url[0], params);
window.History.pushState({url: updateUrl}, document.title, updateUrl);
}
} else {
$.fn.yiiListView.update(id, {url: $(this).attr('href')});
}
return false;
});
if(settings.enableHistory && window.History.enabled) {
$(window).bind('statechange', function() { // Note: We are using statechange instead of popstate
var State = window.History.getState(); // Note: We are using History.getState() instead of event.state
if (State.data.url === undefined) {
State.data.url = State.url;
}
$.fn.yiiListView.update(id, State.data);
});
}
}
});
};
$.fn.yiiListView.defaults = {
ajaxUpdate: [],
ajaxVar: 'ajax',
ajaxType: 'GET',
pagerClass: 'pager',
loadingClass: 'loading',
sorterClass: 'sorter'
// updateSelector: '#id .pager a, '#id .sort a',
// beforeAjaxUpdate: function(id) {},
// afterAjaxUpdate: function(id, data) {},
// url: 'ajax request URL'
};
$.fn.yiiListView.settings = {};
/**
* Returns the key value for the specified row
* @param id string the ID of the list view container
* @param index integer the zero-based index of the data item
* @return string the key value
*/
$.fn.yiiListView.getKey = function(id, index) {
return $('#'+id+' > div.keys > span:eq('+index+')').text();
};
/**
* Returns the URL that generates the list view content.
* @param id string the ID of the list view container
* @return string the URL that generates the list view content.
*/
$.fn.yiiListView.getUrl = function(id) {
var settings = $.fn.yiiListView.settings[id];
return settings.url || $('#'+id+' > div.keys').attr('title');
};
/**
* Performs an AJAX-based update of the list view contents.
* @param id string the ID of the list view container
* @param options map the AJAX request options (see jQuery.ajax API manual). By default,
* the URL to be requested is the one that generates the current content of the list view.
*/
$.fn.yiiListView.update = function(id, options) {
var customError,
settings = $.fn.yiiListView.settings[id];
if (options && options.error !== undefined) {
customError = options.error;
delete options.error;
}
options = $.extend({
type: settings.ajaxType,
url: $.fn.yiiListView.getUrl(id),
success: function(data,status) {
$.each(settings.ajaxUpdate, function(i,v) {
var id='#'+v;
$(id).replaceWith($(id,'<div>'+data+'</div>'));
});
if(settings.afterAjaxUpdate != undefined)
settings.afterAjaxUpdate(id, data);
},
complete: function() {
$('#'+id).removeClass(settings.loadingClass);
yiiXHR[id] = null;
},
error: function(XHR, textStatus, errorThrown) {
var ret, err;
if (XHR.readyState === 0 || XHR.status === 0) {
return;
}
if (customError !== undefined) {
ret = customError(XHR);
if (ret !== undefined && !ret) {
return;
}
}
switch (textStatus) {
case 'timeout':
err = 'The request timed out!';
break;
case 'parsererror':
err = 'Parser error!';
break;
case 'error':
if (XHR.status && !/^\s*$/.test(XHR.status)) {
err = 'Error ' + XHR.status;
} else {
err = 'Error';
}
if (XHR.responseText && !/^\s*$/.test(XHR.responseText)) {
err = err + ': ' + XHR.responseText;
}
break;
}
if (settings.ajaxUpdateError !== undefined) {
settings.ajaxUpdateError(XHR, textStatus, errorThrown, err, id);
} else if (err) {
alert(err);
}
}
}, options || {});
if(options.data!=undefined && options.type=='GET') {
options.url = $.param.querystring(options.url, options.data);
options.data = {};
}
if(settings.ajaxVar)
options.url = $.param.querystring(options.url, settings.ajaxVar+'='+id);
if(yiiXHR[id] != null) {
yiiXHR[id].abort();
}
$('#'+id).addClass(settings.loadingClass);
if(settings.beforeAjaxUpdate != undefined)
settings.beforeAjaxUpdate(id, options);
yiiXHR[id] = $.ajax(options);
};
})(jQuery);
.list-view-loading
{
background:url(loading.gif) no-repeat;
}
.list-view .summary
{
margin: 0 0 5px 0;
text-align: right;
}
.list-view .sorter
{
margin: 0 0 5px 0;
text-align: right;
}
.list-view .pager
{
margin: 5px 0 0 0;
text-align: right;
}
.list-view .sorter
{
font-size: 0.9em;
}
.list-view .sorter ul
{
display: inline;
list-style-image:none;
list-style-position:outside;
list-style-type:none;
margin:0;
padding:0;
}
.list-view .sorter li
{
display: inline;
margin: 0 0 0 5px;
padding: 0;
}
.list-view .sorter a.asc
{
background:url(up.gif) right center no-repeat;
padding-right: 10px;
}
.list-view .sorter a.desc
{
background:url(down.gif) right center no-repeat;
padding-right: 10px;
}
/**
* CSS styles for CLinkPager.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright 2008-2010 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @since 1.0
*/
ul.yiiPager
{
font-size:11px;
border:0;
margin:0;
padding:0;
line-height:100%;
display:inline;
}
ul.yiiPager li
{
display:inline;
}
ul.yiiPager a:link,
ul.yiiPager a:visited
{
border:solid 1px #9aafe5;
font-weight:bold;
color:#0e509e;
padding:1px 6px;
text-decoration:none;
}
ul.yiiPager .page a
{
font-weight:normal;
}
ul.yiiPager a:hover
{
border:solid 1px #0e509e;
}
ul.yiiPager .selected a
{
background:#2e6ab1;
color:#FFFFFF;
font-weight:bold;
}
ul.yiiPager .hidden a
{
border:solid 1px #DEDEDE;
color:#888888;
}
/**
* Hide first and last buttons by default.
*/
ul.yiiPager .first,
ul.yiiPager .last
{
display:none;
}
\ No newline at end of file
.qq-uploader { position:relative; width: 100%;}
.qq-upload-button {
display:block; /* or inline-block */
width: 105px; padding: 7px 0; text-align:center;
background:#880000; border-bottom:1px solid #ddd;color:#fff;
}
.qq-upload-button-hover {background:#cc0000;}
.qq-upload-button-focus {outline:1px dotted black;}
.qq-upload-drop-area {
position:absolute; top:0; left:0; width:100%; height:100%; min-height: 70px; z-index:2;
background:#FF9797; text-align:center;
}
.qq-upload-drop-area span {
display:block; position:absolute; top: 50%; width:100%; margin-top:-8px; font-size:16px;
}
.qq-upload-drop-area-active {background:#FF7171;}
.qq-upload-list {margin:15px 35px; padding:0; list-style:disc;}
.qq-upload-list li { margin:0; padding:0; line-height:15px; font-size:12px;}
.qq-upload-file, .qq-upload-spinner, .qq-upload-size, .qq-upload-cancel, .qq-upload-failed-text {
margin-right: 7px;
}
.qq-upload-file {}
.qq-upload-spinner {display:inline-block; background: url("loading.gif"); width:15px; height:15px; vertical-align:text-bottom;}
.qq-upload-size,.qq-upload-cancel {font-size:11px;}
.qq-upload-failed-text {display:none;}
.qq-upload-fail .qq-upload-failed-text {display:inline;}
\ No newline at end of file
This diff is collapsed.
......@@ -72,7 +72,7 @@ class Mzgtbancoautores extends BaseMzgtbancoautores
);
return CHtml::listData($this->findAll($criteria),'PK_MZGTBANCOAUTORES','MZGTBANCOAUTORES_APELLIDO_PATERNO');
}
Z
/**
* @param int $PK_MZGTPUBLICACIONES
* @return array for listbuilder (PK_MZGTBANCOAUTORES => name)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
......@@ -65,16 +65,6 @@
<?php echo $form->textField($model, 'MZGTLIBROS_EDITOR', array('maxlength' => 150, 'size'=>75)); ?>
<?php echo $form->error($model,'MZGTLIBROS_EDITOR'); ?>
</div><!-- row -->
<!--ENLACE --->
<div class="row" id="div_enlace">
<?php //echo $form->labelEx($model,'MZGTLIBROS_ENLACE'); ?>
<?php echo '<label for="Mzgtlibros_MZGTLIBROS_ENLACE">Enlace <span id="req_enlace" class="required">*</span></label>'; ?>
<?php echo $form->textField($model, 'MZGTLIBROS_ENLACE', array('maxlength' => 500, 'size'=>100)); ?>
<?php echo $form->error($model,'MZGTLIBROS_ENLACE'); ?>
</div><!-- row -->
<!--ENLACE-------->
<div class="row" id="div_ciudad_libro">
<?php echo $form->labelEx($model,'MZGTLIBROS_CIUDAD'); ?>
<?php //echo '<label for="Mzgtlibros_MZGTLIBROS_CIUDAD">Ciudad <span id="req_ciudad_libro" class="required">*</span></label>'; ?>
......@@ -179,28 +169,24 @@
</div><!-- row -->
</fieldset>
<details open="open">
<details>
<summary style="background-color: #880000; color: white;"><b>Banco de Autores (clic para agregar autores)</b></summary>
<h4 style="color: #C00; font-weight: bold; ">Seleccione en orden de autoría</h4>
<!-- Aquí va el grid de autores -->
<?php if (isset($model->PK_MZGTPUBLICACIONES))
<?php if (isset($model->PK_MZGTPUBLICACIONES))
$publicacion = $model->PK_MZGTPUBLICACIONES;
else
$publicacion = 0;
$this->widget('ext.widgets.multiselects.XMultiSelects',array(
'leftTitle'=>'Actualmente en la publicación',
'leftName'=>'Mzgtpublicaciones[mzgtbancoautores][]',
'leftName'=>'Mzgtlibros[mzgtbancoautores][]',
'leftList'=> Mzgtbancoautores::model()->findBancoAutoresPorPublicacion($publicacion),
'rightTitle'=>'Banco de autores',
'rightName'=>'Mzgtbancoautores[mzgtpublicaciones][]',
'rightName'=>'Mzgtbancoautores[mzgtlibros][]',
'rightList'=>Mzgtbancoautores::model()->findBancoAutoresPorNoPublicacion($publicacion),
'size'=>20,
'width'=>'300px',
));
?>
</details>
<?php
......
......@@ -248,22 +248,22 @@
<h4 style="color: #C00; font-weight: bold; ">Seleccione en orden de autoría</h4>
<!-- Aquí va el grid de autores -->
<?php if (isset($model->PK_MZGTPUBLICACIONES))
$publicacion = $model->PK_MZGTPUBLICACIONES;
else
$publicacion = 0;
$this->widget('ext.widgets.multiselects.XMultiSelects',array(
'leftTitle'=>'Actualmente en la publicación',
'leftName'=>'Mzgtpublicaciones[mzgtbancoautores][]',
'leftList'=> Mzgtbancoautores::model()->findBancoAutoresPorPublicacion($publicacion),
'rightTitle'=>'Banco de autores',
'rightName'=>'Mzgtbancoautores[mzgtpublicaciones][]',
'rightList'=>Mzgtbancoautores::model()->findBancoAutoresPorNoPublicacion($publicacion),
'size'=>20,
'width'=>'300px',
));
?>
<?php if (isset($model->PK_MZGTPUBLICACIONES))
$publicacion = $model->PK_MZGTPUBLICACIONES;
else
$publicacion = 0;
$this->widget('ext.widgets.multiselects.XMultiSelects',array(
'leftTitle'=>'Actualmente en la publicación',
'leftName'=>'Mzgtpublicaciones[mzgtbancoautores][]',
'leftList'=> Mzgtbancoautores::model()->findBancoAutoresPorPublicacion($publicacion),
'rightTitle'=>'Banco de autores',
'rightName'=>'Mzgtbancoautores[mzgtpublicaciones][]',
'rightList'=>Mzgtbancoautores::model()->findBancoAutoresPorNoPublicacion($publicacion),
'size'=>20,
'width'=>'300px',
));
?>
</details>
......
<?php
/* @var $this SiteController */
$this->pageTitle=Yii::app()->name;
?>
<h1 align="center">
Sistema informático para el registro de las publicaciones científicas, eventos académicos, culturales y de investigación.
</h1>
\ No newline at end of file
<center>
<img src="../images/fonespe.jpg">
</center>
\ No newline at end of file
......@@ -28,7 +28,7 @@
<div id="mainmenu">
<?php $this->widget('application.extensions.mbmenu.MbMenu',array(
'items'=>array(
array('label'=>'Home', 'url'=>array('/site/index')),
array('label'=>'Inicio', 'url'=>array('/site/index')),
array('label'=>'Registrar',
'visible'=>Yii::app()->user->checkAccess("menu_registrar"),
'items'=>array(
......@@ -49,7 +49,7 @@
),
array('label'=>'Banco de Autores',
'visible'=>Yii::app()->user->checkAccess("menu_bancoautores"),
'url'=>array('/mzgtbancoautores/admin'),
'url'=>array('/mzgtbancoautores/create'),
),
array('label'=>'Exportar archivos CSV',
'visible'=>Yii::app()->user->checkAccess("menu_exportar"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment