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
f5e0e004
Commit
f5e0e004
authored
May 13, 2019
by
Jerl1997
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
campo detallado
parent
7345d475
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
430 additions
and
1 deletion
+430
-1
MzgtcampdetalladocineController.php
protected/controllers/MzgtcampdetalladocineController.php
+86
-0
Mzgtcampdetalladocine.php
protected/models/Mzgtcampdetalladocine.php
+33
-0
BaseMzgtcampdetalladocine.php
protected/models/_base/BaseMzgtcampdetalladocine.php
+77
-0
_form.php
protected/views/mzgtcampdetalladocine/_form.php
+38
-0
_search.php
protected/views/mzgtcampdetalladocine/_search.php
+35
-0
_view.php
protected/views/mzgtcampdetalladocine/_view.php
+18
-0
admin.php
protected/views/mzgtcampdetalladocine/admin.php
+50
-0
create.php
protected/views/mzgtcampdetalladocine/create.php
+21
-0
index.php
protected/views/mzgtcampdetalladocine/index.php
+20
-0
update.php
protected/views/mzgtcampdetalladocine/update.php
+23
-0
view.php
protected/views/mzgtcampdetalladocine/view.php
+28
-0
_search.php
protected/views/mzgtcampespecificoscine/_search.php
+1
-1
No files found.
protected/controllers/MzgtcampdetalladocineController.php
0 → 100644
View file @
f5e0e004
<?php
class
MzgtcampespecificoscineController
extends
GxController
{
public
function
actionView
(
$id
)
{
$this
->
render
(
'view'
,
array
(
'model'
=>
$this
->
loadModel
(
$id
,
'Mzgtcampdetalladocine'
),
));
}
public
function
actionCreate
()
{
$model
=
new
Mzgtcampdetalladocine
;
if
(
isset
(
$_POST
[
'Mzgtcampdetalladocine'
]))
{
$model
->
setAttributes
(
$_POST
[
'Mzgtcampdetalladocine'
]);
if
(
$model
->
save
())
{
if
(
Yii
::
app
()
->
getRequest
()
->
getIsAjaxRequest
())
Yii
::
app
()
->
end
();
else
$this
->
redirect
(
array
(
'view'
,
'id'
=>
$model
->
PK_MZGTCAMPESPECIFICOSCINE
));
}
}
$this
->
render
(
'create'
,
array
(
'model'
=>
$model
));
}
public
function
actionUpdate
(
$id
)
{
$model
=
$this
->
loadModel
(
$id
,
'Mzgtcampdetalladocine'
);
if
(
isset
(
$_POST
[
'Mzgtcampdetalladocine'
]))
{
$model
->
setAttributes
(
$_POST
[
'Mzgtcampdetalladocine'
]);
if
(
$model
->
save
())
{
$this
->
redirect
(
array
(
'view'
,
'id'
=>
$model
->
PK_MZGTCAMPDETALLADOCINE
));
}
}
$this
->
render
(
'update'
,
array
(
'model'
=>
$model
,
));
}
public
function
actionDelete
(
$id
)
{
if
(
Yii
::
app
()
->
getRequest
()
->
getIsPostRequest
())
{
$this
->
loadModel
(
$id
,
'Mzgtcampdetalladocine'
)
->
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
(
'Mzgtcampdetalladocine'
);
$this
->
render
(
'index'
,
array
(
'dataProvider'
=>
$dataProvider
,
));
}
public
function
actionAdmin
()
{
$model
=
new
Mzgtcampespecificoscine
(
'search'
);
$model
->
unsetAttributes
();
if
(
isset
(
$_GET
[
'Mzgtcampespecificoscine'
]))
$model
->
setAttributes
(
$_GET
[
'Mzgtcampespecificoscine'
]);
$this
->
render
(
'admin'
,
array
(
'model'
=>
$model
,
));
}
public
function
actionCargarEspecifico
()
{
$data
=
Mzgtcampespecificoscine
::
model
()
->
findAll
(
array
(
'condition'
=>
'FK1_MZGTDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK='
.
$_POST
[
'Amplio'
],
'order'
=>
'MZGTCAMPDETALLADOCINE_NOMBRE'
));
$data
=
CHtml
::
listData
(
$data
,
'PK_MZGTCAMPDETALLADOCINE'
,
'MZGTCAMPDETALLADOCINE_NOMBRE'
);
foreach
(
$data
as
$value
=>
$name
){
echo
CHtml
::
tag
(
'option'
,
array
(
'value'
=>
$value
),
CHtml
::
encode
(
$name
),
true
);
}
}
}
\ No newline at end of file
protected/models/Mzgtcampdetalladocine.php
0 → 100644
View file @
f5e0e004
<?php
Yii
::
import
(
'application.models._base.BaseMzgtcampdetalladocine'
);
class
Mzgtcampdetalladocine
extends
BaseMzgtcampdetalladocine
{
public
static
function
model
(
$className
=
__CLASS__
)
{
return
parent
::
model
(
$className
);
}
public
static
function
label
(
$n
=
1
)
{
return
Yii
::
t
(
'app'
,
'Campo detallado CINE|Campos detallado CINE'
,
$n
);
}
public
function
rules
()
{
return
array
(
array
(
'FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK'
,
'numerical'
,
'integerOnly'
=>
true
),
array
(
'MZGTCAMPDETALLADOCINE_NOMBRE, MZGTCAMPDETALLADOCINE_CODIGO'
,
'length'
,
'max'
=>
255
),
array
(
'FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK, MZGTCAMPDETALLADOCINE_NOMBRE, MZGTCAMPDETALLADOCINE_CODIGO'
,
'required'
),
array
(
'PK_MZGTCAMPDETALLADOCINE, FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK, MZGTCAMPDETALLADOCINE_NOMBRE, MZGTCAMPDETALLADOCINE_CODIGO'
,
'safe'
,
'on'
=>
'search'
),
);
}
public
function
attributeLabels
()
{
return
array
(
'PK_MZGTCAMPDETALLADOCINE'
=>
Yii
::
t
(
'app'
,
'Campos detallados CINE'
),
'FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK'
=>
Yii
::
t
(
'app'
,
'Campos Detallados CINE'
),
'MZGTCAMPDETALLADOCINE_NOMBRE'
=>
Yii
::
t
(
'app'
,
'Descripción'
),
'MZGTCAMPDETALLADOCINE_CODIGO'
=>
Yii
::
t
(
'app'
,
'Código alterno'
),
);
}
}
\ No newline at end of file
protected/models/_base/BaseMzgtcampdetalladocine.php
0 → 100644
View file @
f5e0e004
<?php
/**
* This is the model base class for the table "mzgtcampespecificoscine".
* DO NOT MODIFY THIS FILE! It is automatically generated by giix.
* If any changes are necessary, you must set or override the required
* property or method in class "Mzgtcampdetalladocine".
*
* Columns in table "mzgtcampespecificoscine" available as properties of the model,
* and there are no model relations.
*
* @property integer $FK1CAMPDETALLADOCINE
* @property integer $FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK
* @property string $MZGTCAMPDETALLADOCINE_NOMBRE
* @property string $MZGTCAMPDETALLADOCINE_CODIGO
*
*/
abstract
class
BaseMzgtcampdetalladocine
extends
GxActiveRecord
{
public
static
function
model
(
$className
=
__CLASS__
)
{
return
parent
::
model
(
$className
);
}
public
function
tableName
()
{
return
'mzgtcampdetalladocine'
;
}
public
static
function
label
(
$n
=
1
)
{
return
Yii
::
t
(
'app'
,
'Mzgtcampdetalladocine|Mzgtcampdetalladocines'
,
$n
);
}
public
static
function
representingColumn
()
{
return
'MZGTCAMPDETALLADOCINE_NOMBRE'
;
}
public
function
rules
()
{
return
array
(
array
(
'FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK'
,
'numerical'
,
'integerOnly'
=>
true
),
array
(
'MZGTCAMPDETALLADOCINE_NOMBRE, MZGTCAMPDETALLADOCINE_CODIGO'
,
'length'
,
'max'
=>
255
),
array
(
'FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK, MZGTCAMPDETALLADOCINE_NOMBRE, MZGTCAMPDETALLADOCINE_CODIGO'
,
'default'
,
'setOnEmpty'
=>
true
,
'value'
=>
null
),
array
(
'PK_MZGTCAMPDETALLADOCINE, FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK, MZGTCAMPDETALLADOCINE_NOMBRE, MZGTCAMPDETALLADOCINE_CODIGO'
,
'safe'
,
'on'
=>
'search'
),
);
}
public
function
relations
()
{
return
array
(
);
}
public
function
pivotModels
()
{
return
array
(
);
}
public
function
attributeLabels
()
{
return
array
(
'PK_MZGTCAMPDETALLADOCINE'
=>
Yii
::
t
(
'app'
,
'Pk Mzgtcampdetalladocine'
),
'FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK'
=>
Yii
::
t
(
'app'
,
'Fk1 Mzgtcampdetalladoscine Inv Mzgtcampespecificoscine Pk'
),
'MZGTCAMPDETALLADOCINE_NOMBRE'
=>
Yii
::
t
(
'app'
,
'Mzgtcampdetalladocine Nombre'
),
'MZGTCAMPDETALLADOCINE_CODIGO'
=>
Yii
::
t
(
'app'
,
'Mzgtcampdetalladocine Codigo'
),
);
}
public
function
search
()
{
$criteria
=
new
CDbCriteria
;
$criteria
->
compare
(
'PK_MZGTCAMPDETALLADOCINE'
,
$this
->
PK_MZGTCAMPDETALLADOCINE
);
$criteria
->
compare
(
'FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK'
,
$this
->
FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK
);
$criteria
->
compare
(
'MZGTCAMPDETALLADOCINE_NOMBRE'
,
$this
->
MZGTCAMPDETALLADOCINE_NOMBRE
,
true
);
$criteria
->
compare
(
'MZGTCAMPDETALLADOCINE_CODIGO'
,
$this
->
MZGTCAMPDETALLADOCINE_CODIGO
,
true
);
return
new
CActiveDataProvider
(
$this
,
array
(
'criteria'
=>
$criteria
,
));
}
}
\ No newline at end of file
protected/views/mzgtcampdetalladocine/_form.php
0 → 100644
View file @
f5e0e004
<div
class=
"form"
>
<?php
$form
=
$this
->
beginWidget
(
'GxActiveForm'
,
array
(
'id'
=>
'mzgtcampdetalladocine-form'
,
'enableAjaxValidation'
=>
false
,
));
?>
<p
class=
"note"
>
<?php
echo
Yii
::
t
(
'app'
,
'Campos con'
);
?>
<span
class=
"required"
>
*
</span>
<?php
echo
Yii
::
t
(
'app'
,
'son requeridos'
);
?>
.
</p>
<?php
echo
$form
->
errorSummary
(
$model
);
?>
<div
class=
"row"
>
<?php
echo
$form
->
labelEx
(
$model
,
'FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK'
);
?>
<?php
echo
$form
->
textField
(
$model
,
'FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK'
);
?>
<?php
echo
$form
->
error
(
$model
,
'FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK'
);
?>
</div>
<!-- row -->
<div
class=
"row"
>
<?php
echo
$form
->
labelEx
(
$model
,
'MZGTCAMPDETALLADOCINE_NOMBRE'
);
?>
<?php
echo
$form
->
textField
(
$model
,
'MZGTCAMPDETALLADOCINE_NOMBRE'
,
array
(
'maxlength'
=>
255
));
?>
<?php
echo
$form
->
error
(
$model
,
'MZGTCAMPDETALLADOCINE_NOMBRE'
);
?>
</div>
<!-- row -->
<div
class=
"row"
>
<?php
echo
$form
->
labelEx
(
$model
,
'MZGTCAMPDETALLADOCINE_CODIGO'
);
?>
<?php
echo
$form
->
textField
(
$model
,
'MZGTCAMPDETALLADOCINE_CODIGO'
,
array
(
'maxlength'
=>
255
));
?>
<?php
echo
$form
->
error
(
$model
,
'MZGTCAMPDETALLADOCINE_CODIGO'
);
?>
</div>
<!-- row -->
<?php
echo
GxHtml
::
submitButton
(
Yii
::
t
(
'app'
,
'Guardar'
));
$this
->
endWidget
();
?>
</div>
<!-- form -->
\ No newline at end of file
protected/views/mzgtcampdetalladocine/_search.php
0 → 100644
View file @
f5e0e004
<div
class=
"wide form"
>
<?php
$form
=
$this
->
beginWidget
(
'GxActiveForm'
,
array
(
'action'
=>
Yii
::
app
()
->
createUrl
(
$this
->
route
),
'method'
=>
'get'
,
));
?>
<div
class=
"row"
>
<?php
echo
$form
->
label
(
$model
,
'PK_MZGTCAMPDETALLADOCINE'
);
?>
<?php
echo
$form
->
textField
(
$model
,
'PK_MZGTCAMPDETALLADOCINE'
);
?>
</div>
<div
class=
"row"
>
<?php
echo
$form
->
label
(
$model
,
'FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK'
);
?>
<?php
echo
$form
->
textField
(
$model
,
'FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK'
);
?>
</div>
<div
class=
"row"
>
<?php
echo
$form
->
label
(
$model
,
'MZGTCAMPDETALLADOCINE_NOMBRE'
);
?>
<?php
echo
$form
->
textField
(
$model
,
'MZGTCAMPDETALLADOCINE_NOMBRE'
,
array
(
'maxlength'
=>
255
));
?>
</div>
<div
class=
"row"
>
<?php
echo
$form
->
label
(
$model
,
'MZGTCAMPDETALLADOCINE_CODIGO'
);
?>
<?php
echo
$form
->
textField
(
$model
,
'MZGTCAMPDETALLADOCINE_CODIGO'
,
array
(
'maxlength'
=>
255
));
?>
</div>
<div
class=
"row buttons"
>
<?php
echo
GxHtml
::
submitButton
(
Yii
::
t
(
'app'
,
'Buscar'
));
?>
</div>
<?php
$this
->
endWidget
();
?>
</div>
<!-- search-form -->
\ No newline at end of file
protected/views/mzgtcampdetalladocine/_view.php
0 → 100644
View file @
f5e0e004
<div
class=
"view"
>
<?php
echo
GxHtml
::
encode
(
$data
->
getAttributeLabel
(
'PK_MZGTCAMPDETALLADOCINE'
));
?>
:
<?php
echo
GxHtml
::
link
(
GxHtml
::
encode
(
$data
->
PK_MZGTCAMPDETALLADOCINE
),
array
(
'view'
,
'id'
=>
$data
->
PK_MZGTCAMPDETALLADOCINE
));
?>
<br
/>
<?php
echo
GxHtml
::
encode
(
$data
->
getAttributeLabel
(
'FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK'
));
?>
:
<?php
echo
GxHtml
::
encode
(
$data
->
FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK
);
?>
<br
/>
<?php
echo
GxHtml
::
encode
(
$data
->
getAttributeLabel
(
'MZGTCAMPDETALLADOCINE_NOMBRE'
));
?>
:
<?php
echo
GxHtml
::
encode
(
$data
->
MZGTCAMPDETALLADOCINE_NOMBRE
);
?>
<br
/>
<?php
echo
GxHtml
::
encode
(
$data
->
getAttributeLabel
(
'MZGTCAMPDETALLADOCINE_CODIGO'
));
?>
:
<?php
echo
GxHtml
::
encode
(
$data
->
MZGTCAMPDETALLADOCINE_CODIGO
);
?>
<br
/>
</div>
\ No newline at end of file
protected/views/mzgtcampdetalladocine/admin.php
0 → 100644
View file @
f5e0e004
<?php
$this
->
breadcrumbs
=
array
(
$model
->
label
(
2
)
=>
array
(
'index'
),
Yii
::
t
(
'app'
,
'Administrar'
),
);
$this
->
menu
=
array
(
array
(
'label'
=>
Yii
::
t
(
'app'
,
'Listar'
)
.
' '
.
$model
->
label
(
2
),
'url'
=>
array
(
'index'
)),
array
(
'label'
=>
Yii
::
t
(
'app'
,
'Registrar'
)
.
' '
.
$model
->
label
(),
'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('mzgtcampdetalladocine-grid', {
data: $(this).serialize()
});
return false;
});
"
);
?>
<h1>
<?php
echo
Yii
::
t
(
'app'
,
'Administrar'
)
.
' '
.
GxHtml
::
encode
(
$model
->
label
(
2
));
?>
</h1>
<?php
echo
GxHtml
::
link
(
Yii
::
t
(
'app'
,
'Busqueda Avanzada'
),
'#'
,
array
(
'class'
=>
'search-button'
));
?>
<div
class=
"search-form"
>
<?php
$this
->
renderPartial
(
'_search'
,
array
(
'model'
=>
$model
,
));
?>
</div>
<!-- search-form -->
<?php
$this
->
widget
(
'zii.widgets.grid.CGridView'
,
array
(
'id'
=>
'mzgtcampdetalladocine-grid'
,
'dataProvider'
=>
$model
->
search
(),
'filter'
=>
$model
,
'columns'
=>
array
(
'PK_MZGTCAMPDETALLADOCINE'
,
'FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK'
,
'MZGTCAMPDETALLADOCINE_NOMBRE'
,
'MZGTCAMPDETALLADOCINE_CODIGO'
,
array
(
'class'
=>
'CButtonColumn'
,
),
),
));
?>
\ No newline at end of file
protected/views/mzgtcampdetalladocine/create.php
0 → 100644
View file @
f5e0e004
<?php
$this
->
breadcrumbs
=
array
(
$model
->
label
(
2
)
=>
array
(
'index'
),
Yii
::
t
(
'app'
,
'Registrar'
),
);
$this
->
menu
=
array
(
array
(
'label'
=>
Yii
::
t
(
'app'
,
'Listar'
)
.
' '
.
$model
->
label
(
2
),
'url'
=>
array
(
'index'
)),
array
(
'label'
=>
Yii
::
t
(
'app'
,
'Administrar'
)
.
' '
.
$model
->
label
(
2
),
'url'
=>
array
(
'admin'
)),
);
?>
<h1>
<?php
echo
Yii
::
t
(
'app'
,
'Registrar'
)
.
' '
.
GxHtml
::
encode
(
$model
->
label
());
?>
</h1>
<?php
$this
->
renderPartial
(
'_form'
,
array
(
'model'
=>
$model
,
'buttons'
=>
'create'
));
?>
\ No newline at end of file
protected/views/mzgtcampdetalladocine/index.php
0 → 100644
View file @
f5e0e004
<?php
$this
->
breadcrumbs
=
array
(
Mzgtcampdetalladocine
::
label
(
2
),
Yii
::
t
(
'app'
,
'Indice'
),
);
$this
->
menu
=
array
(
array
(
'label'
=>
Yii
::
t
(
'app'
,
'Registrar'
)
.
' '
.
Mzgtcampdetalladocine
::
label
(),
'url'
=>
array
(
'create'
)),
array
(
'label'
=>
Yii
::
t
(
'app'
,
'Administrar'
)
.
' '
.
Mzgtcampdetalladocine
::
label
(
2
),
'url'
=>
array
(
'admin'
)),
);
?>
<h1>
<?php
echo
GxHtml
::
encode
(
Mzgtcampdetalladocine
::
label
(
2
));
?>
</h1>
<?php
$this
->
widget
(
'zii.widgets.CListView'
,
array
(
'dataProvider'
=>
$dataProvider
,
'itemView'
=>
'_view'
,
));
\ No newline at end of file
protected/views/mzgtcampdetalladocine/update.php
0 → 100644
View file @
f5e0e004
<?php
$this
->
breadcrumbs
=
array
(
$model
->
label
(
2
)
=>
array
(
'index'
),
GxHtml
::
valueEx
(
$model
)
=>
array
(
'view'
,
'id'
=>
GxActiveRecord
::
extractPkValue
(
$model
,
true
)),
Yii
::
t
(
'app'
,
'Actualizar'
),
);
$this
->
menu
=
array
(
array
(
'label'
=>
Yii
::
t
(
'app'
,
'Listar'
)
.
' '
.
$model
->
label
(
2
),
'url'
=>
array
(
'index'
)),
array
(
'label'
=>
Yii
::
t
(
'app'
,
'Registrar'
)
.
' '
.
$model
->
label
(),
'url'
=>
array
(
'create'
)),
array
(
'label'
=>
Yii
::
t
(
'app'
,
'Vista'
)
.
' '
.
$model
->
label
(),
'url'
=>
array
(
'view'
,
'id'
=>
GxActiveRecord
::
extractPkValue
(
$model
,
true
))),
array
(
'label'
=>
Yii
::
t
(
'app'
,
'Administrar'
)
.
' '
.
$model
->
label
(
2
),
'url'
=>
array
(
'admin'
)),
);
?>
<h1>
<?php
echo
Yii
::
t
(
'app'
,
'Actualizar'
)
.
' '
.
GxHtml
::
encode
(
$model
->
label
())
.
' '
.
GxHtml
::
encode
(
GxHtml
::
valueEx
(
$model
));
?>
</h1>
<?php
$this
->
renderPartial
(
'_form'
,
array
(
'model'
=>
$model
));
?>
\ No newline at end of file
protected/views/mzgtcampdetalladocine/view.php
0 → 100644
View file @
f5e0e004
<?php
$this
->
breadcrumbs
=
array
(
$model
->
label
(
2
)
=>
array
(
'index'
),
GxHtml
::
valueEx
(
$model
),
);
$this
->
menu
=
array
(
array
(
'label'
=>
Yii
::
t
(
'app'
,
'Listar'
)
.
' '
.
$model
->
label
(
2
),
'url'
=>
array
(
'index'
)),
array
(
'label'
=>
Yii
::
t
(
'app'
,
'Registrar'
)
.
' '
.
$model
->
label
(),
'url'
=>
array
(
'create'
)),
array
(
'label'
=>
Yii
::
t
(
'app'
,
'Actualizar'
)
.
' '
.
$model
->
label
(),
'url'
=>
array
(
'update'
,
'id'
=>
$model
->
PK_MZGTCAMPDETALLADOCINE
)),
//array('label'=>Yii::t('app', 'Eliminar') . ' ' . $model->label(), 'url'=>'#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->PK_MZGTCAMPESPECIFICOSCINE), 'confirm'=>'Are you sure you want to delete this item?')),
array
(
'label'
=>
Yii
::
t
(
'app'
,
'Administrar'
)
.
' '
.
$model
->
label
(
2
),
'url'
=>
array
(
'admin'
)),
);
?>
<h1>
<?php
echo
Yii
::
t
(
'app'
,
'Vista'
)
.
' '
.
GxHtml
::
encode
(
$model
->
label
())
.
' '
.
GxHtml
::
encode
(
GxHtml
::
valueEx
(
$model
));
?>
</h1>
<?php
$this
->
widget
(
'zii.widgets.CDetailView'
,
array
(
'data'
=>
$model
,
'attributes'
=>
array
(
'PK_MZGTCAMPDETALLADOCINE'
,
'FK1_MZGTCAMPDETALLADOCINE_INV_MZGTCAMPESPECIFICOSCINE_PK'
,
'MZGTCAMPDETALLADOCINE_NOMBRE'
,
'MZGTCAMPDETALLADOCINE_CODIGO'
,
),
));
?>
protected/views/mzgtcampespecificoscine/_search.php
View file @
f5e0e004
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
'method'
=>
'get'
,
'method'
=>
'get'
,
));
?>
));
?>
<div
class=
"row"
>
<div
class=
"row"
>
<?php
echo
$form
->
label
(
$model
,
'PK_MZGTCAMPESPECIFICOSCINE'
);
?>
<?php
echo
$form
->
label
(
$model
,
'PK_MZGTCAMPESPECIFICOSCINE'
);
?>
<?php
echo
$form
->
textField
(
$model
,
'PK_MZGTCAMPESPECIFICOSCINE'
);
?>
<?php
echo
$form
->
textField
(
$model
,
'PK_MZGTCAMPESPECIFICOSCINE'
);
?>
</div>
</div>
...
...
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