Missing resource type select list into add form

This commit is contained in:
Jean-François Ferry 2014-03-23 22:13:21 +01:00 committed by jfefe
parent e4962e9efd
commit c2081b299f

View File

@ -30,6 +30,7 @@ if (! $res) $res=@include("../../main.inc.php"); // For "custom" directory
if (! $res) die("Include of main fails"); if (! $res) die("Include of main fails");
require_once 'class/resource.class.php'; require_once 'class/resource.class.php';
require_once 'class/html.formresource.class.php';
// Load traductions files requiredby by page // Load traductions files requiredby by page
$langs->load("resource"); $langs->load("resource");
@ -108,10 +109,10 @@ if ($action == 'confirm_add_resource')
/*************************************************** /***************************************************
* VIEW * VIEW
* *
* Put here all code to build page
****************************************************/ ****************************************************/
$form=new Form($db); $form=new Form($db);
$formresource = new FormResource($db);
if ( !$action ) if ( !$action )
{ {
@ -136,6 +137,12 @@ if ( !$action )
print '</td>'; print '</td>';
print '</tr>'; print '</tr>';
// Type
print '<tr><td width="20%">'.$langs->trans("ResourceType").'</td>';
print '<td>';
$ret = $formresource->select_types_resource($object->fk_code_type_resource,'fk_code_type_resource','',2);
print '</td></tr>';
// Description // Description
$field = 'description'; $field = 'description';
print '<tr>'; print '<tr>';