-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheg-template.php
More file actions
29 lines (27 loc) · 1.08 KB
/
eg-template.php
File metadata and controls
29 lines (27 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
if (!defined('eGeek')) die('Acceso prohibido');
//funcion para poder leer cabecera de un div portlet
function template_portlet_head($icon = '', $class_icon = '', $title = '', $class_title = ''){
echo '
<div class="kt-portlet__head">
<div class="kt-portlet__head-label">
<span class="kt-portlet__head-icon ', $class_icon ,'">
<i class="', $icon ,'"></i>
</span>
<h3 class="kt-portlet__head-title ', $class_title ,'">
', $title ,'
</h3>
</div>
</div>';
}
function template_portlet_footer($form = '', $align = 'kt-align-right', $url_cancel = '', $class_guardar = '', $class_cancel=''){
echo '
<div class="kt-portlet__foot kt-portlet__foot--sm ', $align ,'">
<button id="btnGuardarForm" type="submit" form="', $form ,'" class="', $class_guardar ,'">
<i class="flaticon2-accept"></i> ', btn_guardar ,'
</button>
<a href="',$url_cancel,'" class="', $class_cancel ,'">
<i class="flaticon2-delete"></i> ', btn_cancelar ,'
</a>
</div>';
}