You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2015-08-31 13:02:43

9mik09
Member
Registered: 2015-08-18
Posts: 21

date d'installation

Bonjour!
Chers développeurs et les utilisateurs, ont besoin d'aide.
Comment ajouter la "date d'installation" pour le logiciel?
Dans l'image du résultat souhaité.
____________
nouvelle image

dinst.png
хостинг картинок bmp

Last edited by 9mik09 (2015-09-01 18:20:05)

Offline

#2 2015-08-31 16:27:16

9mik09
Member
Registered: 2015-08-18
Posts: 21

Re: date d'installation

glpi_computers_softwareversions
Si vous ajoutez à "date_d'installation", il ne reste plus qu'à montrer à la droite tab?

Offline

#3 2015-09-01 14:49:02

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: date d'installation

Depuis l'ordinateur concerné, onglet logiciel, vous sélectionnez le logiciel soushité ainsi que la version et vous cliquez sur installer


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#4 2015-09-01 17:10:29

9mik09
Member
Registered: 2015-08-18
Posts: 21

Re: date d'installation

Google's translator working stupid. You do not understand me.
------
en

I want to add a new field
on a picture - "date d'installation"
in mysql base "glpi" in table "glpi_computers_softwareversions" I add new field "date_dinstallation"
how to display?

ru
Я хочу добавить новое поле "Дата установки". Это дата когда было установленно програмное обеспечение на компьютер.
В GLPI нет встроенных полей которые можно было бы использовать для этого.
В базе данных glpi в таблице glpi_computers_softwareversions я добавил поле "date_dinstallation".
Теперь хочу показать это поле "Дата установки" как на рисунке.
Поле должно иметь возможность редактирования и после нажатия на кнопку "Save" значения полей "Дата установки" должны быть сохраненны в базу данных.
Как это сделать?
(если кто может изложить это на французком, буду благодарен)

Offline

#5 2015-09-01 18:40:42

9mik09
Member
Registered: 2015-08-18
Posts: 21

Re: date d'installation

en  It works, but I can not edit the fields of this tab
fr    Il fonctionne, mais je ne peux pas modifier les champs de cet onglet
dinst2.png
фото хостинг

Offline

#6 2015-09-02 12:08:51

9mik09
Member
Registered: 2015-08-18
Posts: 21

Re: date d'installation

add fields date
show, can edit.
no save....
how to edit options button SAVE?
dinst3.png
хостинг изображений png

Last edited by 9mik09 (2015-09-02 17:59:48)

Offline

#7 2015-09-02 18:36:23

9mik09
Member
Registered: 2015-08-18
Posts: 21

Re: date d'installation

code field in file computer_softwareversion.class.php
in function showInstallations

echo "<td>";
Html::showDateFormItem('date_installs', $data['date_installs'], true, $editcalendar=true);
echo "</td>";

Offline

#8 2015-09-03 13:55:09

9mik09
Member
Registered: 2015-08-18
Posts: 21

Re: date d'installation

can someone tell me which file * .php have information button "Save"?

Offline

#9 2015-09-05 17:14:57

9mik09
Member
Registered: 2015-08-18
Posts: 21

Re: date d'installation

?

Offline

#10 2015-09-06 19:23:35

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,287

Re: date d'installation

in your screenshot #6 save button is displayed by :
glpi/inc/software.class.php
function : ShowForm


Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9

Offline

#11 2015-09-07 10:52:25

9mik09
Member
Registered: 2015-08-18
Posts: 21

Re: date d'installation

LaDenrée wrote:

in your screenshot #6 save button is displayed by :
glpi/inc/software.class.php
function : ShowForm

Thank you!
Trying ... not successfully

Offline

#12 2015-09-19 13:16:08

9mik09
Member
Registered: 2015-08-18
Posts: 21

Re: date d'installation

wrong
this button in commondbtm.class.php

Offline

#13 2015-09-25 14:00:33

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: date d'installation

Button Save is a global button for all items in GLPI not only for Software.

If you add a column in the list of result, you can't change this save button because it's not the same form.
You must change this result form en submit form and don't forget to change massive actions.


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

Board footer

Powered by FluxBB