/
/ set model
$crud->set_model($this->cms_module_path().'/grocerycrud_productos_compuestos_model');
// adjust groceryCRUD's language to No-CMS's language
$crud->set_language($this->cms_language());
// table name
$crud->set_table($this->cms_complete_table_name('productos_compuestos'));
// set subject
$crud->set_subject('Productos Compuestos');
// displayed columns on list
$crud->columns('num_ext','num_parte','descripcion','precio_compra','precio_venta','ubicacion_bodega','imagen','relprocom');----------------------------------------> this is where our "dummie" dropdown goes?
// displayed columns on edit operation
$crud->edit_fields('num_ext','num_parte','descripcion','precio_compra','precio_venta','ubicacion_bodega','imagen','relprocom');
// displayed columns on add operation
$crud->add_fields('num_ext','num_parte','descripcion','precio_compra','precio_venta','ubicacion_bodega','imagen','relprocom');
// caption of each columns
$crud->display_as('num_ext','Num Ext');
$crud->display_as('num_parte','Num Parte');
$crud->display_as('descripcion','Descripcion');
$crud->display_as('precio_compra','Precio Compra');
$crud->display_as('precio_venta','Precio Venta');
$crud->display_as('ubicacion_bodega','Ubicacion Bodega');
$crud->display_as('imagen','Imagen');
$crud->display_as('relprocom','Relprocom');
$crud->callback_edit_field('ubicacion_bodega',array($this,'dropdownlist'));------------------------------------> our callbacks(they must be before?)?
$crud->callback_add_field('ubicacion_bodega',array($this,'dropdownlist'));
function dropdownlist()//$value, $primary_key ----------------------------> the action that is being called
{
return '<select name="DONDE">
<option value="Estante">Estante</option>
<option value="Caja">Caja</option>
</select>
<select name="COLUMNA">
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
<option value="D">D</option>
<option value="E">E</option>
<option value="F">F</option>
<option value="G">G</option>
<option value="H">H</option>
<option value="I">I</option>
<option value="J">J</option>
<option value="K">K</option>
<option value="L">L</option>
<option value="M">M</option>
<option value="N">N</option>
<option value="Ñ">Ñ</option>
<option value="O">O</option>
<option value="P">P</option>
<option value="Q">Q</option>
<option value="R">R</option>
<option value="S">S</option>
<option value="T">T</option>
<option value="U">U</option>
<option value="V">V</option>
<option value="W">W</option>
<option value="X">X</option>
<option value="Y">Y</option>
<option value="Z">Z</option>
</select>
<select name="FILA">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
<option value="32">32</option>
<option value="33">33</option>
<option value="34">34</option>
<option value="35">35</option>
<option value="36">36</option>
<option value="37">37</option>
<option value="38">38</option>
<option value="39">39</option>
<option value="40">40</option>
<option value="41">41</option>
<option value="42">42</option>
<option value="43">43</option>
<option value="44">44</option>
<option value="45">45</option>
<option value="46">46</option>
<option value="47">47</option>
<option value="48">48</option>
<option value="49">49</option>
<option value="50">50</option>
</select> ';
}
this makes the dropdowns but they do not insert [member='davidoster']