Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sirep
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Julio Fabricio Jaramillo
sirep
Commits
e4f49038
Commit
e4f49038
authored
May 14, 2019
by
JULIO JARAMILLO
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
subida arreglo eventos
parent
f25ac9a2
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
96 deletions
+7
-96
MzgteventosController.php
protected/controllers/MzgteventosController.php
+3
-3
MzgtpersonasController.php
protected/controllers/MzgtpersonasController.php
+0
-77
application.log
protected/runtime/application.log
+0
-0
_form.php
protected/views/mzgtbancoautores/_form.php
+2
-1
_form.php
protected/views/mzgteventos/_form.php
+1
-4
admin.php
protected/views/mzgteventos/admin.php
+1
-6
view.php
protected/views/mzgteventos/view.php
+0
-5
No files found.
protected/controllers/MzgteventosController.php
View file @
e4f49038
...
@@ -20,7 +20,7 @@ class MzgteventosController extends GxController {
...
@@ -20,7 +20,7 @@ class MzgteventosController extends GxController {
$model
->
setAttributes
(
$_POST
[
'Mzgteventos'
]);
$model
->
setAttributes
(
$_POST
[
'Mzgteventos'
]);
$model
->
MZGTEVENTOS_FECHAREGISTRO
=
date
(
'Y-m-d H:i:s'
);
$model
->
MZGTEVENTOS_FECHAREGISTRO
=
date
(
'Y-m-d H:i:s'
);
$model
->
FK5_MZGTEVENTOS_INV_MZGTPERSONAS_PK
=
$name
;
if
(
$model
->
save
())
{
if
(
$model
->
save
())
{
if
(
Yii
::
app
()
->
getRequest
()
->
getIsAjaxRequest
())
if
(
Yii
::
app
()
->
getRequest
()
->
getIsAjaxRequest
())
...
@@ -70,7 +70,7 @@ class MzgteventosController extends GxController {
...
@@ -70,7 +70,7 @@ class MzgteventosController extends GxController {
$dataProvider
=
new
CActiveDataProvider
(
'Mzgteventos'
,
array
(
$dataProvider
=
new
CActiveDataProvider
(
'Mzgteventos'
,
array
(
'criteria'
=>
array
(
'criteria'
=>
array
(
'condition'
=>
'FK5_MZGTEVENTOS_INV_MZGTPERSONAS_PK = '
.
$id
,
'order'
=>
'MZGTEVENTOS_FECHAREGISTRO DESC'
,
'order'
=>
'MZGTEVENTOS_FECHAREGISTRO DESC'
,
)));
)));
$this
->
render
(
'index'
,
array
(
$this
->
render
(
'index'
,
array
(
...
@@ -86,7 +86,7 @@ class MzgteventosController extends GxController {
...
@@ -86,7 +86,7 @@ class MzgteventosController extends GxController {
if
(
isset
(
$_GET
[
'Mzgteventos'
]))
if
(
isset
(
$_GET
[
'Mzgteventos'
]))
$model
->
setAttributes
(
$_GET
[
'Mzgteventos'
]);
$model
->
setAttributes
(
$_GET
[
'Mzgteventos'
]);
$model
->
FK5_MZGTEVENTOS_INV_MZGTPERSONAS_PK
=
$id
;
$this
->
render
(
'admin'
,
array
(
$this
->
render
(
'admin'
,
array
(
'model'
=>
$model
,
'model'
=>
$model
,
...
...
protected/controllers/MzgtpersonasController.php
deleted
100644 → 0
View file @
f25ac9a2
<?php
class
MzgtpersonasController
extends
GxController
{
public
function
actionView
(
$id
)
{
$this
->
render
(
'view'
,
array
(
'model'
=>
$this
->
loadModel
(
$id
,
'Mzgtpersonas'
),
));
}
public
function
actionCreate
()
{
$model
=
new
Mzgtpersonas
;
if
(
isset
(
$_POST
[
'Mzgtpersonas'
]))
{
$model
->
setAttributes
(
$_POST
[
'Mzgtpersonas'
]);
if
(
$model
->
save
())
{
if
(
Yii
::
app
()
->
getRequest
()
->
getIsAjaxRequest
())
Yii
::
app
()
->
end
();
else
$this
->
redirect
(
array
(
'view'
,
'id'
=>
$model
->
PK_MZGTPERSONAS
));
}
}
$this
->
render
(
'create'
,
array
(
'model'
=>
$model
));
}
public
function
actionUpdate
(
$id
)
{
$model
=
$this
->
loadModel
(
$id
,
'Mzgtpersonas'
);
if
(
isset
(
$_POST
[
'Mzgtpersonas'
]))
{
$model
->
setAttributes
(
$_POST
[
'Mzgtpersonas'
]);
if
(
$model
->
save
())
{
$this
->
redirect
(
array
(
'view'
,
'id'
=>
$model
->
PK_MZGTPERSONAS
));
}
}
$this
->
render
(
'update'
,
array
(
'model'
=>
$model
,
));
}
public
function
actionDelete
(
$id
)
{
if
(
Yii
::
app
()
->
getRequest
()
->
getIsPostRequest
())
{
$this
->
loadModel
(
$id
,
'Mzgtpersonas'
)
->
delete
();
if
(
!
Yii
::
app
()
->
getRequest
()
->
getIsAjaxRequest
())
$this
->
redirect
(
array
(
'admin'
));
}
else
throw
new
CHttpException
(
400
,
Yii
::
t
(
'app'
,
'Your request is invalid.'
));
}
public
function
actionIndex
()
{
$dataProvider
=
new
CActiveDataProvider
(
'Mzgtpersonas'
);
$this
->
render
(
'index'
,
array
(
'dataProvider'
=>
$dataProvider
,
));
}
public
function
actionAdmin
()
{
$model
=
new
Mzgtpersonas
(
'search'
);
$model
->
unsetAttributes
();
if
(
isset
(
$_GET
[
'Mzgtpersonas'
]))
$model
->
setAttributes
(
$_GET
[
'Mzgtpersonas'
]);
$this
->
render
(
'admin'
,
array
(
'model'
=>
$model
,
));
}
}
\ No newline at end of file
protected/runtime/application.log
View file @
e4f49038
This source diff could not be displayed because it is too large. You can
view the blob
instead.
protected/views/mzgtbancoautores/_form.php
View file @
e4f49038
...
@@ -45,7 +45,8 @@
...
@@ -45,7 +45,8 @@
<?php echo
$form->labelEx
(
$model
,'MZGTBANCOAUTORES_CEDULA'); ?>
<?php echo
$form->labelEx
(
$model
,'MZGTBANCOAUTORES_CEDULA'); ?>
<?php echo
$form->textField
(
$model
, 'MZGTBANCOAUTORES_CEDULA', array('maxlength' => 255)); ?>
<?php echo
$form->textField
(
$model
, 'MZGTBANCOAUTORES_CEDULA', array('maxlength' => 255)); ?>
<?php echo
$form->error
(
$model
,'MZGTBANCOAUTORES_CEDULA'); ?>
<?php echo
$form->error
(
$model
,'MZGTBANCOAUTORES_CEDULA'); ?>
</div><!-- row -->
</div><!-- row -->
<div class="
row
">
<?php echo
$form->labelEx
(
$model
,'FK1_MZGTBANCOAUTORES_MZGTTIPOAUTORES_PK'); ?>
<?php echo
$form->labelEx
(
$model
,'FK1_MZGTBANCOAUTORES_MZGTTIPOAUTORES_PK'); ?>
</div><!-- row -->
</div><!-- row -->
...
...
protected/views/mzgteventos/_form.php
View file @
e4f49038
...
@@ -100,10 +100,7 @@
...
@@ -100,10 +100,7 @@
<?php
echo
$form
->
error
(
$model
,
'FK4_MZGTEVENTOS_INV_MZGTPROYECTOS_PK'
);
?>
<?php
echo
$form
->
error
(
$model
,
'FK4_MZGTEVENTOS_INV_MZGTPROYECTOS_PK'
);
?>
</div>
<!-- row -->
</div>
<!-- row -->
<!--
<!--
<div class="row">
<?php
echo
$form
->
labelEx
(
$model
,
'FK5_MZGTEVENTOS_INV_MZGTPERSONAS_PK'
);
?>
<?php
echo
$form
->
dropDownList
(
$model
,
'FK5_MZGTEVENTOS_INV_MZGTPERSONAS_PK'
,
GxHtml
::
listDataEx
(
Mzgtpersonas
::
model
()
->
findAllAttributes
(
null
,
true
)));
?>
<?php
echo
$form
->
error
(
$model
,
'FK5_MZGTEVENTOS_INV_MZGTPERSONAS_PK'
);
?>
</div>
</div>
<div class="row">
<div class="row">
<?php
echo
$form
->
labelEx
(
$model
,
'MZGTEVENTOS_FECHAREGISTRO'
);
?>
<?php
echo
$form
->
labelEx
(
$model
,
'MZGTEVENTOS_FECHAREGISTRO'
);
?>
...
...
protected/views/mzgteventos/admin.php
View file @
e4f49038
...
@@ -65,12 +65,7 @@ $('.search-form form').submit(function(){
...
@@ -65,12 +65,7 @@ $('.search-form form').submit(function(){
'MZGTEVENTOS_CARRERA',
'MZGTEVENTOS_CARRERA',
'MZGTEVENTOS_DEPARTAMENTO',
'MZGTEVENTOS_DEPARTAMENTO',
'MZGTEVENTOS_EVIDENCIAS',
'MZGTEVENTOS_EVIDENCIAS',
array(
'name'=>'FK5_MZGTEVENTOS_INV_MZGTPERSONAS_PK',
'value'=>'GxHtml::valueEx($data->)',
'filter'=>GxHtml::listDataEx(::model()->findAllAttributes(null, true)),
),
'MZGTEVENTOS_FECHAREGISTRO',
*/
*/
array
(
array
(
'class'
=>
'CButtonColumn'
,
'class'
=>
'CButtonColumn'
,
...
...
protected/views/mzgteventos/view.php
View file @
e4f49038
...
@@ -46,11 +46,6 @@ array(
...
@@ -46,11 +46,6 @@ array(
'MZGTEVENTOS_CARRERA'
,
'MZGTEVENTOS_CARRERA'
,
'MZGTEVENTOS_DEPARTAMENTO'
,
'MZGTEVENTOS_DEPARTAMENTO'
,
'MZGTEVENTOS_EVIDENCIAS'
,
'MZGTEVENTOS_EVIDENCIAS'
,
array
(
'name'
=>
'fK5MZGTEVENTOSINVMZGTPERSONASPK'
,
'type'
=>
'raw'
,
'value'
=>
$model
->
fK5MZGTEVENTOSINVMZGTPERSONASPK
!==
null
?
GxHtml
::
link
(
GxHtml
::
encode
(
GxHtml
::
valueEx
(
$model
->
fK5MZGTEVENTOSINVMZGTPERSONASPK
)),
array
(
'/view'
,
'id'
=>
GxActiveRecord
::
extractPkValue
(
$model
->
fK5MZGTEVENTOSINVMZGTPERSONASPK
,
true
)))
:
null
,
),
'MZGTEVENTOS_FECHAREGISTRO'
,
'MZGTEVENTOS_FECHAREGISTRO'
,
),
),
));
?>
));
?>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment