From aa150015a52cfdf30949b6b19fdd43b6550ce067 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Tue, 16 Dec 2008 17:04:39 -0500 Subject: [PATCH] Improved Client templates. --- interface/web/client/form/client.tform.php | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/interface/web/client/form/client.tform.php b/interface/web/client/form/client.tform.php index 8be3de8..1124c7e 100644 --- a/interface/web/client/form/client.tform.php +++ b/interface/web/client/form/client.tform.php @@ -301,12 +301,11 @@ 'datatype' => 'INTEGER', 'formtype' => 'SELECT', 'default' => '1', - 'datasource' => array ( 'type' => 'SQL', - 'querystring' => "SELECT template_id,template_name FROM client_template WHERE template_type ='m'", - 'keyfield'=> 'template_id', - 'valuefield'=> 'template_name' + 'datasource' => array ( 'type' => 'CUSTOM', + 'class'=> 'custom_datasource', + 'function'=> 'master_templates' ), - 'value' => array('0' => 'custom') + 'value' => '' ), 'template_additional' => array ( 'datatype' => 'VARCHAR', -- Gitblit v1.9.1