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 2007-06-26 11:15:09

don
Member
Registered: 2006-06-06
Posts: 1

tracking.injector.php

Greetings

I am trying to create a form so anonymous user on our public terminals can send a help desk ticket to GLPI.

I have not seen any documentation about what values are allowed in a form. Is there any docs for this?

So far I have the following in a basic form:

<form action="/helpdesk/front/tracking.injector.php" method="POST">
    <!-- type Helpdesk stops trying to validate the user -->
    <input type="hidden" name="type" value="Helpdesk" /><br />
    <!-- Type of device. We will stick to 'computers' -->
    <input type="hidden" name="device_type" value="1" /><br />
    <!--<input type="text" name="computer" value="41" /><br />-->
    <SELECT name="computer" >
        <option value="41">WebOPAC01</option>
        <option value="42">WebOPAC02</option>
        <option value="38">WebOPAC03</option>
        <option value="43">WebOPAC04</option>
    </SELECT><br />
    <!-- Items in the Request Source drop down -->
    <!-- Default to Helpdesk -->
    <input type="hidden" name="request_type" value="1" /><br />
    <!-- Prority drop down -->
    <!--<input type="text" name="priority" value="3" /><br />-->
    <select name='priority'>
        <option value='5' >Very High</option>
        <option value='4' >High</option>
        <option value='3'  selected >Medium</option>
        <option value='2' >Low</option>
        <option value='1' >Very Low</option>
    </select><br />
    <!-- Category drop down - only one category defined at the momment -->
    <input type="hidden" name="category" value="1" /><br />
    <!-- The GLPI user submitting. This is an anonymous form, so Guest -->
    <input type="hidden" name="author" value="36" /><br />
    <!-- Assign to whome? Default to Sysadmin -->
    <input type="hidden" name="assign" value="29" /><br />
    <!-- Describe the problem -->
    <TEXTAREA name="contents" ></TEXTAREA><br />
    <!-- email author? Donen't seem to work - but could be my mail -->
    <input type="text" name="emailupdates" value="yes" /><br />
    <!-- Send update to ? -->
    <input type="text" name="uemail" value="don@robertson.net.nz" /><br />
    <!-- For anonymous users so should not really have my items -->
    <input type="hidden" name="_my_items" value="" /><br />
    <hr />
   
    <input type="submit" name="add" value="post"><br />
</form>

Is there anything else I need to know?

Don

Offline

#2 2007-06-26 19:33:14

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: tracking.injector.php

Why don't you use the page helpdesk.html for that ?


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

Board footer

Powered by FluxBB