Example #1
0
					<div style="margin-bottom:10px; overflow:hidden" class="rowx">
						<?php 
    $field = 'date1_start';
    $this->load->view('app/form', array('item' => array('type' => 'date', 'columns' => 3, 'form' => $wgetId, 'name' => $field, 'label' => $this->lang->line('Fecha de inicio'), 'value' => mysql_to_calendar($dataItem[$field]), 'placeholder' => $this->lang->line("Seleccione fecha"))));
    $field = 'time1_start';
    $this->load->view('app/form', array('item' => array('type' => 'timepicker', 'columns' => 3, 'form' => $wgetId, 'name' => $field, 'label' => $this->lang->line('Hora de inicio'), 'value' => substr($dataItem[$field], 0, 5), 'placeholder' => $this->lang->line("Seleccione hora"))));
    $field = 'date1_end';
    $this->load->view('app/form', array('item' => array('type' => 'date', 'columns' => 3, 'form' => $wgetId, 'name' => $field, 'label' => $this->lang->line('Fecha de finalización'), 'value' => mysql_to_calendar($dataItem[$field]), 'placeholder' => $this->lang->line("Seleccione fecha"))));
    $field = 'time1_end';
    $this->load->view('app/form', array('item' => array('type' => 'timepicker', 'columns' => 3, 'form' => $wgetId, 'name' => $field, 'label' => $this->lang->line('Hora de finalización'), 'value' => substr($dataItem[$field], 0, 5), 'placeholder' => $this->lang->line("Seleccione hora"))));
    $field = 'date2_start';
    $this->load->view('app/form', array('item' => array('type' => 'date', 'columns' => 3, 'form' => $wgetId, 'name' => $field, 'label' => $this->lang->line('Fecha de inicio evaluación'), 'value' => mysql_to_calendar($dataItem[$field]), 'placeholder' => $this->lang->line("Seleccione fecha"))));
    $field = 'time2_start';
    $this->load->view('app/form', array('item' => array('type' => 'timepicker', 'columns' => 3, 'form' => $wgetId, 'name' => $field, 'label' => $this->lang->line('Hora de inicio evaluación'), 'value' => substr($dataItem[$field], 0, 5), 'error' => $this->validation->error($field), 'placeholder' => $this->lang->line("Seleccione hora"))));
    $field = 'date2_end';
    $this->load->view('app/form', array('item' => array('type' => 'date', 'columns' => 3, 'form' => $wgetId, 'name' => $field, 'label' => $this->lang->line('Fecha de finalización evaluación'), 'value' => mysql_to_calendar($dataItem[$field]), 'placeholder' => $this->lang->line("Seleccione fecha"))));
    $field = 'time2_end';
    $this->load->view('app/form', array('item' => array('type' => 'timepicker', 'columns' => 3, 'form' => $wgetId, 'name' => $field, 'label' => $this->lang->line('Hora de finalización evaluación'), 'value' => substr($dataItem[$field], 0, 5), 'placeholder' => $this->lang->line("Seleccione hora"))));
    ?>
					</div>					
					<div id="myChart" style="text-align:center; width:100%;height:450px;"></div>
				</div>
				<div class="col col-4">
					<h2 style="margin-top:0px">Ajustar sensor: promedio</h2>
					<p style="margin-top:-10px;margin-bottom;10px">Seleccionar el sensor para ajustar, escribir los sensores a utilizar en el promedio separados por comas.</p>
					<div class="row sens-adj">
						<?php 
    $selectSensors = array();
    $selectSensors[] = "Seleccionar sensor";
    foreach ($sensors as $sensor => $index) {
        $selectSensors[$sensor] = "Sensor #{$sensor}";
Example #2
0
      <fieldset>
        <div class="row">
        
<?php 
$field = 'edition_es';
$this->load->view('app/form', array('item' => array('columns' => 6, 'form' => $wgetId, 'name' => $field, 'label' => $this->lang->line('Edición ES'), 'value' => $dataItem[$field], 'error' => $this->validation->error($field), 'class' => $this->validation->error_class($field), 'placeholder' => '')));
$field = 'edition_ca';
$this->load->view('app/form', array('item' => array('columns' => 6, 'form' => $wgetId, 'name' => $field, 'label' => $this->lang->line('Edición CA'), 'value' => $dataItem[$field], 'error' => $this->validation->error($field), 'class' => $this->validation->error_class($field), 'placeholder' => '')));
$field = 'text_es';
$this->load->view('app/form', array('item' => array('type' => 'textarea', 'height' => 160, 'columns' => 6, 'form' => $wgetId, 'name' => $field, 'label' => $this->lang->line('Texto ES'), 'value' => $dataItem[$field], 'error' => $this->validation->error($field), 'class' => $this->validation->error_class($field), 'placeholder' => '')));
$field = 'text_ca';
$this->load->view('app/form', array('item' => array('type' => 'textarea', 'height' => 160, 'columns' => 6, 'form' => $wgetId, 'name' => $field, 'label' => $this->lang->line('Texto CA'), 'value' => $dataItem[$field], 'error' => $this->validation->error($field), 'class' => $this->validation->error_class($field), 'placeholder' => '')));
$field = 'id_file';
$this->load->view('app/form', array('item' => array('type' => 'filemanager', 'columns' => 4, 'form' => $wgetId, 'name' => $field, 'error' => $this->validation->error($field), 'class' => $this->validation->error_class($field), 'allow-navigation' => isset($gallery['default'][$field]['allow-navigation']) ? $gallery['default'][$field]['allow-navigation'] : false, 'default-location' => isset($gallery['default'][$field]['folder']) ? $gallery['default'][$field]['folder'] : (isset($gallery['folder']) ? $gallery['folder'] : 0), 'data' => $dataItem, 'prefix' => 'fm1', 'label' => $this->lang->line('Imagen'), 'value' => $dataItem[$field], 'placeholder' => '')));
$field = 'date';
$this->load->view('app/form', array('item' => array('type' => 'date', 'columns' => 2, 'form' => $wgetId, 'name' => $field, 'label' => $this->lang->line('Fecha'), 'value' => mysql_to_calendar($dataItem[$field]), 'error' => $this->validation->error($field), 'class' => $this->validation->error_class($field), 'placeholder' => $this->lang->line("Seleccione fecha"))));
$field = 'color';
$this->load->view('app/form', array('item' => array('columns' => 2, 'form' => $wgetId, 'name' => $field, 'label' => $this->lang->line('Color'), 'value' => $dataItem[$field], 'error' => $this->validation->error($field), 'class' => $this->validation->error_class($field), 'placeholder' => '')));
$field = 'id_gallery';
$this->load->view('app/form', array('item' => array('type' => 'gallery', 'columns' => 12, 'form' => $wgetId, 'name' => $field, 'error' => $this->validation->error($field), 'class' => $this->validation->error_class($field), 'allow-navigation' => isset($gallery['default'][$field]['allow-navigation']) ? $gallery['default'][$field]['allow-navigation'] : false, 'default-location' => isset($gallery['default'][$field]['folder']) ? $gallery['default'][$field]['folder'] : (isset($gallery['folder']) ? $gallery['folder'] : 0), 'data' => $dataItem, 'prefix' => 'fmg1', 'label' => $this->lang->line('Galería'), 'value' => $dataItem[$field], 'placeholder' => '')));
?>
      </div>
      </fieldset>
      <fieldset class="widget-project-info participants-info inset">
        <div class="row">
          <div class="col-md-12">
            <legend><?php 
echo $this->lang->line("Participantes");
?>
</legend>
          </div>
Example #3
0
            ?>
  cItem = cloneItem();
  $('.form-post-batch', cItem).val('<?php 
            echo addslashes($d['batch']);
            ?>
');
  $('.form-post-value', cItem).val('<?php 
            echo round($d['value'] * 1000) / 1000;
            ?>
');
  $('.form-post-uncertainty', cItem).val('<?php 
            echo round($d['uncertainty'] * 1000) / 1000;
            ?>
');
  $('.form-post-expiration', cItem).val('<?php 
            echo mysql_to_calendar($d['expiration']);
            ?>
');
  <?php 
        }
        ?>
  <?php 
    }
    ?>
  <?php 
}
?>

  $('.solution-batch-info .add-new-td-row', formGlobal).click(function(e){
    e.preventDefault();
    cloneItem();