예제 #1
0
파일: settings.php 프로젝트: tapuz/alice
<?php

//Component Settings
loadCSS('settings.css', 'settings');
loadJS('settings.js', 'settings');
loadLib('invoice');
switch (getTask()) {
    case 'save_template':
        $wpdb->update('table_letter_templates', array('template' => getVar('template'), 'name' => getVar('template_name')), array('id' => getVar('template_id')));
        break;
    case 'delete_template':
        $wpdb->delete('table_letter_templates', array('id' => getVar('template_id')));
        break;
    case 'add_new_template':
        $wpdb->insert('table_letter_templates', array('category_id' => getVar('category_id'), 'name' => 'New template'));
        //get the letter_id just created to pass to the select_category view
        $template_id = $wpdb->insert_id;
        break;
}
switch (getView()) {
    case 'general':
        // display the settings menu
        include 'views/general.php';
        break;
    case 'select_category':
        // get letter categories to select from
        $query = "SELECT * from table_letter_categories";
        $categories = $wpdb->get_results($query);
        include 'views/select_category.php';
        break;
    case 'templates':
예제 #2
0
/* thumbnail: rounded styling */
loadCSS(PATH_ROOT . 'styles/thumbnail_rounded/style.css');
loadCSS(PATH_ROOT . 'styles/thumbnail_rounded/black/style.css');
if ($is_ie6) {
    loadCSS(PATH_ROOT . 'styles/thumbnail_rounded/ie6hacks.css');
    loadCSS(PATH_ROOT . 'styles/thumbnail_rounded/black/ie6hacks.css');
}
/* thumbnail: cut styling */
loadCSS(PATH_ROOT . 'styles/thumbnail_cut/style.css');
loadCSS(PATH_ROOT . 'styles/thumbnail_cut/black/style.css');
if ($is_ie6) {
    loadCSS(PATH_ROOT . 'styles/thumbnail_cut/ie6hacks.css');
    loadCSS(PATH_ROOT . 'styles/thumbnail_cut/black/ie6hacks.css');
}
/* thumbnail: plain styling */
loadCSS(PATH_ROOT . 'styles/thumbnail_plain/style.css');
/* css loader */
function loadCSS($file)
{
    global $is_ie6;
    if (is_readable($file)) {
        $content = file_get_contents($file);
        if ($is_ie6) {
            $content = fixIE6Png($content);
        }
        echo $content;
    }
}
/* ie png fix */
function fixIE6Png($content)
{
    <div class="row setup-content" id="step-2">
        <div class="col-xs-12">
            <div class="col-md-12 well">
                <div id="form-tipo-emergencia">
                    
                </div>
            </div>
        </div>
    </div>
 
    
</div>


<?php 
echo loadCSS("assets/js/library/bootstrap-fileinput/css/fileinput.css");
echo loadJS("assets/js/library/bootstrap-fileinput/js/fileinput.js");
echo loadJS("assets/js/library/bootstrap-fileinput/js/fileinput_locale_es.js");
?>











<?php

echo loadCSS("assets/css/modulo/mapa.css");
echo $js;
?>
<div class="row-mapa" style="height: auto">

        <input type="hidden" name="id" id="id" value="<?php 
echo $id;
?>
" />
        
        
        <div class="row">
            <div class="collapse navbar-collapse hidden" id="menu-derecho">
                <ul class="nav navbar-nav navbar-left">
                
                <?php 
if (in_array($region_emergencia, $regiones_usuario)) {
    ?>
                <li>
                    <a href="javascript:void(0)"  class="dropdown-toggle" data-toggle="dropdown" title="Archivo" ><i class="fa fa-files-o"></i> Archivo<b class="caret"></b></a>
                    <ul class="dropdown-menu multi-level">
                        <?php 
    if (permisoEvento("guardar")) {
        ?>
                            <li>
                                <a id="btn-guardar" href="javascript:void(0)"><i class="fa fa-save"></i> Guardar</a>
                            </li>
                            <li class="divider"></li>
                            <li><a id="btn-ubicacion-emergencia" href="javascript:void(0)"><i class="fa fa-bullhorn"></i> Nueva Ubicación emergencia</a></li>
예제 #5
0
<?php

/* For licensing terms, see /license.txt */
// Setting the encoding to UTF-8.
header('Content-Type: text/xml; charset=utf-8');
// Name of the language file that needs to be included.
$language_file = 'document';
// Including the global initialization file.
require_once '../../global.inc.php';
// Outputting the opening tag of the xml file.
echo '<?xml version="1.0" encoding="utf-8" ?>';
// Load a stylesheet.
$css = loadCSS(api_get_setting('stylesheets'));
// Setting some paths.
$img_dir = api_get_path(REL_CODE_PATH) . 'img/';
$default_course_dir = api_get_path(REL_CODE_PATH) . 'default_course_document/';
// Setting templates for teachers or for students
$is_allowed_to_edit = api_is_allowed_to_edit(false, true);
// Start the templates node.
echo '<Templates imagesBasePath="">';
// Load empty template.
load_empty_template();
if ($is_allowed_to_edit) {
    // Load the templates that were defined by the platform admin.
    load_platform_templates();
} else {
    // Load student templates.
    load_student_templates();
}
// Load the personal templates.
load_personal_templates(api_get_user_id());
예제 #6
0
loadCSS(PATH_ROOT . 'styles/niftydefault/style.css');
loadCSS(PATH_ROOT . 'styles/niftydefault/black/style.css');
if ($is_ie6) {
    loadCSS(PATH_ROOT . 'styles/niftydefault/ie6hacks.css');
}
/* nifty quick styling */
loadCSS(PATH_ROOT . 'styles/niftyquick/style.css');
loadCSS(PATH_ROOT . 'styles/niftyquick/black/style.css');
if ($is_ie6) {
    loadCSS(PATH_ROOT . 'styles/niftyquick/ie6hacks.css');
}
/* mega styling */
loadCSS(PATH_ROOT . 'styles/mega/style.css');
loadCSS(PATH_ROOT . 'styles/mega/black/style.css');
if ($is_ie6) {
    loadCSS(PATH_ROOT . 'styles/mega/ie6hacks.css');
}
/* css loader */
function loadCSS($file)
{
    global $is_ie6;
    if (is_readable($file)) {
        $content = file_get_contents($file);
        if ($is_ie6) {
            $content = fixIE6Png($content);
        }
        echo $content;
    }
}
/* ie png fix */
function fixIE6Png($content)
<?php

echo loadCSS("assets/js/library/DataTables-1.10.8/css/dataTables.bootstrap.css");
echo loadJS("assets/js/library/DataTables-1.10.8/js/jquery.dataTables.js");
echo loadJS("assets/js/library/DataTables-1.10.8/js/dataTables.bootstrap.js");
?>

<?php 
echo loadCSS("assets/js/library/DataTables-plugins/buttons/buttons.dataTables.min.css");
echo loadJS("assets/js/library/DataTables-plugins/buttons/dataTables.buttons.min.js");
echo loadJS("assets/js/library/DataTables-plugins/buttons/buttons.html5.min.js");
echo loadJS("assets/js/library/DataTables-plugins/pdfmake/pdfmake.min.js");
echo loadJS("assets/js/library/DataTables-plugins/pdfmake/vfs_fonts.js");
echo loadJS("assets/js/library/DataTables-plugins/JSZip/jszip.min.js");
?>

<?php

if (extension_loaded('zlib') && !ini_get('zlib.output_compression')) {
    @ob_start('ob_gzhandler');
}
header('Content-type: text/css; charset=UTF-8');
define('DS', DIRECTORY_SEPARATOR);
define('PATH_ROOT', dirname(__FILE__) . DS);
/* general */
loadCSS(PATH_ROOT . 'layouts/layout.css');
/* vertical */
loadCSS(PATH_ROOT . 'layouts/vertical/layout.css');
/* horizontal */
loadCSS(PATH_ROOT . 'layouts/horizontal/layout.css');
/* css loader */
function loadCSS($file)
{
    if (is_readable($file)) {
        $content = file_get_contents($file);
        echo $content;
    }
}
<?php

echo loadCSS("assets/js/library/dropzone/css/dropzone.css");
?>


<div class="row">
    <div class="col-lg-12">
        <div class="page-title">
            <h1>Documentación
                <small><i class="fa fa-arrow-right"></i> Librer&iacute;a de documentos</small>
            </h1>
            <ol class="breadcrumb">
                <li><i class="fa fa-dashboard"></i> <a href="<?php 
echo site_url();
?>
"> Inicio </a></li>
                <li class="active">Librer&iacute;a de documentos</li>
            </ol>
        </div>
    </div>
</div>

<div class="row">
    <!-- Striped Responsive Table -->
    <div class="col-lg-12">
        <div id="elfinder"></div>
    </div>
</div>
    <div class='tab-pane' id='tab3' style='overflow:hidden;display:none'>
        <div id='div_tab_3' class='col-xs-12 top-spaced'>

        </div>

    </div>
</div> 

<?php 
echo loadCSS("assets/js/library/bootstrap-fileinput/css/fileinput.css");
echo loadJS("assets/js/library/bootstrap-fileinput/js/fileinput.js");
echo loadJS("assets/js/library/bootstrap-fileinput/js/fileinput_locale_es.js");
?>

<?php 
echo loadCSS("assets/js/library/DataTables-1.10.8/css/dataTables.bootstrap.css");
echo loadJS("assets/js/library/DataTables-1.10.8/js/jquery.dataTables.js");
echo loadJS("assets/js/library/DataTables-1.10.8/js/dataTables.bootstrap.js");
echo loadJS("assets/js/library/bootbox-4.4.0/bootbox.min.js");
?>



<?php 
echo loadJS("assets/js/capas.js");
?>

<script type="text/javascript">
    $(document).ready(function() {
        Layer.initSave();
        $('#div_tab_2').load(siteUrl+'capas/listado');
예제 #11
0
        ?>
 /> Dar controle total ao usuário
                    </li>
                    <li class="center">
                        <input type="button" onClick="location.href='?m=usuarios&t=listar'" value="Cancelar" />
                        <input type="submit" name="cadastrar" value="Salvar Dados" />
                    </li>
                </ul>
            </fieldset>
        </form>
    
    <?php 
        break;
    case 'listar':
        echo '<h2>Usuários cadastrados</h2>';
        loadCSS('data-tables', null, TRUE);
        loadJS('jquery-datatable');
        ?>
    
    <script>
        $(document).ready(function(){
            $("#listausers").dataTable({
                
                "language": {
                    "zeroRecords": "Nenhum dado encontrado",
                    "info": "Mostrando página _PAGE_ de _PAGES_",
                    "infoEmpty": "Sem registros disponíveis",
                    "infoFiltered": "(filtrado de _MAX_ registros no total)",
                    "search":"Pesquisar"
                },
                
예제 #12
0
파일: invoice.php 프로젝트: tapuz/alice
<?php

//Component Invoice
loadLib('invoice');
loadLib('payment');
loadJS('invoice.js', 'invoice');
loadCSS('invoice.css', 'invoice');
$patient_id = getVar('patient_id');
switch (getVar('task')) {
    case 'create_new_invoice':
        $patient = getPatient($patient_id);
        $invoice = new Invoice();
        $invoice->patient_id = $patient_id;
        $invoice->clinic_id = $patient->clinic;
        $invoice->address = $patient->patient_surname . ' ' . $patient->patient_firstname . '<br>' . $patient->address . '<br>' . $patient->postcode . ' ' . $patient->city . '<br>' . $patient->country;
        $invoice->insertInvoice();
        $invoice_id = $invoice->invoice_id;
        // get the ID to be used in edit_invoice view
        break;
    case 'delete_invoice':
        Invoice::deleteInvoice(getVar('invoice_id'));
        break;
    case 'add_invoice_item':
        //set payment to invoiced
        Payment::setPaymentInvoicedStatus(getVar('payment_id'), 1);
        $invoice_item = new Invoice();
        $invoice_item->invoice_id = getVar('invoice_id');
        $invoice_item->payment_id = getVar('payment_id');
        $invoice_item->item_description = getVar('item_description');
        $invoice_item->item_price = getVar('item_price');
        $invoice_item->addInvoiceItem();
예제 #13
0
<?php

require_once "funcoes.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Painel Administrativo</title>
    <?php 
loadCSS('reset');
loadCSS('style');
loadJS('jquery');
loadJS('geral');
?>
</head>
<body>
    <?php 
loadModulo('usuarios', 'login');
?>
</body>
</html>
예제 #14
0
		<link rel="shortcut icon" href=<?php 
echo BASEURL . IMGPATH . "favicon.ico";
?>
>
		
		<?php 
loadJS("jquery");
?>
		<?php 
loadJS("bootstrap/bootstrap.min");
?>
		<?php 
loadJS("myscripts");
?>

		<?php 
loadCSS("bootstrap/bootstrap.min");
?>
		<?php 
loadCSS("mystyles");
?>
		
	</head>

	<body>
		<div class="container-fluid">	
			<?php 
//$this->view('main/telas/menu_topo');
?>
			
<!DOCTYPE html>
<html lang="es">
<head>
    <title> MIDAS :: Módulo de emergencias</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="title" content="Sumanet" />
    <meta name="description" content="Módulo de emergencias" />
    
    <?php 
echo loadCSS("assets/js/library/bootstrap-3.3.5/css/bootstrap.css", true);
?>
    <link rel="shortcut icon" type="image/x-icon" href="<?php 
echo base_url("/assets/img/favicon.ico");
?>
"/>
    <link rel="shortcut icon" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"/>
    
    <script type="text/javascript">
        siteUrl = '<?php 
echo site_url("/");
?>
';
        baseUrl = '<?php 
echo base_url("/");
?>
';
    </script>
    <?php 
echo layoutCss();
예제 #16
0
파일: patient.php 프로젝트: tapuz/alice
<?php

//patient component
loadCSS('search.css', 'patient');
$component_name = 'Patients';
//loadJS('add_payment.js','payment');
$patient_id = getVar('patient_id');
switch (getView()) {
    case 'search_patients':
        //loadView();
        loadJS('search-patient.js', 'patient');
        //get expected patients for practitioner to select from
        $patients_for_today = Patient::getPatientsForToday();
        include 'views/search.php';
        break;
    case 'patient':
        //loadView();
        //get patient details according to patient_id in url query
        $patient = getPatient(getVar('patient_id'));
        //get user info
        $user = get_userdata($patient->practitioner);
        //get appointments
        $appointments = getAppointments($patient->patient_id);
        //get user_id
        $practitioner_id = get_current_user_id();
        //$letterCount = letterCount();//used in de patient_menu module
        loadJS('patient.js', 'patient');
        include 'views/patient_new.php';
        break;
}
switch (getTask()) {
예제 #17
-1
파일: letter.php 프로젝트: tapuz/alice
<?php

//letter Component
$component_root = $config['root'] . 'components/com_letter/';
loadCSS('letter.css', 'letter');
loadCSS('print_letter.css', 'letter');
loadJS('letter.js', 'letter');
//patient_info
$patient_id = getVar('patient_id');
$query = sprintf('SELECT * from table_patients WHERE patient_id = "%s"', $patient_id);
//$query= sprintf('SELECT * from table_clinics WHERE clinic_id="2"');
$patient = $wpdb->get_row($query);
$patient_name = $patient->patient_surname . ' ' . $patient->patient_firstname;
switch (getVar('task')) {
    case 'create_new_letter':
        $wpdb->insert('table_letters', array('patient_id' => getVar('patient_id'), 'user_id' => getVar('user_id'), 'category_id' => getVar('category_id'), 'name' => 'new letter'));
        //get the letter_id just created to pass to the select_category view
        $letter_id = $wpdb->insert_id;
        break;
    case 'delete_letter':
        $wpdb->delete('table_letters', array('letter_id' => getVar('letter_id')));
        //the letter was deleted OK return true
        echo 'ok';
        break;
    case 'save_letter':
        //prepare the letter html
        //$letter = _wp_specialchars(getVar('letter'));
        $wpdb->update('table_letters', array('name' => getVar('name'), 'note' => getVar('note'), 'letter' => getVar('letter')), array('letter_id' => getVar('letter_id')));
        break;
    case 'load_template':
        //practitioner info