2) PERCORSO: components/com_docman/includes_frontend/documents.html.php sotto riga 67 inserire seguente porzione di codice <p> <label for="dmmittente"><?php echo _DML_MITTENTE;?></label><br /> <input class="inputbox" type="text" name="dmmittente" size="50" maxlength="100" value="<?php echo $row->dmmittente;?>" /> </p SALVARE! 3) PERCORSO: administrator/components/com_docman/includes/documents.html.php sotto riga 294 aggiungere la seguente porzione di codice <tr> <td width="250" align="right"><?php echo _DML_MITTENTE;?></td> <td colspan="2"> <input class="inputbox" type="text" name="dmmittente" size="50" maxlength="100" value="<?php echo $row->dmmittente ?>" /> </td> </tr>
SALVARE! 4) PERCORSO: administrator/components/com_docman/docman.class.php sotto riga 301 aggiungere var $dmmittente = null; sotto riga 381 aggiungere if( ! $this->dmmittente){ $this->_error .= "\\n" . _DML_ENTRY_MITTENTE; } sotto riga 639 aggiungere var $mittente = null; SALVARE ! 5) PERCORSO: adminsitrator/components/com_docman/language/italian.common.php sotto la riga 78 aggiungere DEFINE("_DML_MITTENTE" , "Mittente"); sotto la riga 146 aggiungere DEFINE("_DML_ENTRY_MITTENTE" , "Il documento deve avere un mittente."); SALVARE! 6) PERCORSO: components/com_docman/themes/default/language/italian.php sotto alla riga 91 aggiungere DEFINE("_DML_TPL_MITTENTE" , "Mittente"); SALVARE! 7) PERCORSO: components/com_docman/themes/default/templates/documents/document.tpl.php sotto la riga 49 circa aggiungere if($this->theme->conf->details_mittente) : ?> <tr> <td><?php echo _DML_TPL_MITTENTE ?></td> <td><?php echo $this->data->dmmittente ?></td> </tr> <?php endif;
SALVARE! 8) PERCORSO: components/com_docman/themes/default/templates/documents/list_item.tpl.php sotto la riga 108 aggiungere if ( $this->theme->conf->item_mittente ) : ?> <dd class="dm_mittente"> <?php echo $this->doc->data->dmmittente;?> </dd> <?php endif;
SALVARE! 9) PERCORSO: components/com_docman/themes/default/themeConfig.php sotto la riga 15 aggiungere var $item_mittente = "1"; sotto la riga 25 aggiungere var $details_mittente = "1"; 10) Per inserire il campo cerca in frontend PERCORSO: components/com_docman/includes_frontend/search.php Aggiungere dopo la linea 70 la seguente stringa: $where[] = mosHTML::makeOption('search_mittente' , _DML_MITTENTE); e sotto, dove c'è scritto size="2" sostituire il 2 con 3 11) PERCORSO: administrator/componente/com_docman/classes/DOCMAN_utils.class.php Alla riga 702 dove c'è scritto $options = array('search_name', 'search_description'); sostituire con $options = array('search_name', 'search_mittente', 'search_description'); dopo la riga 732 aggiungere if (in_array('search_mittente', $options)) { $search_col[] = 'DM.dmmittente '; } |